Struct ublox_cellular::command::psn::SetPDPContextState [−][src]
pub struct SetPDPContextState {
pub status: PDPContextStatus,
pub cid: Option<ContextId>,
}
Expand description
18.16 PDP context activate or deactivate +CGACT
Activates or deactivates the specified PDP context. After the command, the MT remains in AT command mode. If any context is already in the requested state, the state for the context remains unchanged. If the required action cannot succeed, an error result code is returned. If the MT is not GPRS attached when the activation of a PDP context is required, the MT first performs a GPRS attach and then attempts to activate the specified context.
The maximum expected response time is different whenever the activation or the deactivation of a PDP context is performed (150 s and 40 s respectively). TOBY-L4 / LARA-R2 / TOBY-R2 / SARA-U2 / LISA-U2 / LISA-U1 / SARA-G4 / SARA-G3 / LEON-G1
- The command can be aborted if a character is sent to the DCE during the
command execution: if a PDP context activation on a specific
was requested, the PDP context deactivation is performed; if a multiple PDP context activation was requested, it is aborted after the pending PDP context activation has finished. - The deactivation action is carried out even if the command is aborted.
Notes:
- TOBY-L4 / LARA-R2 / TOBY-R2 - After having aborted the PDP context activation, the command line is not immediately returned.
- SARA-U2 / LISA-U2 - After having aborted the PDP context activation, the command line is immediately returned but the procedure to activate the context is still running and will be completed.
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 activated or deactivated.
TOBY-L4 / LARA-R2 / TOBY-R2
- The usage of AT+CGACT=0 without specifying the
parameter is deprecated because it can deactivate also PDP contexts / EPS bearer used by internal clients e.g. BIP and OMA-DM.
TOBY-L4 / TOBY-L2 / MPCI-L2 / LARA-R2 / TOBY-R2 / SARA-U2 / LISA-U2 / LISA-U1 / SARA-G4 / SARA-G3 / LEON-G1
- AT+CGACT command (both in successful and unsuccessful case) triggers signalling attempts whose number is internally counted by the SW and limited based on MNO specific thresholds. The AT&T RPM feature (see also the +URPM AT command) and the Verizon configuration (see the +UMNOCONF AT command) might cause the AT command to return an error result code when the maximum number of attempts has been reached. In these cases, the command might become available again after a while.
Fields
status: PDPContextStatus
cid: Option<ContextId>
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.
The max timeout in milliseconds.
Return the command as a heapless Vec
of bytes.
Parse the response into a Self::Response
or Error<Self::Error>
instance.
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