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.
Enabled CONFIG_MODEM_BACKEND_UART_ASYNC_HWFC forgotten in PR #6.
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
+10-22Lines changed: 10 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,9 +31,8 @@ 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
+
When a PPP start has been issued, the PPP connection is automatically activated and deactivated when the PDN connection requested for PPP is established and lost, respectively.
35
+
This will continue until a PPP stop is issued.
37
36
38
37
Syntax
39
38
~~~~~~
@@ -77,22 +76,12 @@ PPP with default PDN connection:
77
76
78
77
::
79
78
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
79
+
// Start PPP.
80
+
AT#XPPP=1
89
81
90
82
OK
91
83
92
-
#XPPP: 0,0
93
-
94
-
// Start PPP.
95
-
AT#XPPP=1
84
+
AT+CFUN=1
96
85
97
86
OK
98
87
@@ -113,7 +102,7 @@ PPP with default PDN connection:
113
102
114
103
OK
115
104
116
-
#XPPP: 0,0
105
+
#XPPP: 0,0,0
117
106
118
107
PPP with non-default PDN connection:
119
108
@@ -125,8 +114,7 @@ PPP with non-default PDN connection:
125
114
126
115
OK
127
116
128
-
// Start PPP with the created PDN connection. This must be before AT+CFUN=1 command or
129
-
// otherwise PPP will be started for the default PDN connection.
117
+
// Start PPP with the created PDN connection.
130
118
AT#XPPP=1,1
131
119
132
120
OK
@@ -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 the ``AT#XPPP=1`` command.
164
+
#. Set modem to online mode with the ``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
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,12 @@ The following changes are mandatory to make your application work in the same wa
57
57
* Removed the ``AT#XPOLL`` command.
58
58
Use ``AT#XAPOLL`` instead.
59
59
60
+
* PPP connection must be requested using the ``AT#XPPP=1`` command to get it started when the modem is put into online mode using the ``AT+CFUN=1`` command.
61
+
The ``AT#XPPP=1`` command can be run before or after the ``AT+CFUN=1`` command.
62
+
So PPP connection is not started automatically anymore when the ``AT+CFUN=1`` command is run.
63
+
After the ``AT#XPPP=1`` command is run, the PPP connection is started when the ``AT+CFUN=1`` command is run and stopped when network is lost (for example, with ``AT+CFUN=4`` or ``AT+CFUN=0``).
64
+
When the ``AT#XPPP=0`` command is run, the PPP connection is stopped permanently.
0 commit comments