B&B Electronics 1939STB manual Control Byte, Byte 3 Nibble

Page 8

Control Byte 3

Byte 3 directs the data packet to the proper destination. The setting of this byte will affect the rest of the message. That is to say changing this byte changes the meaning of the following data bytes.

Table 3. Bits of Byte 3

 

Nibble 2

 

 

Nibble 1

 

 

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

 

Bit 1

Bit 0

Byte 3 has two parts, Nibble 1 and Nibble 2. Nibble 2 (bits 4 – 7) sets the control code as follows:

Table 4. Byte 3 Nibble 2

Bit Number

Value

Function

 

 

 

 

 

Bit 7

1

Reserved

not used

 

0

Reserved not used

Bit 6

1

Reserved

not used

 

0

Reserved

not used

Bit 5

1

Internal commands (Baud rate, Version number)

 

0

No function

Bit 4

1

External commands (Messages to J1939 bus)

 

0

No function

Nibble 1 (bits 0 – 3) of control byte 3 defines the number of bytes in the data payload of the message. The byte count does NOT include the message header (bytes 1 through 4). The message payload is limited to 16 bytes. This limit allows a complete J1939 packet to be sent or received from the bus.

Table 5. Transmit Data Format

Byte 1

Byte 2

Byte 3

Byte 4

 

Message Information

 

 

Data Payload

 

Check

Check

Control

Control

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

2

1

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

<< Count Number of Bytes for byte 3 nibble 1 >>

 

Nibble 1 of control byte 3 can be set to any value between 0 and 16 (0 to F hex).

 

 

 

Table 6. Byte 3 Nibble 1

 

Bit Number

Value

 

Function

 

 

 

 

 

 

 

 

Bit 3

1

 

Number of bytes in data payload (MSB)

 

 

0

 

 

 

 

Bit 2

1

 

Number of bytes in data payload

 

 

 

0

 

 

 

 

Bit 1

1

 

Number of bytes in data payload

 

 

 

0

 

 

 

 

Bit 0

1

 

Number of bytes in data payload (LSB)

 

 

 

0

 

 

 

 

 

 

 

 

 

6

 

 

 

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 8
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 ID Byte Reception of DataSAE-J1939 Bus 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