A6lib icon indicating copy to clipboard operation
A6lib copied to clipboard

Received SMS wont display on Serial Monitor

Open vanjsy opened this issue 7 years ago • 15 comments

Hi, thanks for this awesome library of yours. I've tried this, everything's working fine. But the only problem is that, the text messages that I send to GSM A6 wont display on the serial monitor. Do you happen to encounter this problem? Thank you.

vanjsy avatar Jan 06 '18 07:01 vanjsy

Hmm, I can't say I have, I'm afraid :/ I did encounter various problems with the A6 chip, it doesn't seem to be the most reliable around. Please let me know or submit a PR if you manage to fix it.

skorokithakis avatar Jan 06 '18 12:01 skorokithakis

Thanks also for this lib, I have the same issue with my A7, I'm able to:

  • receive call
  • send sms

But I'm not able to receive sms

1technophile avatar Jan 27 '18 19:01 1technophile

just by changing storage location of SMS msg (line 72 of A6lib.cpp), I'm now able to receive SMS if (A6_OK != A6command("AT+CPMS=SM,SM,SM", "OK", "yy", A6_CMD_TIMEOUT, 2, NULL))

1technophile avatar Feb 04 '18 20:02 1technophile

@1technophile Thank you for the update! @vanjsy, does that work for you?

skorokithakis avatar Feb 04 '18 20:02 skorokithakis

Hi @skorokithakis , I didn't try it yet. Once I did I'll update you if it works, thank you.

vanjsy avatar Feb 05 '18 00:02 vanjsy

I dont have my ESP8266 with me though, but will this library works on Arduino Uno? If so, which part will i need to modify? Thanks.

vanjsy avatar Feb 05 '18 00:02 vanjsy

As far as I know, it works unmodified. Try the suggestion above to see if it works.

skorokithakis avatar Feb 05 '18 01:02 skorokithakis

Even using Arduino Uno?

vanjsy avatar Feb 05 '18 01:02 vanjsy

Yeah, it should work, but I haven't tried it personally.

skorokithakis avatar Feb 05 '18 01:02 skorokithakis

Hello, live message still not displaying when texting the GSM using my mobile.

vanjsy avatar Mar 14 '18 06:03 vanjsy

I know, please don't post messages like that.

skorokithakis avatar Mar 14 '18 07:03 skorokithakis

Like what sir? Apology.

vanjsy avatar Mar 14 '18 08:03 vanjsy

Comments that don't add any new information.

skorokithakis avatar Mar 14 '18 10:03 skorokithakis

Here are some useful info about SMS Storage area: https://www.developershome.com/sms/cpmsCommand.asp As @1technophile mentioned, you should set Preferred Storage to SIM (mine can handle about 15 and don't know why ME doesn't work!).maybe Preferred Storage should be default to SM or control by some Macros. And remember that SMS index for A6 & A6 mini start at 1! This lib definitely needs some modification to remove blocking operations, enabling async and callbacks , adding UTF8 etc.

IMAN4K avatar Mar 18 '18 06:03 IMAN4K

you should set Preferred Storage to SIM

I am a bit wary of doing that because I remember my module working with ME but not with SM, and I don't have my A6 to test with, so I can't verify that this fixes things for more people than ME... There's a comment in the code to change that if it doesn't work, but I agree that it would be better as a parameter. Can someone create a PR with storage selection, perhaps?

And remember that SMS index for A6 & A6 mini start at 1!

Is this currently set to 0 somewhere? I didn't find any mentions, but I'd appreciate someone pointing out any bugs.

This lib definitely needs some modification to remove blocking operations, enabling async and callbacks , adding UTF8 etc.

PRs for that would be very welcome!

@vanjsy Does it not work for you even if you set the storage to SM?

skorokithakis avatar Mar 19 '18 13:03 skorokithakis