Ai-Thinker-Open / GPRS_C_SDK

Ai-Thinker A9/A9G GPRS (with GPS(A9G)) module C development SDK
https://ai-thinker-open.github.io/GPRS_C_SDK_DOC
MIT License
449 stars 236 forks source link

Access phonebook from simcard using SDK #322

Open faithware opened 5 years ago

faithware commented 5 years ago

1. SDK version(SDK 版本)

{

the latest one

}


2. In what kind of operation problems appear, and how to reproduce the problem ?(什么样的操作步骤问题会出现,是否是稳定复现,如何复现问题?)

{ I can't find a way to get to read sim card memory for phonebook contact.

}


Johhnzero commented 5 years ago

SMS_GetStorageInfo,uset his。

ifndef __API_SMDH

define __API_SMDH

include

/// \brief bool SMS_SetFormat(SMS_Format_t format, SIM_ID_t simID); /// \param SMS_Format_t format , set the sms format /// \param SIM_ID_t simID , set the sim id /// \return bool ,

define SMS_SetFormat CSDK_FUNC(SMS_SetFormat)

/// \brief bool SMS_SetParameter(SMS_Parameter_t smsParameter,SIM_ID_t simID); /// \param SMS_Parameter_t smsParameter , get sms parameter /// \param SIM_ID_t simID , set the sim id /// \return bool ,

define SMS_SetParameter CSDK_FUNC(SMS_SetParameter)

/// \brief bool SMS_SendMessage(const char phoneNumber, uint8_t message, uint8_t pduLength, SIM_ID_t simID); /// \param const char phoneNumber , the phone number sent sms to /// \param uint8_t message , the meassage sented /// \param uint8_t length , length /// \param SIM_ID_t simID , set the sim id /// \return bool ,

define SMS_SendMessage CSDK_FUNC(SMS_SendMessage)

define SMS_SetServerCenterInfo CSDK_FUNC(SMS_SetServerCenterInfo)

define SMS_GetServerCenterInfo CSDK_FUNC(SMS_GetServerCenterInfo)

define SMS_ListMessageRequst CSDK_FUNC(SMS_ListMessageRequst)

define SMS_DeleteMessage CSDK_FUNC(SMS_DeleteMessage)

define SMS_GetStorageInfo CSDK_FUNC(SMS_GetStorageInfo)

define SMS_SetNewMessageStorage CSDK_FUNC(SMS_SetNewMessageStorage)

/// \brief const char SMS_GetCharset(Charset_t); /// \param HANDLE hSem , /// \return const char , get the charset

define SMS_GetCharset CSDK_FUNC(SMS_GetCharset)

define SMS_Unicode2LocalLanguage CSDK_FUNC(SMS_Unicode2LocalLanguage)

define SMS_LocalLanguage2Unicode CSDK_FUNC(SMS_LocalLanguage2Unicode)

endif