B&B Electronics HVD100A3 manual Transmitting Data to the J1708 Bus

Page 18

Transmitting Data to the J1708 Bus

The HDV100A3 supports standard J1708 commands of up to 21 bytes. Additionally the HDV100A3 can send messages up to 100 bytes to the J1708 bus. It is the responsibility of the sending software to check for “ignition off” before using the J1708 bus to send messages with more than 21 bytes to the bus. Failure to check for a “quiet bus” condition before transmitting a long message may cause erratic bus operation. The format to send information to the J1708 bus is shown below:

Byte

Byte

Byte Function

Number

Value

 

 

(hex)

 

1

01

Start of frame

2

03

Number of control bytes

3

01

ID bytes 1= J1708

4

12

Function code 12 (hex) transmit to J1708 bus

5

02

Priority byte 00000010 set bit 0 to 7 see below

6

XX

Number of data bytes to follow (excludes checksum byte)

 

YY

Data bytes up to 100 bytes

 

CS

Checksum

Set the priority bit using the chart below.

Priority Byte Value

Binary Value

Hex Value

1

00000001

01

2

00000010

02

3

00000100

04

4

00001000

08

5

00010000

10

6

00100000

20

7

01000000

40

8

10000000

80

14

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 18
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 Baud Rate Example Byte Byte Function Number Value HexUB3 Byte Function Number Value Reply from HDV100A3Function code 20 = stop time stamping Master Reset Command Vendor InformationJ1708 Commands Receiving Data from the J1708 BusByte Byte Value Byte Function Number Hex Function code 10 hex stop receive Transmitting Data to the J1708 Bus Priority Byte Value Binary Value Hex ValueID bytes 9 = transmit OK J1708 Message Filter Set Filter Active Byte Function Number ValueSet Filter Off 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