CANhack.de CAN-Interface RKS+CAN
Diesel technology, engine technology, vehicle diagnostics, repair & maintenance.

CAN-Datenbytes richtig verstehen

 
New Topic 🔒 Locked 🔗 🖨 CANhack.de - Index » General
Author Message
michaelgierer3



Joined: 07/07/2017
Posts: 2
Karma: +0 / -0   Thank you, like it!


Free account, no CAN development support

Post07-07-2017, 18:41    Subject: CAN-Datenbytes richtig verstehen Translating...

[Translating...]

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
Back to top Profile PM
Paulius
Hacker
Hacker


Joined: 11/13/2013
Posts: 61
Karma: +7 / -0   Thank you, like it!


CAN Support

Post07-07-2017, 22:34    Subject: CAN-Datenbytes richtig verstehen Translating...

[Translating...]

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



Joined: 07/07/2017
Posts: 2
Karma: +0 / -0   Thank you, like it!


Free account, no CAN development support

Post07-07-2017, 23:11    Subject: CAN-Datenbytes richtig verstehen Translating...

[Translating...]

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)
Back to top Profile PM
New Topic 🔒 Locked 🔗 🖨 CANhack.de - Index » General
Similar articles and topics
Topic Forum
No new posts RKS+CAN Interface und KOBD2Check funktioniert nicht richtig CAN Software Tools and Software
Jump to:  
You cannot post new topics in this forum.