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 . If the command is used only with parameter , the corresponding PDP context becomes undefined.

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: ContextIdpdp_type: &'a strapn: &'a str

Trait Implementations

The type of the response. Must implement the AtatResp trait.

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.

Whether or not this command can be aborted.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.