Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于蓝牙传输速率反馈 #1

Open
xiaoyupizi opened this issue Nov 11, 2018 · 1 comment
Open

关于蓝牙传输速率反馈 #1

xiaoyupizi opened this issue Nov 11, 2018 · 1 comment

Comments

@xiaoyupizi
Copy link

很感谢您写的这个demo,对我工作中使用蓝牙帮助很大,
我在Ble 开发中有些问题网上很少有答案,比如蓝牙传输速率,
传输速率提高分两个方向:
1 Android 穿到 外围设备的速率,可以通过requestMtu,在
onMtuChanged 回调中获取申请了多少Mtu, 默认23, 减去1个op, 2个句柄,=20个字节(网上都说最多传20个字节...)
2 外为设备传给Android, 如果每次传20个字节,最少间隔7.5ms, 1.25ms一个步距(5个),
每个间隔时间最多传6个包, 120个字节. 因为外围设备(大多是单片机和蓝牙模块透传的) 写数据也有延迟,10字节/1ms, 最后是 没调成120字节/16ms,可以稳定传输20k数据.

@lioilwin
Copy link
Owner

@xiaoyupizi
多谢补充!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants