can - Canplayer won't replay candump files -


i'm trying use canplayer replay candump files, no success. when try run canplayer executes , returns, giving me no clue of happening.

what i've tried now:

setup 1

  • set vcan interface
  • sent data vcan interface using cansend , cangen, success (verified candump).
  • recorded candump file vcan0 when running cangen. recorded files absolute timestamps (-t a) , without.
  • tried using canplayer reproduce file. tried using several arguments, no avail. canplayer returns without complaint. if mess the file or arguments complains.

setup 2

  • connected 2 peak can usb adapter devices pc.
  • connected adapters each other using 120ohm terminated cable
  • started cangen pointing can0 , verified messages got can1 using candump
  • recorded candump files can0 interface.
  • tried using canplayer reproduce file., no success.

i've tried these tests on 2 different machines, both running ubuntu 12.04, same results.

do know might cause of it?

it seems had recorded log files in wrong manner.

my logs files recording using following command:

$ candump -ta vcan0 "log.candump" 

that command, however, records log in human 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 

in order record log files can playback canplayer, should recorded using either

$ candump -l vcan0 

or

$ candump -l vcan0 > myfile.log 

the recorded file 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 format can replayed in canplayer using following commands:

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

or

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

credits answer go oliver hartkopp.


Comments