开发者

What's the best Bluetooth mode to use for streaming data?

开发者 https://www.devze.com 2023-03-06 23:44 出处:网络
I have a microcontroller collecting sensor data at a rate of about 4 Hz. I would like to send this data over Bluetooth to a remote entity. I\'m thinking the serial port profile (SPP) would be best, si

I have a microcontroller collecting sensor data at a rate of about 4 Hz. I would like to send this data over Bluetooth to a remote entity. I'm thinking the serial port profile (SPP) would be best, since it emulates a开发者_StackOverflow中文版 physical cable. Under normal usage, it would not be unreasonable to expect the connection to be held open for 10 to 12 hours at a time.

Has anyone done any work in this field? Does anyone know the best profile to use, or any resources to use as reference? Thanks in advance.


Yup I'd use SPP/RFCOMM. That will be supported in all Bluetooth versions and all implementations (except for the very very very basic which might not support RFCOMM/SPP). There shouldn't be any problem with keeping the connection open for a long time.


Bluetooth 2.1 supports a streaming mode over a basic RFCOMM channel, if your API will let you configure it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号