@@ -35,57 +35,4 @@ Command line help (``--help``)::
3535 Which backend do you want to use?
3636
3737
38- j1939_logger.py
39- ---------------
4038
41- command line help (``--help ``)::
42-
43- usage: j1939_logger.py [-h] [-v] [-i {socketcan,kvaser,serial}]
44- [--pgn PGN | --source SOURCE | --filter FILTER]
45- channel
46-
47- Log J1939 traffic, printing messages to stdout or to a given file
48-
49- positional arguments:
50- channel
51- Most backend interfaces require some sort of channel. For example with the serial
52- interface the channel might be a rfcomm device: /dev/rfcomm0
53- Other channel examples are: can0, vcan0
54-
55- optional arguments:
56- -h, --help show this help message and exit
57- -v
58- How much information do you want to see at the command line?
59- You can add several of these e.g., -vv is DEBUG
60- -i {socketcan,kvaser,serial}, --interface {socketcan,kvaser,serial}
61- Which backend do you want to use?
62- --pgn PGN
63- Only listen for messages with given Parameter Group Number (PGN).
64- Can be used more than once. Give either hex 0xEE00 or decimal 60928
65- --source SOURCE
66- Only listen for messages from the given Source address
67- Can be used more than once. Give either hex 0x0E or decimal.
68- --filter FILTER
69- A json file with more complicated filtering rules.
70-
71- An example file that subscribes to all messages from SRC=0
72- and two particular PGNs from SRC=1:
73-
74- [
75- {
76- "source": 1,
77- "pgn": 61475
78- }
79- {
80- "source": 1,
81- "pgn": 61474
82- }
83- {
84- "source": 0
85- }
86- ]
87-
88-
89-
90- Pull requests welcome!
91- https://bitbucket.org/hardbyte/python-can
0 commit comments