Peak IPEH-002021 User Manual Download Page 30

For Linux a download of the API is available under this link. For a use of PCAN-Basic
another driver package with chardev driver is needed, because an access under
SocketCAN is not possible. The "Driver Package for Proprietary Purposes", the user
manual, and further information about the implementation can be found at

www.peak-system.com/linux

7.1 Features of PCAN-Basic

Thread-safe API for developing applications with CAN and CAN FD connections

Supports CAN specifications ISO 11898-1 for CAN and CAN FD

Supports the operating systems:

Windows 11, 10 (32/64-bit)

Linux (32/64-bit)

Multiple PEAK-System applications and your own can be operated on a physical
channel at the same time

Single DLL (Win) / SO (Linux) for all supported hardware types

Use of up to 16 channels for each hardware type

Simple switching between channels

Access to the CAN channels of a PCAN-Gateway via the PCAN-LAN device type

Driver-internal buffering under Windows of up to 32,768 CAN messages per
CAN channel

Precision of time stamps on received messages up to 1 μs
(depending on the PEAK CAN interface used)

Supports PEAK-System‘s trace formats v1.1 for CAN and
v2.0 for CAN FD applications

Access to specific hardware parameters, such as Listen-only mode

Notification of the application through Windows events when a message is
received

Support of CAN error frames

Confirmation of physical transmission by CAN echo frames

Extended system for debugging operations

7 API PCAN-Basic

PCAN-USB

User Manual 3.0.0

© 2022 PEAK-System Technik GmbH

30

Summary of Contents for IPEH-002021

Page 1: ...PCAN USB User Manual User Manual 3 0 0 2022 PEAK System Technik GmbH...

Page 2: ...tive companies They are not explicitly marked by or 2022 PEAK System Technik GmbH Duplication copying printing or other forms and the electronic distribution of this document is only allowed with expl...

Page 3: ...6 4 1 Connection over D Sub Connector 16 4 2 Cabling 17 4 3 Example Application under Windows 18 5 Operation 19 5 1 Status LED 19 5 2 Unplugging the USB Connection 19 5 3 Distinguishing several PCAN U...

Page 4: ...Appendix C Quick Reference 36 Appendix D Linux 37 Contents PCAN USB User Manual 3 0 0 2022 PEAK System Technik GmbH 4...

Page 5: ...cations with CAN connection are included in the scope of supply and support CAN FD Device drivers exist for different operating systems so programs can easily access a connected CAN bus This manual de...

Page 6: ...1 Time stamp resolution 42 s NXP CAN controller SJA1000 16 MHz clock frequency NXP CAN transceiver PCA82C251 Galvanic isolation on the CAN connection up to 500 V only PCAN USB opto decoupled CAN termi...

Page 7: ...ed USB hub 1 3 Scope of Supply PCAN USB Downloads Device drivers for Windows 11 10 32 64 bit and Linux 32 64 bit CAN monitor PCAN View for Windows Programming interface PCAN Basic for developing appli...

Page 8: ...PCAN TJA1054 bus converter for Low speed CAN Pin 1 and pin 9 are not assigned at delivery and with the PCAN USB opto decoupled only pin 1 is available up to S N 199999 The opto decoupled model of the...

Page 9: ...board see below 4 For assembly place the circuit board on the upper half of the housing The strain relief and the LED must be in the corresponding recesses 5 Press the lower half of the housing onto...

Page 10: ...SB model Solder field 5 V supply on the D Sub connector Without default Pin 1 Pin 9 Pin 1 and Pin 9 IPEH 002021 to S N 199999 JP3 IPEH 002021 from S N 200000 JP3 IPEH 002022 opto dec to S N 199999 R11...

Page 11: ...refore turn off the computer before you connect and disconnect CAN cables or peripheral systems Consider that some computers still supply the USB ports with power even when they are turned off standby...

Page 12: ...performed by qualified electrical engineering personnel Attention Electrostatic discharge ESD can damage or destroy components on the card Take precautions to avoid ESD 1 Open the CAN interface casing...

Page 13: ...decoupled IPEH 002022 from S N 200000 solder fields for the CAN bus termination PCAN USB model Termination High speed CAN bus 120 Without default Activated IPEH 002021 from S N 200000 IPEH 002022 opto...

Page 14: ...ux Install the driver before you connect the CAN interface 3 1 Install Device Driver Setup 1 Download the device driver setup from our website www peak system com quick DL Driver E 2 Unpack the file P...

Page 15: ...computer can remain powered on Windows detects the new hardware and completes the driver installation 2 Check the LED on the CAN interface If the LED is on then the driver was initialized successfully...

Page 16: ...vices can be supplied directly with 5 Volts over pin 1 and pin 9 of the CAN connector for example bus converters Pin 1 and or pin 9 are not in use at the delivery state For more information see sectio...

Page 17: ...internal termination From S N 200000 it has an optional internal termination with 120 See the previous section 2 2 Internal Termination for information about activation 4 2 2 Example of a Connection T...

Page 18: ...20 kbit s 3 3 km 10 kbit s 6 6 km 5 kbit s 13 km The listed values have been calculated on the basis of an idealized system and can differ from reality 4 3 Example Application under Windows As an exam...

Page 19: ...onnection The PCAN USB interface can be disconnected from the computer without further actions In Windows the interface is not listed under Safely Remove Hardware 5 3 Distinguishing several PCAN USB I...

Page 20: ...installed with the installation of the device driver package under Windows In the following the initialization of a CAN interface is described as an example Detailed information about using PCAN View...

Page 21: ...t entry in Available Hardware USB Interface 1 channel see example above USB Interface 2 channel PCIe Interface 2 channel 2 If there are several CAN interfaces select the desired interface For multiple...

Page 22: ...he main window appears and displays the Receive Transmit tab 5 For initializing another channel or CAN interface open another instance of PCAN View 6 CAN Monitor PCAN View PCAN USB User Manual 3 0 0 2...

Page 23: ...Time field to choose manually or periodically message transmission Enter a value greater than 0 to transmit periodically Enter the value 0 to transmit only manually 3 Confirm the entries with OK The...

Page 24: ...ional tabs are available 6 3 1 Trace Tab The tracer data logger records the communication of the CAN bus in linear or ring buffer mode The trace data can be saved to a file 6 CAN Monitor PCAN View PCA...

Page 25: ...lary for the PCAN miniPCIe FD Depending on the CAN Interface a hardware ID can be determined to distinguish several interfaces of the same type For interfaces with CAN FD a transmission according to I...

Page 26: ...s Load tab displays the current bus load its time history and statistical information of the connected CAN channel 6 3 4 Error Generator Tab 6 CAN Monitor PCAN View PCAN USB User Manual 3 0 0 2022 PEA...

Page 27: ...nized as an error by the connected CAN nodes Note The Error Generator should only be used by experienced users and in the development environment For further information please contact our customer su...

Page 28: ...CAN Frames 1 Enter the CAN ID of the CAN frame that is intended to be destroyed multiple times The following specifications refer to this ID 2 Enter the Bit Position where in the CAN frame the error i...

Page 29: ...ems this is a DLL Dynamic Link Library and in Linux operating systems an SO Dynamic Shared Object PCAN Basic is designed to be cross operating system compatible Software projects can be ported between...

Page 30: ...hannel at the same time Single DLL Win SO Linux for all supported hardware types Use of up to 16 channels for each hardware type Simple switching between channels Access to the CAN channels of a PCAN...

Page 31: ...ions CAN_Read and CAN_Write as well as CAN_ReadFD and CAN_WriteFD are available depending on the initialization mode Additional settings can be made such as setting up message filters to confine to sp...

Page 32: ...anic isolation PCAN USB none PCAN USB opto up to 500 V Supply for external devices via D Sub pin 1 pin 9 PCAN USB 5 V max 100 mA PCAN USB opto1 5 V max 50 mA not activated at delivery Internal termina...

Page 33: ...t condensing Ingress protection IEC 60529 IP20 Conformity RoHS EU Directive 2011 65 EU RoHS 2 2015 863 EU DIN EN IEC 63000 2019 05 VDE 0042 12 2019 05 EMC EU Directive 2014 30 EU DIN EN 55024 2016 05...

Page 34: ...Appendix A CE Certificate Appendix A CE Certificate PCAN USB User Manual 3 0 0 2022 PEAK System Technik GmbH 34...

Page 35: ...Appendix B Dimension Drawings PCAN USB PCAN USB opto decoupled Appendix B Dimension Drawings PCAN USB User Manual 3 0 0 2022 PEAK System Technik GmbH 35...

Page 36: ...PEAK Settings appears The connected USB interface is displayed under CAN Hardware Getting Started under Windows Run the CAN monitor PCAN View from the Windows Start menu as a sample application for ac...

Page 37: ...miniPCIe PCAN PCI 104 Express 3 7 PCAN USB FD PCAN USB Pro FD 4 0 PCAN Chip USB 4 11 PCAN PCI Express FD 4 12 PCAN PCI 104 Express FD PCAN miniPCIe FD PCAN Chip PCIe FD 4 12 PCAN M 2 PCAN Chip PCIe 4...

Reviews: