{"id":23185998,"url":"https://github.com/kkinos/easerial","last_synced_at":"2025-04-05T04:44:39.883Z","repository":{"id":65973246,"uuid":"603798256","full_name":"kkinos/easerial","owner":"kkinos","description":"A simple command line application for serial communication.","archived":false,"fork":false,"pushed_at":"2023-05-07T10:27:19.000Z","size":17,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T12:43:32.770Z","etag":null,"topics":["cli","go","golang","serial-communication"],"latest_commit_sha":null,"homepage":"","language":"Go","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/kkinos.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}},"created_at":"2023-02-19T15:55:30.000Z","updated_at":"2023-09-01T13:15:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"7a694451-8181-4a58-b5b4-8f8206eece6e","html_url":"https://github.com/kkinos/easerial","commit_stats":null,"previous_names":["kkinos/easerial","kinpoko/easerial"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkinos%2Feaserial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkinos%2Feaserial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkinos%2Feaserial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkinos%2Feaserial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kkinos","download_url":"https://codeload.github.com/kkinos/easerial/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289400,"owners_count":20914464,"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":["cli","go","golang","serial-communication"],"created_at":"2024-12-18T10:14:03.575Z","updated_at":"2025-04-05T04:44:39.859Z","avatar_url":"https://github.com/kkinos.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# easerial\n\n[![Go](https://github.com/kinpoko/easerial/actions/workflows/go.yml/badge.svg)](https://github.com/kinpoko/easerial/actions/workflows/go.yml)\n![License](https://img.shields.io/github/license/kinpoko/easerial?color=blue)\n\nA simple command line application for serial communication.\n\n## Description\n\n`easerial` is a simple command line application for sending data through a serial port. It provides two subcommands, `easerial string` and `easerial file`, which allow you to send hex data from a string or from a text file.\n\n## Install\n\n```bash\ngo install github.com/kinpoko/easerial@latest\n```\n\n## Usage\n\n### `easerial string`\n\n```bash\neaserial string \u003cstring\u003e [--port \u003cport name\u003e] [--baud \u003cbaud rate\u003e] [--data-bits \u003cdata bits\u003e] [--read-bytes \u003cread bytes\u003e] [--read-timeout-sec \u003cread timeout sec\u003e]\n```\n\n- `\u003cstring\u003e`: Required. The string to send as hex data.\n- `--port`: Optional. The serial port to use. Defaults to /dev/ttyUSB1.\n- `--baud`: Optional. The baud rate to use. Defaults to 9600.\n- `--data-bits`: Optional. The number of data bits to send. Defaults to 8.\n- `--read-bytes`: Optional. The number of reading bytes after sending. Defaults to 4.\n- `--read-timeout-sec`: Optional. The number of seconds of timeout for reading serial port after sending. Defaults to 1.\n\nExample:\n\n```bash\neaserial string 68656c6c6f20776f726c64 --baud 115200 --port /dev/ttyUSB0\n```\n\n### `easerial file`\n\n```bash\neaserial file \u003cfile_path\u003e [--port \u003cport name\u003e] [--baud \u003cbaud rate\u003e] [--data-bits \u003cdata bits\u003e] [--read-bytes \u003cread bytes\u003e][--read-timeout-sec \u003cread timeout sec\u003e]\n```\n\n- `\u003cfile_path\u003e`: Required. The path to the file send as a hex data.\n- `--port`: Optional. The serial port to use. Defaults to /dev/ttyUSB1.\n- `--baud`: Optional. The baud rate to use. Defaults to 9600.\n- `--data-bits`: Optional. The number of data bits to send. Defaults to 8.\n- `--read-bytes`: Optional. The number of reading bytes after sending. Defaults to 4.\n- `--read-timeout-sec`: Optional. The number of seconds of timeout for reading serial port after sending. Defaults to 1.\n\nExample:\n\n```bash\neaserial file helloworld.txt --baud 115200 --port /dev/ttyUSB0\n```\n\n`helloworld.txt`\n\n```text\n68\n65\n6c\n6c\n6f\n20\n77\n6f\n72\n6c\n64\n```\n\nor\n\n```text\n68,65,6c,6c,6f,20,77,6f,72,6c,64\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkinos%2Feaserial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkkinos%2Feaserial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkinos%2Feaserial/lists"}