B&B Electronics 1939STB manual Message Header Setup, Valid Codes for Byte

Page 16

Message Header Setup

Before a message can be sent to the SAE-J1939 bus, the message header must be configured to direct the data correctly. The following table shows the bytes that must be set to direct a message to the SAE-J1939 bus.

Table 19. J1939 Message Header

Message Header

B

B

 

B

 

 

B

 

1

2

 

3

 

 

4

 

81

21

 

1F

 

 

05

 

 

 

 

 

 

 

 

 

The first two bytes are for the start of message. The third byte (B3) containing hex 1F,1 directs the message to the J1939 bus. (F) hex is the number of bytes in the payload. Byte four (B4) tells the converter in which message slot to put the message (slot 5). Valid slots are 1 through 15, but slot 15 is reserved for receive only.

 

 

Table 20. Valid Codes for Byte 3

Nibble 2

Value

 

Function

 

1

 

Message directed to SAE-J1939 bus

 

2

 

Internal commands, vender #, baud change

Nibble 1

 

 

 

 

0 to 15

 

Number of bytes to follow byte 4

Table 21. Valid Codes for Byte 4

Function

Nibble 2

Nibble 1

No function (reserved)

Value = 0

 

Message slot number

 

Value = 1 to 15 (1 to F hex)

 

 

 

Each message must have a unique slot number. A message sent to the same slot number overwrites the previous message.

14

1939STB4600 Manual

 

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 16
Contents RS-232 to J1939 Converter CE Model 1939STBTable of Contents Introduction SAE Publications1939STB4600 Manual Description Electrical Specification Physical DescriptionCommunication directed to the device Format Control Byte Byte 3 NibbleByte Vendor String Setup Internal FunctionsVendor String Message Received from the SAE-J1939 BusBaud Rate Setup RS-232 Baud ChangeRS-232 Baud Rate Change cont’d Parity Setup Byte 5 UB3Stop Bit Setup Word LengthExternal Commands J1939 FormatMessage Header Setup Valid Codes for ByteMessage Information J1939 Message Information Two Bit Values for Byte 5Byte IntpndTransmit XTD Bit2 DLC DIRSAE-J1939 Control Header J1939 Message Frame1939STB4600 Manual Byte Shown in Table1939STB4600 Manual Byte 1939STB4600 Manual Bytes 9 1939STB4600 Manual DLC Data Length Code DIR Message DirectionData Field SAE-J1939 Bus Reception of DataID Byte Function Internal Messages Installation Software1939STB4600 Manual Message Transmission sending data to the 1939STB Saving Message Information File LoggingAppendix A. The Extended can / SAE-J1939 Message Frame Arbitration Field Appendix B. Example