Peak PCAN-miniPCIe User manual

PCAN-miniPCIe
User Manual
User Manual 2.1.0 © 2023 PEAK-System Technik GmbH

Relevant Products
Product name Model Part number
PCAN-miniPCIe SingleChannel One CAN channel, galvanic isolation for
CAN connection
IPEH-003048
PCAN-miniPCIe DualChannel Two CAN channels, galvanic isolation for
CAN connection
IPEH-003049
The cover picture shows the product PCAN-miniPCIe DualChannel. The SingleChannel model has an
identical form factor like the DualChannel model but varies in equipment.
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
Document version 2.1.0 (2023-09-01)
Relevant Products PCAN-miniPCIe
User Manual 2.1.0 © 2023 PEAK-System Technik GmbH
2

Contents
Imprint 2
Relevant Products 2
Contents 3
1 Introduction 4
1.1 Properties at a Glance 4
1.2 System Requirements 4
1.3 Scope of Supply 5
2 Installation 6
2.1 Install Device Driver Setup 6
2.2 Connect the CAN interface 7
2.3 Check Operational Readiness 8
3 Connecting the CAN Bus 9
3.1 Connection over D-Sub Connector 9
3.2 Cabling 9
3.3 Example Application under Windows 10
4 CAN Monitor PCAN-View 11
4.1 Initialize CAN interface 12
4.2 Transmit CAN message 14
4.3 Additional Tabs 15
5 API PCAN-Basic 20
5.1 Features of PCAN-Basic 21
5.2 Principle Description of the API 22
6 Technical Data 23
Appendix A CE Certificate 25
Appendix B UKCA Certificate 26
Appendix C Dimension Drawings 27
Appendix D Quick Reference 28
Appendix E Linux 29
Appendix F Disposal 30
Contents PCAN-miniPCIe
User Manual 2.1.0 © 2023 PEAK-System Technik GmbH
3

1 Introduction
The PCAN-miniPCIe card enables the connection of embedded PCs and laptops
with PCI Express Mini slots to CAN networks. There is galvanic isolation of up to
300Volts between the computer and CAN sides. The card is available as a single or
dual-channel version.
The package is also supplied with the CAN monitor PCAN-View for Windows and the
programming interface PCAN-Basic.
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 CAN interface.
1.1 Properties at a Glance
■CAN interface for the PCI Express Mini slot (uses PCIe lane)
■1 or 2 High-speed CAN channels (ISO 11898-2)
■CAN bus connection via connection cable and D-Sub, 9-pin (in accordance with
CiA®106)
■Bit rates from 5 kbit/s up to 1 Mbit/s
■Compliant with CAN specifications 2.0A (11-bit ID) and 2.0B (29-bit ID)
■FPGA implementation of the CAN FD controller (SJA1000 compatible)
■NXP PCA82C251 CAN transceiver
■Galvanic isolation on the CAN connection up to 300 V, separate for each
CANchannel
■Extended operating temperature range from -40 to +85 °C (-40 to +185 °F)
1.2 System Requirements
Computer with:
1 Introduction PCAN-miniPCIe
User Manual 2.1.0 © 2023 PEAK-System Technik GmbH
4

■Operating system Windows11 (x64), 10 (x64), or Linux
■PCI Express Mini slot with PCIe lane
1.3 Scope of Supply
■CAN interface PCAN-miniPCIe
■Connection cable including D-Sub plug for each channel, 20 cm
Downloads
■Device drivers for Windows11 (x64), 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-miniPCIe
User Manual 2.1.0 © 2023 PEAK-System Technik GmbH
5

2 Installation
This chapter covers the software setup for the CAN interface PCAN-miniPCIe in
Windows and the installation of the CAN interface in the computer.
Note: For installation on Linux, see Appendix E Linux.
Install the driver before you install the CAN interface.
2.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 PEAK-System_Driver-Setup.zip
3. Double-click the file PeakOemDrv.exe
The driver setup starts.
4. Follow the program instructions.
2 Installation PCAN-miniPCIe
User Manual 2.1.0 © 2023 PEAK-System Technik GmbH
6

2.2 Connect the CAN interface
Attention! Electrostatic discharge (ESD) can damage or destroy
components on the card. Take precautions to avoid ESD.
CAN ports DualChannel. DualChannel with connection cables.
1. Shut down the computer.
2. Disconnect the computer’s power supply.
3. Open the computer case.
4. Insert the CAN interface into an empty PCI Express Mini slot.
5. For each CAN channel, mount a D-Sub connector of the connection cable in a
suitable recess of the computer housing.
6. For each CAN channel interconnect the SUR socket connector of the connection
cable and the SUR header on the CAN interface.
7. Close the computer case.
8. Reconnect the computer power supply.
9. Turn on the computer and start Windows.
Windows detects the new hardware and completes the driver installation.
2 Installation PCAN-miniPCIe
User Manual 2.1.0 © 2023 PEAK-System Technik GmbH
7

2.3 Check Operational Readiness
1. Open the Windows Start menu.
2. Type Peak Settings and press |Enter|.
The window PEAK Settings appears.
3. Select CAN Hardware.
The connected CAN interface is displayed.
2 Installation PCAN-miniPCIe
User Manual 2.1.0 © 2023 PEAK-System Technik GmbH
8

3 Connecting the CAN Bus
3.1 Connection over D-Sub Connector
After the connection cable has been connected to the CAN interface a CAN bus can
be connected to the D-Sub connector. The pin assignment of the D-Sub connector
corresponds to the specification CiA® 106:
CAN interface Connection cable Assignment
SUR header
Type: SM04B-SURS-TF
SUR socket
Type: 04SUR-32S
D-Sub plug, 9-pin
2 2 3, 6 CAN_GND
3 3 7 CAN_High
4 4 2 CAN_Low
1 1 1, 4, 5, 8, 9 None
3.2 Cabling
3.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,
controldevices).
The CAN interface PCAN-miniPCIe does not have an internal termination. Use the
CAN interface on a terminated CAN bus.
3 Connecting the CAN Bus PCAN-miniPCIe
User Manual 2.1.0 © 2023 PEAK-System Technik GmbH
9

3.2.2 Example of a Connection
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.
3.2.3 Maximum Bus Length
The maximum bus length depends primarily on the bit rate:
Nominal bit rate Buslength
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 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.
3.3 Example Application under Windows
As an example application for accessing the CAN interface, run the CAN monitor
PCAN-View from the Windows Start menu.
3 Connecting the CAN Bus PCAN-miniPCIe
User Manual 2.1.0 © 2023 PEAK-System Technik GmbH
10

4 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.
4 CAN Monitor PCAN-View PCAN-miniPCIe
User Manual 2.1.0 © 2023 PEAK-System Technik GmbH
11

4.1 Initialize CAN interface
1. Open the program PCAN-View via the Windows Start menu.
Depending on the CAN interface the Connect dialog is displayed with or without
settings for CAN FD.
CAN CAN FD
CAN interface List entry in Available Hardware
USB Interface, 1-channel see example above
USB Interface, 2-channel
PCIe Interface, 2-channel
4 CAN Monitor PCAN-View PCAN-miniPCIe
User Manual 2.1.0 © 2023 PEAK-System Technik GmbH
12

2. If there are several CAN interfaces, select the desired interface. For multiple
channels, select the desired channel from the list.
3. Enter the bit rate(s) and other settings according to the connected CAN bus.
4. Confirm the entries with OK. The main window appears and displays the
Receive/Transmittab.
5. For initializing another channel or CAN interface, open another instance of
PCAN-View.
4 CAN Monitor PCAN-View PCAN-miniPCIe
User Manual 2.1.0 © 2023 PEAK-System Technik GmbH
13

4.2 Transmit CAN message
1. Select the menu command Transmit / New Message.
Depending on the CAN interface, the dialog box New Transmit Message is
displayed with or without settings for 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.
4 CAN Monitor PCAN-View PCAN-miniPCIe
User Manual 2.1.0 © 2023 PEAK-System Technik GmbH
14

4.3 Additional Tabs
Depending on the CAN interface, additional tabs are available.
4.3.1 Trace Tab
The tracer (data logger) records the communication of the CAN bus in linear or
ringbuffer mode. The trace data can be saved to a file.
4 CAN Monitor PCAN-View PCAN-miniPCIe
User Manual 2.1.0 © 2023 PEAK-System Technik GmbH
15

4.3.2 CAN Interface Tab
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.
4 CAN Monitor PCAN-View PCAN-miniPCIe
User Manual 2.1.0 © 2023 PEAK-System Technik GmbH
16

4.3.3 Bus Load Tab
The Bus Load tab displays the current bus load, its time history and statistical
information of the connected CAN channel.
4 CAN Monitor PCAN-View PCAN-miniPCIe
User Manual 2.1.0 © 2023 PEAK-System Technik GmbH
17

4.3.4 Error Generator Tab
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.
Note: The Error Generator should only be used by experienced users
and in the development environment. For further information, please
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
4 CAN Monitor PCAN-View PCAN-miniPCIe
User Manual 2.1.0 © 2023 PEAK-System Technik GmbH
18

Destroy Single CAN Frame
The Destroy Single Frame area refers to the next CAN frame that is recognized
after activation.
1. Enter the Bit Position where in the CAN frame the error is to be generated. The
bit position must start after the identifier. The count includes the stuff bits.
2. Execute the destroy action with Do it.
The next received or transmitted CAN frame will be destroyed
at the selected bit position.
Destroy Multiple CAN Frames
1. Enter the CAN ID of the CANframe 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 is to be generated. The
bit position must start after the identifier. The count includes the stuff bits.
3. If CAN messages are to be sent unharmed before being destroyed, specify the
Number of Frames to ignore.
4. Determine the Number of Frames to destroy.
5. Confirm the entries with Apply to activate the error generator.
6. Stop destroying further CAN frames with Disable.
4 CAN Monitor PCAN-View PCAN-miniPCIe
User Manual 2.1.0 © 2023 PEAK-System Technik GmbH
19

5 API PCAN-Basic
The intended use of PCAN-Basic requires compliance with the license
rights. Read the license agreement for end users at:
https://www.peak-system.com/quick/eula
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
5 API PCAN-Basic PCAN-miniPCIe
User Manual 2.1.0 © 2023 PEAK-System Technik GmbH
20
Other manuals for PCAN-miniPCIe
2
Table of contents
Other Peak Computer Hardware manuals

Peak
Peak PCAN-M.2 User manual

Peak
Peak PCAN-PC Card Series User manual

Peak
Peak PCAN-PCI Express User manual

Peak
Peak IPEH-002090 User manual

Peak
Peak PCAN-PCI/104-Express User manual

Peak
Peak PCAN-Chip USB User manual

Peak
Peak PCAN-ExpressCard User manual

Peak
Peak CANopen User manual

Peak
Peak PCAN-PCI/104-Express User manual

Peak
Peak PCAN-PC/104-Plus User manual