Hi
I am writing ANT+ device on pStorage and want to read back from memory during ANT+ stack init. I am trying to change the Device name on this snippet
No luck so far. Is there any other way of reading ANT+ device number from flash?
Hi
I am writing ANT+ device on pStorage and want to read back from memory during ANT+ stack init. I am trying to change the Device name on this snippet
No luck so far. Is there any other way of reading ANT+ device number from flash?
I guess there are various ways to do this, but how about just:
1. call sd_ant_channel_id_get() to get device number, device type, transmit type.
2. update device number
3. call sd_ant_channel_id_set() to set device number, device type, transmit type.
Hi Kenneth, I have tried this but no success. I have also tried look up online but no useful info. Do you have any example for changing ANT+ ID during App running?
Thanks
I would expect you would need to close channel, unassign, then update channel id, assign, and open channel again. Is that what you are doing?
Hi Kenneth,
That is correct. When I close, unassign, change device number , assign and open then I unable to find the device. It looks like slave stop sending ID.
Hi Kenneth,
That is correct. When I close, unassign, change device number , assign and open then I unable to find the device. It looks like slave stop sending ID.
Are you using ANTware II for instance to check the device?
What if you don't change the device number, but follow the same sequence, does it work then?
I have tried not to change device id and same problem.
I am not using ANTware II. I have garmin head unit that I am using to check if it display device ID.
sd_ant_channel_close
sd_ant_network_address_set
sd_ant_channel_id_set
sd_ant_channel_radio_freq_set
sd_ant_channel_period_set
sd_ant_channel_open
I do not know why but above pattern works for me. Its now changing ANT+ device number with out any issue.
Thanks for you help Kenneth.
Ah... Looks like all parameters must be set then, else I presume it will default some value.
Best regards,
Kenneth