B&B Electronics 1939STB manual External Commands, J1939 Format

Page 15

External Commands

The SAE-J1939 format is based on the CAN extended data frame. A detailed breakdown of the data frame is shown in Appendix A.

The arbitration field is changed to conform to the SAE-J1939 message frame. The message frame must be broken down further before it can be sent to the 1939STB.

The format for transmitting data to the 1939STB is shown in the following table:

Table 18. J1939 Format

Message Header

 

Message Information

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Data Payload

 

 

 

 

 

 

B

B

B

B

 

 

B

 

 

B

 

 

B

 

 

B

 

 

B

 

 

B

 

 

B

 

 

B

 

 

B

 

 

B

 

 

B

 

 

B

 

 

B

 

 

B

 

 

B

 

1

2

3

4

 

 

5

 

 

6

 

 

7

 

 

8

 

 

9

 

 

1

 

 

1

 

 

1

 

 

1

 

 

1

 

 

1

 

 

1

 

 

1

 

 

1

 

 

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

 

 

1

 

 

2

 

 

3

 

 

4

 

 

5

 

 

6

 

 

8

 

 

9

 

 

0

 

8

2

1

0

 

 

9

 

 

E

 

 

0

 

 

8

 

 

0

 

 

4

 

 

8

 

 

4

 

 

4

 

 

4

 

 

4

 

 

4

 

 

4

 

 

4

 

 

4

 

1

1

F

5

 

 

5

 

 

7

 

 

c

 

 

0

 

 

0

 

 

0

 

 

c

 

 

1

 

 

2

 

 

3

 

 

4

 

 

5

 

 

6

 

 

7

 

 

8

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The message sent to the converter is formatted as shown above. The format is divided into three sections. Each section performs a specific function as follows:

Bytes 1 through 4 (B1-B4) are internal commands for the converter. These bytes tell the converter if the following message is intended for the SAE-J1939 bus, the slot where the message should be stored on the 1939STB, and the length of the data payload.

Bytes 5 through 11 are for message control - if it is to be transmitted (data frame) or received (remote frame). This area contains the J1939 message information: priority, data page, PDU format, PDU specific, and source address. The last section is the data section. This is the data that will be sent to, or received from, the bus. It may contain 0 to 8 bytes.

1939STB4600 Manual

13

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 15
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 Reception of Data SAE-J1939 BusID 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