Skip to content

Commit 66bb9d9

Browse files
trantanenrlubos
authored andcommitted
library: modem_slm: Document 'slmsh' command
PR #21081 added 'slmsh' command for host side operations. This PR documents it. Signed-off-by: Tommi Rantanen <[email protected]>
1 parent 25d378b commit 66bb9d9

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

doc/nrf/libraries/modem/modem_slm.rst

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ The library sends the termination character automatically after an AT command.
6666
Shell usage
6767
***********
6868

69-
To send AT commands in shell, use the following syntax:
69+
SLM
70+
---
71+
72+
Send AT commands for SLM in shell:
7073

7174
.. code-block:: console
7275
@@ -83,6 +86,27 @@ To send AT commands in shell, use the following syntax:
8386
8487
SLM accepts AT command characters in upper, lower, or mixed case.
8588

89+
Host
90+
----
91+
92+
Use ``slmsh`` command to see commands for the Modem SLM library functions.
93+
94+
Request toggling of the power pin from the Modem SLM library to put the SLM device to sleep and then wake it up:
95+
96+
.. code-block:: console
97+
98+
uart:~$ slmsh powerpin
99+
[00:00:17.973,510] <inf> mdm_slm: Enable power pin
100+
[00:00:18.078,887] <inf> mdm_slm: Disable power pin
101+
102+
uart:~$ slmsh powerpin
103+
[00:00:33.038,604] <inf> mdm_slm: Enable power pin
104+
[00:00:33.143,951] <inf> mdm_slm: Disable power pin
105+
Ready
106+
107+
[00:00:34.538,513] <inf> app: Data received (len=7): Ready
108+
uart:~$
109+
86110
SLM Monitor usage
87111
*****************
88112

0 commit comments

Comments
 (0)