Reference
Last revision 2025/12/29
Library Specification-V1.0
Initialization part
- Sim800Cmd (): constructor with no arguments, applies only to using the TTS feature, instead of GSM function;
- Sim800Cmd (void (*pRf ()): the constructor with a pointer to function, applies to the TTS feature, and also enable GSM function;
- sim800init (): SIM800H module initialization, complete a series of initial commands;
- sim800open (): turn power on SIM800H;
- sim800close (): power down the SIM800H.
TTS Language part
- setTTSVolume (): set the volume parameter for 0~100;
- setTTSSpeed (): set the broadcast speed rate, the argument is 0~100;
- setTTSVmeSpd (): set the volume and speed simultaneously, the first parameter is volume, the second parameter is speed;
- setTTSParameter (): set the TTS volume, mode, speed, tone, and channel parameters. Please refer to the previous AT instruction;
- sendTTSUCS2Compulsory (char *_s, reModle_t _mdl): compulsory broadcasts, the first parameter is the content to be broadcast, the second is the mode;
- sendTTSUCS2Compulsory (char *_s, reModle_t _mdl, char _chl): compulsory broadcasts, the first parameter is the content to be broadcast, the second is the mode, and the third is a broadcast channel;
- sendTTSUCS2Speak (char *_s, reModle_t _mdl): non-mandatory broadcasts, the first parameter is the content to be broadcast, the second is the mode;
- sendTTSUCS2Speak (char *_s, reModle_t _mdl, char _chl): non-mandatory broadcasts, the first parameter is the content to be broadcast, the second is the mode, and the third is a broadcast channel;
- stopTTSSpeak (): stops the current broadcast;
- getTTSState (): Gets the current broadcast status, if it is broadcasting, then return 1, otherwise return 0.
Dial part
- callReadCSQ (UCHAR *PDA): get the current signal intensity, the *PDA is a buffer of return data, if the acquisition is successful, *PDA will be assigned a value, and the function returns 1, otherwise return 0;
- getCallnumber (char *pnbr): get caller ID, *PDA is a buffer of return data;
- DisplayPhoneNumber (reqmodle_t modle_t): turn on or off the caller ID, the argument is OPEN\CLOSE;
- dialTelephoneNumber (char *_s): call *_s for the number strings, be sure about number followed by ";";
- answerTelephone (void): answer the phone;
- cancelCall (void): hang up the phone;
DTMF part
- setDTMFenable (reqmodle_t modle_t): turn on or turn off the DTMF function, the argument is OPEN\CLOSE;
- setDTMFHandlefunction (void (*pDf ()): registere DTMF callback function, it will callback pDf function when DTMF data is received;
- getDTMFresult (char *PCH): get the DTMF data.
SMS part
- setSMSEnablePrompt (reqmodle_t modle_t): open or close the SMS function, the argument is OPEN\CLOSE;
- setSMSHandlefunction (void (*pDf ()): register message callback function when there are messages coming, callbacks to pDf function;
- getSMSID (char *str): Gets the current message number in the register;
- sendSMS (char *pnber, char *pData): send short messages, the first parameter is the number that is sent to, and the second argument is the data to be sent, remember that both are UCS2 encoding;
- readSMS (char *PADR, char *pData): read short messages, the first parameter is the text number to be read, and the second parameter is the return data buffer;
- deleteSMS (char *PADR): delete SMS, the parameter *PADR is the message number you want to delete.
Related Document
Was this article helpful?
