Site Information

 Loading... Please wait...

Blog

SAE J1939 Programming with Arduino - Claiming Address With Contending Node

This post is part of a series about SAE J1939 ECU Programming & Vehicle Bus Simulation with Arduino. Now let’s have the two nodes compete for their addresses, since they both use the same preferred source address. For that purpose, it is important to consider which node starts up first, and the test results will demonstrate the difference.Test #1: Mega [...]

Read More »


SAE J1939 Programming with Arduino - Claiming Address With No Contending Node

This post is part of a series about SAE J1939 ECU Programming & Vehicle Bus Simulation with Arduino. The first and by far simplest test is to check whether or not the node (Arduino Mega 2560) engages into the address negotiation process. This test is accomplished by a simple power cycle (reset) of the unit when no other competing node [...]

Read More »


SAE J1939 Programming with Arduino - Address Claim Procedure (SAE J1939/81)

This post is part of a series about SAE J1939 ECU Programming & Vehicle Bus Simulation with Arduino. Network Management under SAE J1939 is primarily represented by the Address Claiming Process. While other higher layer protocols based on Controller Area Network (CAN Bus) do not support node address assignments per default, the SAE J1939 protocol provides yet [...]

Read More »


Raspberry Pi CPU With CAN Bus Interface Now Upgraded To Raspberry Pi B+

Our Raspberry Pi 3 System With CAN Bus Interface (PiCAN2) has been upgraded to support the new Raspberry Pi B+, and it comes with a pre-installed Raspbian operating system. The system is equipped with either a single or dual PiCAN2 board, and, depending on the selected option, with or without SMPS (Switch Mode Power Supply). The [...]

Read More »


SAE J1939 Programming with Arduino - Proof of Concept

This post is part of a series about SAE J1939 ECU Programming & Vehicle Bus Simulation with Arduino. Naturally, with the impression that the Arduino hardware is a far cry away from commercially available, industrial solutions, some doubters may challenge even the point that the Arduino software is up to the task of running a full SAE J1939 protocol stack. [...]

Read More »


SAE J1939 Programming with Arduino - Program Structure

This post is part of a series about SAE J1939 ECU Programming & Vehicle Bus Simulation with Arduino. As with every Arduino application, the initialization of data and the J1939 protocol takes place during the setup() function, while the actual application resides in loop().setup() - The j1939.Init function is mandatory to operate ARD1939. You also need to set the preferred [...]

Read More »


SAE J1939 Programming with Arduino - Functionality Settings

This post is part of a series about SAE J1939 ECU Programming & Vehicle Bus Simulation with Arduino. Overall, the sketch supports three versions of the ARD1939 protocol stack, two for the Arduino Uno (ARD1939-Uno and ARD1939-Uno/TP) and one for the Arduino Mega 2560 (ARD1939-Mega). ARD1939-Uno – For the sake of saving memory resources, this [...]

Read More »


SAE J1939 Programming with Arduino - ARD1939 Implementation

This post is part of a series about SAE J1939 ECU Programming & Vehicle Bus Simulation with Arduino. I provide the ARD1939 (SAE J1939 Protocol Stack for Arduino) “as is,” i.e. I provide the entire project (Arduino Sketch). In order to copy and customize the project, use the “Save As” function in the Arduino’s IDE. I had contemplated creating an [...]

Read More »


SAE J1939 Programming with Arduino - ARD1939 Function Overview

This post is part of a series about SAE J1939 ECU Programming & Vehicle Bus Simulation with Arduino. The programming of every serial communication (such as RS232, CAN, Ethernet, just to name a few) should follow a very simple sequence:1.Initialization2.Read data3.Write data4.Check statusThese four function calls should be everything a programmer needs to access the serial protocol, and there is no reason [...]

Read More »


SAE J1939 Programming with Arduino - J1939 Data Traffic Simulation

This post is part of a series about SAE J1939 ECU Programming & Vehicle Bus Simulation with Arduino. In a previous project (see chapter SAE J1939 Simulation Example) I demonstrated the simulation of SAE J1939 data traffic.  However, the messages in that example were transmitted within a certain frequency. In the following, we will transmit messages according to user input. As before, [...]

Read More »