You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PPP connection has been opened automatically when AT+CFUN=1 is done and
PDN has been activated even without PPP request using AT#XPPP=1.
This is now changed so you need to issue AT#XPPP=1
in order to start PPP. This can be done before or after AT+CFUN=1.
Jira: SLM-85
Signed-off-by: Tommi Rantanen <tommi.rantanen@nordicsemi.no>
Copy file name to clipboardExpand all lines: doc/app/PPP_AT_commands.rst
+8-20Lines changed: 8 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,9 +31,7 @@ The set command allows you to start and stop PPP, and optionally define the PDN
31
31
32
32
.. note::
33
33
34
-
PPP is automatically started and stopped by |SM| when the PDN connection requested for PPP
35
-
is established and lost, respectively.
36
-
This happens even if PPP has previously been stopped or started with this command.
34
+
PPP connection only needs to be started once, and then it is automatically started and stopped by |SM| when the PDN connection requested for PPP is established and lost, respectively.
37
35
38
36
Syntax
39
37
~~~~~~
@@ -77,22 +75,12 @@ PPP with default PDN connection:
77
75
78
76
::
79
77
80
-
AT+CFUN=1
81
-
82
-
OK
83
-
84
-
// PPP is automatically started when the default PDN is activated.
85
-
#XPPP: 1,0,0
86
-
87
-
// Stop PPP.
88
-
AT#XPPP=0
78
+
// Start PPP.
79
+
AT#XPPP=1
89
80
90
81
OK
91
82
92
-
#XPPP: 0,0
93
-
94
-
// Start PPP.
95
-
AT#XPPP=1
83
+
AT+CFUN=1
96
84
97
85
OK
98
86
@@ -113,7 +101,7 @@ PPP with default PDN connection:
113
101
114
102
OK
115
103
116
-
#XPPP: 0,0
104
+
#XPPP: 0,0,0
117
105
118
106
PPP with non-default PDN connection:
119
107
@@ -172,8 +160,8 @@ If you are using CMUX, see :ref:`sm_as_linux_modem` for more information on sett
172
160
173
161
For the process described here, |SM|'s UARTs must be connected to the Linux host.
174
162
175
-
1. Get PPP running on |SM|.
176
-
To do this, start |SM| and issue an ``AT+CFUN=1`` command.
163
+
1. Start PPP with ``AT#XPPP=1`` command.
164
+
#. Set modem to online mode with ``AT+CFUN=1`` command.
177
165
#. Wait for ``#XPPP: 1,0,0``, which is sent when the network registration succeeds and PPP has started successfully with the default PDN connection.
178
166
#. Run the following command on the Linux host:
179
167
@@ -184,7 +172,7 @@ For the process described here, |SM|'s UARTs must be connected to the Linux host
184
172
Replace ``<PPP_UART_dev>`` by the device file assigned to the PPP UART and ``<baud_rate>`` by the baud rate of the UART that PPP is using (which is set in the :file:`overlay-ppp-without-cmux.overlay` file).
185
173
Typically, when ``uart1`` is assigned to be the PPP UART (in the devicetree overlay), the device file assigned to it is :file:`/dev/ttyACM2` for an nRF9160 DK, and :file:`/dev/ttyACM1` for the other nRF91 Series DKs.
186
174
187
-
#. After the PPP link negotiation has completed successfully, a new network interface will be available, typically ``ppp0``.
175
+
#. After the PPP link negotiation has completed successfully, |SM| will send ``#XPPP: 1,1,0`` notification over UART, and a new network interface will be available, typically ``ppp0``.
188
176
This network interface will allow sending and receiving IP traffic through the modem of the nRF91 Series SiP running |SM|.
Copy file name to clipboardExpand all lines: doc/migration_notes.rst
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,11 @@ The following changes are mandatory to make your application work in the same wa
55
55
* Removed the ``AT#XPOLL`` command.
56
56
Use ``AT#XAPOLL`` instead.
57
57
58
+
* PPP connection must be requested with ``AT#XPPP=1`` in order to get it started when modem is put to online mode with ``AT+CFUN=1``.
59
+
``AT#XPPP=1`` can be done before or after ``AT+CFUN=1``.
60
+
So PPP connection is not started automatically anymore when ``AT+CFUN=1`` is done.
61
+
However, ``AT#XPPP=1`` needs to be done only once and after that PPP is started when ``AT+CFUN=1`` is done and stopped when ``AT+CFUN=4`` or ``AT+CFUN=0`` is done.
0 commit comments