[WP7605][Kernel] How to make ioctl() exe program to check 8-wire UART in CN600 of mangOH Green

Back Ground:

Regarding to the above topic, we would like to check this 8-wire UART function by using CN600 in mangOH GREEN board.
First of all, we’re not sure how to create exe program to check 8-wire UART operation via CN600.

Could you please provide any advise how to check 8-wire UART operation via CN600 in mangOH GREEN?
If we should create new source code that executed ioctl(), we would like to know the detail of C source and Adef code.

Best Regards,

— Hiroki

You can control the DTR/DCD/DSR like the following:

echo 101 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio101/direction
echo 1 > /sys/class/gpio/gpio101/value

echo 102 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio102/direction
echo 1 > /sys/class/gpio/gpio102/value

echo 103 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio103/direction
echo 1 > /sys/class/gpio/gpio103/value

//setting DTR/DCD/DSR to low
echo 0 > /sys/class/gpio/gpio101/value
echo 0 > /sys/class/gpio/gpio102/value
echo 0 > /sys/class/gpio/gpio103/value

You can use multimeter to verify on cn600.

Hi, jyijyi

Thank you for the answering, I confirmed it about GPIO control.

Next, I would like to check whether 8-wire UART1 can be worked by ioctl(), instead of GPIO control.
So could you please advise the way to test ioctl()?

Please contact FAE for the test build with fix of ioctl().