]> rtime.felk.cvut.cz Git - can-utils.git/log
can-utils.git
17 years agoRenamed can-sniffer to cansniffer.
Oliver Hartkopp [Thu, 8 Feb 2007 13:18:07 +0000 (13:18 +0000)]
Renamed can-sniffer to cansniffer.

17 years agoFixed typo in log2asc.c
Oliver Hartkopp [Wed, 10 Jan 2007 17:18:01 +0000 (17:18 +0000)]
Fixed typo in log2asc.c
Added asc2log.c to convert existing CANoe/CANalyser logfiles into socketcan
logfiles (with absolute and full qualified timestamps).
The date and the other settings (dec/hex absolute/relative) are taken from
the head of the ASC files.

17 years agoSome new ASC files support 6 digits in decimal place.
Oliver Hartkopp [Tue, 9 Jan 2007 16:01:46 +0000 (16:01 +0000)]
Some new ASC files support 6 digits in decimal place.
Added new option '-4' to generate 'old-style' ASC files.

17 years agoAdded option '-L' to candump to create the compact logfile output on stdout.
Oliver Hartkopp [Sun, 7 Jan 2007 11:19:37 +0000 (11:19 +0000)]
Added option '-L' to candump to create the compact logfile output on stdout.

Now you can forward CAN frames e.g. via netcat with candump and canplayer:

candump can0 can1 -L | canplayer vcan3=can0 vcan0=can1 -t

OK, maybe it would be reasonable to write a short program for this application.
But for some tests all this can be done with existing commandline tools.
In addition the filtering possibilities of candump can be used here.

17 years agoMinor fix and cosmetics in color handling in candump.c .
Oliver Hartkopp [Sat, 6 Jan 2007 15:43:12 +0000 (15:43 +0000)]
Minor fix and cosmetics in color handling in candump.c .

Added new tool 'canplayer' to replay logfiles generated by candump -l .

Features of canplayer:

- Input from stdin or file.
- throttling of the replay to get nearly original timestamps / message gaps
- mapping and selection of CAN interfaces (assignment)
  e.g. canplay -I logfile vcan2=can2 vcan0=can1 can2=can3
  means: send frames received on can1 in the logfile to vcan0 and so on ...
- if no assignment is made the original interfaces are used for replay
- handling of multiple CAN interfaces simultaneously (if in logfile)
- option: throttle disable (do not look on timestamps => very FAST replay!)
- option: change the 'sleep time' in milli seconds

Remarks:
canplayer uses nanosleep() for throttling which means that the resolution of
the canplayer is about 1ms (Kernel HZ = 1000) or 10ms (Kernel HZ = 100).
After each nanosleep() all the CAN frames are send that had to be transmitted
until the timestamp at the current time. Giving e.g. the option '-g 500' for
500ms let's you see the behaviour. Using nanosleep() makes canplay a very
performant tool with minimum CPU load.

To transfer CAN frames over a TCP/IP network you may now say something like:
candump -> netcat -> netcat -> canplayer

17 years ago- added error frame support in lib.c
Oliver Hartkopp [Mon, 1 Jan 2007 18:29:52 +0000 (18:29 +0000)]
- added error frame support in lib.c
- added sprint_* functions for CAN-frame output in lib.c / lib.h
- added comments / cosmetics

candump.c:
- removed support for the output in ASC representation (moved to log2asc.c)
- added option '-l' for logfile creation e.g. 'candump-2007-01-01_164123.log'
- added funtionality to terminate candump by pressing [ENTER] (not only ^C)
- added error frame support
- added color support even when reading from 'any'
- three different color levels (e.g. -c -c -c)
- making use if lib.c

cangen.c:
-  CAN frames generator for testing purposes (e.g. on vcanx)
(nice when you're on vacancy at the baltic sea and have no real CAN source :)

log2long.c:
- convert compact CAN frame representation into user readable representation

log2asc.c:
- convert compact CAN frame logfile to ASC logfile for 3rd party CAN tools

Next step: Create a tool to replay candump logfiles.

17 years agoAdded include <sys/socket.h> to lib.c after discussion on commit-mailing-list.
Oliver Hartkopp [Tue, 31 Oct 2006 10:41:21 +0000 (10:41 +0000)]
Added include <sys/socket.h> to lib.c after discussion on commit-mailing-list.
Fixed comments.
Fixed Makefile (remove all *.o files / added empty line at end of file).

17 years agoAdded tiny tool cansend and a library to parse ASCII CAN frames (e.g. from
Oliver Hartkopp [Mon, 30 Oct 2006 13:14:36 +0000 (13:14 +0000)]
Added tiny tool cansend and a library to parse ASCII CAN frames (e.g. from
the command line) that are defined in one concatenated string.
This is a requirement for the comming command line tool 'bcmsend' that allows
to send more than one CAN frame at a time.

17 years agochanged user space programs to use new include files.
Urs Thuermann [Tue, 24 Oct 2006 13:55:43 +0000 (13:55 +0000)]
changed user space programs to use new include files.
added missing include file <net/if.h> in most programs.
added volatile modifier to "int running" in candump.c.

17 years agoRemove remnants of the projects VW history (Email addresses, Makefile targets).
Urs Thuermann [Fri, 7 Jul 2006 06:58:26 +0000 (06:58 +0000)]
Remove remnants of the projects VW history (Email addresses, Makefile targets).
Move version.h to include/linux/can.
Fix Makefiles to include raw.ko and bcm.ko in compilation and to make
vcan compile again.
Change ioctl names in SJA1000 driver to make it compile again.
Add parenthesis around assignment in vcan.c to eliminate gcc warning.

18 years agoadd Id to svn:keywords property.
Urs Thuermann [Thu, 11 May 2006 07:59:37 +0000 (07:59 +0000)]
add Id to svn:keywords property.

18 years agoInitial import of llcf-2.0-pre2
Urs Thuermann [Mon, 24 Apr 2006 14:14:09 +0000 (14:14 +0000)]
Initial import of llcf-2.0-pre2