
42
AO-IBR117
User’s Manual
M.
CAN Test
•
Checking CAN GPIO
#config can pin to gpio
/home/root/testscript/can/memtool -32 0x20e0208 = 5
echo "106" > /sys/class/gpio/export
#config gpio to out mode
echo "out" > /sys/class/gpio/gpio106/direction
#set gpio to 1
echo 1 > /sys/class/gpio/gpio106/value
#set gpio to 1
echo 0 > /sys/class/gpio/gpio106/value
#config gpio to in mode
echo "in" > /sys/class/gpio/gpio106/direction
#get gpio value
ret0_0=`cat /sys/class/gpio/gpio106/value`
•
Testing CAN
#config can parrameter
ip link set can0 type can bitrate 125000 triple-sampling on
#enable can
ifconfig can0 up
#disable
ifconfig can0 down
#send data
cangen can0 &
#receive data
candump -n 10 can1 -T 5000
Содержание AO-IBR117
Страница 8: ...viii AO IBR117 User s Manual This page is intentionally left blank...
Страница 15: ...General Information AO IBR117 User s Manual 7 1 1 7 Dimensions Unit mm...
Страница 16: ...8 AO IBR117 User s Manual AO IBR117 Reference Heat Sink...
Страница 20: ...12 AO IBR117 User s Manual 2 3 Jumper Connector Locations on AO IBR117 Board diagram of AO IBR117...
Страница 39: ...31 Appendix This section provides the information of reference code...