{"id":13805580,"url":"https://github.com/erdetn/vserialx","last_synced_at":"2026-01-16T15:10:59.935Z","repository":{"id":182414430,"uuid":"405714441","full_name":"erdetn/vserialx","owner":"erdetn","description":"A tiny library for serial communication in Linux using V.","archived":false,"fork":false,"pushed_at":"2024-07-29T19:08:44.000Z","size":507,"stargazers_count":12,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-18T21:48:06.692Z","etag":null,"topics":["serial"],"latest_commit_sha":null,"homepage":"","language":"V","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erdetn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-12T17:55:15.000Z","updated_at":"2024-07-29T19:08:48.000Z","dependencies_parsed_at":"2024-01-27T09:38:36.547Z","dependency_job_id":"68e17efc-dfd2-4274-a262-afcd36834fc1","html_url":"https://github.com/erdetn/vserialx","commit_stats":null,"previous_names":["erdetn/vserialx"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdetn%2Fvserialx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdetn%2Fvserialx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdetn%2Fvserialx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdetn%2Fvserialx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erdetn","download_url":"https://codeload.github.com/erdetn/vserialx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254012969,"owners_count":21999346,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["serial"],"created_at":"2024-08-04T01:01:02.636Z","updated_at":"2026-01-16T15:10:59.905Z","avatar_url":"https://github.com/erdetn.png","language":"V","funding_links":[],"categories":["Libraries"],"sub_categories":["Serial Communications"],"readme":"# vserialx\n**vserialx** is a tiny library for serial communication in Linux using V.\n\n## Usage\n\n```v\nmodule main\n\nimport time\nimport vserialx as vs\n\nfn main() {\n\tmut dev := vs.new('/dev/ttyS20', .b9600, .@none, .@none, .one, .char8b)\n\n\tmut rc := dev.open()\n\n\tif rc != .okay {\n\t\tprintln('Failed to open.\\nERROR: ${rc}')\n\t\treturn\n\t}\n\tdefer {\n\t\tdev.close()\n\t}\n\n\trc = dev.open()\n\tif rc != .okay {\n\t\tprintln('Failed to connect.\\nERROR: ${rc}')\n\t\treturn\n\t}\n\n\tfor {\n\t\tif dev.available_bytes() \u003e 0 {\n\t\t\tlen, buff, rt := dev.read(10)\n\t\t\tdump(rt)\n\t\t\tif len \u003e 0 {\n\t\t\t\tprintln('BUFF: {${buff.hex()}}')\n\t\t\t}\n\t\t}\n\t\ttime.sleep(time.second)\n\t}\n}\n```\n\n## TODO features\n\n- [ ] Exclusive access (locking and unlocking mechanism).\n- [ ] Reading configurations using `tcgetattr` and `ioctl`. Read only the baudrate for now.\n- [ ] Better error/return code naming\n- [ ] The documentation\n\n## TODO testings\n- [ ] Other serial port configurations need to be tested.\n- [ ] Bloking read/write need to be tested.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferdetn%2Fvserialx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferdetn%2Fvserialx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferdetn%2Fvserialx/lists"}