Additional Information

Site Information

 Loading... Please wait...

Blog

Under Development: Programmable CAN Bus to USB, Bluetooth, BLE, WiFi Gateway

Posted by Wilfried Voss on

For the longest time, I had resisted the idea of creating my version of a CAN-to-USB gateway, primarily due to the vast competition. A professional CAN/J1939 development requires a professional CAN-to-PC solution to monitor data traffic. I am pleased with the PEAK PCAN-USB device, as shown in the above image. However, not everybody is willing (or able) to spend in the neighborhood of $500...$800 for such a commodity. On the other hand, there are lower-priced alternatives, but they usually shine through poorly written firmware and bizarre PC user interfaces. Furthermore, regardless of the price range, most gateways either do not provide a programming interface or are excessively complex.

USB to SAE J1939 Gateway

Consequently, we at Copperhill Technologies will enter the market with a reasonably priced and easy-to-program series of CAN Bus gateways. And since we are using the ESP32 processor for our development, we will offer not only a USB connection but also Bluetooth, BLE, and Wifi. The initial version will support Classical CAN, but we are currently modifying existing hardware to support CAN FD.

The current hardware is the same as for our  SAE J1939-to-USB Gateway (see image to the right). In addition, we are utilizing existing software libraries which helps to shorten the development process.

We use an ASCII-based serial protocol for communication between the gateway and the PC. It loosely resembles the commands and functionality of the LAWICEL CAN232/CANUSB specifications to establish a basic communication format. It uses only a sub-set of the LAWICEL commands but adds new features where necessary (e.g., to support CAN FD features).

Furthermore, the protocol differs from the LAWICEL functionality regarding the command responses. While LAWICEL responds to commands with either CR (ASCII 13 = success) or BELL (ASCII 7 = error), our version responds with the command token (first character of the command line = Success) or 'x' for error, terminated by a CR.

Available ASCII Commands

  • All messages between the gateway and the PC end with [CR] (ASCII 13) and are case-sensitive.
  • All ASCII commands start with a token byte identifying the function.
  • Commands are accepted by repeating the token, while erroneous commands are answered with ‘x’.

Here is a set of available ASCII Commands:

The image below demonstrates a sample to transmit an 11-bit CAN data frame:

The next image (below) shows a test session, where I set the CAN baudrate (S command), opened the CAN port (O command), and sent CAN data frame with an 11-bit message identifier (t command). 

Following these commands are several CAN data frames as received from the PEAK PCAN-USB gateway. These are samples of 11-bit and 29-bit messages.

As part of the delivery, we will provide C source code samples for programming under Linux and C# for Windows demonstrating the process. Finally, a Windows monitor, analyzer, and recording software is in the works, but it will take a few more months before it is ready for release. 

Last, but not least, please feel free to contact us for further information. 


SAE J1939 to USB Gateway in Plastic EnclosureSAE J1939 ECU Simulator and Gateway With USB Port

Our SAE J1939 gateway allows you to monitor, simulate, and record any PGN as defined in the SAE J1939-71 Standard but also including diagnostic messages according to SAE J1939-73. The gateway supports the full SAE J1939 protocol according to J1939/81 Network Management (Address Claiming) and J1939/21 Transport Protocol (TP). It is also supported by an extensive programming interface for Windows and Linux/Ubuntu applications, including full C/C++/C# source code for short time-to-market developments.

More Information...

Selection Criteria and Requirements for a Telematics Gateway

The  March 2023 issue of the CAN Newsletter, a CiA (CAN-in-Automation) online publication, posted an article on the selection criteria and requirements for a Telematics gateway. With cars evolving towards network technologies, OEMs (Original Equipment Manufacturers) require telematics solutions that boost seamless communication within and outside the vehicle. The device should be cloud-enabled, connectable to servers for real-time [...]

Read More »


PCIe Board with 4-Port Isolated CAN FD for Mission-Critical Applications

Sunix (Taiwan) manufactures CAN (FD) interface cards for commercial, agricultural, military, government, recreational, and other industries. Their recently introduced CAN4F00SI PCIe card offers four isolated CAN FD ports. The interface cards can self-diagnose and repair data errors to meet the demand for accurate UAV (Unmanned Aerial Vehicle) control in mission-critical applications. The mission computers, autopilot computers, actuators, [...]

Read More »


SAE J1939 Protocol Stack Sketch for ESP32 Using the Arduino IDE

The ESP32 is a series of low-cost, low-power system-on-chip microcontrollers with integrated Wi-Fi and dual-mode Bluetooth. The ESP32 series employs a Tensilica Xtensa LX6 microprocessor in both dual-core and single-core variations and includes built-in antenna switches, RF balun, power amplifier, low-noise receive amplifier, filters, and power management modules. Furthermore, the processor provides the means to easily [...]

Read More »


Mini PCI-E Module Integrates Classical CAN (CAN bus 2.0 A/B, OBDII, SAE J1939), CAN FD, and GNSS features

Antzer Tech, a subsidiary of Innodisk, introduced their GADN-FD7L0 PC interface card, which integrates CAN (CAN bus 2.0 a/b, OBDII, SAE J1939), CAN FD, and GNSS features into one mini PCI-E combo module. The board comes in a standard Mini PCI Express form factor. It supports USB 2.0 and two independent CAN FD ports with data-phase bit [...]

Read More »


Programmable ECU and GPS Modules with Classical CAN, CAN FD, SAE J1939 Connections

PEAK-System presented several innovative I/O products with Classical CAN and CAN FD connections in this year's Embedded World trade show.  The versatile control unit PCAN-MicroMod FD ECU integrates customer-specific accessories for automotive applications. For this purpose, the device offers a CAN FD connection and a combination of analog and digital I/Os. The I/O processing and message [...]

Read More »


Telematics Gateway for Real-Time SAE J1939 or ISOBUS Data Monitoring

The CANUp telematics gateway by Technoton measures the operational parameters of vehicles and equipment and reports their performance. The core feature of the CANUp gateway includes the utilization of edge/fog computing methods, which detect 10,000+ possible parameters of vehicle or equipment operation and send generated operation reports to a web-based telematics server and directly to a user via [...]

Read More »


Automotive Power Management IC with LIN and CAN-FD Interfaces

The SPSB081 by STMicroelectronics is a power management chip providing electronic control units (ECU) with power management functionality. It supports CAN FD and, optionally, comes with LIN transceivers. The SPSB081 operates at various standby modes with programmable local and remote wake-up capabilities to minimize power consumption. The chip has a low-drop voltage regulator to supply the host microcontroller [...]

Read More »


Standard IoT Gateway with ARM i.MX8M Plus Quad-Core Cortex-A53 Supports Two CAN FD Ports

Aaeon, a manufacturer of reliable and high-quality computing platforms, introduced their SRG-IMX8P IoT gateway solution with two CAN FD interfaces, bringing extended connectivity and utility across vertical markets. It is powered by Arm NXP i.MX8M Plus quad-core Cortex-A53 and Cortex-M7 processors with 8 GiB of onboard DDR4, the device reduces object detection time to 13 msec [...]

Read More »


Compact and Robust Joystick Supports SAE J1939, CANopen Interfaces

Genge & Thoma AG introduced its series of joysticks for industrial and mobile applications with CANopen and SAE J1939 connectivity. The products address applications, including off-road vehicles and vehicle body applications. The SK 60 joystick is a versatile product with several options with various haptic characteristics. The product is available in numerous configurations, with up to three [...]

Read More »