CAN/OBD board is development board with the feature of accessing it remotely.
- Designed to interact with cloud by writing Python, C++ and Rust code.
- Typical application is to write C++ code to receive CAN signals from vehicle's OBD port, decode/encode CAN signals and write Python code to interface with cloud and upload received CAN signals to cloud.
- Debian 12 and Python 3.11 running environment.
- Can be powered via a vehicle's OBD Port.
- Remote access makes it easier to debug software when it is installed on a vehicle.
- Our example source code is: https://github.com/usb7/CAN-demo-python
Hardware specification
- Based on NanoPi Neo Air which is Allwinner H3 - quad-core ARM Cortext-A7 CPU, 512MB DDR3 RAM, 8GB eMMC, and 2.4GHz WiFi.
- Runs our tinyDebian OS which is Debian 12.
- CAN/OBD interface
- Can be powered via a vehicle's OBD Port.
- Please login www.usb7.net with your Google account before proceed. If you do not have Google account, please create one.
- Connect CAN board via USB micro-B interface to macOS, Windows or Linux computer.
- After 25 seconds CAN board finishes booting and red LED on NanoPi Neo Air lights, in computer browser input CAN board IP address 172.16.10.1 to access it.
- Follow instructions in the browser and connect CAN board to WiFi. After 10 seconds, can see WiFi IP address and green LED on NanoPi Neo Air blinks (this indicates WiFi is connected).
- Click "Go to register" button at the top right to register CAN board with www.usb7.net account.
- After registration, can see CAN board as shown in below picture.
Quick test
- As shown in above picture, click "Access" button to access CAN board.
- login / password = usb7 / usb7
- Your CAN board can be remotely accessed from anywhere in the world.
sudo apt update
sudo apt install can-utils
sudo ip link set can0 up type can bitrate 500000
sudo ip link set up can0
cansend can0 123
candump can0
candump can0 -l logfile.log
sz logfile.log
rz
CAN terminal resistor
sudo gpioset gpiochip0 2=1
sudo gpioset gpiochip0 2=0
Reference
Detailed information about NanoPi Neo Air: https://wiki.friendlyelec.com/wiki/index.php/NanoPi_NEO_Air