Hello,
I am using a PC with a nRF24AP2-USB based USB dongle. I wrote a program to get the incomming messages of an ANT device. Works all fine. To know which device is beeing received, I turned on the extended messaging format. I used the Lib Config (0x6E) message to enable/disable the three possible extentions. Also works fine, but: The RSSI extended information is 4 bytes and not the 3 bytes documented in "ANT_Message_Protocol_and_Usage_Rev_5.0.pdf".
I looked in the ant_parameter.h header-file and found:
#define ANT_EXT_MESG_RSSI_FIELD_SIZE ((uint8_t)4)
I tried to find more information in this header-file and found some more defines with RSSI_TYPE, but I can not find the clue how to use these defines.
Also I looked at the ANT_AN16_RSSI_Extended_Information.pdf. In this document the RSSI extended format is still 3 bytes.
MY QUESTION: Can you specify how I should interpret the 4 bytes RSSI extended format?
Some outputs in hex:
normal message a4094e0085018017f03dac0392
with device ID a40e4e0086009d000b02ac038062365601da
with RSSI a40e4e00020200000000b00340100068006f
with timestamp a40c4e0005018017f03d90032095920c
with all a4144e00847eb603a6039803e0623656011000680034f0d0
Kind regards, Erik Postma