Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imagemlt/wfb-ng-termux
wfb-ng run in termux,driven by libusb without root
https://github.com/imagemlt/wfb-ng-termux
Last synced: about 8 hours ago
JSON representation
wfb-ng run in termux,driven by libusb without root
- Host: GitHub
- URL: https://github.com/imagemlt/wfb-ng-termux
- Owner: imagemlt
- Created: 2024-10-22T06:31:45.000Z (17 days ago)
- Default Branch: main
- Last Pushed: 2024-11-01T18:15:45.000Z (7 days ago)
- Last Synced: 2024-11-01T18:19:22.069Z (7 days ago)
- Language: C++
- Size: 6.01 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wfb-ng-termux
wfb-ng run in termux,driven by libusb without root## 使用方式
### 依赖
需要安装zerotermux和termux-api,从而启用termux访问usb设备的功能;
安装以及换源完成后运行如下脚本安装依赖环境。
```
apt install termux-usb libusb build-essential cmake libpcap libsodium libspdlog
```
termux-usb的使用方式可以参考[Termux-usb](https://wiki.termux.com/wiki/Termux-usb)### 编译
```shell
cmake .
make
```### 运行
1. 插入网卡后,不要让别的app访问,在termux中执行`termux-usb -l` ,获取到usb设备列表;
2. 执行`termux -r 上一步查询到的的设备`,并且允许termux访问
3. 执行`termux-usb -e ./wfb_tx.sh 上一步的设备` 即可运行。wfb_tx.sh中的c参数即为信道,E参数为txpower功率级别,其它参数和wfb_tx的参数一致。
4. `nc -u 127.0.0.1 5600`连接5600端口,即可测试发送udp数据。## TODO
- [x] txpower修改后的测试
- [ ] 简化termux-usb调用流程到一个脚本里面
- [ ] libusb调用方式修改为使用submit_transfer
- [ ] submit_transfer是否需要建立一个池子防止出现打开的请求过多的bug?
- [ ] 内存优化:是否需要减少拷贝场景?