Site Information

 Loading... Please wait...

Blog

How CAN Bus Automatic Baudrate Detection Works And What To Consider When Connecting To A Network

Posted by Wilfried Voss on

A Comprehensible Guide to J1939 by Wilfried Voss

Automatic CAN Bus baudrate detection comes in handy when you need to connect to a CAN network without knowing its actual transmission speed. Rather than playing with CAN baudrate settings and testing if you are able to see data, the automatic detection will deliver the right result within seconds, however, depending on busload. A heavy busload will deliver quicker results than a bus with occasional data frames.

In case of SAE J1939, a CAN-based higher-layer protocol for diesel engines, the automatic baudrate detection can be used to connect a device to a vehicle network that runs at either 250k or 500k baud without having to use a configuration system that is individually designed for each engine.

However, testing or connecting a CAN node (ECU) with automatic baudrate detection can be frustrating without looking into more background information.

Here are the rules when testing or connecting such a device:

  • The CAN Bus node (ECU) can only detect the CAN Bus transmission rate when it is connected (and starts up) to a running network.
  • You cannot test the ECU's detection capabilities by connecting it to a another, single ECU. The other ECU's CAN controller will detect errors on the CAN Bus and it will cease sending data frames.
  • You need at least two other ECUs (i.e. a running network) who communicate with each other before you can connect or test the ECU with automatic baudrate detection.

How does automatic baudrate detection work?

The easiest way to detect the CAN baudrate is to switch to Silent Mode (to avoid error frames; see information in the next paragraph) and setup a loop to initialize standard baudrates (e.g. 100k, 125k, 250k, 500k, 1000k). After each initialization, check if you received either a valid data frame or an error. In case of an error, switch to the next baudrate. If you receive valid messages, switch off the Silent Mode and continue operation with the baudrate as detected.

What is Silent Mode?

The Silent mode allows a node to be set to a state, in which it is absolutely passive to the bus, meaning it is "invisible" to the rest of the network and it does not influence the bus in any shape or form. The node does not even provide an ACK frame when a message is placed on the CAN bus correctly. Thus, the Silent mode provides a perfect Listen-Only mode for diagnostic features such as the baudrate detection.

Automatic baudrate detection algorithm used by Copperhill jCOM.J1939 devices

As I mentioned previously, the automatic baudrate detection under SAE J1939 can be used to connect a device to a vehicle network that runs at either 250k or 500k baud without having to use a configuration system that is individually designed for each engine.

All of our jCOM.J1939 devices with automatic baudrate detection will test the bus connection for a maximum of five seconds. If after five seconds no connection was found, the device will switch to the J1939 default baudrate of 250k, otherwise it will continue with the detected baudrate. The process will finish within shortest time, however, depending on busload. A heavy busload will deliver quicker results than a bus with occasional data frames. Some of our devices with extended functionality can be configured to start up with either 250k, 500k, or automatic detection.



SAE J1939 to Bluetooth Gateway With 9-Pin Deutsch Connection Cable

SAE J1939 to Bluetooth Gateway With 9-Pin Deutsch Connection Cable

The jCOM.J1939.BT gateway is a high-performance, low-latency, wireless vehicle network adapter for SAE J1939 applications. It allows any host device with a Bluetooth COM port to monitor SAE J1939 data traffic and communicate with the SAE J1939 vehicle network. An SAE J1939 cable, suited for a 9-pin Deutsch connection, is included with the gateway.

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...

ARM Processor With Independent Hardware Security Module Protects CAN Bus Networks From Cyber Threats

The STA1385 by STMicroelectronics is a fully automotive, power efficient System-On-Chip (SoC), targeting cost effective processing solutions for innovative Telematics and Connectivity applications including Cyber-security protection. It features a powerful Dual ARM Cortex-A7 processor, an embedded and independent Hardware Security Module (HSM), an isolated sub-system based on ARM Cortex-M3 for vehicle CAN interfaces and a full set of [...]

Read More »


Modular Keyboard Concept With CAN Bus And SAE J1939 Connection Reduces Vehicle Dashboard Wiring

The KeyCan product line by ama Instruments represents a new concept of modular keyboard that allows customization of dashboard and driver control panels in accordance with customer needs.Each switch of the keyboard is equipped with three red-green-blue LEDs showing their individual status. The brightness of the seven colors is configurable. The icon in the middle of each [...]

Read More »


In-Vehicle IP65-rated Box Computer Supports CAN Bus, OBD-II, SAE J1939, And SAE J1708

The MVS series of electronic control units (ECU) by Nexcom features CAN connectivity, and it provides up to four slots for mini-PCIe modules. The modular vehicle computers are equipped with Intel’s 6th generation Core processors on the MVS 5600-IPK or with the Atom processor on the MVS 2620-IPK. The MVS series can aggregate real-time vehicle information from micro-controller [...]

Read More »


Truck Blind Spot Detection System Connects To SAE J1939 Bus

Preco Electronics announced their PreView Side Defender, an advanced side collision avoidance solution that has been developed specifically for the over-the-road (OTR) markets including trucking, municipalities, waste and recycling.The system warns operators of objects in the vehicle’s side blind zones, including pedestrians, bicyclists and vehicles, in order to reduce the incidence of side collisions. It can [...]

Read More »


Multi-Core Microcontroller (MCU) With Up To Eight CAN FD Ports Aimed At Automotive Applications

The  SPC58 product family by STMicroelectronics is the latest in the line enhancing the scalability, connectivity, and security of automotive applications, including standalone, integrated, and smart gateways, firmware updates over-the-air, electric-vehicle battery management, access control, lighting and body control units, domain controllers, and advanced park maneuver assistance. Premium vehicles today typically have around 130 electronic control units (ECUs). These [...]

Read More »


CAN FD Controller Board With High-Speed CAN Transceiver And SPI interface

Microchip announced their MCP2517FD, a stand-alone CAN FD controller, which allows designers a simplified path to upgrade from standard CAN to CAN FD. The CAN FD controller provides an SPI interface to link it to the host controller. The CAN FD protocol offers higher data rates and payloads up to 64 byte. The MCP2517FD can be used [...]

Read More »


Open Source, Fully Programmable OBD-II Adapter Compatible with Particle Photon and Particle Electron

This is the ultimate programmable OBD-II dongle. Completely open source with a growing community!  When you combine Carloop with Particle Photon or Particle Electron, you can access all CAN signals on your vehicle and send data to the cloud. You can create your own applications that read data from your car in real-time. You car has [...]

Read More »


SAE J1939 To NMEA 2000 Gateway For Marine Engine Applications

Maretron introduced their J2K100 gateway, which can be attached to a J1939-based network of marine engines, while the other CAN Bus port supports NMEA 2000 (IEC 1162-3). The gateway collects SAE J1939 engine data and forwards it to the NMEA 2000 connected display. It listens to the J1939 network and draws no power from it (power is derived from [...]

Read More »


Windows Data Viewer Software For Displaying Parameters As Specified In SAE J1939 And NMEA 2000 (IEC 61162-3)

Yacht Devices has developed the CAN Log Viewer tool. Additionally, the company provides a USB-to-CAN dongle.  The data viewer tool is able to show the parameters as specified in J1939DA and NMEA 2000 (IEC 61162-3). Connecting the tool to the appropriate CAN-based networks it can display the most important SAE J1939 data and all NMEA 2000 data [...]

Read More »