Go to the source code of this file.
|
| int | pack_swiavms_SLQSAVMSStartSession (pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen, pack_swiavms_SLQSAVMSStartSession_t reqParam) |
| |
| int | unpack_swiavms_SLQSAVMSStartSession (uint8_t *pResp, uint16_t respLen, unpack_swiavms_SLQSAVMSStartSession_t *pResponse) |
| |
| int | pack_swiavms_SLQSAVMSStopSession (pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen, pack_swiavms_SLQSAVMSStopSession_t reqParam) |
| |
| int | unpack_swiavms_SLQSAVMSStopSession (uint8_t *pResp, uint16_t respLen, unpack_swiavms_SLQSAVMSStopSession_t *pResponse) |
| |
| int | pack_swiavms_SLQSAVMSSetSettings (pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen, pack_swiavms_SLQSAVMSSetSettings_t reqParam) |
| |
| int | unpack_swiavms_SLQSAVMSSetSettings (uint8_t *pResp, uint16_t respLen, unpack_swiavms_SLQSAVMSSetSettings_t *pResponse) |
| |
| int | pack_swiavms_SLQSAVMSSetSettingsNoAutoRebootField (pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen, pack_swiavms_SLQSAVMSSetSettings_t reqParam) |
| |
| int | pack_swiavms_SLQSAVMSGetSettings (pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen) |
| |
| int | unpack_swiavms_SLQSAVMSGetSettings (uint8_t *pResp, uint16_t respLen, unpack_swiavms_SLQSAVMSGetSettings_t *pResponse) |
| |
| int | pack_swiavms_SLQSAVMSSendSelection (pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen, pack_swiavms_SLQSAVMSSendSelection_t reqParam) |
| |
| int | unpack_swiavms_SLQSAVMSSendSelection (uint8_t *pResp, uint16_t respLen, unpack_swiavms_SLQSAVMSSendSelection_t *pResponse) |
| |
| int | pack_swiavms_SLQSAvmsSetEventReport (pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen) |
| |
| int | unpack_swiavms_SLQSAvmsSetEventReport (uint8_t *pResp, uint16_t respLen, unpack_swiavms_SLQSAvmsSetEventReport_t *pResponse) |
| |
| int | pack_swiavms_SLQSAVMSSessionGetInfo (pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen) |
| |
| int | unpack_swiavms_SLQSAVMSSessionGetInfo (uint8_t *pResp, uint16_t respLen, unpack_swiavms_SLQSAVMSSessionGetInfo_t *pResponse) |
| |
| int | unpack_swiavms_SLQSAVMSEventReportInd (uint8_t *pResp, uint16_t respLen, unpack_swiavms_SLQSAVMSEventReportInd_t *pResponse) |
| |
| #define LITEQMI_MAX_SWIOMA_STR_LEN 255 |
| #define MAX_AVMS_SETTINGS_RETRY_TIMER_NUMBER 8 |
| #define MAX_PACK_SWI_AVMS_SESSIONGETINFO_BINARYUPDATESESSIONINFO_DESC_LENGTH 1024 |
| #define MAX_PACK_SWI_AVMS_SESSIONGETINFO_BINARYUPDATESESSIONINFO_NAME_LENGTH 128 |
| #define MAX_PACK_SWI_AVMS_SESSIONGETINFO_BINARYUPDATESESSIONINFO_VERSION_LENGTH 128 |
| #define MAX_PACK_SWI_AVMS_SESSIONGETINFO_CONFIG_ALERT_MSG_LENGTH 200 |
| #define MAX_PACK_SWI_AVMS_SET_SETTING_APN_LENGTH 49 |
| #define MAX_PACK_SWI_AVMS_SET_SETTING_CONNECTION_RETRY_TIMMERS 8 |
| #define MAX_PACK_SWI_AVMS_SET_SETTING_PWD_LENGTH 29 |
| #define MAX_PACK_SWI_AVMS_SET_SETTING_UNAME_LENGTH 29 |
- Parameters
-
| bAPNLength | APN Length. |
| szAPN | APN String. |
| bUnameLength | Username Length. |
| szUname | User Name String. |
| bPWDLength | Password Length. |
| szPWD | Password String. |
- Parameters
-
| ulMin | Min period in seconds. |
| ulMax | Max period in seconds. |
Structure that contains the session type response for AVMS event report indication command
- Parameters
-
| pBinaryUpdateSessionInfo[OUT] |
|
| pNotification[OUT] |
|
| pPackageID[OUT] |
|
| pConnectionRequest[OUT] |
|
| pWAMSParaChanged[OUT] |
|
| pRegStatus[OUT] |
|
| pDataSessionStatus[OUT] |
|
| UnpackSwiAvmsEventReportSessionType[OUT] |
- See pSessionType for more information
|
| pWAMSParaChanged[OUT] |
|
| pHTTPStatus[OUT] |
- See pSessionType for more information
|
| resultcode | - Tlv Result Code. |
Structure that contains the session type response for AVMS get session info command
- Parameters
-
| resultcode | - Tlv Result Code. |
- Parameters
-
| bBinaryType | : Type
- 1 - Firmware.
- 2 - User App.
- 3 - Legato Framework.
|
| bStat | : State
- 0x01 - No binary update available.
- 0x02 - Query binary Download.
- 0x03 - Binary Downloading.
- 0x04 - Binary downloaded.
- 0x05 -Query Binary Update.
- 0x06 - Binary updating.
- 0x07 - Binary updated.
|
| bUserInputRequest | Bit mask of available user inputs.
- 0x00 - No user input required. Informational indication.
- 0x01 - Accept.
- 0x02 - Reject.
|
| wUserInputTimeout | Timeout for user input in minutes. A value of 0 means no time-out. |
| ulPkgDownloadSize | The size (in bytes) of the update package |
| ulPkgDownloadComplete | The number of bytes being downloaded. For downloading state, this value shall be > 0 and incremented toward the pkg_dload_size. For other states, the value shall be 0 as it is meaningless. |
| wUpdateCompeteStatus | Result code.This field should be looked at only when the AVMS session is complete. |
| bSerity | Serity.
- 0x01 - Mandatory.
- 0x02 - Optional.
|
| wVersionLength | Length of FW Version string in bytes. |
| szVersion | FW Version string in ASCII. |
| wNameLength | Length Package Name string in bytes. |
| szName | Package Name in UCS2. |
| wDescriptionLength | Length of description in bytes. |
| szDescription | Description of Update Package in USC2. |
| TlvPresent | Boolean indicating the presence of the TLV in the QMI response |
- Parameters
-
| bState | State.
- 0x01 - AVMS Read Request.
- 0x02 - AVMS Change Request.
- 0x03 - AVMS Config Complete.
|
| bUserInputRequest | Bit mask of available user inputs.
- 0x00 - No user input required. Informational indication.
- 0x01 - Accept.
- 0x02 - Reject.
|
| wUserInputTimeout | Timeout for user input in seconds. A value of 0 means no time-out |
| wAlertMsgLength | Length of Alert message string in bytes. |
| szAlertMsg | Alert message in UCS2. |
| TlvPresent | Boolean indicating the presence of the TLV in the QMI response |
- Parameters
-
| bUserInputRequest | Bit mask of available user inputs.
- 0x00 - No user input required. Informational indication.
- 0x01 - Accept.
- 0x02 - Reject.
|
| bUserInputRequest | Timeout for user input in minutes. A value of 0 means no time-out. |
| TlvPresent | Boolean indicating the presence of the TLV in the QMI response |
- Parameters
-
| bType | Notification type.
- 0: Data session closed.
- 1: Data session activated.
- 2: Register made. -3: Data session error.
|
| wErrorCode | LWM2M Session error code.
|
| TlvPresent | Boolean indicating the presence of the TLV in the QMI response |
- Parameters
-
| wHTTPStatus | See RFC 7231.
- 100 - Continue
- 101 - Switching Protocols
- 200 - OK
- 201 - Created
- 202 - Accepted
- 203 - Non-Authoritative Information
- 204 - No Content
- 205 - Reset Content
- 206 - Partial Content
- 300 - Multiple Choices
- 301 - Moved Permanently
- 302 - Found
- 303 - See Other
- 304 - Not Modified
- 305 - Use Proxy
- 307 - Temporary Redirect
- 400 - Bad Request
- 401 - Unauthorized
- 402 - Payment Required
- 403 - Forbidden
- 404 - Not Found
- 405 - Method Not Allowed
- 406 - Not Acceptable
- 407 - Proxy Authentication Required
- 408 - Request Timeout
- 409 - Conflict
- 410 - Gone
- 411 - Length Required
- 412 - Precondition Failed
- 413 - Payload Too Large
- 414 - URI Too Long
- 415 - Unsupported Media Type
- 416 - Range Not Satisfiable
- 417 - Expectation Failed
- 426 - Upgrade Required
- 500 - Internal Server Error
- 501 - Not Implemented
- 502 - Bad Gateway
- 503 - Service Unavailable
- 504 - Gateway Timeout
- 505 - HTTP Version Not Supported
|
| TlvPresent | Boolean indicating the presence of the TLV in the QMI response |
- Parameters
-
| bNotification | Notification.
- 0x14 - Module starts sending data to server.
- 0x15 - Authentication with the server.
- 0x16 - session with the server is ended.
|
| wSessionStatus | This field will set to the session status for notifications that occur at the end of a session, zero for all other notifications.
- 0x0000: Successful: Session succeeded
- 0x0001: Break: Session succeeded
- 0x0002: Large Object Handled: Session succeeded
- 0x0003: No status: Session succeeded
- 0x0004: No more commands: Session succeeded
- 0x0005: User cancel: Session cancelled
- 0x0100-0x01FF: General errors
- 0x0200-0x02FF: Syncml errors
- 0x0300-0x03FF: Authentication errors
- 0x0400-0x04FF: Protocol errors
- 0x0500-0x05FF: Tree errors (DM Only)
- 0x0600-0x06FF: Not applicable
- 0x0700-0x07FF: Trigger errors
- 0x0800-0x08FF: FUMO errors
- 0x0900-0x09FF: Communication errors
- 0x0A00-0x0AFF: Parsing errors
- 0x0B00-0x0CFF: Not applicable
- 0x7F00-0x7F12:Insignia errors
- 0x7F13: Illegal text: Text received contains illegal characters
- 0x7F14: Download failure: Failed to download FOTA image
- 0x7F15: Empty session: Session ran successfully, but no information wasa updated
- 0x7F16: Factory reset successful: Factory reset succeeded
- 0x7F17: Factory reset fail: Factory reset failed
|
| TlvPresent | Boolean indicating the presence of the TLV in the QMI response |
- Parameters
-
| bPackageID | Package ID of the application binary that this AVMS_EVENT_ID notification is for. |
| TlvPresent | Boolean indicating the presence of the TLV in the QMI response |
- Parameters
-
| bRegStatus | LWM2M Registration status.
- 0: Need Bootstrap.
- 1: Bootstrap made.
- 2: Register made. -3: Update made.
|
| TlvPresent | Boolean indicating the presence of the TLV in the QMI response |
- Parameters
-
| bType | Session Type.
- 0: Bootstrap session.
- 1. DM session
|
| TlvPresent | Boolean indicating the presence of the TLV in the QMI response |
- Parameters
-
| wWamsChangeMask | Mask of WAMS parameters changed.
- By default set to 0xFF for all changes.
- 0x01 - device_login
- 0x02 - device_MD5_key
- 0x04 - server_login
- 0x08 - server_MD5_key
- 0x10 - server_URL
- 0x20 - Nonce
- 0x40 - Application key
|
| TlvPresent | Boolean indicating the presence of the TLV in the QMI response |
| int pack_swiavms_SLQSAVMSGetSettings |
( |
pack_qmi_t * |
pCtx, |
|
|
uint8_t * |
pReqBuf, |
|
|
uint16_t * |
pLen |
|
) |
| |
Function to pack AVMS Get settings command This maps to SLQSAVMSSetSettings
- Parameters
-
| pCtx[OUT] |
|
| pReqBuf[IN/OUT] |
- Buffer for packed QMI command to be provided by the host application
- Minimum expected size is 2048 bytes
|
| pLen[IN/OUT] |
- On input, size of pReqBuf
- On ouptut, number of bytes actually packed
|
- Returns
- eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
- See Also
- See qmerrno.h for eQCWWAN_xxx error values
- Note
- Timeout: 2 seconds
Function to pack AVMS send selection command This maps to SLQSAVMSSendSelection
- Parameters
-
| pCtx[OUT] |
|
| pReqBuf[IN/OUT] |
- Buffer for packed QMI command to be provided by the host application
- Minimum expected size is 2048 bytes
|
| pLen[IN/OUT] |
- On input, size of pReqBuf
- On ouptut, number of bytes actually packed
|
| reqParam[IN] |
|
- Returns
- eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
- See Also
- See qmerrno.h for eQCWWAN_xxx error values
- Note
- Timeout: 2 seconds
| int pack_swiavms_SLQSAVMSSessionGetInfo |
( |
pack_qmi_t * |
pCtx, |
|
|
uint8_t * |
pReqBuf, |
|
|
uint16_t * |
pLen |
|
) |
| |
Function to pack AVMS get session info command This maps to SLQSAVMSSessionGetInfo
- Parameters
-
| pCtx[OUT] |
|
| pReqBuf[IN/OUT] |
- Buffer for packed QMI command to be provided by the host application
- Minimum expected size is 2048 bytes
|
| pLen[IN/OUT] |
- On input, size of pReqBuf
- On ouptut, number of bytes actually packed
|
- Returns
- eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
- See Also
- See qmerrno.h for eQCWWAN_xxx error values
- Note
- Timeout: 2 seconds
| int pack_swiavms_SLQSAvmsSetEventReport |
( |
pack_qmi_t * |
pCtx, |
|
|
uint8_t * |
pReqBuf, |
|
|
uint16_t * |
pLen |
|
) |
| |
Function to pack AVMS set event report command This maps to SLQSAVMSSetEventReport
- Parameters
-
| pCtx[OUT] |
|
| pReqBuf[IN/OUT] |
- Buffer for packed QMI command to be provided by the host application
- Minimum expected size is 2048 bytes
|
| pLen[IN/OUT] |
- On input, size of pReqBuf
- On ouptut, number of bytes actually packed
|
- Returns
- eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
- See Also
- See qmerrno.h for eQCWWAN_xxx error values
- Note
- Timeout: 2 seconds
Function to pack AVMS Set settings command This maps to SLQSAVMSSetSettings
- Parameters
-
| pCtx[OUT] |
|
| pReqBuf[IN/OUT] |
- Buffer for packed QMI command to be provided by the host application
- Minimum expected size is 2048 bytes
|
| pLen[IN/OUT] |
- On input, size of pReqBuf
- On ouptut, number of bytes actually packed
|
| reqParam[IN] |
|
- Returns
- eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
- See Also
- See qmerrno.h for eQCWWAN_xxx error values
- Note
- Timeout: 2 seconds
Function to pack AVMS Set settings without Auto Reobot field command This maps to SLQSAVMSSetSettingsIgnoreAutoReboot
- Parameters
-
| pCtx[OUT] |
|
| pReqBuf[IN/OUT] |
- Buffer for packed QMI command to be provided by the host application
- Minimum expected size is 2048 bytes
|
| pLen[IN/OUT] |
- On input, size of pReqBuf
- On ouptut, number of bytes actually packed
|
| reqParam[IN] |
|
- Returns
- eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
- See Also
- See qmerrno.h for eQCWWAN_xxx error values
- Note
- Timeout: 2 seconds
Function to pack Start AVMS session command This maps to SLQSAVMSStartSession
- Parameters
-
| pCtx[OUT] |
|
| pReqBuf[IN/OUT] |
- Buffer for packed QMI command to be provided by the host application
- Minimum expected size is 2048 bytes
|
| pLen[IN/OUT] |
- On input, size of pReqBuf
- On ouptut, number of bytes actually packed
|
| reqParam[IN] |
|
- Returns
- eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
- See Also
- See qmerrno.h for eQCWWAN_xxx error values
- Note
- Timeout: 2 seconds
Function to pack cancel AVMS session command This maps to SLQSAVMSStopSession
- Parameters
-
| pCtx[OUT] |
|
| pReqBuf[IN/OUT] |
- Buffer for packed QMI command to be provided by the host application
- Minimum expected size is 2048 bytes
|
| pLen[IN/OUT] |
- On input, size of pReqBuf
- On ouptut, number of bytes actually packed
|
| reqParam[IN] |
|
- Returns
- eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
- See Also
- See qmerrno.h for eQCWWAN_xxx error values
- Note
- Timeout: 2 seconds
Function to unpack AVMS event report Indication command This maps to SLQSAVMSSetEventReport
- Parameters
-
| pResp[IN] |
|
| respLen[IN] |
- Length of pResp from modem
|
| pResponse[OUT] |
|
- Returns
- eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
- See Also
- See qmerrno.h for eQCWWAN_xxx error values
Function to unpack AVMS set settings command This maps to SLQSAVMSGetSettings
- Parameters
-
| pResp[IN] |
|
| respLen[IN] |
- Length of pResp from modem
|
| pResponse[OUT] |
|
- Returns
- eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
- See Also
- See qmerrno.h for eQCWWAN_xxx error values
Function to unpack AVMS send selection command This maps to SLQSAVMSSendSelection
- Parameters
-
| pResp[IN] |
|
| respLen[IN] |
- Length of pResp from modem
|
| pResponse[OUT] |
|
- Returns
- eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
- See Also
- See qmerrno.h for eQCWWAN_xxx error values
Function to unpack AVMS event report Indication command This maps to SLQSAVMSSetEventReport
- Parameters
-
| pResp[IN] |
|
| respLen[IN] |
- Length of pResp from modem
|
| pResponse[OUT] |
|
- Returns
- eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
- See Also
- See qmerrno.h for eQCWWAN_xxx error values
Function to unpack AVMS set event report command This maps to SLQSAVMSSetEventReport
- Parameters
-
| pResp[IN] |
|
| respLen[IN] |
- Length of pResp from modem
|
| pResponse[OUT] |
|
- Returns
- eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
- See Also
- See qmerrno.h for eQCWWAN_xxx error values
Function to unpack AVMS Set settings command This maps to SLQSAVMSSetSettings
- Parameters
-
| pResp[IN] |
|
| respLen[IN] |
- Length of pResp from modem
|
| pResponse[OUT] |
|
- Returns
- eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
- See Also
- See qmerrno.h for eQCWWAN_xxx error values
Function to unpack Start AVMS session response from modem This maps to SLQSAVMSStartSession
- Parameters
-
| pResp[IN] |
|
| respLen[IN] |
- Length of pResp from modem
|
| pResponse[OUT] |
|
- Returns
- eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
- See Also
- See qmerrno.h for eQCWWAN_xxx error values
Function to pack stop AVMS session command This maps to SLQSAVMSStopSession
- Parameters
-
| pResp[IN] |
|
| respLen[IN] |
- Length of pResp from modem
|
| pResponse[OUT] |
|
- Returns
- eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
- See Also
- See qmerrno.h for eQCWWAN_xxx error values