Go Down

Topic: A6 gsm 'AT+CMGR' command (Read 1 time) previous topic - next topic

YGSH

Jul 26, 2017, 09:25 am Last Edit: Jul 26, 2017, 10:14 am by YGSH
Hello everyone...
     1)      Facing a problem with A6 gsm module and don't know the solution.
      When module receives new sms, it properly returns   
   +CIEV: "MESSAGE",1

   +CMTI: "SM",0

           Now if i use AT+CMGR=0 to read the sms, an error occurs +CME ERROR:58(don't know what it means?).
           If again i tried the same AT command another error occurs +CMS ERROR:321
 which means Invalid memory index.
           So don't know how to read new sms :(

     2)   Everytime module receives new sms, it is saving on same location 0 .(which i think sholud be increased everytime as like sim800)

       I also have sim800 module in which AT+CMGR command is working fine. But A6 creating a problem. :(  :(

FarooqGul

I have the same problem, message looks like same

+CMT: "1234567890" 06/08/2017 12:00:00

No SMS body is receiving the only Header is receiving. How you solved the problem.

lastchancename


Check the parameter values for +CMGR
I think you're asking the modem for 'RECEIVED READ' messages, whereas you want 'RECEIVED UNREAD'

Also try to understand TEXT mode vs PDU mode commands.
You may be better off not using the modem SMS memories, but processing the incoming messages as they arrive.

There are quite a few threads on here abut receiving SMS.  Only a few of them are well written!
Ask the right question, which can be hard for beginners, but this doesn't mean that google is broken.
Experienced responders have a nose for laziness, (they were beginners once)... expecting the poster to contribute to the learning experience.

Go Up