Linux-CAN / SocketCAN user space applications
 
 
 
 
Go to file
Oliver Hartkopp e7631bd7f9 canfd: upgrade tools to support CAN FD for Linux 3.6
This is a major upgrade of the basic tools to handle CAN FD frames.
The library to parse and print CAN frames and logfiles has been extended.

In detail:

 asc2log.c      |    5 +
 candump.c      |   24 ++++---
 cangen.c       |  172 +++++++++++++++++++++++++++++++++------------------
 canlogserver.c |   28 +++++---
 canplayer.c    |   25 ++++---
 cansend.c      |   55 ++++++++++++----
 lib.c          |  189 ++++++++++++++++++++++++++++++++++++++-------------------
 lib.h          |  109 ++++++++++++++++++++++++--------
 log2asc.c      |    8 +-
 log2long.c     |   26 ++++++-
 10 files changed, 440 insertions(+), 201 deletions(-)

asc2log.c / log2asc.c
- updates for new lib functions
- still can only handle CAN2.0 frames (no new info about ASC file layout)

log2long.c / canlogserver.c / canplayer.c
- updates for new lib functions to handle CAN FD

lib.h / lib.c
- reworked lib functions to handle CAN FD
- parse_canframe() now returns CAN_MTU and CANFD_MTU on success, 0 at failure
- added can_dlc2len() and can_len2dlc() helpers
- moved hexstring2candata to hexstring2data to support simple byte buffers
- in the long CAN frame representation use %03X/%08X instead of %3X/%8X
- introduced unified buffer size definitions for ASCII CAN frames
- updated documentation

cangen.c
- support CAN FD frames (added -f option to create CAN FD frames)
- added -m option ('mix') to create random extended / RTR / CAN FD frames
- fixed the 'fixed data' option which was zero'ing the payload by the time
- updated help text

candump.c
- support CAN FD frames (print, bridge, log)
- distinguish frame types by length info: [0] = CAN2.0 [00] = CAN FD frame

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
2012-11-14 19:47:21 +01:00
config/m4 add autotools infrastructure 2010-04-19 12:12:18 +00:00
include Update includes to Linux 3.6 with CAN FD support. 2012-11-14 18:52:01 +01:00
.gitignore gitignore: added tarballs 2012-01-11 12:14:15 +01:00
Android.mk can-utils: add Makefile for Android build system 2012-03-20 11:16:43 +01:00
GNUmakefile.am autotools: adopt to new location for kernel headers 2012-01-11 12:14:15 +01:00
Makefile treewide: replace berlios contact email by linux-can@vger.kernel.org 2012-01-11 12:14:15 +01:00
asc2log.c canfd: upgrade tools to support CAN FD for Linux 3.6 2012-11-14 19:47:21 +01:00
autogen.sh add autotools infrastructure 2010-04-19 12:12:18 +00:00
bcmserver.c treewide: replace berlios contact email by linux-can@vger.kernel.org 2012-01-11 12:14:15 +01:00
can-calc-bit-timing.c can-calc-bit-timing: remove rtcantl1 2010-07-20 14:10:38 +00:00
canbusload.c adapt column width format for high busload values 2012-03-08 19:32:45 +01:00
candump.c canfd: upgrade tools to support CAN FD for Linux 3.6 2012-11-14 19:47:21 +01:00
canfdtest.c treewide: replace berlios contact email by linux-can@vger.kernel.org 2012-01-11 12:14:15 +01:00
cangen.c canfd: upgrade tools to support CAN FD for Linux 3.6 2012-11-14 19:47:21 +01:00
cangw.c treewide: replace berlios contact email by linux-can@vger.kernel.org 2012-01-11 12:14:15 +01:00
canlogserver.c canfd: upgrade tools to support CAN FD for Linux 3.6 2012-11-14 19:47:21 +01:00
canplayer.c canfd: upgrade tools to support CAN FD for Linux 3.6 2012-11-14 19:47:21 +01:00
cansend.c canfd: upgrade tools to support CAN FD for Linux 3.6 2012-11-14 19:47:21 +01:00
cansniffer.c treewide: replace berlios contact email by linux-can@vger.kernel.org 2012-01-11 12:14:15 +01:00
configure.ac autotools: adopt to new location for kernel headers 2012-01-11 12:14:15 +01:00
isotpdump.c treewide: replace berlios contact email by linux-can@vger.kernel.org 2012-01-11 12:14:15 +01:00
isotprecv.c treewide: replace berlios contact email by linux-can@vger.kernel.org 2012-01-11 12:14:15 +01:00
isotpsend.c treewide: replace berlios contact email by linux-can@vger.kernel.org 2012-01-11 12:14:15 +01:00
isotpserver.c treewide: replace berlios contact email by linux-can@vger.kernel.org 2012-01-11 12:14:15 +01:00
isotpsniffer.c treewide: replace berlios contact email by linux-can@vger.kernel.org 2012-01-11 12:14:15 +01:00
isotptun.c treewide: replace berlios contact email by linux-can@vger.kernel.org 2012-01-11 12:14:15 +01:00
lib.c canfd: upgrade tools to support CAN FD for Linux 3.6 2012-11-14 19:47:21 +01:00
lib.h canfd: upgrade tools to support CAN FD for Linux 3.6 2012-11-14 19:47:21 +01:00
log2asc.c canfd: upgrade tools to support CAN FD for Linux 3.6 2012-11-14 19:47:21 +01:00
log2long.c canfd: upgrade tools to support CAN FD for Linux 3.6 2012-11-14 19:47:21 +01:00
slcan_attach.c can-utils: cleanup headers 2012-03-20 11:16:43 +01:00
slcand.c can-utils: cleanup headers 2012-03-20 11:16:43 +01:00
slcanpty.c can-utils: cleanup headers 2012-03-20 11:16:43 +01:00
terminal.h treewide: replace berlios contact email by linux-can@vger.kernel.org 2012-01-11 12:14:15 +01:00