background image

1939STB4600 Manual 

 

Cover Page 

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 

 

 
 
 

 
 

RS-232 to J1939 Converter

  

CE

 

Model 1939STB 

Documentation  Number  1939STB4600 

 

 

 

 

International Headquarters 

B&B Electronics Mfg. Co. Inc.  

707 Dayton Road  --  P.O. Box 1040  --  Ottawa, IL  61350 USA 

Phone (815) 433-5100 -- General Fax (815) 433-5105  

Home Page:  www.bb-elec.com 

Sales e-mail:  

[email protected]

  --  Fax (815) 433-5109 

Technical Support e-mail:  

[email protected]

  --  Fax (815) 433-5104 

 
 

European Headquarters 

B&B Electronics Ltd. 

Westlink Commercial Park, Oranmore, Co. Galway, Ireland 

Phone +353 91 792444  --  Fax +353 91 792445 

Home Page:  www.bb-europe.com 

Sales e-mail:  

[email protected]

 

Technical Support e-mail:  

[email protected]

 

 

 

 

 
 

 B&B Electronics – November 2000

 

Summary of Contents for RS-232 to J1939 Converter CE 1939STB

Page 1: ...rters B B Electronics Mfg Co Inc 707 Dayton Road P O Box 1040 Ottawa IL 61350 USA Phone 815 433 5100 General Fax 815 433 5105 Home Page www bb elec com Sales e mail orders bb elec com Fax 815 433 5109...

Page 2: ...ommunication directed to the device 5 Control Byte 3 6 Control Byte 4 7 Internal Functions 8 Vendor String 8 RS 232 Baud Change 9 External Commands 13 Message Header Setup 14 Message Information 15 By...

Page 3: ...r of the vehicle B B Electronics does not have access to the SAE J1939 codes and cannot provide any assistance in obtaining these codes It is the responsibility of the user to obtain and implement the...

Page 4: ...connect to active SAE J 1939 networks It is possible that your transmissions through this converter module could cause malfunction of the network operation damage to the software or equipment or bodil...

Page 5: ...9STB has reverse polarity protection Power is connected to the 1939STB though a terminal block located under the snap cover DC is connected to the terminal marked POWER DC is connected to the terminal...

Page 6: ...m Width 2 75 in 70mm Height 1 00 in 25 4mm Serial Connection DB 9 female DCE SAE J1939 Connection Terminal block CAN HIGH CAN LOW Power Connection Terminal block POWER GND Temperature 0 to 70 degrees...

Page 7: ...ion 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 rej...

Page 8: ...imited to 16 bytes This limit allows a complete J1939 packet to be sent or received from the bus Nibble 1 of control byte 3 can be set to any value between 0 and 16 0 to F hex Table 3 Bits of Byte 3 N...

Page 9: ...the J1939 in which message slot location 1 through 15 to place the message data NOTE Message location number 15 is receive only When control byte 3 is set to internal commands bit 5 set to 1 nibble 1...

Page 10: ...function is sent to the 1939STB as shown in the table below This function is strictly internal and can be sent to the 1939STB at any time whether or not the 1939STB is connected to an active J1939 bu...

Page 11: ...top bit 8 data bits no parity Table 11 Baud Rate Setup Byte 3 Byte 4 Byte 5 Byte 6 Byte 7 Byte 1 Byte 2 Nibble 2 Nibble 1 Nibble 2 Nibble 1 UB3 Baud 1 Baud 2 81 21 0010 0011 0000 0010 81 21 23 hex 02...

Page 12: ...r into byte 6 and 7 Baud rates faster than 57 600 are not supported UART clock 7 372 800 Hz Decimal Divisor Clock frequency 7 372 800 Baud output x 16 If you want a baud rate output of 300 baud Decima...

Page 13: ...Bit 1 Bit 0 Divisor latch Set break Set parity Even parity Parity enable Stop bits Word length 1 Word length 0 Bit 7 1 allows baud rate divisor to be changed 0 baud rate change is blocked Bit seven sh...

Page 14: ...re Galway Ireland Ph 353 91 792444 Fax 353 91 792445 RS 232 Baud Rate Change cont d Bit 2 stop bit works in conjunction with bits 1 and bit 0 Table 16 Stop Bit Setup Bit 2 Word length bits Stop bit le...

Page 15: ...ee 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...

Page 16: ...x 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 bu...

Page 17: ...are not transmitted to the bus are grayed in Byte 5 and 6 are the message control bytes They work together to control the message The bit fields are set up in a two bit configuration as follows NOTE...

Page 18: ...reloaded on the converter and activated deactivated as needed Note that all messages locations are set invalid at power up Any time the converter is reset all message information is lost TXIE Bits 5 a...

Page 19: ...has been requested by a remote node but the data has not been sent yet When RMTPND is set the controller also sets TXRQ Both RMTPND and TXRQ are cleared when the message has been sent successfully TXR...

Page 20: ...e 0 Extended identifier must be 1 1 Bit not used set to 0 X Bit not used set to 0 X DLC Bits 7 6 5 and 4 Data length code The number of data bytes in the message DIR Bit 3 Direction Defines if a messa...

Page 21: ...DATA CRC ACK EOF S O F Identifier 11Bits S R S I D E Identifier Extension 18Bits R T R R 1 R 0 D L C 1 11Bits 1 1 18Bits 1 6Bits 64Bits 16Bits 2Bits 7Bits The frame above shows the entire J1939 CAN f...

Page 22: ...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...

Page 23: ...6 and 5 of byte 7 set the J1939 priority bits Bit 7 is the MSB Bit 5 is the LSB To code a priority value 6 set bit 7 1 bit 6 1 bit 5 0 Bit 4 is the reserved bit the J1939 specification sets this bit...

Page 24: ...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...

Page 25: ...rst part of the PDU Protocol Data Unit The first 8 bits are the PDU format The values for specific formats will have to be supplied by the user Bits 2 1 and 0 of Byte 8 and bits 7 6 5 4 and 3 of Byte...

Page 26: ...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...

Page 27: ...complete the PDU Bits 2 1 and 0 of byte 9 and bits 7 6 5 and 4 of byte 10 are the Source Address for the converter Each Source Address MUST be unique SAE J1939 81 describes address management and allo...

Page 28: ...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...

Page 29: ...nd is coded as follows Table 34 Byte 11 DLC DIR XTD Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 DLC Data Length Code Number of bytes 0 to 8 in the data payload DIR Message Direction DIR 1 transmit...

Page 30: ...45 Data Field The next 8 bytes are the data field and can have from 0 to 8 bytes used This is the data payload Table 35 J1939 Message Frame Arbitration Field Control Data CRC ACK EOF S O F Identifier...

Page 31: ...SAE J1939 Bus I D Func J1939 Address M C Data 4 2 09 C 80 00 40 1 E 41 42 43 44 45 46 47 48 F F 4 2 28 0 0 00 00 00 0 0 A A A A Table 36 shows the receive message The black line separates the two typ...

Page 32: ...w where the message came from Refer to Table 37 If the Nibble 2 is set to 0 then the message is from the J1939 bus If Nibble 2 is set to 2 it is an internal message for example Vendor ID MC This is a...

Page 33: ...C 80 00 40 1 E 41 42 43 44 45 46 47 48 F F 4 2 28 0 0 00 00 00 00 A A A A Table 39 shows the data received from the J1939 bus highlighted in gray The bytes C 80 00 40 are the J1939 priority reserve b...

Page 34: ...cluded on the disk to aid in program development Installation Two disks are provided with the 1939STB Disk one is installed first Start Windows and insert the disk in A drive Click on the Start icon T...

Page 35: ...104 B B Electronics Ltd Westlink Commercial Park Oranmore Galway Ireland Ph 353 91 792444 Fax 353 91 792445 This screen is divided into two parts The upper half of the screen allows the user to fill o...

Page 36: ...ns bytes 5 though 11 These bytes are set by the user All values are entered in hex All of the bytes in this row do NOT have to contain data for the message to be accepted The last row is the data payl...

Page 37: ...ox opens select a directory where the file should be stored and name the file Click Save The file is saved To recall the information in a previously saved file use the File import command Select the n...

Page 38: ...able The upper half of the table shows the CAN data frame labels and the lower part of the table contains the SAE J1939 data labels The areas that are in gray are controlled by the CAN controller and...

Page 39: ...X X 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 X X X X X X X X X R1 is the reserved bit ALL messages should set the SAE reserved bit to 0 on transmit The frame above represents the J1939 frame and shows how...

Page 40: ...ce tool 1 See note below S O F Priority 3 Bits R 1 D P PDU Format PF 8 Bits S R S I D E PF Cont PDU Specific 8 Bits Source Address 8 Bits See note below R T R X 1 2 3 1 1 1 2 3 4 5 6 X X 7 8 1 2 3 4 5...

Reviews: