Go Down

Topic: Connection error AT output (Read 78 times) previous topic - next topic

Rohling_Wuchter

Sep 03, 2019, 03:35 pm Last Edit: Sep 03, 2019, 03:37 pm by Rohling_Wuchter
Hi,

trying the following :

Code: [Select]

NBClient client;
GPRS gprs;
NB gsmAccess(1);
NBUDP Udp;
...
  while (!connected && con_counter<10) {
        //const char* pin, const char* apn, const char* username, const char* password, bool restart, bool synchronous)
        //if ((gsmAccess.begin(PINNUMBER) == NB_READY) &&
        //if ((gsmAccess.begin(PINNUMBER, GPRS_APN, GPRS_LOGIN, GPRS_PASSWORD, true, true) == NB_READY) &&
        if ((gsmAccess.begin() == NB_READY) &&
            (gprs.attachGPRS(true) == GPRS_READY)) {
            connected = true;
            for(int i=0;i<=20;i++)
            {
                digitalWrite(LED_BUILTIN, HIGH);
                delay(100);
                digitalWrite(LED_BUILTIN, LOW);
                delay(100);
            }
 ...


I get following output :

Code: [Select]

GSM init
AT
OK
AT
OK
AT+CMEE=0
OK
AT+CFUN=0
OK
AT+CPIN?
+CPIN: READY

OK
AT+CMGF=1
OK
AT+UDCONF=1,1
OK
AT+CTZU=1
OK
AT+CGDCONT=1,"IP",""
OK
AT+UAUTHREQ=1,0
OK
AT+CFUN=1
OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CEREG?
+CEREG: 0,2

OK
AT+CEREG?
+CEREG: 0,2

OK
AT+CEREG?
+CEREG: 0,2

OK
AT+CEREG?
+CEREG: 0,2

OK
AT+CEREG?
+CEREG: 0,2

OK
AT+CEREG?
+CEREG: 0,3

OK
GSM not connected
AT
OK
AT+CMEE=0
OK
AT+CFUN=0
OK
AT+CPIN?
+CPIN: READY

OK
AT+CMGF=1
OK
AT+UDCONF=1,1
OK
AT+CTZU=1
OK
AT+CGDCONT=1,"IP",""
OK
AT+UAUTHREQ=1,0
OK
AT+CFUN=1
OK
AT+CEREG?
+CEREG: 0,3

OK


Basically the response for AT+CEREG? is always 0,0 for the first 20-40 trials and then shortly after it is 0,2 and then 0,3 . And it stays at 0,3, meaning I am not allowed to register to the network ? I have no PIN, meaning I pass an empty string, but also with a PIN it did not work.

With the MKRGSM1400 and the same SIM in the same room, everything works fine.

Can someone hint me to the next steps (I tried all the different RAT-options with this example https://www.arduino.cc/en/Tutorials/NBRATConfig).

Any hint appreciated. Thanks for reading.  :)

Go Up