CANpie FD
CAN programming interface environment - Version 3.08
can-config

The purpose of the command line tool can-config is to show current settings of a CANpie FD Server and to modify e.g. bit-rate settings.

Description

can-config [options] interface

The options are as follows:

-h, --help                           Displays this help.
-H, --host <host>                    Connect to <host>
-a, --all                            Show all CAN interfaces
--btr-data <value>                   Set data bit-rate
--btr-nominal <value>                Set nominal bit-rate
-m, --mode <start|stop|listen-only>  Set mode of CAN interface
-r, --reset                          Reset CAN interface
--verbose                            Show more details
-v, --version                        Displays version information

Except for the -a option the command requires a CAN interface as argument, where can1 is the first CAN interface.

Examples

Show configuration of all CAN interfaces:

can-config -a

CANpie FD server active, version: 0.99.6 
Supported CAN networks: 1 
--------------------------------------------------------------------------------
CAN 1         : CAN 1 - Virtual CAN 
CAN state     : Error active 
Bit-rate      : 250 kBit/s 
--------------------------------------------------------------------------------
CAN 2         : CAN 2 - Virtual CAN 
CAN state     : Error active 
Bit-rate      : 250 kBit/s 

Reset CAN channel 1 of a CANpie server running on a remote host with IP address 192.168.40.44:

can-config -r -H 192.168.40.44 -T can1

See also

Use can-send for transmission of CAN frames and can-dump for reception of CAN frames.