Sierra Wireless FX30 User Manual page 67

Hide thumbs Also See for FX30:
Table of Contents

Advertisement

Table C-2: FX30 AT Commands
Command
AT!FWD?GPIOCFG
Displays the direction and pull settings
for exported GPIOs, as read from
sysfs.
If the GPIO is not exported, this
command reports "NOT SET". It does
not export the GPIO.
AT!FWD=GPIOCFG
Configures the direction and optionally
the pull setting for any configurable
GPIO.
This command exports a GPIO if it is
not currently exported.
Setting is runtime configurable only—
this setting is NOT persistent through
reboot.
Rev 4 March 2019
To query:
AT!FWD?GPIOCFG,<GPIO #>
where <GPIO #> is any available GPIO, i.e. 2,7,8,13,21–25,32–58
Returned values are:
NOT SET (if GPIO has not been exported)
DIRECTION: <IN|OUT>
PULL: <UP|DOWN> (if GPIO has been exported)
ERROR (if invalid GPIO #)
Example:
AT!FWD?GPIOCFG,2
DIRECTION: IN
PULL: UP
OK
AT!FWD?GPIOCFG,8
NOT SET
OK
AT!FWD?GPIOCFG,10
ERROR
To set:
AT!FWD=GPIOCFG,<GPIO #>,<direction>[,<pull>]
AT!FWD=GPIOCFG,<GPIO #>,<direction>[,<value>]
where:
<GPIO #> is any configurable GPIO 8,13,25,33,42
<direction> is either IN or OUT (case insensitive)
<pull> (optional) is either UP or DOWN (case insensitive) and only valid if
<direction> is IN
<value> (optional) is either 0 or 1 to set the initial output value of the pin; it
is only valid if <direction> is OUT. If omitted, a default value of 0 is used.
Returned values are:
OK (if GPIO is configured as requested)
ERROR (if invalid GPIO #, direction or optional pull or value)
Example:
AT!FWD=GPIOCFG,8,OUT
OK
AT!FWD=GPIOCFG,8,OUT,1
OK
AT!FWD=GPIOCFG,13,IN,UP
OK
AT!FWD=GPIOCFG,8,INPUT
ERROR
67
AT Commands Reference
Description
41110030

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents