[WP760x][SW] How to control as GPIO in unused IF

Back Ground:
You recommend that unused IF can be used as GPIO function.


[Sierra Answer]
If just one GPIO is missing, how about using the previous recommendation to control UART2 RTS/CTS pins just like what we suggest in the forum for UART1?
i.e.

  1. using linux generic API ioctl() to control UART2_CTS which is stated as output pin in PTS.
  2. using AT command “AT!entercnd=“A710”;!BSGPIO?14” to read the UART2_RTS status which is stated as input pin in PTS.

We try to control as GPIO function in UART2 IF, but we don’t know the way how to set AT command/legato command to operate it.

Question:
Could you tell me AT command and legato command how to set, in order to control as GPIO function in UART2 IF?

According to Product technical specification, this is not allowed to change UART2 as GPIO.

Hi, jyijyi

First, according to the following SFDC, UART2 can be used as GPIO function if the customer did not use UART2 IF.
And you recommend to operate AT command or ioctl() to fulfill it.

https://partnercommunity.sierrawireless.com/s/case/5001M00001PFDQxQAP/00933578-wp7605hw-increase-gpio-function-instead-of-unused-ifs

Is my understanding correct?

Currently, we are insufficient GPIO pin total 2, so could you tell me your advise to increase GPIO pin?

yes, you can use AT command or ioctl() to have one more input and one more output.

yes, you can use AT command or ioctl() to have one more input and one more output.

“one more input and one more output” means that UART2 can be used to control the value via UART2_RTS(Input) and UART2_CTS(Output), like a GPIO?

Yes, you are correct.

Make sense, so could you tell me command to control UART2_RTS as general input and UART2_CTS as general output?

UART2_RTS:
(1) AT!ENTERCND=“A710”
(2) ??

UART2_CTS:
(1() ioctl()??

==> I would like to know the parameter and sequence as above exactly.

UART2_RTS:
(1) AT!ENTERCND=“A710”
(2) using AT command “AT!entercnd=“A710”;!BSGPIO?14” to read the UART2_RTS status which is stated as input pin in PTS.

UART2_CTS:
Please see the example here which is using UART1:

You just need to change the opened port to /dev/ttyHS1 for UART2 in Component.cdef and UART_Test1.c line 240. ( of course you need to change UART2 to data mode by AT!MAPUART=17,2)