Home

PCAN-Router Pro - User Manual - PEAK

image

Contents

1. 0 Note After applying the supply voltage the PCAN Router Pro needs a wake up signal in order to start operation Having a customized equipment if there is no CAN transceiver module with wake up function the PCAN Router Pro must be switched on with an external wake up signal see section 5 7 3 on page 31 PCAN Router Pro User Manual a System 2 2 CAN 1 to CAN 4 D Sub 9 pin A CAN bus ts connected to a 9 pin D Sub port 5 V optional GND CAN_L CAN_H CAN_GND CAN_SW 5 V optional CAN_L CAN_GND Wake up CAN_SW GND CAN_H Supply optional Pin assignment of the ports CAN 3 and CAN 4 The assignment of the CAN pins relies upon the used CAN transceiver module Module name Transmission Special function Used CAN lines standard CAN HS High speed CAN CAN_L CAN_H ISO 11898 2 HSGE2 High speed CAN Galvanic isolation up to CAN_L CAN_H ISO 11898 2 300 V for the CAN interface CAN HS 1041 High speed CAN Wake up via CAN CAN_L CAN_H standard ISO 11898 2 CAN LS Low speed CAN Wake up via CAN CAN_L CAN_H ISO 11898 3 CAN LS SW Single wire CAN Wake up via CAN CAN_SW SAE J2411 PCAN Router Pro User Manual a System The D Sub connectors have pins with additional functions Connectors Pin Function See section CAN 1 CAN 2 1 5 Volt supply for external devices to be 3 4 on page 16 CAN 3 CAN 4 activated on the circuit board CAN 3 CAN4 4 Input for external wake up signal 5 7 3 on
2. Object CAN ID Hex DLC Extended Enable RATA Information 282 CAN 1 9 GetCfStatus_R FOh FOh 8 v v 9 GetCilnfo_A F1h 7F1h 8 v 9 GetDateTime_R 7F9h 7F9h 8 v 4 Enable the symbol entry by checking the corresponding field Enable Make sure that a CAN connection exists between the computer and the PCAN Router Pro and furthermore that the PPCAN Editor has access to this connection 26 PCAN Router Pro User Manual m mr Connected to MultiNet_B 500 kbit s B QXmtFull 0 System PPCAN Editor Display of a connection in the status bar on the bottom 6 With Transmit gt Send Configuration or P send the altered configuration to the PCAN Router Pro Do the following to set the time with PCAN View and the shipping configuration for the PCAN Router Pro 1 Under Windows start the program PCAN View and establish a connection to the CAN bus that is connected with the PCAN Router Pro CAN channel 1 2 On the Transmit panel insert the CAN message 7F8h with 8 data bytes for data time and the RTC update bit see example below Note that these are hexadecimal values Since the message must only received once by the PCAN Router Pro a cyclic transmission isn t set Example for Monday 2010 04 19 11 13 00 New Transmit Message ID Hex DLC Data Hex TFS amp 0A 04 13 01 0B 0C 00 01 Cycle Time 0 Message Type E Extended Frame Paused C Remote Request Com
3. 8 3 Uploading the Firmware The process of uploading new firmware to the PCAN Router Pro is as follows 1 Turn onthe PCAN Router Pro by applying a supply voltage BL HW The uC Status LED stays off the LEDs of the CAN connectors CAN 1 to CAN 4 are blinking 2 Runthe program PcanFlash exe under Windows from the local hard drive 3 Click on the A Options button in order to call up the dialog box 4 From the Hardware Profile dropdown list select the PCAN Router Pro entry Options Hardware Profile PCAN Router Pro X Filename PCAN RouterPro 1 7 bin man Block size bytes 512 I Erase all Status timeout ms 3000 Auto reset Reserved area Upload adress Start adress End adress Start adres dres 000000 001FFF 002000 O3DFFF from Bin File Flash offset address 000000 CRC mode CRC array CRC typ depends on CRC array g CRC array address 03DF00 Skip Delete Sector Skip Sectors Dependent on Flash Types ash Type UserFlash 44 PCAN Router Pro User Manual 5 Click on the button next to the File name field in order to select the desired firmware file bin to be uploaded 6 Click on the OK button 7 Make sure that the PCAN Flash program is connected with 500 kbit s to the available CAN interface at the computer Connected to PCAN PCI Channel 1 500 kBit s Overruns 0 PCAN Flash Display of a connection in the status bar on th
4. with wake up function 165 ms Setup with switches on the board CAN OFF ON High speed none 120 Q Low speed 4 7 KQ 1 1 KQ Single wire 9 1 KQ 2 1 KQ Determined by the transceiver module used for each CAN channel 48 PCAN Router Pro User Manual m CAN CAN ID reserved for configuration transfer Data logging Medium Maximum size of a trace Storage requirement Recording format Measures Size casing Weight Environment Operating temperature Temperature for storage and transport Relative humidity EMC Ingress protection IEC 60529 System 7E7h CompactFlash card max 2 GByte 2 GByte 512 bytes per 25 CAN messages independent of the message lengths Proprietary binary format btxr conversion options with the provided Windows program PCAN Trace trc Vector Trace asc comma separated values csv 190 x 29 x 104 mm WxHxD See also dimension drawing in Appendix B on page 51 570g 40 85 C 40 185 F 40 100 C 40 212 F 15 90 not condensing EN 61326 1 2013 07 EC directive 2004 108 EG EN 55011 2009 A2 2010 IP20 49 PCAN Router Pro User Manual a System Appendix A CE Certificate PCAN Router Pro IPEH 002212 EC Declaration of Conformity PEAK System Technik GmbH System Notes on the CE Symbol The following applies to the PCAN Router Pro product with the item number s IPEH 002212 EC Directive This
5. Sub connector 3 5 on page 17 Replacing the button cell for the real time clock RTC 3 6 on page 19 Do the following to remove the circuit board from the casing of the PCAN Router Pro in order to access the possibilities for adjustments on the board Attention Electrostatic discharge ESD can damage or destroy components on the circuit board of the PCAN Router Pro Take precautions to avoid ESD when handling the board 1 Along the top edge of the casing remove two screws on each the front and the rear of the PCAN Router Pro 2 Take off the upper casing part 3 On the front of the PCAN Router Pro remove the lower two screws 4 Together with the front panel pull out the circuit board into front direction from the casing s lower part The subsequent assembly is done in reverse order Take care about the light guides on the casing top 11 PCAN RoOuter Pro 3 1 Module User Manual System Using an Alternative CAN Transceiver For each of the four CAN connections an alternative CAN transceiver module can be inserted Following modules are available Module name CAN HS HSGE2 CAN HS 1041 standard CAN LS CAN LS SW Transmission standard High speed CAN ISO 11898 2 High speed CAN ISO 11898 2 High speed CAN ISO 11898 2 Low speed CAN ISO 11898 3 Single wire CAN SAE J2411 Special function Galvanic isolation up to 300 V for the CAN interface Wake up Wake up Wake u
6. firmware start of the bootloader on the PCAN Router Pro with a serial number of 100 and above This is how you change the Router ID of a PCAN Router Pro 1 Change the position of the rotary switch with a small slot screwdriver 15 PCAN Router Pro User Manual u System 2 Restart the PCAN Router Pro by briefly cutting off the power supply After the restart the changed Router ID will be active Before the restart changes made at the rotary switch will have no influence on operation During operation with a configuration the LED uC Status blinks green every second If a configuration for the set Router ID does not exist the LED blinks twice as fast 3 4 Enabling the 5 Volt Supply for External Devices A 5 Volt supply can optionally be routed to pin 1 of a D Sub connector independently for each connector by setting solder jumpers on the circuit board of the PCAN Router Pro Thus devices with low power consumption e g bus converters can be directly supplied via the D Sub connector The current output is limited to 100 mA for each connector Proceed as follows to activate the 5 Volt supply Set the solder jumper s on the circuit board of the PCAN Router Pro according to the desired function During this procedure take especially care not to produce unwanted short circuits on the board The following figure shows the positions of the solder fields on the circuit board The table below contains the possibl
7. page 31 CAN 3 CAN4 9 Supply of the router via a D Sub 3 5 on page 17 connector to be activated on the circuit board a Note The additional functions at the D Sub connectors are not galvanically isolated When using the transceiver module HSGE2 galvanic isolation is only provided for those pins that are assigned to CAN communication at the corresponding D Sub connector 2 CAN_L 7 CAN_H 3 CAN_GND 2 3 CompactFlash Card To log the CAN data traffic trace you can use CompactFlash cards CF cards with a maximum capacity of 2 GByte The CF slot is placed on the rear of the PCAN Router Pro The CF card is properly inserted if it flushes with the rear panel Qa Note When you want to insert or eject a CompactFlash card the PCAN Router Pro must be turned off no power supply or power down mode Power LED off Else the card is not detected or data gets lost About the use of a CF card see chapter 6 Logging CAN Traffic onto a CompactFlash Card on page 33 10 PCAN Router Pro User Manual a System 3 Hardware Adjustments You can adjust some hardware settings on the circuit board of the PCAN Router Pro corresponding section in brackets Using an alternative CAN transceiver module 3 1 on page 12 Adjusting the termination for a CAN bus 3 2 on page 14 Setting the Router ID for the configuration 3 3 on page 15 Enabling the 5 Volt supply for external devices 3 4 on page 16 Enabling the supply of the router via a D
8. product fulfills the requirements of EU EMC Directive 2004 108 EC Electromagnetic Compatibility and is designed for the following fields of application as for the CE marking Electromagnetic Immunity Emission DIN EN 61326 1 publication date 2013 07 Electrical equipment for measurement control and laboratory use EMC requirements Part 1 General requirements IEC 61326 1 2012 German version EN 61326 1 2013 Declarations of In accordance with the above mentioned EU directives the EC Conformity declarations of conformity and the associated documentation are held at the disposal of the competent authorities at the address below PEAK System Technik GmbH Mr Wilhelm Otto Roehm Strasse 69 64293 Darmstadt Germany Phone 49 0 6151 8173 20 Fax 49 0 6151 8173 29 E mail info peak system com haha Signed this 22 day of October 2013 50 PCAN Router Pro User Manual PEAK System Appendix B Dimension Drawing Top view measures in mm Front view measures in mm The figures do not show the original size ot PCAN Router Pro User Manual a System Appendix C Contents of a CompactFlash Card Applies to the standard firmware Contents of a CompactFlash card being prepared for data logging File system FAT16 often just called FAT File trace btr in the root directory file name extension btr binary trace File size a multiple of 512 bytes min 1024 bytes not fragment
9. the program help of the PPCAN Editor This is how to install the PPCAN Editor 1 Only Windows XP Make sure that you are logged in as user with administrator privileges When you use the PPCAN Editor later you can also work as a user with limited rights On the supplied DVD change to the following directory Tools PCAN Router Pro Tools PPCAN Edit Start the setup program PPCAN Editor2 Setup exe PEAK System N G PPCAN Editor 2 Installation Welcome to the PPCAN Editor 2 Installation Wizard It is strongly recommended that you exit all Windows programs before running this setup program Click Cancel to quit the setup program then close any programs you have running Click Next to continue the installation WARNING This program is protected by copyright law and international treaties Unauthorized reproduction or distribution of this program or any portion of it may result in severe civil and criminal penalties and will be prosecuted to the maximum extent possible under law Startup screen of the installation program for the PPCAN Editor 20 PCAN Router Pro User Manual m System 4 Follow the instructions of the setup program until you come to the step Select Hardware Profiles At this point select at least the entry PCAN Router Pro so that the PCAN Router Pro will be supported by the PPCAN Editor x G4 PPCAN Editor 2 Select Hardware Profiles Select the Hardware Pro
10. 9 bit IDs 70h Special Out Trace Enable 15 CAN 1 CAN2 CAN3 CAN4 E Connected to MultiNet_B 500 kbit s B QXmtFull 0 Modified The entries for the recording are created in the module specific configuration PCAN Router Pro User Manual a System Create the following entries see also figure Field Selection Input I O Function 70h Special Out I O No Routing 1 to CF All Default Value 3 Field Selection Input I O Function 70h Special Out 1 O No Trace Enable Default Value 15 Explanation Special functions of the PCAN Router Pro Forward all CAN messages from CAN channel 1 to the CF card Alternatively you can select the CAN channels 2 3 or 4 or create additional entries for these CAN channels 2 bit value CAN frames with 11 bit and or 29 bit ID are forwarded to the CF card here both ID types Bit O 1 dec 11 bit ID Bit 1 2 dec 29 bit ID Explanation Special functions of the PCAN Router Pro The logging function must be enabled for the desired CAN channels 4 bit value A set bit enables the logging function for the corresponding CAN channel here all four CAN channels Bit O 1 dec CAN 1 Bit 1 2 dec CAN 2 Bit 2 4 dec CAN 3 Bit 3 8 dec CAN 4 Further logging possibilities with the I O function 70h Special Out Routing 7 to CF Explicit Only CAN messages with the given 11 bit ID Routing 1 to CF Excluding All CAN
11. CAN bus termination for each CAN connection CAN 1 to CAN 4 with switch blocks 1 to S4 Switches 1 and 2 on a switch block always must have the same position By default the switches are set to off opposite to position ON on a switch block S Af Positions of the switch blocks for CAN termination ON switch position is labeled on the switch blocks Type of transceiver Termination at switch position Off High speed CAN ISO 11898 2 none Low speed CAN ISO 11898 3 4 7 kQ for CAN_L and CAN_H Single wire CAN SAE J2411 9 1 kQ for CAN_SW Both switches of a switch block 14 ON 120 Q between CAN_L and CAN_H 1 1 KQ for CAN_L and CAN_H 2 1 KQ for CAN _ SW PCAN Router Pro User Manual m System 3 3 Setting the Router ID for the Configuration The board of the PCAN Router Pro has a rotary switch with 16 settings to determine the Router ID 0 F hex 0 15 a aap r Position of the rotary switch for the Router ID When the PCAN Router Pro is started with the standard firmware that configuration is loaded from the internal memory whose number matches the specified Router ID In addition the Router ID gives the PCAN Router Pro a unique identification during the PPCAN communication configuration transfer For the trans mission of CAN messages during normal operation this Router ID is not relevant Gp Note The rotary switch setting F is reserved for an upload of new
12. Main Conf Ver Sub FW Ver Main FW Ver Sub FW Build Module ID Tx Msg Count CAN x Rx Msg Count CAN x RTC Time RTC Date RTC Alarm Main Cycle Counter Main Cycle Time Max ms Main Cycle Time Avg us Rx Traffic Indicator CAN x Rx Error Counter CAN x Tx Error Counter CAN x Bus Error Counter CAN x Rx Queue Overrun CAN x Numbe r of bits 32 32 32 32 32 32 16 16 32 32 Value range 0 255 0 255 0 7 0 31 0 255 Value from bit pattern see right Value from bit pattern see right Value from bit pattern see right 0 65535 0 1 0 255 0 23 1 System Function Diverse constants Read only can be used as input constants Positive constants Read only can be used as input constants Negative constants Read only can be used as input constants Mai i ber of the configurati AVE OU E oes connie Can be specified in the PPCAN Editor during the module Secondary version number of the specific settings configuration Main version number of the firmware Secondary version number of the firmware For information purposes Build version number of the firmware Router ID Position of the corresponding rotary switch on the board of the PCAN Router Pro see section 3 3 on page 15 Number of transmitted CAN messages on CAN channel x Number of received CAN messages on CAN channel x Read current time from the real time clock Bit pattern hhhhhhhh mmmmmmmm ssssssss ccccccc
13. N transceiver modules with wake up function that automatically initialize a wake up when a supply voltage is applied Therefore the PCAN Router Pro immediately turns on by itself Power LED on CAN transceiver module Transmission standard Wake up function CAN HS High speed CAN ISO 11898 2 no HSGE2 High speed CAN ISO 11898 2 no CAN HS 1041 standard High speed CAN ISO 11898 2 yes CAN LS Low speed CAN ISO 11898 3 yes CAN LS SW Single wire CAN SAE J2411 yes Qa Note Having a customized equipment if there is no CAN transceiver module with wake up function the PCAN Router Pro must be switched on with an external wake up signal see section 5 7 3 on page 31 5 2 Default Bit Rates of the CAN Channels In order to ensure the communication with the PCAN Router Pro default bit rates are preset for CAN channels according to the used CAN transceiver module 22 PCAN Router Pro User Manual a System Module name Transmission standard Default bit rate CAN HS High speed CAN ISO 11898 2 500 kbit s HSGE2 High speed CAN ISO 11898 2 500 kbit s CAN HS 1041 High speed CAN ISO 11898 2 500 kbit s standard equipment CAN LS Low speed CAN ISO 11898 3 125 kbit s CAN LS SW Single wire CAN SAE J2411 33 3 kbit s The default bit rate is enabled if the current configuration in the PCAN Router Pro does not provide another bit rate In a configura tion the bit rate can be set independently for each CAN channel This is done with the I O function 70
14. PCAN ROUtTEer Pro 4 Channel CAN Router with Data Logger User Manual PEAK Document version 2 2 0 2014 02 07 System PCAN Router Pro User Manual a System Products taken into account Product Name Model Part number PCAN Router Pro 4 High speed CAN channels IPEH 002212 Wake up ready other CAN transceiver modules on request Product names mentioned in this document may be the trademarks or registered trademarks of their respective companies They are not explicitly marked by and R 2014 PEAK System Technik GmbH PEAK System Technik GmbH Otto Roehm Strasse 69 64293 Darmstadt Germany Phone 49 0 6151 8173 20 Fax 49 0 6151 8173 29 www peak system com info peak system com Document version 2 2 0 2014 02 07 PCAN Router Pro User Manual a System Contents 1 Introduction 5 1 1 Properties at a Glance 5 1 2 Prerequisites for Operation 6 1 3 Scope of Supply 7 2 Connectors 8 2 1 Power Voltage Supply 8 2 2 CAN 1 to CAN 4 D Sub 9 pin 9 2 3 CompactFlash Card 10 3 Hardware Adjustments 11 3 1 Using an Alternative CAN Transceiver Module 12 3 2 Adjusting the Termination for a CAN Bus 14 3 3 Setting the Router ID for the Configuration 15 3 4 Enabling the 5 Volt Supply for External Devices 16 3 5 Enabling the Supply of the Router via a D Sub Connector 17 3 6 Replacing the Button Cell for the Real time Clock CRTC 19 4 Installing Software 20 5 Operation 22 5 1 Turning On the PCAN Rou
15. Status Messages Applies to the standard firmware CAN property Message GetTraceStatus_R ID 7FOh Data length 4 bytes Transmit cycle time none 0 ms RTR yes Format Intel Little Endian Data See following table Position Length Name of data Description byte bit bits variable 0 0 1 NoCardPresent No CF card inserted in the PCAN Router Pro For a correct recognition of a CF card it must be inserted into or ejected from the PCAN Router Pro at turned off state 0 1 1 PartitionError CF card does not contain a partition or more than one 0 2 1 FAT16Error CF card isn t formatted with the file system FAT16 0 3 1 RootError Root directory cannot be found 0 4 1 RootDirError Root directory cannot be opened 0 5 1 FileNotFound File trace btr does not exist 24 PCAN Router Pro User Manual System 0 6 1 FileOpenError File trace btr cannot be opened 0 7 1 FileSeekError Start of file trace btr cannot be found 1 0 1 FileStartError First sector of file trace btr cannot be determined 1 1 1 EndOfFileError Trace file is completely filled with CAN messages linear record mode 1 2 1 RunAllocationError Maximum number of records is reached CAN property Message GetTracelnfo_R ID 7Fth Data length 8 bytes Transmit cycle time none 0 ms RTR yes Format Intel Little Endian Data See following table Position Length Name of data variable byte bit bits 0 0 32 CFTraceFileMsgFree 4 0 32 CFTraceQueueOverr
16. ange to the Compiler subdirectory The directory contains the two installation programs yagarto exe and yagarto tools exe 2 Execute the first installation program and follow its instructions 38 PCAN Router Pro User Manual m System If you don t want to use the default destination folder make sure that your customized path doesn t contain any spaces Otherwise compile operations will not work later 3 Afterwards execute the second installation program and follow its instructions In the system environment the installation programs create search paths for the executable files These new search paths are effective only for programs and command prompts that are started afterwards 7 2 Library The development of applications for the PCAN Router Pro is supported by the library 1ibPCAN Router ProGNU ys a stands for version number a binary file You can access all resources of the PCAN Router Pro by means of this library The library is docu mented in the header files h The files are located in each example directory 7 3 Firmware Examples On the DVD the Example subdirectory contains source code for several firmware examples that you can use and test directly and that you can reuse for custom firmware a Note For the standard firmware of the PCAN Router Pro source code is not available 39 PCAN Router Pro User Manual 7 3 1 System Compiling a Firmware Example Do the following to c
17. arious output formats using a Windows program 1 2 Prerequisites for Operation Voltage supply 8 27 V DC e g car battery For configuring via CAN standard firmware e Computer with CAN interface of the PCAN series e g PCAN USB e CAN cabling with correct termination e Windows 8 7 Vista XP 32 64 bit for the configuration program PCAN Router Pro User Manual For converting logged CAN data e Computer with card reader for CompactFlash cards e Windows 8 7 Vista XP 32 64 bit for the converter program e Sufficient space for data on the hard disk up to 5 times of the initial file size from the CompactFlash card e g 1 GByte 4 GByte 1 3 Scope of Supply PCAN Router Pro in an aluminum casing Mating connector for the power supply Configuration software PPCAN Editor 2 for Windows Conversion software PEAK Converter for Windows Industrial CompactFlash card min 1 GByte Windows development software Yagarto GNU ARM toolchain flash program DVD with library programming examples and manual in PDF format PCAN Router Pro User Manual a System 2 Connectors 2 1 Power Voltage Supply The operation of the PCAN Router Pro requires a voltage source with a nominal 12 V direct current voltage 8 to 27 V are possible The input ts electronically protected against reverse polarity and overvoltage The connection is done with the supplied mating connector for fastening cable strands The polarity is as follows
18. c h hours m minutes s seconds c hundreds Read current date from the real time clock Bit pattern WWWW DDDDDDDD MMMMMMMM YYYYYYYY w day of week D day of month M month Y year Read set alarm time from the real time clock Bit pattern MMMMMM MMDDDDDh hhhhmmmm mmssssss M month D day of month h hour m minute s second Gives the average duration for a computation cycle of the firmware since the last polling Gives the maximum duration for a computation cycle of the firmware Mean duration based on 1000 calculation cycles Indicates the reception of CAN messages monoflop 100 ms Counter of the CAN controller for reception errors Counter of the CAN controller for transmission errors Counter of the CAN controller for bus errors Counter for overrun of the reception queue 59 PCAN Router Pro User Manual 1 0 Function 32 bit Variable FFh 1 0 Number Error Warning CAN x Error Passive CAN x Data Overrun CAN x Tx Traffic Indicator CAN x Trace Status Trace File Msg Free Trace Queue Overruns None 0 to 255 Numbe r of bits 32 32 32 1 32 32 32 Value range 0 1 Value from bit pattern see right 0 232 1 0 23 1 or 231 _ 231 1 System Function Counter of the CAN controller for warning errors Counter of the CAN controller for passive errors Counter of the CAN controller for data overrun errors Indicates the transmission of CAN me
19. date 8 1 System Requirements The following prerequisites must be given so that the PCAN Router Pro can be updated with new firmware CAN interface of the PCAN series for the computer e g PCAN USB CAN cabling between the CAN interface and the PCAN Router Pro with proper termination 120 Q on each end of the CAN bus Operating system Windows 8 7 Vista XP 32 64 bit For custom firmware PCAN Router Pro from serial number 100 41 PCAN Router Pro User Manual System 8 2 Preparing Hardware and Software For an upload of new firmware via CAN the CAN bootloader must be activated in the PCAN Router Pro This is done with the Router ID rotary switch on the circuit board This requires that the casing of the router is opened If the PCAN Router Pro is currently operated with a standard firmware you can alternatively activate the CAN bootloader by software just before the flash process In this case it is not necessary to open the casing In the following instruction steps that are only needed for one of these two activation types are marked as follows BL HW activate bootloader by hardware T BL SW activate bootloader by software Furthermore as part of the preparations a CAN connection must be established and software must be copied from the provided DVD D Perform the following steps for preparation of the hardware Attention Electrostatic discharge ESD can damage or destroy components on the circuit board
20. e bottom If not click the Connect button in order to change the selection in the according dialog box Available PCAN hardware BW PCAN PCI at PCI Bus 3 Device 0 Channel 1 EW PCAN PCI at PCI Bus 3 Device 0 Channel 2 Bit rate 500 kBit s v Bus timing register value Hex 001C 8 Click the s Detect button in order to detect the PCAN Router Pro connected to the CAN bus An entry for the PCAN Router Pro appears in the main window 45 PCAN Router Pro User Manual m 10 11 12 13 14 15 System i 2 PCAN Flash Application PCAN Module Help AR o KJ e Module No Hardware Type Flash Type Version Date Mode Status 15 PCAN Router Pro LPC_IAP_240K 2 03 23 9 2011 active Ok Detecting Detecting finished Overruns 0 Connected to PCAN PCI Channel 1 500 kBit s QXmtFull 0 Select the entry for the PCAN Router Pro 3 BL SW Click the EF Activate module button The uC Status LED stays off the LEDs of the CAN connectors CAN 1 to CAN 4 are blinking Click the F Program button in order to start uploading the new firmware to the PCAN Router Pro Observe the status indication at the bottom of the window The process was successful if the last message to appear is Flashing of module s finished T BL SW Click the F L Reset module button The uC Status is blinking BL HW Disconn
21. e computer From the provided DVD start the converter program PEAK Converter exe located in the directory Tools PCAN Router Pro Tools PEAK Converter As source select the file trace btr from the CF card Specify a destination file and select the desired target format see above Do not save the destination file to the CF card 37 PCAN Router Pro User Manual System 7 Creating Custom Firmware Besides the standard firmware the PCAN Router Pro from serial number 100 can be operated with a custom firmware This is based on the NXP LPC2294 microcontroller with ARM core The functions of the PCAN Router Pro are accessed via a software library Installation packages for the Yagarto GNU ARM toolchain for Windows and several code examples are on the provided DVD You find the files in the following directory branch Develop Microcontroller hardware PCAN Router Pro 7 1 Installing the GNU ARM Toolchain To compile the code examples and the custom firmware code under Windows install Yagarto on your computer Yagarto Is a collection of tools to develop applications for ARM processors and microcon trollers on Windows platforms The collection includes the GNU GCC compiler for C and C Make and further tools Further information about Yagarto www yagarto de System requirement Windows 8 7 Vista XP 32 64 bit Do the following to install Yagarto 1 From the directory branch on the provided DVD mentioned above ch
22. e settings 16 PCAN Router Pro User Manual System EL S mmyP5 JP14mm mma TRS Position of the solder fields on the bottom side of the circuit board for the 5 Volt supply at the D Sub connector JP12 on the right JP15 on the left Connection Solder field irae Bae nan CAN 1 Pin 1 JP12 m m CAN 2 Pin 1 JP13 m m cI CAN 3 Pin 1 JP14 m m ca CAN 4 Pin 1 JP15 m m Ld A Attention Risk of short circuit If the option described in this section is activated you may only connect or disconnect CAN cables or peripheral systems e g bus converters to or from the PCAN Router Pro while it is turned off 3 5 Enabling the Supply of the Router via a D Sub Connector As an alternative to the Power connector intended for supplying the PCAN Router Pro it can be supplied via pin 9 of the D Sub connector CAN 3 or CAN 4 with 8 to 27 V DC On the circuit board of the PCAN Router Pro a connection to the desired D Sub connector must be established with a solder bridge Pin 6 GND is used as negative for the supply 17 PCAN Router Pro User Manual a System D Proceed as follows to enable the supply via a D Sub connector Set the solder jumper on the circuit board of the PCAN Router Pro according to the desired function During this procedure take especially care not to produce unwanted short circuits on the board The following figure shows the positions of the solder fields on the circuit board Th
23. e table below contains the possible settings using solder bridges J 4 yy EE Position of the solder fields on the bottom side of the circuit board for the supply of the router via the D Sub connector Connection No function Supply ss possible CAN 4 Pin 9 18 PCAN Router Pro User Manual m System 3 6 Replacing the Button Cell for the Real time Clock CRTC The real time clock RTC integrated in the PCAN Router Pro is supplied by a button cell of the IEC type CR 1620 3 V as long as the device is turned off without voltage supply or in power down mode Ke F aO Enee nk Position of the button cell for the real time clock A new button cell lasts several years If the internal clock indicates an unexpected time take out the button cell and measure its voltage This should be around the nominal 3 0 Volts If the measured voltage is lower than 2 5 Volts you should replace the button cell with a fresh one Find more details about recalling and setting the time in sections 5 3 Shipping Configuration on page 23 and 5 4 Setting the Real Time Clock on page 25 19 PCAN Router Pro User Manual System 4 Installing Software Create configurations for the operation with the standard firmware using the supplied software PPCAN Editor for Windows This chapter covers the installation procedure for the program Please find information about the creation of a configuration in
24. e the following section 5 7 Wake up If the PCAN Router Pro is in power down mode supply voltage is applied Power LED off a wake up signal is needed for turning on The following subsections show the options 5 7 1 Wake Up with Supply Voltage If the PCAN Router Pro contains at least one CAN transceiver module with wake up function this is the case with standard equipment the Router is switched on automatically as soon as the supply voltage is applied If none of the CAN transceiver modules has the wake up function an external wake up signal must be used see section 5 7 3 on page 31 30 PCAN Router Pro User Manual a System 5 7 2 Wake up via CAN Qa Note This function is only available if a CAN transceiver module with wake up function is present for the used CAN channel For all CAN channels this is the case with standard equipment When on a CAN channel a message is received the PCAN Router Pro turns on This CAN message and all further ones coming in within the wake up period of 165 ms are not processed by the PCAN Router Pro 5 7 3 Wake Up Externally by High Level On each of the ports CAN 3 and CAN 4 a High level at least 4 5 V can be applied to pin 4 to switch on the PCAN Router Pro 5 V optional GND CAN_L CAN_H Supply optional Wake up pin 4 at ports CAN 3 and CAN 4 An external wake up signal is required if none of the CAN transcei ver modules in the PCAN Router Pro has a wa
25. ect the power supply from the PCAN Router Pro BL HW Turn the Router ID rotary switch back to the previously noted setting BL HW Put the cover back onto the casing taking care of LED light guides and fasten it with the four screws You can now use the PCAN Router Pro with the new firmware After an update of the standard firmware the uC Status LED blinks with increased frequency 2 Hz indicating that no 46 PCAN Router Pro User Manual m System configuration is available Re transfer your configuration s to the PCAN Router Pro with the PPCAN Editor 47 PCAN Router Pro 9 Technical Power supply Supply voltage Current consumption at 12 V Wake up time Microcontroller Type Clock Memory internal External memory Firmware upload CAN Standard transceiver Other transceivers on request Wake up time Termination User Manual m System Specifications 12 V DC 8 27 V possible Idling 65 mA Maximum 4 channels to CF 95 mA Power down mode 470 yA 165 ms NXP LPC2294 56 MHz Flash 256 KByte 240 KByte usable for custom firmware RAM 16 KByte RAM 1 MByte via CAN CAN interface of the PCAN series required for the PC High speed CAN ISO 11898 2 with wake up function TJA1041 High speed CAN ISO 11898 2 PCA82C251 without or with galvanic isolation Low speed CAN ISO 11898 3 TJA1055 with wake up function Single wire CAN SAE J2411 TH8056
26. ed File contents empty bytes 00h The size and the time stamp of the file trace btr are not altered by the PCAN Router Pro at data logging Capacity of CAN messages of the file trace btr Ocoee 25 CAN messages 512 52 PCAN Router Pro User Manual Appendix D Router Resources System The table lists all the logical resources of the PCAN Router Pro with standard firmware arranged by I O functions column I O Function and the respective I O numbers column I O Number 1 0 Function DOut Level 00h Special Out 70h 1 0 Number LED CAN x Selfhold CAN x Mode Beeper Pattern Routing x to y All Routing x to y Explicit Routing x to y Excluding Routing x to CF Routing x to CF Explicit Routing x to CF Excluding Trace Enable Trace Disable Numbe r of bits 1 1 32 11 11 Value range 0 Off 1 On Value from bit pattern see right 0 3 11 bit CAN ID 11 bit CAN ID 0 3 11 bit CAN ID 11 bit CAN ID Value from bit pattern see right Value from bit pattern see right Function CAN status LEDs 1 8 1a 4b When turned on wake up automatically set to 1 To switch off the module set to 0 0 Normal all transceivers 1 WakeUp AU5790 2 PowerDown AU7590 PCA82C251 TJA1041 TJA1055 3 ListenOnly PCA82C251 TJA1041 TJA1055 4 HighSpeed AU5790 5 Standby PCA82C251 TJA1041 TJA1055 Tonal rhythm for beeper resulti
27. fferent sizes on the provided DVD Decompress the respective ZIP archive directly to the root directory of the CF card Log off the CF card from the operation system e g under Windows with the Eject command and remove the card from the card reader of the computer Then insert the CF card into the slot on the rear of the PCAN Router Pro 33 PCAN Router Pro User Manual a on E rT es System The CF card is properly inserted if it flushes with the rear panel a Note When you want to insert or eject a CompactFlash card the PCAN Router Pro must be turned off no power supply or power down mode Power LED off Else the card is not detected or data gets lost 6 2 Preparing a Configuration for Recording In the configuration program PPCAN Editor the recording of the CAN traffic is set up in the module specific configuration on the Default values for data objects tab A File CAN Edit View CAN Objects Transmit Tools Window Help OU bieg eiO 9O amp BaP P MAr Ber Baoa Navigator 4 Project Untitled m CAN Objects n E Test Configuration Configuration Target module Name Test Configuration Module type PCAN Router Pro 19 Version 1 0 Enable Module no Configuration no ction blocks Event based messaging Time events Characteristic curve I O Function Hex g Default Value Information 70h Special Out Routing 1 to CF All 3 11 bit 2
28. files that should be installed for the application In the options list _ PCAN Diag beside select the checkboxes for the PCAN MIO profiles that you would PCAN MIO 32 Bit like to have installed Iv _ MU Thermocouplel CAN The disk space fields reflect the requirements of the profiles you have selected Disk Space Required Wk Disk Space Remaining 37643733 k lt Back C Next gt Cancel Choice of the hardware profile for the PCAN Router Pro 5 Follow the remaining instructions of the setup program You can then launch the PPCAN Editor create a configuration and send it to the PCAN Router Pro Find relevant information in the help of the PPCAN Editor a Note The PPCAN Editor uses the CAN ID 7E7h for communi cation with the PCAN Router Pro Using the standard firmware it is defined for each CAN channel that the PCAN Router Pro is reacting to incoming configuration messages Therefore do not use CAN ID 7E7h otherwise or switch this behavior on or off for the single CAN channels I O function 70h Special Out gt Configuration ID 07e7h Enable 21 PCAN Router Pro User Manual a System 5 Operation 5 1 Turning On the PCAN Router Pro After applying a supply voltage the PCAN Router Pro does a reset and is turned off power down mode Power LED off For turning on the PCAN Router Pro needs a wake up signal The standard equipment of the PCAN Router Pro provides High speed CA
29. h Special Out gt CAN Bitrate QO Tip If the communication with the PCAN Router Pro is preven ted because you do not know the bit rates of the CAN channels that have been changed by the current configuration you can set the Router ID to a position without configuration see section 3 3 on page 15 Then the default bit rate is enabled 5 3 Shipping Configuration Applies to the standard firmware At delivery the PCAN Router Pro contains an example configura tion You can change its elements e g the CAN IDs or use them as basis for own configurations For editing the shipping configuration in the PPCAN Editor it is contained on the provided DVD as file ShippingConfig ppproj This configuration has following properties All incoming messages from the four CAN channels are written to an inserted CompactFlash card No forwarding is done between the four CAN channels 23 PCAN Router Pro User Manual a 5 3 1 System The LEDs for the CAN ports blink during CAN traffic LEDs 1 3 5 and 7 green for incoming LEDs 2 4 6 and 8 red for outgoing CAN messages Via CAN channel 1 status CAN messages are provided for request RTR containing information related to the logging function and the CompactFlash card see following tables Optionally The battery buffered real time clock RTC can be set and recalled via CAN channel 1 see section 5 4 Setting the Real Time Clock on page 25 Structure of the
30. is applied the PCAN Router Pro is in power down mode and must be turned on by a wake up signal See following section 5 7 A supply voltage exists and the PCAN Router Pro is turned on Normal operation with the configuration which is allocated to the currently specified Router ID No or no valid configuration is available for the currently specified Router ID Changing the Router ID section 3 3 on page 15 Transferring a configuration to the PCAN Router Pro see program help of the PPCAN Editor Configuration transfer to from the PCAN Router Pro via CAN ID 7E7h Reset Due to the shortness of the reset signal this status is barely viewable Write access onto the CompactFlash card Freely configurable access via I O functions 00h Dout Level gt LED CAN 29 PCAN Router Pro User Manual System 5 6 Power down Mode In power down mode the voltage supply is turned off for a majority of the electronic components in the PCAN Router Pro and the current consumption is reduced to 470 pA at 12 V The Power LED is off In order to set the PCAN Router Pro from turned on state to the power down mode you need to deactivate the selfhold function This is done by transmitting a CAN message that is processed by the PCAN Router Pro and that sets the I O function 70h Special Out gt Selfho d to 0 deactivated If the PCAN Router Pro is in power down mode a wake up signal is needed so that the router turns on again se
31. ke up function co Tip Possible external wake up signals are the supply voltage for the PCAN router Pro or terminal 15 Ignition in a motor vehicle a Eg 31 PCAN Router Pro User Manual System 5 7 4 Wake Up by Real Time Clock CRTC Applies to the standard firmware The PCAN Router Pro is turned on at the alarm time set previously The alarm time is set with a CAN message To do so the I O function 70h Special Out gt RTC Set Alarm must be assigned to a CAN variable in the used configuration 32 PCAN Router Pro User Manual System 6 Logging CAN Traffic onto a 6 1 CompactFlash Card Preparing a CompactFlash Card To log CAN traffic with the PCAN Router Pro the contents of a CompactFlash card CF card must be prepared in a certain way What you need a Computer with card reader for CF cards a CF card with a maximum of 2 GByte capacity enclosed 1 GByte card already prepared Important note Already existing data on the CF card will be lost when following the described procedure Do the following to prepare a CF card 1 2 Insert the card into the card reader of the computer With the appropriate program of the operating system format the card using the file system FAT FAT16 Create a file trace btr in the root directory of the CF card which contains empty bytes 00h The file size must be a multiple of 512 bytes For a start the file trace btr is available in di
32. ls Each of the four bits represents a CAN channel Example CAN 1 and CAN 3 0101b 5 53 PCAN Router Pro User Manual 1 0 Function Numbe 1 0 Number Danae Trace Clear 1 Trace Buffer Type 2 Configuration ID 7E7h 4 Enable RTC Set Year RTC Set Month RTC Set Day of Month RTC Set Day of Week RTC Set Hour RTC Set Minute RTC Set Second RTC Write 1 RTC Set Alarm 32 Logging Error Frames 4 Enable CAN x Bitrate Raw 32 CAN Bitrate xy None Value range 0 1 1 2 Value from bit pattern see right 0 99 1 12 1 31 1 Mo 7 Su 0 23 0 59 0 59 0 1 Value from bit pattern see right Value from bit pattern see right Composition of different values see right 0 3 CAN channel 1 4 System Function Erases the contents of the trace file Determines the mode for logging 1 linear The logging stops when the trace file is full default 2 circular When the trace file is full the logging restarts at the beginning Determines for each CAN channel if it can receive configuration messages via the CAN ID 7E7h on for all channels by default At least one CAN channel must be selected for reception Each of the four bits represents a CAN channel Example CAN 2 and CAN 4 1010b 10 If O is indicated 15 all four CAN channels is used automatically Declarations for date and time to set the battery buffered real time clock Note All declarations must be transmitted to the rou
33. ment Set real time clock in the PCAN Router Pro Cancel Help Data bytes hexadecimal year month day weekday hour minute second RTC update bit 27 PCAN Router Pro User Manual a System 3 Transmit this message once manually e g by pressing the space bar Date and time of the real time clock in the PCAN Router Pro are now Set to the information contained in the data bytes co Tip You can recall the current date and time with another CAN Z message having the ID 7F9h and being transmitted as remote request frame data bytes see table below Data structures of the CAN messages for the real time clock shipping configuration Function CAN ID Data bytes Remarks Setting 7F8h YY MM DD WW hh mm ss 01 Last byte RTC update bit RTC Reading 7F9h YY MM DD WO cc ss mm hh Weekday on upper 4 bits RTC RTR Y year 2 digit M month D day W weekday 1 Monday h hour m minute s second c hundredth 28 PCAN Router Pro User Manual a 5 9 Status LEDS System Applies to the standard firmware except for the Power LED LED Power uC Status CF Card LED 1 LED 3 LED 5 LED 7 LED 2 LED 4 LED 6 LED 8 State Off Green static Green slow blinking 1 Hz Green quick blinking 2 Hz Green quick blinking with short light phase 2 Hz Red Orange blinking Configurable green Configurable red Meaning If a supply voltage
34. messages with 11 bit ID excluding those with the given 11 bit ID 35 PCAN Router Pro User Manu al PEAK ot hf WN System 6 3 Using the Recorded CAN Traffic The recorded CAN traffic on the CompactFlash card CF card is binary coded in the trace btr file For further use you must convert the data in an appropriate format To do so the Windows program PEAK Converter is available on the provided DVD File Help Source File Info I PCAN Diag Projects FW Test_148 trc00045 btr PCAN Router Binary Trace ion 3 0 I PCAN Diag Projects FW Test_148 Select Destination Path Converted tre00045 fag caten ercern E Include Date and Time PCAN Trace v ion v1 1 Single Channel hA Ready To Convert User interface of the PEAK Converter Possible conversion targets Target format File Explanation usage extensi on PCAN Trace Text based trace format by PEAK System viewing of the data in the PCAN Explorer or playback of the CAN messages with the PCAN Trace program Vector ASC Trace Text based trace format by the Vector company that also can be used by some third party programs Character Separated csv Common text based format for import into a Values CSV spreadsheet semicolon as separator 36 PCAN Router Pro User Manual System D For further use of the trace data proceed as follows 1 Eject the CF card from the PCAN Router Pro and insert it into the card reader of th
35. ng from a bit pattern makes a 32 bit value tttttttt tttttttt tttttttt 00c11111 t Sequence of 24 segments each 100 ms where the beeper makes a sound bit set c 0 play sequence once 1 play sequence continuously 1 Number of sequence segments t that are played 0 24 Operation mode CAN transceiver x Forwarding of all CAN messages from CAN channel x to CAN channel y Bit 1 set CAN messages with 11 bit ID standard frame Bit 2 set CAN messages with 29 bit ID extended frame Forwarding of CAN messages with the given 11 bit CAN ID Forwarding of all CAN messages with 11 bit CAN ID except the specified 11 bit CAN ID Forwarding all CAN messages from CAN channel x to the CF card Prerequisite I O function Special Out 70h gt Trace Enable Bit 1 set CAN messages with 11 bit ID standard frame Bit 2 set CAN messages with 29 bit ID extended frame Forwarding of CAN messages with the given 11 bit CAN ID to CF card Prerequisite I O function Special Out 70h gt Trace Enable Forwarding of all CAN messages with 11 bit CAN ID except the specified 11 bit CAN ID to CF card Prerequisite I O function Special Out 70h gt Trace Enable Enable logging function for one or more CAN channels Prerequisite for the execution of I O function Special Out 70h gt Routing x to CF Explicit Excluding Each of the four bits represents a CAN channel Example CAN 3 and CAN 4 1100b 12 Disable logging function for one or more CAN channe
36. of the PCAN Router Pro Take precautions to avoid ESD when handling the circuit board 1 Turn the PCAN Router Pro off by disconnecting it from the power supply 2 BL HW Along the top edge of the casing remove two screws on each the front and the rear of the PCAN Router Pro Afterwards take off the upper casing part 42 PCAN Router Pro User Manual m System i Se e r Position of the rotary switch on the circuit board of the PCAN Router Pro BL HW Make a note of the current setting of the rotary switch Router ID and then turn it to F Connect CAN connector CAN 1 of the PCAN Router Pro with a CAN interface connected to the computer Pay attention to the proper termination of the CAN cabling 2 x 120 Q Uploading firmware via another CAN connector on the PCAN Router Pro is not possible D Perform the following steps for preparation of the software 1 On the supplied DVD change to the following directory Develop Microcontroller hardware PCAN Router Pro Copy the subdirectory PcanFlash to the local hard disk The contained Windows software that copies the Firmware via CAN PcanFlash exe can only be started from a data carrier that is writable If you are updating the standard firmware make sure beforehand that you ve saved the current configuration s on your computer in order to transfer them to the PCAN Router Pro after the firmware update 43 PCAN Router Pro User Manual PEAK
37. ompile a firmware example under Windows 1 From the provided DVD copy the subdirectory of the desired example from the Example directory to the local hard disk Open a command prompt by using the Windows Start menu Alternatively you can press the key combination A R and enter cmd exe as program to be executed At the command prompt change to the previously copied directory Execute the following command in order to clean up the target directories e g out from files that have been generated earlier make clean Execute the following command to compile the firmware example make all If the compiler has finished without errors Errors none you can find the firmware file with the extension bin in the subdirectory out This file is then used for firmware upload to the PCAN Router Pro 40 PCAN Router Pro User Manual m System 8 Firmware Upload You can transfer upload a new version of the standard firmware as well as custom firmware to the PCAN Router Pro The upload of firmware to the PCAN Router Pro is done via a CAN bus with the provided Windows program PCAN Flash Go through the following sections for a firmware upload a Note When updating the standard firmware all existing configurations on the PCAN Router Pro are erased Therefore make sure that the configurations are saved on your computer in order to transfer them with the PPCAN Editor to the PCAN Router Pro after the firmware up
38. p Used CAN lines CAN_L CAN_H CAN_L CAN_H CAN_L CAN_H CAN_L CAN_H CAN_SW pet Comet eget ora LZ Af Default bit rate 500 kbit s 500 kbit s 500 kbit s 125 kbit s 33 3 kbit s Positions of the transceiver modules for the four CAN channels CAN 1 on the left 12 PCAN Router Pro User Manual a System Do the following to replace a transceiver module 1 Remove the retaining screw from the transceiver module to be replaced Take care of the spacer and the nut that are coming off 2 Pull off the transceiver module upwards from the main board 3 Plug the alternative transceiver module onto the socket Make sure that the hole in the transceiver module is aligned to the corresponding hole in the main board 4 Secure the transceiver module with the screw the spacer and the nut At restart the PCAN Router Pro automatically detects the type of the inserted CAN transceiver module and adjusts the according default bit rate for the CAN channel see table above The bit rate can be changed by a configuration a Note Having a customized equipment if there is no CAN transceiver module with wake up function the PCAN Router Pro must be switched on with an external wake up signal see section 5 7 3 on page 31 13 PCAN Router Pro User Manual System 3 2 Adjusting the Termination for a CAN Bus Depending on the used CAN transceiver module you can activate or change the
39. ssages monoflop 100 ms Status of logging to CompactFlash card Bit meaning 0 No CF card inserted in the PCAN Router Pro For a card detection a reset power cycle is needed CF card does not contain a partition or more than one CF card isn t formatted with the file system FAT16 Root directory cannot be found Root directory cannot be opened File trace btr does not exist File trace btr cannot be opened File pointer cannot be set to the start of the file First sector of file trace btr cannot be determined 9 Trace file is completely filled with CAN messages linear record mode 10 Maximum number of records is reached 11 15 Not used Number of CAN messages still fitting into the trace file ONOORWN Number of CAN message not being processed by the CF card queue due to overload No function Can be used as place holder if the corresponding input or output has no function 256 disposable 32 bit variables interpretation as Signed or Unsigned depending on context 56
40. ter Initialization with the I O function Special Out 70 h gt RTC Write Initializes the real time clock RTC with declarations from the I O function Special Out 70h gt RTC Set Sets the alarm time for turning on the PCAN Router Pro when it is in power down mode Bit pattern MMMMMM MMDDDDDh hhhhmmmm mmssssss M month D day of month h hour m minute s second Determines for each CAN channel if occurring error frames are recorded with the enabled logging function Each of the four bits represents a CAN channel Example CAN 2 and CAN 3 0110b 6 Sets the CAN bit rate for CAN channel x by the according register bytes for the CAN controller 0x00YX00BB with BB bitrate prescaler BRP X Tseg1 Y Tseg2 clock 56 MHz real value register value 1 Example for 800 kbit s 0x00290004 Register values BB 4 Tseg1 9 Tseg2 2 Real values BBr 5 Tseg1r 10 Tseg2r 3 Segment length BBr clock 5 56 MHz 89 286 ns Segment count Sync Tsegir Tseg2r 1 10 3 14 Bit length segment length segment count 89 286 ns 14 1 25 us equivalent to 800 kbit s Sets a CAN bit rate xy for the given CAN channel No function Can be used as place holder if the corresponding input or output has no function 54 PCAN RoOuter Pro 1 0 Function Const CCh Positive Const CDh Negative Const CEh Special In FOh User Manual 1 0 Number Diverse values 0 to 255 0 to 255 Conf Ver
41. ter Pro 22 5 2 Default Bit Rates of the CAN Channels 22 5 3 Shipping Configuration 23 sow Structure of the Status Messages 24 5 4 Setting the Real Time Clock 25 5 5 Status LEDS 29 PCAN Router Pro User Manual u System 5 6 Power down Mode 30 5 7 Wake up 30 5 7 1 Wake Up with Supply Voltage 30 5 7 2 Wake up via CAN 31 5 7 3 Wake Up Externally by High Level 31 5 7 4 Wake Up by Real Time Clock CRTC 32 6 Logging CAN Traffic onto a CompactFlash Card 33 6 1 Preparing a CompactFlash Card 33 6 2 Preparing a Configuration for Recording 34 6 3 Using the Recorded CAN Traffic 36 7 Creating Custom Firmware 38 7 1 Installing the GNU ARM Toolchain 38 7 2 Library 39 7 3 Firmware Examples 39 7 3 1 Compiling a Firmware Example 40 8 Firmware Upload 41 8 1 System Requirements 41 8 2 Preparing Hardware and Software 42 8 3 Uploading the Firmware 44 9 Technical Specifications 48 Appendix A CE Certificate 50 Appendix B Dimension Drawing 51 Appendix C Contents of a CompactFlash Card 52 Appendix D Router Resources 53 PCAN Router Pro User Manual a System 1 Introduction The PCAN Router Pro links the data traffic from up to four High speed CAN buses As well as pure forwarding the CAN data can be processed manipulated and for example filtered in a number of different ways A virtual fifth CAN channel is used for recording CAN traffic to a CompactFlash card When using the standard firmware the behavior of the PCAN Router Pro is config
42. uns Description Number of CAN messages still fitting into the trace file Number of CAN message not being processed by the CF card queue due to overload 5 4 Setting the Real Time Clock Applies to the standard firmware The PCAN Router Pro comprises a battery buffered real time clock RTC The clock is accessed with the I O functions 70h Special Out gt RTC and FOh Special In gt RTC The shipping configuration for the PCAN Router Pro contains an entry you can enable in order to set the time with a CAN message 25 PCAN Router Pro User Manual a System By default this entry is disabled to avoid the unwanted disadjust ment of the clock by CAN The following gives instructions about the adjustment of the shipping configuration and the transfer to the PCAN Router Pro and the transmission of a CAN message with the Windows program PCAN View in order to set the time PCAN View is supplied with a CAN interface of the PCAN series e g PCAN USB Do the following to adjust the shipping configuration and to transfer this to the PCAN Router Pro 1 2 Under Windows start the PPCAN Editor Via File gt Open or amp open the file ShippingConfig ppproj residing in the following directory on the supplied DVD Tools PCAN Router Pro Configurations ShippingConfig In the CAN Objects window on the General tab select the symbol entry CAN 1 gt SetDateTime 7F8h General ShippingContig 1 0
43. ured with the Windows program PPCAN Editor Besides the standard firmware the PCAN Router Pro from serial number 100 can be operated with a custom firmware This is based on the NXP LPC2294 microcontroller with ARM core The functions of the PCAN Router Pro are accessed via the provided library 1 1 Properties at a Glance 4 High speed CAN channels via plug in transceiver modules wake up capable optionally available are modules for Low speed Single wire opto decoupled High speed and High speed without wake up function Wake up via a separate input or the CAN bus CAN connection D Sub 9 pin CAN termination switchable Slot for CompactFlash card Battery buffered real time clock RTC can also be used for wake up Beeper Status LEDs for CAN channels CompactFlash card microcontroller and power supply PCAN Router Pro User Manual m NXP LPC2294 microcontroller Aluminum profile casing with mounting flange DIN rail mounting option available on request Voltage supply 8 27 V overvoltage and reversed polarity protection Extended operating temperature range of 40 to 85 C 40 to 185 F Properties of the standard firmware Comprehensive configuration with the Windows software PPCAN Editor 2 Various function blocks for data processing and manipulation Configurable beeper Configurable status LEDs for CAN channels Recording of CAN data and error frames to a CompactFlash card Conversion of logging data to v

Download Pdf Manuals

image

Related Search

Related Contents

Chapin 63900  Manuale Utente Bolt - 1,83 Mb, Data  UL633 - User Guide Draft Alpha Test  Massive 45995/29/17    Makro/ 5 M5Ma - ProMinent Dosiertechnik  USER MANUAL - The Kim Komando Show  丸岡白舟書体 利用許諾契約書  

Copyright © All rights reserved.
Failed to retrieve file