1
votes

I'm using a SIM800L GSM module connected over USB-Serial to my computer. When I try to send a SMS I got an error:

AT+CMGS="+4915xxxxxxxxx"
> Test (Ctrl+Z)
+CMS ERROR: Invalid number format (incomplete number)

Iā€™m obviously connected to the network because pin is entered +CREG an +COPS seems good.

AT+CPIN?
+CPIN: READY

OK
AT+CREG?
+CREG: 0,1

OK
AT+COPS?
+COPS: 0,0,"O2 (Germany)"

OK

As well I can receive SMS and see incoming calls. I set the module in sms text mode and use the coding GSM

AT+CMGF?
+CMGF: 1

OK
AT+CSCS?
+CSCS: "GSM"

OK

I try different number formats like "015xxxxxxxxx" or "004915xxxxxxxxx". Also I try different values for the optional parameter from +CMGS

Could anybody advise me what to do?

1
Its strange. can you share your code for sending sms? ā€“ dmSherazi
Mostly I send commands over a Serial-USB adapter from my PC. I also try an Arduino Uno with this code ā€“ Hambert

1 Answers

2
votes

To send SMS it was necessary for me to change the SMSC adress with the command AT+CSCA.

AT+CSCA="+491760000443",145

The SMSC you can found at your mobile operator. In my case Netzclub at O2 Germany.