CAN interface converter on USB. The main characteristics of the device

This project is intended for the manufacture of a simple device for monitoring the CAN bus. I chose the NUC140LC1CN 32K Cortex-M0 microprocessor for one main reason - it has peripheral Blocks USB and CAN.

Project Characteristics

  • Easy development
  • Compatibility with LAWICEL CANUSB Protocol
  • The monitoring device is displayed as a USB FTDI device.
  • Support for 11-bit CAN 2.0A and 29-bit CAN 2.0B frames
  • Availability of internal buffer of FIFO CAN messages
  • USB port
  • Loader stored in a USB memory storage device for firmware updates
  • Firmware that is available for download

Circuit solution

To resolve the peripheral block NUC.140 CAN Connecting a CAN bus must be presence of a CAN transceiver. For this purpose, the most suitable microcircuit TJA.1051 T. from NXP. Block NUC.140 It can work on the power supply voltage 5V. Therefore, there is no need for the use of an additional stabilizer voltage to 3.3B. This allows you to significantly simplify the task of implementing the CAN bus interface. The diagram provides three LED status indicator:

  • D1 - USB Connection Status Indicator
  • D2 Displays CAN bus activity
  • D3 Displays the CAN interface errors

NUC140. It does not have a built-in bootloader and the only way to program it is to use the ARM Serial Wire Debug (SWD) interface (J2 Connector) and the NuVoton ICP programmer. Naturally, if the bootloader is already programmed in advance, it can be activated. For this purpose, you must use JP1 jumper. Using Jumper JP1 Before feeding the interface to start the bootloader.

Loader

Flash Memory NUC140.LC1 divided into two sections. One of them is designed to execute the code of the user program (APROM) size of 32K, and the other for the loader (LDROM). LDROM size is only 4K, which makes it problematic creating a fully functional USB bootloader. I used the bootloader located on the storage device (MSD) provided by NuvoTon. Installing Jumper JP1 starts the bootloader. As a result, the removable disk will be displayed in a 32 KB file system. Just copy and paste or drag and drop the CAN-USB firmware update to the bootloader disk. Disconnect the USB cable, remove the jumper and connect the cable again. Now the updated firmware should be performed.

CAN-USB and Nutiny-SDK-140 interface programming

For processor programming NUC140. You will need a NU-LINK programmer from NuvoTon and NuVoton ICP software application. But instead, I decided to use a demonstration fee NUC140. (Nutiny-SDK-140), available from. It has two parts, a part with the NUC140 chip and the NU-LINK programmer itself. The board is uniformly perforated, which allows you to disconnect the NU-LINK part. In fact, you can make this device exclusively on the Nutiny-SDK-140 demo board, adding only an additional CAN transceiver chip.

When connecting the NU-LINK, the NUC140 programming process becomes simple. The key issue is the choice of download from LDROM instead of APROM (in config settings) to ensure the operation of the USB bootloader.

Software

The CAN-USB interface is compatible with the LAWICEL CANUSB protocol and will work with applications designed for this protocol. I tested two applications with the CAN-USB interface:

CANHACKER V2.00.02

This is a free CANHACKER app. I could not find the user manual for this application. However, it is sufficiently simple and intuitive when used.

CAN MONITOR PRO V2.2

This application is developed by wgsoft.de. Note that this developer website is mainly in German.

PCB design

List of radio elements

Designation A type Nominal number NoteScoreMy notebook
IC1 ChipNUC140LC1CN.1 In notebook
IC2. ChipTJA1051T.1 In notebook
D1 Light-emitting diodeGreen1 In notebook
D2. Light-emitting diodeYellow1 In notebook
D3. Light-emitting diodeRed1 In notebook
C1, C6. Capacitor10 μF2 In notebook
C2, C3, C7, C8 Capacitor0.1 MKF.4 In notebook
C4, C5. Capacitor20 PF2 In notebook
R1, R2. Resistor

100 Oh.

2 In notebook
R3 Resistor

10 com

1 In notebook
R4-R6. Resistor

330 Oh.

3 In notebook
X1 Quartz resonator12 MHz1

I have already mentioned a little and perhaps you thought that I would now start talking about one Industrial standard CAN, but this is not the case, I will tell about how to make data transmission between and CAN interfaces.


What I read on the Internet: Physical CAN interface data transmission medium, transceiver characteristics, connectors, cable properties, network topology are not stipulated by CAN specification Bosch v.2.0 A / B. The physical level is the subject of various international, national, industrial and even intrafyrna specifications.

Next, we will not go deeper, I will say this: "Most developers use ready-made implementations of this tire, in the form of long-invented chips," and we as users of these two standards have a connection problem. Consider the most common situation when there is a bus, a few instruments are connected to it and suddenly we need to connect another one, but it turns out another type of interface - CAN. Although the interface converter has such a connector and the ability to work immediately with two interfaces, but in this situation it is necessary to pull an additional twisted pair to a new device, which is not rational. What to do? Collect a new compound scheme.

Check and rejoice in life ...
You understand that this scheme is valid only to convert the physical level of signals. The presence or absence of echo in packages will be configured in the inner jumper in the converter and the Echo Talk.


For some interface converters, suspended resistors are not set. The solely resistor between A and V.





Goods in stock! Prices 2019

Conditions for the order and delivery of adapters for communication with the meters of Mercury
(Evrost requests [Email Protected] or by phone 8-909-283-34-16)


1) Cost 5000 rubles.Buy. Miniature degree to survey the lists of Mercury counters on any of the connected interfaces of USB-RS485 / CAN / IRDA / optoport. It can independently interview 10 three-phase mercury counters, or to create through themselves through the end-to-end tunnel to survey by external programs of the unlimited list of counters.

2) Ethernet-RS485 (VR-008.1) Cost 3300 rubles.Buy. The completed hardware data transfer device between the Ethernet local network and the RS485 wired interface. It is widely used to automate the readings with measuring instruments of accounting, including Mercury electric meters. Works with all types of TCP / IP protocols in server and client modes. It may be displayed on the Internet for remote monitoring of ASUCE accounting objects.

3) USB-IRDA (model VR-001) The cost of 1950 rubles.Buy. Interface converter for electric meters Mercury-230, 231, CE-102 containing IRDA interfaces. To connect to the electric meter, does not require an opening of the terminal box.

4) USB-RS485 / CAN (model VR-002) The cost of 1950 rubles.Buy. Universal Converter Wire Interfaces RS485 / CAN. Can serve power to the power meter interface. Suitable for Mercury-200, 203.2t, 206, 230, 233, 234, 236 containing RS485 / CAN. The connection requires an opening of the terminal box. It is possible to connect highways with the meters.

5) USB-RS485 (model VR-004) The cost of 850 rubles.Buy. Suitable for Mercury electric meters who do not need to power the communication interface. It has only D + and D- terminals at the output. You can use with Mercury 203.2T, 206, 230, 233, 234, 236 containing RS485. Requires an opening of a terminal box for connecting.

6) USB optoport (model VR-005) The cost of 1950 rubles.Buy. Suitable for electric meters Mercury-201.8TLO, 203.2T, 206, 233, 234, 236, containing optoport. To connect, no open terminal box is required.

8) Jtt-A (RS485 / CAN) (Radiomide 433 MHz, 100 MW) Cost 4000 rubles.Buy. Miniature radio models with a transparent communication channel, allowing to work with electric meters in radio formalizers. They have the ability to connect to industrial RS485 / CAN interfaces and allow you to create group or single electrical accounting nodes in hard-to-reach places.

9) 3G modem (Hilink) Cost 2000 rubles.Buy. A modem with a specialized Hilink firmware, works with all SIM cards, has advanced settings (built-in firewall, SMS, USSD, indicates service information about signals level and much more). Allows you to provide Internet automation nodes VR-007 and create the ability to survey electric meters through a 3G network.

10) Automation Node - WiFi Router (model VR-007.3) Cost 4200 rubles.Buy. An element of a smart home that allows us through any of the connected interfaces USB-RS485 / CAN / IRDA / optoport to carry out an automated survey of a three-phase meter of Mercury. It has its own adaptable Web interface, database, can conduct a daily survey of instantaneous currents, voltages, capacities, build energy graphs by month and day. It has the ability to broadcast a webcam and weather stations through itself, is an element of a smart home capable of transmitting data on consumption for email user and sales. Can output data to the Narodmon.ru server and report critical situations.

USBCANPlus -adapter, converting USB signals in CAN. It connects the PC via the USB interface with the CAN bus. CAN port and USB are protected from static electricity and comply with the requirements of the IEC 61000-4-2 standard (8kV pin / 16kV air discharge). Since all modern computers have several USB ports, it is easy to install the product simply. Even the port with an outdated USB1.1 standard, operating at speeds up to 12MBPS, allows you to work with USB-CAN +.

CAN bus is widely used in industrial applications, as well as for monitoring and monitoring tasks. USB-CAN + adapter can be applied to monitor data traffic in such equipment, as well as for transmitting control information. USB-CAN + performance - One of the best on the market of these products. Since automatic hardware flow control on the interface between the CAN controller and PC, the reliability of the data is very high.

  • The ASCII Conversion Protocol is useful in developing and testing any configuration. Users simply open the serial port through the terminal program and receive a channel to work with the CAN controller. In the same way, they can receive and transmit frame (frames) CAN.
  • The applications programmed by the user are loaded by the dynamic library (DLL), which transparently controls the ASCII conversion. API is supported in C / C ++, C #, VB.NET, Delphi and LabVIEW.
  • In Linux Socket CAN can be used as an alternative to the VS_CAN_API library. VSCOM CAN devices support standard Serial Line Can (SLCAN) driver.
  • USB-CAN + also supports CANFESTIVAL, OPEN SOURCE CANOPEN FRAMEWORK. Canopen is a CAN-based top-level protocol, which is used for various applications, such as medical equipment, SUVs, sea electronics, applications for railways and buildings automation. Canopen frees the developer from working with data specific to CAN. It provides standardized communication objects with real-time data, configuration data and network management.
  • CANHACKER - tool for analyzing and transmitting frames on the CAN bus, included in the package.
  • The MAPPER DLL module set imitates the operation of CAN devices from other manufacturers. Users set up their system for these devices or USB-CAN + adapter as a replacement. Thus, the existing software will use USB-CAN + without replacing the application or change it.
  • USB-CAN PLUS is a new version of the USB-CAN adapter from VSCOM.

Fig. USB CAN Plus Converter

Distinctive features:

  • connects a PC to the CAN bus via USB;
  • supports CAN 2.0A and CAN 2.0B;
  • high-speed CAN up to1 mbit / s;
  • USB and CAN port are protected from static electricity;
  • remote frame support, only listening mode;
  • support from Windows 2000 to Server 2012, CE;
  • support Linux Kernel 2.6+;
  • support C / C ++, C #, VB.NET, DELPHI and LabVIEW;
  • Canopen is supported by CANFESTIVAL;
  • USB 2.0 FS, USB powered;
  • driver emulates a serial port for simple access;
  • library (DLL) for standard access;
  • the ASCII conversion protocol through the serial port;
  • debugging support Bosch busmaster;
  • metal case.

Documentation and software can be found on the manufacturer's website.

Announcement was and prepared
Schrah Alexander,
a.

CAN interface converter is widely used in industrial automation. Modules are designed to convert RS-232, USB, TCP / RTU to CAN. Many models support CAN transformation in SC and multimode fiber. Converters are produced in various designs - plastic or metal housings.

Interface converters differ in each other:

  • sizes
  • design option,
  • number of ports and supported interfaces,
  • the presence of galvanic isolation,
  • speed and other data transfer parameters.

Our catalog presents a rich assortment of CAN interface converters in fiber and USB converters, RS-232 in CAN. Products are capable of working without failures in high humidity conditions with a wide range of temperatures. Products of leading manufacturers meets quality and safety standards, differs in compatibility with other devices and ease of use.

We offer to buy converters from ICP DAS, MOXA, TITAN (VSCOM) at competitive prices. The cost and additional characteristics of the positions are represented on pages with goods. Detailed information about the conditions for acquiring converters, the manager will provide on the phone.

GKMN.468351.006.


A device connected to an IBM PC compatible computer via a USB interface is designed to diagnose and configure management and data collection systems based on CAN-BUS network. CAN-Bus-USBNP Interface connected to a modern high-performance computer running Windows, allows you to create efficient software and hardware solutions for configuring and testing CAN networks. The device is especially convenient in mobile applications in conjunction with portable wore computers and CANWISE program for testing CAN networks in field and industrial environments, including for the diagnosis of motor vehicles. The device can be used to test and configure the equipment, which uses the top-level protocols J1939 and CANOPEN when working in conjunction with the loadable modules of the CANWISE program.

The device is an alternative to CAN controllers in PCMCI format.

Main characteristics of the device:

  • 2-x Channel CAN controller appropriate CAN 2.0B specification;
  • uses an interface corresponding to USB 2.0 High Speed \u200b\u200bspecification;
  • the primary processing of the CAN-network frames is performed by the built-in 32-bit ARM discharge microcontroller;
  • CAN-BUS interface (in accordance with CIA DS-102) with galvanic interchange 1000 volts, protection against overvoltages and pulse interference;
  • USB tire power; Current consumed - no more than 200 mA;
  • dimensions 107 * 53 * 28 mm;
  • operating temperature range: 0 .. + 70 C.

USER GUIDE User Manual

Software:

  • the Chai Library includes a unified Can-Interface Driver, a text CAN monitor;
  • universal program testing and configuring CAN network with the CANWISE graphic user interface. The free basic version comes with a loadable CAN monitor module and a number of modules for the Canopen and J1939 protocols.

The following operating systems are supported: Windows XP / VISTA / 7.

The CAN-Bus-USBNP interface supports the official CANOPEN conformance test (Canopen Conformance Test) of the International CAN INUTOMATION organization (CIA).

Cost of the product: 10 200 rubles. Currently by VAT