Hello,
Does anyone have an idea how the CS (Customer Satisfaction) is calculated in the messages below?
Code: |
15:55:07:0184 Rx 1 0x0A8 s 8 1D D0 7F 89 8C 64 00 00 .ЉŒd..
15:55:07:0286 Rx 1 0x0A8 s 8 67 D1 7F 89 8C 64 00 00 gщŒd..
15:55:07:0386 Rx 1 0x0A8 s 8 8B D2 7F 89 8C 64 00 00 ‹Ò‰Œd..
15:55:07:0486 Rx 1 0x0A8 s 8 64 D3 7F 89 8C 64 00 00 dÓ‰Œd..
15:55:07:0586 Rx 1 0x0A8 s 8 C8 D4 7F 89 8C 64 00 00 ÈÔ‰Œd..
15:55:07:0685 Rx 1 0x0A8 s 8 A2 D5 7F 89 8C 64 00 00 ¢Õ‰Œd..
15:55:07:0786 Rx 1 0x0A8 s 8 92 D6 7F 89 8C 64 00 00 ’Ö‰Œd..
15:55:07:0886 Rx 1 0x0A8 s 8 87 D7 7F 89 8C 64 00 00 ‡×‰Œd..
15:55:07:0984 Rx 1 0x0A8 s 8 A5 D8 7F 89 8C 64 00 00 ¥Ø‰Œd..
15:55:07:1089 Rx 1 0x0A8 s 8 D7 D9 7F 89 8C 64 00 00 ×Ù‰Œd..
15:55:07:1186 Rx 1 0x0A8 s 8 88 DA 7F 89 8C 64 00 00 ˆÚ‰Œd..
15:55:07:1285 Rx 1 0x0A8 s 8 45 DB 7F 89 8C 64 00 00 EÛ‰Œd..
15:55:07:1384 Rx 1 0x0A8 s 8 5B DC 7F 89 8C 64 00 00 [܉Œd..
15:55:07:1488 Rx 1 0x0A8 s 8 48 DD 7F 89 8C 64 00 00 H݉Œd..
15:55:07:1589 Rx 1 0x0A8 s 8 FA DE 7F 89 8C 64 00 00 úÞ‰Œd..
15:55:07:1685 Rx 1 0x0A8 s 8 75 DF 7F 89 8C 64 00 00 u߉Œd..
15:55:07:1784 Rx 1 0x0A8 s 8 1D D0 7F 89 8C 64 00 00 .ЉŒd..
15:55:07:1886 Rx 1 0x0A8 s 8 67 D1 7F 89 8C 64 00 00 gщŒd..
15:55:07:1986 Rx 1 0x0A8 s 8 8B D2 7F 89 8C 64 00 00 ‹Ò‰Œd..
15:55:07:2089 Rx 1 0x0A8 s 8 64 D3 7F 89 8C 64 00 00 dÓ‰Œd..
|
The CS (Chip Select) is located in byte 1, and the low nibble of byte 2 contains a counter. When the data is identical, the CS value is also the same. However, if you compare the CS values when the counter changes from 0 to 1, you'll see that they are significantly different, which indicates that a simple XOR operation doesn't apply. Even if you replace the CS with a 256-byte hash table, an XOR operation would not be appropriate, as demonstrated by:
Code: |
RX 1 0x0A8 s 8 A2 DB DF 93 80 64 7C 09
RX 1 0x0A8 s 8 A2 DE FF 93 80 64 7A 09 |
Everyone has the A2, but they are technically completely different in terms of their core structure (CS).
Regards,
Jackson.