Error 4 when sending UDP messages with Vodafone

I have a couple of SARA AFF modules, which I want to use with Vodafone SIM cards in the Netherlands. I am able to work through the example AT commands presented here for Vodafone: http://support.sodaq.com/sodaq-one/at/, except for the last one (AT+NSOSTF=…), for which I get an error. With AT+CMEE=1, I can see that it is Error 4, which according to the AT commands manual is “Operation not supported”.

If I exchange the Vodafone SIM card for a T-mobile card, I am able to send a UDP datagram, and I have verified data arriving at my server. In one occasion, when taking both a new AFF board and a new Vodafone SIM card, I was able to send data. However, a few days later also this combination didn’t work any more.

Any ideas what may be wrong?

@Ewoud_Smeur,

Can you check if you have the firmware version mentioned on this page or newer?
https://support.sodaq.com/sodaq-one/firmware-upgrade/

What does the module say about these AT commands?:
If you have an N2 module:
AT+NSOST=0,“YOUR_SERVER_IP”,YOUR_SERVER_PORT,12,“48656c6c6f20576f726c6421”
If you have an R4 module
AT+USOST=0,“YOUR_SERVER_IP”,YOUR_SERVER_PORT,12,“48656c6c6f20576f726c6421”

Kind regards,
Jan

@Jan,

Thanks for your response. The response to the ATI9 message is 06.57,A07.03 on module 02X-00 as mentioned on the webpage.

I had tried the NSOST command before, and verified again today. I get the same error: +CME ERROR: 4 (operation not supported)

Kind regards,

Ewoud

If we test this on one of our boards, it works without problems:

We tried:

AT+NSOSTF=0,“37.97.216.22”,3000,0x200,12,“48656c6c6f20576f726c6421”

and it all goes fine. Can you maybe give us your complete AT sequence?

Which sim card are you using? (Did youy get it through SODAQ?)

My full sequence is just like described on the AT Commands webpage:

AT+CSCON=1

OK
AT+CEREG=5

OK
AT+NPSMR=1

OK
AT+CPSMS=1,“00000001”,“00000001”

OK
AT+NCONFIG=“CR_0354_0338_SCRAMBLING”,“TRUE”

OK
AT+NCONFIG=“CR_0859_SI_AVOID”,“FALSE”

OK
AT+CFUN=0

OK

+CEREG: 0,“0000”,“0”,7,

+NPSMR: 0
AT+CGDCONT=1,“IP”,“nb.inetd.gdsp”

OK
AT+CFUN=1

+CEREG: 0,“0000”,“0”,7,

OK
AT+NBAND=20

OK
AT+CFUN=0

OK

+NPSMR: 0
AT+CFUN=1

+CEREG: 0,“0000”,“0”,7,

OK
AT+COPS=1,2,“20404”

OK

+CEREG: 2,“0000”,“0”,7,

+CSCON: 1

+CEREG: 5,“2BBF”,“18CCA67”,7,“00000001”,“00011000”
AT+CGATT?

+CGATT: 1

OK

+CSCON: 0

+NPSMR: 1
AT+NSOCR=“DGRAM”,17,16666,0

0

OK
AT+NSOSTF=0,“37.97.216.22”,3000,0x200,12,“48656c6c6f20576f726c6421”

ERROR
AT+CMEE=1

OK
AT+NSOSTF=0,“37.97.216.22”,3000,0x200,12,“48656c6c6f20576f726c6421”

+CME ERROR: 4

Where I used your ip address to see if that would change anything, but no luck. The sim card is from Vodafone, but is acquired as part of an NB-IoT evaluation pack and not through SODAQ. Here is a photograph of my setup:

@Ewoud_Smeur

I was able to reproduce your issue.
When I am using an other Vodafone simcard with a different APN the sim is able to connect to the network.
I could open a socket but I also got the +CME ERROR: 4 when sending a packet.

  1. Do you use the correct APN?
  2. Is our IP whitelisted for your SIM?

Kind regards,
Jan

@Jan
Thanks for your message! Indeed I was not using the correct APN, it should be ep.inetd.gdsp instead. Good catch, thanks! Now the module returns

0,12
OK

Which should indicate a successfully sent datagram. In the Vodafone m2m portal I can now see that the module was indeed connected (only after several hours), but it says zero bytes are transmitted. At my server, I receive nothing, while I verified that I can connect to the specified port via UDP from my laptop.

On the Vodafone portal, under History/Activiity list I can see several datasessions on one day, seemingly one for each message I tried to send, ending only when the next one starts, all with zero bytes:

The IP address of my server should be whitelisted, but perhaps something is wrong there? Any clues?