-canable (cantact clone): http://canable.io/ (STM32F042C6)
sudo apt-get install net-tools
sudo apt-get install can-utils
sudo apt-get install ros-noetic-can-msgs
sudo apt-get install ros-noetic-socketcan-bridge
- Connect the can module to the ubuntu system, and send commands to query the device:
ls /dev/ttyACMx
- Map ttyACM0 to can0, and set the bit rate to 1000K:
sudo slcand -o -c -s8 /dev/ttyACM0 can0
The corresponding setting of the bit rate is : -s8 = 1M
- Enable CAN:
sudo ifconfig can0 up
- Configure the storage length of the transmission data buffer of txqueuelen:
sudo ifconfig can0 txqueuelen 100
roslaunch motor_control motor_test.launch