summaryrefslogtreecommitdiffstats
path: root/canconfig.8
blob: c02247a0a4b4260a126bd0f5b48a6b61bc109554 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
.TH CANCONFIG 8 "13 March 2005" "canutils" "Linux Programmer's Manual"
.SH NAME
canconfig \- configure a CAN bus interface
.SH SYNOPSIS
.B "canconfig <interface>"
.br
.B "canconfig <interface> baudrate { BR | BTR }"
.br
.B "canconfig <interface> mode MODE"
.br
.B "canconfig <interface> state"
.SH DESCRIPTION
canconfig is used to configure the kernel-resident CAN (Controller Area Network)
interfaces. As CAN cards are network devices the basic configuration
options can be done with ifconfig. 

.SH ARGUMENTS
.TP
.B interface
The name of the interface. This is usually a driver name followed by
a unit number, for example "can0". 
.TP
.B baudrate
The baudrate of the CAN interface can be set with a simple and complex
method, which are chosen by using BR or BTR with the "baudrate" command. 
.br

.B BR: 
The baudrate of the interface can be set to one of the standard baud
rates by setting a BR value. Example: 

	canconfig can0 baudrate 125

to set the interface can0 to 125 kBit/s. The standard baudrates are 10,
20, 50, 100, 125, 250, 500, 800 and 1000 kBit/s.
.br

.B BTR: 
The CAN standard defines a second way for setting the baudrate, which
uses a set of Bit Timing Registers (BTR). The number of and exact
meaning of the BTR registers is chip dependend, so this interface offers
the possibility to handle three BTR registers directly to the driver: 

	canconfig can0 baudrate btr <brt1> <btr2> <btr3>

.TP
.B mode
This command sets the CAN controller into "start" mode. Example: 

	canconfig can0 mode start

.TP
.B state
This command lets you ask for the interface status. 
.br
.SH SEE ALSO
- ifconfig(8)
.br
- http://www.pengutronix.de/software/socket-can/ (Socket-CAN Project)
.SH AUTHORS
Robert Schwebel <r.schwebel@pengutronix.de>