B&B Electronics HVD100A3 manual Formatting the Control Bytes

Page 7

Formatting the Control Bytes

The 2nd byte is “Number of Control Bytes” to follow and always precedes the control field. The third byte is the ID byte. This byte tells the hardware where to direct the message. Valid entries for functions are:

ID Codes

=01 Message for J1708 =02 Message for J1939

=08 General message (for control of the HDV100A3 device) =05 Device identification (reverse compatible)

The fourth byte is the function byte. The functions 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 Function Codes

Function codes

=01 change PC baud rate, followed by 3 bytes (UB3, Baud1, Baud2) =02 send time stamp

=04 hardware handshaking

=08 reset converter, followed by 2 bytes (01,and 02) =10 time stamp off

=20 time stamp on

Valid Entries for J1708 Functions

Function codes = 07 set broadcast message

=X8 set filter X off

=X9 set filter X on

=11 Sync with J1708 bus and start reception

=10 Stop reception

=12 Transmit to J1708 bus

Valid Entries for J1939 Functions

Function codes =00 Receive off =01 Receive on

=02 Transmit message =08 Set mask

=X8 set filter X off =X9 set filter X on

HDV100A3 Command & Response Manual-1306cr

3

B&B Electronics -- 707 Dayton Rd. -- PO Box 1040 -- Ottawa, IL 61350

PH (815) 433-5100 -- FAX (815) 433-5104

Image 7
Contents HDV100A3 Command Response Protocol Page Table of Contents Do Not Transmit Any Messages to the network Introduction Intelligent Mode VerificationControl Field Structure Intelligent Mode Command ProtocolIntelligent Mode Message Structure SOFFormatting the Control Bytes Detailed Description of General Function Codes Command AcknowledgementRS-232 Baud Rate Setup HDV100A3 Command & Response Manual-1306cr Setting Baud 1, Baud Baud Rate Setup Table Byte Byte Function Number Value Hex Baud Rate ExampleUB3 Reply from HDV100A3 Byte Function Number ValueFunction code 20 = stop time stamping Vendor Information Master Reset CommandReceiving Data from the J1708 Bus J1708 CommandsByte Byte Value Byte Function Number Hex Function code 10 hex stop receive Priority Byte Value Binary Value Hex Value Transmitting Data to the J1708 BusID bytes 9 = transmit OK Set Filter Active Byte Function Number Value J1708 Message FilterSet Filter Off Byte Function Number Value Data Broadcast MessageByte 6 Priority Values Byte 4 ValuesJ1939 Commands Stop Receive on J1939 Bus Start Receive on J1939 BusArbitration Field Y1, Y2, Y3, Y4 Message received from the HDV will be formatted as follows Set Mask Transmit Data to J1939 BusMSB-1 MSB-2Set Filter 1 to HDV100A3 Command & Response Manual-1306cr J1939 Header Worksheet DEC HEX Error Codes