intrepidcs / icsscand

User-mode SocketCAN daemon for Intrepid devices
BSD 2-Clause "Simplified" License
10 stars 6 forks source link

Not able to set bitrate / or see CAN traffic #6

Open manjchana opened 3 years ago

manjchana commented 3 years ago

Hi!

I successfully ran the installation on a NVIDIA Jetson Nano with my ValueCAN device. The device LED lights up when I plug it in, and can0 up brings the device up. But when I use candump any or candump can0, I cannot see any CAN data in the terminal window. I have a multi node setup where my RaspberryPi is showing all traffic correctly via candump via an MCP2515 from 2 other nodes.

When I try to send sudo ip link set can0 up bitrate 500000 the response is RTNETLINK answers: Operation not supported.

It doesn't allow me to change the speed of the interface. I think this is what is stopping the CAN traffic from being shown.

I can use cansend and send data which is picked up by the other nodes (and displayed by the RaspberryPi candump) but the message data and ID is garbled - my hunch is potential mismatched bitrate is causing this.

Any help would be appreciated please - let me know if you need me to read something from the system and report back

yoyixms commented 2 years ago

Hi, Is there any update about this? I'm having the same issue

Thanks!

manjchana commented 2 years ago

Hi - I followed this tutorial and was able to resolve my issue https://medium.com/intrepidcontrolsystems/how-to-use-socketcan-on-a-raspberry-pi-4-linux-using-valuecan-4-c6ad33bfaa3e

Hope this helps