B&B Electronics HVD100A3 manual Baud Rate Example, Byte Byte Function Number Value Hex, UB3

Page 12

Baud Rate Example

To set the PC baud rate to 57,600 baud, N,8,1, format the message as follows.

Byte

Byte

 

Byte Function

 

Number

Value

 

 

 

 

 

 

Hex

 

 

 

1

01

 

Start of frame

 

2

05

 

Number of control bytes

 

3

08

 

Command byte (08 = internal command)

 

4

01

 

Function Bbte (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 the control section (in gray). Byte number 3 sets the HDV100A3 to an internal operation (08). Byte 4 is the internal function to be executed; (01) is the change baud command. Bytes 5, 6, and 7 set the baud rate, parity, stop bits and word length. Next is the number of data bytes, in this case there are no data bytes. Last is the checksum, the value is the 8 bit addition of bytes 1 to 8.

8

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 12
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 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 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