In some vehicle, Increasing Data need to be limited for some car equitment.
To send the Increasing Data 0~0Fh, the higher bit need to be ANDed with 0x0F.
To send the Increasing Data F0h~FFh, the higher bit need to be ORed with 0xF0.

 

Example:
Down Button Message is
Dur: 0 Len: 4 ID:0683 Data:04 00 20 0D
Up Button Message is
Dur: 0 Len: 4 ID:0683 Data:04 00 20 FF
Increasing Data Index is 2
Increment is 1
Mask Type is “AND”
Mask is “FF 0F FF FF | FF FF FF FF ”

When the button is pressed and released, the messages are sent to the radio though BSGc like below.

Len: 4 ID:0683 Data:04 0C 20 0D
Len: 4 ID:0683 Data:04 0D 20 FF
Len: 4 ID:0683 Data:04 0E 20 0D
Len: 4 ID:0683 Data:04 0F 20 FF
Len: 4 ID:0683 Data:04 00 20 0D
Len: 4 ID:0683 Data:04 01 20 FF
Len: 4 ID:0683 Data:04 02 20 0D
Len: 4 ID:0683 Data:04 03 20 FF
Len: 4 ID:0683 Data:04 04 20 0D
Len: 4 ID:0683 Data:04 05 20 FF
Len: 4 ID:0683 Data:04 06 20 0D
Len: 4 ID:0683 Data:04 07 20 FF
….

Share with: