@@ -3,42 +3,82 @@ Scripts
33
44The following scripts are installed along with python-can.
55
6- can_logger.py
7- -------------
6+ canlogger
7+ ---------
88
9- Command line help (``--help ``)::
9+ Command line help (``canlogger --help `` or `` python -m can.io.logger --help ``)::
1010
11- usage: can_logger.py [-h] [-f LOG_FILE] [-v] [-i {socketcan,kvaser,serial,ixxat}]
12- channel ...
11+ usage: canlogger [-h] [-f LOG_FILE] [-v] [-c CHANNEL]
12+ [-i {pcan,remote,ixxat,socketcan_ctypes,virtual,usb2can,nican,serial,kvaser,socketcan,socketcan_native}]
13+ [--filter ...]
1314
1415 Log CAN traffic, printing messages to stdout or to a given file
1516
16- positional arguments:
17- channel Most backend interfaces require some sort of channel.
17+ optional arguments:
18+ -h, --help show this help message and exit
19+ -f LOG_FILE, --file_name LOG_FILE
20+ Path and base log filename, extension can be .txt,
21+ .asc, .csv, .db, .npz
22+ -v How much information do you want to see at the command
23+ line? You can add several of these e.g., -vv is DEBUG
24+ -c CHANNEL, --channel CHANNEL
25+ Most backend interfaces require some sort of channel.
1826 For example with the serial interface the channel
19- might be a rfcomm device: /dev/rfcomm0 Other channel
20- examples are: can0, vcan0
21- filter Comma separated filters can be specified for the given
27+ might be a rfcomm device: "/dev/rfcomm0" With the
28+ socketcan interfaces valid channel examples include:
29+ "can0", "vcan0"
30+ -i {pcan,remote,ixxat,socketcan_ctypes,virtual,usb2can,nican,serial,kvaser,socketcan,socketcan_native}, --interface {pcan,remote,ixxat,socketcan_ctypes,virtual,usb2can,nican,serial,kvaser,socketcan,socketcan_native}
31+ Specify the backend CAN interface to use. If left
32+ blank, fall back to reading from configuration files.
33+ --filter ... Comma separated filters can be specified for the given
2234 CAN interface: <can_id>:<can_mask> (matches when
2335 <received_can_id> & mask == can_id & mask)
2436 <can_id>~<can_mask> (matches when <received_can_id> &
2537 mask != can_id & mask)
2638
39+
40+ canplayer
41+ ---------
42+
43+ Command line help (``canplayer --help `` or ``python -m can.io.player --help ``)::
44+
45+ usage: canplayer [-h] [-f LOG_FILE] [-v] [-c CHANNEL]
46+ [-i {pcan,remote,ixxat,socketcan_ctypes,virtual,usb2can,nican,serial,kvaser,socketcan,socketcan_native}]
47+ [--ignore-timestamps] [-g GAP] [-s SKIP]
48+ input-file
49+
50+ Replay CAN traffic
51+
52+ positional arguments:
53+ input-file The file to replay. Supported types: .db
54+
2755 optional arguments:
2856 -h, --help show this help message and exit
2957 -f LOG_FILE, --file_name LOG_FILE
3058 Path and base log filename, extension can be .txt,
31- .csv, .db, .npz
32- -v How much information do you want to see at the command
33- line? You can add several of these e.g., -vv is DEBUG
34- -i {socketcan,kvaser,serial,ixxat}, --interface {socketcan,kvaser,serial,ixxat}
35- Which backend do you want to use?
59+ .asc, .csv, .db, .npz
60+ -v Also print can frames to stdout. You can add several
61+ of these to enable debugging
62+ -c CHANNEL, --channel CHANNEL
63+ Most backend interfaces require some sort of channel.
64+ For example with the serial interface the channel
65+ might be a rfcomm device: "/dev/rfcomm0" With the
66+ socketcan interfaces valid channel examples include:
67+ "can0", "vcan0"
68+ -i {pcan,remote,ixxat,socketcan_ctypes,virtual,usb2can,nican,serial,kvaser,socketcan,socketcan_native}, --interface {pcan,remote,ixxat,socketcan_ctypes,virtual,usb2can,nican,serial,kvaser,socketcan,socketcan_native}
69+ Specify the backend CAN interface to use. If left
70+ blank, fall back to reading from configuration files.
71+ --ignore-timestamps Ignore timestamps (send all frames immediately with
72+ minimum gap between frames)
73+ -g GAP, --gap GAP <ms> minimum time between replayed frames
74+ -s SKIP, --skip SKIP <s> skip gaps greater than 's' seconds
75+
3676
3777
3878canserver
3979---------
4080
41- Command line help (``--help ``)::
81+ Command line help (``canserver --help `` or `` python -m can.interfaces.remote --help ``)::
4282
4383 usage: canserver [-h] [-v] [-c CHANNEL]
4484 [-i {pcan,remote,ixxat,socketcan_ctypes,virtual,usb2can,nican,serial,kvaser,socketcan,socketcan_native}]
0 commit comments