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
Add support for selecting PDN used with PPP connection
into #XPPP command. E.g., AT#XPPP=1,1 for enabling PPP
for PDP context with CID 1.
Jira: LRCS-149
Signed-off-by: Tommi Rantanen <[email protected]>
Copy file name to clipboardExpand all lines: applications/serial_lte_modem/doc/PPP_AT_commands.rst
+55-22Lines changed: 55 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,53 +27,62 @@ Control PPP #XPPP
27
27
Set command
28
28
-----------
29
29
30
-
The set command allows you to start and stop PPP.
30
+
The set command allows you to start and stop PPP, and optionally define the PDN connection used for PPP.
31
31
32
32
.. note::
33
33
34
-
PPP is automatically started and stopped by SLM when the default PDN connection is established and lost, respectively.
34
+
PPP is automatically started and stopped by SLM when the PDN connection requested for PPP
35
+
is established and lost, respectively.
35
36
This happens even if PPP has previously been stopped or started with this command.
36
37
37
38
Syntax
38
39
~~~~~~
39
40
40
41
::
41
42
42
-
#XPPP=<op>
43
+
#XPPP=<op>[,<cid>]
43
44
44
45
* The ``<op>`` parameter can be the following:
45
46
46
47
* ``0`` - Stop PPP.
47
48
* ``1`` - Start PPP.
48
49
50
+
* The ``<cid>`` parameter is an integer indicating the PDN connection to be used for PPP.
51
+
It represents ``cid`` in the ``+CGDCONT`` command.
52
+
Its default value is ``0``, which represents the default PDN connection.
53
+
49
54
Unsolicited notification
50
55
~~~~~~~~~~~~~~~~~~~~~~~~
51
56
52
57
.. slm_ppp_status_notif_start
53
58
54
59
::
55
60
56
-
#XPPP: <running>,<peer_connected>
61
+
#XPPP: <running>,<peer_connected>,<cid>
57
62
58
63
* The ``<running>`` parameter is an integer that indicates whether PPP is running.
59
64
It is ``1`` for running or ``0`` for stopped.
60
65
61
66
* The ``<peer_connected>`` parameter is an integer that indicates whether a peer is connected to PPP.
62
67
It is ``1`` for connected or ``0`` for not connected.
63
68
69
+
* The ``<cid>`` parameter is an integer that indicates the PDN connection used for PPP.
70
+
64
71
.. slm_ppp_status_notif_end
65
72
66
-
Example
67
-
-------
73
+
Examples
74
+
--------
75
+
76
+
PPP with default PDN connection:
68
77
69
78
::
70
79
71
80
AT+CFUN=1
72
81
73
82
OK
74
83
75
-
// PPP is automatically started when the modem is registered to the network.
76
-
#XPPP: 1,0
84
+
// PPP is automatically started when the default PDN is activated.
85
+
#XPPP: 1,0,0
77
86
78
87
// Stop PPP.
79
88
AT#XPPP=0
@@ -87,25 +96,54 @@ Example
87
96
88
97
OK
89
98
90
-
#XPPP: 1,0
99
+
#XPPP: 1,0,0
91
100
92
101
// Have the peer connect to SLM's PPP.
93
-
#XPPP: 1,1
102
+
#XPPP: 1,1,0
94
103
95
104
// Peer disconnects.
96
-
#XPPP: 1,0
105
+
#XPPP: 1,0,0
97
106
98
107
// SLM restarts PPP automatically when peer disconnects.
99
-
#XPPP: 0,0
108
+
#XPPP: 0,0,0
100
109
101
-
#XPPP: 1,0
110
+
#XPPP: 1,0,0
102
111
103
112
AT+CFUN=4
104
113
105
114
OK
106
115
107
116
#XPPP: 0,0
108
117
118
+
PPP with non-default PDN connection:
119
+
120
+
::
121
+
122
+
// Exemplary PDN connection creation.
123
+
// Note: APN depends on operator and additional APNs may not be supported by the operator.
124
+
AT+CGDCONT=1,"IP","internet2"
125
+
126
+
OK
127
+
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.
130
+
AT#XPPP=1,1
131
+
132
+
OK
133
+
134
+
AT+CFUN=1
135
+
136
+
OK
137
+
138
+
// Activate the created PDN connection.
139
+
AT+CGACT=1,1
140
+
141
+
// PPP is automatically started when the PDN connection set for PPP has been activated.
142
+
#XPPP: 1,0,1
143
+
144
+
// Have the peer connect to SLM's PPP.
145
+
#XPPP: 1,1,1
146
+
109
147
Read command
110
148
------------
111
149
@@ -128,20 +166,15 @@ Response syntax
128
166
Testing on Linux
129
167
================
130
168
131
-
You can test SLM's PPP on Linux by using the ``pppd`` command, though SLM must be compiled without CMUX because there is no widely available utility that allows multiplexing a device file on Linux.
132
-
133
-
.. note::
134
-
135
-
If you have a utility that allows multiplexing a device file on Linux, you can use SLM's PPP with the ``pppd`` command through CMUX.
136
-
To do this, you must first set up the CMUX link.
137
-
Then, make sure to replace the device file argument in the ``pppd`` command with that of SLM's PPP channel, which will have been created by the CMUX utility.
138
-
See :ref:`SLM_AT_CMUX` for more information on SLM's CMUX.
169
+
You can test SLM's PPP on Linux by using the ``pppd`` command.
170
+
This section describes a configuration without CMUX.
171
+
If you are using CMUX, see :ref:`slm_as_linux_modem` for more information on setting it up.
139
172
140
173
For the process described here, SLM's UARTs must be connected to the Linux host.
141
174
142
175
1. Get PPP running on SLM.
143
176
To do this, start SLM and issue an ``AT+CFUN=1`` command.
144
-
#. Wait for ``#XPPP: 1,0``, which is sent when the network registration succeeds and PPP has started successfully.
177
+
#. Wait for ``#XPPP: 1,0,0``, which is sent when the network registration succeeds and PPP has started successfully with the default PDN connection.
0 commit comments