==== STK CAN DIP switches ====
—- ARM architecture —-
STKA28
STKA53
STKA335x
STKA6x
STKA6ULx
STKA7x
STKA57xx
STKA8Xx
STKA8XxS
—- QorlQ Layerscape —-
STKLS102xA
STKLS1028A
root@MBaXXX:~ canconfig can<interface nr> bitrate <baudrate>
root@MBAXXX:~ canconfig can0 bitrate 500000
root@MBaXXX:~ candump can1& root@MBaXXX:~ cansend can0 <byte1> <byte2>
root@MBaXXX:~ candump can1& root@MBaXXX:~ cansend can0 0xte 0xst
DIP switch SW1 and SW2 is used to configure the CAN interfaces CAN1 and CAN2.
root@MBaXXX:~ ip link show output: 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: can0: <NOARP,ECHO> mtu 16 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 10 link/can 3: can1: <NOARP,ECHO> mtu 16 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 10 link/can
root@MBaXXX:~ ip link set can0 up root@MBaXXX:~ ip link set can1 up
root@MBaXXX:~ ip link set can0 down root@MBaXXX:~ ip link set can1 down root@MBaXXX:~ ip link set can0 type can bitrate <baudrate> root@MBaXXX:~ ip link set can1 type can bitrate <baudrate>
root@MBaXXX:~ ip link set can0 down root@MBaXXX:~ ip link set can1 down
root@MBaXXX:~ ip link set can0 type can bitrate 500000 root@MBaXXX:~ ip link set can1 type can bitrate 500000
root@MBaXXX:~ ip link set can0 up root@MBaXXX:~ ip link set can1 up
root@MBaXXX:~ candump can1& root@MBaXXX:~ cansend can0 5A1#11.2233.44556677.88 output: root@tqma8xqp-mba8xx:~# can1 5A1 [8] 11 22 33 44 55 66 77 88
root@MBaXXX:~ killall candump root@MBaXXX:~ candump can0& root@MBaXXX:~ cansend can1 5A1#11.2233.44556677.88 output: root@tqma8xqp-mba8xx:~# can0 5A1 [8] 11 22 33 44 55 66 77 88
DIP switch S3 is used to configure the CAN interfaces CAN1 and CAN2.
root@MBaXXX:~ ip link show output: 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: can0: <NOARP,ECHO> mtu 16 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 10 link/can 3: can1: <NOARP,ECHO> mtu 16 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 10 link/can
root@MBaXXX:~ ip link set can0 up root@MBaXXX:~ ip link set can1 up
root@MBaXXX:~ ip link set can0 down root@MBaXXX:~ ip link set can1 down root@MBaXXX:~ ip link set can0 type can bitrate <baudrate> root@MBaXXX:~ ip link set can1 type can bitrate <baudrate>
root@MBaXXX:~ ip link set can0 down root@MBaXXX:~ ip link set can1 down
root@MBaXXX:~ ip link set can0 type can bitrate 500000 root@MBaXXX:~ ip link set can1 type can bitrate 500000
root@MBaXXX:~ ip link set can0 up root@MBaXXX:~ ip link set can1 up
root@MBaXXX:~ candump can1& root@MBaXXX:~ cansend can0 5A1#11.2233.44556677.88 output: root@tqma8xqp-mba8xx:~# can1 5A1 [8] 11 22 33 44 55 66 77 88
root@MBaXXX:~ killall candump root@MBaXXX:~ candump can0& root@MBaXXX:~ cansend can1 5A1#11.2233.44556677.88 output: root@tqma8xqp-mba8xx:~# can0 5A1 [8] 11 22 33 44 55 66 77 88
DIP switch S13 is used to configure the CAN interfaces CAN1 and CAN2.
root@MBaXXX:~ ip link show output: 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: can0: <NOARP,ECHO> mtu 16 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 10 link/can 3: can1: <NOARP,ECHO> mtu 16 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 10 link/can
root@MBaXXX:~ ip link set can0 up root@MBaXXX:~ ip link set can1 up
root@MBaXXX:~ ip link set can0 down root@MBaXXX:~ ip link set can1 down root@MBaXXX:~ ip link set can0 type can bitrate <baudrate> root@MBaXXX:~ ip link set can1 type can bitrate <baudrate>
root@MBaXXX:~ ip link set can0 down root@MBaXXX:~ ip link set can1 down
root@MBaXXX:~ ip link set can0 type can bitrate 500000 root@MBaXXX:~ ip link set can1 type can bitrate 500000
root@MBaXXX:~ ip link set can0 up root@MBaXXX:~ ip link set can1 up
root@MBaXXX:~ candump can1& root@MBaXXX:~ cansend can0 5A1#11.2233.44556677.88 output: root@tqma8xqp-mba8xx:~# can1 5A1 [8] 11 22 33 44 55 66 77 88
root@MBaXXX:~ killall candump root@MBaXXX:~ candump can0& root@MBaXXX:~ cansend can1 5A1#11.2233.44556677.88 output: root@tqma8xqp-mba8xx:~# can0 5A1 [8] 11 22 33 44 55 66 77 88