B&B Electronics HVD100A3 manual Message received from the HDV will be formatted as follows

Page 26

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 –1 **

6

CC

Time stamp MSB –2 **

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 Manual-1306cr

B&B Electronics --

707 Dayton Rd.

-- PO Box 1040 -- Ottawa, IL 61350

PH (815) 433-5100 --

FAX (815) 433-5104

Image 26
Contents HDV100A3 Command Response Protocol Page Table of Contents Do Not Transmit Any Messages to the network Intelligent Mode Verification IntroductionSOF Intelligent Mode Command ProtocolIntelligent Mode Message Structure Control Field StructureFormatting the Control Bytes Command Acknowledgement Detailed Description of General Function CodesRS-232 Baud Rate Setup HDV100A3 Command & Response Manual-1306cr Setting Baud 1, Baud Baud Rate Setup Table UB3 Baud Rate ExampleByte Byte Function Number Value Hex Byte Function Number Value Reply from HDV100A3Function code 20 = stop time stamping Master Reset Command Vendor InformationByte Byte Value Byte Function Number Hex J1708 CommandsReceiving Data from the J1708 Bus Function code 10 hex stop receive Transmitting Data to the J1708 Bus Priority Byte Value Binary Value Hex ValueID bytes 9 = transmit OK Set Filter Off Byte Function Number Value J1708 Message FilterSet Filter Active Byte Function Number Value Broadcast Message DataByte 4 Values Byte 6 Priority ValuesJ1939 Commands Start Receive on J1939 Bus Stop Receive on J1939 BusArbitration Field Y1, Y2, Y3, Y4 Message received from the HDV will be formatted as follows MSB-2 Transmit Data to J1939 BusMSB-1 Set MaskSet Filter 1 to HDV100A3 Command & Response Manual-1306cr J1939 Header Worksheet Error Codes DEC HEX