Exchanging data via the CAN bus

In this section, we will see how we can use the CAN bus on our embedded kits using the transceiver-less connection only (in fact, using a transceiver is trivial; we just have to add one without any other software modifications). We'll see how to use both on-chip controllers on an external one connected via SPI to the main CPU.

Using the on-board controller

To do a transceiver-less communication with the on-board controller, we have to use the BeagleBone Black and the SAMA5D3 Xplained boards connected as shown in the following diagram. The circuitry has been realized considering what we said regarding the transceiver-less issues:

Note

The resistor is set as R=100KΩ.

At this point, we have to enable our CAN interfaces ...

Get GNU/Linux Rapid Embedded Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.