background image

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

 

 

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 
Number 

Byte 
Value  
(hex) 

Byte Function 

01 

Start of frame 

03 

Number of control bytes 

01 

ID bytes 1= J1708 

12 

Function code 12 (hex) transmit to J1708 bus 

02 

Priority byte 00000010 set bit 0 to 7 see below  

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 

 

Summary of Contents for Command Response Protocol HVD100A3

Page 1: ...nd Response Protocol Documentation Number HDV100A3 4407CR International Headquarters B B Electronics Mfg Co Inc 707 Dayton Road P O Box 1040 Ottawa IL 61350 USA Phone 815 433 5100 General Fax 815 433...

Page 2: ......

Page 3: ...dgement 4 RS 232 Baud Rate Setup 5 Setting Baud 1 Baud 2 7 Baud Rate Example 8 Time Stamp Information 9 Master Reset Command 11 Vendor Information 11 J1708 COMMANDS 12 Receiving Data from the J1708 Bu...

Page 4: ...possible that your transmissions through this converter module could cause malfunction of the network operation damage to software or equipment or bodily harm Do Not Transmit Any Messages to the netwo...

Page 5: ...ired by the host in order to communicate efficiently with the J1708 bus Note that the HDV100A3 is powered from the vehicle side of the interface If the device is to be used without a vehicle it will b...

Page 6: ...cture Number of Control Bytes to Follow ID Byte Function Byte Control Data Bytes 1 byte 1 byte 1 byte Up to 20 bytes The first byte of the Control Field is the number of control bytes in the message T...

Page 7: ...nctions that are supported are listed below Note that some of the function codes are followed by additional bytes of information These bytes must be included in the control byte count Valid General Fu...

Page 8: ...es will not be shown for each command since it is the same for almost all commands Below is the format of the ACK NACK response If an ACK NACK response is different for a particular command it will be...

Page 9: ...r Latch Set Break Set Parity Even Parity Parity Enable Stop Bits Word Length 1 Word Length 0 Bit 7 1 allows baud rate divisor to be changed 0 baud rate change is blocked Bit 7 should not be set The se...

Page 10: ...Electronics 707 Dayton Rd PO Box 1040 Ottawa IL 61350 PH 815 433 5100 FAX 815 433 5104 Bits 1 and 0 set the word length Bit 0 Bit 1 Word Length 0 0 5 0 1 6 1 0 7 1 1 8 default Default value The HDV10...

Page 11: ...01 All baud rates are entered as hex numbers To calculate your own decimal divisor use the following formula The decimal number must be converted to hexadecimal before entering the number Baud rates...

Page 12: ...e 01 change baud 5 03 UB3 6 08 Baud 1 7 00 Baud 2 8 00 Number of data bytes 9 1A Checksum The first byte is the start of frame and always 01 Next is the number of control bytes 05 There are 5 bytes in...

Page 13: ...umber of control bytes 3 08 ID byte 08 internal command 4 02 Function code 02 send time stamp 5 00 Number data bytes 6 0D Checksum Reply from HDV100A3 Byte Number Byte Value Function 1 01 Start of fra...

Page 14: ...trol bytes 3 08 ID byte 08 internal command 4 20 Function code 20 stop time stamping 5 00 Number data bytes 6 2B Checksum To resume time stamping send the following command Byte Number Byte Value Func...

Page 15: ...d 4 08 Function code 08 master reset 5 01 Check byte 6 02 Check byte 7 00 Number data bytes 8 18 Checksum Note after sending a master reset the baud rate is 115 2k default Vendor Information To receiv...

Page 16: ...e 11 hex start receive 5 00 Number of data bytes 00 place holder 6 15 Checksum bytes 1 through 5 added together After sending this command to the device the device will respond with a confirmation mes...

Page 17: ...0 Function code 10 hex stop receive 5 00 Number of data bytes 00 place holder 6 14 Checksum bytes 1 through 5 added together After sending this command to the device the device will respond with a con...

Page 18: ...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 Number Byte Value hex Byte Funct...

Page 19: ...s correct A transmit complete message is sent to the PC after the device successfully transmits the message to the J1708 bus A second message should not be sent to the device before confirming that th...

Page 20: ...ng is as follows Set Filter Active Byte Number Byte Value Function 1 01 Start of frame 2 03 Control bytes 3 01 ID byte 1 J1708 message 4 X9 Set filter 9 Set filter active X filter number 1 to 4 5 XX V...

Page 21: ...and the data must be sent to the HDV100A3 Once sent the HDV100A3 will send the message out on the bus at the specified interval Existing bus traffic or any bus messages sent to the HDV100A3 from the...

Page 22: ...sion Byte Number Byte Value Function 1 01 Start of frame 2 02 Control bytes 3 01 ID byte 1 J1708 message 4 07 Set broadcast 7 On X Time interval see chart 7 00 Data bytes 8 0B Checksum Byte 4 Values B...

Page 23: ...this command the baud rate of the sending device PC must also be changed Because of the difference in baud rates between the J1939 bus and the RS 232 serial bus the HDV100A3 may miss messages on the...

Page 24: ...renders the filter function useless Start Receive on J1939 Bus Byte Number Byte Value Function 1 01 Start of frame 2 02 Control bytes 3 02 ID byte 02 J1939 message 4 01 Function code 01 start receptio...

Page 25: ...checksum byte Next is a four byte that contains the arbitration field J1939 divides this field for different functions show in the chart below The number of data bytes sent by the bus is next This wi...

Page 26: ...urth 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 Da...

Page 27: ...set to zero This mask covers the 29 bit arbitration field To use the filter function the mask must be set The mask determines what position s will be tested and matched to the incoming message If a 1...

Page 28: ...e the value of the filter in that position doesn t matter The filter arbitration field is set to match the aberration code of the incoming message A match of the filter and the mask will pass the mess...

Page 29: ...2 04 XX XX XX XX 00 CS 3 Set a filter 1 to 4 to the match value 01 06 02 YY XX XX XX XX 00 CS Be sure that this is NOT the same as any other filter value or the HDV100A3 may become erratic 4 Sending t...

Page 30: ...Worksheet This worksheet will aid in filling out decoding the J1939 arbitration field Bit Number J1939 Function CAN Frame Entry Hex Value 29 28 27 Priority Bits 26 Reserved 0 25 Data Page 0 24 23 22 B...

Page 31: ...caused error 5 0Z Error code see chart below 6 00 Number of data bytes 7 CS Checksum Error Code Type of Error Generated Meaning of Error Generated DEC HEX 1 1 Gen Inbuffer overflow more than 127 bytes...

Reviews: