User Manual

Table Of Contents
SARA-R4 series-AT commands manual
UBX-17003787 - R16
16GPIO
Page 193 of 401
16.2.2Syntax
Type Syntax Response Example
Set AT+UGPIOC=<gpio_id>,<gpio_
mode>[,<gpio_out_val>\<gpio_in_
pull>]
OK AT+UGPIOC=20,0,1
OK
Read AT+UGPIOC? +UGPIOC:
<gpio_id>,<gpio_mode>
[<gpio_id>,<gpio_mode>
[....]]
OK
+UGPIOC:
20,0
21,3
23,255
24,255
42,7
OK
Test AT+UGPIOC=? +UGPIOC: (list of supported <gpio_
id>),(list of supported <gpio_
mode>),(list of supported <gpio_
out_val>\<gpio_in_pull>)
[<gpio_id1>,<gpio_mode>
...
<gpio_idN>,<gpio_mode>]
OK
+UGPIOC: (20,21,23,24,42),(0-5,7,9,
255),(0-2)
OK
16.2.3Defined values
Parameter Type Description
<gpio_id> Number GPIO pin identifier: pin number
See the GPIO mapping for the available GPIO pins, their mapping and factory-
programmed values on different u-blox cellular modules series and product version.
<gpio_mode> Number Mode identifier: configured function
See the GPIO functions for custom functions supported by different u-blox cellular
modules series and product version.
Allowed values:
0: output
1: input
2: network status indication
3: external GNSS supply enable
4: external GNSS data ready
5: external GNSS RTC sharing
6: jamming detection indication
7: SIM card detection
8: headset detection
9: GSM Tx burst indication
10: module status indication
11: module operating mode indication
12: I
2
S digital audio interface
13: SPI serial interface
14: master clock generation
15: UART (DSR, DTR, DCD e RI) interface
16: Wi-Fi enable
18: ring indicator
19: last gasp
20: external GNSS antenna / LNA control enable
21: time pulse GNSS
22: time pulse modem
23: time stamp of external interrupt
24: fast power-off