This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

S310 Adding BLE functionality to ANT application

I was wondering if you could advise me on the best way of adding in BLE functionality to an existing ANT application. Is it simpler to have both transmitting at the same time or to switch between them. What changes typically have to be made to add BLE functionality to an ANT application?

The application I have written closely resembles the ANT bicycle power sensor example and is written to work on the S310... Are there any examples I should look at for adding a BLE bicycle power sensor or is there any information yoou would reccomend?

Is it a difficult task to add both BLE and ANT?

  • There is an example for ANT+ heart rate profile running together with BLE in examples\multiprotocol\ble_ant_app_hrm

  • That's a heart rate MONITOR example, where only messages are received, and nothing is sent. That's the easy part, as you only have to hook to the RX events and do whatever you need. What I find most difficult is the transmitting part, as it seems that in ANT mode you transmit when the radio signals it has ended processing the last previous ANT message, while in BLE the examples set a timer to do the task of sending BLE messages at regular intervals. I'm not sure which one is the correct way, and if you use both mixed, problems may arise if you try to send ANT message while the timer has started a BLE transmission. You can end up losing messages and that's not pretty.

  • @Nestor Matas If there is something you find difficult I recommend you add a new question explaining.

  • ANT+ heart rate belt can be replaced by ANTware ANT+ master. There is a posibility to send reverse broadcast from mentioned example application (ANT_HRMRX_ANT_CHANNEL slave) EVERY EVENT_RX (246ms spacing) back to ANTware master but you must do that manually with sd_ant_broadcast_message_tx. ANTware will show you, how many packets are lost.

Related