B&B Electronics Command Response Protocol HVD100A3 User Manual

Page 12

Advertising
background image

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

Baud Rate Example

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

Byte
Number

Byte
Value
Hex

Byte Function

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.

Advertising