Peak PCAN-LIN Series User Manual

Interface for lin, can, and rs-232

Advertisement

Quick Links

PCAN-LIN
Interface for LIN, CAN, and RS-232
User Manual
Document version 2.3.0 (2019-03-22)

Advertisement

Table of Contents
loading

Summary of Contents for Peak 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 © 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.
  • Page 3: Table Of Contents

    PCAN-LIN – User Manual Contents Introduction Properties at a Glance Operation Requirements Scope of Supply Connectors D-Sub Male Connector for LIN, CAN, and Voltage Supply 2.1.1 CAN Termination D-Sub Female Connector for RS-232 Software Installation Operation Module Configuration LEDs Configuration Examples Gateway LIN - CAN Master with Schedule Table Gateway LIN - RS-232...
  • Page 4 PCAN-LIN – User Manual Appendix B Dimension Drawing Appendix C Changes of Hardware/Software PCAN-LIN Module PCAN-LIN Configuration Tool Appendix D Quick Reference...
  • Page 5: Introduction

    PCAN-LIN – User Manual Introduction Tip: At the end of this manual (Appendix D) you can find a Quick Reference with brief information about the installation and operation of the PCAN-LIN module. The PCAN-LIN module enables CAN, LIN, and serial participants to communicate.
  • Page 6: Operation Requirements

    PCAN-LIN – User Manual General-purpose gateway (or router when using Acceptance Code / Acceptance Mask feature) from:  RS-232 to LIN (and back)  RS-232 to CAN (limited bandwidth)  CAN to LIN (and back) Simulation of LIN slaves. Data can be changed via CAN frames Processing a user-definable LIN ID list (scheduler with limited number of entries, cyclic handling if required) Individual LIN frames can be initiated via CAN or RS-232...
  • Page 7: Scope Of Supply

    PCAN-LIN – User Manual Scope of Supply PCAN-LIN in plastic casing Configuration and monitoring tool PCAN-LIN Config for Windows Manual in PDF format...
  • Page 8: Connectors

    PCAN-LIN – User Manual Connectors The PCAN-LIN module has two 9-pin D-Sub connectors: Male: LIN, CAN, and voltage supply Female: RS-232 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.
  • Page 9: Can Termination

    PCAN-LIN – User Manual 2.1.1 CAN Termination PCAN-LIN model Termination Comment High-speed CAN (opto) none Low-speed CAN Change between resistance 5.66 k (default) / values with switch on the circuit 560  board; low resistance setting only necessary if few CAN nodes are connected to the Low-speed CAN bus.
  • Page 10: D-Sub Female Connector For Rs-232

    PCAN-LIN – User Manual D-Sub Female Connector for RS-232 Via the RS-232 interface the PCAN-LIN module is linked to a compu- ter or another monitoring or control unit. A computer can be con- nected to the PCAN-LIN module via a normal RS-232 extension cable with 9-pin D-Sub connectors (no null modem cable).
  • Page 11: Software Installation

    PCAN-LIN – User Manual Software Installation The scope of supply contains the PCAN-LIN Configuration Tool for Windows and the program Flash Magic that is needed for transfer of a new firmware to the PCAN-LIN module. The setup program installs both programs consecutively. To start the setup procedure of the software, do the following: 1.
  • Page 12: Operation

    PCAN-LIN – User Manual Operation As soon as a supply voltage is applied via the D-Sub male connec- tor (see section 2.1 on page 8), the PCAN-LIN module is ready for use. This is indicated by a short blink of both LEDs (Status LED: green, Transmission/Error LED: green and red).
  • Page 13 PCAN-LIN – User Manual Transmission/Error (two-color) For the duration of the transmission of a LIN frame the LED is lit green. If 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.
  • Page 14: Configuration Examples

    PCAN-LIN – User Manual Configuration Examples The chapter covers configuration examples for basic use cases. LIN mode Use case Master Gateway LIN - CAN 5.1 on page 16 Master with Schedule Table 5.2 on page 18 Gateway LIN - RS-232 5.3 on page 20 Slave Gateway LIN - CAN (LIN Monitor)
  • Page 15 PCAN-LIN – User Manual Click the New button in the lower window area. The parameters of the PCAN-LIN function units shown in the list are now provided with default values. The configuration examples in the following manual sec- tions contain tables with parameters for the corresponding profile.
  • Page 16: Gateway Lin - Can

    PCAN-LIN – User Manual Confirm the questions. In this context, the configuration is permanently saved in the module and the module is reset in order to activate the new configuration. Gateway LIN - CAN Properties LIN master Monitoring of the LIN bus via CAN CAN frames initiate the transmission of LIN frames Transmission of a data frame on the LIN bus by transmitting a CAN data frame...
  • Page 17 PCAN-LIN – User Manual Inter- Parameter Setting Comment face Activation Application-specific Bit rate CAN / CAN & RS-232 RS-232 for diagnostic purposes Forward Mask Filter Mask 0xFF All LIN frames are received Filter Code 0x00 Master Status Inactive Schedule table not processed LIN Bus Master Termination...
  • Page 18: Master With Schedule Table

    PCAN-LIN – User Manual Master with Schedule Table Properties LIN master Schedule table is processed autonomously Optional: forwarding of LIN data to CAN/RS-232 Optional: module itself transmits additional data, dynamical update of the data via CAN/RS-232 Profile in the Configuration Tool Inter- Parameter Setting...
  • Page 19 PCAN-LIN – User Manual Inter- Parameter Setting Comment face Activation Application-specific Bit rate Forward Mask none Filter Mask 0xFF All LIN frames are received Filter Code 0x00 Master Status Active Schedule table is processed automatically after module start Inactive Processing of schedule table must be started manually LIN Bus Master...
  • Page 20: Gateway Lin - Rs-232

    PCAN-LIN – User Manual Gateway LIN - RS-232 Properties LIN master Controlling of LIN bus via RS-232 Data is transmitted to LIN slaves or requested from them via RS- 232 command Profile in the Configuration Tool Inter- Parameter Setting Comment face Application-specific RS-232...
  • Page 21: Gateway Lin - Can (Lin Monitor)

    PCAN-LIN – User Manual Gateway LIN - CAN (LIN Monitor) Properties Only listener on the LIN bus No sending of LIN data Forwarding of LIN data to CAN/RS-232 Profile in the Configuration Tool Inter- Parameter Setting Comment face Application-specific RS-232 Bit rate Activation Application-specific...
  • Page 22 PCAN-LIN – User Manual Inter- Parameter Setting Comment face Activation Application-specific Bit rate RS-232 also possible Forward Mask Filter Mask 0xFF All LIN frames are received Filter Code 0x00 Master Status Inactive Schedule table not processed LIN Bus Slave Termination Scheduler Not relevant Entries...
  • Page 23: Lin Slave

    PCAN-LIN – User Manual LIN Slave Properties Response to LIN header from an outside master Reception of LIN frames, forwarding of the frames to CAN/RS- 232 possible Update of LIN data via CAN: CAN ID = CAN ID Offset + LIN ID + 0x40 (0x40: fixed offset to update LIN data) Update of LIN data via RS-232 Profile in the Configuration Tool...
  • Page 24 PCAN-LIN – User Manual Inter- Parameter Setting Comment face Activation Application-specific Bit rate Forward Mask No Forwarding CAN / CAN & RS-232 Alternative settings for / RS-232 monitoring purposes Filter Mask 0xFF All LIN frames are received Filter Code 0x00 Master Status Inactive Schedule table not processed...
  • Page 25: Gateway Can - Rs-232

    PCAN-LIN – User Manual Gateway CAN - RS-232 Properties Simple gateway in order to forward CAN data to RS-232 and vice versa No LIN functionality Profile in the Configuration Tool Inter- Parameter Setting Comment face Application-specific RS-232 Bit rate Activation Application-specific Bit rate RS-232...
  • Page 26: Firmware Update

    PCAN-LIN – User Manual Firmware Update For a firmware update, you need a hex file with the current firm- ware which you get from us upon request (contact data: see on page 2). Do the following to update the firmware: Start the PCAN-LIN Configuration Tool.
  • Page 27 PCAN-LIN – User Manual If the RS-232 connection to the PCAN-LIN module isn't established via COM1, select another COM port in area Step 1. In area Step 3, choose the hex file with the new firmware by clicking the Browse button. Click the Start button.
  • Page 28 PCAN-LIN – User Manual 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: Technical Specifications

    PCAN-LIN – User Manual Technical Specifications Power supply Supply voltage : 8 - 18 V DC : 9 - 30 V DC Current consumption PCAN-LIN HS-CAN: max. 130 mA PCAN-LIN LS-CAN: max. 130 mA PCAN-LIN HS-CAN opto: max. 140 mA RS-232 Bit rates : max.
  • Page 30 PCAN-LIN – User Manual Measures Size 91 x 42 x 20 mm (L x W x H) See also dimension drawing in Appendix B on page Weight PCAN-LIN HS-CAN: 47 g PCAN-LIN LS-CAN: 48 g PCAN-LIN HS-CAN opto: 50 g Environment Operating temperature -40 - +85 °C (-40 - +185 °F)
  • Page 31: Appendix Ace Certificates

    PCAN-LIN – User Manual Appendix A CE Certificates...
  • Page 32: Appendix B Dimension Drawing

    PCAN-LIN – User Manual Appendix B Dimension Drawing The figures do not show the actual size of the product.
  • Page 33: Pcan-Lin Module

    PCAN-LIN – User Manual Appendix C Changes of Hardware/Software This section covers the most important changes of the hardware and the software related to former versions. PCAN-LIN Module Property Modules up to ser. no. 999 Modules from ser. no. 1000 Supply voltage 8 - 18 V DC 9 - 30 V DC...
  • Page 34: Appendix D Quick Reference

    PCAN-LIN – User Manual Appendix D Quick Reference Connectors D-Sub Male Connector for LIN, CAN, and Voltage Supply V BAT (up to ser. no. 999): 8 - 18 V DC V BAT (from ser. no. 1000): 9 - 30 V DC D-Sub Female Connector for RS-232 Operation When applying the supply voltage, the operational readiness of the...

Table of Contents