Demo: Raspberry Pi RS485_CAN_HAT with Kvaser USB to CAN adapter
KM Tan
0:00 / 0:00
Demo: Raspberry Pi RS485_CAN_HAT with Kvaser USB to CAN adapter
51 просмотр · 9 месяцев назад
KM Tan
54 подписчика
51 просмотр · 9 месяцев назад
Command line:-
#insert at /boot/firmware/config.txt
dtparam=spi=on
dtoverlay=mcp2515-can0,oscillator=12000000,interrupt=25,spimaxfrequency=2000000
sudo apt update
sudo apt install can-utils
sudo reboot
sudo ip link set can0 down
sudo ip link set can0 type can bitrate 50000
sudo ip link set can0 up
ip -details link show can0
dmesg | tail -n 40 | grep -i mcp
cansend can0 123#0102030405060708
candump can0