]> rtime.felk.cvut.cz Git - sojka/can-utils.git/commit
can-utils: canfdtest, a full duplex test to find out-of-order messages
authorWolfgang Grandegger <wg@grandegger.com>
Wed, 25 Nov 2009 11:18:22 +0000 (11:18 +0000)
committerWolfgang Grandegger <wg@grandegger.com>
Wed, 25 Nov 2009 11:18:22 +0000 (11:18 +0000)
commitaf4ef626466bcc0800c49aa9fe576eebd16fc387
tree7f2613afd99af15cfc867c0144a3c94280809f2d
parent0b4d1431139209776a20744575d1ce86702ce680
can-utils: canfdtest, a full duplex test to find out-of-order messages

This patch is a pepped up version of Valdislav's canecho_gen and
canecho_dut test programs, which have prooved to be useful for
detecting out-of-order message transmisson and reception. Here
is a list of the changes and improvements:

- Both programs have been merged into on test program named
  canfdtest. Message generation can be selected via the command
  line option '-g'.
- The test loop count can be specified.
- A low and high verbosity level has been added.
- send/recv is used instead of write/read.
- The return code of send/recv is checked properly.
- Use Linux coding style.

Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Makefile
canfdtest.c [new file with mode: 0644]