Hi.
Because I can not connect to an ANT generic channel to receive 8 bytes and then share that data with different data fields, I did read that each data field should communicate with an ANT unique channel. I did that, I am writing my own firmware for a board with NRF52840 and I am using the simulator as also an Edge 830 for testing.
The data fields work as expected, mainly if is only one but as soon I start to add more to my screen, in the limit of 8 or 10, they are not able to connect, just some connect but others do not . Also there is a lot of dropping - not receiving messages like for 5 seconds while should receive 2 messages for second.
Please help me to have ANT on 10 different data fields.
On my code I am checking for receiving a message every xx seconds and if not, I close and then open again the ANT channel. I am checking this only after the amount of seconds for searching timeout.
NOTE: Added to the ANT generic channels, I also have ANT+ LEV and Bluetooth, all working simultaneous.
----
After more days testing different code and seeing others code CIQ on Github for Ant generic channels, I found the ANT+ LEV data fields (but this fields for ANT+ LEV are Garmin native ones!!) never drops - quick connects and never drops, but my fields take long time to connect and drop randomly.
To be clear, I implemented both the ANT+ LEV firmware as also ANT generic channels and I did follow the Nordic SDK for that. For the Garmin Edge data fields, the difference is that ANT+ LEV is native implemented from Garmin and the ANT generic was implemented by me, after looking at the Garmin SDK and many examples on Github from other developers with their apps on the Garmin store.
After all this days testing and testing, I do not have more ideas and I think the issue may be Garmin limiting the time / power on the ANT for the apps we develop but giving full priority to their own native apps :-(
----
My code: https://github.com/OpenSourceEBike/TSDZ2_wireless/tree/Garmin_test/EBike_wireless_Garmin/source
And the firmware here: https://github.com/OpenSourceEBike/TSDZ2_wireless/blob/Garmin_test/EBike_wireless_TSDZ2/firmware/main.c
I am developing technology for EBikes, to give the motors wireless communications and the project is OpenSource here: https://opensourceebike.github.io/