|
LinuxSDK
V1.4.0.5
|
SWI OMA-DM related APIs. More...
Go to the source code of this file.
Data Structures | |
| struct | SWI_STRUCT_OMADM_GET_CONFIG |
| struct | SWI_STRUCT_OMADM_SET_CONFIG |
| struct | SWI_STRUCT_OMADM_START_SESSION |
| struct | SWI_STRUCT_OMADM_CANCEL_RESP |
| struct | SWI_STRUCT_OMADM_SESSION_STATE |
| struct | SWI_STRUCT_OMADM_NI_ALERT |
| struct | SWI_STRUCT_OMADM_NI_ALERT_RESP |
| struct | SWI_STRUCT_OMADM_UI_ALERT_DISPLAY |
| struct | SWI_STRUCT_OMADM_UI_ALERT_CONFIRM |
| struct | SWI_STRUCT_OMADM_UI_ALERT_CONFIRM_RESP |
| struct | SWI_STRUCT_OMADM_UI_ALERT_INPUT |
| struct | SWI_STRUCT_OMADM_UI_ALERT_INPUT_RESP |
| struct | SWI_STRUCT_OMADM_UI_ALERT_CHOICE |
| struct | SWI_STRUCT_OMADM_UI_ALERT_CHOICE_RESP |
| struct | SWI_STRUCT_OMADM_NODE_VALUE_REQUEST |
| struct | SWI_STRUCT_OMADM_NODE_VALUE_RESPONSE |
| struct | SWI_STRUCT_OMADM_NODE_VALUE |
| struct | SWI_STRUCT_DM_DL_PROGRESS |
| struct | SWI_STRUCT_DM_DL_ALERT |
| struct | SWI_STRUCT_DM_DL_DESCRIPTION |
| struct | SWI_STRUCT_DM_DL_INSTALL_STATUS |
Macros | |
| #define | MAX_DL_PKG_NAME 232 |
| #define | MAX_DL_DESCRIPTION 1024 |
| #define | LENGTH_DM_TLV_HEADER 4 |
| #define | NUM_Node_Data_Sub_TLV 4 |
SWI OMA-DM related APIs.
Copyright (c) 2011 Sierra Wireless, Inc. All rights reserved
| #define LENGTH_DM_TLV_HEADER 4 |
DM TLV Header size in byte
| #define MAX_DL_DESCRIPTION 1024 |
Max length of DL description
| #define MAX_DL_PKG_NAME 232 |
Max length of DL name
| #define NUM_Node_Data_Sub_TLV 4 |
Number of sub-TLV for Node data
| typedef struct SWI_STRUCT_DM_DL_ALERT SWI_STRUCT_DM_DL_ALERT |
Contains DM-DL alert data structure.
| typedef struct SWI_STRUCT_DM_DL_DESCRIPTION SWI_STRUCT_DM_DL_DESCRIPTION |
Contains DM-DL description data structure.
| typedef struct SWI_STRUCT_DM_DL_INSTALL_STATUS SWI_STRUCT_DM_DL_INSTALL_STATUS |
Contains DM-DL description data structure.
| typedef struct SWI_STRUCT_DM_DL_PROGRESS SWI_STRUCT_DM_DL_PROGRESS |
Contains DM-DL progress data structure.
| typedef struct SWI_STRUCT_OMADM_CANCEL_RESP SWI_STRUCT_OMADM_CANCEL_RESP |
Contains OMA-DM session cancelation respond data.
| typedef struct SWI_STRUCT_OMADM_GET_CONFIG SWI_STRUCT_OMADM_GET_CONFIG |
Contains device OMA-DM configuration data.
| typedef struct SWI_STRUCT_OMADM_NI_ALERT SWI_STRUCT_OMADM_NI_ALERT |
Contains OMA-DM NI alert data structure.
| typedef struct SWI_STRUCT_OMADM_NI_ALERT_RESP SWI_STRUCT_OMADM_NI_ALERT_RESP |
Contains OMA-DM NI alert response data structure.
| typedef struct SWI_STRUCT_OMADM_NODE_VALUE SWI_STRUCT_OMADM_NODE_VALUE |
Contains OMA-DM node value data structure.
Contains OMA-DM node value request data structure.
Contains OMA-DM node value response data structure.
| typedef struct SWI_STRUCT_OMADM_SESSION_STATE SWI_STRUCT_OMADM_SESSION_STATE |
Contains OMA-DM session state data.
| typedef struct SWI_STRUCT_OMADM_SET_CONFIG SWI_STRUCT_OMADM_SET_CONFIG |
Contains data for setting OMA-DM configuration.
Note: Reset HFA requires MSL unlock.
| typedef struct SWI_STRUCT_OMADM_START_SESSION SWI_STRUCT_OMADM_START_SESSION |
Contains data for starting OMA-DM session.
| typedef struct SWI_STRUCT_OMADM_UI_ALERT_CHOICE SWI_STRUCT_OMADM_UI_ALERT_CHOICE |
Contains OMA-DM UI alert choice data structure.
Contains OMA-DM UI alert choice response data structure.
Contains OMA-DM UI alert confirm data structure.
Contains OMA-DM UI alert confirm data structure.
Contains OMA-DM UI alert display data structure.
| typedef struct SWI_STRUCT_OMADM_UI_ALERT_INPUT SWI_STRUCT_OMADM_UI_ALERT_INPUT |
Contains OMA-DM UI alert input data structure.
Contains OMA-DM UI alert input response data structure.
| typedef enum SWI_TYPE_DM_DL_ALERT_PROMPT SWI_TYPE_DM_DL_ALERT_PROMPT |
An enumeration of DM-DL alert prompt type.
| typedef enum SWI_TYPE_DM_DL_ALERT_RESP SWI_TYPE_DM_DL_ALERT_RESP |
An enumeration of DM-DL alert response type.
An enumeration of DM-DL alert response status.
| typedef enum SWI_TYPE_DM_DL_INSTALL_STATE SWI_TYPE_DM_DL_INSTALL_STATE |
An enumeration of DM-DL install state.
| typedef enum SWI_TYPE_DM_DL_PROGRESS_TYPE SWI_TYPE_DM_DL_PROGRESS_TYPE |
An enumeration of DM-DL progress type.
| typedef enum SWI_TYPE_DM_DL_VALID_RESP SWI_TYPE_DM_DL_VALID_RESP |
An enumeration of DM-DL valid response type.
| typedef enum SWI_TYPE_DM_TLV_TYPE SWI_TYPE_DM_TLV_TYPE |
An enumeration of CWE DM TLV types.
| typedef enum SWI_TYPE_OMADM_CANCEL_STATUS SWI_TYPE_OMADM_CANCEL_STATUS |
An enumeration of OMA-DM cancel status.
An enumeration of device OMA-DM capability.
An enumeration of device OMA-DM feature capability.
An enumeration of OMA-DM NI alert response status.
| typedef enum SWI_TYPE_OMADM_NIA_PENDING SWI_TYPE_OMADM_NIA_PENDING |
An enumeration of OMA-DM NIA pending state.
An enumeration of OMA-DM NI alert session type.
| typedef enum SWI_TYPE_OMADM_NIA_UI_MODE SWI_TYPE_OMADM_NIA_UI_MODE |
An enumeration of OMA-DM NIA UI mode.
An enumeration of OMA-DM session commit mask.
The commit results have specific meanings for each session type: CIDC/NIDC/HFA : DC not updated(0x00)/updated(0x01) CIPRL/NIPRL : PRL not updated(0x00)/updated(0x01) CIFUMO/NIFUMO Info Exchange : Pkg not available(0x00)/Pkg available(0x01) CI/NI DD Download/Package Download/Status Report: N/A
An enumeration of OMA-DM session initiator.
An enumeration of OMA-DM session results.
| typedef enum SWI_TYPE_OMADM_SESSION_STATE SWI_TYPE_OMADM_SESSION_STATE |
An enumeration of OMA-DM session state.
| typedef enum SWI_TYPE_OMADM_SESSION_TYPE SWI_TYPE_OMADM_SESSION_TYPE |
An enumeration of OMA-DM session type.
An enumeration of OMA-DM UI mode.
| typedef enum SWI_TYPE_OMADM_STATUS_RESP SWI_TYPE_OMADM_STATUS_RESP |
An enumeration of OMA-DM status response.
An enumeration of OMA-DM UI alert choice type.
An enumeration of OMA-DM UI alert confirm defaule value.
An enumeration of OMA-DM UI alert user confirm response value.
An enumeration of OMA-DM UI alert echo type.
An enumeration of OMA-DM UI alert input type.
An enumeration of OMA-DM UI alert user confirm type.
An enumeration of OMA-DM client initiated session type.
| enum SWI_TYPE_DM_TLV_TYPE |
An enumeration of CWE DM TLV types.
An enumeration of device OMA-DM feature capability.
An enumeration of OMA-DM session commit mask.
The commit results have specific meanings for each session type: CIDC/NIDC/HFA : DC not updated(0x00)/updated(0x01) CIPRL/NIPRL : PRL not updated(0x00)/updated(0x01) CIFUMO/NIFUMO Info Exchange : Pkg not available(0x00)/Pkg available(0x01) CI/NI DD Download/Package Download/Status Report: N/A
| Enumerator | |
|---|---|
| OMADM_SESSION_COMMIT_DATA_NOT_UPDATED |
Updated |
| OMADM_SESSION_COMMIT_DATA_UPDATED |
Not updated |
An enumeration of OMA-DM session results.
An enumeration of OMA-DM session type.
An enumeration of OMA-DM status response.
An enumeration of OMA-DM UI alert input type.
| SWI_API SWI_RCODE SwiCancelOMADMSession | ( | SWI_STRUCT_OMADM_CANCEL_RESP * | pStatus, |
| swi_uint32 | timeout | ||
| ) |
This function requests the device to cancel a OMA-DM session.
| pStatus[OUT] | Contains OMADM cancel status information. See SWI_STRUCT_OMADM_CANCEL_RESP. |
| timeout[IN] | Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiGetDMDLDescription | ( | SWI_STRUCT_DM_DL_DESCRIPTION * | psDescription, |
| swi_uint32 | timeout | ||
| ) |
This function gets the the DM Download description text if available.
When the SWI_NOTIFY_DM_DL_Alert notification is received, the nDescAvail parameter will be set if a description is available.
| psDescription[OUT] | Description. see SWI_STRUCT_DM_DL_DESCRIPTION |
| timeout[IN] | Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiGetDMDLInstallStatus | ( | SWI_STRUCT_DM_DL_INSTALL_STATUS * | psStatus, |
| swi_uint32 | timeout | ||
| ) |
This function gets the status of the DM Download install.
When the install begins, the modem will send a SWI_NOTIFY_DM_DL_InstallStatus notification and the modem will de-enumerate from the system (Device Removal) and complete the install. Once the install is complete, the modem will re-enumerate on the system (Device Arrival) and this API should be call (after normal API re-init) to determine the status of the install.
| psStatus[OUT] | Status of install. See SWI_STRUCT_DM_DL_INSTALL_STATUS. |
| timeout[IN] | Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiGetDMDLProgress | ( | SWI_STRUCT_DM_DL_PROGRESS * | psProgress, |
| swi_uint32 | timeout | ||
| ) |
This function gets the progress of the DM Download.
This same information is provided in the SWI_NOTIFY_DM_DL_Progress notification when a download is in progress.
| psProgress[IN] | Contains progress info. See SWI_STRUCT_DM_DL_PROGRESS. |
| timeout[IN] | Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiGetOMADMConfig | ( | SWI_STRUCT_OMADM_GET_CONFIG * | psConfig, |
| swi_uint32 | timeout | ||
| ) |
This function gets the current OMA-DM configuration supported by the device.
Notification: SWI_NOTIFY_OMADM_Config returns the same data.
| psConfig[OUT] | Struct containing configuration params. See SWI_STRUCT_OMADM_GET_CONFIG. |
| timeout[IN] | Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiGetOMADMNIAlert | ( | SWI_STRUCT_OMADM_NI_ALERT * | psAlert, |
| swi_uint32 | timeout | ||
| ) |
This function gets OMA-DM Network Initiated Alert information stored.
| psAlert[OUT] | Contains OMA-DM NI Alert information. See SWI_STRUCT_OMADM_NI_ALERT. |
| timeout[IN] | Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiGetOMADMNodeValue | ( | const SWI_STRUCT_OMADM_NODE_VALUE_REQUEST * | psItem, |
| SWI_STRUCT_OMADM_NODE_VALUE_RESPONSE * | psValue, | ||
| swi_uint32 | timeout | ||
| ) |
This function gets a DM tree node value.
| psItem[IN] | Node value to retrieve. See SWI_STRUCT_OMADM_NODE_VALUE_REQUEST. |
| psValue[Out] | Node value data. See SWI_STRUCT_OMADM_NODE_VALUE_RESPONSE. |
| timeout[IN] | Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiGetOMADMSessionState | ( | SWI_STRUCT_OMADM_SESSION_STATE * | psState, |
| swi_uint32 | timeout | ||
| ) |
This function gets the current OMA-DM session state information.
Notification: SWI_NOTIFY_OMADM_State returns the same data.
| psState[OUT] | Contains OMA-DM session state information. See SWI_STRUCT_OMADM_SESSION_STATE. |
| timeout[IN] | Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiSetDMDLAlertResponse | ( | swi_uint8 | nResponse, |
| swi_uint8 * | pStatus, | ||
| swi_uint32 | timeout | ||
| ) |
This function sets a DM Download Alert Response for a SWI_NOTIFY_DM_DL_Alert.
This alert notification is sent from the modem when a DM DL package is ready for download and/or install.
| nResponse[IN] | User response to alert. See SWI_TYPE_DM_DL_ALERT_RESP |
| pStatus[OUT] | Status of response from modem: 0:Success 1:Fail - unspecified 2:Fail - invalid response |
| timeout[IN] | Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiSetOMADMBootAlgorithm | ( | swi_uint16 * | pStatus, |
| swi_uint32 | timeout | ||
| ) |
This function commands the modem to update any per unit DM session configuration values in the device's management tree.
| pStatus[OUT] | Result of operation. |
| timeout[IN] | Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiSetOMADMConfig | ( | const SWI_STRUCT_OMADM_SET_CONFIG * | psConfig, |
| swi_uint8 * | pStatus, | ||
| swi_uint32 | timeout | ||
| ) |
This function sets the current OMA-DM configuration in the device.
Attempting to reset HFA status requires modem to be MSL unlocked.
| psConfig[IN] | Struct containing configuration params. See SWI_STRUCT_OMADM_SET_CONFIG. |
| pStatus[OUT] | Contains OMADM error status if return code is SWI_RCODE_OMADM_ERROR. |
| timeout[IN] | Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiSetOMADMNIAlertResponse | ( | swi_uint16 | nResponse, |
| SWI_STRUCT_OMADM_NI_ALERT_RESP * | psStatus, | ||
| swi_uint32 | timeout | ||
| ) |
This function sends a response for the NI Alert to modem.
| nResponse[IN] | 0 = Deny; 1 = Allow. |
| psStatus[OUT] | Contains OMADM response status. See SWI_STRUCT_OMADM_NI_ALERT_RESP. |
| timeout[IN] | Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiSetOMADMNodeValue | ( | const SWI_STRUCT_OMADM_NODE_VALUE * | psValue, |
| swi_uint8 * | pStatus, | ||
| swi_uint32 | timeout | ||
| ) |
This function sets a DM tree node value.
| psValue[IN] | Node value item and data. See SWI_STRUCT_OMADM_NODE_VALUE. |
| pStatus[OUT] | Status of operation. See SWI_STRUCT_OMADM_NODE_VALUE_RESPONSE. |
| timeout[IN] | Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiSetOMADMUIAlertChoice | ( | const SWI_STRUCT_OMADM_UI_ALERT_CHOICE_RESP * | psChoice, |
| swi_uint16 * | pConfResp, | ||
| swi_uint32 | timeout | ||
| ) |
This function is not implemented in EVDO SWI and SDK7 SWI
| psChoice[IN] | This is a parameter. |
| pConfResp[IN] | This is a parameter. |
| timeout[IN] | Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiSetOMADMUIAlertConfirm | ( | const SWI_STRUCT_OMADM_UI_ALERT_CONFIRM_RESP * | psConfirm, |
| swi_uint16 * | pConfResp, | ||
| swi_uint32 | timeout | ||
| ) |
This function is not implemented in EVDO SWI and SDK7 SWI
| psConfirm[IN] | This is a parameter. |
| pConfResp[IN] | This is a parameter. |
| timeout[IN] | Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiSetOMADMUIAlertInput | ( | const SWI_STRUCT_OMADM_UI_ALERT_INPUT_RESP * | psInput, |
| swi_uint16 * | pInputResp, | ||
| swi_uint32 | timeout | ||
| ) |
This function is not implemented in EVDO SWI and SDK7 SWI
| psInput[IN] | This is a parameter. |
| pInputResp[IN] | This is a parameter. |
| timeout[IN] | Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiStartOMADMSession | ( | const SWI_STRUCT_OMADM_START_SESSION * | psSession, |
| swi_uint8 * | pStatus, | ||
| swi_uint32 | timeout | ||
| ) |
This function requests the device to start a OMA-DM session.
| psSession[IN] | Struct containing sesssion start params. See SWI_STRUCT_OMADM_START_SESSION. |
| pStatus[OUT] | Contains OMADM error status if returning code is SWI_RCODE_OMADM_ERROR. |
| timeout[IN] | Function timeout in milliseconds. |