简体   繁体   English

BLE SPP 是全双工的吗?

[英]is BLE SPP full duplex?

I'm working on a project that requires BLE Serial Profile.我正在做一个需要 BLE Serial Profile 的项目。

I have successfully implemented it, but now I'm wondering what happens when server is sending data to the client, and client wants to send data back (while server is still sending).我已经成功实现了它,但现在我想知道当服务器向客户端发送数据时会发生什么,而客户端想要发回数据(而服务器仍在发送)。 Is this handled on the low level with a queue or something similar?这是在低级别上用队列或类似的东西处理的吗?

Is there any risk that messages will get lost?是否存在消息丢失的风险?

Thanks for any help.谢谢你的帮助。

Bluetooth provides the effect of full duplex transmission through the use of time division duplex (TDD).蓝牙通过使用时分双工 (TDD) 提供全双工传输的效果。 In principle transmission and reception do not happen at the same time.原则上发送和接收不会同时发生。 So in your case there is no risk of collision (loss) of data packets.因此,在您的情况下,不存在数据包冲突(丢失)的风险。 时隙

As you can see "Central" and "Peripheral" have a window of 625us during which they transmit.如您所见,“Central”和“Peripheral”在传输期间有 625us 的 window。

For further details you can read "Timeslot" chapter of the base band specification in Core Bluetooth specification.有关更多详细信息,您可以阅读核心蓝牙规范中基带规范的“时隙”一章。 https://www.bluetooth.com/specifications/specs/core-specification-5-3/ https://www.bluetooth.com/specifications/specs/core-specification-5-3/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM