Hi, when I run a debian container on the portenta X8 using the sudo docker run --net=host --privileged -it debian command I see the can interfaces can0 and can1 and can execute commands like 'ip link set can1 up type can bitrate 250000' without an issue. However when trying if the can interface works using the can-utils tools like cansend and candump I get nothing? Is there anyone who has been able to use the can interfaces on the portenta X8 from a docker container that can help me on this?
Welcome! That is a lot of words but the problem we do not have the equipment in front of us. Post an annotated schematic of the system and links to technical information on the hardware devices. Be sure to note all nodes on the bus and how it is wired. It appears to be a hardware problem.
This is just the Portenta X8 on the max carrier board. There are actually no hardware can connections made, but if I play a trace file using canplayer I see nothing appearing on the canbus.
Can1 is setup using:
- ip link set can1 down
- ip link set can1 up type can bitrate 250000 loopback on
- ifconfig can1 txqueuelen 1000
The can1 trace file (captured on another embedded system using candump -l ) is played using:
- canplayer -I ./traceData.log -x -l i
And when I do candump can1 I get nothing.
That makes sense, If my memory is correct loop back does not transmit anything on Bus.
Well that works on another linux based arm system, and I use it every day to play captured trace files
Sorry I do not have any more information at this point for you. Did you try the supplier, it is possible the board is bad.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.