background image

PCAN-ExpressCard – User Manual 
 

23 

An overview of the API functions is located in the header files. You 
can find detailed information about the PCAN-Basic API on the 
provided DVD in the text and help files (file name extensions 

.txt

 

and 

.chm

). 

5.2.2

 

Principle Description of the API 

The PCAN-Basic API is the interface between the user application 
and device driver. In Windows operating systems this is a DLL 
(Dynamic Link Library). 

The sequence of accessing the CAN interface is divided into three 
phases: 

1.

 

Initialization 

2.

 

Interaction 

3.

 

Completion 

Initialization 

A channel must be initialized before using it. This is done by the 
simple call of the function 

CAN_Initialize

 for CAN and 

CAN_InitializeFD

 for CAN-FD. Depending on the type of the CAN 

hardware, up to 16 CAN channels can be opened 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. 

Interaction 

For receiving and transmitting messages the functions 

CAN_Read

 and 

CAN_Write

 as well as 

CAN_ReadFD

 and 

CAN_WriteFD 

are available. 

Additional settings can be made, e.g. setting up message filters to 
confine to specific CAN IDs or setting the CAN controller to listen-
only mode. 

Summary of Contents for IPEH-003001

Page 1: ...CAN Interface for the ExpressCard Slot User Manual PCAN ExpressCard Document version 2 3 0 2015 06 15...

Page 2: ...pen and CiA are registered community trade marks of CAN in Automation e V All other product names mentioned in this document may be the trademarks or registered trademarks of their respective companie...

Page 3: ...Connector 9 3 3 Cabling 10 3 3 1 Termination 10 3 3 2 Example of a Connection 10 3 3 3 Maximum Bus Length 11 4 Operation 12 4 1 Status LED 12 4 2 Removing the Adapter 12 5 Software and API 13 5 1 Moni...

Page 4: ...PCAN ExpressCard User Manual 4 6 Technical Specifications 25 Appendix A CE Certificate 27 Appendix B Dimension Drawing 28 Appendix C Quick Reference 29...

Page 5: ...ss a connected CAN 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 ExpressCard 1 1 Properties at a G...

Page 6: ...in the directory branch Develop and on our website under www peak system com linux 1 2 Prerequisites for Operation ExpressCard slot in the computer type ExpressCard 54 Operating system Windows 8 1 7 V...

Page 7: ...lowing to install the driver 1 Insert the supplied DVD into the appropriate drive of the computer Usually a navigation program appears a few moments later If not start the file Intro exe from the root...

Page 8: ...puter can remain powered on Windows notifies that new hardware has been detected The drivers are found and installed by Windows automatically After the initialization process for the driver for the CA...

Page 9: ...e PCAN View onto pin 1 of a D Sub CAN connector for the Dual Channel model simultaneously for both CAN connectors Thus devices with low power consumption e g bus converters can be directly supplied vi...

Page 10: ...er even when they are turned off standby operation 3 3 Cabling 3 3 1 Termination A High speed CAN bus ISO 11898 2 must be terminated on both ends with 120 Ohms Otherwise there are interfering signal r...

Page 11: ...on the bit rate 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...

Page 12: ...ning On There s a connection to a driver of the operating system Slow blinking A software application is connected to the CAN channel Quick blinking Data is transmitted via the connected CAN bus 4 2 R...

Page 13: ...ftware PCAN View and the programming interface PCAN Basic 5 1 Monitor Software PCAN View PCAN View is simple Windows software for viewing transmitting and logging CAN and CAN FD messages Note This cha...

Page 14: ...lection of the specific hardware and parameters 2 From the list Available PCAN hardware select the desired interface to be used 3 Select the bit rate that is used by all nodes on the CAN bus from the...

Page 15: ...t actively participate in the CAN traffic and just want to observe This also avoids an unintended disruption of an unknown CAN environment e g due to different bit rates 6 Finally confirm the settings...

Page 16: ...element of PCAN 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 wi...

Page 17: ...value greater than 0 For a manual only transmission enter 0 4 Confirm the entries with OK The created transmit message appears on the Receive Transmit tab 5 You trigger selected transmit messages manu...

Page 18: ...CAN bus During 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 l...

Page 19: ...ion about technical details in section 3 2 on page 9 To toggle the setting press the button Enable Disable Attention Risk of short circuit If the option described in this section is activated you may...

Page 20: ...bar The status bar shows information about the current CAN connection about error counters Overruns QXmtFull and shows error messages You can find further information about the use of PCAN View in th...

Page 21: ...s by PEAK System and can be used for the following operating systems Windows 8 1 7 Vista 32 64 bit Windows CE 6 x x86 ARMv4 Linux 32 64 bit The API is designed for cross platform use Therefore softwar...

Page 22: ...els for each hardware unit depending on the PEAK CAN interface used Simple switching between channels of a PEAK CAN interface Driver internal buffer for 32 768 messages per CAN channel Precision of ti...

Page 23: ...tion 3 Completion Initialization A channel must be initialized before using it This is done by the simple call of the function CAN_Initialize for CAN and CAN_InitializeFD for CAN FD Depending on the t...

Page 24: ...on the CAN channel is marked as Free and is available to other applications 5 2 3 Notes about the License Device drivers the interface DLL and further files needed for linking are property of the PEAK...

Page 25: ...SJA1000 Transceiver NXP PCA82C251 Galvanic isolation PCAN ExpressCard none PCAN ExpressCard opto Galvanic isolation up to 300 V separate for each CAN channel Supplying external devices PCAN ExpressCa...

Page 26: ...ht Product model Single Channel 60 g Dual Channel 80 g Single Channel opto 60 g Dual Channel opto 80 g Environment Operating temperature 0 70 C 32 158 F Temperature for storage and transport 30 100 C...

Page 27: ...PCAN ExpressCard User Manual 27 Appendix A CE Certificate...

Page 28: ...PCAN ExpressCard User Manual 28 Appendix B Dimension Drawing Figure 11 Side view and top view of the PCAN ExpressCard The figure does not show the actual size of the product...

Page 29: ...ized After the installation process is finished successfully an LED is on for each CAN channel of the card Getting Started under Windows Run the CAN monitor PCAN View from the Windows Start menu as a...

Reviews: