background image

 

PCAN-LIN 

Interface for LIN, CAN, and RS-232 

User Manual 

Document version 2.3.0 (2019-03-22) 

Summary of Contents for PCAN-LIN Series

Page 1: ...PCAN LIN Interface for LIN CAN and RS 232 User Manual Document version 2 3 0 2019 03 22 ...

Page 2: ... explicitly marked by and 2019 PEAK System Technik GmbH Duplication copying printing or other forms and the electronic distribution of this document is only allowed with explicit permission of PEAK System Technik GmbH PEAK System Technik GmbH reserves the right to change technical data without prior announcement The general business conditions and the regulations of the license agreement apply All...

Page 3: ...CAN Termination 9 2 2 D Sub Female Connector for RS 232 10 3 Software Installation 11 4 Operation 12 4 1 Module Configuration 12 4 2 LEDs 12 5 Configuration Examples 14 5 1 Gateway LIN CAN 16 5 2 Master with Schedule Table 18 5 3 Gateway LIN RS 232 20 5 4 Gateway LIN CAN LIN Monitor 21 5 5 LIN Slave 23 5 6 Gateway CAN RS 232 25 6 Firmware Update 26 7 Technical Specifications 29 Appendix A CE Certi...

Page 4: ...PCAN LIN User Manual 4 Appendix B Dimension Drawing 32 Appendix C Changes of Hardware Software 33 C 1 PCAN LIN Module 33 C 2 PCAN LIN Configuration Tool 33 Appendix D Quick Reference 34 ...

Page 5: ...tware Then for instance the module acting as the LIN master can request data and route the incoming LIN data to the CAN bus and or the serial interface Data can be routed between CAN and LIN with an ID offset This user manual covers the use of the PCAN LIN hardware The software supplied on DVD is described in the corresponding help Information about the protocol for the communication via the RS 23...

Page 6: ...N frames can be initiated via CAN or RS 232 High speed ISO 11898 2 or Low speed ISO 11898 3 CAN transceiver module Galvanic isolation between RS 232 and CAN LIN up to 1 kV only for High speed CAN Voltage supply from 9 to 30 V Extended operating temperature range from 40 to 85 C 40 to 185 F 1 2 Operation Requirements Voltage supply Modules up to ser no 999 8 18 V DC Modules from ser no 1000 9 30 V ...

Page 7: ...PCAN LIN User Manual 7 1 3 Scope of Supply PCAN LIN in plastic casing Configuration and monitoring tool PCAN LIN Config for Windows Manual in PDF format ...

Page 8: ...IN CAN and voltage supply Female RS 232 2 1 D Sub Male Connector for LIN CAN and Voltage Supply The field busses and the voltage supply e g a car battery are connected together via the D Sub male connector on the PCAN LIN module V BAT up to ser no 999 8 18 V DC V BAT from ser no 1000 9 30 V DC ...

Page 9: ...ed CAN bus Do the following to change the resistance value of the Low speed CAN termination 1 Open the plastic casing of the PCAN LIN module by cautiously pushing in the two latches on both sides e g with a flat tip screwdriver 2 On the PCAN LIN circuit board there is a switch for the Low speed CAN termination PCAN LIN modules up to ser no 999 PCAN LIN modules from ser no 1000 Set the switch accor...

Page 10: ...to the PCAN LIN module via a normal RS 232 extension cable with 9 pin D Sub connectors no null modem cable For the serial communication only the two data lines and the ground connection are required handshake lines are not used The RS 232 connection of the opto decoupled PCAN LIN model is galvanically separated from the other electronic circuits in the module The maximum separation voltage is 1 kV...

Page 11: ...t the supplied DVD into a drive and start the navigation program Intro exe 2 In the category Tools of the navigation program you ll find the entry PCAN LIN Configuration Tool Click on Install in order to start the setup program If requested grant administrator privileges 3 Follow the instructions of the setup program After the software setup you can access the PCAN LIN Configura tion Tool via Wind...

Page 12: ...o so either the supplied Windows software PCAN LIN Configuration Tool or self developed software can be used Configurations for basic use cases are presented and explained in chapter 5 starting on page 14 In a separate document information about the protocol definitions related to the RS 232 interface can be found 4 2 LEDs The top of the PCAN LIN module has two LEDs in the middle These status indi...

Page 13: ...an error occurs during the transmission checksum error trans mitted data byte does not correlate to the received one at LIN Request Frames the LED flashes red Further possibilities for a red LED flash are CAN bus error PCAN LIN modules with Low speed CAN transceiver only The receive and transmit error counter has exceeded a limit ...

Page 14: ...teway LIN RS 232 5 3 on page 20 Gateway LIN CAN LIN Monitor 5 4 on page 21 Slave LIN Slave 5 5 on page 23 No LIN Gateway CAN RS 232 5 6 on page 25 A configuration is created with the supplied Windows program PCAN LIN Configuration Tool version 3 and afterwards sent to the PCAN LIN module via the RS 232 interface Do the following to create a new profile 1 In the Configuration Tool select the Profil...

Page 15: ... the Configuration Tool select a parameter in the tree view on the left and change its value on the right according to the declaration in the table Use the Set button during this procedure 4 When finished the modifications you can save the profile Save as button Do the following to send the configuration to the PCAN LIN module 1 Establish the communication to the connected PCAN LIN module menu com...

Page 16: ...nsmitting a CAN data frame Request of a data frame on the LIN bus by transmitting a CAN remote frame Profile in the Configuration Tool Inter face Parameter Setting Comment RS 232 Bit rate Activation Yes Bit rate Application specific LIN Forward Mask LIN RS 232 RS 232 for diagnostic purposes Filter Mask 0xFFFFFFFF Filter Code 0x00000000 All CAN frames are received CAN ID Offset 0x000 11 bits CAN ID...

Page 17: ...Filter Mask 0xFF Filter Code 0x00 All LIN frames are received Master Status Inactive Schedule table not processed LIN Bus Termination Master Scheduler Entries Not relevant see Master Status Slave ID Data Configuration Disabled Frame Configuration Application specific LIN CAN ID for Slave Activation Disabled Bold required modification compared to the default setting ...

Page 18: ...ia CAN RS 232 Profile in the Configuration Tool Inter face Parameter Setting Comment RS 232 Bit rate Activation Yes Bit rate Application specific Forward Mask No Forwarding Filter Mask 0xFFFFFFFF Filter Code 0x00000000 All CAN frames are received CAN ID Offset 0x000 11 bits CAN ID CAN ID Offset LIN ID LIN ID CAN ID CAN ID Offset CAN CAN Error ID CAN ID For transmission of error and status messages...

Page 19: ...Active Schedule table is processed automatically after module start Master Status Inactive Processing of schedule table must be started manually LIN Bus Termination Master Scheduler Entries Application specific Slave ID Data Configuration Disabled Frame Configuration Application specific LIN CAN ID for Slave Activation Disabled Bold required modification compared to the default setting ...

Page 20: ...plication specific CAN Activation No Activation Yes Bit rate Application specific Forward Mask RS 232 Filter Mask 0xFF Filter Code 0x00 All LIN frames are received Master Status Inactive Schedule table not processed LIN Bus Termination Master Scheduler Entries Not relevant see Master Status Slave ID Data Configuration Disabled Frame Configuration Application specific LIN CAN ID for Slave Activatio...

Page 21: ... Parameter Setting Comment RS 232 Bit rate Application specific Activation Yes Bit rate Application specific No Forwarding Forward Mask RS 232 For diagnostic purposes Filter Mask Filter Code Not relevant CAN ID Offset 0x000 11 bits CAN ID CAN ID Offset LIN ID LIN ID CAN ID CAN ID Offset CAN CAN Error ID CAN ID For transmission of error and status messages Is activated via LIN Forward Mask CAN Erro...

Page 22: ...k 0xFF Filter Code 0x00 All LIN frames are received Master Status Inactive Schedule table not processed LIN Bus Termination Slave Scheduler Entries Not relevant see Master Status Slave ID Data Configuration Disabled Frame Configuration Application specific LIN CAN ID for Slave Activation Disabled Bold required modification compared to the default setting ...

Page 23: ...er face Parameter Setting Comment RS 232 Bit rate Application specific No Activation Yes If LIN data shall be updated via CAN Bit rate Application specific No Forwarding Forward Mask RS 232 For diagnostic purposes Filter Mask 0xFFFFFFFF Filter Code 0x00000000 All CAN frames are received CAN ID Offset 0x000 11 bits CAN ID CAN ID Offset LIN ID 0x40 LIN ID CAN ID CAN ID Offset 0x40 0x40 fixed offset ...

Page 24: ...ames are received Master Status Inactive Schedule table not processed LIN Bus Termination Slave Scheduler Entries Not relevant see Master Status Slave ID Data Configuration Disabled Frame Configuration Application specific Disabled LIN CAN ID for Slave Activation CAN ID not related to CAN ID Offset Modifies the LIN slave mask dynamically during runtime on off reaction to LIN requests Bold required...

Page 25: ... Parameter Setting Comment RS 232 Bit rate Application specific Activation Yes Bit rate Application specific Forward Mask RS 232 Filter Mask 0xFFFFFFFF Filter Code 0x00000000 All CAN frames are received CAN ID Offset 0x000 11 bits CAN ID CAN ID Offset LIN ID LIN ID CAN ID CAN ID Offset CAN CAN Error ID 0x000 11 bits LIN Activation No Bold required modification compared to the default setting ...

Page 26: ...Ds on the PCAN LIN module are lit green 4 Start Flash Magic via the menu item Tools Flash Magic 5 Depending on the serial number of the used PCAN LIN mo dule in Flash Magic matching presets must be selected for the programming process In Flash Magic select the menu command File Open Settings and then one of the two settings files that are residing in the program directory1 of the PCAN LIN Configur...

Page 27: ...via COM1 select another COM port in area Step 1 7 In area Step 3 choose the hex file with the new firmware by clicking the Browse button 8 Click the Start button The process status of the programming sequence is shown in the status bar The steps Erasing Programming and Verifying are performed ...

Page 28: ...PCAN LIN User Manual 28 9 When the update procedure has ended successfully message Finished quit the Flash Magic program and restart the PCAN LIN module by interrupting the supply voltage for a moment ...

Page 29: ...N HS CAN opto LIN Standard ISO 15765 2 LIN 1 x and LIN 2 0 Transceiver R22 TLE6259 R32 MAX13020 Bit rates max 20 000 bit s Termination 1 k switchable via configuration CAN PCAN LIN HS CAN opto PCAN LIN LS CAN ISO 11898 2 ISO 11898 3 Standard CAN 2 0A B standard extended format Controller R22 SJA1000 R32 integrated in the microcontroller Transceiver R22 PCA82C251 R32 MAX3057 R22 TJA1054 R32 TJA1055...

Page 30: ...S CAN 48 g PCAN LIN HS CAN opto 50 g Environment Operating temperature 40 85 C 40 185 F Temperature for storage and transport 40 100 C 40 212 F Relative humidity 15 90 not condensing Ingress protection IEC 60529 IP20 Conformity EMV Directive 2014 30 EU DIN EN 55024 2016 05 DIN EN 55032 2016 02 RoHS 2 Directive 2011 65 EU DIN EN 50581 VDE 0042 12 2013 02 ...

Page 31: ...PCAN LIN User Manual 31 Appendix A CE Certificates ...

Page 32: ...PCAN LIN User Manual 32 Appendix B Dimension Drawing The figures do not show the actual size of the product ...

Page 33: ...nfiguration Tool LIN Bus Termination LIN termination is swit ched during transmission of a LIN header the master mode is automatically used independent from the setting LIN termination is swit ched master mode is expli citly switched on or off C 2 PCAN LIN Configuration Tool Property Version 1 Version 3 Number of Retries Dropped Bit Recognition Status No possibility for changing anymore always act...

Page 34: ... Connector for RS 232 Operation When applying the supply voltage the operational readiness of the PCAN LIN module is indicated by flashes of both LEDs Status LED green Transmission Error LED green and red Configuration Software Windows For installation from the navigation program of the supplied DVD Intro exe and the sub menu Tools start the setup program for the PCAN LIN Configuration Tool ...

Reviews: