SBC-EC9100 User Manual
Embest Technology Co. Ltd
|
http://www.embest-tech.com
16
41 54 31 32 33 34 35 36 37 38 39 58 59 5a 61 62 63 64 65 64 66 68 69 6a 6b 6c 6d 6e 0d 00 fb
******* receive data 135667 pkts...0 bytes........
Then switch the execute instruction.
2.10
CAN
Connect CAN0 with CAN1 by connect Pin 33 to Pin 34, Pin 35 to Pin 36 in J9.
Test method as below:
1. Open CAN0 CAN1
root@embest:~# ip link set can0 type can bitrate 50000 triple-sampling on
root@embest:~# ip link set can1 type can bitrate 50000 triple-sampling on
root@embest:~# ip link set can0 up
flexcan 2090000.can can0: writing ctrl=0x27292085
root@embest:~# ip link set can1 up
flexcan 2094000.can can1: writing ctrl=0x27292085
2. Send and Receive
CAN1 receive data, CAN0 send data to CAN1, if the following info printed, the test passes:
root@embest:~# candump can1&
[4] 589
root@embest:~# cansend can0 123#01020304050607
can1 123 [7] 01 02 03 04 05 06 07
Use show command to check the status of CAN.
CAN0 Tx added 1 packet, 7 bytes. CAN1 Rx added 1 packet, 7 bytes.
root@embest:~# ip -d -s link show can0
2: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 576 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default
qlen 10
link/can promiscuity 0
can <TRIPLE-SAMPLING> state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 0
bitrate 50000 sample-point 0.866
tq 1333 prop-seg 6 phase-seg1 6 phase-seg2 2 sjw 1
flexcan: tseg1 4..16 tseg2 2..8 sjw 1..4 brp 1..256 brp-inc 1
clock 30000000
re-started bus-errors arbit-lost error-warn error-pass bus-off