B&B Electronics 1939STB manual Communication directed to the device Format

Page 7

Communication directed to the device

Format:

Table 1. J1939STB Format

Message header

 

 

 

 

Message Information

 

 

 

 

 

 

 

 

 

 

 

 

Data Payload

B

B

B

B

 

B

 

 

B

 

 

B

 

 

B

 

 

B

 

 

B

 

 

B

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

2

3

4

 

5

 

 

6

 

 

7

 

 

8

 

 

9

 

 

1

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

8

2

1

0

 

9

 

 

E

 

 

0

 

 

8

 

 

0

 

 

4

 

 

8

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

1

F

5

 

5

 

 

7

 

 

c

 

 

0

 

 

0

 

 

0

 

 

c

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

All communications to the device start with a message header (white

area). This header is removed from any message sent to the J1939 bus. The header is four bytes long. Two bytes (B1& B2) are used to confirm start of frame. The next two bytes (B3 & B4) contain information controlling how the 1939STB functions. The remainder of the packet is the data payload and can contain from zero to sixteen bytes depending on function.

Table 2. Transmit Data Format

Byte 1

Byte 2

Byte 3

Byte 4

 

Message Information

 

 

Data Payload

 

Check

Check

Control

Control

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

2

1

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The first two bytes (Check 1 and Check 2) are always set to 81hex and 21hex. These bytes must precede all data sent to the device. If the Check bytes are not sent consecutively the message will be rejected. The entire message must be resent before data can be transmitted to the device. Control (byte 3 and byte 4) contain information that is used by the converter. This information is not passed to the J1939 bus. Both control bytes must contain data (cannot have a value of 00) or the transmission will be rejected.

1939STB4600 Manual

5

B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104

B&B Electronics Ltd – Westlink Commercial Park – Oranmore, Galway, Ireland – Ph +353 91 792444 – Fax +353 91 792445

Image 7
Contents Model 1939STB RS-232 to J1939 Converter CETable of Contents SAE Publications Introduction1939STB4600 Manual Description Physical Description Electrical SpecificationCommunication directed to the device Format Byte 3 Nibble Control ByteByte Message Received from the SAE-J1939 Bus Vendor String SetupInternal Functions Vendor StringRS-232 Baud Change Baud Rate SetupRS-232 Baud Rate Change cont’d Byte 5 UB3 Parity SetupWord Length Stop Bit SetupJ1939 Format External CommandsValid Codes for Byte Message Header SetupTwo Bit Values for Byte 5 Message Information J1939 Message InformationIntpnd ByteTransmit DLC DIR XTD Bit2J1939 Message Frame SAE-J1939 Control Header1939STB4600 Manual Shown in Table Byte1939STB4600 Manual Byte 1939STB4600 Manual Bytes 9 1939STB4600 Manual DIR Message Direction DLC Data Length CodeData Field SAE-J1939 Bus Reception of DataID Byte Function Internal Messages Software Installation1939STB4600 Manual Message Transmission sending data to the 1939STB File Logging Saving Message InformationAppendix A. The Extended can / SAE-J1939 Message Frame Arbitration Field Appendix B. Example