Users Guide
NOTE: cctk serial1 is mapped to IOIO2; cctk serial2 is mapped to IOIO1.
2. Adjust the port settings.
# sudo stty -F /dev/serial-port-ioio2 ispeed 115200 ospeed 115200 -echo -onlcr -ixon -
ixoff
3. Send data.
(root)# echo abcdefg > /dev/serial-port-ioio2
4. Read data on the second device.
(root)# cat /dev/serial-port-ioio2
GPIO
NOTE: For more information on GPIO sysfs interface, see kernel.org/doc/Documentation/gpio/sysfs.txt.
The GPIO connector (AD5593R) on the Edge Gateway 3001 has 8 pins. The connector can controlled by the standard Linux
GPIO interface. The GPIOs number maps 330 to 337.
1. Pin: GPIO1
2. Pin: GPIO8
3. ISO GND: Isolated grounds
Example 1: Set GPIO 1 as output, value as 1
$ echo 330 > /sys/class/gpio/export
$ echo out > /sys/class/gpio/gpio330/direction
$ echo 1 > /sys/class/gpio/gpio330/value
Example 2: Set GPIO 8 as input, and read value
$ echo 337 > /sys/class/gpio/export
$ echo out > /sys/class/gpio/gpio337/direction
$ cat /sys/class/gpio/gpio337/value
0
Example 3: Connect GPIO 1 to 8, read GPIO 8 pin value
$ cat /sys/class/gpio/gpio337/value
1
Setting up the operating system
75