{"id":18896988,"url":"https://github.com/maciek134/libb6","last_synced_at":"2026-03-01T22:04:31.567Z","repository":{"id":146382746,"uuid":"129716881","full_name":"maciek134/libb6","owner":"maciek134","description":"A C++ library for interfacing with the SkyRC B6* chargers.","archived":false,"fork":false,"pushed_at":"2018-04-20T07:30:45.000Z","size":30,"stargazers_count":12,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T14:42:29.414Z","etag":null,"topics":["b6","battery","charger","li-ion","lipo-charger","protocol","skyrc","usb-hid"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maciek134.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":"2018-04-16T09:16:54.000Z","updated_at":"2025-07-09T19:40:38.000Z","dependencies_parsed_at":"2023-05-15T22:30:47.852Z","dependency_job_id":null,"html_url":"https://github.com/maciek134/libb6","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maciek134/libb6","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maciek134%2Flibb6","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maciek134%2Flibb6/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maciek134%2Flibb6/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maciek134%2Flibb6/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maciek134","download_url":"https://codeload.github.com/maciek134/libb6/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maciek134%2Flibb6/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29986242,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T21:06:37.093Z","status":"ssl_error","status_checked_at":"2026-03-01T21:05:45.052Z","response_time":124,"last_error":"SSL_read: 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":["b6","battery","charger","li-ion","lipo-charger","protocol","skyrc","usb-hid"],"created_at":"2024-11-08T08:35:57.060Z","updated_at":"2026-03-01T22:04:31.523Z","avatar_url":"https://github.com/maciek134.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"libb6\n=====\nThis is a library for interfacing with SkyRC B6xx series chargers. It was tested on B6AC v2, but should work fine on \nother chargers from this series. Some of the packets are based on lachs0r's incredible work on https://github.com/lachs0r/b6mon \nand the rest were sniffed and analyzed with Wireshark.\n\nInstallation\n------------\nDependencies:\n```\nlibusb-1.0\n```\n\nRun these commands to install the library and it's headers on your system:\n```bash\n$ mkdir build\n$ cd build\n$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release\n$ make\n$ sudo make install\n```\n\nEither run the programs that use it as root (**not recommended**) or create an udev rule similar to this one:\n```udev\nSUBSYSTEM==\"usb\", ATTRS{idVendor}==\"0000\", ATTRS{idProduct}==\"0001\", MODE:=\"666\", GROUP=\"plugdev\"\nKERNEL==\"hidraw*\", ATTRS{idVendor}==\"0000\", ATTRS{idProduct}==\"0001\", MODE=\"0666\", GROUP=\"plugdev\"\n```\n\nExample\n-------\nHere is an example that reads the number of cells the charger supports:\n\n```cpp\n#include \u003ciostream\u003e\n#include \u003cb6/Device.hh\u003e\n\nint main() {\n  auto dev = new b6::Device(); // the constructor handles libusb init, claiming the device interface etc.\n  \n  std::cout \u003c\u003c \"Number of cells: \" \u003c\u003c dev-\u003egetCellCount() \u003c\u003c std::endl;\n  \n  delete dev; // this releases the device, reattaches the kernel driver and frees libusb\n  return 0;\n}\n```\n\n[Documentation](https://github.com/maciek134/libb6/wiki/Documentation)\n-------------\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaciek134%2Flibb6","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaciek134%2Flibb6","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaciek134%2Flibb6/lists"}