[−][src]Struct ublox_cellular::command::psn::SetPDPContextDefinition
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
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
pub fn as_bytes(&self) -> Vec<u8, Self::CommandLen>
[src]
pub fn parse(&self, resp: &[u8]) -> Result<NoResponse, Error>
[src]
pub fn can_abort(&self) -> bool
[src]
pub fn max_timeout_ms(&self) -> u32
[src]
pub fn force_receive_state(&self) -> bool
[src]
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]
pub fn clone(&self) -> SetPDPContextDefinition<'a>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Serialize for SetPDPContextDefinition<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for SetPDPContextDefinition<'a>
impl<'a> Send for SetPDPContextDefinition<'a>
impl<'a> Sync for SetPDPContextDefinition<'a>
impl<'a> Unpin for SetPDPContextDefinition<'a>
impl<'a> UnwindSafe for SetPDPContextDefinition<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,