{"id":50719030,"url":"https://github.com/pcs-electronics/bird-meter-hack","last_synced_at":"2026-06-09T22:01:08.809Z","repository":{"id":345709200,"uuid":"1186185999","full_name":"pcs-electronics/bird-meter-hack","owner":"pcs-electronics","description":"Bird 5019 RS-232 Reader","archived":false,"fork":false,"pushed_at":"2026-03-20T08:59:39.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-21T01:41:46.090Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/pcs-electronics.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-03-19T11:06:46.000Z","updated_at":"2026-03-20T08:59:43.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/pcs-electronics/bird-meter-hack","commit_stats":null,"previous_names":["pcs-electronics/bird-meter-hack"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/pcs-electronics/bird-meter-hack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcs-electronics%2Fbird-meter-hack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcs-electronics%2Fbird-meter-hack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcs-electronics%2Fbird-meter-hack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcs-electronics%2Fbird-meter-hack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pcs-electronics","download_url":"https://codeload.github.com/pcs-electronics/bird-meter-hack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcs-electronics%2Fbird-meter-hack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34127345,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2026-06-09T22:01:08.235Z","updated_at":"2026-06-09T22:01:08.766Z","avatar_url":"https://github.com/pcs-electronics.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bird 5019 RS-232 Reader\n\nThis project reads live measurement data from a Bird 5019 sensor over RS-232 and prints it to the terminal in plain text or JSON.\n\n## Problem\n\nThe Bird 5019 exposes useful RF power data over an RS-232 interface, but using that interface on a modern computer is awkward. Most laptops and small PCs no longer include a native serial port, and manually talking to the device protocol is inconvenient for testing, logging, or automation.\n\n## Solution\n\n`bird_5019_serial_read.py` connects to the sensor, identifies it, checks calibration status, applies measurement settings, and then streams live readings such as:\n\n- forward power\n- reflected power\n- peak power\n- burst power\n- filter bandwidth\n- temperature\n- ACK status\n\nIt can output human-readable terminal lines for quick monitoring or JSON for scripting and data capture.\n\n## Hardware Requirements\n\n- Bird 5019 or compatible 5012-family sensor\n- External 7-18 VDC power for the sensor\n- USB to RS-232 converter cable\n- Correct RS-232 wiring between the converter and the sensor\n\nUse a real RS-232 converter cable, not a USB-to-TTL serial adapter.\n\n## Software Requirements\n\n- Python 3\n- `pyserial`\n\nInstall the dependency with:\n\n```bash\npython3 -m pip install pyserial\n```\n\n## Usage\n\nList available serial ports:\n\n```bash\npython3 bird_5019_serial_read.py --list-ports\n```\n\nRead continuously from the default detected adapter:\n\n```bash\npython3 bird_5019_serial_read.py\n```\n\nRead from a specific port:\n\n```bash\npython3 bird_5019_serial_read.py --port /dev/ttyUSB0\n```\n\nChange the sensor filter bandwidth:\n\n```bash\npython3 bird_5019_serial_read.py --port /dev/ttyUSB0 --filter 400k\npython3 bird_5019_serial_read.py --port /dev/ttyUSB0 --filter 400khz\npython3 bird_5019_serial_read.py --port /dev/ttyUSB0 --filter 10mhz\n```\n\nSupported filter values are:\n\n- `4k5`, `4.5khz`, or `4500` for 4.5 kHz\n- `400k`, `400khz`, or `400000` for 400 kHz\n- `10m`, `10mhz`, or `10000000` for 10 MHz\n\nRead a limited number of samples in JSON format:\n\n```bash\npython3 bird_5019_serial_read.py --port /dev/ttyUSB0 --samples 5 --json\n```\n\n## Output\n\nPlain-text mode prints one line per sample with:\n\n- timestamp\n- forward power\n- reflected power\n- peak power\n- burst power\n- filter bandwidth\n- temperature\n- ACK status\n\nPower values in plain-text mode are formatted with two digits after the decimal point.\n\nJSON mode emits one object per sample with the same measurement data.\n\n## License\n\nThis project is licensed under the MIT License. See the `LICENSE` file for details.\n\nThe program was created by using GPT-5.4\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcs-electronics%2Fbird-meter-hack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpcs-electronics%2Fbird-meter-hack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcs-electronics%2Fbird-meter-hack/lists"}