Jump to content
YOUR-AD-HERE
HOSTING
TOOLS

Locked 4CAN


0x1

Recommended Posts

Open Source Security Tool to Find Security Vulnerabilities in Modern Cars

This is the hidden content, please

hardware

Tested on the following raspbian images using a pi3b+

  • Apr 2019 (kernel 4.14.98-v7+)
  • Oct 2018 (kernel 4.14.71-v7+)
  • Jun 2018 (kernel 4.14.50-v7+)

4can should also work with a pi0w, but it's recommended to use at least a pi3b. Also recommend using a heatsink on the pi, because the pi can get a little toasty running 4 can interfaces.

install

run the install.sh script (requires sudo) to automatically install everything, and then reboot.

The install script will do the following:

Copy the 4 mcp2515-canx.dtbo files to /boot/overlays

This is the hidden content, please

copy config.txt to /boot/config.txt (make a backup of original /boot/config.txt just incase)

This is the hidden content, please

usage

Before using 4can, make sure that the socketcan kernel module is loaded with sudo modprobe can_dev. This shouldn't be necessary since the pi will load the correct kernel module based on the device tree, but it doesn't hurt to check.

Once installed, run the 4can.sh to bring up CAN interfaces ./4can.sh

wire up the can interfaces and do candump -acc any to check they are working. note: requires can-utils to install sudo apt install can-utils

Note: Sometimes interfaces come up out of order, reboot the pi and that should fix it. If not, you might have to modify /boot/config.txt.

GPIO

The 4can uses a number of GPIO on the raspberry pi. The GPIO pins available for use are 3, 5, 8, 10, 27, 28, 32, 36 (physical pin numbering)

All the ground pins are tied together and can should be used as ground connections. The 3.3v, and 5v pins can be used to supply voltage as well.

Consult the schematic for more details.

More info & Download:

This is the hidden content, please

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.