EC21-E (quecopen) SMS result

Hello Everybody,

I’m using EC21-E (quecopen version) to send some SMS and I use this function

iResult = QL_SMS_Send_Sms(SMS_handler, &t_sms_info);

Sometimes it returns “3” and SMS is not sent. What does it mean?
There isn’t any documentation about the return errors in ql_mcm_sms.h header file.

Thanks and regards

Hi @davdav

MCM_ERROR_GENERIC_V01 = 3, /**< Generic error. */
Please try to use AT command to see if it is normal.

/* Use ATE1 to enable echo mode */
[2022-05-03 17:39:20:868_S:] ATE1
[2022-05-03 17:39:20:924_R:] ATE1
[2022-05-03 17:39:20:924_R:] OK

/* use AT+CPIN? to query the SIM card status : SIM card inserted or not, locked or unlocked */
[2022-05-03 17:39:20:928_S:] AT+CPIN?
[2022-05-03 17:39:20:981_R:] AT+CPIN?
[2022-05-03 17:39:20:981_R:] +CPIN: READY

[2022-05-03 17:39:20:981_R:] OK

/* Use AT+CMGF=1 to set text mode */
[2022-05-03 17:39:20:984_S:] AT+CMGF=1
[2022-05-03 17:39:21:036_R:] AT+CMGF=1
[2022-05-03 17:39:21:036_R:] OK

/* Use AT+CSMP to set SMS parameter for text mode (default setting: AT+CSMP=17,167,0,0) */
[2022-05-03 17:39:21:038_S:] AT+CSMP=17,167,0,0
[2022-05-03 17:39:21:093_R:] AT+CSMP=17,167,0,0
[2022-05-03 17:39:21:202_R:] OK

/* Use AT+CSCS to set character type (default setting:AT+CSCS=“GSM”) */
[2022-05-03 17:39:21:205_S:] AT+CSCS=“GSM”
[2022-05-03 17:39:21:259_R:] AT+CSCS=“GSM”
[2022-05-03 17:39:21:259_R:] OK

/* AT+CMGS=“18305510804”, and then wait for the">" appears, input your message after the “>”, use <CTRL+Z> or 1A (HEX String) to send a message,when receive +CMGS: and OK , means the message has been sent successfully. */
[2022-05-03 17:39:21:265_S:] AT+CMGS=“your phone number”
[2022-05-03 17:39:21:318_R:] AT+CMGS=“your phone number”
[2022-05-03 17:39:21:318_R:] > hello
[2022-05-03 17:39:21:759_R:] +CMGS: 151

[2022-05-03 17:39:21:759_R:] OK
[2022-05-03 17:41:29:403_S:] at+qgmr
[2022-05-03 17:41:29:466_R:] at+qgmr
[2022-05-03 17:41:29:466_R:] EC21EFAR06A05M4G_OCPU_20.001.20.001

[2022-05-03 17:41:29:466_R:] OK

Dear @Puck-Q ,

It seems the problem is related if modem is not registered in 4G technology (i.e. AT+CEREG? returns +CEREG:2,4).

By the way, I’m trying to send SMS from QuecOpen application using AT+CMGS command (following “atc pipe” example) but it seems not possible to send CTRL-Z (0x1A) characters to escape the transmission of text. /dev/smd9 port seems not responsive anymore after it returns the “>” prompt.

Thanks

Hi @davdav

Please try ‘\x1A’.
image

Thanks