Failing TCP connection on SODAQ SARA SFF R412M

Hi there,

We’re trying to get this module to open a TCP socket (google in the example)
At the critical point of AT+USOWR=0,“8.8.8.8”,443 we get
**+CME ERROR: Operation not allowed

Vodafone UK using an NBIoT SIM.

Here’s the module info (ATI)
Manufacturer: u-blox
Model: SARA-R412M-02B
Revision: M0.10.00 [Mar 28 2019 17:13:41]
SVN: 05
IMEI: 354679091577315

Here is the list of commands at system startup

AT+CFUN=15
AT+CPSMS=0
AT+CEDRXS=0
ATE0
AT+UMNOPROF=19
‭AT+UBANDMASK="524420"‬ // This responds ERROR
AT+URAT=8
AT+CEREG=3
AT+CMEE=2
AT+CGDCONT=1,“IP”,“ep.inetd.XXXX”
AT+CFUN=15
AT+CFUN=1

Eventually, AT+CSQ returns CSQ: 8,99

and

AT+CGCONTRDP=1
CGCONTRDP: 1,5,ep.inetd.XXXX,10.21.XXX.XXX,10.105.16.254,10.105.144.254

So we have an IP and DNS items.

AT+USOCR=6 returns +USOCR: 0 (socket 0 ready for use)

HOWEVER, trying to open a TCP socket (to google https for example) AT+USOWR=0,“8.8.8.8”,443 returns

+CME ERROR: Operation not allowed (manual says " The MT is in a state which does not allow performing the entered command")

Am I missing something? It seems we have a valid Vodafone connection, an IP address, Vodafone console recognises the connection and a socket to use, but yet the Operation is not allowed.

Also the battery is charged and connected which I know is a requirement.

I would be very grateful for any help with this.

Best regards
Gary

For anyone watching this thread. I found the solution.
I should have used the commands in the following order

AT+USOCR=6 // Create TCP socket
AT+USOCO=0,“1,2,3,4”,6700 // Open connection to end point
AT+USOWR=0,5,“Hello” // Send Data
AT+USOCL=0 // Close socket

1 Like