Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Transmit problems, sort of…

Rank

Total Posts: 13

Joined 2019-09-26

PM

Hi,

I have been playing around with a bike trainer (FE) and have been successful in controlling the % grade, target power, user configuration, and a few other things. for debug i am logging nearly everything i send and receive. i notice occasionally that my sends result in a failure. i am using C# if that matters. the call to ANT_Channel.sendAcknowledgedData() reports back a ANT_ReferenceLibrary.MessagingReturnCode enum value and i get "Fail" sometimes. right now i am not handling these errors so for instance, when sending a message to set the target power i am immediately following up another call to ANT_Channel.sendAcknowledgedData() in order to get the FE's command status. the command status request is sent successfully but the target power was not, however, when the command status is sent from the FE back to me i can see that the target power was set properly.

the question i now have is what does "Fail" mean? i assumed that it meant that the ANT+ driver/dongle could not send or that it did but the FE did not receive but the log indicates otherwise. it clearly shows that the target power was set. a snippit of my log is shown below. times are from the ANT+ interface. every send i perform in a separate thread and you can see those threads exiting. 1000 ms are given for a send timeout. the only failure in this log takes at most 22:44.558 - 22:44.306 = 252 ms. the update rate of the FE is ~250ms, i doubt this is a coincidence.

thanks,
scott



22:44.055 Channel 1: Rx BROADCAST_DATA_0x4E (0x4E)::01-19-57-FF-6E-45-36-00-30
22:44.306 Channel 1: Rx BROADCAST_DATA_0x4E (0x4E)::01-1A-B1-B1-CF-9E-6A-57-30
setting power: 60 watts, 0x00F0, 27.77778 % FTP
TX: 31-FF-FF-FF-FF-FF-F0-00
22:44.555 Channel 1: Rx BROADCAST_DATA_0x4E (0x4E)::01-E0-FF-FF-FF-FF-FF-FF-00
TX return code: Fail
Exception thrown: 'ANT_Managed_Library.ANT_Exception' in ANT_NET.dll
22:44.558 Channel 1: Rx RESPONSE_EVENT_0x40 (0x40)::01-01-06 (EVENT_TRANSFER_TX_FAILED_0x06)
The thread 0x3704 has exited with code 0 (0x0).
TX: 46-FF-FF-FF-FF-04-47-01
Exception thrown: 'ANT_Managed_Library.ANT_Exception' in ANT_NET.dll
22:44.806 Channel 1: Rx RESPONSE_EVENT_0x40 (0x40)::01-01-02 (EVENT_RX_FAIL_0x02)
22:45.055 Channel 1: Rx BROADCAST_DATA_0x4E (0x4E)::01-50-FF-FF-04-20-00-01-00
TX return code: Pass
Exception thrown: 'ANT_Managed_Library.ANT_Exception' in ANT_NET.dll
22:45.067 Channel 1: Rx RESPONSE_EVENT_0x40 (0x40)::01-01-05 (EVENT_TRANSFER_TX_COMPLETED_0x05)
The thread 0xb84 has exited with code 0 (0x0).
22:45.305 Channel 1: Rx BROADCAST_DATA_0x4E (0x4E)::01-10-19-38-7A-24-1A-FF-34
Exception thrown: 'ANT_Managed_Library.ANT_Exception' in ANT_NET.dll
22:45.555 Channel 1: Rx RESPONSE_EVENT_0x40 (0x40)::01-01-02 (EVENT_RX_FAIL_0x02)
22:45.805 Channel 1: Rx BROADCAST_DATA_0x4E (0x4E)::01-47-31-03-00-FF-FF-F0-00
Exception thrown: 'ANT_Managed_Library.ANT_Exception' in ANT_NET.dll
22:46.055 Channel 1: Rx RESPONSE_EVENT_0x40 (0x40)::01-01-02 (EVENT_RX_FAIL_0x02)
22:46.305 Channel 1: Rx BROADCAST_DATA_0x4E (0x4E)::01-47-31-03-00-FF-FF-F0-00      
Rank

Total Posts: 17

Joined 2013-02-23

PM

Hi Scott,

If you did not get an acknowledgement for a message that you have sent, then it can be that:

1. Your message was not received on the FE.
2. Your message was received, but you did not receive the acknowledgement.

From your side, these two scenarios look exactly the same.