Lines Matching refs:can

3 can.txt
38 5.1 can.ko module params
98 controller can be passed up to the network layer and on to the CAN
101 that any number of transport protocols can be loaded or unloaded
102 dynamically. In fact, the can core module alone does not provide any
104 protocol module. Multiple sockets can be opened at the same time,
105 on different or the same protocol module and they can listen/send
110 selects that protocol when opening the socket, and then can read and
165 For this reason a CAN-ID can be treated best as a kind of source address.
177 CAN-IDs can be done for specific CAN interfaces or for all(!) known
202 The Linux network devices (by default) just can handle the
209 some reason the SocketCAN core can do this task as a fallback solution.
229 reason the CAN interface driver can generate so called Error Message
230 Frames that can optionally be passed to the user application in the
233 creates an appropriate error message frame. Error messages frames can
238 described in the Linux header file "include/uapi/linux/can/error.h".
260 the socket, you can read(2) and write(2) from/to the socket or use
266 in include/linux/can.h:
331 perror("can raw socket read");
343 Writing CAN frames can be done similarly, with the write(2) system call:
387 The struct canfd_frame is defined in include/linux/can.h:
402 all structure elements can be used as-is - only the data[] becomes extended.
415 definitions are specified for CAN specific MTUs in include/linux/can.h :
434 sockets, include <linux/can/raw.h>.
438 The reception of CAN frames using CAN_RAW sockets can be controlled
441 The CAN filter structure is defined in include/linux/can.h:
453 The filter can be inverted in this semantic, when the CAN_INV_FILTER
497 both SFF frames with CAN ID 0x123 and EFF frames with 0xXXXXX123 can pass.
513 As described in chapter 3.3 the CAN interface driver can generate so
514 called Error Message Frames that can optionally be passed to the user
518 error condition CAN_ERR_MASK can be used as value for the error mask.
519 The values for the error mask are defined in linux/can/error.h .
531 functionality can be disabled (separately for each socket):
554 CAN FD support in CAN_RAW sockets can be enabled with a new socket option
559 Once CAN_RAW_FD_FRAMES is enabled the application can send both CAN frames
584 /* the content can be handled independently from the received MTU size */
602 or CAN FD frames and can process them the same way.
606 The CAN device MTU can be retrieved e.g. with a SIOCGIFMTU ioctl() syscall.
610 The CAN_RAW socket can set multiple CAN identifier specific filters that
630 This flag can be interpreted as a 'transmission confirmation' when the
639 Receive filters can be used to down sample frequent messages; detect events
643 Periodic transmission tasks of CAN frames or a sequence of CAN frames can be
645 possible transmit intervals can be altered.
651 defined in the linux/can/bcm.h include. The BCM message consists of a
666 at the beginning of section 4 and in the include/linux/can.h include. All
777 The timer values can be altered at runtime when only SET_TIMER is set.
781 Up to 256 CAN frames can be transmitted in a sequence in the case of a cyclic
818 than one CAN frames can be passed in a RX_SETUP configuration message. The
824 filters) can be added as array to the TX_SETUP BCM configuration message.
858 5.1 can.ko module params
862 invoked at can.ko module start time by default. This timer can be
871 receive lists, their filters and the count of filter matches can be
875 foo@bar:~$ cat /proc/net/can/rcvlist_all
894 Additional procfs files in /proc/net/can
903 protocol has to be defined in include/linux/can.h .
904 The prototypes and definitions to use the SocketCAN core can be
905 accessed by including include/linux/can/core.h .
914 For details see the kerneldoc documentation in net/can/af_can.c or
915 the source code of net/can/raw.c or net/can/bcm.c .
986 removal of vcan network devices can be managed with the ip(8) tool:
1000 to setup, configure and monitor CAN network devices. The user can then
1007 understand how to use them. The name of the module is can-dev.ko.
1013 "include/linux/can/netlink.h". CAN link support for the program "ip"
1014 of the IPROUTE2 utility suite is available and it can be used as shown
1019 $ ip link set can0 type can help
1020 Usage: ip link set DEVICE type can
1054 link/can
1055 can <TRIPLE-SAMPLING> state ERROR-ACTIVE restart-ms 100
1087 bit-timing can be defined by setting the "bitrate" argument.
1088 Optionally the "sample-point" can be specified. By default it's
1115 The CAN bit-timing parameters can always be defined in a hardware
1120 $ ip link set canX type can tq 125 prop-seg 6 \
1127 $ ip link set canX type can bitrate 125000
1134 constants can be used for that purpose. They are listed by the
1146 before you can start it to avoid error-prone default settings:
1148 $ ip link set canX up type can bitrate 125000
1152 bus-off recovery can be enabled by setting the "restart-ms" to a
1155 $ ip link set canX type can restart-ms 100
1161 $ ip link set canX type can restart
1181 The CAN netdevice driver capabilities can be distinguished by the network
1187 The CAN device MTU can be retrieved e.g. with a SIOCGIFMTU ioctl() syscall.
1188 N.B. CAN FD capable devices can also handle and send legacy CAN frames.
1196 within the configuration process the controller option "fd on" can be
1215 The ISO/non-ISO-mode can be altered by setting 'fd-non-iso {on|off}' for
1220 $ ip link set can0 up type can bitrate 500000 sample-point 0.75 \
1225 link/can promiscuity 0
1226 can <FD> state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 0
1238 can <FD,FD-NON-ISO> state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 0
1242 Please check the "Kconfig" file in "drivers/net/can" to get an actual