18 Jan 2013
cansetup
1
The GPSD Project
GPSD Documentation
cansetup
init the can interface of some known CAN hardware for the use with gpsd and NMEA2000
cansetup
-n control
-s speed
module_name
interface_name
cansetup
-h
cansetup
-v
DESCRIPTION
cansetup will initalise an CAN interface so
that it can be used as an interface to a NMEA2000 network.
Note: It need root permissions to load modules and change the CAN baudrate.
The program accepts the following options:
-h
Display brief help text.
-v
Display version of cansetup.
-n
Set the network number. The default is 0.
-s
Set the baudrate to communicate with the serial line CAN hardware. The default is 38400 baud.
The parameter module_name is mandatory.
The socket can driver module module_name.ko will be loaded.
cansetup recognize the following module names:
plx_pci
esd_usb2
vcan
slcan
The parameter interface_name and -s speed
can used here.
beaglebone
The module dcan needed for the beaglebone ist part of the known linux kernels,
so no module is loaded here.
The parameter interface_name is needed for slcan hardware only.
It gives the name of the serial device the SL CAN hardware is connected. The default is /dev/ttyUSB0.
EXAMPLES
sudo cansetup plx_pci
Attempt to load the module plx_pci and initialise net 0 for
the connection to a NMEA2000 network. It will set the baudrate to 250kBits.
sudo cansetup -n 1 plx_pci
As above, but use net 1.
sudo cansetup -s 38400 slcan /dev/ttyUSB0
Attempt to load the module slcan and talk to the hardware with
38400 baud connected to port /dev/ttyUSB0.
cansetup -h
Display a brief help..
cansetup -v
Display version of cansetup.
BUGS
Not known.
SEE ALSO
gpsd8,
gps1,
libgps3,
libgpsd3.
AUTHOR
Reinhard Arlt reinhard.arlt@t-online.de.