I am currently trying to connect my board with a TCP server but I receive the “+CME ERROR: Operation not allowed.”
I am doing this AT commands:
check_with_cmd(“AT+CFUN=1\r\n”, “OK”, CMD);
check_with_cmd(“AT+CGDCONT=1, “IP”, “internetm2m”\r\n” , “OK”, CMD);
check_with_cmd(“AT+COPS=1,2,“26806”\r\n”, “”, CMD);
check_with_cmd(“AT+CGATT?\r\n”, “”, CMD);
check_with_cmd(“AT+USOCR=6\r\n”, “”, CMD);
check_with_cmd(“AT+USOCO=1, “x.x.x.x”,20000\r\n”, “”, CMD);
check_with_cmd(“AT+USOWR=1,5,“TESTE”\r\n”, “”, CMD);
the result is:
11:23:52.501 -> AT+USOWR=1,5,“TESTE”
11:23:52.501 -> +CME ERROR: Operation not allowed
Here are a few thoughts, or rather, questions:
- which module and FW are you using? Are you using NB-IoT, Cat-M or 2G?
- assuming you are on NB-IoT and using a Sara R410 or similar:
can you send the output of these commands to see if you are connected and how the radio is at your place?
Can you also check if you are trying to send data in Hex mode?
Finally, are you sure that the USOCR command is always returning socket 1? Or will the program take the socket from the USOCR output?
I am using NB-IoT. I already got the connection and send and receive messages. I think I did not wait time enough to the connection establish. I was reading the documentation and the Wio Lte Cat M1/NB-IoT just started sending messages to the server.
Thank you for your reply.