B&B Electronics HVD100A3 manual RS-232 Baud Rate Setup

Page 9

RS-232 Baud Rate Setup

To set the baud rate for the RS-232 port, set a general command code of 08. Set the function code to 01. Then set 3 control bytes as follows.

Function

Start

Control

Command

Function

UB3

Baud

Baud

Data

Check

 

of

Bytes

Code

Code

 

1

2

Bytes

Sum

 

Frame

 

 

 

 

 

 

 

 

Byte #

1

2

3

4

5

6

8

9

10

Value

01

05

08

01

 

 

 

00

 

Setting UB3

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

Divisor

Set

Set

Even

Parity

Stop

Word

Word

Latch

Break

Parity

Parity

Enable

Bits

Length 1

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 setting and resetting of this bit is handled internally.

Bit 6 = 1 forces the transmitter output to a logic 0 for alerting the remote receiver to a line break. 0 indicates no break condition.

Bit 5, 4 and 3 work together to set parity

 

Bit 5

 

Bit 4

 

Bit 3

 

Parity Selection

 

*

 

*

 

0

 

No parity (default)

 

0

 

0

 

1

 

Odd parity

 

0

 

1

 

1

 

Even parity

 

1

 

0

 

1

 

Force parity “1”

 

1

 

1

 

1

 

Force parity “0”

 

 

*Don’t care state.

 

 

Bit 2, stop bit, works in conjunction with bits 1 and bit 0

 

 

 

 

 

 

 

Bit 2

 

Word Length (bits)

 

Stop Bit Length

 

0

 

5,6,7,8

 

 

 

 

1 (default)

 

1

 

5

 

 

 

 

 

1

 

6,7,8

 

 

 

 

2

 

 

 

 

 

 

 

 

 

HDV100A3 Command & Response Manual-1306cr

 

 

5

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

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

Image 9
Contents HDV100A3 Command Response Protocol Page Table of Contents Do Not Transmit Any Messages to the network Introduction Intelligent Mode VerificationIntelligent Mode Message Structure Intelligent Mode Command ProtocolSOF Control Field StructureFormatting 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 Baud Rate Example Byte Byte Function Number Value HexUB3 Reply from HDV100A3 Byte Function Number ValueFunction code 20 = stop time stamping Vendor Information Master Reset CommandJ1708 Commands Receiving Data from the J1708 BusByte 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 J1708 Message Filter Set Filter Active Byte Function Number ValueSet 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 MSB-1 Transmit Data to J1939 BusMSB-2 Set MaskSet Filter 1 to HDV100A3 Command & Response Manual-1306cr J1939 Header Worksheet DEC HEX Error Codes