.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. .TH CAN_LOGGER "1" "December 2023" "can_logger 4.3.1" "User Commands" .SH NAME can_logger \- CAN data logger .SH DESCRIPTION usage: logger.py [\-h] [\-c CHANNEL] .IP [\-i {canalystii,cantact,etas,gs_usb,iscan,ixxat,kvaser,neousys,neovi,nican,nixnet,pcan,robotell,seeedstudio,serial,slcan,socketcan,socketcand,systec,udp_multicast,usb2can,vector,virtual}] [\-b BITRATE] [\-\-fd] [\-\-data_bitrate DATA_BITRATE] [\-f LOG_FILE] [\-a] [\-s FILE_SIZE] [\-v] [\-\-filter {:,~} [{:,~} ...]] [\-\-active | \fB\-\-passive]\fR \&... .PP Log CAN traffic, printing messages to stdout or to a given file. .SS "positional arguments:" .TP extra_args The remaining arguments will be used for the interface and logger/player initialisation. For example, `\-i vector \fB\-c\fR 1 \fB\-\-app\-name\fR=\fI\,MyCanApp\/\fR` is the equivalent to opening the bus with `Bus('vector', channel=1, app_name='MyCanApp') .SS "options:" .TP \fB\-h\fR, \fB\-\-help\fR show this help message and exit .TP \fB\-c\fR CHANNEL, \fB\-\-channel\fR CHANNEL Most backend interfaces require some sort of channel. For example with the serial interface the channel might be a rfcomm device: "/dev/rfcomm0". With the socketcan interface valid channel examples include: "can0", "vcan0". .TP \fB\-i\fR {canalystii,cantact,etas,gs_usb,iscan,ixxat,kvaser,neousys,neovi,nican,nixnet,pcan,robotell,seeedstudio,serial,slcan,socketcan,socketcand,systec,udp_multicast,usb2can,vector,virtual}, \fB\-\-interface\fR {canalystii,cantact,etas,gs_usb,iscan,ixxat,kvaser,neousys,neovi,nican,nixnet,pcan,robotell,seeedstudio,serial,slcan,socketcan,socketcand,systec,udp_multicast,usb2can,vector,virtual} Specify the backend CAN interface to use. If left blank, fall back to reading from configuration files. .TP \fB\-b\fR BITRATE, \fB\-\-bitrate\fR BITRATE Bitrate to use for the CAN bus. .TP \fB\-\-fd\fR Activate CAN\-FD support .TP \fB\-\-data_bitrate\fR DATA_BITRATE Bitrate to use for the data phase in case of CAN\-FD. .TP \fB\-f\fR LOG_FILE, \fB\-\-file_name\fR LOG_FILE Path and base log filename, for supported types see can.Logger. .TP \fB\-a\fR, \fB\-\-append\fR Append to the log file if it already exists. .TP \fB\-s\fR FILE_SIZE, \fB\-\-file_size\fR FILE_SIZE Maximum file size in bytes. Rotate log file when size threshold is reached. (The resulting file sizes will be consistent, but are not guaranteed to be exactly what is specified here due to the rollover conditions being logger implementation specific.) .TP \fB\-v\fR How much information do you want to see at the command line? You can add several of these e.g., \fB\-vv\fR is DEBUG .TP \fB\-\-filter\fR {:,~} [{:,~} ...] R|Space separated CAN filters for the given CAN interface: : (matches when & mask == can_id & mask) ~ (matches when & mask != can_id & mask) Fx to show only frames with ID 0x100 to 0x103 and 0x200 to 0x20F: python3 \fB\-m\fR can.viewer \fB\-f\fR 100:7FC 200:7F0 Note that the ID and mask are always interpreted as hex values .TP \fB\-\-active\fR Start the bus as active, this is applied by default. .TP \fB\-\-passive\fR Start the bus as passive.