can-j1939: remove trailing whitespace
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>pull/66/head
parent
680d5c30c3
commit
d4fe7170e8
|
|
@ -170,11 +170,11 @@ emits:
|
||||||
18EBFF80#03CDEF01234567
|
18EBFF80#03CDEF01234567
|
||||||
|
|
||||||
The fragments for broadcasted *Transport Protocol* are seperated
|
The fragments for broadcasted *Transport Protocol* are seperated
|
||||||
__50ms__ from each other.
|
__50ms__ from each other.
|
||||||
Destination specific *Transport Protocol* applies flow control
|
Destination specific *Transport Protocol* applies flow control
|
||||||
and may emit CAN packets much faster.
|
and may emit CAN packets much faster.
|
||||||
|
|
||||||
First assign 0x90 to the local system.
|
First assign 0x90 to the local system.
|
||||||
This becomes important because the kernel must interact in the
|
This becomes important because the kernel must interact in the
|
||||||
transport protocol sessions before the complete packet is delivered.
|
transport protocol sessions before the complete packet is delivered.
|
||||||
|
|
||||||
|
|
@ -204,8 +204,8 @@ This overhead scales very good for larger J1939 packets.
|
||||||
./testj1939 -s -p3 can0:0x80,0x0200
|
./testj1939 -s -p3 can0:0x80,0x0200
|
||||||
|
|
||||||
emits
|
emits
|
||||||
|
|
||||||
1801FF80#0123456789ABCDEF
|
1801FF80#0123456789ABCDEF
|
||||||
0C02FF80#0123456789ABCDEF
|
0C02FF80#0123456789ABCDEF
|
||||||
|
|
||||||
### using connect
|
### using connect
|
||||||
|
|
@ -213,4 +213,3 @@ emits
|
||||||
### advanced filtering
|
### advanced filtering
|
||||||
|
|
||||||
## dynamic addressing
|
## dynamic addressing
|
||||||
|
|
||||||
|
|
|
||||||
13
can-j1939.md
13
can-j1939.md
|
|
@ -23,7 +23,7 @@ See [Wikipedia:socketcan](http://en.wikipedia.org/wiki/Socketcan)
|
||||||
* PDU2: PGN
|
* PDU2: PGN
|
||||||
* 27..29: PRIO
|
* 27..29: PRIO
|
||||||
|
|
||||||
* SA / DA may be dynamically assigned via j1939-81
|
* SA / DA may be dynamically assigned via j1939-81
|
||||||
Fixed rules of precedence in Specification, no master necessary
|
Fixed rules of precedence in Specification, no master necessary
|
||||||
|
|
||||||
## J1939 on SocketCAN
|
## J1939 on SocketCAN
|
||||||
|
|
@ -41,7 +41,7 @@ SA, DA & PGN are used, not CAN id.
|
||||||
Berkeley socket API is used to communicate these to userspace:
|
Berkeley socket API is used to communicate these to userspace:
|
||||||
|
|
||||||
* SA+PGN is put in sockname ([getsockname](http://man7.org/linux/man-pages/man2/getsockname.2.html))
|
* SA+PGN is put in sockname ([getsockname](http://man7.org/linux/man-pages/man2/getsockname.2.html))
|
||||||
* DA+PGN is put in peername ([getpeername](http://man7.org/linux/man-pages/man2/getpeername.2.html))
|
* DA+PGN is put in peername ([getpeername](http://man7.org/linux/man-pages/man2/getpeername.2.html))
|
||||||
PGN is put in both structs
|
PGN is put in both structs
|
||||||
|
|
||||||
PRIO is a datalink property, and irrelevant for interpretation
|
PRIO is a datalink property, and irrelevant for interpretation
|
||||||
|
|
@ -107,14 +107,14 @@ This API is dropped for kernels with netlink support!
|
||||||
|
|
||||||
* *can_addr.j1939.pgn* is PGN
|
* *can_addr.j1939.pgn* is PGN
|
||||||
|
|
||||||
* *can_addr.j1939.addr* & *can_addr.j1939.name*
|
* *can_addr.j1939.addr* & *can_addr.j1939.name*
|
||||||
determine the ECU
|
determine the ECU
|
||||||
|
|
||||||
* receiving address information,
|
* receiving address information,
|
||||||
*addr* is always set,
|
*addr* is always set,
|
||||||
*name* is set when available.
|
*name* is set when available.
|
||||||
|
|
||||||
* When providing address information,
|
* When providing address information,
|
||||||
*name* != 0 indicates dynamic addressing
|
*name* != 0 indicates dynamic addressing
|
||||||
|
|
||||||
## iproute2 (obsolete!)
|
## iproute2 (obsolete!)
|
||||||
|
|
@ -129,4 +129,3 @@ for manipulating the kernel lists of current addresses.
|
||||||
### Dynamic addressing
|
### Dynamic addressing
|
||||||
|
|
||||||
ip addr add j1939 name 0x012345678abcdef dev can0
|
ip addr add j1939 name 0x012345678abcdef dev can0
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue