Questions tagged [canbus]
The canbus tag has no summary.
13 questions
0 votes
0 answers
477 views
can-config sample-point setup
I need to set up sample-points for CANFD bus. The following help command shows how to set up sample-points for can, but my can configuration is not showing any sample points argument. ip link set ...
1 vote
0 answers
3k views
How to verify CAN interfaces with Linux?
I want to verify the CAN interfaces on my embedded system. It has two can ports: can0 and can1. I bring them both up with the following sequence: # ip link set can0 type can bitrate 1000000 dbitrate ...
1 vote
1 answer
800 views
Getting a Waveshare CAN HAT working on a Banana Pi BPI-M2 Zero
Waveshare makes a great CAN HAT for the Raspberry Pi (see here), but the instructions only work for Raspberry Pi OS, not for Armbian. The Banana Pi BPI-M2 Zero has the same pin header layout as the ...
0 votes
1 answer
710 views
information regarding can, can-dev kernel modules on Debian GNU/Linux 10 (buster) Linux 4.19.94-ti-r42
I seem to be missing a couple of kernel modules. Specifically, can and can_dev. The modules don't load when I run modprobe can or modprobe can-dev. The reason for this I believe is because the modules ...
0 votes
0 answers
49 views
CANbus adapter stuff in 11-bit mode
I have a PEAK canbus adapter (USB) connected to my Linux box, access from Qt C++ program. While all works well, when I receive frames they are all SFF (11-bit) ID's. candumps are all 11-bit ID's. ...
1 vote
1 answer
914 views
Consistent / persistent network connection naming, like udev
I have multiple similar USB network devices, in this case CAN (can0 and can1) connections to different networks but I figure it is a similar problem with multiple other networks (eg WiFi, Ethernet etc)...
2 votes
1 answer
593 views
systemd-networkd-wait-online failing with SocketCAN interface
I have configured a SocketCAN interface, can0 (confirmed working using can-utils). I have the below .network config file, so that systemd-networkd brings up the interface on boot. #/etc/systemd/...
1 vote
0 answers
296 views
Virtualbox Linux Adding SocketCAN Interface
Does anyone have experience using SocketCAN within Virtualbox? I'm using Xubuntu. I started by modprobing can, can_raw, can_dev and the relevant driver for the particular can module I'm using. In ...
0 votes
1 answer
410 views
Unable to bring up the CANbus interface on a Beaglebone black
To automatically bring up the interface on boot, I edited the /etc/network/interfaces file as follows: debian@beaglebone:~$ sudo nano /etc/network/interfaces And added the following at the end of the ...
1 vote
1 answer
3k views
Clear socket buffer of CAN adapter
I have a USB/CAN adapter, from lsusb: OpenMoko, Inc. Geschwister Schneider CAN adapter it provides a socket interface, from ip addr: 5: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast ...
1 vote
1 answer
768 views
On a system, can two CAN ports have the same CAN-ids?
If a device with two CAN ports have the same CAN-id, will this cause trouble? The networks are separated for some reason, but the "master" should be the same for both networks. Edit: Below ...
0 votes
0 answers
528 views
MCP251x driver missing
I'm trying to install the mcp251x driver on a Linux system with kernel 4.9.253-tegra and I used the command: # modprobe mcp251x I checked with the command # dmesg | grep mcp251x but it doesn't ...
1 vote
1 answer
1k views
Udev rule to connect USB to CAN Lawicell
I am using a Lawicel CAN adapter to connect to a sensor, and would like to setup a udev rule to avoid the manual can setup. The manual can setup: sudo slcand -o -c -f -s6 /dev/ttyUSB0 slcan0 sudo ...