Questions tagged [can]

CAN-Bus is a bus network commonly used in vehicles and automation systems.

CAN (Controller Area Network) is a network system developed to allow components communicate without a bus master / host device.

CAN bus was originally developed for automobile use. Today it is found in a variety of application, and the Linux kernel supports CAN-based network interfaces.

13 questions
18
votes
1 answer

Mount usb to serial adapter CANBUS and can-utils ubuntu?

I have this adapter and I'm trying desperately to mount it in Ubuntu so I can use can-utils to monitor the device but I'm failing. I'm trying to communicate with a serial to the can-bus adapter in 14.04 with can-utils this is the canopen device I'm…
vimes1984
  • 249
6
votes
0 answers

How to automatically bring up CAN interface in Ubuntu 17.10

In previous versions of Ubuntu I have been using this script to automatically bring up an network interface for a USB to CAN bridge device, whenever the device is plugged in: $ cat /etc/network/interfaces # interfaces(5) file used by ifup(8) and…
Aras
  • 819
4
votes
1 answer

ip link set dev up returns RTNETLINK answers: Invalid argument

I have a USB CAN device that create a network interface: $ ip addr 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host…
Mark
  • 577
3
votes
1 answer

18.04 Server with CAN bus and netplan configuration

In Ubuntu server 18.04, what is the best way to use netplan to configure ethernet interfaces, AND configure and use CAN interfaces? I can successfully use netplan to configure my ethernet interfaces, but I can't find much about how to also get CAN…
2
votes
0 answers

CAN: netlink error -95 (Operation not supported)

When creating a bridge between can and virtual can, I am getting this error: netlink error -95 (Operation not supported) Steps that I followed: Created a virtual can: sudo modprobe -n --first-time vcan Load it sudo modprobe vcan add it to type…
1
vote
1 answer

How to change language on Opera snap on Ubuntu 22.04

How to change language on Opera snap on Ubuntu 22.04?
1
vote
1 answer

Udev rule to connect USB to CAN Lawicell

I did purchase a USB to CAN from Lawicell Using this tutorial (http://pascal-walter.blogspot.com/2015/08/installing-lawicel-canusb-on-linux.html) device is running but I cannot automatically detect it using udev rule (ubuntu 16 04 LTS) udev rule is…
0
votes
0 answers

Ubuntu 22.04 on x86: platform or devicetree support for mcp251x is not available

I don't know / haven't found a way to configure mcp251x module without patching and recompiling the kernel. The hardware is an UP-module from AAEON, with additional Pi-Shield-CAN-bus module (mcp2515) connected via the HAT40-IF. Details regarding the…
0
votes
0 answers

USB to CAN Adapter issues on Ubuntu 22.04 (Canalyst ii)

I just bought a USB to CAN Adapter (Waveshare USB-CAN-B) to communicate with some MCUs over CAN. Working on Ubuntu 22.04 installed on my laptop. I am unable to see the can0 interface when I connect the adapter. Here is some data that might prove…
0
votes
1 answer

Cannot find device "can0" with Ubuntu-Server 20.04

my question is about using the SPI interface to do some things with CAN. On my Raspberry with the Raspberry OS everything worked fine. Since I want to use the CAN data with ROS, I decided to install Ubuntu Server 20.04 on it. In doing so, I ran into…
0
votes
1 answer

run ip commands without sudo

I am currently writing something that utilizes a usb CAN interface to communicate with a CAN bus. If I switch users to root, the program runs just fine, however, I want to run the program as my local user (steven). The program is built on top of…
Steven
  • 1
0
votes
0 answers

how to always update USB through /tty/USB* command

I am doing slcan communication with i.mx8qm board every time when I reboot the board I need to update the USB port through command for proper communication sudo slcand -o -s8 -t hw -S 3000000 /dev/ttyUSB* how to keep USB port number updated every…
akshay
  • 1
0
votes
1 answer

how to solve "No if updown configuration found" for CAN bus interface Linux 18.4.4LTS

I am trying to get SocketCAN interface working. I've added the slcan0 adapter and trying to run candump slcan0 at a bit rate I am sure the CAN devices is running at. I dont see any data being printed in the terminal while I am sure CAN device is…
Rishit
  • 1