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

CAN-Datenbytes richtig verstehen

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



Iscritto il: 07/07/2017
Messaggi: 2
Karma: +0 / -0   Grazie, mi piace!


Account gratuito, nessun supporto sviluppo CAN

Messaggio07-07-2017, 18:41    Oggetto: CAN-Datenbytes richtig verstehen Traduzione in corso...

[Traduzione in corso...]

Hi Leute,


ich bin gerade dabei, den CAN-Bus eines Traktors auszulesen und möchte die Motordrehzahl auslesen.

Im J1939-Companion-Spreadsheet hat die Motordrehzahl aka 'engine speed' die PGN 61444 (dez.), was F004 (hex.) entspricht. Auch sollte die Motordrehzahl in den Bytes 4-5 zu finden sein.

Nun habe ich mir die entsprechende CAN-Message gesucht:

1592) 1926.5 Rx 0CF00400 8 0C FF 7D D0 03 27 F0 86

Die Position-Bytes 4-5 sind D0 03. Daher rechne ich diese hex.-Zahl in eine dezimale Zahl um, aber bekomme 53251 heraus. Diese Zahl muss ich laut Einheit noch mal 0,125 multiplizieren, somit kommt 6656 heraus.

Wie jeder weiß, stimmt dieser Wert sicherlich nicht.
Was habe ich nun falsch gemacht?

Danke für Eure Hilfe, LG Michael
Torna su Profilo MP
Paulius
Hacker
Hacker


Iscritto il: 13/11/2013
Messaggi: 61
Karma: +7 / -0   Grazie, mi piace!


Supporto CAN

Messaggio07-07-2017, 22:34    Oggetto: CAN-Datenbytes richtig verstehen Traduzione in corso...

[Traduzione in corso...]

maybe endianness problem?
its not big endian, but little endian.
So in your case : 0x03D0 --> 976dec.
With factor this value is quite to small...
Torna su Profilo MP
michaelgierer3



Iscritto il: 07/07/2017
Messaggi: 2
Karma: +0 / -0   Grazie, mi piace!


Account gratuito, nessun supporto sviluppo CAN

Messaggio07-07-2017, 23:11    Oggetto: CAN-Datenbytes richtig verstehen Traduzione in corso...

[Traduzione in corso...]

Yeah, thank you very much!

On some other parameters, it fits pretty good.

Maybe it's because I've just started the engine at this time and the engine speed is currently increasing ... (And because of the high transmitting rate)
Torna su Profilo MP
Nuovo argomento 🔒 Bloccato 🔗 🖨 CANhack.de - Indice » Generale
Articoli e argomenti simili
Argomento Forum
Nessun nuovo messaggio RKS+CAN Interface und KOBD2Check funktioniert nicht richtig Strumenti software CAN e software
Vai a:  
Non puoi scrivere nuovi argomenti in questo forum.