B&B Electronics HVD100A3 manual Transmit Data to J1939 Bus, Set Mask, MSB-1 MSB-2

Page 27

Transmit Data to J1939 Bus

Byte

Byte

Function

Number

Value

 

1

01

Start of frame

2

06

Control bytes

3

02

ID byte 1 = J1708 message

4

02

Function byte 02 transmit message

5

XX

MSB of arbitration field (J1939 priority bits)

6

XX

MSB-1

7

XX

MSB-2

8

XX

LSB of arbitration field (J1939 source address)

9

DD

Number of data bytes

 

DATA

From 0 to 8 bytes

 

CS

Checksum

Set Mask

Function code 04 set mask. The mask is applied to ALL filters. The mask is 32 bits long. The last 3 bits are not used and must be set to zero. This mask covers the 29-bit arbitration field. To use the filter function, the mask must be set. The mask determines what position(s) will be tested and matched to the incoming message. If a 1 is set in a particular position, that position will be tested. It will be “and” with any active filters to determine if the message will be passed to the PC side. Any position marked with a 0 is a “don’t care” position and will pass all data in that position. There is a form on page 33 that helps set up the mask for the arbitration field.

 

Byte

Byte

Function

 

 

Number

Value

 

 

 

1

01

Start of frame

 

 

2

06

Control bytes

 

 

3

02

ID byte 02 = J1939

 

 

4

04

Function byte 04 set mask

 

 

5

XX

MSB of arbitration field (J1939 priority bits)

 

 

6

XX

MSB-1

 

 

7

XX

MSB-2

 

 

8

XX

LSB of arbitration field (J1939 source address)

 

 

9

00

Number of data bytes

 

 

10

CS

Checksum

 

 

 

 

 

 

 

HDV100A3 Command & Response Manual-1306cr

23

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

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

Image 27
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 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 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