Hey all,

I've been working with the PCM-3680I - a can bus module. I'm trying to
set up a simple C program that can send and receive can bus messages
but I'm getting a very strange error.

In my code, when I call socket(), I always get -1 in response.

If I call

sudo LD_LIBRARY_PATH=/usr/xenomai/lib /usr/xenomai/sbin/rtcanconfig
rtcan0 -b 1000000 -v start

I get the expected response:
mode: start (0x1)
baudrate: 1000000

Then I copied and pasted the rtcanconfig.c example from the
documentation and compiled it and it gave me the error about sockets
again

sudo LD_LIBRARY_PATH=/usr/xenomai/lib ./rtcanconfig rtcan0 -b 1000000 -v start
mode: start (0x1)
Cannot open RTDM CAN socket. Maybe driver not loaded?

I'm sure that the driver is loaded and the precompiled rtcanconfig
seems to be working.

Any idea what's going on here?

Thanks,
-Ashwin

_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai

Reply via email to