Canplayer will not play chumup files

I am trying to use canplayer to play some confum files without success. When I try to run canplayer, it simply executes and returns, not letting me know what is happening.

What I have tried so far:

Setting 1

  • Configuring the vcan interface
  • Sent data to the vcan interface using cansend and cangen, with success (verified using candump).
  • Wrote the candump file from vcan0 when cangen started. Recorded files with absolute timestamps (-ta) and without.
  • Tried to use canplayer to play the file. I tried using a few arguments, but it did not help. canplayer returns immediately without any complaints. If I messed up the file or the arguments it complains.

Setting 2

  • 2 PEAK CAN USB devices connected to a PC.
  • Adapters connected to each other using a cable with a 120ohm connector
  • Found cangen pointing to can0 and confirmed that messages received for can1 using candump
  • Recorded sample files from the can0 interface.
  • Tried to use canplayer to play the file., Without success.

I tried these tests on two different machines, as with Ubuntu 12.04, with the same results.

Do you know what could be causing this?

+6
source share
2 answers

I seem to have logged the log files incorrectly.

My log files that are being recorded using the following command:

$ candump -ta vcan0 "log.candump" 

This command, however, writes the log in a readable format:

  vcan0 1B3 [8] 8E 02 74 22 55 70 49 30 vcan0 658 [6] 27 48 2C 56 14 0A vcan0 1F8 [2] 77 99 vcan0 7B7 [8] 33 A2 24 38 B2 78 86 72 vcan0 43C [8] 92 C6 81 2E FC 5E 38 35 vcan0 7B0 [2] 2D 1B 

To record log files that can be played with canplayer, they must be recorded with

 $ candump -l vcan0 

or

 $ candump -L vcan0 > myfile.log 

The recorded file will look like this:

 (1436509052.249713) vcan0 044#2A366C2BBA (1436509052.449847) vcan0 0F6#7ADFE07BD2 (1436509052.650004) vcan0 236#C3406B09F4C88036 (1436509052.850131) vcan0 6F1#98508676A32734 (1436509053.050284) vcan0 17F#C7 (1436509053.250417) vcan0 25B#6EAAC56C77D15E27 (1436509053.450557) vcan0 56E#46F02E79A2B28C7C (1436509053.650713) vcan0 19E#6FE1CB7DE2218456 (1436509053.850870) vcan0 1A0#9C20407F96EA167B (1436509054.051025) vcan0 6DE#68FF147114D1 

Files in this format can be played in canplayer using the following commands:

 $ canplayer -I candump-2015-07-10_081824.log 

or

 $ cat candump-2015-07-10_081824.log | canplayer 

Credits for this answer go to Oliver Hartkopp.

+9
source

I found this article with excellent information on using can and vcan. After entering the physical CAN bus log using candump using

$ candump -l can0

as indicated in the previous answer. I used the following to play it on a virtual CAN bus.

$ canplayer vcan0=can0 -I candump-may-14-2015.log

+2
source

All Articles