Generic AT commands¶
The following commands list contains generic AT commands.
SLM version #XSLMVER¶
The #XSLMVER
command requests the SLM version.
Set command¶
The set command requests the SLM version.
Syntax¶
#XSLMVER
Response syntax¶
#XSLMVERSION: <version>
The <version>
value returns a string containing the SLM version.
Read command¶
The read command is not supported.
Test command¶
The test command is not supported.
SLM proprietary command list #XCLAC¶
The #XCLAC
command requests the list of the proprietary SLM commands.
Set command¶
The set command requests the list of the proprietary SLM commands.
It is an add-on for AT+CLAC
, which lists all modem AT commands.
Syntax¶
#XCLAC
Response syntax¶
<command list>
The <command list>
value returns a list of values representing all the #X*
commands followed by <CR><LF>.
Example¶
at#xclac
AT#XSLMVER
AT#XSLEEP
AT#XCLAC
AT#XSOCKET
AT#XBIND
AT#XCONNECT
AT#XSEND
AT#XRECV
AT#XSENDTO
AT#XRECVFROM
AT#XPING
AT#XGPS
OK
Read command¶
The read command is not supported.
Test command¶
The test command is not supported.
Power saving #XSLEEP¶
The #XSLEEP
command makes the nRF91 development kit go into idle or sleep mode.
If you are going to do power measurements on the nRF9160 DK while running the SLM application it is recommended to disable unused peripherals.
By default UART2 is enabled in the nrf9160dk_nrf9160_ns.overlay
file so disable the UART2 by switching the status.
Change the line status = "okay"
to status = "disabled"
and then save the nrf9160dk_nrf9160_ns.overlay`
file to make sure you will get the expected power consumption numbers when doing the measurements.
Set command¶
The set command makes the nRF91 development kit go into either idle or sleep mode, or it powers off the UART device.
Syntax¶
#XSLEEP=<shutdown_mode>
The <shutdown_mode>
parameter accepts only the following integer values:
0
- Enter Idle. In this mode, the SLM service is terminated, but the LTE connection is maintained.1
- Enter Sleep. In this mode, both the SLM service and the LTE connection are terminated.2
- Power off UART. In this mode, both the SLM service and the LTE connection are maintained.In case of Idle, it will exit by interface GPIO.
In case of Sleep, it will wake up by interface GPIO.
In case of UART power off, UART will be powered on by interface GPIO or internally by SLM when needed.
Read command¶
The read command is not supported.
Test command¶
The test command tests the existence of the AT command and provides information about the type of its subparameters.
Syntax¶
#XSLEEP=?
Response syntax¶
#XSLEEP: <list of shutdown_mode>
Example¶
#XSLEEP: (0,1,2)
OK
SLM UART #XSLMUART¶
The #XSLMUART
command manages the UART settings.
Set command¶
The set command changes the UART baud rate and hardware flow control settings. These settings are stored in the flash memory and applied during the application startup.
Syntax¶
#XSLMUART[=<baud_rate>,<hwfc>]
The <baud_rate>
parameter is an integer.
It accepts the following values:
1200
- 1200 bps2400
- 2400 bps4800
- 4800 bps9600
- 9600 bps14400
- 14400 bps19200
- 19200 bps38400
- 38400 bps57600
- 57600 bps115200
- 115200 bps230400
- 230400 bps460800
- 460800 bps921600
- 921600 bps1000000
- 1000000 bps
Its default value is 115200
.
When not specified, it is set to the last value set for the variable and stored in the flash memory.
If there is no value stored for the variable, it is set to its default value.If not specified , will use previous value.
The <hwfc>
parameter accepts the following integer values:
0
- Disable UART hardware flow control.1
- Enable UART hardware flow control. In this mode, SLM configures both the RTS and the CTS pins according to the device-tree file.
Its default value is 1
.
When not specified, it is set to the last value set for the variable and stored in the flash memory.
If there is no value stored for the variable, it is set to its default value.
Response syntax¶
There is no response.
Example¶
AT#XSLMUART=1000000,1
OK
Read command¶
The read command shows the current UART settings.
Syntax¶
AT#XSLMUART?
Response syntax¶
#XSLMUART: <baud_rate>,<hwfc>
Example¶
AT#XSLMUART?
#XSLMUART: 115200,1
OK
Test command¶
The test command tests the existence of the AT command and provides information about the type of its subparameters.
Syntax¶
#XSLMUART=?
Response syntax¶
#XSLMUART: (list of the available baud rate options),(disable or enable hwfc)
Example¶
AT#XSLMUART=?
#XSLMUART: (1200,2400,4800,9600,14400,19200,38400,57600,115200,230400,460800,921600,1000000),(0,1)
Device UUID #XUUID¶
The #XUUID
command requests the device UUID.
Set command¶
The set command returns the device UUID.
Syntax¶
#XUUID
Response syntax¶
#XUUID: <device-uuid>
The <device-uuid>
value returns a string indicating the UUID of the device.
Example¶
AT#XUUID
#XUUID: 50503041-3633-4261-803d-1e2b8f70111a
OK
Read command¶
The read command is not supported.
Test command¶
The test command is not supported.