This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how/best way to send 3 bytes ~10 times per second via BLE

hi,

im a little lost with BLE at the moment. all i want to do is sending 3 bytes of data (sensor data) approximately 10 times (+- 5) a second (when the uC is not sleeping) via bluetooth using my nrf52832. my goal is minimal energy consumption.

which BLE example is closest to that scenario? how do i approach this best?

thank you :)

  • If you don't need reliable link (= you don't need to be 100% sure that listener received the message) then just modify adv. packet data on the flight (so run beacon example and use radio notification event or timer or other event to update adv. data which will go out during very next adv. interval on all 3 adv. channels). This seems to be the most power efficient solution. If you insist on reliable link then you need to set-up connection and run some protocol over GATT layer (typically). You can design simple profile and protocol yourself (after little bit of reading how GATT Server/Client works) or use Nordic BLE UART master/slave examples in the SDK (NUS = Nordic UART Service).

  • Thank you very much, exactly the answer i was looking for :) i think we dont need every message so i ll try to adjust the beacon example!

Related