{"id":36549582,"url":"https://github.com/vshapovalov/rfid-reader-service","last_synced_at":"2026-01-12T06:31:19.969Z","repository":{"id":60577239,"uuid":"539862962","full_name":"vshapovalov/rfid-reader-service","owner":"vshapovalov","description":"RFID reader with mqtt communication(Drivers: M302, RFIDLIb) ","archived":false,"fork":false,"pushed_at":"2023-06-02T17:56:41.000Z","size":2173,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-21T13:06:07.122Z","etag":null,"topics":["mqtt-client","rfid-reader"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vshapovalov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-09-22T07:53:23.000Z","updated_at":"2023-05-04T19:21:03.000Z","dependencies_parsed_at":"2024-06-21T11:53:04.346Z","dependency_job_id":"633d5347-bb35-4bea-8d76-6c3d7d29583a","html_url":"https://github.com/vshapovalov/rfid-reader-service","commit_stats":{"total_commits":7,"total_committers":2,"mean_commits":3.5,"dds":0.4285714285714286,"last_synced_commit":"8d89ff8fabfc21768853355aedb2742b5ecd6bd2"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/vshapovalov/rfid-reader-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vshapovalov%2Frfid-reader-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vshapovalov%2Frfid-reader-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vshapovalov%2Frfid-reader-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vshapovalov%2Frfid-reader-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vshapovalov","download_url":"https://codeload.github.com/vshapovalov/rfid-reader-service/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vshapovalov%2Frfid-reader-service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28336316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["mqtt-client","rfid-reader"],"created_at":"2026-01-12T06:31:19.237Z","updated_at":"2026-01-12T06:31:19.964Z","avatar_url":"https://github.com/vshapovalov.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Remote rfid-reader service\n\nUse connected rfid communication reader to read and send cards numbers to the server via mqtt broker.\n\n### Configuration\n\n`id` - unique identifier of reader service\n\n`device.driver` -  `M302` or `RFIDLib`\n\n```json\n{\n  \"id\": \"workstation-1-reader-1\",\n  \"isDebugModeEnabled\": true,\n  \"reverseCardNumber\": false,\n  \"useBuzzerOnRead\": true,\n  \"device\": {\n    \"driver\": \"M302\",\n    \"M302Settings\": {\n      \"port\": \"COM1\",\n      \"baud\": 9600,\n      \"readTimeout\": 1,\n      \"size\": 8\n    }\n  },\n  \"mqttBroker\": {\n    \"uri\": \"tcp://localhost:1883\",\n    \"username\": \"user\",\n    \"password\": \"secret\"\n  }\n}\n```\n\n### Broker communications\n\nWhen cards are read, service sends message to the broker with topic `reader/{readerId}/card` and payload with cards numbers.\n\n```json\n{\n  \"cardNumbers\": [\"1234567890\"],\n  \"readerId\": \"workstation-1-reader-1\"\n}\n```\n\nWhen service starts, it sends message to the broker with topic `reader/{readerId}/status` and payload with status.\n\n```json\n{\n  \"status\": \"online\",\n  \"readerId\": \"workstation-1-reader-1\"\n}\n```\n\nWhen service stops, it sends message to the broker with topic `reader/{readerId}/status` and payload with status.\n\n```json\n{\n  \"status\": \"offline\",\n  \"readerId\": \"workstation-1-reader-1\"\n}\n```\n\nTo use buzzer on reader module, send message to the broker with topic `reader/{readerId}/buzzer` and payload with\nstatus.\n\n```json\n{\n  \"count\": 1\n}\n```\n\n### RFIDLib driver\n\nCan be used only on windows x64, because uses windows dynamic libraries\n\nThis drivers library supports list of readers:\n\n- M201\n- MR113R\n- RD120M\n- RD201\n- RD242\n- SSR100\n- RD5100\n- RD5200\n- RL8000\n- RPAN\n\nin device config section should be specified RFIDLIB driver and RFIDLibSettings settings, last one describes library devices driver, `RPAN` for  example, and comunication settings\n\n```\n{\n  \"driver\": \"RFIDLIB\",\n  \"RFIDLibSettings\": {\n    \"libDriver\": \"RPAN\",\n    \"communication\": {\n      \"type\": \"USB\",\n      \"settings\": {\n        \"serialNumber\": \"2072190002\"\n      }\n    }\n  }\n}\n```\n\nAll allowed settings you can find in `config.example.json` file\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvshapovalov%2Frfid-reader-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvshapovalov%2Frfid-reader-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvshapovalov%2Frfid-reader-service/lists"}