le_sms_interface.h
Go to the documentation of this file.
42 * APIs. It automatically allocates needed resources for the Message object, which is referenced by60 * - Binary content with le_sms_SetBinary(), total length is set with this API, maximum 140 bytes.63 * - UCS2 content (16-bit format) with le_sms_SetUCS2(), total length is set with this API, maximum74 * When a message sending has failed and returned LE_FAULT, call le_sms_GetErrorCode() to retrieve101 * When a message sending has failed, call le_sms_GetErrorCode() to retrieve the 3GPP message error171 * identified with @c le_sms_MsgRef_t object. The API returns an error if the message is not found177 * the Message object reference (not necessary from storage). API returns always LE_OK in this case.179 * @note If one client creates a list and deletes all sms from storage, other clients won’t see sms185 * The Cell Broadcast service permits a number of unacknowledged general messages to be broadcast187 * geographical areas known as cell broadcast areas. These areas may comprise of one or more cells,243 * "Automotive Association" (= source), "Traffic Reports" (= type) could correspond to one value.247 * Message identifier meaning ranges are defined in the 3GPP 23.041 (9.4.1.2.2 Message Identifier).252 * le_sms_AddCellBroadcastIds() and le_sms_RemoveCellBroadcastIds() APIs. All Message identifiers329 //--------------------------------------------------------------------------------------------------332 * Connect the current client thread to the service providing this API. Block until the service is335 * For each thread that wants to use this API, either ConnectService or TryConnectService must be336 * called before any other functions in this API. Normally, ConnectService is automatically called341 //--------------------------------------------------------------------------------------------------347 //--------------------------------------------------------------------------------------------------350 * Try to connect the current client thread to the service providing this API. Return with an error353 * For each thread that wants to use this API, either ConnectService or TryConnectService must be354 * called before any other functions in this API. Normally, ConnectService is automatically called361 * - LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.362 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).365 //--------------------------------------------------------------------------------------------------371 //--------------------------------------------------------------------------------------------------377 * longer a connection to the service, and the functions in this API can't be used. For details, see382 //--------------------------------------------------------------------------------------------------389 //--------------------------------------------------------------------------------------------------395 //--------------------------------------------------------------------------------------------------399 //--------------------------------------------------------------------------------------------------403 //--------------------------------------------------------------------------------------------------407 //--------------------------------------------------------------------------------------------------412 //--------------------------------------------------------------------------------------------------416 //--------------------------------------------------------------------------------------------------420 //--------------------------------------------------------------------------------------------------424 //--------------------------------------------------------------------------------------------------428 //--------------------------------------------------------------------------------------------------432 //--------------------------------------------------------------------------------------------------436 //--------------------------------------------------------------------------------------------------440 //--------------------------------------------------------------------------------------------------444 //--------------------------------------------------------------------------------------------------448 //--------------------------------------------------------------------------------------------------452 //--------------------------------------------------------------------------------------------------456 //--------------------------------------------------------------------------------------------------460 //--------------------------------------------------------------------------------------------------464 //--------------------------------------------------------------------------------------------------468 //--------------------------------------------------------------------------------------------------489 //--------------------------------------------------------------------------------------------------493 //--------------------------------------------------------------------------------------------------508 //--------------------------------------------------------------------------------------------------512 //--------------------------------------------------------------------------------------------------548 //--------------------------------------------------------------------------------------------------552 //--------------------------------------------------------------------------------------------------584 //--------------------------------------------------------------------------------------------------588 //--------------------------------------------------------------------------------------------------695 //--------------------------------------------------------------------------------------------------699 //--------------------------------------------------------------------------------------------------821 //--------------------------------------------------------------------------------------------------825 //--------------------------------------------------------------------------------------------------991 //--------------------------------------------------------------------------------------------------995 //--------------------------------------------------------------------------------------------------999 //--------------------------------------------------------------------------------------------------1003 //--------------------------------------------------------------------------------------------------1007 //--------------------------------------------------------------------------------------------------1011 //--------------------------------------------------------------------------------------------------1015 //--------------------------------------------------------------------------------------------------1025 //--------------------------------------------------------------------------------------------------1027 (1034 //--------------------------------------------------------------------------------------------------1043 //--------------------------------------------------------------------------------------------------1045 (1050 //--------------------------------------------------------------------------------------------------1056 //--------------------------------------------------------------------------------------------------1066 //--------------------------------------------------------------------------------------------------1070 //--------------------------------------------------------------------------------------------------1077 //--------------------------------------------------------------------------------------------------1087 //--------------------------------------------------------------------------------------------------1093 //--------------------------------------------------------------------------------------------------1105 //--------------------------------------------------------------------------------------------------1115 //--------------------------------------------------------------------------------------------------1120 * E.164 numbers can have a maximum of fifteen digits and are usually written with a '+' prefix.1126 * @note If telephone destination number is too long is too long (max LE_MDMDEFS_PHONE_NUM_MAX_LEN1132 //--------------------------------------------------------------------------------------------------1142 //--------------------------------------------------------------------------------------------------1159 //--------------------------------------------------------------------------------------------------1169 //--------------------------------------------------------------------------------------------------1183 //--------------------------------------------------------------------------------------------------1196 //--------------------------------------------------------------------------------------------------1211 //--------------------------------------------------------------------------------------------------1224 //--------------------------------------------------------------------------------------------------1232 * @note If length of the data is too long (max LE_SMS_PDU_MAX_BYTES bytes), it is a fatal error,1238 //--------------------------------------------------------------------------------------------------1251 //--------------------------------------------------------------------------------------------------1266 //--------------------------------------------------------------------------------------------------1273 //--------------------------------------------------------------------------------------------------1288 //--------------------------------------------------------------------------------------------------1301 //--------------------------------------------------------------------------------------------------1313 //--------------------------------------------------------------------------------------------------1320 //--------------------------------------------------------------------------------------------------1331 //--------------------------------------------------------------------------------------------------1344 //--------------------------------------------------------------------------------------------------1353 //--------------------------------------------------------------------------------------------------1360 //--------------------------------------------------------------------------------------------------1368 * @note If telephone destination number is too long is too long (max LE_MDMDEFS_PHONE_NUM_MAX_LEN1373 //--------------------------------------------------------------------------------------------------1389 //--------------------------------------------------------------------------------------------------1398 //--------------------------------------------------------------------------------------------------1414 //--------------------------------------------------------------------------------------------------1426 //--------------------------------------------------------------------------------------------------1433 //--------------------------------------------------------------------------------------------------1444 //--------------------------------------------------------------------------------------------------1451 //--------------------------------------------------------------------------------------------------1460 //--------------------------------------------------------------------------------------------------1467 //--------------------------------------------------------------------------------------------------1478 //--------------------------------------------------------------------------------------------------1488 //--------------------------------------------------------------------------------------------------1499 //--------------------------------------------------------------------------------------------------1509 //--------------------------------------------------------------------------------------------------1513 * Output parameter is updated with the Telephone number. If the Telephone number string exceeds1524 //--------------------------------------------------------------------------------------------------1537 //--------------------------------------------------------------------------------------------------1542 * value of 'len' parameter, a LE_OVERFLOW error code is returned and 'timestamp' is filled until1552 //--------------------------------------------------------------------------------------------------1567 //--------------------------------------------------------------------------------------------------1571 * @return Number of characters for text and UCS2 messages, or the length of the data in bytes for1577 //--------------------------------------------------------------------------------------------------1584 //--------------------------------------------------------------------------------------------------1589 * exceeds the value of 'len' parameter, LE_OVERFLOW error code is returned and 'text' is filled1598 //--------------------------------------------------------------------------------------------------1611 //--------------------------------------------------------------------------------------------------1626 //--------------------------------------------------------------------------------------------------1639 //--------------------------------------------------------------------------------------------------1653 //--------------------------------------------------------------------------------------------------1666 //--------------------------------------------------------------------------------------------------1671 * in bytes. If the PDU data exceed the value of 'len' input parameter, a LE_OVERFLOW error code is1681 //--------------------------------------------------------------------------------------------------1694 //--------------------------------------------------------------------------------------------------1703 //--------------------------------------------------------------------------------------------------1710 //--------------------------------------------------------------------------------------------------1724 //--------------------------------------------------------------------------------------------------1731 //--------------------------------------------------------------------------------------------------1739 //--------------------------------------------------------------------------------------------------1745 //--------------------------------------------------------------------------------------------------1754 //--------------------------------------------------------------------------------------------------1761 //--------------------------------------------------------------------------------------------------1772 //--------------------------------------------------------------------------------------------------1779 //--------------------------------------------------------------------------------------------------1790 //--------------------------------------------------------------------------------------------------1797 //--------------------------------------------------------------------------------------------------1807 //--------------------------------------------------------------------------------------------------1814 //--------------------------------------------------------------------------------------------------1821 //--------------------------------------------------------------------------------------------------1828 //--------------------------------------------------------------------------------------------------1835 //--------------------------------------------------------------------------------------------------1842 //--------------------------------------------------------------------------------------------------1846 * Output parameter is updated with the SMS Service center address. If the Telephone number string exceeds1856 //--------------------------------------------------------------------------------------------------1866 //--------------------------------------------------------------------------------------------------1871 * E.164 numbers can have a maximum of fifteen digits and are usually written with a '+' prefix.1877 * @note If the SMS center address number is too long (max LE_MDMDEFS_PHONE_NUM_MAX_LEN digits), it1880 //--------------------------------------------------------------------------------------------------1887 //--------------------------------------------------------------------------------------------------1895 //--------------------------------------------------------------------------------------------------1901 //--------------------------------------------------------------------------------------------------1909 //--------------------------------------------------------------------------------------------------1915 //--------------------------------------------------------------------------------------------------1923 //--------------------------------------------------------------------------------------------------1929 //--------------------------------------------------------------------------------------------------1937 //--------------------------------------------------------------------------------------------------1943 //--------------------------------------------------------------------------------------------------1951 //--------------------------------------------------------------------------------------------------1961 //--------------------------------------------------------------------------------------------------1969 //--------------------------------------------------------------------------------------------------1979 //--------------------------------------------------------------------------------------------------1987 //--------------------------------------------------------------------------------------------------1993 //--------------------------------------------------------------------------------------------------2002 //--------------------------------------------------------------------------------------------------2015 //--------------------------------------------------------------------------------------------------2024 //--------------------------------------------------------------------------------------------------2037 //--------------------------------------------------------------------------------------------------2045 //--------------------------------------------------------------------------------------------------void le_sms_Delete(le_sms_MsgRef_t msgRef)Unassigned (unallocated) number.Definition: le_sms_interface.h:828Definition: le_sms_interface.h:761le_result_t le_sms_GetCellBroadcastId(le_sms_MsgRef_t msgRef, uint16_t *messageIdPtr)Definition: le_sms_interface.h:776Card Application Toolkit Protocol Teleservice.Definition: le_sms_interface.h:687Definition: le_sms_interface.h:757void(* le_sms_CallbackResultFunc_t)(le_sms_MsgRef_t msgRef, le_sms_Status_t status, void *contextPtr)Definition: le_sms_interface.h:1027le_result_t le_sms_ClearCdmaCellBroadcastServices(void)Message saved in the message storage has not been sent.Definition: le_sms_interface.h:524General News International.Definition: le_sms_interface.h:612(U)SIM data download errorDefinition: le_sms_interface.h:976Command cannot be actioned.Definition: le_sms_interface.h:925Short Message Type 0 not supported.Definition: le_sms_interface.h:906le_sms_ErrorCode3GPP2_t le_sms_Get3GPP2ErrorCode(le_sms_MsgRef_t msgRef)Definition: le_sms_interface.h:915le_result_t le_sms_GetSmsCenterAddress(char *tel, size_t telNumElements)le_result_t le_sms_ClearCellBroadcastIds(void)Definition: le_sms_interface.h:750void le_sms_MarkUnread(le_sms_MsgRef_t msgRef)le_sms_MsgRef_t le_sms_Create(void)Entertainment News Regional.Definition: le_sms_interface.h:642Definition: le_sms_interface.h:725le_result_t le_sms_GetTimeStamp(le_sms_MsgRef_t msgRef, char *timestamp, size_t timestampNumElements)Definition: le_sms_interface.h:739Definition: le_sms_interface.h:876Unspecified TP-Command error.Definition: le_sms_interface.h:931Definition: le_sms_interface.h:713Destination out of order.Definition: le_sms_interface.h:846A terminal problem other than described above.Definition: le_sms_interface.h:754Definition: le_sms_interface.h:765size_t le_sms_GetUserdataLen(le_sms_MsgRef_t msgRef)Definition: le_sms_interface.h:792le_result_t le_sms_SetTimeout(le_sms_MsgRef_t msgRef, uint32_t timeout)void le_sms_RemoveRxMessageHandler(le_sms_RxMessageHandlerRef_t addHandlerRef)Local Airplane Flight Schedules.Definition: le_sms_interface.h:657void le_sms_GetErrorCode(le_sms_MsgRef_t msgRef, le_sms_ErrorCode_t *rpCausePtr, le_sms_ErrorCode_t *tpCausePtr)A network problem other than identified above.Definition: le_sms_interface.h:722le_result_t le_sms_ActivateCellBroadcast(void)Resources unavailable, unspecified.Definition: le_sms_interface.h:867le_sms_MsgRef_t le_sms_GetNext(le_sms_MsgListRef_t msgListRef)Definition: le_sms_interface.h:709le_sms_MsgListRef_t le_sms_CreateRxMsgList(void)The originating MIN is not recognized.Definition: le_sms_interface.h:773Definition: le_sms_interface.h:729le_result_t le_sms_ActivateCdmaCellBroadcast(void)le_result_t le_sms_GetBinary(le_sms_MsgRef_t msgRef, uint8_t *binPtr, size_t *binNumElementsPtr)The SMS Destination Address is invalid.Definition: le_sms_interface.h:706Resources facility not implemented.Definition: le_sms_interface.h:873Message present in the message storage has not been read.Definition: le_sms_interface.h:518Invalid mandatory information.Definition: le_sms_interface.h:883Cannot replace short message.Definition: le_sms_interface.h:909le_result_t le_sms_GetSenderTel(le_sms_MsgRef_t msgRef, char *tel, size_t telNumElements)Definition: le_sms_interface.h:889le_result_t le_sms_DeactivateCellBroadcast(void)Business News Regional.Definition: le_sms_interface.h:618le_result_t le_sms_GetCellBroadcastSerialNumber(le_sms_MsgRef_t msgRef, uint16_t *serialNumberPtr)Entertainment News International.Definition: le_sms_interface.h:648void le_sms_DisconnectService(void)le_sms_MsgRef_t le_sms_SendPdu(const uint8_t *pduPtr, size_t pduNumElements, le_sms_CallbackResultFunc_t handlerPtr, void *contextPtr)le_result_t le_sms_TryConnectService(void)le_result_t le_sms_SetPDU(le_sms_MsgRef_t msgRef, const uint8_t *pduPtr, size_t pduNumElements)le_result_t le_sms_AddCellBroadcastIds(uint16_t fromId, uint16_t toId)le_result_t le_sms_DeleteFromStorage(le_sms_MsgRef_t msgRef)Operator determined barring.Definition: le_sms_interface.h:831le_result_t le_sms_SendAsync(le_sms_MsgRef_t msgRef, le_sms_CallbackResultFunc_t handlerPtr, void *contextPtr)le_sms_Status_t le_sms_GetStatus(le_sms_MsgRef_t msgRef)Resources facility not subscribed.Definition: le_sms_interface.h:870Definition: le_sms_interface.h:800Business News National.Definition: le_sms_interface.h:621le_result_t le_sms_GetPDU(le_sms_MsgRef_t msgRef, uint8_t *pduPtr, size_t *pduNumElementsPtr)Definition: le_sms_interface.h:784le_result_t le_sms_SetText(le_sms_MsgRef_t msgRef, const char *text)Definition: le_sms_interface.h:702size_t le_sms_GetPDULen(le_sms_MsgRef_t msgRef)le_result_t le_sms_DeactivateCdmaCellBroadcast(void)No SMS storage capability in (U)SIM.Definition: le_sms_interface.h:964struct le_sms_RxMessageHandler * le_sms_RxMessageHandlerRef_tDefinition: le_sms_interface.h:1012le_result_t le_sms_RemoveCdmaCellBroadcastServices(le_sms_CdmaServiceCat_t serviceCat, le_sms_Languages_t language)SM Rejected-Duplicate SM.Definition: le_sms_interface.h:952le_sms_MsgRef_t le_sms_GetFirst(le_sms_MsgListRef_t msgListRef)Definition: le_sms_interface.h:893Delivery is not currently possible.Definition: le_sms_interface.h:743Definition: le_sms_interface.h:717le_sms_MsgRef_t le_sms_SendText(const char *destStr, const char *textStr, le_sms_CallbackResultFunc_t handlerPtr, void *contextPtr)Definition: le_sms_interface.h:780Definition: le_sms_interface.h:796Message class not supported.Definition: le_sms_interface.h:919le_result_t le_sms_RemoveCellBroadcastIds(uint16_t fromId, uint16_t toId)le_result_t le_sms_SetBinary(le_sms_MsgRef_t msgRef, const uint8_t *binPtr, size_t binNumElements)void le_sms_ConnectService(void)le_result_t le_sms_GetUCS2(le_sms_MsgRef_t msgRef, uint16_t *ucs2Ptr, size_t *ucs2NumElementsPtr)le_result_t le_sms_SetSmsCenterAddress(const char *tel)le_result_t le_sms_SetUCS2(le_sms_MsgRef_t msgRef, const uint16_t *ucs2Ptr, size_t ucs2NumElements)Definition: le_sms_interface.h:746Message saved in the message storage has been sent.Definition: le_sms_interface.h:521Sementically incorect message.Definition: le_sms_interface.h:880Definition: le_sms_interface.h:788le_result_t le_sms_AddCdmaCellBroadcastServices(le_sms_CdmaServiceCat_t serviceCat, le_sms_Languages_t language)(U)SIM Application Toolkit busyDefinition: le_sms_interface.h:973Business News International.Definition: le_sms_interface.h:624Definition: le_sms_interface.h:804le_result_t le_sms_SetDestination(le_sms_MsgRef_t msgRef, const char *dest)le_sms_Format_t le_sms_GetFormat(le_sms_MsgRef_t msgRef)int32_t le_sms_GetPlatformSpecificErrorCode(le_sms_MsgRef_t msgRef)Entertainment News Local.Definition: le_sms_interface.h:639Definition: le_sms_interface.h:769Employment Opportunities.Definition: le_sms_interface.h:675le_sms_Type_t le_sms_GetType(le_sms_MsgRef_t msgRef)Message present in the message storage has been read.Definition: le_sms_interface.h:515void(* le_sms_RxMessageHandlerFunc_t)(le_sms_MsgRef_t msgRef, void *contextPtr)Definition: le_sms_interface.h:1045le_result_t le_sms_Send(le_sms_MsgRef_t msgRef)void le_sms_DeleteList(le_sms_MsgListRef_t msgListRef)le_result_t le_sms_GetText(le_sms_MsgRef_t msgRef, char *text, size_t textNumElements)Telematic interworking not supported.Definition: le_sms_interface.h:903le_sms_RxMessageHandlerRef_t le_sms_AddRxMessageHandler(le_sms_RxMessageHandlerFunc_t handlerPtr, void *contextPtr)Definition: le_sms_interface.h:735Message type nonexistent or not implemented.Definition: le_sms_interface.h:886Entertainment News National.Definition: le_sms_interface.h:645Short message transfer rejected.Definition: le_sms_interface.h:840void le_sms_MarkRead(le_sms_MsgRef_t msgRef)Sports News International.Definition: le_sms_interface.h:636