{"id":28495788,"url":"https://github.com/maciekmm/brscanner","last_synced_at":"2025-08-23T03:04:39.975Z","repository":{"id":294762703,"uuid":"981767016","full_name":"maciekmm/brscanner","owner":"maciekmm","description":"Brother DCP-1512E USB scanning CLI","archived":false,"fork":false,"pushed_at":"2025-05-12T21:40:54.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-20T18:16:28.961Z","etag":null,"topics":["brother","brother-label-printer","reverse-engineering","scanner"],"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/maciekmm.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,"zenodo":null}},"created_at":"2025-05-11T20:47:02.000Z","updated_at":"2025-05-12T21:42:37.000Z","dependencies_parsed_at":"2025-05-22T00:19:45.317Z","dependency_job_id":"09a3d766-fc20-4317-a93d-5c7334f3ce60","html_url":"https://github.com/maciekmm/brscanner","commit_stats":null,"previous_names":["maciekmm/brscanner"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maciekmm/brscanner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maciekmm%2Fbrscanner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maciekmm%2Fbrscanner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maciekmm%2Fbrscanner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maciekmm%2Fbrscanner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maciekmm","download_url":"https://codeload.github.com/maciekmm/brscanner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maciekmm%2Fbrscanner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271736822,"owners_count":24812006,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"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":["brother","brother-label-printer","reverse-engineering","scanner"],"created_at":"2025-06-08T11:37:38.069Z","updated_at":"2025-08-23T03:04:39.950Z","avatar_url":"https://github.com/maciekmm.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# brscanner\n\n\u003e [!WARNING]\n\u003e This might (probably will) break your scanner, use at your own risk.\n\n`brscanner` is a simplistic CLI to interact with Brother DCP-1512E scanner via USB, \nprimarily intended for ARM-based systems such as Raspberry Pi as there's no official driver for them.\nIt may work with other Brother scanners, but it has only been tested with the DCP-1512E.\n\nIt currently doesn't support Auto Document Feeder (ADF) as I don't have a scanner with ADF.\n\nAll of this was reverse engineered and some of the parts of the protocol are unknown.\n\n## Limitations\n\n- The CLI lacks error handling when the scanner is busy or the scanning is interrupted.\n- Interrupting the scanning process is not supported if you do this your scan head will be stuck and the printer needs to be power cycled.\n- Only JPEG format is supported as of now\n- Only a single scan mode is supported\n- ADF is not supported \n\nThe above maybe will be worked on, maybe not.\n\n## Building\n\n```bash\n  go build -o brscanner cmd/brscanner/main.go\n```\n\n## Usage\n\n```\nUsage of ./brscanner:\n  -dpi uint\n        Scan resolution in DPI (default 200)\n  -height float\n        Height of the scan area in mm (default 355.567)\n  -left float\n        Left margin in mm\n  -mode string\n        Scan mode: [CGRAY] (default \"CGRAY\")\n  -output string\n        Output file name for the scanned image - jpeg format\n  -product string\n        Product ID of the scanner (default \"0x02d0\")\n  -top float\n        Top margin in mm\n  -vendor string\n        Vendor ID of the scanner (default \"0x04f9\")\n  -width float\n        Width of the scan area in mm (default 211.881)\n```\n  \n## Protocol \u0026 Development\n\nWireshark filter for filtering usb pcaps:\n\n```wireshark\n# replace xxxx with proper usb addresses e.g. 1.2\n# this omits empty requests that obscure the view\n(usb.src matches \"^xxxx\" or usb.dst matches \"^xxxx\") and (frame.len != 64 or usb.transfer_type == 0x02)\n```\n\n### Protocol\n\nTake a look at [device.go](./device.go).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaciekmm%2Fbrscanner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaciekmm%2Fbrscanner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaciekmm%2Fbrscanner/lists"}