gpt4 book ai didi

java - 与android的蓝牙通信中的错误检测

转载 作者:太空宇宙 更新时间:2023-11-04 12:21:43 25 4
gpt4 key购买 nike

我有一个 Sparkfun "BlueSmirf"蓝牙模块(基于 Rovings 的 RN-41 模块),我用它在微 Controller 和我的 Java 应用程序之间传输串行数据。

现在我当然想确保我的数据包按预期到达 - 所以我必须实现某种 error detection and correction两侧或这已包含在蓝牙堆栈中?

根据this answer from Dennis Mathews我不需要担心 SPP 上的数据损坏。 Sparkfun tutorial说“这些蓝牙调制解调器可以与任何其他支持 SPP 的蓝牙设备通信”。我想这意味着我的手机属于此列表,因为我可以与 BlueSmirf 通信。

我是否正确理解这一点 - 意思是 - 我不必关心错误控制?

编辑:根据蓝牙SPP specification :

For any products that will be transferring large data files and where the receiving device will be subject to radio interference causing packet losses, it is recommended that the Error Control feature in L2CAP (Core Specification V3.0 and later) be utilized by configuring the channel to use Enhanced Retransmission mode.

很明显这不是默认的,必须以某种方式进行配置,还是我遗漏了一些东西?

最佳答案

Am I understanding this correctly - meaning - I do not have to care about error control?

正确!如果您进行错误控制,那么也不应该出现任何错误,但通常不需要任何控制。您也可以在不进行错误检查的情况下使用它。

关于java - 与android的蓝牙通信中的错误检测,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38802211/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com