CAN interface not showing up
Posted: Wed 5. Feb 2020, 15:46
Hi all, I'm developing an application in Java that communicates with CAN using a Java JNI porting of the Socket Can library. (https://github.com/entropia/libsocket-can-java)
I am using Ubuntu 19.10, and I have installed the peak linux drivers with
and the build seems successful, and the driver initialized. I can see /dev/pcanusb32 and /dev/pcan-sb/0/can0 which points to /dev/pcanusb32.
If I open pcanview, I am able to connect to the interface, and correctly send and receive messages.
However, it is not listed in ifconfig.
When I try to retrieve the interface id by its name (pcanusb32) in my application, I get an error resulting from a ioctl call, saying "No such device".
I am not sure what I am doing wrong, any help is appreciated! I already search in this forum and tried many solutions, such as building a charnet or trying different arguments for the build, but they didn't work.
Alessandro
I am using Ubuntu 19.10, and I have installed the peak linux drivers with
Code: Select all
make NET=NETDEV_SUPPORT
sudo make install
sudo modprobe pcan
If I open pcanview, I am able to connect to the interface, and correctly send and receive messages.
However, it is not listed in ifconfig.
When I try to retrieve the interface id by its name (pcanusb32) in my application, I get an error resulting from a ioctl call, saying "No such device".
I am not sure what I am doing wrong, any help is appreciated! I already search in this forum and tried many solutions, such as building a charnet or trying different arguments for the build, but they didn't work.
Alessandro