Cme error operation not allowed

Hi, Using my Arduino MKR 1500 sending UDP messages results in randomly giving an error: "+CME ERROR: Operation not allowed". I use the example program (see below). Sometimes I get this me...

Hi @Rocketct , in the mean time I already changed y sketch a little bit by adding a separate connect function, but obviously I still get this CME ERROR message after a while.

This is the serial output:

23:19:35.788 -> Attempting to connect to the cellular network
23:19:40.115 -> AT

23:19:40.115 -> OK
23:19:40.218 -> AT

23:19:40.218 -> OK
23:19:40.218 -> AT+CMEE=0

23:19:40.218 -> OK
23:19:40.424 -> AT+CFUN=0

23:19:40.424 -> OK
23:19:40.630 -> AT+CPIN?

23:19:40.630 -> +CPIN: READY
23:19:40.630 -> 
23:19:40.630 -> OK
23:19:40.838 -> AT+CMGF=1

23:19:40.838 -> OK
23:19:41.044 -> AT+UDCONF=1,1

23:19:41.044 -> OK
23:19:41.215 -> AT+CTZU=1

23:19:41.215 -> OK
23:19:41.422 -> AT+CGDCONT=1,"IP",""

23:19:41.422 -> OK
23:19:41.630 -> AT+UAUTHREQ=1,0

23:19:41.630 -> OK
23:19:41.836 -> AT+CFUN=1

23:19:41.836 -> OK
23:19:42.041 -> AT+CEREG?

23:19:42.041 -> +CEREG: 0,0
23:19:42.041 -> 
23:19:42.041 -> OK
23:19:42.249 -> AT+CEREG?

23:19:42.249 -> +CEREG: 0,0
23:19:42.249 -> 
23:19:42.249 -> OK
23:19:42.456 -> AT+CEREG?

23:19:42.456 -> +CEREG: 0,0
23:19:42.456 -> 
23:19:42.456 -> OK
23:19:42.662 -> AT+CEREG?

23:19:42.662 -> +CEREG: 0,0
23:19:42.662 -> 
23:19:42.662 -> OK
23:19:42.834 -> AT+CEREG?

23:19:42.869 -> +CEREG: 0,0
23:19:42.869 -> 
23:19:42.869 -> OK
23:19:43.041 -> AT+CEREG?

23:19:43.041 -> +CEREG: 0,0
23:19:43.041 -> 
23:19:43.041 -> OK
23:19:43.247 -> AT+CEREG?

23:19:43.247 -> +CEREG: 0,0
23:19:43.247 -> 
23:19:43.247 -> OK
23:19:43.452 -> AT+CEREG?

23:19:43.452 -> +CEREG: 0,0
23:19:43.452 -> 
23:19:43.452 -> OK
23:19:43.659 -> AT+CEREG?

23:19:43.659 -> +CEREG: 0,0
23:19:43.659 -> 
23:19:43.659 -> OK
23:19:43.866 -> AT+CEREG?

23:19:43.866 -> +CEREG: 0,0
23:19:43.866 -> 
23:19:43.866 -> OK
23:19:44.070 -> AT+CEREG?

23:19:44.070 -> +CEREG: 0,0
23:19:44.070 -> 
23:19:44.070 -> OK
23:19:44.274 -> AT+CEREG?

23:19:44.274 -> +CEREG: 0,0
23:19:44.274 -> 
23:19:44.274 -> OK
23:19:44.479 -> AT+CEREG?

23:19:44.479 -> +CEREG: 0,0
23:19:44.479 -> 
23:19:44.479 -> OK
23:19:44.684 -> AT+CEREG?

23:19:44.684 -> +CEREG: 0,0
23:19:44.684 -> 
23:19:44.684 -> OK
23:19:44.892 -> AT+CEREG?

23:19:44.892 -> +CEREG: 0,0
23:19:44.892 -> 
23:19:44.892 -> OK
23:19:45.065 -> AT+CEREG?

23:19:45.065 -> +CEREG: 0,0
23:19:45.065 -> 
23:19:45.065 -> OK
23:19:45.270 -> AT+CEREG?

23:19:45.270 -> +CEREG: 0,0
23:19:45.270 -> 
23:19:45.270 -> OK
23:19:45.476 -> AT+CEREG?

23:19:45.476 -> +CEREG: 0,0
23:19:45.476 -> 
23:19:45.476 -> OK
23:19:45.680 -> AT+CEREG?

23:19:45.680 -> +CEREG: 0,0
23:19:45.680 -> 
23:19:45.680 -> OK
23:19:45.888 -> AT+CEREG?

23:19:45.888 -> +CEREG: 0,0
23:19:45.888 -> 
23:19:45.888 -> OK
23:19:46.093 -> AT+CEREG?

23:19:46.093 -> +CEREG: 0,0
23:19:46.093 -> 
23:19:46.093 -> OK
23:19:46.299 -> AT+CEREG?

23:19:46.299 -> +CEREG: 0,0
23:19:46.299 -> 
23:19:46.299 -> OK
23:19:46.506 -> AT+CEREG?

23:19:46.506 -> +CEREG: 0,0
23:19:46.506 -> 
23:19:46.506 -> OK
23:19:46.710 -> AT+CEREG?

23:19:46.710 -> +CEREG: 0,0
23:19:46.710 -> 
23:19:46.710 -> OK
23:19:46.915 -> AT+CEREG?

23:19:46.915 -> +CEREG: 0,0
23:19:46.915 -> 
23:19:46.915 -> OK
23:19:47.121 -> AT+CEREG?

23:19:47.121 -> +CEREG: 0,0
23:19:47.121 -> 
23:19:47.121 -> OK
23:19:47.292 -> AT+CEREG?

23:19:47.292 -> +CEREG: 0,0
23:19:47.292 -> 
23:19:47.292 -> OK
23:19:47.496 -> AT+CEREG?

23:19:47.496 -> +CEREG: 0,0
23:19:47.496 -> 
23:19:47.496 -> OK
23:19:47.703 -> AT+CEREG?

23:19:47.703 -> +CEREG: 0,0
23:19:47.703 -> 
23:19:47.703 -> OK
23:19:47.908 -> AT+CEREG?

23:19:47.908 -> +CEREG: 0,0
23:19:47.908 -> 
23:19:47.908 -> OK
23:19:48.112 -> AT+CEREG?

23:19:48.112 -> +CEREG: 0,0
23:19:48.112 -> 
23:19:48.112 -> OK
23:19:48.316 -> AT+CEREG?

23:19:48.316 -> +CEREG: 0,0
23:19:48.316 -> 
23:19:48.316 -> OK
23:19:48.523 -> AT+CEREG?

23:19:48.523 -> +CEREG: 0,0
23:19:48.523 -> 
23:19:48.523 -> OK
23:19:48.729 -> AT+CEREG?

23:19:48.729 -> +CEREG: 0,0
23:19:48.729 -> 
23:19:48.729 -> OK
23:19:48.934 -> AT+CEREG?

23:19:48.934 -> +CEREG: 0,0
23:19:48.934 -> 
23:19:48.934 -> OK
23:19:49.140 -> AT+CEREG?

23:19:49.140 -> +CEREG: 0,0
23:19:49.140 -> 
23:19:49.140 -> OK
23:19:49.346 -> AT+CEREG?

23:19:49.346 -> +CEREG: 0,0
23:19:49.346 -> 
23:19:49.346 -> OK
23:19:49.553 -> AT+CEREG?

23:19:49.553 -> +CEREG: 0,0
23:19:49.553 -> 
23:19:49.553 -> OK
23:19:49.724 -> AT+CEREG?

23:19:49.724 -> +CEREG: 0,0
23:19:49.724 -> 
23:19:49.724 -> OK
23:19:49.928 -> AT+CEREG?

23:19:49.928 -> +CEREG: 0,0
23:19:49.928 -> 
23:19:49.928 -> OK
23:19:50.133 -> AT+CEREG?

23:19:50.133 -> +CEREG: 0,0
23:19:50.133 -> 
23:19:50.133 -> OK
23:19:50.338 -> AT+CEREG?

23:19:50.338 -> +CEREG: 0,2
23:19:50.338 -> 
23:19:50.338 -> OK
23:19:50.547 -> AT+CEREG?

23:19:50.547 -> +CEREG: 0,2
23:19:50.547 -> 
23:19:50.547 -> OK
23:19:50.752 -> AT+CEREG?

23:19:50.752 -> +CEREG: 0,2
23:19:50.752 -> 
23:19:50.752 -> OK
23:19:50.958 -> AT+CEREG?

23:19:50.958 -> +CEREG: 0,2
23:19:50.958 -> 
23:19:50.958 -> OK
23:19:51.162 -> AT+CEREG?

23:19:51.162 -> +CEREG: 0,2
23:19:51.162 -> 
23:19:51.162 -> OK
23:19:51.368 -> AT+CEREG?

23:19:51.368 -> +CEREG: 0,2
23:19:51.368 -> 
23:19:51.368 -> OK
23:19:51.574 -> AT+CEREG?

23:19:51.574 -> +CEREG: 0,1
23:19:51.574 -> 
23:19:51.574 -> OK
23:19:52.089 -> AT+CGATT=1

23:19:52.089 -> OK
23:19:53.083 -> AT+CGACT?

23:19:53.083 -> +CGACT: 1,1
23:19:53.083 -> 
23:19:53.083 -> OK
23:19:53.083 -> You're connected to the cellular network
23:19:53.083 -> 
23:19:53.083 -> 
23:19:53.083 -> Starting connection to server...
23:19:53.118 -> AT+USOCR=17

23:19:53.118 -> +USOCR: 0
23:19:53.118 -> 
23:19:53.118 -> OK
23:19:53.152 -> AT+USOLI=0,3000

23:19:53.152 -> OK
23:19:53.186 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

23:19:53.186 -> +USOST: 0,10
23:19:53.186 -> 
23:19:53.186 -> OK
23:34:52.940 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

23:34:52.973 -> +USOST: 0,10
23:34:52.973 -> 
23:34:52.973 -> OK
23:49:52.787 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

23:49:52.787 -> +USOST: 0,10
23:49:52.787 -> 
23:49:52.787 -> OK
00:04:52.540 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

00:04:52.540 -> +USOST: 0,10
00:04:52.540 -> 
00:04:52.540 -> OK
00:19:52.365 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

00:19:52.365 -> +USOST: 0,10
00:19:52.365 -> 
00:19:52.365 -> OK
00:34:52.098 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

00:34:52.098 -> +USOST: 0,10
00:34:52.098 -> 
00:34:52.098 -> OK
00:49:51.905 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

00:49:51.905 -> +USOST: 0,10
00:49:51.905 -> 
00:49:51.905 -> OK
01:04:51.694 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

01:04:51.694 -> +USOST: 0,10
01:04:51.694 -> 
01:04:51.694 -> OK
01:19:51.432 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

01:19:51.473 -> +USOST: 0,10
01:19:51.473 -> 
01:19:51.473 -> OK
01:34:51.145 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

01:34:51.145 -> +USOST: 0,10
01:34:51.145 -> 
01:34:51.145 -> OK
01:49:50.876 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

01:49:50.876 -> +USOST: 0,10
01:49:50.876 -> 
01:49:50.876 -> OK
02:04:50.685 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

02:04:50.685 -> +USOST: 0,10
02:04:50.685 -> 
02:04:50.685 -> OK
02:19:50.556 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

02:19:50.556 -> +USOST: 0,10
02:19:50.556 -> 
02:19:50.556 -> OK
02:34:50.295 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

02:34:50.295 -> +USOST: 0,10
02:34:50.295 -> 
02:34:50.295 -> OK
02:49:50.075 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

02:49:50.075 -> +USOST: 0,10
02:49:50.075 -> 
02:49:50.075 -> OK
03:04:49.946 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

03:04:49.946 -> +USOST: 0,10
03:04:49.946 -> 
03:04:49.946 -> OK
03:19:49.875 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

03:19:49.875 -> +USOST: 0,10
03:19:49.875 -> 
03:19:49.875 -> OK
03:34:49.656 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

03:34:49.656 -> +USOST: 0,10
03:34:49.656 -> 
03:34:49.656 -> OK
03:49:49.443 -> AT+USOST=0,x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

03:49:49.443 -> +USOST: 0,10
03:49:49.443 -> 
03:49:49.443 -> OK
04:04:49.220 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

04:04:49.220 -> +USOST: 0,10
04:04:49.220 -> 
04:04:49.220 -> OK
04:19:48.989 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

04:19:48.989 -> +USOST: 0,10
04:19:48.989 -> 
04:19:48.989 -> OK
04:34:48.764 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

04:34:48.764 -> +USOST: 0,10
04:34:48.764 -> 
04:34:48.764 -> OK
04:49:48.712 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

04:49:48.712 -> +USOST: 0,10
04:49:48.712 -> 
04:49:48.712 -> OK
05:04:48.700 -> AT+USOST=0,x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

05:04:48.700 -> +USOST: 0,10
05:04:48.700 -> 
05:04:48.700 -> OK
05:19:48.650 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

05:19:48.650 -> +USOST: 0,10
05:19:48.650 -> 
05:19:48.650 -> OK
05:34:48.427 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

05:34:48.487 -> +USOST: 0,10
05:34:48.487 -> 
05:34:48.487 -> OK
05:49:48.267 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

05:49:48.267 -> +USOST: 0,10
05:49:48.267 -> 
05:49:48.267 -> OK
06:04:48.058 -> AT+USOST=0,x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

06:04:48.092 -> +USOST: 0,10
06:04:48.092 -> 
06:04:48.092 -> OK
06:19:48.029 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

06:19:48.029 -> +USOST: 0,10
06:19:48.029 -> 
06:19:48.029 -> OK
06:34:48.267 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

06:49:48.560 -> 
06:49:48.560 -> OK
07:04:48.811 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

07:04:48.811 -> +USOST: 0,10
07:04:48.811 -> 
07:04:48.811 -> OK
07:19:48.953 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

07:19:49.326 -> +USOST: 0,10
07:19:49.326 -> 
07:19:49.326 -> OK
07:34:48.961 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

07:34:48.961 -> +USOST: 0,10
07:34:48.995 -> 
07:34:48.995 -> OK
07:49:48.988 -> AT+USOST=0,x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

07:49:48.988 -> +USOST: 0,10
07:49:48.988 -> 
07:49:48.988 -> OK
08:04:49.025 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

08:04:49.025 -> +USOST: 0,10
08:04:49.025 -> 
08:04:49.025 -> OK
08:19:49.025 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

08:19:49.078 -> +USOST: 0,10
08:19:49.078 -> 
08:19:49.078 -> OK
08:34:48.962 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

08:34:48.996 -> +USOST: 0,10
08:34:48.996 -> 
08:34:48.996 -> OK
08:49:48.947 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

08:49:48.947 -> +USOST: 0,10
08:49:48.947 -> 
08:49:48.947 -> OK
09:04:48.942 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

09:04:48.942 -> +USOST: 0,10
09:04:48.942 -> 
09:04:48.942 -> OK
09:19:48.873 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

09:19:48.873 -> +USOST: 0,10
09:19:48.873 -> 
09:19:48.873 -> OK
09:34:48.687 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

09:34:48.687 -> +USOST: 0,10
09:34:48.687 -> 
09:34:48.687 -> OK
09:49:48.618 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

09:49:48.618 -> +USOST: 0,10
09:49:48.618 -> 
09:49:48.618 -> OK
10:04:48.540 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

10:04:48.540 -> +USOST: 0,10
10:04:48.540 -> 
10:04:48.540 -> OK
10:19:48.451 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

10:19:48.613 -> +USOST: 0,10
10:19:48.613 -> 
10:19:48.613 -> OK
10:34:48.444 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

10:34:48.444 -> +USOST: 0,10
10:34:48.444 -> 
10:34:48.444 -> OK
10:49:48.347 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

10:49:48.347 -> +USOST: 0,10
10:49:48.347 -> 
10:49:48.347 -> OK
11:04:48.250 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

11:04:48.250 -> +USOST: 0,10
11:04:48.250 -> 
11:04:48.250 -> OK
11:19:48.145 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

11:19:48.145 -> +USOST: 0,10
11:19:48.145 -> 
11:19:48.145 -> OK
11:34:47.879 -> AT+USOST=0,x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

11:34:48.168 -> +USOST: 0,10
11:34:48.168 -> 
11:34:48.168 -> OK
11:49:47.587 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

11:49:47.587 -> +USOST: 0,10
11:49:47.587 -> 
11:49:47.587 -> OK
12:04:47.347 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

12:04:47.347 -> +USOST: 0,10
12:04:47.347 -> 
12:04:47.347 -> OK
12:19:47.096 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

12:19:47.096 -> +USOST: 0,10
12:19:47.096 -> 
12:19:47.096 -> OK
12:34:46.860 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

12:34:46.860 -> +USOST: 0,10
12:34:46.860 -> 
12:34:46.860 -> OK
12:49:46.662 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

12:49:46.662 -> +USOST: 0,10
12:49:46.662 -> 
12:49:46.662 -> OK
13:04:46.464 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

13:04:46.464 -> +USOST: 0,10
13:04:46.464 -> 
13:04:46.464 -> OK
13:19:46.212 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

13:19:46.212 -> +USOST: 0,10
13:19:46.212 -> 
13:19:46.212 -> OK
13:34:45.942 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

13:34:45.942 -> +USOST: 0,10
13:34:45.942 -> 
13:34:45.942 -> OK
13:49:45.718 -> AT+USOST=0,x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

13:49:45.718 -> +USOST: 0,10
13:49:45.718 -> 
13:49:45.718 -> OK
14:04:45.384 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

14:04:45.384 -> +USOST: 0,10
14:04:45.384 -> 
14:04:45.384 -> OK
14:19:45.008 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

14:19:45.056 -> +USOST: 0,10
14:19:45.056 -> 
14:19:45.056 -> OK
14:34:44.720 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

14:34:44.720 -> +USOST: 0,10
14:34:44.720 -> 
14:34:44.720 -> OK
14:49:44.534 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

14:49:44.534 -> +USOST: 0,10
14:49:44.534 -> 
14:49:44.534 -> OK
15:04:44.475 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

15:04:44.475 -> +USOST: 0,10
15:04:44.475 -> 
15:04:44.475 -> OK
15:19:44.341 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

15:19:44.341 -> +CME ERROR: Operation not allowed
15:34:44.189 -> 
15:34:44.223 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

15:34:44.223 -> +CME ERROR: Operation not allowed
15:49:43.985 -> 
15:49:44.020 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

15:49:44.020 -> +CME ERROR: Operation not allowed
16:04:43.769 -> 
16:04:43.769 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

16:04:43.769 -> +CME ERROR: Operation not allowed
16:19:43.460 -> 
16:19:43.460 -> AT+USOST=0,"3.121.180.66",1200,10,"6262616A6B6C00000000"

16:19:43.460 -> +CME ERROR: Operation not allowed
16:34:43.201 -> 
16:34:43.201 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

16:34:43.270 -> +CME ERROR: Operation not allowed
16:49:42.935 -> 
16:49:42.969 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

16:49:42.969 -> +CME ERROR: Operation not allowed
17:04:42.702 -> 
17:04:42.702 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

17:04:42.702 -> +CME ERROR: Operation not allowed
17:19:42.333 -> 
17:19:42.333 -> AT+USOST=0,"x.xxx.xxx.xx",1200,10,"6262616A6B6C00000000"

17:19:42.333 -> +CME ERROR: Operation not allowed

The parts I changed:

void setup() {
  // Open serial communications and wait for port to open
  Serial.begin(115200);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for native USB port only
  }
}

void loop() {
  if (nbAccess.status() != NB_READY || gprs.status() != GPRS_READY) {
    connectNB();
  }
  sendUDPMessage(awsServer);
  delay(900000);
}

void connectNB() {
  Serial.println("Attempting to connect to the cellular network");

  while ((nbAccess.begin() != NB_READY) ||
         (gprs.attachGPRS() != GPRS_READY)) {
    // failed, retry
    Serial.print(".");
    delay(1000);
 }
 
  Serial.println("You're connected to the cellular network");
  Serial.println();

  Serial.println("nStarting connection to server...");
  // Initialize, start listening on specified port
  udp.begin(localPort);
}


There are two types of GSM error codes: CMS Error codes and CME Error codes that your GSM may return when sending an SMS.

The CMS error codes start with ‘+CMS Error:‘ and are always network related errors. The CME error codes start with ‘+CME Error:‘ and are always device (equipment) related errors.

CME Errors (GSM equipment errors)

CME Error Description
0 Phone failure
1 No connection to phone
2 Phone adapter link reserved
3 Operation not allowed
4 Operation not supported
5 PH_SIM PIN required
6 PH_FSIM PIN required
7 PH_FSIM PUK required
10 SIM not inserted
11 SIM PIN required
12 SIM PUK required
13 SIM failure
14 SIM busy
15 SIM wrong
16 Incorrect password
17 SIM PIN2 required
18 SIM PUK2 required
20 Memory full
21 Invalid index
22 Not found
23 Memory failure
24 Text string too long
25 Invalid characters in text string
26 Dial string too long
27 Invalid characters in dial string
30 No network service
31 Network timeout
32 Network not allowed, emergency calls only
40 Network personalization PIN required
41 Network personalization PUK required
42 Network subset personalization PIN required
43 Network subset personalization PUK required
44 Service provider personalization PIN required
45 Service provider personalization PUK required
46 Corporate personalization PIN required
47 Corporate personalization PUK required
48 PH-SIM PUK required
100 Unknown error
103 Illegal MS
106 Illegal ME
107 GPRS services not allowed
111 PLMN not allowed
112 Location area not allowed
113 Roaming not allowed in this location area
126 Operation temporary not allowed
132 Service operation not supported
133 Requested service option not subscribed
134 Service option temporary out of order
148 Unspecified GPRS error
149 PDP authentication failure
150 Invalid mobile class
256 Operation temporarily not allowed
257 Call barred
258 Phone is busy
259 User abort
260 Invalid dial string
261 SS not executed
262 SIM Blocked
263 Invalid block
772 SIM powered down

CMS Errors (GSM Network errors)

CMS Error Description
1 Unassigned number
8 Operator determined barring
10 Call bared
21 Short message transfer rejected
27 Destination out of service
28 Unindentified subscriber
29 Facility rejected
30 Unknown subscriber
38 Network out of order
41 Temporary failure
42 Congestion
47 Recources unavailable
50 Requested facility not subscribed
69 Requested facility not implemented
81 Invalid short message transfer reference value
95 Invalid message unspecified
96 Invalid mandatory information
97 Message type non existent or not implemented
98 Message not compatible with short message protocol
99 Information element non-existent or not implemente
111 Protocol error, unspecified
127 Internetworking , unspecified
128 Telematic internetworking not supported
129 Short message type 0 not supported
130 Cannot replace short message
143 Unspecified TP-PID error
144 Data code scheme not supported
145 Message class not supported
159 Unspecified TP-DCS error
160 Command cannot be actioned
161 Command unsupported
175 Unspecified TP-Command error
176 TPDU not supported
192 SC busy
193 No SC subscription
194 SC System failure
195 Invalid SME address
196 Destination SME barred
197 SM Rejected-Duplicate SM
198 TP-VPF not supported
199 TP-VP not supported
208 D0 SIM SMS Storage full
209 No SMS Storage capability in SIM
210 Error in MS
211 Memory capacity exceeded
212 Sim application toolkit busy
213 SIM data download error
255 Unspecified error cause
300 ME Failure
301 SMS service of ME reserved
302 Operation not allowed
303 Operation not supported
304 Invalid PDU mode parameter
305 Invalid Text mode parameter
310 SIM not inserted
311 SIM PIN required
312 PH-SIM PIN required
313 SIM failure
314 SIM busy
315 SIM wrong
316 SIM PUK required
317 SIM PIN2 required
318 SIM PUK2 required
320 Memory failure
321 Invalid memory index
322 Memory full
330 SMSC address unknown
331 No network service
332 Network timeout
340 No +CNMA expected
500 Unknown error
512 User abort
513 Unable to store
514 Invalid Status
515 Device busy or Invalid Character in string
516 Invalid length
517 Invalid character in PDU
518 Invalid parameter
519 Invalid length or character
520 Invalid character in text
521 Timer expired
522 Operation temporary not allowed
532 SIM not ready
534 Cell Broadcast error unknown
535 Protocol stack busy
538 Invalid parameter

Hello,

I am using http POST to upload data to a server. The modem used is BGS2-W.

My device is uploading data periodically to the server. Sometimes while setting the content length parameter, I get CME error:3 (Operation not allowed). I retry the upload after 2 minutes. But I keep on getting the same response. The only way to get out of this situation is to reboot the modem using AT+CFUN=1,1. On rebooting, the upload starts normally again.

I checked for the internet connection and service profile, but they seem to be as per what I have set. The AT+CEER command returns no error (all 0s).

The response to AT1 command:

Cinterion

BGS2-W

REVISION 02.000

The AT command log:

20150912T180002 INFO Modem:AT^SCKS?

20150912T180002 INFO Modem:^SCKS: 0,1

20150912T180002 INFO Modem:AT+CREG?

20150912T180002 INFO Modem:+CREG: 0,1

20150912T180002 INFO Modem:AT^SISS=0,hcContLen,6229

20150912T180002 INFO Modem:+CME ERROR: 3

What could be the reason for continuous CME errors? What happens on setting the content length. Does the modem allocate some memory and is it not able to allocate memory and hence is failing? Is it possible to query the memory status? 

Thanks and Regards,

Kalyani Kulkarni 

I am working with a team to send data from Raspberry Pi over 2G network to a server using a GSM module called “SIM800L EBV”. We encountered an AT+CIPSEND error that has only occurred in Zambia, Africa while having been working correctly in the US (Arkansas, Colorado, and Washington state) for two years.
Below is a picture of our SIM log. We noticed from our log that the AT+CIFSR to request an IP address is working. And when AT+CIPSTART is run to start the TCP connection to the server “obfuscated.org” at port 11002, the response is OK and CONNECT OK indicating that the TCP connection to the server has been established. However, when AT+CIPSEND is run, we received an “+CME ERROR: operation not allowed”.
Has anyone encountered this problem before?
Does anyone know about any supporting information that might help solve the problem?
Is there any suggestion on how to get around this CME error?
Is there any other command to replace this AT+CIPSEND command?
Why does it work fine in America but not in Zambia?
Many thanks!

Wrote to sim: AT+CIFSR

Bytes to read: 26
Sim response: AT+CIFSR
172.50.216.113

Wrote to sim: AT+CIPSTART="TCP","redacted.org","11002"

Bytes to read: 58
Sim response: AT+CIPSTART="TCP","redacted.org","11002"
OK

CONNECT OK

Wrote to sim: AT+CIPSEND

Bytes to read: 47
SIM response: AT+CIPSEND
+CME ERROR: operation not allowed

asked Nov 16, 2018 at 22:21

ECE 19.4 Team's user avatar

2

This code here works for me. Am using the same exact SIM800L EVB module which seemed not to work on most codes, TinyGSM and other MQTT requests.
If found any solutions please share.

#include <SoftwareSerial.h>
#include <ArduinoJson.h>

SoftwareSerial SIM900(17, 16); 
 
 
void setup()
{
  SIM900.begin(9600);       // the GPRS baud rate
  Serial.begin(9600);
  Serial.println("Initializing..");
    
work();
}
 
void loop()
{}

 void work()
{ 
  Serial.println("START");
 
  delay(1000);
 
  if (SIM900.available())
  Serial.write(SIM900.read());
 
  SIM900.println("AT");
  delay(3000);
 
  SIM900.println("AT+SAPBR=3,1,"Contype","GPRS""); // untuk cek  GPRS 
  delay(6000);
  ShowSerialData();
 
  SIM900.println("AT+SAPBR=3,1,"APN","internet"");//APN mobile phone (cek dekat phone)
  delay(6000);
  ShowSerialData();
 
  SIM900.println("AT+SAPBR=1,1"); 
  delay(6000);
  ShowSerialData();
 
  SIM900.println("AT+SAPBR=2,1");
  delay(6000);
  ShowSerialData();
 
  SIM900.println("AT+HTTPINIT"); // jika keluar error means gagal
  delay(6000);
  ShowSerialData();
 
  SIM900.println("AT+HTTPPARA="CID",1"); //parameters untuk HTTP session
  delay(6000);
  ShowSerialData(); 


  SIM900.println("AT+HTTPPARA="URL","http://......./api/v1/testwritter?data=+1234""); //Server address // tukar pakai lain https://
  delay(4000);
  ShowSerialData();

//  SIM900.println("AT+HTTPPARA="REDIR",1"); 
//  delay(4000);
//  ShowSerialData();
 
  SIM900.println("AT+HTTPPARA="CONTENT","application/json""); //json format
  delay(4000);
  ShowSerialData();


//  SIM900.println("AT+HTTPDATA=" + String(sendtoserver.length()) + ",100000"); // size bytes untuk hantar data dalam masa 10 seconds
//  Serial.println(sendtoserver);
//  delay(6000);
//  ShowSerialData();

  SIM900.println("AT+HTTPACTION=1"); // Post the data (1 means post)
  delay(6000);
  ShowSerialData();
 
  SIM900.println("AT+HTTPREAD"); 
  delay(6000);
  ShowSerialData();
 
  SIM900.println("AT+HTTPTERM");
  delay(10000);
  ShowSerialData;
}
 
void ShowSerialData()
{



  while (SIM900.available() != 0)
//    Serial.write(SIM900.read());
//  delay(1000);
  String response = SIM900.readStringUntil('n');
Serial.println(response);
 
}

answered Jul 19, 2022 at 16:50

b.john's user avatar

b.johnb.john

7131 gold badge6 silver badges9 bronze badges

SIM900 раз в минуту делает HTTP GET запрос. Все работает в целом хорошо, но иногда возникает сбой, начинающийся с ответа на HTTPACTION с кодом 604 и далее на все команды идет ответ CME ERROR 3 (operation not allowed). CME ERROR 3 может продолжаться долго.

Код ответа 604 на HTTPACTION означает Stack busy. Как это трактовать и как поступать в этом случае?

Почему после 604 входит в ступор и выдает CME ERROR 3, пока не оклимается?

SIM900 R11.0, 1137B03SIM900R64_ST_ENHANCE_E. Привожу лог взаимодействия.

Нормальный запрос:

10.10.15 04:01:13, httpGet...
10.10.15 04:01:14, "+HTTPINIT"...
10.10.15 04:01:14, OK: "OK" (107 msec)
10.10.15 04:01:14, "+HTTPPARA="CID",1"...
10.10.15 04:01:14, OK: "OK" (106 msec)
10.10.15 04:01:14, "+HTTPPARA="URL","http://www...""...
10.10.15 04:01:14, OK: "OK" (117 msec)
10.10.15 04:01:14, httpAction...
10.10.15 04:01:14, "+HTTPACTION=0"...
10.10.15 04:01:16, OK: "+HTTPACTION:0,200,85" (1607 msec)
10.10.15 04:01:16, OK: httpAction = 1 (1620 msec)
10.10.15 04:01:16, httpRead(expectedDataLen = 85)...
10.10.15 04:01:16, OK:  (107 msec)
10.10.15 04:01:16, "+HTTPTERM"...
10.10.15 04:01:16, OK: "OK" (106 msec)
10.10.15 04:01:16, OK: httpGet done (3110 msec)

Сбойный запрос:

10.10.15 04:02:16, httpGet...
10.10.15 04:02:17, "+HTTPINIT"...
10.10.15 04:02:17, OK: "OK" (107 msec)
10.10.15 04:02:17, "+HTTPPARA="CID",1"...
10.10.15 04:02:17, OK: "OK" (107 msec)
10.10.15 04:02:17, "+HTTPPARA="URL","http://www...""...
10.10.15 04:02:17, OK: "OK" (110 msec)
10.10.15 04:02:18, httpAction...
10.10.15 04:02:18, "+HTTPACTION=0"...
10.10.15 04:02:28, ERR: NO_RESPONSE, "+HTTPACTION:0," not found (10107 msec)
10.10.15 04:02:29, "+HTTPACTION=0"...
10.10.15 04:02:29, OK: "+HTTPACTION:0,604,0" (108 msec)
10.10.15 04:02:29, ERR: httpCode = 604
10.10.15 04:02:29, ERR: httpAction = 0 (11242 msec)
10.10.15 04:02:29, "+HTTPTERM"...
10.10.15 04:02:29, ERR: CME_ERROR: "+CME ERROR: operation not allowed" (107 msec)
10.10.15 04:02:29, ERR: httpGet failed (12615 msec)

После сбойного далее может идти долго ответ CME_ERROR 3 на все команды:

10.10.15 04:02:32, httpGet...
10.10.15 04:02:33, "+HTTPINIT"...
10.10.15 04:02:33, ERR: CME_ERROR: "+CME ERROR: operation not allowed" (106 msec)
10.10.15 04:02:33, "+HTTPTERM"...
10.10.15 04:02:34, ERR: CME_ERROR: "+CME ERROR: operation not allowed" (107 msec)
10.10.15 04:02:35, "+HTTPINIT"...
10.10.15 04:02:35, ERR: CME_ERROR: "+CME ERROR: operation not allowed" (106 msec)
10.10.15 04:02:35, "+HTTPTERM"...
10.10.15 04:02:35, ERR: CME_ERROR: "+CME ERROR: operation not allowed" (106 msec)
10.10.15 04:02:36, "+HTTPINIT"...
10.10.15 04:02:36, ERR: CME_ERROR: "+CME ERROR: operation not allowed" (106 msec)
10.10.15 04:02:36, "+HTTPTERM"...
10.10.15 04:02:36, ERR: CME_ERROR: "+CME ERROR: operation not allowed" (106 msec)
10.10.15 04:02:36, ERR: httpGet failed (4423 msec)

Но этот случай оказался легким, на следующем цикле все восстановилось:

10.10.15 04:02:39, httpGet...
10.10.15 04:02:40, "+HTTPINIT"...
10.10.15 04:02:41, ERR: CME_ERROR: "+CME ERROR: operation not allowed" (106 msec)
10.10.15 04:02:41, "+HTTPTERM"...
10.10.15 04:02:41, OK: "OK" (106 msec)
10.10.15 04:02:42, "+HTTPINIT"...
10.10.15 04:02:42, OK: "OK" (106 msec) 
...


Изменено 11 октября, 2015 пользователем turnon

Понравилась статья? Поделить с друзьями:
  • Cme error 6003
  • Cme error 555
  • Cme error 504
  • Cme error 50 huawei e3372 что это
  • Cme error 4013