Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

ANT LEV profile non compiant

Rank

Total Posts: 8

Joined 2020-05-12

PM

Hello everyone,

I am conducting some analysis on the ANT+ protocol and I would like to ask for some clarifications regarding it.
We are performing control tests with both a "Garmin ebike remote" and a "Garmin edge explore". While testing with SimulANT+ set as an LED device, I noticed that they send a command formatted differently regarding the level of assistance to use. To change the level, page 16 is sent, but the fourth byte does not seem to comply with the protocol.
Here is how the data is read by SimulANT from Garmin ebike remote:
22701546 : Rx (Ack): [10][FF][EF][68][00][FC][DC][F5]
22703546 : Rx (Ack): [10][FF][EF][58][00][FC][DC][F5]
22706546 : Rx (Ack): [10][FF][EF][50][00][FC][DC][F5]
22709546 : Rx (Ack): [10][FF][EF][48][00][FC][DC][F5]
22711046 : Rx (Ack): [10][FF][EF][48][00][FC][DC][F5]
22713546 : Rx (Ack): [10][FF][EF][50][00][FC][DC][F5]
22715546 : Rx (Ack): [10][FF][EF][58][00][FC][DC][F5]
22717781 : Rx (Ack): [10][FF][EF][68][00][FC][DC][F5]
22719796 : Rx (Ack): [10][FF][EF][78][00][FC][DC][F5]

Here is how the data is read by SimulANT from Garmin edge explore:
22932546 : Rx (Ack): [10][FF][FF][38][00][00][01][00]
22937796 : Rx (Ack): [10][FF][FF][28][00][00][01][00]
22939546 : Rx (Ack): [10][FF][FF][18][00][00][01][00]
22941546 : Rx (Ack): [10][FF][FF][10][00][00][01][00]
22944046 : Rx (Ack): [10][FF][FF][08][00][00][01][00]
22947546 : Rx (Ack): [10][FF][FF][00][00][00][01][00]
22958546 : Rx (Ack): [10][FF][FF][08][00][00][01][00]
22965046 : Rx (Ack): [10][FF][FF][10][00][00][01][00]
22967296 : Rx (Ack): [10][FF][FF][18][00][00][01][00]
22969796 : Rx (Ack): [10][FF][FF][28][00][00][01][00]
22972046 : Rx (Ack): [10][FF][FF][38][00][00][01][00]
22984796 : Rx (Ack): [10][FF][FF][28][00][00][01][00]


In particular, it appears to me that the "Garmin edge explore" correctly sends the data, while the "Garmin ebike remote" sets the 7th bit of the fourth byte, which should be "reserved, set as 0".

Please could you help me?      

Image Attachments

page_16.pngcurr_travel_mode.png

Click thumbnail to see full-size image

RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

You have circled byte 3 bits 6-7, but refer to byte 4 bit 7. Both are sending byte 4 as all 0.

byte 3 bits 6-7 have been defined as apply or ignore bits. See "Current Assist Level Command Flag" bit 7 and "Current Regenerative Level Command Flag" bit 6 in SimulANT+.      

Signature

Ian Haigh

RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

byte 2 bit 4 set to 1 indicates that bytes 6 and 7 are man ID, set to 0 indicates that they are a controller ID (lower 2 bytes of ESN). See "ID Type" in SimulANT+.      

Signature

Ian Haigh

RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

byte 4 and 5 bits 10 - 15 are apply (0) or ignore (1) flags for:
- 10: Right turn signal
- 11: Left Turn Signal
- 12: High beam
- 13: Light
- 14: Front gear
- 15: Rear gear      

Signature

Ian Haigh

Rank

Total Posts: 8

Joined 2020-05-12

PM

Dear Ian,
please take a look carefully at the "travel mode byte" sent by both devices:

Garmin ebike remote is sending:
22701546 : [68]
22703546 : [58]
22706546 : [50]
22709546 : [48]
22711046 : [48]
22713546 : [50]
22715546 : [58]
22717781 : [68]
22719796 : [78]

while Garmin edge explore is sending:
22932546 : [38]
22937796 : [28]
22939546 : [18]
22941546 : [10]
22944046 : [08]
22947546 : [00]
22958546 : [08]
22965046 : [10]
22967296 : [18]
22969796 : [28]
22972046 : [38]
22984796 : [28]

it appears that the "Garmin edge explore" correctly sends the data, while the "Garmin ebike remote" sets the 7th bit of the "travel mode byte", which should be "reserved, set as 0".      
Rank

Total Posts: 8

Joined 2020-05-12

PM

haighi - 03 April 2023 09:48 AM
byte 2 bit 4 set to 1 indicates that bytes 6 and 7 are man ID, set to 0 indicates that they are a controller ID (lower 2 bytes of ESN). See "ID Type" in SimulANT+.


sorry but I think that these informations are not included in the ANT LEV profile document.
In the ANT LEV profile document the bits 4-7 of byte 2 are marked as "reserved, seto to 0xF value".
Please could you be more clear about that?      
RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

These are not documented in the profile document. Only SimulANT+.      

Signature

Ian Haigh

RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

"it appears that the "Garmin edge explore" correctly sends the data, while the "Garmin ebike remote" sets the 7th bit of the "travel mode byte", which should be "reserved, set as 0"."

6th bit is set not 7th to indicate ignore regenerative mode.      

Signature

Ian Haigh

Rank

Total Posts: 8

Joined 2020-05-12

PM

haighi - 03 April 2023 09:58 AM
These are not documented in the profile document. Only SimulANT+.


Please could you send me an updated document?
I need to work on the updated documentation to develop working product.
At the moment the only available document is ANT+ Device Profile rev 1.1 released on November 2011.
I think that it is really outdated.      
RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

That is the most up to date document.      

Signature

Ian Haigh

RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

Sorry "Current Assist Level Command Flag" and "Current Regenerative Level Command Flag" are being shown for pages other than display data page in SimulANT+. This is not correct.

These should only be shown when pressing "SendDataDisplayPage" from a LEV display simulator.      

Signature

Ian Haigh

Rank

Total Posts: 8

Joined 2020-05-12

PM

haighi - 03 April 2023 02:20 PM
That is the most up to date document.

Dear Ian,
It is not updated because in that document there is no information about bit 6 and bit 7 of byte 4 of page 16.
To develop the firmware we need to know what data to put into profile pages and it is absurd that ThisIsAnt has never updated the documentation even after 10 years.

Please could you check my screenshot and answer me fully.
     

Image Attachments

1.png2.png3.png

Click thumbnail to see full-size image

Rank

Total Posts: 8

Joined 2020-05-12

PM

haighi - 03 April 2023 02:20 PM
That is the most up to date document.


Hello there? are you still supporting us?      
RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

The document you have (1.1) is the latest. You can implement based on that.

Set reserved bits as per that document in pages you tx and do not parse reserved bits in pages you receive.

This implementation will be compatible with all ANT+ LEV displays.      

Signature

Ian Haigh

Rank

Total Posts: 8

Joined 2020-05-12

PM

Sorry, but is it clear for thisisant that those bits are not "reserved" but are used by some products?
So not only i have to parse them to handle them properly, also the LEV Profile is outdated.      
RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

Reserved means reserved for future use. It is clear that they are in use and we know how they are used (as I previously described). The profile document has not been updated to reflect the additions because they do not add to the functionality of the products involved, just complexity to the implementation and testing. Think of it as being that there was an experiment to see if the new items were useful and they are not, so they have not been published in the profile document.

You do not have to handle them at all. As previously described:
haighi - 19 April 2023 12:45 PM
The document you have (1.1) is the latest. You can implement based on that.

Set reserved bits as per that document in pages you tx and do not parse reserved bits in pages you receive.

This implementation will be compatible with all ANT+ LEV displays.


"All ANT+ LEV displays" includes the Garmin eBike Remote.

"So not only i have to parse them to handle them properly, also the LEV Profile is outdated." You do not need to parse them. See prior in this message "Set reserved bits as per [version 1.1 of the profile document] in pages you tx and do not parse reserved bits in pages you receive."      

Signature

Ian Haigh