B&B Electronics HVD100A3 Detailed Description of General Function Codes, Command Acknowledgement

Page 8

Detailed Description of General Function Codes

Command Acknowledgement

All commands sent to the device will be acknowledged. If no error occurs an ACK will be sent with the ID byte that accompanied the command. If an error occurred, a NACK will be sent with the ID byte that accompanied the command as well as a Function code of $05 and the Error Code. The responses 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 specified.

ACK/NACK Format:

Byte

Byte

Function

Number

Value

 

1

01

Start of frame

2

01 or 03

Number of control bytes = 1 for ACK, 3 for NACK

3

aa

ID byte 08 = internal command

4

bb

Function code 02 = send time stamp

5

cc

 

6

00

Number data bytes

7

CS

Checksum

aa – ID Byte

$01 = J1708 Interface

$02 = J1939 Interface $05 = Device Id

$08 = RS-232 Interface

$09 = Message Xmit OK Response bb – FC Byte

None = Command Received and Valid $05 = A error was detected, NACK

cc – CD Byte

None = No Error Condition Error Code = See Section 5.10

4

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 8
Contents HDV100A3 Command Response Protocol Page Table of Contents Do Not Transmit Any Messages to the network Intelligent Mode Verification IntroductionIntelligent Mode Command Protocol Intelligent Mode Message StructureSOF 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 Transmit Data to J1939 Bus MSB-1MSB-2 Set MaskSet Filter 1 to HDV100A3 Command & Response Manual-1306cr J1939 Header Worksheet Error Codes DEC HEX