Advantages of only advertising data vs connecting BLE devices

☆樱花仙子☆ 提交于 2019-12-11 07:43:12

问题


Let Say I have a peripheral that is advertising data that is encoded into its UUID . The central scanning sees this UUID and and knows to turn the hexadecimal UUID to decimal and from there take out certain numbers by groups such as the first 4, then the next 6, then the next 4. It has certain functions to put these numbers into. Is there any advantages of this instead of connecting to the central device and then just trading information. Would it be faster? What about when you take into account multiple centrals?


回答1:


Advantages:

  • Practically a broadcasting solution, as such, any number of clients can be served at the same time
  • Similar scheme is used for beacons

Disadvantages:

  • In iOS, advertisement data is not designed to be updated frequently. Frequent changes may lead to stack corruption.
  • Very low data rates can be achieved this way.

It seems to be a general issue that broadcasting is not supported with BLE implementations. If you have to communicate to a great number of peers, then IP based solutions may better suit your needs. (Detect with BLE and communicate on IP.) There are countless options to choose from, and which one is best highly depends on your actual application.



来源:https://stackoverflow.com/questions/20808879/advantages-of-only-advertising-data-vs-connecting-ble-devices

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!