Difference between revisions of "Creating CAN-BUS Shield V2.0 Tutorial"

From Embedded Lab Vienna for IoT & Security
Jump to navigation Jump to search
Line 4: Line 4:


== Requirements ==
== Requirements ==
== Implementation ==
=== Requirements ===


* Operating system: Ubuntu 18.04 bionic amd64
* Operating system: Ubuntu 18.04 bionic amd64
Line 10: Line 14:
In order to complete these steps, you should have read this(https://wiki.elvis.science/index.php?title=Arduino_Board_Uno_Rev3-Atmega_328:_First_Steps) before.
In order to complete these steps, you should have read this(https://wiki.elvis.science/index.php?title=Arduino_Board_Uno_Rev3-Atmega_328:_First_Steps) before.


== Description ==
=== Description ===


In order to create a functioning CAN message reader we need to set up a lab, which consits of two CAN-BUS Shield V2.0 and two Arduino UNOs. The Arduinos will be used to simulate two ECUs, where one of them sends the data and the other is receives it. After this works as planned we will take a step further and integrate the CANtext Bundle. This will enable is to take the reading Arduino-ECU and plug it into the cars OBD 2.0 port in order to see what is going on the car CAN-BUS.
In order to create a functioning CAN message reader we need to set up a lab, which consits of two CAN-BUS Shield V2.0 and two Arduino UNOs. The Arduinos will be used to simulate two ECUs, where one of them sends the data and the other is receives it. After this works as planned we will take a step further and integrate the CANtext Bundle. This will enable is to take the reading Arduino-ECU and plug it into the cars OBD 2.0 port in order to see what is going on the car CAN-BUS.
Line 19: Line 23:
----
----


=== Step 1 ===
==== Step 1 ====


Enter these commands in the shell
Enter these commands in the shell
Line 26: Line 30:
  echo bar
  echo bar


=== Step 2 ===
==== Step 2 ====


Make sure to read
Make sure to read
Line 34: Line 38:
* The Baroque Cycle
* The Baroque Cycle


== Used Hardware ==
=== Used Hardware ===


[[Device to be used with this documentation]]
[[Device to be used with this documentation]]
[[Maybe another device to be used with this documentation]]
[[Maybe another device to be used with this documentation]]


== Courses ==
== Courses ===


* [[A course where this documentation was used]] (2017, 2018)
* [[A course where this documentation was used]] (2017, 2018)
* [[Another one]] (2018)
* [[Another one]] (2018)


== References ==
== References ===


* https://wikipedia.org
* https://wikipedia.org

Revision as of 16:06, 20 February 2021

Summary

This documentation introduces the CAN-BUS Shield V2.0 and all its key facts. It also contains a example implementation, which is able to read CAN messages from a real car.

Requirements

Implementation

Requirements

  • Operating system: Ubuntu 18.04 bionic amd64
  • Packages: git emacs

In order to complete these steps, you should have read this(https://wiki.elvis.science/index.php?title=Arduino_Board_Uno_Rev3-Atmega_328:_First_Steps) before.

Description

In order to create a functioning CAN message reader we need to set up a lab, which consits of two CAN-BUS Shield V2.0 and two Arduino UNOs. The Arduinos will be used to simulate two ECUs, where one of them sends the data and the other is receives it. After this works as planned we will take a step further and integrate the CANtext Bundle. This will enable is to take the reading Arduino-ECU and plug it into the cars OBD 2.0 port in order to see what is going on the car CAN-BUS.

CAN-BUS Shield V2.0
Arduino UNO
CANtext Bundle

Step 1

Enter these commands in the shell

echo foo
echo bar

Step 2

Make sure to read

  • War and Peace
  • Lord of the Rings
  • The Baroque Cycle

Used Hardware

Device to be used with this documentation Maybe another device to be used with this documentation

Courses =

References =