Duplicate CAN Messages in tshark trace
Hello everyone,
I observe a behavior that all CAN TX messages appears twice in the generated trace and I have no explanation for that why this happens. I don't see that this behavior with candump.
I wrote a little bash script that sends every second the same CAN message. The message appears every second in the candump log and in the tshark log I see the CAN message twice in the same seconds with couple of microseconds delay.
I have tested this with the wireshark version 3.6.2 and 4.2.9
candump log:
(2023-12-29 02:17:54.250846) can0 TX - - 123 [4] DE AD BE EF
(2023-12-29 02:17:55.253027) can0 TX - - 123 [4] DE AD BE EF
(2023-12-29 02:17:56.255209) can0 TX - - 123 [4] DE AD BE EF
(2023-12-29 02:17:57.258906) can0 TX - - 123 [4] DE AD BE EF
tsharklog:
1 2023-12-29 02:17:54.250507696 ? CAN 32 ID: 291 (0x123), Length: 4
2 2023-12-29 02:17:54.250846188 ? CAN 32 ID: 291 (0x123), Length: 4
3 2023-12-29 02:17:55.252689942 ? CAN 32 ID: 291 (0x123), Length: 4
4 2023-12-29 02:17:55.253027513 ? CAN 32 ID: 291 (0x123), Length: 4
5 2023-12-29 02:17:56.254869874 ? CAN 32 ID: 291 (0x123), Length: 4
6 2023-12-29 02:17:56.255209782 ? CAN 32 ID: 291 (0x123), Length: 4
I looked through the different man pages of dumpcap and tshark but I don't found any option to get the same behavior as with candump. Maybe I oversaw something.
Does anybody have an idea or run into the same problem and knows how to fix that? Every help is very appreciate.
Best Regards
Florian
Please add the tshark command line used for capture and the output of
tshark -v
.Hey, here are the missing calls:
For capturing I simply call:
and the output of tshark -v:
(more)Are you capturing on the the system running the "bash script that sends"?
Is it possible you are capturing the transmit and the receive with tshark?
Yes, the scripts runs on the same system. Sadly it's not possible to the get the message direction to see if it is TX or RX message.
But I would assume when I receive my TX message it would also show up in "candump" log. From the timestamp point of view the duplicated message from tshark appears before. As you can see in the logs from my question. My assumption is that tshark also reads an additional cache?
Can you share a packet capture?