Oliver Hartkopp
Oliver Hartkopp
Yes. I would like to avoid malloc() in can-utils where possible. From my understanding we provide software for embedded systems - and therefore malloc() should be avoided. My preferred idea...
The work around is a horrible way in terms of coding style. I googled around on this topic and found this: https://stackoverflow.com/questions/1867065/how-to-suppress-gcc-warnings-from-library-headers/1900578#1900578 I think we should go for such an...
I tried the original code from https://github.com/linux-can/can-doc/issues/2#issue-1709494008 and only changed `can0` to `vcan0` . That resulted in a working setup. But `candump any -td` shows that the gap between the...
Can you please check is it works with a virtual CAN interface in your setup (as I showed above) and check if the CAN traffic is analogue to my candump...
Can you please post the output of `lsmod | grep can` and `ip -d -s link show vcan0`?
`lsmod`looks good. But there are no RX/TX packets on the vcan0 interface. When I run your program on `vcan0`instead of `can0` it looks like this: ``` $ ip -d -s...
But if this would have been started, why are there no RX/TX packets for vcan0 visible?
> ``` > ioctl(3, SIOCGIFINDEX, {ifr_name="vcan0", ifr_ifindex=6}) = 0 > bind(3, {sa_family=AF_CAN, sa_data="\225U\6\0\0\0\213\352P\0\0\0\0\0\240\362.\1\0\0\0\0"}, 24) = 0 > setsockopt(3, SOL_CAN_RAW, CAN_RAW_FILTER, "\0\0\0\0\0\0\0\0", 8) = 0 > socket(AF_CAN, SOCK_DGRAM|SOCK_CLOEXEC, CAN_BCM) = 4...
> Sure, for strace -o log python3 test.py, strace -o log python3 /home/continental/Test_code/zzzz.py > The strace log has to look like the example from @marckleinebudde
Please send a strace output as posted by @marckleinebudde here https://github.com/linux-can/can-doc/issues/2#issuecomment-1553133306