bt spp 发送数据效率问题
bt spp 发送数据效率问题
一端使用 esp32 的 bt_spp_vfs_acceptor 文件的 write 循环发送,PC 端使用 socket recv 循环接收,接收速率只能达到 20kbytes/s, 如何提高速率?PC 端使用 socket 是否也是 SPP 协议?是否需要指定?谢谢。
Re: bt spp 发送数据效率问题
Q: How can we reach the maximum throughput when using SPP?
A: The default MTU size of classic Bluetooth SPP on ESP32 is 990 bytes, and higher throughput can be achieved in the case that data chunck size is close to the MTU size or multiple of MTU size. For example, sending 100 bytes data per second is much better than sending 10 bytes every 100 milliseconds.
A: The default MTU size of classic Bluetooth SPP on ESP32 is 990 bytes, and higher throughput can be achieved in the case that data chunck size is close to the MTU size or multiple of MTU size. For example, sending 100 bytes data per second is much better than sending 10 bytes every 100 milliseconds.
Who is online
Users browsing this forum: Baidu [Spider] and 7 guests