11
adb command:
Set the bitrate ( baud rate ) before all operations
Example: Set the bitrate of the can0 interface to 125kbps:
# ip link set can0 up type can bitrate 125000
Quick test
Once the driver is installed and the bitrate is set, the CAN interface has to be
started like a standard net interface:
# ifconfig can0 up
and can be stopped like that:
# ifconfig can0 down
The socketCAN version can be retrieved this way:
# cat /proc/net/can/version
The socketCAN statistics can be retrieved this way:
# cat /proc/net/can/stats
3-3 GPIO Interface
1
、
GPIO interface as shown below,
1. The File System Path of the Corresponding GPIO Device Node's Folder
The path of GPIO57 node's folder is
/sys/class/gpio/gpio57/
The path of GPIO82 node's folder is
/sys/class/gpio/gpio82/
The path of GPIO87 node's folder is
/sys/class/gpio/gpio87/
The path of GPIO92 node's folder is
/sys/class/gpio/gpio92/
The path of GPIO93 node's folder is
/sys/class/gpio/gpio93/
The path of GPIO191 node's folder is
/sys/class/gpio/gpio191/
The path of GPIO9 node's folder is
/sys/class/gpio/gpio9/
The path of GPIO171 node's folder is
/sys/class/gpio/gpio171/
The path of GPIO174 node's folder is
/sys/class/gpio/gpio174/
The path of GPIO175 node's folder is
/sys/class/gpio/gpio175/