11
CPC-USB/ARM7 User manual CAN-PC Interface

CPC-USB/ARM7 Version 2.0 User Manual - EMS€¦ · •Linux socketCAN is supported 1.2 General Description CPCUSB is a CAN interface for USB ports in a compact and robust metal housing

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: CPC-USB/ARM7 Version 2.0 User Manual - EMS€¦ · •Linux socketCAN is supported 1.2 General Description CPCUSB is a CAN interface for USB ports in a compact and robust metal housing

CPC­USB/ARM7

User manual

CAN­PC Interface

Page 2: CPC-USB/ARM7 Version 2.0 User Manual - EMS€¦ · •Linux socketCAN is supported 1.2 General Description CPCUSB is a CAN interface for USB ports in a compact and robust metal housing

ii EMS Dr. Thomas Wünsche

CPC­USBUser Manual

User manual for CAN Interface CPC­USB/ARM7 Version 2.0

Document version: V 1.04Documentation date: August 10th, 2015

No part of this document or the software described herein may bereproduced in any form without prior written agreement from EMS Dr.Thomas Wünsche.

For technical assistance please contact:

EMS Dr. Thomas WünscheSonnenhang 3

D­85304 Ilmmünster

Tel. +49­8441­490260Fax +49­8441­81860Email: support@ems­wuensche.com

Our products are continously improved. Due to this fact specifications maybe changed at any time and without announcement.

FCC: This device complies with part 15 of the FCC Rules.Operation is subject to the following two conditions:(1) This device may not cause harmful interference,and (2) this device must accept any interferencereceived, including interference that may causeundesired operation.

WARNING: CPC­USB/ARM7 hardware and software may not beused in applications where damage to life, health orprivate property may result from failures in or causedby these components.

Page 3: CPC-USB/ARM7 Version 2.0 User Manual - EMS€¦ · •Linux socketCAN is supported 1.2 General Description CPCUSB is a CAN interface for USB ports in a compact and robust metal housing

CPC­USB User Manual

iiiEMS Dr. Thomas Wünsche

Content

1 Overview 1

1.1 Attributes 11.2 General Description 11.3 Ordering Information 2

2 Electrical Characteristics 3

2.1 Absolute Limiting Values 32.2 Nominal Values 3

3 Operating Instructions 4

3.1 Pin Configuration of CAN Connector 43.2 Installation 53.3 SocketCAN 6

4 Appendix 7

4.1 Instruction for Disposal 74.2 FCC Statement 74.3 CE Conformity 8

Page 4: CPC-USB/ARM7 Version 2.0 User Manual - EMS€¦ · •Linux socketCAN is supported 1.2 General Description CPCUSB is a CAN interface for USB ports in a compact and robust metal housing

1 EMS Dr. Thomas Wünsche

CPC­USBUser Manual

1 Overview

1.1 Attributes

• CAN interface for industrial applications

• Powerful Cortex M3 microcontroller with internal CAN and USBcontroller

• CiA DS102 and ISO11898 compatible physical layer

• Supports CAN protocols 2.0A and 2.0B

• Display of USB communication and CAN data transfer via LEDs

• Supply completely over USB

• USB 2.0 Full Speed

• Galvanic isolation between PC and CAN bus (optional)

• Low speed transceiver (optional)

• Optional with ±80V tolerant CAN transceiver MAX13052 available

• Firmware programmable over USB

• Linux socketCAN is supported

1.2 General Description

CPC­USB is a CAN interface for USB ports in a compact and robustmetal housing. Due to easy handling and favourable price CPC­USBis suitable for configuration and analysis of CAN systems.

CPC­USB is equipped with a Cortex M3 microcontroller providingonChip CAN and USB controller. The interface is supplied via USB, aseparate supply for the CAN side is not needed. It supports 11bit and29bit CAN identifiers.

The interface is optionally available with galvanic isolation. Inaddition, a variant with low speed transceiver for automotiveenvironments is also available.

For applications, where a higher fault voltage on the CAN busterminals cannot be avoided, the version ­HV is available. The use ofthe transceiver MAX13052 allows voltages up to ±80V on the CANbus lines.

Application development kits for the operating systems MS­Windowsand Linux are offered separately.

Page 5: CPC-USB/ARM7 Version 2.0 User Manual - EMS€¦ · •Linux socketCAN is supported 1.2 General Description CPCUSB is a CAN interface for USB ports in a compact and robust metal housing

CPC­USB User Manual

2EMS Dr. Thomas Wünsche

1.3 Ordering Information

Note: xx denotes language of delivery:

10 German20 English

10­08­400­xx CPC­USB/ARM7CAN­PC interface for USB ports with CortexM3 microcontroller

10­08­401­xx CPC­USB/ARM7­GTICAN­PC interface for USB ports with CortexM3 microcontroller and galvanic separation ofthe CAN transceiver

10­08­403­xx CPC­USB/ARM7 Version LSCAN­PC interface for USB ports with CortexM3 microcontroller and CAN transceiverTJA1054

10­08­404­xx CPC­USB/ARM7­GTI Version LSCAN­PC interface for USB ports with CortexM3 microcontroller and CAN transceiverTJA1054, galvanic separation of the CANtransceiver

10­08­406­xx CPC­USB/ARM7­GTI ­HVCAN­PC interface for USB ports with CortexM3 microcontroller and galvanic separation ofthe CAN transceiver MAX13052 with ±80Vprotection

Page 6: CPC-USB/ARM7 Version 2.0 User Manual - EMS€¦ · •Linux socketCAN is supported 1.2 General Description CPCUSB is a CAN interface for USB ports in a compact and robust metal housing

3 EMS Dr. Thomas Wünsche

CPC­USBUser Manual

2 Electrical Characteristics

2.1 Absolute Limiting Values

Any (also temporary) stress in excess of the limiting values maycause permanent damage on CPC­USB and connected devices.

Exposure to limiting conditions for extended periods may affect thereliability and shorten the life cycle of the device.

2.2 Nominal Values

All values, unless otherwise specified, refer to a supply voltage of 5Vand an environmental temperature of 20°C.

Parameter Min. Max. Unit

Storage temperature ­20 +80 °C

Operating temperature 0 +60 °C

Voltage on the bus connections,standard version

­30 +30 V

Voltage on the bus connections, LSversion

­27 +30 V

Supply voltage 0 +6 V

Voltage on the bus connections, HVversion

+80 V­80

Parameter Min. Typ. Max. Unit

Current consumption(idle mode)

­ 100 ­ mA

Current consumption(operation mode)

­ ­ 250 mA

Supply voltage 4,0 5,0 5,5 V

Page 7: CPC-USB/ARM7 Version 2.0 User Manual - EMS€¦ · •Linux socketCAN is supported 1.2 General Description CPCUSB is a CAN interface for USB ports in a compact and robust metal housing

CPC­USB User Manual

4EMS Dr. Thomas Wünsche

3 Operating Instructions

3.1 Pin configuration of CAN connector

The CAN interface connector (D­Sub 9 male) for the standardversion complies to CiA Standard DS 102.

The pin usage is detailed in the following tables:

Pin 1 RTL Not connected

Pin 2 CAN_L CAN bus line, dominant

low

Pin 4 Not connected

Pin 5 ­ Not connected

Pin 3 GND Ground

­

Pin 6 Not connected

Pin 7 CAN_H CAN bus line, dominant

high

­

Pin 8 Not connected

Pin 9 ­ Not connected

RTH

Description Standard

Version

Pin Name

Connected with Pin 2 by a 5k6resistor and with dedicated Pinof TJA1054 CAN transceiver

CAN bus line, dominant

low

Not connected

Not connected

Ground

Not connected

CAN bus line, dominant

high

Connected with Pin 7 by a 5k6resistor and with dedicated Pinof TJA1054 CAN transceiver

Not connected

Description Low Speed

Version

Pin

Number

Page 8: CPC-USB/ARM7 Version 2.0 User Manual - EMS€¦ · •Linux socketCAN is supported 1.2 General Description CPCUSB is a CAN interface for USB ports in a compact and robust metal housing

5 EMS Dr. Thomas Wünsche

CPC­USBUser Manual

3.2 Installation

CPC­USB may be connected to a free USB port of a computer. Toavoid damage please pay attention to the following hints:

WARNING: Avoid damage by achieving equal potential betweenthe corresponding devices before plugging anyconnections to CPC­USB.

To the CAN connector of CPC­USB only CANnetworks with a connector and electrical charactercomplying with this specification may be attached.

PC interface and CAN bus are not galvanicdecoupled in the standard version of CPC­USB. Usein systems with diverging ground potential of PC andCAN bus is not permitted in this case.

Besides the instructions mentioned in this manualcarefully observe the instructions in your computersusers manual.

If you are not sure about the installation pleasecontact EMS Dr. Thomas Wünsche.

CPC­USB needs a driver to operate on Windowsoperating systems. This driver is part of the ´CPC­Series Runtime Kit for MS­Windows Environment´,which is part of the delivery.

Page 9: CPC-USB/ARM7 Version 2.0 User Manual - EMS€¦ · •Linux socketCAN is supported 1.2 General Description CPCUSB is a CAN interface for USB ports in a compact and robust metal housing

CPC­USB User Manual

6EMS Dr. Thomas Wünsche

3.3 Socket CAN

With a recent Linux kernel the socketCAN driver for theCPC‑USB/ARM7 (ems_usb.ko) is already included. It supports thefollowing interface versions:CPC­USB/ARM7 v1.0 and v2.0, also low speed variantsCPC­USB/ARM7­GTI v1.0 and v2.0, also low speed variantsCPC­USB/embedded

After the device is attached to the USB connector the driver will beloaded automatically. This can be verified by entering the "dmesg"command on a console. It should output the following lines:CPC­USB: Serial 0005001CPC­USB: Product CPC­USB/ARM7CPC­USB: cpcusb_probe ­ 10 reading URB's allocatedCPC­USB: cpcusb_probe ­ 10 writing URB's allocatedCPC­USB: Allocated memory for 1500 messages (114 kbytes)CPC­USB: Device now attached to USB­0CAN device driver interfaceusbcore: registered new interface driver ems_usb

Before the interface can be used in an application it must beconfigured using the "ip" command:

First the baud rate is set to i.e. 125kBaud:ip link set can0 type can bitrate 125000

Then the interface is set up:ip link set up can0

Now received CAN messages can be shown with the followingcommand:candump can0

Useful links:

An introduction is given here:en.wikipedia.org/wiki/SocketCAN

The can­utils can be found here:www.github.com/linux­can/can­utils/

Also a good introduction is in the kernel documentation:/usr/src/linux/Documentation/networking/can.txt

Page 10: CPC-USB/ARM7 Version 2.0 User Manual - EMS€¦ · •Linux socketCAN is supported 1.2 General Description CPCUSB is a CAN interface for USB ports in a compact and robust metal housing

7 EMS Dr. Thomas Wünsche

CPC­USBUser Manual

4 Appendix

4.1 Instruction for Disposal

Electronic Equipment Act (WEEE)

EMS is selling its products exclusively to commercial customers. Thisis the reason why all devices are designed for commercial use andhave to be disposed appropriately. In accordance to § 10 para. 2clause 3 Electronic Equipment Act (WEEE) the disposal of EMSproducts is regulated the following way.

The equipment must not be disposed at the public collection points. Inaccordance with the applicable law the disposal has to be done by thecustomer for own account. The same applies to products, which havebeen sold to third parties, if those parties do not take care of adisposal in accordance to the applicable law. As an alternative theproducts can be returned to EMS free of charge.

4.2 FCC Statement

CPC­USB/ARM7 and CPC­USB/ARM7­GTI have been tested andfound to comply with the limits for a Class A digital device, pursuant toPart 15 of the FCC Rules. These limits are designed to providereasonable protection against harmful interference when theequipment is operated in a commercial environment. This equipmentgenerates, uses, and can radiate radio frequency energy and, if notinstalled and used in accordance with the instruction manual, maycause harmful interference to radio communications. Operation of thisequipment in a residential area is likely to cause harmful interferencein which case the user will be required to correct the interference athis own expense.

Page 11: CPC-USB/ARM7 Version 2.0 User Manual - EMS€¦ · •Linux socketCAN is supported 1.2 General Description CPCUSB is a CAN interface for USB ports in a compact and robust metal housing

CPC­USB User Manual

8EMS Dr. Thomas Wünsche

4.3 CE Conformity