CANhack.de CAN interfaccia RKS+CAN
Tecnica diesel, tecnica motori, diagnosi auto, riparazione e manutenzione.

Hilfe zur CS Berechung

 
Nuovo argomento 🔒 Bloccato 🔗 🖨 CANhack.de - Indice » Generale
Autore Messaggio
Jackson



Iscritto il: 08/04/2019
Messaggi: 6
Karma: +1 / -0   Grazie, mi piace!


Supporto Premium

Messaggio16-04-2019, 23:16    Oggetto: Hilfe zur CS Berechung Traduzione in corso...

[Traduzione in corso...]

Hallo,

hat jemand ne Idee wie die CS in den u.g. Botschaften errechnet wird?

Codice:
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..


Die CS befindet sich in Byte 1, in Byte 2 LowNibble ein Zähler. Bei gleichen Daten ist auch die CS gleich, wenn man sich den CS Unterschied von z. B. Zähler 0 zu 1 anschaut ist die CS schon gravierend anders, was für nicht für eine XOR Verknüpfung steht. Selbst wenn man die CS durch eine 256 Byte Hash-Tabelle ersetzt passt eine XOR Verknüpfung nicht, siehe:
Codice:
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


Alle haben A2 als CS sind aber XOR technisch komplett anders.

Gruß
Jackson


Ultima modifica il 16-04-2019, 23:17, modificato 1 volta in totale.
Torna su Profilo MP
postmann
CAN-Profi
CAN-Profi


Iscritto il: 23/05/2013
Messaggi: 142
Karma: +63 / -0   Grazie, mi piace!


Supporto CAN

CAN-Diagnose e Jackson piace questo.
Messaggio20-04-2019, 9:50    Oggetto: Hilfe zur CS Berechung Traduzione in corso...

[Traduzione in corso...]

Je nach dem, welches Verfahren angewandt wird, ist es eine Polynomrechnung mit variablen Startwert.

Bei dem SQC (dem Zähler) ist eine Tabelle mit Startwerten hinterlegt, die als Startpolynom dienen. Die Vorgehensweise ist in der AUTOSAR Spec definiert, such mal nach "AUTOSAR E2E Protocol Profil 5"
Torna su Profilo MP
Jackson



Iscritto il: 08/04/2019
Messaggi: 6
Karma: +1 / -0   Grazie, mi piace!


Supporto Premium

Messaggio13-05-2019, 0:44    Oggetto: Hilfe zur CS Berechung Traduzione in corso...

[Traduzione in corso...]

@postman: laut AUTOSAR E2E Protocol Profil 5 wäre die CS dann aber 16-Bit und der Counter 8-Bit.

In meinem Log (Audi Q7) ist der Counter aber nur 4-Bit und die CS entweder 8-Bit oder 12-Bit wenn man das HN aus Byte2 dazu rechnet.

Hast du eventl. noch Tipps für mich wie ich die CS berechnen kann?

Gruß
Jackson
Torna su Profilo MP
postmann
CAN-Profi
CAN-Profi


Iscritto il: 23/05/2013
Messaggi: 142
Karma: +63 / -0   Grazie, mi piace!


Supporto CAN

CAN-Diagnose piace questo.
Messaggio13-05-2019, 20:43    Oggetto: Hilfe zur CS Berechung Traduzione in corso...

[Traduzione in corso...]

Nun, es gibt verschieden CRC Verfahren bei Autosar. Profil 11 z.B. nutzt nur einen 4 Bit Counter. Allerdings kann es auch sein, das Die Counterlänge nicht komplett genutzt wird. So verwenden verschieden Hersteller das Profil 5 mit eine 4 bit Counter, dem dann 16 Startpolynome hinterlegt sind.
Die Länge vom SQC ist nur für das Routing wichtig, da beim PDU Routing Countersprüngen von Netzwerk zu Netzwerk vorkommen können.Da reicht ein 4 Bit SQC aus. (wenn man nicht einen LIN mit CRC betreiben möchte)
Torna su Profilo MP
Nuovo argomento 🔒 Bloccato 🔗 🖨 CANhack.de - Indice » Generale
Articoli e argomenti simili
Argomento Forum
Nessun nuovo messaggio CAN Hilfe Sistema CAN-USB CANhack.de: RKS+CAN
Nessun nuovo messaggio Hilfe bei der Wegbeschreibung Strumenti software CAN e software
Nessun nuovo messaggio newbee braucht hilfe Bus CAN Generale
Nessun nuovo messaggio Anfänger: Hilfe für GOLF 5 Bus CAN Generale
Vai a:  
Non puoi scrivere nuovi argomenti in questo forum.