Struct ublox_cellular::command::psn::SetPDPContextDefinition [−][src]
pub struct SetPDPContextDefinition<'a> {
pub cid: ContextId,
pub pdp_type: &'a str,
pub apn: &'a str,
}
Expand description
18.4 PDP context definition +CGDCONT
Defines the connection parameters for a PDP context, identified by the local
context identification parameter
Each context is permanently stored so that its definition is persistent over power cycles.
The command is used to set up the PDP context parameters for an external context, i.e. a data connection using the external IP stack (e.g. Windows dial-up) and PPP link over the serial interface.
Usage of static i.e. user defined IP address is possible in UTRAN and GERAN but not in EUTRAN; to prevent inconsistent addressing methods across various RATs, static IP addressing is not recommended for LTE modules: 3GPP TS 23.060 [10] Rel.8 and later releases specify that a UE with EUTRAN/UTRAN/GERAN capabilities shall not include a static PDP address in PDP context activation requests.
The information text response to the read command provides the configuration of all the PDP context / EPS bearers that have already been defined. The test command returns a different row for each <PDP_type> value supported by the module. “IPtial default bearer. Since dial-up supports only IPv4 connectivity, the defined IPv6 EPS bearers / PDP contexts will not be used.
- TOBY-L4 / TOBY-L2 / MPCI-L2 / LARA-R2 / TOBY-R2 - After the PDP context activation, the information text response to the read command provides the configuration negotiated with the network (similarly to +CGTFTRDP and +CGCONTRDP AT commands).
- TOBY-L4 / LARA-R2 / TOBY-R2 - The read command shows PDP contexts/EPS bearers defined by IMS, BIP and OMA-DM internal clients but they cannot be defined, modified or undefined with the set command. It is forbidden to define a PDP context having the same APN used by the IMS internal client, e.g. on TOBY-R2 and LARA-R202 / LARA-R203 / LARA-R211 the APN shall be different from “ims” or “IMS” and on LARA-R204 the APN shall be different from “VZWIMS” or “IMS”.
- LARA-R204 - In Verizon Configuration and when attached to Roaming PLMN
the Class 3 APN will be defined with <PDP_ type>=IPv4-only at
=1, as per Verizon specifications. Such EPS attach bearer shall then be used for data connectivity. This is not valid on LARA-R204-02B-00, LARA-R204-02B-01.
Fields
cid: ContextId
pdp_type: &'a str
apn: &'a str
Trait Implementations
type Response = NoResponse
type Response = NoResponse
The type of the response. Must implement the AtatResp
trait.
type Error = GenericError
type Error = GenericError
The type of the error.
Return the command as a heapless Vec
of bytes.
Parse the response into a Self::Response
or Error<Self::Error>
instance.
The max timeout in milliseconds.
Force the ingress manager into receive state immediately after sending the command. Read more
Force client to look for a response. Empty slice is then passed to parse by client. Implemented to enhance expandability fo ATAT Read more