Questions tagged [canutils]

can-utils is a set of tools that are used for testing, logging and debugging SocketCAN applications in a Linux environment.

can-utils is a set of tools that are used for testing, logging and debugging SocketCAN applications in a Linux environment.

Useful links

26 questions
0
votes
0 answers

USB2CAN qdisc buffer full and no requeues

Hi I'm trying to connect my Linux VM to a physical CAN-Bus. The USB Passthrough and setup of the CAN interface is working perfectly fine, but I have trouble sending messages from the VM. First of all here is my VM version and…
Philipp
  • 26
  • 4
0
votes
1 answer

Linux MCP2551 CAN Bus: Stop working after one frame

I got a problem for days now, my Can Bus stop working after sending the first message. I use as a client the IOT-Gate-RPI which have the raspberry pi 3 compute module and a integrated hat with the MCP2551 chip for can Bus. On the other side of the…
danakil
  • 1
  • 1
0
votes
0 answers

Virtual CAN Bus silmulator does not work on Ubuntu

I am trying to replay a log file using the following code. It's a very simple code to read each signal from the file and create the command. It is creating the command correctly. I print it to check and it works fine, but when I use …
Sarah
  • 133
  • 11
0
votes
1 answer

candump utility not printing leading zeros for data length on non-FD frames?

I'm writing a CAN driver and want to set up some tests for it. I have a simple echo program (accepts a can frame and echoes it back). I'm using can-utils for this and would use cangen to generate random data, log it, then make sure the frames were…
brenzo
  • 677
  • 2
  • 6
  • 11
0
votes
1 answer

How to get CANbus working on beaglebone green

I am having trouble getting CAN working on my beaglebone green using can-utils. I have a bitscope hooked up to the CAN pins but I'm not seeing any output.. Beaglebone version: $ uname -a Linux beaglebone 4.4.155-ti-r152 Setting up can1 interface: $…
ishorion
  • 21
  • 7
0
votes
0 answers

How to autosart on boot CAN program written in C

I am making CAN bus simulator, everything works if i start it manually. Tried adding into /etc/rc.local sudo ./canfinal, tried adding sudo /home/pi/canfinal. none of these work for somereason, any ideas why? I would like raspberry to start sending…
0
votes
1 answer

Tiny-CAN I-XL socketCAN extended format

My Problem is the following. I am using the Tiny-CAN I-XL CAN-USB adapter and socketCAN on Linux. I configure the CAN adapter by doing: sudo slcan_attach /dev/ttyUSB0 -w sudo ip link set can0 type can bitrate 100000 restart-ms 500 sudo ifconfig…
Bant
  • 53
  • 1
  • 7
0
votes
0 answers

CAN bus turns to ERROR PASSIVE state when loopback is turned off

I have connected a PiCAN2 board with raspberry pi running latest Jessie. When I try to send some CAN messages to my PC ( PC is connected via a USB to DB9 CAN interface to the PiCAN2 board) through this PiCAN2 using the can-utils, it runs into…
nj_bubbles
  • 78
  • 12
0
votes
2 answers

Linux 2.6 on imx: Can't log sent CAN frames using candump

I have a custom build linux 2.6 running on a imx CPU. CAN communication with external nodes works like a charm, but the frames that I send to the nodes from my app is not printed when using "candump can0" in the terminal (when I run the same app on…
Eric G
  • 1
  • 4
0
votes
0 answers

How to develop timeout on reception?

I have developed a C program that receive can traffics from vcan0 interface. I would like to add timeout on reception, I mean when a timeout expired (10 seconds for example) with no data received during this time, I print "no data received during 10…
developer
  • 4,744
  • 7
  • 40
  • 55
0
votes
1 answer

CAN-utils and socket can

Am running Ubuntu 15.0 and trying desperately to get can-utils to run with all kinds of (USB) devices but with no luck at all. When setting up slcan and running candump or cansniffer i would expect at least something but nope, no incoming data at…
Deko
  • 1,028
  • 2
  • 15
  • 24
1
2