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.
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”
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:
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.
@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: