BG95-M2 Failed to send SMS

Hello Everyone I am tring to send SMS to my germany phone number using BG95-M2 but i always get error 332
i am using vodafone iot easy connect NB-IOT simcard.

here is my list of at commands
AT

OK
AT+CFUN=0

OK

+CEREG: 0
AT+QCFG=“nwscanseq”,0203,1

OK
AT+QCFG=“iotopmode”,2,1

OK
AT+QCFG=“band”,0,80084,80084

OK
AT+CFUN=1

OK

+CPIN: READY

+QUSIM: 1

+CREG: 2

+CEREG: 2

+QIND: SMS DONE
AT+CGDCONT=1,“IP”,“lpwa.vodafone.com

OK

AT+CEREG=1

OK

+CREG: 0

+CEREG: 5
AT+CREG=1

OK
AT+QNWINFO

+QNWINFO: “eMTC”,“26201”,“LTE BAND 3”,1300

OK
AT+CEREG?

+CEREG: 1,5

OK
AT+CMGF=1

OK
AT+CSCS=“GSM”

OK
AT+CMGS=“+49XXXXXXXXXXX”

hello

+CMS ERROR: 332

can anyone guide me why am i getting like this.

Hi @Dhola

Could you please check AT+QCFG=“servicedomain” return value?

B R
Linkin

Hi @Linkin-Q

AT+QCFG=“servicedomain” = 1
PS only

Regardsm
Bhavin

Try to set it to 2 and reboot module. then try send SMS again.

BR
Linkin

Hi @Linkin-Q

Yes it i worked. but everytime a tried to send sms , I get somwthing like this.
AT+CMGS=“+491764…”

hello and CTRL + Z,
+CMGS:51,
sometimes +CMGS:47, or 48 soemhing like that.
and i am not getting sms on my phone.

Still need to configures any oither settings ?

Regards,
Bhavin

That means the SMS has been sent, and 51 is the message reference number for that SMS.

The message reference number increments by 1 for each SMS sent using that SIM (until the count rolls over and starts again). The last number used is stored on the SIM.

Is the SMS received back on the modem if you self-address it?

Is SMS sending included with your SIM? If not, the SMS may be accepted by the SMSC, but discarded.

@snowgum
Is the SMS received back on the modem if you self-address it?

How can i self address it ? for me AT+CNUM is +CNUM:,“”,255

What do you mean by SMS sensing included with your SIM ?

By addressing it to the SIM’s MSISDN. This is the SIM’s phone number. It will have been provided to you with the SIM.

You need to find out your MSISDN. Then you can write it to the SIM so that AT+CNUM reports it back to you.

Does your SIM come with SMS credit, so that you can send SMSs to other numbers?

@snowgum ,
I dont have MSISDN number. do i need to contect my sim provider ?
I am using vodafone IoT Easy Connect NB-IoT sim card.
My sim has 250 sms credit.

You should have no problem reading SMSs on the phone you’re sending to in that case.

Try sending to a different phone.

Once you can read an SMS sent from your modem you’ll see its MSISDN as the sender.

@snowgum
I ma using vodafone eaasyconnect iot sim card. does M2M sim card has any number ?
may be i need http server for SMS reception.
I have this instrction in my sim user mnaual.
"
Peer-to-peer communication for SMS is not supported. Instead, you can send an SMS-MO to a server or to an IP/URL. Our Vodafone Easy Connect infrastructure serves as an HTTPS client. Your HTTPS server must be able to receive the SMS. Please enter the IP/URL and optionally the port and/or the application path for sending the SMS".
Regards,
Bhavin

It will have an MSISDN (phone number). But you might not need to know what it is.

I guess that’s why it wasn’t delivered to the phone you addressed it to.

Unless you’ve got documentation on how to “send an SMS-MO to a server or to an IP/URL” I doubt I can be of further help.

In a reasonable time, I was not able to find that documentation on-line.

@snowgum
Thank you for all the suggestion.