{"id":18818924,"url":"https://github.com/imagemlt/wfb-ng-termux","last_synced_at":"2026-01-15T22:30:17.580Z","repository":{"id":260665813,"uuid":"876541084","full_name":"imagemlt/wfb-ng-termux","owner":"imagemlt","description":"wfb-ng run in termux,driven by libusb without root ","archived":false,"fork":false,"pushed_at":"2024-12-09T06:20:48.000Z","size":7349,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-30T02:46:35.339Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/imagemlt.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":"2024-10-22T06:31:45.000Z","updated_at":"2024-12-09T06:20:52.000Z","dependencies_parsed_at":"2024-11-01T18:19:56.816Z","dependency_job_id":"7599d70c-479c-4986-a331-69fb5c9c42fa","html_url":"https://github.com/imagemlt/wfb-ng-termux","commit_stats":null,"previous_names":["imagemlt/wfb-ng-termux"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imagemlt%2Fwfb-ng-termux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imagemlt%2Fwfb-ng-termux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imagemlt%2Fwfb-ng-termux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imagemlt%2Fwfb-ng-termux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imagemlt","download_url":"https://codeload.github.com/imagemlt/wfb-ng-termux/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239753787,"owners_count":19691175,"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":[],"created_at":"2024-11-08T00:19:27.031Z","updated_at":"2026-01-15T22:30:17.517Z","avatar_url":"https://github.com/imagemlt.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wfb-ng-termux\nwfb-ng run in termux,driven by libusb without root \n\n## 使用方式\n### 依赖\n需要安装zerotermux和termux-api,从而启用termux访问usb设备的功能;\n安装以及换源完成后运行如下脚本安装依赖环境。\n```\napt install termux-usb libusb build-essential cmake libpcap libsodium libspdlog\n```\ntermux-usb的使用方式可以参考[Termux-usb](https://wiki.termux.com/wiki/Termux-usb)\n\n### 编译\n```shell\ncmake .\nmake\n```\n\n### 运行\n1. 插入网卡后，不要让别的app访问，在termux中执行`termux-usb -l` ，获取到usb设备列表；\n2. 执行`termux -r 上一步查询到的的设备`,并且允许termux访问\n3. 执行`termux-usb -e ./wfb_tx.sh 上一步的设备` 即可运行。wfb_tx.sh中的c参数即为信道，E参数为txpower功率级别,其它参数和wfb_tx的参数一致。\n4. `nc -u 127.0.0.1 5600`连接5600端口，即可测试发送udp数据。\n\n## TODO\n- [x] txpower修改后的测试\n- [ ] 简化termux-usb调用流程到一个脚本里面\n- [x] libusb调用方式修改为使用submit_transfer\n- [ ] submit_transfer是否需要建立一个池子防止出现打开的请求过多的bug?\n- [ ] 内存优化：是否需要减少拷贝场景?\n- [ ] 使用LD_PRELOAD hook wfb-ng二进制文件，避免copy代码\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimagemlt%2Fwfb-ng-termux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimagemlt%2Fwfb-ng-termux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimagemlt%2Fwfb-ng-termux/lists"}