cansniffer get nothing from my device
Hi everyone,
i am currently reverse engineering can protocol on ubuntu with this device based on ch340. I have installed the newest driver for ch340, the device is successfully connected to my laptop with name /dev/ttyCH341USB1. I can open this device and read data from it using python script, but i want to use some can analyzer like cansniffer. But for cansniffer i need to convert serial communication to socketcan, so i asked chatgpt, here are the commands i have tried
sudo modprobe slcan
sudo slcan_attach -s6 -o /dev/ttyCH341USB1
sudo slcand /dev/ttyCH341USB1 can0
sudo ip link set up can0 type bitrate 500000
after this i can see can0: <NOARP,UP,LOWER_UP> mtu 16 qdisc pfifo_fast state UP mode DEFAULT group default qlen 10 link/can. But when i run cansniffer can0, i get nothing.
I am really confused about it, don’t know if it is something wrong with the driver, or it is not possible to convert serial communication to socketcan.
Thank you 3000 times for any help.