[][src]Struct ublox_cellular::command::psn::SetPDPContextDefinition

pub struct SetPDPContextDefinition<'a> {
    pub cid: ContextId,
    pub pdp_type: &'a str,
    pub apn: &'a str,
}

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

impl<'a> AtatCmd for SetPDPContextDefinition<'a>[src]

type Response = NoResponse

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

type CommandLen = <Self::Len as Add<U13>>::Output

The max length of the command. Read more

impl<'a> AtatLen for SetPDPContextDefinition<'a>[src]

type Len = <U99 as Add<<U6 as Add<<<ContextId as AtatLen>::Len as Add<U2>>::Output>>::Output>>::Output

impl<'a> Clone for SetPDPContextDefinition<'a>[src]

impl<'a> Serialize for SetPDPContextDefinition<'a>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.