PCAN-USB UserMan Eng
PCAN-USB UserMan Eng
PCAN-USB UserMan Eng
User Manual
The cover picture shows both products, the PCAN-USB with the red and the PCAN-USB
opto-decoupled with the grey cable strain relief.
Imprint
PCAN is a registered trademark of PEAK-System Technik GmbH. CiA® is a registered community trade
mark of CAN in Automation e.V.
All other product names in this document may be the trademarks or registered trademarks of their
respective companies. They are not explicitly marked by ™ or ®.
© 2023 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. All rights are reserved.
PEAK-System Technik GmbH
Otto-Röhm-Straße 69
64293 Darmstadt
Germany
Phone: +49 6151 8173-20
Fax: +49 6151 8173-29
www.peak-system.com
[email protected]
Document version 3.1.0 (2023-09-12)
Contents PCAN-USB 3
User Manual 3.1.0 © 2023 PEAK-System Technik GmbH
8 Technical Specifications 32
Appendix A CE Certificate 34
Appendix B UKCA Certificate 35
Appendix C Dimension Drawings 36
Appendix D Quick Reference 37
Appendix E Linux 39
Appendix F Disposal 40
Contents PCAN-USB 4
User Manual 3.1.0 © 2023 PEAK-System Technik GmbH
1 Introduction
The PCAN-USB interface enables simple connection to CAN networks. Its compact
plastic casing makes it suitable for mobile applications. The opto-decoupled
version guarantees galvanic isolation of up to 500 Volts between the PC and the
CAN side.
The monitor software PCAN-View and the programming interface PCAN-Basic for
the development of applications with CAN connection are included in the scope of
supply and support the standard CAN FD.
Device drivers exist for different operating systems, so programs can easily access a
connected CAN bus.
This manual describes the use of the CAN interface with Windows.
Device drivers and application information for Linux:
www.peak-system.com/quick/DL-Driver-E
At the end of this manual you can find a Quick Reference with brief
information about the installation and operation of the PCAN-USB
interface.
1 Introduction PCAN-USB 5
User Manual 3.1.0 © 2023 PEAK-System Technik GmbH
1.1 Properties at a Glance
■ CAN interface for the USB connection
(Full-Speed mode, compatible with USB 1.1, USB 2.0, and USB 3.0)
■ High-speed CAN connection (ISO 11898-2)
■ Compliant with CAN specifications 2.0A (11-bit ID) and 2.0B (29-bit ID)
■ Bit rates from 5 kbit/s up to 1 Mbit/s
■ 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 for IPEH-002022)
■ CAN termination can be activated through a solder jumper
■ 5-Volt supply to the CAN connection can be connected through a
solder jumper, e.g. for external bus converter
■ Voltage supply via USB
■ Extended operating temperature range from -40 to +85 °C (-40 to +185 °F)
1 Introduction PCAN-USB 6
User Manual 3.1.0 © 2023 PEAK-System Technik GmbH
1.2 System Requirements
Computer with
■ operating system Windows 11 (x64/ARM64), 10 (x64), or Linux
■ a vacant USB port (USB 1.1, USB 2.0, or USB 3.0) or
■ a vacant USB port at a self-powered USB hub
Downloads
■ Device drivers for Windows 11 (x64/ARM64), 10 (x64), and Linux
■ CAN monitor PCAN-View for Windows
■ Programming interface PCAN-Basic for developing applications with CAN
connection
■ Programming interfaces for standardized protocols from the automotive sector
■ Manual in PDF format
1 Introduction PCAN-USB 7
User Manual 3.1.0 © 2023 PEAK-System Technik GmbH
2 Settings
The following describes the settings for the power supply of external devices and
the internal termination. If you do not need any of these settings, skip this chapter.
2 Settings PCAN-USB 8
User Manual 3.1.0 © 2023 PEAK-System Technik GmbH
1. Open the CAN interface casing. Push the latches on both sides cautiously with a
slotted screwdriver.
2. Remove the circuit board.
3. Set the solder bridges according to the model of the PCAN-USB on the intended
position on the circuit 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 the upper half of the housing until the
latches engage.
2 Settings PCAN-USB 9
User Manual 3.1.0 © 2023 PEAK-System Technik GmbH
PCAN-USB opto-decoupled (IPEH-002022) to S/N 199999,
solder field R11
IPEH-002022 (opto-dec.)
JP3
from S/N 200000
2 Settings PCAN-USB 10
User Manual 3.1.0 © 2023 PEAK-System Technik GmbH
Attention! The voltage supply for external devices is not protected
separately. Therefore, 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 operation).
2 Settings PCAN-USB 11
User Manual 3.1.0 © 2023 PEAK-System Technik GmbH
2.2 Internal Termination
Only applicable from S/N 200000
The internal termination can be activated by solder jumpers on the circuit board to
terminate one end of the CAN bus. At delivery the termination is not activated.
1. Open the CAN interface casing. Push the latches on both sides cautiously with a
slotted screwdriver.
2. Remove the circuit board.
3. Set the solder bridges according to the model of the PCAN-USB on the intended
position on the circuit 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 the upper half of the housing until the
latches engage.
2 Settings PCAN-USB 12
User Manual 3.1.0 © 2023 PEAK-System Technik GmbH
PCAN-USB (IPEH-002021) from S/N 200000,
solder fields for the CAN bus termination
IPEH-002021
from S/N 200000
IPEH-002022 (opto-dec.)
from S/N 200000
2 Settings PCAN-USB 13
User Manual 3.1.0 © 2023 PEAK-System Technik GmbH
3 Installation
This chapter covers the software setup for the PCAN-USB interface under Windows
and the connection of the CAN interface to the computer.
Note: For installation on Linux, see Appendix E Linux.
Install the driver before you connect the CAN interface.
3 Installation PCAN-USB 14
User Manual 3.1.0 © 2023 PEAK-System Technik GmbH
3.2 Connecting the CAN Interface
Attention! Do not use a USB extension cable to connect the
CAN interface to the computer. Extension cables does not comply
with the USB specification.
1. Connect the CAN interface to a USB port of the computer or of a connected USB
hub. The 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.
3 Installation PCAN-USB 15
User Manual 3.1.0 © 2023 PEAK-System Technik GmbH
4 Connecting the CAN Bus
4.1 Connection over D-Sub Connector
After the CAN interface is connected, a CAN bus can be connected to the
D-Sub connector. The pin assignment for CAN corresponds to the specification
CiA® 106:
Low power devices 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 section 2.1 Voltage Supply of External
Devices.
4.2.1 Termination
The High-speed CAN bus (ISO 11898-2) must be terminated with 120 Ω on both
ends. The termination prevents interfering signal reflections and ensures the
proper operation of the transceivers of the connected CAN nodes (CAN interfaces,
control devices).
The PCAN-USB interface to S/N 199999 does not have an 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.
This example shows a connection between the PCAN Interface and a control unit
(ECU). The upper example shows a connection with a cable which is terminated
with 120 Ω at both ends. At the lower example the connection is made with
termination adapters.
The listed values have been calculated on the basis of an idealized system and can
differ from reality.
Status Meaning
On There is a connection to the driver of the operating system.
Slow blinking A software application is connected to the CAN interface.
Quick blinking Data is transmitted via the connected CAN bus.
5 Operation PCAN-USB 19
User Manual 3.1.0 © 2023 PEAK-System Technik GmbH
6 CAN Monitor PCAN-View
The CAN monitor PCAN-View is a Windows software for viewing, sending, and
recording CAN and CAN FD messages. The software is 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 can be found in the program window
under the menu item Help.
CAN CAN FD
CAN CAN FD
1. Enter the ID, Length and Data of the message. Other settings can be made
according to the connected CAN bus.
2. Enter a value into the Cycle Time field to choose manually or periodically
message transmission.
To transmit periodically enter a value greater than 0.
To transmit only manually enter the value 0.
3. Confirm the entries with OK.
The created transmit message appears on the Receive / Transmit tab.
4. To send the message manually, select the menu command Transmit > Send or
press the |space| bar.
The manual transmission process is performed additionally for periodically
transmitted CAN messages.
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.
The CAN interface tab shows information about the hardware and the used
Windows device driver. In this case exemplary 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 "ISO" or "Non-ISO" can be set as default of the hardware.
The Bus Load tab displays the current bus load, its time history and statistical
information of the connected CAN channel.
Via the Error Generator tab the communication on the CAN bus in test
environments or during the development of CAN buses can be disturbed in a
controlled way by 6 consecutive dominant bits. This is a violation of the CAN
protocol on the CAN bus which must be recognized as an error by the connected
CAN nodes.
You can destroy CAN frames with the error generator by one of two methods:
■ once after activation
■ repeatedly at specific intervals related to a CAN ID
The programming interface (API) PCAN-Basic provides basic functions for the
connection of own programs to the CAN and CAN FD Interfaces of PEAK-System.
PCAN-Basic is the interface between the program and the device driver. In Windows
operating systems 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 supported
systems with little effort.
With the installation of the device driver package under Windows the DLL files of
the API PCAN-Basic are placed in the system folder. Examples for all common
programming languages as well as libraries and help files are available as a
download package at: www.peak-system.com/quick/DL-Develop-E
Initialization
A CAN 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. 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 depending on
the initialization mode. Additional settings can be made, such as setting up
message filters to confine to specific CAN IDs or setting the CAN controller to
Listen-only mode.
When receiving CAN messages, events are used for an automatic notification of an
application (client). This offers the following advantages:
■ The application no longer needs to check for received messages periodically
(no polling).
■ The response time at reception is reduced.
Completion
To end the communication the function CAN_Uninitialize is called in order to
release the reserved resources for the CAN channel, among others. In addition the
CAN channel is marked as "Free" and is available to other applications.
CAN
Protocols on OSI layer 2 CAN ISO 11898-1:2015, 2.0
Physical transmission, OSI layer 1 ISO 11898-2 (High-speed CAN)
CAN Bit rates Nominal: 5 kbit/s to 1 Mbit/s
Controller NXP SJA1000
Transceiver NXP PCA82C251
Galvanic isolation PCAN-USB: none
PCAN-USB opto: up to 500 V
Supply for external devices PCAN-USB: 5 V, max. 100 mA
via D-Sub pin 1 / pin 9 PCAN-USB opto1: 5 V, max. 50 mA
not activated at delivery
Internal termination to S/N 199999 not available,
from S/N 200000 via solder bridges,
not activated at delivery
Time stamp resolution 42 µs
Power supply
Supply voltage +5 V DC (via USB port)
Power consumption max. 200 mA
Measures
Size (w/o cable) PCAN-USB: 75 x 43 x 22 mm
PCAN-USB opto: 87 x 43 x 22 mm
Length (connection cable) approx. 0.75 m
Weight (with cable) PCAN-USB: 78 g
PCAN-USB opto: 83 g
Conformity
RoHS EU Directive 2011/65/EU (RoHS 2) + 2015/863/EU
DIN EN IEC 63000:2019-05
EMC EU Directive 2014/30/EU
DIN EN 55032:2022-08
DIN EN 55035:2018-04
EU Declaration of Conformity
This declaration applies to the following product:
Product name: PCAN-USB
Item number(s): IPEH-002021, IPEH-002022
Manufacturer: PEAK-System Technik GmbH
Otto-Röhm-Straße 69
64293 Darmstadt
Germany
UK Declaration of Conformity
This declaration applies to the following product:
Product name: PCAN-USB
Item number(s): IPEH-002021, IPEH-002022
The Restriction of the Use of Certain Hazardous Substances in Electrical and Electronic
Equipment Regulations 2012
DIN EN IEC 63000:2019-05
Technical documentation for the assessment of electrical and electronic products with respect
to the restriction of hazardous substances (IEC 63000:2016);
German version of EN IEC 63000:2018
PCAN-USB
PCAN-USB opto-decoupled
Status LED
Status Meaning
On There's a connection to a driver of the operating system.
Slow blinking A software application is connected to the CAN interface.
Quick blinking Data is transmitted via the connected CAN bus.
Whether the required driver for the PCAN interface is present and loaded can be
checked with the following command:
If the initialization was successful, the response line starts with peak_usb.
You can find a recent list of which PCAN interface is supported from which kernel
version onwards on our Linux website.
If the required drivers are not listed, install the "Driver Package for Proprietary
Purposes". The download and documentation for the driver can also be found on:
www.peak-system.com/linux
This driver package is also needed to use the APIs based on the chardev driver, for
example PCAN-Basic, libpcan, or libpcanfd.