.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.8. .TH CAN_VIEWER "1" "February 2019" "can_viewer 3.0.0+github" "User Commands" .SH NAME can_viewer \- CAN data viewer 3.0.0+github .SH SYNOPSIS .B python \fI\,-m can.viewer \/\fR[\fI\,-h\/\fR] [\fI\,--version\/\fR] [\fI\,-b BITRATE\/\fR] [\fI\,-c CHANNEL\/\fR] .SH DESCRIPTION .TP [\-d {:,:::...:,file.txt}] [\-f {:,~}] [\-i {iscan,ixxat,kvaser,neovi,nican,pcan,serial,slcan,socketcan,socketcan_ctypes,socketcan_native,usb2can,vector,virtual}] .PP A simple CAN viewer terminal application written in Python .SS "Optional arguments:" .TP \fB\-h\fR, \fB\-\-help\fR Show this help message and exit .TP \fB\-\-version\fR Show program's version number and exit .TP \fB\-b\fR, \fB\-\-bitrate\fR BITRATE Bitrate to use for the given CAN interface .TP \fB\-c\fR, \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 interfaces valid channel examples include: "can0", "vcan0". (default: use default for the specified interface) .TP \fB\-d\fR, \fB\-\-decode\fR {:,:::...:,file.txt} Specify how to convert the raw bytes into real values. The ID of the frame is given as the first argument and the format as the second. The Python struct package is used to unpack the received data where the format characters have the following meaning: .TP < = little\-endian, > = big\-endian x = pad byte c = char ? = bool b = int8_t, B = uint8_t h = int16, H = uint16 l = int32_t, L = uint32_t q = int64_t, Q = uint64_t f = float (32\-bits), d = double (64\-bits) .TP Fx to convert six bytes with ID 0x100 into uint8_t, uint16 and uint32_t: $ python \fB\-m\fR can.viewer \fB\-d\fR "100::,~} Comma separated CAN filters for the given CAN interface: .TP : (matches when & mask == can_id & mask) ~ (matches when & mask != can_id & mask) .TP Fx to show only frames with ID 0x100 to 0x103: python \fB\-m\fR can.viewer \fB\-f\fR 100:7FC .IP Note that the ID and mask are alway interpreted as hex values .TP \fB\-i\fR, \fB\-\-interface\fR {iscan,ixxat,kvaser,neovi,nican,pcan,serial,slcan,socketcan,socketcan_ctypes,socketcan_native,usb2can,vector,virtual} Specify the backend CAN interface to use. .SS "Shortcuts:" .HP +\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ .TP | Key | Description | .HP +\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ .TP | ESQ/q | Exit the viewer | .TP | c | Clear the stored frames | .TP | s | Sort the stored frames | .TP | SPACE | Pause the viewer | .TP | UP/DOWN | Scroll the viewer | .HP +\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+