42
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
Summary of Contents for IBR117
Page 1: ...IBR117 3 5 ARM based SBC With NXP Cortex A9 Dual Core i MX6 User s Manual Version 1 0 May 2018...
Page 8: ...viii IBR117 User s Manual This page is intentionally left blank...
Page 15: ...General Information IBR117 User s Manual 7 1 1 7 Dimensions Unit mm...
Page 16: ...8 IBR117 User s Manual IBR117 Reference Heat Sink...
Page 20: ...12 IBR117 User s Manual 2 3 Jumper Connector Locations on IBR117 Board diagram of IBR117...
Page 39: ...31 Appendix This section provides the information of reference code...