A message received from the HDV will be formatted as follows:
<01><05><02><06><C7><CC><ED><0D><67><80><20><00><08><F0><7D><DA><00><
00><FF><FF><DA><C9>
The < > are placeholders and are NOT transmitted with the data. ** = value changes with message.
Byte | Byte | Function |
Number | Value |
|
1 | 01 | Start of frame |
2 | 05 | Control bytes |
3 | 02 | ID byte 02 = J1939 message |
4 | 06 | Time stamp MSB ** |
5 | C7 | Time stamp MSB |
6 | CC | Time stamp MSB |
7 | ED | Time stamp LSB ** |
8 | 0D | Number of data bytes to follow (13 dec) ** |
9 | 67 | First byte of arbitration field ** |
10 | 80 | Second byte of arbitration field ** |
11 | 20 | Third byte of arbitration field ** |
12 | 00 | Fourth byte of arbitration field ** |
13 | 08 | Number of data bytes in bus message ** |
14 | F0 | Data bytes ** |
15 | 7D | Data bytes ** |
16 | DA | Data bytes ** |
17 | 00 | Data bytes ** |
18 | 00 | Data bytes ** |
19 | FF | Data bytes ** |
20 | FF | Data bytes ** |
21 | DA | Data bytes ** |
22 | C9 | Checksum ** |
Function code 02 sends data to the J1939 bus.
The transmit code is set up as follows: (01, 06, 02, 02, XX, XX, XX, XX, DD, YY, YY, YY, YY, YY, YY, YY, YY, CS). The header starts with 01. There are six control bytes (06). The control code is (02). The transmit command is (02). The arbitration field is filled out as shown above. There is also a worksheet to help fill out this field. Next is the number of data bytes in the data payload. The data payload for the message is entered in the data field. After a transmission is successfully sent out and confirmed by at least one active node, an acknowledge message is sent to the PC
(01, 01, 02, 00, 04). There is a form on page 33 to help set up the arbitration field.
22 | HDV100A3 Command & Response | |
B&B Electronics | 707 Dayton Rd. | |
PH (815) | FAX (815) |