background image

PCAN-USB Pro – User Manual 
 

32 

 

 

Figure 22: PCAN-Basic 

On the provided DVD you can find files of the programming 
interface PCAN-Basic in the directory branch 

Develop

. This API 

provides basic functions for linking own programs to CAN 
interfaces by PEAK-System and can be used for the following 
operating systems: 

 

Windows 7/Vista/XP (32/64-bit) 

 

Windows CE 6.x (x86/ARMv4) 

The API is designed for cross-platform use. Therefore software pro-
jects can easily ported between platforms with low efforts. PEAK-
System has created examples for the following programming lan-
guages: C++, C#, C++/CLR, Visual Basic, Delphi, Python, and Java. 

Summary of Contents for PCAN-USB Pro

Page 1: ...PCAN USB Pro High speed USB 2 0 to CAN LIN Interface User Manual V2 1 4...

Page 2: ...duct names mentioned in this document may be the trademarks or registered trademarks of their respective companies They are not explicitly marked by or 2012 PEAK System Technik GmbH PEAK System Techni...

Page 3: ...ling 13 3 4 1 Termination 13 3 4 2 Example of a Connection 13 3 4 3 Maximum Bus Length 14 4 4 1 Status LEDs 15 4 2 Unplugging the USB Connection 16 4 3 Distinguishing Several PCAN USB Pro Adapters 16...

Page 4: ...ve Publisher Tab 28 5 2 2 Trace Tab 30 5 2 3 Status Bar 31 5 3 Linking Own Programs with PCAN Basic 32 5 3 1 Features of PCAN Basic 33 5 3 2 Principle Description of the API 34 5 3 3 Notes about the L...

Page 5: ...ograms can easily access a connected CAN and or LIN bus Tip At the end of this manual Appendix C you can find a Quick Reference with brief information about the installation and operation of the PCAN...

Page 6: ...eduler with support for unconditional event frames and sporadic frames Hardware can work through a schedule table up to 8 tables can be configured with a total of 256 slots Operating system Windows 7...

Page 7: ...ng of an interface DLL examples and header files for all common programming languages PLIN API programming interface consisting of an interface DLL an example and header files for all common programmi...

Page 8: ...N USB Pro adapter later on 2 Insert the supplied DVD into the appropriate drive of the computer Usually a navigation program appears a few mo ments later If not start the file Intro exe from the root...

Page 9: ...emain powered on Windows notifies that new hardware has been detected 6 Windows XP only A Wizard dialog boxes appears for the installation of the drivers devices PCAN USB PRO CAN Device and PCAN USB P...

Page 10: ...pin D Sub female connector for your appliances to be connected individually Two High speed CAN busses ISO 11898 2 can be connected one to each D Sub connector The pin assignment for CAN corresponds t...

Page 11: ...g car battery Both LIN connections need their own supply Both LIN connections have a common galvanic isolation up to 500 V against USB and CAN The LIN connections are not galvanically isolated agains...

Page 12: ...ews at the back of the aluminum casing take off the cover plate and pull the PCB out of the lower part of the casing Set the solder bridge s on the PCB of the PCAN USB Pro adapter according to the des...

Page 13: ...Consider that some computers still supply the USB ports with power even when they are turned off standby operation A High speed CAN bus ISO 11898 2 must be terminated on both ends with 120 Ohms Other...

Page 14: ...te The following table shows the maximum possible CAN bus length at different bit rates Bit rate Bus length 1 Mbit s 40 m 500 kbit s 110 m 250 kbit s 240 m 125 kbit s 500 m 50 kbit s 1 3 km 20 kbit s...

Page 15: ...nection USB 2 0 with a computer is established Green blinking Communication is occurring on the High speed USB connection USB 2 0 A Full speed USB connection USB 1 1 with a computer is established Ora...

Page 16: ...perating system Green slow blinking The LIN interface is initialized with a valid bit rate A software application is connected to the LIN interface LIN1 2 Green quick blinking Data is transmitted via...

Page 17: ...c and the PLIN API PCAN View for Windows is a simple CAN monitor for viewing transmitting and logging CAN messages Figure 7 PCAN View for Windows Do the following to start and initialize PCAN View 1 I...

Page 18: ...tting the CAN parameters appears Figure 8 Selection of the CAN specific hardware and parameters 8 From the list Available CAN hardware select the CAN channel to be used 9 Select the bit rate that is u...

Page 19: ...View It contains two lists one for received messages and one for the transmit messages Representation of CAN data is in hexadecimal format Do the following to transmit a CAN message with PCAN View 1...

Page 20: ...ue greater than 0 For a manual only transmission enter 0 14 Confirm the entries with OK 15 The created transmit message appears on the Receive Transmit tab 16 You trigger selected transmit messages ma...

Page 21: ...ring this process the CAN messages are cached in the working memory of the PC Afterwards they can be saved to a file The tracer can be configured to run in linear or in ring buffer mode In linear buff...

Page 22: ...o tab you can assign a device ID to the adap ter Then it can be clearly identified during operation of several PCAN USB Pro adapters on a single computer Furthermore the current firmware version and t...

Page 23: ...sion capacity The more messages are transmitted on the bus the higher is the bus load The current bus load on the connected CAN bus is shown in the bar display Bus Load in percent The course of the bu...

Page 24: ...single CAN frames on the CAN bus Do the following to destroy a Single Frame 1 Enter the Bit Position where in a CAN frame the error shall be generated 17 Execute the destroy action with Do it The nex...

Page 25: ...destroyed in succession 21 Confirm the entries with Apply to activate the error generator To disable the error generator press Disable Note While the destruction of single CAN frames includes inco mi...

Page 26: ...or Windows Note PLIN View Pro is provided exclusively for the use with the PCAN USB Pro Do the following to start and initialize PLIN View Pro 1 Start the program PLIN View Pro from the Windows Start...

Page 27: ...bit rate for the connected LIN bus you can automatically detect the used bit rate with the function Bit rate detection In the field Timeout you can set the time to wait for a response from the hardwa...

Page 28: ...it frames on the LIN bus If you are logged in as LIN Slave the Receive Publisher tab appears In Slave mode you cannot transmit frames If the Master requests data from a Slave he can publish it in the...

Page 29: ...lect the frame that should be transmitted from the dropdown list ID 31 Enter in the field Data the data for the LIN frame 32 Confirm the entries with OK 33 Send the selected frame with the menu comman...

Page 30: ...ns are saved in such a project for later use Figure 20 Trace tab On the Trace tab the data tracer of PLIN View Pro is used for logging and presenting the communication of a LIN bus At the start of the...

Page 31: ...s and the file name under which the recording will be saved Figure 21 Display of the Status bar The status bar shows information about the current LIN hardware the connected LIN channel the used opera...

Page 32: ...king own programs to CAN interfaces by PEAK System and can be used for the following operating systems Windows 7 Vista XP 32 64 bit Windows CE 6 x x86 ARMv4 The API is designed for cross platform use...

Page 33: ...768 messages per CAN channel Precision of time stamps on received messages up to 1 s depending on the PEAK CAN interface used Access to specific hardware parameters such as listen only mode Notificati...

Page 34: ...ed at the same time After a successful initialization the CAN channel is ready for communication with the CAN hardware and the CAN bus No further configuration steps are required For receiving and tra...

Page 35: ...s needed for linking are property of the PEAK System Technik GmbH and may be used only in connection with a hardware component purchased from PEAK System or one of its partners If a CAN hardware compo...

Page 36: ...ows PLIN API Note PLIN API is provided exclusively for the use with the PCAN USB Pro Furthermore the DVD contains header files and a programming example for creating own applications in conjunction wi...

Page 37: ...hardware component purchased from PEAK System or one of its partners If a LIN hardware compo nent of third party suppliers should be compatible to one of PEAK System then you are not allowed to use or...

Page 38: ...e LIN connections have a common ground CAN Specification ISO 11898 2 High speed CAN up to 1 Mbit s 2 0A standard format and 2 0B extended format Timestamp resolution 1 s Transceiver MAX3057ASA Termina...

Page 39: ...100 C 40 212 F Relative humidity 15 90 not condensing EMC EN 55024 2003 10 EN 55022 2008 05 EC directive 2004 108 EG Ingress protection IEC 60529 IP20 Measures Size 71 x 24 x 120 mm W x H x D without...

Page 40: ...PCAN USB Pro User Manual 40...

Page 41: ...PCAN USB Pro User Manual 41 Figure 24 Top view of housing measures in mm...

Page 42: ...PCAN USB Pro User Manual 42 Figure 25 Front view measures in mm Figure 26 Back view measures in mm...

Page 43: ...ws Start menu as sample applications for accessing the PCAN USB Pro adapter For initialization of the CAN interface select the CAN channel and the bit rate For initialization of the LIN interface sele...

Page 44: ...blinking Data is transmitted via the connected CAN bus CAN1 2 Red quick blinking An error is occurring during the transmission of CAN data e g OVERRUN or BUSHEAVY Green on There s a connection to a dr...

Reviews: