candump/cansniffer issue in Raspian

General discussion about interfacing with the CAN bus
Post Reply
ereuter
How the heck did I end up here?
Posts: 1
Joined: 2016 Jun 11 16:03

candump/cansniffer issue in Raspian

Post by ereuter » 2016 Jun 11 16:24

Hi-
New to the forum. I'm just getting started with CAN hacking. I am using a Raspberry Pi 3 with SK Pang's PiCAN2 board. I have it hooked up to the bus, in my '13 Fiat Abarth, and can see a stream of data when I run candump. However, when I run cansniffer, I get nothing. I did a search of this board, and didn't see much mention of these tools, but wonder if anyone has any ideas. The data I'm seeing from candump looks like this:

can0 04394000 [4] 00 00 00 CB
can0 0E09400A [2] 00 16
can0 0E094020 [2] 00 0E
can0 06314003 [8] 00 10 70 00 02 08 00 00
can0 02214000 [6] 00 00 00 00 00 00
can0 06314020 [4] 18 00 00 38
can0 04214002 [2] 00 00
can0 08094021 [8] 00 00 80 00 00 00 00 00
can0 06214000 [8] 00 00 48 00 00 18 0B 00
can0 04214001 [8] 00 81 50 3B 00 00 00 00
can0 06314000 [8] 40 00 00 00 00 00 00 00

Thanks,
Eric

galvjr01
How the heck did I end up here?
Posts: 1
Joined: 2016 Aug 22 17:00

Re: candump/cansniffer issue in Raspian

Post by galvjr01 » 2016 Aug 22 17:07

I am having the same issue. I believe it has something to do with only the extended frame IDs.

The bus that I am currently monitoring has both 11-bit and 29 bit CAN identifiers. When I run candump, I can see both the standard frames (11-bit) and the extended frames (29-bit). Howerever, when I run cansniffer, I can only see the 11-bit standard frames.

If you find a solution can you post back to the forum? I will continue to try to figure this out as well. My guess is you need to change the mask because the default mask may not allow the extended frames to go through. That is not working for me though.

Nivoset
How the heck did I end up here?
Posts: 1
Joined: 2016 Nov 21 12:01

Re: candump/cansniffer issue in Raspian

Post by Nivoset » 2016 Nov 21 12:06

I looked quickly, and what is going on (i believe) is that it stores the messages by the ID, and they only gave 2048 slots (11 bit id size) so anything above 11 bits probably gets sluffed off/disreguarded.

This should be easily fixed by making a lookup table that just stores an ID in this table VS an actual can message ID. since i doubt many can networks use 2048 individual addresses, this may let it save memory by not storing every message in a huge array, but making a lookup array for the slot we want to use.

i kind of want this so i may try to work on it if i ever get the free time, but if you want it soon, you may want to just mod it yourself to change ID's after the fact into known slots, and just know 11 = some extended ID.

terkaa
How the heck did I end up here?
Posts: 2
Joined: 2019 Apr 29 15:17

Re: candump/cansniffer issue in Raspian

Post by terkaa » 2019 May 03 17:05

Hi,

I am having same issue with 2013 dodge dart which is based on alfa romeo and also sold as fiat viaggio. Did you find resolution?

Tero

Post Reply