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
11
votes
2 answers

Heavily confused by candump (SocketCAN) ID filtering feature

In a nutshell, I want candump to show me ONLY frames with IDs 0x00200200 or 0x255. So I do this: candump can0,00200200:0,255:0 But this gives ALL frames, and each frame is shown twice. i.e. the output of: cansend can0 256#112233 would be…
Erik Nyquist
  • 1,267
  • 2
  • 12
  • 26
8
votes
3 answers

Canplayer won't replay candump files

I'm trying to use canplayer to replay some candump files, with no success. When I try to run the canplayer it just executes and returns, giving me no clue of what is happening. What I've tried up to now: Setup 1 Set up a vcan interface Sent…
Arthur Nunes
  • 6,718
  • 7
  • 33
  • 46
5
votes
2 answers

How to connect two VCAN ports in Linux?

I have set up two vcan devices and I want to treat them as if they were connected together. I want to be able to use can-utils candump to listen on one line, and send can messages from the other. How can I do that without a physical device? For…
viduwoy
  • 113
  • 12
5
votes
2 answers

CAN FD support for Virtual CAN (vcan) on SocketCAN

I have been using SocketCAN and especially the Virtual CAN vcan for quite a while now. However, I never used CAN FD (Flexible Datarate) so far. Well, I tried it this morning using the can-utils: cansend vcan0 123##122 However, I got the response…
MAW
  • 121
  • 1
  • 5
3
votes
2 answers

No active virtual can messages when using candump (SocketCAN)

I am playing with can-utils package, trying to run a virtual can device. Everything seems to work fine except there is no active messages. Candump and cansniffer works, because I send a message manually and it shows up. Am I doing something…
stardust
  • 343
  • 3
  • 17
2
votes
1 answer

can0 listen can-bus but no data appears

I'm trying to read a CAN-BUS on a vehicle with a raspberry (CAN is connected to DB9 connector on the raspberry). The vehicle provides energy to the raspberry also. Here's my stack: Protocol CAN "ISO 15765 CAN" by Bosch CAN-Bus Board PiCAN3 machine :…
wajisan
  • 94
  • 6
2
votes
2 answers

Candump showing 29 bit ID's instead of 11 bit - can't replay codes

Trying to replay CAN codes for 2018 Dodge Promaster using can-utils. From what I've read they use an 11 bit CAN ID. However when I use: candump -L can0 > can.log The log shows 29 bit ID's (1519238827.107818) can0…
physiii
  • 209
  • 3
  • 12
2
votes
1 answer

how to double pipe candump

when using candump to read can bus : $ candump can0 if I grep it once : $ candump can0 | grep It works perfectly : $ candump can0 | grep 1A8 can0 1A8 [8] 3C 53 C5 FF 0D C3 3A 01 can0 1A8 [8] 3C 53 C5 FF 0D C3 3A…
fataljg
  • 23
  • 1
  • 6
1
vote
1 answer

CAN Communication in QT

I have a specific problem with the CAN communication in QT. It is not a problem to send/write CAN messages, but the readFrame() function in QT doesn't load my received frames. If you are implementing a CAN communication in C++ you can use the read()…
1
vote
1 answer

Candump - candumpanalyzer : command not found

Operating System: Rasbian I am trying to follow this https://www.npmjs.com/package/@canboat/canboatjsto to use the following command : candump can0 | candumpanalyzer. However, after trying all these commands: $ sudo npm install @canboat/canboatjs $…
colla
  • 717
  • 1
  • 10
  • 22
1
vote
1 answer

cansend command doesn't send a frame from can0 to can1

I need to send a frame from can0 to can1 and vice versa. So, first I log candump output to a file like this: candump can1 -n 1 > /tmp/CANDUMP & Then I send the frame: cansend can0 128#00FF00FF00FF00FF It only works if I send a frame from can1 to…
tortillla
  • 31
  • 3
1
vote
0 answers

Candump Filter is occasionally not working correctly

For a bash script, where I read information from a Micoboard via can, I use the candump command with a filter to read a specific message. My problem is that while the filter itself is working correctly, the candump command with the filter…
1
vote
0 answers

Dump of BAMs (Broadcast Announcement Message) with canutils

Good morning, I'm a embedded linux developer and I'm trying to dump J1939 CAN sentences on a iMX6 based board. I tried saving RAW canbus messages on a file using the command candump can0 -L > /tmp/fms_canbus and everything works fine with NON…
Giox79
  • 124
  • 11
0
votes
0 answers

Why does candump of can-utils flag sent frames as RX instead of TX?

raspberry pi sends messages: On that device I have two terminals open: to look at candump -x any expecting TX messages to send messages cansend can0 110#C0FFEE device B receives the messages sent by raspberry pi. However, raspberry pi displays…
spaceKelan
  • 67
  • 7
0
votes
0 answers

How to use CANopenLinux with USBtin?

I use the USBtin via socketcan by plugging in the device and executing can-utils on CentOS sudo slcan_attach -f -s3 -o /dev/ttyACM0 sudo slcand ttyACM0 can0 sudo ip link set up can0 Then I check ifconfig can0: flags=193 mtu 16 …
spaceKelan
  • 67
  • 7
1
2