Arm Mbed OS support forum

Cellular Connection is lost, How to reconnect?

Hi everyone :slight_smile:

I have a ublox sara-410M module and a stm32F2 chip. In my area, there are some locations where we lose the gsm conenction. So i need to reconnect , but that is not working. My question is how is a reconnect correctly done? Do i need to reset the sara module with an AT command? Should the sara module reconnect on its own? Do i need to delete the iface pointer and create a new one? Do i need to call disconnect? Do i need to call shutdown ?

If i have the following:

iface = CellularContext::get_default_instance()
connectCellularNetwork();
// CellularNetwork is now successfully connected
// Now i want do reconnect
iface->disconnect(); 
connectCellularNetwork();
// This Time it isn't connecting anymore

nsapi_error_t connectCellularNetwork()
{
    nsapi_error_t retcode = NSAPI_ERROR_OK;
    uint8_t retry_counter = 0;

    print_function("Connection cellular network...\n");
    while (iface->get_connection_status() != NSAPI_STATUS_GLOBAL_UP) {
        retcode = iface->connect();
        if (retcode == NSAPI_ERROR_AUTH_FAILURE ) {
            print_function("authentication failure\n");
        } else if (retcode == NSAPI_ERROR_OK ) {
            print_function("done\n");
        } else if (retry_counter > RETRY_COUNT ) {
            print_function("fatal connection failure: %d\n", retcode);
        } else {
			print_function("\nEstablishing cellular connection retry (return code %d)...", retcode);
            retry_counter++;
            continue;
        }
		break;
    }
    return retcode;
}

Below the output:
--------
Test IOT

Built: Apr 19 2021, 12:03:59
[00000000ms][INFO][CELL]: New CellularContext  (20006170)
Connection cellular network...
[00000001ms][INFO][CELL]: CellularContext connect
[00000001ms][INFO][CELL]: Start connecting (timeout 1000 ms)
[00000001ms][INFO][CELL]: AT TX ( 2): AT
[00000001ms][INFO][CELL]: AT TX ( 1): <cr>
[00000066ms][INFO][CELL]: AT RX ( 1): <00>
[00001002ms][INFO][CELL]: AT TX ( 2): AT
[00001002ms][INFO][CELL]: AT TX ( 1): <cr>
[00002024ms][INFO][CELL]: Modem power ON (timeout 1000 ms)
[00002024ms][INFO][CELL]: AT TX ( 2): AT
[00002024ms][INFO][CELL]: AT TX ( 1): <cr>
[00003025ms][INFO][CELL]: AT TX ( 8): AT+CFUN=
[00003025ms][INFO][CELL]: AT TX ( 1): 4
[00003025ms][INFO][CELL]: AT TX ( 1): <cr>
[00004026ms][INFO][CELL]: Continue after 4 seconds
[00008026ms][WARN][CELL]: URC already added with prefix: +CGEV: NW DEACT
[00008026ms][WARN][CELL]: URC already added with prefix: +CGEV: ME DEACT
[00008026ms][WARN][CELL]: URC already added with prefix: +CGEV: NW PDN D
[00008026ms][WARN][CELL]: URC already added with prefix: +CGEV: ME PDN D
[00008027ms][INFO][CELL]: AT TX ( 2): AT
[00008027ms][INFO][CELL]: AT TX ( 1): <cr>
[00008032ms][INFO][CELL]: AT RX ( 6): AT<cr><cr><ln>O
[00008032ms][INFO][CELL]: AT RX ( 3): K<cr><ln>
[00008032ms][INFO][CELL]: AT TX ( 8): AT+CFUN=
[00008032ms][INFO][CELL]: AT TX ( 1): 4
[00008033ms][INFO][CELL]: AT TX ( 1): <cr>
[00008036ms][INFO][CELL]: AT RX ( 6): AT+CFU
[00008036ms][INFO][CELL]: AT RX ( 3): N=4
[00008036ms][INFO][CELL]: AT RX ( 3): <cr><cr><ln>
[00008036ms][INFO][CELL]: AT RX ( 3): OK<cr>
[00008037ms][INFO][CELL]: AT RX ( 1): <ln>
[00008037ms][INFO][CELL]: AT TX ( 4): ATE0
[00008037ms][INFO][CELL]: AT TX ( 1): <cr>
[00008041ms][INFO][CELL]: AT RX ( 6): ATE0<cr><cr>
[00008041ms][INFO][CELL]: AT RX ( 3): <ln>OK
[00008041ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00008041ms][INFO][CELL]: AT TX ( 9): AT+CMEE=1
[00008042ms][INFO][CELL]: AT TX ( 1): <cr>
[00008047ms][INFO][CELL]: AT RX ( 6): <cr><ln>OK<cr><ln>
[00008047ms][INFO][CELL]: AT TX ( 7): AT+CIMI
[00008047ms][INFO][CELL]: AT TX ( 1): <cr>
[00008052ms][INFO][CELL]: AT RX ( 7): <cr><ln>22802
[00008052ms][INFO][CELL]: AT RX ( 3): 455
[00008052ms][INFO][CELL]: AT RX ( 3): 950
[00008052ms][INFO][CELL]: AT RX ( 3): 468
[00008053ms][INFO][CELL]: AT RX ( 3): 8<cr><ln>
[00008053ms][INFO][CELL]: AT RX ( 3): <cr><ln>O
[00008053ms][INFO][CELL]: AT RX ( 3): K<cr><ln>
[00008053ms][INFO][CELL]: AT TX (11): AT+CGDCONT=
[00008054ms][INFO][CELL]: AT TX ( 1): 1
[00008054ms][INFO][CELL]: AT TX ( 1): ,
[00008054ms][INFO][CELL]: AT TX ( 1): "
[00008054ms][INFO][CELL]: AT TX ( 2): IP
[00008055ms][INFO][CELL]: AT TX ( 1): "
[00008055ms][INFO][CELL]: AT TX ( 1): ,
[00008055ms][INFO][CELL]: AT TX ( 1): "
[00008055ms][INFO][CELL]: AT TX ( 8): internet
[00008055ms][INFO][CELL]: AT TX ( 1): "
[00008056ms][INFO][CELL]: AT TX ( 1): <cr>
[00008091ms][INFO][CELL]: AT RX ( 6): <cr><ln>OK<cr><ln>
[00008091ms][INFO][CELL]: AT TX (12): AT+UAUTHREQ=
[00008091ms][INFO][CELL]: AT TX ( 1): 1
[00008091ms][INFO][CELL]: AT TX ( 1): ,
[00008092ms][INFO][CELL]: AT TX ( 1): 2
[00008092ms][INFO][CELL]: AT TX ( 1): ,
[00008092ms][INFO][CELL]: AT TX ( 1): "
[00008092ms][INFO][CELL]: AT TX ( 2): pL
[00008092ms][INFO][CELL]: AT TX ( 1): "
[00008093ms][INFO][CELL]: AT TX ( 1): ,
[00008093ms][INFO][CELL]: AT TX ( 1): "
[00008093ms][INFO][CELL]: AT TX ( 2): pL
[00008093ms][INFO][CELL]: AT TX ( 1): "
[00008093ms][INFO][CELL]: AT TX ( 1): <cr>
[00008104ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00008104ms][INFO][CELL]: AT RX ( 3): OK<cr>
[00008104ms][INFO][CELL]: AT RX ( 1): <ln>
[00008104ms][INFO][CELL]: AT TX ( 9): AT+CFUN=1
[00008105ms][INFO][CELL]: AT TX ( 1): <cr>
[00008114ms][INFO][CELL]: AT RX ( 4): <cr><ln>OK
[00008114ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00008114ms][INFO][CELL]: AT TX ( 7): AT+CGMI
[00008114ms][INFO][CELL]: AT TX ( 1): <cr>
[00008118ms][INFO][CELL]: AT RX ( 8): <cr><ln>u-blox
[00008118ms][INFO][CELL]: AT RX ( 4): <cr><ln><cr><ln>
[00008118ms][INFO][CELL]: AT RX ( 3): OK<cr>
[00008118ms][INFO][CELL]: AT RX ( 1): <ln>
[00008119ms][INFO][CELL]: Modem manufacturer: u-blox


[00008119ms][INFO][CELL]: AT TX ( 7): AT+CGMM
[00008119ms][INFO][CELL]: AT TX ( 1): <cr>
[00008122ms][INFO][CELL]: AT RX ( 1): <cr>
[00008122ms][INFO][CELL]: AT RX ( 3): <ln>SA
[00008122ms][INFO][CELL]: AT RX ( 3): RA-
[00008122ms][INFO][CELL]: AT RX ( 3): R41
[00008123ms][INFO][CELL]: AT RX ( 3): 0M-
[00008123ms][INFO][CELL]: AT RX ( 3): 02B
[00008123ms][INFO][CELL]: AT RX ( 3): <cr><ln><cr>
[00008123ms][INFO][CELL]: AT RX ( 3): <ln>OK
[00008124ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00008124ms][INFO][CELL]: Modem model: SARA-R410M-02B


[00008124ms][INFO][CELL]: AT TX ( 7): AT+CGMR
[00008124ms][INFO][CELL]: AT TX ( 1): <cr>
[00008128ms][INFO][CELL]: AT RX (10): <cr><ln>L0.0.00.
[00008128ms][INFO][CELL]: AT RX ( 4): 00.0
[00008128ms][INFO][CELL]: AT RX ( 2): 5.
[00008128ms][INFO][CELL]: AT RX ( 3): 08 
[00008129ms][INFO][CELL]: AT RX ( 4): [Apr
[00008129ms][INFO][CELL]: AT RX ( 2):  1
[00008129ms][INFO][CELL]: AT RX ( 3): 7 2
[00008129ms][INFO][CELL]: AT RX ( 3): 019
[00008130ms][INFO][CELL]: AT RX ( 3):  19
[00008130ms][INFO][CELL]: AT RX ( 3): :34
[00008130ms][INFO][CELL]: AT RX ( 2): :0
[00008130ms][INFO][CELL]: AT RX ( 3): 2]<cr>
[00008131ms][INFO][CELL]: AT RX ( 3): <ln><cr><ln>
[00008131ms][INFO][CELL]: AT RX ( 3): OK<cr>
[00008131ms][INFO][CELL]: AT RX ( 1): <ln>
[00008131ms][INFO][CELL]: Modem revision: L0.0.00.00.05.08 [Apr 17 2019 19:34:02]


[00008132ms][INFO][CELL]: Modem ready
[00008132ms][INFO][CELL]: Setup SIM (timeout 1000 ms)
[00008132ms][INFO][CELL]: AT TX ( 8): AT+CPIN?
[00008132ms][INFO][CELL]: AT TX ( 1): <cr>
[00008136ms][INFO][CELL]: AT RX ( 3): <cr><ln>+
[00008136ms][INFO][CELL]: AT RX ( 3): CPI
[00008136ms][INFO][CELL]: AT RX ( 3): N: 
[00008136ms][INFO][CELL]: AT RX ( 2): RE
[00008137ms][INFO][CELL]: AT RX ( 3): ADY
[00008137ms][INFO][CELL]: AT RX ( 3): <cr><ln><cr>
[00008137ms][INFO][CELL]: AT RX ( 3): <ln>OK
[00008137ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00008137ms][INFO][CELL]: SIM is ready
[00008138ms][INFO][CELL]: AT TX ( 8): AT+COPS?
[00008138ms][INFO][CELL]: AT TX ( 1): <cr>
[00008142ms][INFO][CELL]: AT RX ( 3): <cr><ln>+
[00008142ms][INFO][CELL]: AT RX ( 3): COP
[00008142ms][INFO][CELL]: AT RX ( 3): S: 
[00008142ms][INFO][CELL]: AT RX ( 2): 0<cr>
[00008143ms][INFO][CELL]: AT RX ( 3): <ln><cr><ln>
[00008143ms][INFO][CELL]: AT RX ( 4): OK<cr><ln>
[00008143ms][INFO][CELL]: AT TX ( 9): AT+CGREG=
[00008143ms][INFO][CELL]: AT TX ( 1): 2
[00008144ms][INFO][CELL]: AT TX ( 1): <cr>
[00008147ms][INFO][CELL]: AT RX ( 4): <cr><ln>OK
[00008147ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00008147ms][INFO][CELL]: AT TX ( 8): AT+CREG=
[00008147ms][INFO][CELL]: AT TX ( 1): 2
[00008148ms][INFO][CELL]: AT TX ( 1): <cr>
[00008151ms][INFO][CELL]: AT RX ( 3): <cr><ln>O
[00008151ms][INFO][CELL]: AT RX ( 3): K<cr><ln>
[00008151ms][INFO][CELL]: AT TX ( 9): AT+CGACT?
[00008151ms][INFO][CELL]: AT TX ( 1): <cr>
[00008156ms][INFO][CELL]: AT RX ( 5): <cr><ln>+CG
[00008156ms][INFO][CELL]: AT RX ( 4): ACT:
[00008156ms][INFO][CELL]: AT RX ( 2):  1
[00008156ms][INFO][CELL]: AT RX ( 3): ,0<cr>
[00008157ms][INFO][CELL]: AT RX ( 3): <ln><cr><ln>
[00008157ms][INFO][CELL]: AT RX ( 3): OK<cr>
[00008157ms][INFO][CELL]: AT RX ( 1): <ln>
[00008157ms][INFO][CELL]: AT TX ( 9): AT+CGATT?
[00008158ms][INFO][CELL]: AT TX ( 1): <cr>
[00008161ms][INFO][CELL]: AT RX ( 4): <cr><ln>+C
[00008161ms][INFO][CELL]: AT RX ( 3): GAT
[00008161ms][INFO][CELL]: AT RX ( 3): T: 
[00008161ms][INFO][CELL]: AT RX ( 3): 0<cr><ln>
[00008162ms][INFO][CELL]: AT RX ( 3): <cr><ln>O
[00008162ms][INFO][CELL]: AT RX ( 3): K<cr><ln>
[00008162ms][INFO][CELL]: AT TX (10): AT+CGEREP=
[00008162ms][INFO][CELL]: AT TX ( 1): 1
[00008163ms][INFO][CELL]: AT TX ( 1): <cr>
[00008167ms][INFO][CELL]: AT RX ( 6): <cr><ln>OK<cr><ln>
[00008167ms][INFO][CELL]: AT TX ( 6): AT+CSQ
[00008167ms][INFO][CELL]: AT TX ( 1): <cr>
[00008171ms][INFO][CELL]: AT RX ( 9): <cr><ln>+CSQ: 9
[00008171ms][INFO][CELL]: AT RX ( 3): 9,9
[00008171ms][INFO][CELL]: AT RX ( 3): 9<cr><ln>
[00008171ms][INFO][CELL]: AT RX ( 3): <cr><ln>O
[00008172ms][INFO][CELL]: AT RX ( 3): K<cr><ln>
[00008172ms][INFO][CELL]: AT TX ( 6): AT+CSQ
[00008172ms][INFO][CELL]: AT TX ( 1): <cr>
[00008176ms][INFO][CELL]: AT RX ( 9): <cr><ln>+CSQ: 9
[00008176ms][INFO][CELL]: AT RX ( 3): 9,9
[00008176ms][INFO][CELL]: AT RX ( 3): 9<cr><ln>
[00008176ms][INFO][CELL]: AT RX ( 3): <cr><ln>O
[00008177ms][INFO][CELL]: AT RX ( 3): K<cr><ln>
[00008177ms][INFO][CELL]: RSSI unknown
[00008177ms][INFO][CELL]: AT TX ( 9): AT+CGREG?
[00008177ms][INFO][CELL]: AT TX ( 1): <cr>
[00008182ms][INFO][CELL]: AT RX ( 9): <cr><ln>+CGREG:
[00008182ms][INFO][CELL]: AT RX ( 4):  2,4
[00008182ms][INFO][CELL]: AT RX ( 3): <cr><ln><cr>
[00008182ms][INFO][CELL]: AT RX ( 3): <ln>OK
[00008183ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00008183ms][INFO][CELL]: Network registration (timeout 180000 ms)
[00008183ms][INFO][CELL]: AT TX ( 8): AT+COPS?
[00008183ms][INFO][CELL]: AT TX ( 1): <cr>
[00008187ms][INFO][CELL]: AT RX ( 6): <cr><ln>+COP
[00008187ms][INFO][CELL]: AT RX ( 3): S: 
[00008187ms][INFO][CELL]: AT RX ( 3): 0<cr><ln>
[00008187ms][INFO][CELL]: AT RX ( 3): <cr><ln>O
[00008188ms][INFO][CELL]: AT RX ( 3): K<cr><ln>
[00008188ms][INFO][CELL]: Continue after 4 seconds
[00008827ms][INFO][CELL]: AT RX ( 1): <cr>
[00008827ms][INFO][CELL]: AT RX ( 3): <ln>+C
[00008827ms][INFO][CELL]: AT RX ( 3): REG
[00008828ms][INFO][CELL]: AT RX ( 3): : 2
[00008828ms][INFO][CELL]: AT RX ( 3): <cr><ln><cr>
[00008828ms][INFO][CELL]: AT RX ( 3): <ln>+C
[00008828ms][INFO][CELL]: AT RX ( 3): GRE
[00008829ms][INFO][CELL]: AT RX ( 3): G: 
[00008829ms][INFO][CELL]: AT RX ( 3): 2<cr><ln>
[00009405ms][INFO][CELL]: AT RX ( 1): <cr>
[00009405ms][INFO][CELL]: AT RX ( 3): <ln>+C
[00009405ms][INFO][CELL]: AT RX ( 3): REG
[00009405ms][INFO][CELL]: AT RX ( 3): : 1
[00009406ms][INFO][CELL]: AT RX ( 3): ,"F
[00009406ms][INFO][CELL]: AT RX ( 3): FFE
[00009406ms][INFO][CELL]: AT RX ( 2): ",
[00009406ms][INFO][CELL]: AT RX ( 3): "76
[00009407ms][INFO][CELL]: AT RX ( 3): 610
[00009407ms][INFO][CELL]: AT RX ( 3): 7",
[00009407ms][INFO][CELL]: AT RX ( 3):  7<cr>
[00009407ms][INFO][CELL]: AT RX ( 2): <ln><cr>
[00009408ms][INFO][CELL]: Registering network => Attaching network
[00009408ms][INFO][CELL]: AT RX ( 7): <ln>+CGREG
[00009408ms][INFO][CELL]: AT RX ( 3): : 1
[00009408ms][INFO][CELL]: AT RX ( 3): ,"F
[00009409ms][INFO][CELL]: AT RX ( 3): FFE
[00009409ms][INFO][CELL]: AT RX ( 3): ","
[00009409ms][INFO][CELL]: AT RX ( 3): 766
[00009409ms][INFO][CELL]: AT RX ( 2): 10
[00009410ms][INFO][CELL]: AT RX ( 3): 7",
[00009410ms][INFO][CELL]: AT RX ( 3): 7<cr><ln>
[00009410ms][INFO][CELL]: AT TX ( 6): AT+CSQ
[00009410ms][INFO][CELL]: AT TX ( 1): <cr>
[00009414ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00009414ms][INFO][CELL]: AT RX ( 3): +CS
[00009414ms][INFO][CELL]: AT RX ( 3): Q: 
[00009414ms][INFO][CELL]: AT RX ( 2): 99
[00009415ms][INFO][CELL]: AT RX ( 3): ,99
[00009415ms][INFO][CELL]: AT RX ( 3): <cr><ln><cr>
[00009415ms][INFO][CELL]: AT RX ( 3): <ln>OK
[00009415ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00009416ms][INFO][CELL]: RSSI unknown
[00009416ms][INFO][CELL]: Attaching network (timeout 60000 ms)
[00009416ms][INFO][CELL]: AT TX ( 9): AT+CGATT?
[00009416ms][INFO][CELL]: AT TX ( 1): <cr>
[00009421ms][INFO][CELL]: AT RX ( 7): <cr><ln>+CGAT
[00009421ms][INFO][CELL]: AT RX ( 3): T: 
[00009421ms][INFO][CELL]: AT RX ( 3): 1<cr><ln>
[00009421ms][INFO][CELL]: AT RX ( 3): <cr><ln>O
[00009422ms][INFO][CELL]: AT RX ( 3): K<cr><ln>
[00009422ms][INFO][CELL]: AT TX ( 9): AT+CGACT?
[00009422ms][INFO][CELL]: AT TX ( 1): <cr>
[00009427ms][INFO][CELL]: AT RX ( 7): <cr><ln>+CGAC
[00009427ms][INFO][CELL]: AT RX ( 3): T: 
[00009427ms][INFO][CELL]: AT RX ( 3): 1,1
[00009427ms][INFO][CELL]: AT RX ( 3): <cr><ln><cr>
[00009428ms][INFO][CELL]: AT RX ( 3): <ln>OK
[00009428ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00009428ms][INFO][CELL]: AT TX (11): AT+CGPADDR=
[00009428ms][INFO][CELL]: AT TX ( 1): 1
[00009429ms][INFO][CELL]: AT TX ( 1): <cr>
[00009434ms][INFO][CELL]: AT RX ( 4): <cr><ln>+C
[00009434ms][INFO][CELL]: AT RX ( 3): GPA
[00009434ms][INFO][CELL]: AT RX ( 3): DDR
[00009434ms][INFO][CELL]: AT RX ( 3): : 1
[00009435ms][INFO][CELL]: AT RX ( 3): ,10
[00009435ms][INFO][CELL]: AT RX ( 2): .7
[00009435ms][INFO][CELL]: AT RX ( 3): 8.6
[00009435ms][INFO][CELL]: AT RX ( 3): .19
[00009436ms][INFO][CELL]: AT RX ( 3): 5<cr><ln>
[00009436ms][INFO][CELL]: AT RX ( 3): <cr><ln>O
[00009436ms][INFO][CELL]: AT RX ( 3): K<cr><ln>
[00009436ms][INFO][CELL]: Cellular local IP: 10.78.6.195
done

[00013095ms][INFO][CELL]: CellularContext disconnect()
[00013096ms][INFO][CELL]: AT TX ( 9): AT+CGACT?
[00013096ms][INFO][CELL]: AT TX ( 1): <cr>
[00013100ms][INFO][CELL]: AT RX ( 9): <cr><ln>+CGACT:
[00013100ms][INFO][CELL]: AT RX ( 3):  1,
[00013100ms][INFO][CELL]: AT RX ( 3): 1<cr><ln>
[00013100ms][INFO][CELL]: AT RX ( 3): <cr><ln>O
[00013101ms][INFO][CELL]: AT RX ( 3): K<cr><ln>
[00013101ms][INFO][CELL]: cb: CellularContext disconnected
[00013101ms][INFO][CELL]: CellularContext disconnected
Disconnect: 0Connection cellular network...
[00013101ms][INFO][CELL]: CellularContext connect
[00013102ms][INFO][CELL]: Start connecting (timeout 1000 ms)
[00013102ms][INFO][CELL]: AT TX ( 2): AT
[00013102ms][INFO][CELL]: AT TX ( 1): <cr>
[00013105ms][INFO][CELL]: AT RX ( 6): <cr><ln>OK<cr><ln>
[00013105ms][INFO][CELL]: AT TX ( 2): AT
[00013105ms][INFO][CELL]: AT TX ( 1): <cr>
[00013108ms][INFO][CELL]: AT RX ( 6): <cr><ln>OK<cr><ln>
[00013108ms][WARN][CELL]: URC already added with prefix: +CGEV: NW DEACT
[00013108ms][WARN][CELL]: URC already added with prefix: +CGEV: ME DEACT
[00013108ms][WARN][CELL]: URC already added with prefix: +CGEV: NW PDN D
[00013109ms][WARN][CELL]: URC already added with prefix: +CGEV: ME PDN D
[00013109ms][INFO][CELL]: AT TX ( 2): AT
[00013109ms][INFO][CELL]: AT TX ( 1): <cr>
[00013112ms][INFO][CELL]: AT RX ( 6): <cr><ln>OK<cr><ln>
[00013112ms][INFO][CELL]: AT TX ( 8): AT+CFUN=
[00013112ms][INFO][CELL]: AT TX ( 1): 4
[00013112ms][INFO][CELL]: AT TX ( 1): <cr>
[00013385ms][INFO][CELL]: AT RX ( 5): <cr><ln>OK<cr>
[00013385ms][INFO][CELL]: AT RX ( 3): <ln><cr><ln>
[00013385ms][INFO][CELL]: AT TX ( 4): ATE0
[00013385ms][INFO][CELL]: AT TX ( 1): <cr>
[00013386ms][INFO][CELL]: AT RX (10): +UUSOCL: 0
[00013386ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00013387ms][INFO][CELL]: AT RX ( 5): <cr><ln>+CR
[00013387ms][INFO][CELL]: AT RX ( 3): EG:
[00013387ms][INFO][CELL]: AT RX ( 3):  0<cr>
[00013387ms][INFO][CELL]: AT RX ( 3): <ln><cr><ln>
[00013388ms][INFO][CELL]: AT RX ( 3): +CG
[00013388ms][INFO][CELL]: AT RX ( 3): REG
[00013388ms][INFO][CELL]: AT RX ( 3): : 0
[00013388ms][INFO][CELL]: AT RX ( 3): <cr><ln><cr>
[00013389ms][INFO][CELL]: AT RX ( 3): <ln>+C
[00013389ms][INFO][CELL]: AT RX ( 3): GEV
[00013389ms][INFO][CELL]: AT RX ( 3): : M
[00013389ms][INFO][CELL]: AT RX ( 3): E D
[00013390ms][INFO][CELL]: AT RX ( 3): ETA
[00013390ms][INFO][CELL]: cb: CellularContext disconnected
[00013390ms][INFO][CELL]: CellularContext disconnected
[00013390ms][INFO][CELL]: AT RX ( 8): CH<cr><ln><cr><ln>OK
[00013391ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00013391ms][INFO][CELL]: AT TX ( 9): AT+CMEE=1
[00013391ms][INFO][CELL]: AT TX ( 1): <cr>
[00013395ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00013395ms][INFO][CELL]: AT RX ( 3): OK<cr>
[00013395ms][INFO][CELL]: AT RX ( 1): <ln>
[00013395ms][INFO][CELL]: AT TX (11): AT+CGDCONT=
[00013396ms][INFO][CELL]: AT TX ( 1): 1
[00013396ms][INFO][CELL]: AT TX ( 1): ,
[00013396ms][INFO][CELL]: AT TX ( 1): "
[00013396ms][INFO][CELL]: AT TX ( 2): IP
[00013396ms][INFO][CELL]: AT TX ( 1): "
[00013397ms][INFO][CELL]: AT TX ( 1): ,
[00013397ms][INFO][CELL]: AT TX ( 1): "
[00013397ms][INFO][CELL]: AT TX ( 8): internet
[00013397ms][INFO][CELL]: AT TX ( 1): "
[00013398ms][INFO][CELL]: AT TX ( 1): <cr>
[00013427ms][INFO][CELL]: AT RX ( 6): <cr><ln>OK<cr><ln>
[00013427ms][INFO][CELL]: AT TX (12): AT+UAUTHREQ=
[00013427ms][INFO][CELL]: AT TX ( 1): 1
[00013427ms][INFO][CELL]: AT TX ( 1): ,
[00013428ms][INFO][CELL]: AT TX ( 1): 2
[00013428ms][INFO][CELL]: AT TX ( 1): ,
[00013428ms][INFO][CELL]: AT TX ( 1): "
[00013428ms][INFO][CELL]: AT TX ( 2): pL
[00013428ms][INFO][CELL]: AT TX ( 1): "
[00013429ms][INFO][CELL]: AT TX ( 1): ,
[00013429ms][INFO][CELL]: AT TX ( 1): "
[00013429ms][INFO][CELL]: AT TX ( 2): pL
[00013429ms][INFO][CELL]: AT TX ( 1): "
[00013429ms][INFO][CELL]: AT TX ( 1): <cr>
[00013441ms][INFO][CELL]: AT RX ( 4): <cr><ln>OK
[00013441ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00013441ms][INFO][CELL]: AT TX ( 9): AT+CFUN=1
[00013441ms][INFO][CELL]: AT TX ( 1): <cr>
[00013450ms][INFO][CELL]: AT RX ( 6): <cr><ln>OK<cr><ln>
[00013450ms][INFO][CELL]: AT TX ( 7): AT+CGMI
[00013450ms][INFO][CELL]: AT TX ( 1): <cr>
[00013453ms][INFO][CELL]: AT RX (10): <cr><ln>u-blox<cr><ln>
[00013453ms][INFO][CELL]: AT RX ( 3): <cr><ln>O
[00013453ms][INFO][CELL]: AT RX ( 3): K<cr><ln>
[00013453ms][INFO][CELL]: Modem manufacturer: u-blox


[00013454ms][INFO][CELL]: AT TX ( 7): AT+CGMM
[00013454ms][INFO][CELL]: AT TX ( 1): <cr>
[00013457ms][INFO][CELL]: AT RX (11): <cr><ln>SARA-R410
[00013457ms][INFO][CELL]: AT RX ( 4): M-02
[00013457ms][INFO][CELL]: AT RX ( 3): B<cr><ln>
[00013457ms][INFO][CELL]: AT RX ( 3): <cr><ln>O
[00013458ms][INFO][CELL]: AT RX ( 3): K<cr><ln>
[00013458ms][INFO][CELL]: Modem model: SARA-R410M-02B


[00013458ms][INFO][CELL]: AT TX ( 7): AT+CGMR
[00013458ms][INFO][CELL]: AT TX ( 1): <cr>
[00013462ms][INFO][CELL]: AT RX ( 6): <cr><ln>L0.0
[00013462ms][INFO][CELL]: AT RX ( 3): .00
[00013462ms][INFO][CELL]: AT RX ( 3): .00
[00013462ms][INFO][CELL]: AT RX ( 3): .05
[00013463ms][INFO][CELL]: AT RX ( 3): .08
[00013463ms][INFO][CELL]: AT RX ( 3):  [A
[00013463ms][INFO][CELL]: AT RX ( 3): pr 
[00013463ms][INFO][CELL]: AT RX ( 2): 17
[00013464ms][INFO][CELL]: AT RX ( 3):  20
[00013464ms][INFO][CELL]: AT RX ( 3): 19 
[00013464ms][INFO][CELL]: AT RX ( 3): 19:
[00013464ms][INFO][CELL]: AT RX ( 2): 34
[00013465ms][INFO][CELL]: AT RX ( 3): :02
[00013465ms][INFO][CELL]: AT RX ( 3): ]<cr><ln>
[00013465ms][INFO][CELL]: AT RX ( 3): <cr><ln>O
[00013465ms][INFO][CELL]: AT RX ( 3): K<cr><ln>
[00013466ms][INFO][CELL]: Modem revision: L0.0.00.00.05.08 [Apr 17 2019 19:34:02]


[00013466ms][INFO][CELL]: Modem ready
[00013466ms][INFO][CELL]: Setup SIM (timeout 1000 ms)
[00013466ms][INFO][CELL]: AT TX ( 8): AT+CPIN?
[00013467ms][INFO][CELL]: AT TX ( 1): <cr>
[00013471ms][INFO][CELL]: AT RX ( 4): <cr><ln>+C
[00013471ms][INFO][CELL]: AT RX ( 4): PIN:
[00013471ms][INFO][CELL]: AT RX ( 2):  R
[00013471ms][INFO][CELL]: AT RX ( 3): EAD
[00013472ms][INFO][CELL]: AT RX ( 3): Y<cr><ln>
[00013472ms][INFO][CELL]: AT RX ( 3): <cr><ln>O
[00013472ms][INFO][CELL]: AT RX ( 3): K<cr><ln>
[00013472ms][INFO][CELL]: SIM is ready
[00013473ms][INFO][CELL]: AT TX ( 8): AT+COPS?
[00013473ms][INFO][CELL]: AT TX ( 1): <cr>
[00013478ms][INFO][CELL]: AT RX (12): <cr><ln>+COPS: 0<cr><ln>
[00013478ms][INFO][CELL]: AT RX ( 4): <cr><ln>OK
[00013478ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00013478ms][INFO][CELL]: AT TX ( 9): AT+CGREG=
[00013479ms][INFO][CELL]: AT TX ( 1): 2
[00013479ms][INFO][CELL]: AT TX ( 1): <cr>
[00013483ms][INFO][CELL]: AT RX ( 6): <cr><ln>OK<cr><ln>
[00013483ms][INFO][CELL]: AT TX ( 8): AT+CREG=
[00013483ms][INFO][CELL]: AT TX ( 1): 2
[00013483ms][INFO][CELL]: AT TX ( 1): <cr>
[00013487ms][INFO][CELL]: AT RX ( 6): <cr><ln>OK<cr><ln>
[00013487ms][INFO][CELL]: AT TX ( 9): AT+CGACT?
[00013487ms][INFO][CELL]: AT TX ( 1): <cr>
[00013491ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00013491ms][INFO][CELL]: AT RX ( 3): +CG
[00013491ms][INFO][CELL]: AT RX ( 3): ACT
[00013491ms][INFO][CELL]: AT RX ( 3): : 1
[00013492ms][INFO][CELL]: AT RX ( 2): ,0
[00013492ms][INFO][CELL]: AT RX ( 3): <cr><ln><cr>
[00013492ms][INFO][CELL]: AT RX ( 4): <ln>OK<cr>
[00013492ms][INFO][CELL]: AT RX ( 1): <ln>
[00013493ms][INFO][CELL]: AT TX ( 9): AT+CGATT?
[00013493ms][INFO][CELL]: AT TX ( 1): <cr>
[00013497ms][INFO][CELL]: AT RX ( 9): <cr><ln>+CGATT:
[00013497ms][INFO][CELL]: AT RX ( 4):  0<cr><ln>
[00013497ms][INFO][CELL]: AT RX ( 3): <cr><ln>O
[00013497ms][INFO][CELL]: AT RX ( 3): K<cr><ln>
[00013498ms][INFO][CELL]: AT TX (10): AT+CGEREP=
[00013498ms][INFO][CELL]: AT TX ( 1): 1
[00013498ms][INFO][CELL]: AT TX ( 1): <cr>
[00013502ms][INFO][CELL]: AT RX ( 6): <cr><ln>OK<cr><ln>
[00013502ms][INFO][CELL]: AT TX ( 6): AT+CSQ
[00013502ms][INFO][CELL]: AT TX ( 1): <cr>
[00013506ms][INFO][CELL]: AT RX ( 9): <cr><ln>+CSQ: 9
[00013506ms][INFO][CELL]: AT RX ( 3): 9,9
[00013506ms][INFO][CELL]: AT RX ( 3): 9<cr><ln>
[00013506ms][INFO][CELL]: AT RX ( 3): <cr><ln>O
[00013507ms][INFO][CELL]: AT RX ( 3): K<cr><ln>
[00013507ms][INFO][CELL]: AT TX ( 6): AT+CSQ
[00013507ms][INFO][CELL]: AT TX ( 1): <cr>
[00013511ms][INFO][CELL]: AT RX (10): <cr><ln>+CSQ: 99
[00013511ms][INFO][CELL]: AT RX ( 3): ,99
[00013511ms][INFO][CELL]: AT RX ( 3): <cr><ln><cr>
[00013511ms][INFO][CELL]: AT RX ( 3): <ln>OK
[00013512ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00013512ms][INFO][CELL]: RSSI unknown
[00013512ms][INFO][CELL]: AT TX ( 9): AT+CGREG?
[00013512ms][INFO][CELL]: AT TX ( 1): <cr>
[00013517ms][INFO][CELL]: AT RX (10): <cr><ln>+CGREG: 
[00013517ms][INFO][CELL]: AT RX ( 3): 2,4
[00013517ms][INFO][CELL]: AT RX ( 3): <cr><ln><cr>
[00013517ms][INFO][CELL]: AT RX ( 3): <ln>OK
[00013518ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00013518ms][INFO][CELL]: Network registration (timeout 180000 ms)
[00013518ms][INFO][CELL]: AT TX ( 8): AT+COPS?
[00013518ms][INFO][CELL]: AT TX ( 1): <cr>
[00013522ms][INFO][CELL]: AT RX ( 6): <cr><ln>+COP
[00013522ms][INFO][CELL]: AT RX ( 4): S: 0
[00013522ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00013522ms][INFO][CELL]: AT RX ( 3): <cr><ln>O
[00013523ms][INFO][CELL]: AT RX ( 3): K<cr><ln>
[00013523ms][INFO][CELL]: Continue after 4 seconds
[00013946ms][INFO][CELL]: AT RX ( 1): <cr>
[00013946ms][INFO][CELL]: AT RX ( 3): <ln>+C
[00013947ms][INFO][CELL]: AT RX ( 3): REG
[00013947ms][INFO][CELL]: AT RX ( 3): : 2
[00013947ms][INFO][CELL]: AT RX ( 3): <cr><ln><cr>
[00013948ms][INFO][CELL]: AT RX ( 3): <ln>+C
[00013948ms][INFO][CELL]: AT RX ( 3): GRE
[00013948ms][INFO][CELL]: AT RX ( 3): G: 
[00013948ms][INFO][CELL]: AT RX ( 3): 2<cr><ln>
[00014838ms][INFO][CELL]: AT RX ( 1): <cr>
[00014839ms][INFO][CELL]: AT RX ( 3): <ln>+C
[00014839ms][INFO][CELL]: AT RX ( 3): REG
[00014839ms][INFO][CELL]: AT RX ( 3): : 1
[00014839ms][INFO][CELL]: AT RX ( 3): ,"F
[00014840ms][INFO][CELL]: AT RX ( 3): FFE
[00014840ms][INFO][CELL]: AT RX ( 3): ","
[00014840ms][INFO][CELL]: AT RX ( 2): 76
[00014840ms][INFO][CELL]: AT RX ( 3): 610
[00014841ms][INFO][CELL]: AT RX ( 3): 7",
[00014841ms][INFO][CELL]: AT RX ( 3):  7<cr>
[00014841ms][INFO][CELL]: AT RX ( 3): <ln><cr><ln>
[00014841ms][INFO][CELL]: Registering network => Attaching network
[00014842ms][INFO][CELL]: AT RX ( 6): +CGREG
[00014842ms][INFO][CELL]: AT RX ( 3): : 1
[00014842ms][INFO][CELL]: AT RX ( 3): ,"F
[00014842ms][INFO][CELL]: AT RX ( 3): FFE
[00014843ms][INFO][CELL]: AT RX ( 3): ","
[00014843ms][INFO][CELL]: AT RX ( 3): 766
[00014843ms][INFO][CELL]: AT RX ( 3): 107
[00014843ms][INFO][CELL]: AT RX ( 2): ",
[00014844ms][INFO][CELL]: AT RX ( 3): 7<cr><ln>
[00014844ms][INFO][CELL]: AT TX ( 6): AT+CSQ
[00014844ms][INFO][CELL]: AT TX ( 1): <cr>
[00014849ms][INFO][CELL]: AT RX (10): <cr><ln>+CSQ: 99
[00014849ms][INFO][CELL]: AT RX ( 3): ,99
[00014849ms][INFO][CELL]: AT RX ( 3): <cr><ln><cr>
[00014849ms][INFO][CELL]: AT RX ( 3): <ln>OK
[00014850ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00014850ms][INFO][CELL]: RSSI unknown
[00014850ms][INFO][CELL]: Attaching network (timeout 60000 ms)
[00014850ms][INFO][CELL]: AT TX ( 9): AT+CGATT?
[00014851ms][INFO][CELL]: AT TX ( 1): <cr>
[00014854ms][INFO][CELL]: AT RX ( 1): <cr>
[00014854ms][INFO][CELL]: AT RX ( 3): <ln>+C
[00014854ms][INFO][CELL]: AT RX ( 3): GAT
[00014854ms][INFO][CELL]: AT RX ( 2): T:
[00014855ms][INFO][CELL]: AT RX ( 3):  1<cr>
[00014855ms][INFO][CELL]: AT RX ( 3): <ln><cr><ln>
[00014855ms][INFO][CELL]: AT RX ( 3): OK<cr>
[00014855ms][INFO][CELL]: AT RX ( 1): <ln>
[00014856ms][INFO][CELL]: AT TX ( 9): AT+CGACT?
[00014856ms][INFO][CELL]: AT TX ( 1): <cr>
[00014861ms][INFO][CELL]: AT RX (10): <cr><ln>+CGACT: 
[00014861ms][INFO][CELL]: AT RX ( 3): 1,1
[00014861ms][INFO][CELL]: AT RX ( 3): <cr><ln><cr>
[00014861ms][INFO][CELL]: AT RX ( 3): <ln>OK
[00014862ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00014862ms][INFO][CELL]: AT TX (11): AT+CGPADDR=
[00014862ms][INFO][CELL]: AT TX ( 2): -1
[00014862ms][INFO][CELL]: AT TX ( 1): <cr>
[00014866ms][INFO][CELL]: AT RX ( 5): <cr><ln>ERR
[00014866ms][INFO][CELL]: AT RX ( 3): OR<cr>
[00014866ms][INFO][CELL]: AT RX ( 1): <ln>
[00015066ms][INFO][CELL]: AT TX (11): AT+CGPADDR=
[00015066ms][INFO][CELL]: AT TX ( 2): -1
[00015066ms][INFO][CELL]: AT TX ( 1): <cr>
[00015071ms][INFO][CELL]: AT RX ( 4): <cr><ln>ER
[00015071ms][INFO][CELL]: AT RX ( 3): ROR
[00015071ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00015271ms][INFO][CELL]: AT TX (11): AT+CGPADDR=
[00015271ms][INFO][CELL]: AT TX ( 2): -1
[00015271ms][INFO][CELL]: AT TX ( 1): <cr>
[00015278ms][INFO][CELL]: AT RX ( 9): <cr><ln>ERROR<cr><ln>
[00015478ms][INFO][CELL]: AT TX (11): AT+CGPADDR=
[00015478ms][INFO][CELL]: AT TX ( 2): -1
[00015478ms][INFO][CELL]: AT TX ( 1): <cr>
[00015482ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00015482ms][INFO][CELL]: AT RX ( 3): ERR
[00015482ms][INFO][CELL]: AT RX ( 3): OR<cr>
[00015482ms][INFO][CELL]: AT RX ( 1): <ln>
[00015682ms][INFO][CELL]: AT TX (11): AT+CGPADDR=
[00015682ms][INFO][CELL]: AT TX ( 2): -1
[00015682ms][INFO][CELL]: AT TX ( 1): <cr>
[00015689ms][INFO][CELL]: AT RX ( 9): <cr><ln>ERROR<cr><ln>
[00015889ms][INFO][CELL]: AT TX (11): AT+CGPADDR=
[00015889ms][INFO][CELL]: AT TX ( 2): -1
[00015889ms][INFO][CELL]: AT TX ( 1): <cr>
[00015896ms][INFO][CELL]: AT RX ( 9): <cr><ln>ERROR<cr><ln>
[00016096ms][INFO][CELL]: AT TX (11): AT+CGPADDR=
[00016096ms][INFO][CELL]: AT TX ( 2): -1
[00016096ms][INFO][CELL]: AT TX ( 1): <cr>
[00016104ms][INFO][CELL]: AT RX ( 9): <cr><ln>ERROR<cr><ln>
[00016304ms][INFO][CELL]: AT TX (11): AT+CGPADDR=
[00016304ms][INFO][CELL]: AT TX ( 2): -1
[00016304ms][INFO][CELL]: AT TX ( 1): <cr>
[00016311ms][INFO][CELL]: AT RX ( 9): <cr><ln>ERROR<cr><ln>
[00016511ms][INFO][CELL]: AT TX (11): AT+CGPADDR=
[00016511ms][INFO][CELL]: AT TX ( 2): -1
[00016511ms][INFO][CELL]: AT TX ( 1): <cr>
[00016515ms][INFO][CELL]: AT RX ( 1): <cr>
[00016515ms][INFO][CELL]: AT RX ( 3): <ln>ER
[00016515ms][INFO][CELL]: AT RX ( 3): ROR
[00016515ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00016715ms][INFO][CELL]: AT TX (11): AT+CGPADDR=
[00016715ms][INFO][CELL]: AT TX ( 2): -1
[00016715ms][INFO][CELL]: AT TX ( 1): <cr>
[00016722ms][INFO][CELL]: AT RX ( 9): <cr><ln>ERROR<cr><ln>
[00016922ms][INFO][CELL]: AT TX (11): AT+CGPADDR=
[00016922ms][INFO][CELL]: AT TX ( 2): -1
[00016922ms][INFO][CELL]: AT TX ( 1): <cr>
[00016929ms][INFO][CELL]: AT RX ( 9): <cr><ln>ERROR<cr><ln>
[00016929ms][WARN][CELL]: Connected but no local ip address
done

I see that the problem in the second try is at the very end: “AT+CPGADDR=-1” . But honestly i have no idea why there is a “-1” the second time.

I had issues with connecting immediately after disconnecting too (Quectel modem). As you see in the logs at 13389ms the modem sends a URC (ME DETACH), which is then interpreted by the state machine as a disconnection indication, which messes up the ongoing connection process. This is obviously a bug in the state machine. Waiting for some time (until the URC is received) to reconnect would be a possible workaround. If you can come up with another solution, I would be interested too.

Hi
Ty for your answer. Didn’t noticed the URC(ME DETACH).
However just waiting doesn’t resolve the problem. I have waited 60s until trying to reconnect. But the URC just comes later. See log. (71438ms)

Built: Apr 21 2021, 16:11:59
[00000000ms][INFO][CELL]: New CellularContext  (20006170)
Connection cellular network...
[00000001ms][INFO][CELL]: CellularContext connect
[00000001ms][INFO][CELL]: Start connecting (timeout 1000 ms)
[00000001ms][INFO][CELL]: AT TX ( 2): AT
[00000001ms][INFO][CELL]: AT TX ( 1): <cr>
[00000066ms][INFO][CELL]: AT RX ( 1): <00>
[00001002ms][INFO][CELL]: AT TX ( 2): AT
[00001002ms][INFO][CELL]: AT TX ( 1): <cr>
[00002024ms][INFO][CELL]: Modem power ON (timeout 1000 ms)
[00002024ms][INFO][CELL]: AT TX ( 2): AT
[00002024ms][INFO][CELL]: AT TX ( 1): <cr>
[00003025ms][INFO][CELL]: AT TX ( 8): AT+CFUN=
[00003025ms][INFO][CELL]: AT TX ( 1): 4
[00003025ms][INFO][CELL]: AT TX ( 1): <cr>
[00004026ms][INFO][CELL]: Continue after 4 seconds
[00008026ms][WARN][CELL]: URC already added with prefix: +CGEV: NW DEACT
[00008026ms][WARN][CELL]: URC already added with prefix: +CGEV: ME DEACT
[00008026ms][WARN][CELL]: URC already added with prefix: +CGEV: NW PDN D
[00008026ms][WARN][CELL]: URC already added with prefix: +CGEV: ME PDN D
[00008027ms][INFO][CELL]: AT TX ( 2): AT
[00008027ms][INFO][CELL]: AT TX ( 1): <cr>
[00008031ms][INFO][CELL]: AT RX ( 3): AT<cr>
[00008032ms][INFO][CELL]: AT RX ( 6): <cr><ln>OK<cr><ln>
[00008032ms][INFO][CELL]: AT TX ( 8): AT+CFUN=
[00008032ms][INFO][CELL]: AT TX ( 1): 4
[00008032ms][INFO][CELL]: AT TX ( 1): <cr>
[00008036ms][INFO][CELL]: AT RX (10): AT+CFUN=4<cr>
[00008173ms][INFO][CELL]: AT RX ( 6): <cr><ln>OK<cr><ln>
[00008173ms][INFO][CELL]: AT TX ( 4): ATE0
[00008173ms][INFO][CELL]: AT TX ( 1): <cr>
[00008176ms][INFO][CELL]: AT RX ( 3): ATE
[00008176ms][INFO][CELL]: AT RX ( 3): 0<cr><cr>
[00008176ms][INFO][CELL]: AT RX ( 3): <ln>OK
[00008176ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00008177ms][INFO][CELL]: AT TX ( 9): AT+CMEE=1
[00008177ms][INFO][CELL]: AT TX ( 1): <cr>
[00008181ms][INFO][CELL]: AT RX ( 6): <cr><ln>OK<cr><ln>
[00008181ms][INFO][CELL]: AT TX ( 7): AT+CIMI
[00008181ms][INFO][CELL]: AT TX ( 1): <cr>
[00008186ms][INFO][CELL]: AT RX ( 5): <cr><ln>228
[00008186ms][INFO][CELL]: AT RX ( 3): 024
[00008186ms][INFO][CELL]: AT RX ( 3): 559
[00008186ms][INFO][CELL]: AT RX ( 3): 504
[00008187ms][INFO][CELL]: AT RX ( 3): 688
[00008187ms][INFO][CELL]: AT RX ( 3): <cr><ln><cr>
[00008187ms][INFO][CELL]: AT RX ( 3): <ln>OK
[00008187ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00008188ms][INFO][CELL]: AT TX (11): AT+CGDCONT=
[00008188ms][INFO][CELL]: AT TX ( 1): 1
[00008188ms][INFO][CELL]: AT TX ( 1): ,
[00008188ms][INFO][CELL]: AT TX ( 1): "
[00008189ms][INFO][CELL]: AT TX ( 2): IP
[00008189ms][INFO][CELL]: AT TX ( 1): "
[00008189ms][INFO][CELL]: AT TX ( 1): ,
[00008189ms][INFO][CELL]: AT TX ( 1): "
[00008189ms][INFO][CELL]: AT TX ( 8): internet
[00008190ms][INFO][CELL]: AT TX ( 1): "
[00008190ms][INFO][CELL]: AT TX ( 1): <cr>
[00008224ms][INFO][CELL]: AT RX ( 6): <cr><ln>OK<cr><ln>
[00008224ms][INFO][CELL]: AT TX (12): AT+UAUTHREQ=
[00008224ms][INFO][CELL]: AT TX ( 1): 1
[00008224ms][INFO][CELL]: AT TX ( 1): ,
[00008225ms][INFO][CELL]: AT TX ( 1): 2
[00008225ms][INFO][CELL]: AT TX ( 1): ,
[00008225ms][INFO][CELL]: AT TX ( 1): "
[00008225ms][INFO][CELL]: AT TX ( 2): pL
[00008225ms][INFO][CELL]: AT TX ( 1): "
[00008226ms][INFO][CELL]: AT TX ( 1): ,
[00008226ms][INFO][CELL]: AT TX ( 1): "
[00008226ms][INFO][CELL]: AT TX ( 2): pL
[00008226ms][INFO][CELL]: AT TX ( 1): "
[00008226ms][INFO][CELL]: AT TX ( 1): <cr>
[00008240ms][INFO][CELL]: AT RX ( 6): <cr><ln>OK<cr><ln>
[00008240ms][INFO][CELL]: AT TX ( 9): AT+CFUN=1
[00008240ms][INFO][CELL]: AT TX ( 1): <cr>
[00008250ms][INFO][CELL]: AT RX ( 6): <cr><ln>OK<cr><ln>
[00008250ms][INFO][CELL]: AT TX ( 7): AT+CGMI
[00008250ms][INFO][CELL]: AT TX ( 1): <cr>
[00008253ms][INFO][CELL]: AT RX ( 6): <cr><ln>u-bl
[00008253ms][INFO][CELL]: AT RX ( 3): ox<cr>
[00008253ms][INFO][CELL]: AT RX ( 3): <ln><cr><ln>
[00008253ms][INFO][CELL]: AT RX ( 3): OK<cr>
[00008254ms][INFO][CELL]: AT RX ( 1): <ln>
[00008254ms][INFO][CELL]: Modem manufacturer: u-blox


[00008254ms][INFO][CELL]: AT TX ( 7): AT+CGMM
[00008254ms][INFO][CELL]: AT TX ( 1): <cr>
[00008258ms][INFO][CELL]: AT RX ( 6): <cr><ln>SARA
[00008258ms][INFO][CELL]: AT RX ( 3): -R4
[00008258ms][INFO][CELL]: AT RX ( 3): 10M
[00008258ms][INFO][CELL]: AT RX ( 3): -02
[00008259ms][INFO][CELL]: AT RX ( 3): B<cr><ln>
[00008259ms][INFO][CELL]: AT RX ( 3): <cr><ln>O
[00008259ms][INFO][CELL]: AT RX ( 3): K<cr><ln>
[00008259ms][INFO][CELL]: Modem model: SARA-R410M-02B


[00008260ms][INFO][CELL]: AT TX ( 7): AT+CGMR
[00008260ms][INFO][CELL]: AT TX ( 1): <cr>
[00008263ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00008263ms][INFO][CELL]: AT RX ( 3): L0.
[00008263ms][INFO][CELL]: AT RX ( 3): 0.0
[00008263ms][INFO][CELL]: AT RX ( 3): 0.0
[00008264ms][INFO][CELL]: AT RX ( 3): 0.0
[00008264ms][INFO][CELL]: AT RX ( 3): 5.0
[00008264ms][INFO][CELL]: AT RX ( 3): 8 [
[00008264ms][INFO][CELL]: AT RX ( 3): Apr
[00008265ms][INFO][CELL]: AT RX ( 2):  1
[00008265ms][INFO][CELL]: AT RX ( 3): 7 2
[00008265ms][INFO][CELL]: AT RX ( 3): 019
[00008265ms][INFO][CELL]: AT RX ( 3):  19
[00008266ms][INFO][CELL]: AT RX ( 3): :34
[00008266ms][INFO][CELL]: AT RX ( 2): :0
[00008266ms][INFO][CELL]: AT RX ( 3): 2]<cr>
[00008266ms][INFO][CELL]: AT RX ( 3): <ln><cr><ln>
[00008267ms][INFO][CELL]: AT RX ( 3): OK<cr>
[00008267ms][INFO][CELL]: AT RX ( 1): <ln>
[00008267ms][INFO][CELL]: Modem revision: L0.0.00.00.05.08 [Apr 17 2019 19:34:02]


[00008267ms][INFO][CELL]: Modem ready
[00008267ms][INFO][CELL]: Setup SIM (timeout 1000 ms)
[00008268ms][INFO][CELL]: AT TX ( 8): AT+CPIN?
[00008268ms][INFO][CELL]: AT TX ( 1): <cr>
[00008272ms][INFO][CELL]: AT RX ( 6): <cr><ln>+CPI
[00008272ms][INFO][CELL]: AT RX ( 4): N: R
[00008272ms][INFO][CELL]: AT RX ( 3): EAD
[00008272ms][INFO][CELL]: AT RX ( 2): Y<cr>
[00008273ms][INFO][CELL]: AT RX ( 3): <ln><cr><ln>
[00008273ms][INFO][CELL]: AT RX ( 3): OK<cr>
[00008273ms][INFO][CELL]: AT RX ( 1): <ln>
[00008273ms][INFO][CELL]: SIM is ready
[00008274ms][INFO][CELL]: AT TX ( 8): AT+COPS?
[00008274ms][INFO][CELL]: AT TX ( 1): <cr>
[00008278ms][INFO][CELL]: AT RX ( 1): <cr>
[00008278ms][INFO][CELL]: AT RX ( 3): <ln>+C
[00008278ms][INFO][CELL]: AT RX ( 3): OPS
[00008278ms][INFO][CELL]: AT RX ( 3): : 0
[00008279ms][INFO][CELL]: AT RX ( 3): <cr><ln><cr>
[00008279ms][INFO][CELL]: AT RX ( 3): <ln>OK
[00008279ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00008279ms][INFO][CELL]: AT TX ( 9): AT+CGREG=
[00008280ms][INFO][CELL]: AT TX ( 1): 2
[00008280ms][INFO][CELL]: AT TX ( 1): <cr>
[00008284ms][INFO][CELL]: AT RX ( 6): <cr><ln>OK<cr><ln>
[00008284ms][INFO][CELL]: AT TX ( 8): AT+CREG=
[00008284ms][INFO][CELL]: AT TX ( 1): 2
[00008284ms][INFO][CELL]: AT TX ( 1): <cr>
[00008288ms][INFO][CELL]: AT RX ( 6): <cr><ln>OK<cr><ln>
[00008288ms][INFO][CELL]: AT TX ( 9): AT+CGACT?
[00008288ms][INFO][CELL]: AT TX ( 1): <cr>
[00008293ms][INFO][CELL]: AT RX ( 8): <cr><ln>+CGACT
[00008293ms][INFO][CELL]: AT RX ( 3): : 1
[00008293ms][INFO][CELL]: AT RX ( 3): ,0<cr>
[00008293ms][INFO][CELL]: AT RX ( 3): <ln><cr><ln>
[00008294ms][INFO][CELL]: AT RX ( 3): OK<cr>
[00008294ms][INFO][CELL]: AT RX ( 1): <ln>
[00008294ms][INFO][CELL]: AT TX ( 9): AT+CGATT?
[00008294ms][INFO][CELL]: AT TX ( 1): <cr>
[00008298ms][INFO][CELL]: AT RX ( 7): <cr><ln>+CGAT
[00008298ms][INFO][CELL]: AT RX ( 3): T: 
[00008298ms][INFO][CELL]: AT RX ( 3): 0<cr><ln>
[00008298ms][INFO][CELL]: AT RX ( 3): <cr><ln>O
[00008299ms][INFO][CELL]: AT RX ( 3): K<cr><ln>
[00008299ms][INFO][CELL]: AT TX (10): AT+CGEREP=
[00008299ms][INFO][CELL]: AT TX ( 1): 1
[00008299ms][INFO][CELL]: AT TX ( 1): <cr>
[00008304ms][INFO][CELL]: AT RX ( 6): <cr><ln>OK<cr><ln>
[00008304ms][INFO][CELL]: AT TX ( 6): AT+CSQ
[00008304ms][INFO][CELL]: AT TX ( 1): <cr>
[00008308ms][INFO][CELL]: AT RX (10): <cr><ln>+CSQ: 99
[00008308ms][INFO][CELL]: AT RX ( 3): ,99
[00008308ms][INFO][CELL]: AT RX ( 3): <cr><ln><cr>
[00008308ms][INFO][CELL]: AT RX ( 3): <ln>OK
[00008309ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00008309ms][INFO][CELL]: AT TX ( 6): AT+CSQ
[00008309ms][INFO][CELL]: AT TX ( 1): <cr>
[00008313ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00008313ms][INFO][CELL]: AT RX ( 3): +CS
[00008313ms][INFO][CELL]: AT RX ( 3): Q: 
[00008313ms][INFO][CELL]: AT RX ( 3): 99,
[00008314ms][INFO][CELL]: AT RX ( 3): 99<cr>
[00008314ms][INFO][CELL]: AT RX ( 3): <ln><cr><ln>
[00008314ms][INFO][CELL]: AT RX ( 3): OK<cr>
[00008314ms][INFO][CELL]: AT RX ( 1): <ln>
[00008315ms][INFO][CELL]: RSSI unknown
[00008315ms][INFO][CELL]: AT TX ( 9): AT+CGREG?
[00008315ms][INFO][CELL]: AT TX ( 1): <cr>
[00008319ms][INFO][CELL]: AT RX (10): <cr><ln>+CGREG: 
[00008319ms][INFO][CELL]: AT RX ( 3): 2,4
[00008319ms][INFO][CELL]: AT RX ( 3): <cr><ln><cr>
[00008319ms][INFO][CELL]: AT RX ( 3): <ln>OK
[00008320ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00008320ms][INFO][CELL]: Network registration (timeout 180000 ms)
[00008320ms][INFO][CELL]: AT TX ( 8): AT+COPS?
[00008320ms][INFO][CELL]: AT TX ( 1): <cr>
[00008325ms][INFO][CELL]: AT RX (10): <cr><ln>+COPS: 0
[00008325ms][INFO][CELL]: AT RX ( 4): <cr><ln><cr><ln>
[00008325ms][INFO][CELL]: AT RX ( 3): OK<cr>
[00008325ms][INFO][CELL]: AT RX ( 1): <ln>
[00008326ms][INFO][CELL]: Continue after 4 seconds
[00008751ms][INFO][CELL]: AT RX ( 1): <cr>
[00008751ms][INFO][CELL]: AT RX ( 3): <ln>+C
[00008751ms][INFO][CELL]: AT RX ( 3): REG
[00008751ms][INFO][CELL]: AT RX ( 3): : 2
[00008752ms][INFO][CELL]: AT RX ( 3): <cr><ln><cr>
[00008752ms][INFO][CELL]: AT RX ( 3): <ln>+C
[00008752ms][INFO][CELL]: AT RX ( 3): GRE
[00008753ms][INFO][CELL]: AT RX ( 3): G: 
[00008753ms][INFO][CELL]: AT RX ( 3): 2<cr><ln>
[00009622ms][INFO][CELL]: AT RX ( 1): <cr>
[00009622ms][INFO][CELL]: AT RX ( 3): <ln>+C
[00009623ms][INFO][CELL]: AT RX ( 3): REG
[00009623ms][INFO][CELL]: AT RX ( 3): : 1
[00009623ms][INFO][CELL]: AT RX ( 3): ,"F
[00009623ms][INFO][CELL]: AT RX ( 3): FFE
[00009623ms][INFO][CELL]: AT RX ( 2): ",
[00009624ms][INFO][CELL]: AT RX ( 3): "76
[00009624ms][INFO][CELL]: AT RX ( 3): 610
[00009624ms][INFO][CELL]: AT RX ( 3): 7",
[00009624ms][INFO][CELL]: AT RX ( 3):  7<cr>
[00009625ms][INFO][CELL]: AT RX ( 3): <ln><cr><ln>
[00009625ms][INFO][CELL]: Registering network => Attaching network
[00009625ms][INFO][CELL]: AT RX ( 6): +CGREG
[00009626ms][INFO][CELL]: AT RX ( 3): : 1
[00009626ms][INFO][CELL]: AT RX ( 3): ,"F
[00009626ms][INFO][CELL]: AT RX ( 3): FFE
[00009626ms][INFO][CELL]: AT RX ( 3): ","
[00009627ms][INFO][CELL]: AT RX ( 3): 766
[00009627ms][INFO][CELL]: AT RX ( 3): 107
[00009627ms][INFO][CELL]: AT RX ( 2): ",
[00009627ms][INFO][CELL]: AT RX ( 3): 7<cr><ln>
[00009628ms][INFO][CELL]: AT TX ( 6): AT+CSQ
[00009628ms][INFO][CELL]: AT TX ( 1): <cr>
[00009633ms][INFO][CELL]: AT RX ( 9): <cr><ln>+CSQ: 9
[00009633ms][INFO][CELL]: AT RX ( 3): 9,9
[00009633ms][INFO][CELL]: AT RX ( 3): 9<cr><ln>
[00009633ms][INFO][CELL]: AT RX ( 3): <cr><ln>O
[00009634ms][INFO][CELL]: AT RX ( 3): K<cr><ln>
[00009634ms][INFO][CELL]: RSSI unknown
[00009634ms][INFO][CELL]: Attaching network (timeout 60000 ms)
[00009634ms][INFO][CELL]: AT TX ( 9): AT+CGATT?
[00009635ms][INFO][CELL]: AT TX ( 1): <cr>
[00009639ms][INFO][CELL]: AT RX ( 3): <cr><ln>+
[00009639ms][INFO][CELL]: AT RX ( 3): CGA
[00009639ms][INFO][CELL]: AT RX ( 3): TT:
[00009639ms][INFO][CELL]: AT RX ( 3):  1<cr>
[00009640ms][INFO][CELL]: AT RX ( 3): <ln><cr><ln>
[00009640ms][INFO][CELL]: AT RX ( 3): OK<cr>
[00009640ms][INFO][CELL]: AT RX ( 1): <ln>
[00009640ms][INFO][CELL]: AT TX ( 9): AT+CGACT?
[00009641ms][INFO][CELL]: AT TX ( 1): <cr>
[00009645ms][INFO][CELL]: AT RX ( 1): <cr>
[00009645ms][INFO][CELL]: AT RX ( 3): <ln>+C
[00009645ms][INFO][CELL]: AT RX ( 3): GAC
[00009645ms][INFO][CELL]: AT RX ( 3): T: 
[00009646ms][INFO][CELL]: AT RX ( 3): 1,1
[00009646ms][INFO][CELL]: AT RX ( 3): <cr><ln><cr>
[00009646ms][INFO][CELL]: AT RX ( 3): <ln>OK
[00009646ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00009647ms][INFO][CELL]: AT TX (11): AT+CGPADDR=
[00009647ms][INFO][CELL]: AT TX ( 1): 1
[00009647ms][INFO][CELL]: AT TX ( 1): <cr>
[00009652ms][INFO][CELL]: AT RX ( 1): <cr>
[00009652ms][INFO][CELL]: AT RX ( 3): <ln>+C
[00009652ms][INFO][CELL]: AT RX ( 3): GPA
[00009652ms][INFO][CELL]: AT RX ( 3): DDR
[00009653ms][INFO][CELL]: AT RX ( 3): : 1
[00009653ms][INFO][CELL]: AT RX ( 3): ,10
[00009653ms][INFO][CELL]: AT RX ( 3): .64
[00009653ms][INFO][CELL]: AT RX ( 2): .1
[00009654ms][INFO][CELL]: AT RX ( 3): 19.
[00009654ms][INFO][CELL]: AT RX ( 3): 52<cr>
[00009654ms][INFO][CELL]: AT RX ( 3): <ln><cr><ln>
[00009654ms][INFO][CELL]: AT RX ( 3): OK<cr>
[00009655ms][INFO][CELL]: AT RX ( 1): <ln>
[00009655ms][INFO][CELL]: Cellular local IP: 10.64.119.52
done
[00011128ms][INFO][CELL]: CellularContext disconnect()
[00011129ms][INFO][CELL]: AT TX ( 9): AT+CGACT?
[00011129ms][INFO][CELL]: AT TX ( 1): <cr>
[00011132ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00011132ms][INFO][CELL]: AT RX ( 3): +CG
[00011132ms][INFO][CELL]: AT RX ( 3): ACT
[00011132ms][INFO][CELL]: AT RX ( 3): : 1
[00011133ms][INFO][CELL]: AT RX ( 3): ,1<cr>
[00011133ms][INFO][CELL]: AT RX ( 3): <ln><cr><ln>
[00011133ms][INFO][CELL]: AT RX ( 3): OK<cr>
[00011133ms][INFO][CELL]: AT RX ( 1): <ln>
[00011134ms][INFO][CELL]: cb: CellularContext disconnected
[00011134ms][INFO][CELL]: CellularContext disconnected
Connection cellular network...
[00071134ms][INFO][CELL]: CellularContext connect
[00071134ms][INFO][CELL]: Start connecting (timeout 1000 ms)
[00071135ms][INFO][CELL]: AT TX ( 2): AT
[00071135ms][INFO][CELL]: AT TX ( 1): <cr>
[00071140ms][INFO][CELL]: AT RX ( 4): <cr><ln>OK
[00071140ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00071140ms][INFO][CELL]: AT TX ( 2): AT
[00071140ms][INFO][CELL]: AT TX ( 1): <cr>
[00071148ms][INFO][CELL]: AT RX ( 6): <cr><ln>OK<cr><ln>
[00071148ms][WARN][CELL]: URC already added with prefix: +CGEV: NW DEACT
[00071148ms][WARN][CELL]: URC already added with prefix: +CGEV: ME DEACT
[00071148ms][WARN][CELL]: URC already added with prefix: +CGEV: NW PDN D
[00071149ms][WARN][CELL]: URC already added with prefix: +CGEV: ME PDN D
[00071149ms][INFO][CELL]: AT TX ( 2): AT
[00071149ms][INFO][CELL]: AT TX ( 1): <cr>
[00071155ms][INFO][CELL]: AT RX ( 1): <cr>
[00071155ms][INFO][CELL]: AT RX ( 3): <ln>OK
[00071155ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00071155ms][INFO][CELL]: AT TX ( 8): AT+CFUN=
[00071156ms][INFO][CELL]: AT TX ( 1): 4
[00071156ms][INFO][CELL]: AT TX ( 1): <cr>
[00071435ms][INFO][CELL]: AT RX (10): <cr><ln>OK<cr><ln><cr><ln>+U
[00071435ms][INFO][CELL]: AT TX ( 4): ATE0
[00071435ms][INFO][CELL]: AT TX ( 1): <cr>
[00071435ms][INFO][CELL]: AT RX (10): USOCL: 0<cr><ln>
[00071436ms][INFO][CELL]: AT RX ( 1): <cr>
[00071436ms][INFO][CELL]: AT RX ( 3): <ln>+C
[00071436ms][INFO][CELL]: AT RX ( 3): REG
[00071436ms][INFO][CELL]: AT RX ( 3): : 0
[00071437ms][INFO][CELL]: AT RX ( 3): <cr><ln><cr>
[00071437ms][INFO][CELL]: AT RX ( 3): <ln>+C
[00071437ms][INFO][CELL]: AT RX ( 3): GRE
[00071438ms][INFO][CELL]: AT RX ( 3): G: 
[00071438ms][INFO][CELL]: AT RX ( 3): 0<cr><ln>
[00071438ms][INFO][CELL]: AT RX ( 3): <cr><ln>+
[00071438ms][INFO][CELL]: AT RX ( 3): CGE
[00071439ms][INFO][CELL]: AT RX ( 3): V: 
[00071439ms][INFO][CELL]: AT RX ( 3): ME 
[00071439ms][INFO][CELL]: AT RX ( 3): DET
[00071439ms][INFO][CELL]: AT RX ( 3): ACH
[00071440ms][INFO][CELL]: cb: CellularContext disconnected
[00071440ms][INFO][CELL]: CellularContext disconnected
[00071440ms][INFO][CELL]: AT RX ( 8): <cr><ln><cr><ln>OK<cr><ln>
[00071440ms][INFO][CELL]: AT TX ( 9): AT+CMEE=1
[00071441ms][INFO][CELL]: AT TX ( 1): <cr>
[00071446ms][INFO][CELL]: AT RX ( 6): <cr><ln>OK<cr><ln>
[00071446ms][INFO][CELL]: AT TX (11): AT+CGDCONT=
[00071446ms][INFO][CELL]: AT TX ( 1): 1
[00071446ms][INFO][CELL]: AT TX ( 1): ,
[00071447ms][INFO][CELL]: AT TX ( 1): "
[00071447ms][INFO][CELL]: AT TX ( 2): IP
[00071447ms][INFO][CELL]: AT TX ( 1): "
[00071447ms][INFO][CELL]: AT TX ( 1): ,
[00071447ms][INFO][CELL]: AT TX ( 1): "
[00071448ms][INFO][CELL]: AT TX ( 8): internet
[00071448ms][INFO][CELL]: AT TX ( 1): "
[00071448ms][INFO][CELL]: AT TX ( 1): <cr>
[00071479ms][INFO][CELL]: AT RX ( 1): <cr>
[00071479ms][INFO][CELL]: AT RX ( 3): <ln>OK
[00071479ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00071479ms][INFO][CELL]: AT TX (12): AT+UAUTHREQ=
[00071480ms][INFO][CELL]: AT TX ( 1): 1
[00071480ms][INFO][CELL]: AT TX ( 1): ,
[00071480ms][INFO][CELL]: AT TX ( 1): 2
[00071480ms][INFO][CELL]: AT TX ( 1): ,
[00071480ms][INFO][CELL]: AT TX ( 1): "
[00071481ms][INFO][CELL]: AT TX ( 2): pL
[00071481ms][INFO][CELL]: AT TX ( 1): "
[00071481ms][INFO][CELL]: AT TX ( 1): ,
[00071481ms][INFO][CELL]: AT TX ( 1): "
[00071482ms][INFO][CELL]: AT TX ( 2): pL
[00071482ms][INFO][CELL]: AT TX ( 1): "
[00071482ms][INFO][CELL]: AT TX ( 1): <cr>
[00071494ms][INFO][CELL]: AT RX ( 6): <cr><ln>OK<cr><ln>
[00071494ms][INFO][CELL]: AT TX ( 9): AT+CFUN=1
[00071494ms][INFO][CELL]: AT TX ( 1): <cr>
[00071504ms][INFO][CELL]: AT RX ( 1): <cr>
[00071504ms][INFO][CELL]: AT RX ( 3): <ln>OK
[00071504ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00071504ms][INFO][CELL]: AT TX ( 7): AT+CGMI
[00071505ms][INFO][CELL]: AT TX ( 1): <cr>
[00071508ms][INFO][CELL]: AT RX (11): <cr><ln>u-blox<cr><ln><cr>
[00071508ms][INFO][CELL]: AT RX ( 4): <ln>OK<cr>
[00071508ms][INFO][CELL]: AT RX ( 1): <ln>
[00071508ms][INFO][CELL]: Modem manufacturer: u-blox


[00071509ms][INFO][CELL]: AT TX ( 7): AT+CGMM
[00071509ms][INFO][CELL]: AT TX ( 1): <cr>
[00071513ms][INFO][CELL]: AT RX (12): <cr><ln>SARA-R410M
[00071513ms][INFO][CELL]: AT RX ( 3): -02
[00071513ms][INFO][CELL]: AT RX ( 3): B<cr><ln>
[00071513ms][INFO][CELL]: AT RX ( 3): <cr><ln>O
[00071514ms][INFO][CELL]: AT RX ( 3): K<cr><ln>
[00071514ms][INFO][CELL]: Modem model: SARA-R410M-02B


[00071514ms][INFO][CELL]: AT TX ( 7): AT+CGMR
[00071514ms][INFO][CELL]: AT TX ( 1): <cr>
[00071518ms][INFO][CELL]: AT RX ( 7): <cr><ln>L0.0.
[00071518ms][INFO][CELL]: AT RX ( 3): 00.
[00071518ms][INFO][CELL]: AT RX ( 3): 00.
[00071518ms][INFO][CELL]: AT RX ( 3): 05.
[00071519ms][INFO][CELL]: AT RX ( 3): 08 
[00071519ms][INFO][CELL]: AT RX ( 3): [Ap
[00071519ms][INFO][CELL]: AT RX ( 3): r 1
[00071519ms][INFO][CELL]: AT RX ( 3): 7 2
[00071520ms][INFO][CELL]: AT RX ( 3): 019
[00071520ms][INFO][CELL]: AT RX ( 3):  19
[00071520ms][INFO][CELL]: AT RX ( 3): :34
[00071520ms][INFO][CELL]: AT RX ( 2): :0
[00071521ms][INFO][CELL]: AT RX ( 3): 2]<cr>
[00071521ms][INFO][CELL]: AT RX ( 3): <ln><cr><ln>
[00071521ms][INFO][CELL]: AT RX ( 3): OK<cr>
[00071521ms][INFO][CELL]: AT RX ( 1): <ln>
[00071522ms][INFO][CELL]: Modem revision: L0.0.00.00.05.08 [Apr 17 2019 19:34:02]


[00071522ms][INFO][CELL]: Modem ready
[00071522ms][INFO][CELL]: Setup SIM (timeout 1000 ms)
[00071522ms][INFO][CELL]: AT TX ( 8): AT+CPIN?
[00071523ms][INFO][CELL]: AT TX ( 1): <cr>
[00071527ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00071527ms][INFO][CELL]: AT RX ( 3): +CP
[00071527ms][INFO][CELL]: AT RX ( 3): IN:
[00071527ms][INFO][CELL]: AT RX ( 3):  RE
[00071528ms][INFO][CELL]: AT RX ( 2): AD
[00071528ms][INFO][CELL]: AT RX ( 3): Y<cr><ln>
[00071528ms][INFO][CELL]: AT RX ( 3): <cr><ln>O
[00071528ms][INFO][CELL]: AT RX ( 3): K<cr><ln>
[00071529ms][INFO][CELL]: SIM is ready
[00071529ms][INFO][CELL]: AT TX ( 8): AT+COPS?
[00071529ms][INFO][CELL]: AT TX ( 1): <cr>
[00071534ms][INFO][CELL]: AT RX (11): <cr><ln>+COPS: 0<cr>
[00071534ms][INFO][CELL]: AT RX ( 3): <ln><cr><ln>
[00071534ms][INFO][CELL]: AT RX ( 3): OK<cr>
[00071534ms][INFO][CELL]: AT RX ( 1): <ln>
[00071535ms][INFO][CELL]: AT TX ( 9): AT+CGREG=
[00071535ms][INFO][CELL]: AT TX ( 1): 2
[00071535ms][INFO][CELL]: AT TX ( 1): <cr>
[00071539ms][INFO][CELL]: AT RX ( 6): <cr><ln>OK<cr><ln>
[00071539ms][INFO][CELL]: AT TX ( 8): AT+CREG=
[00071539ms][INFO][CELL]: AT TX ( 1): 2
[00071539ms][INFO][CELL]: AT TX ( 1): <cr>
[00071543ms][INFO][CELL]: AT RX ( 6): <cr><ln>OK<cr><ln>
[00071543ms][INFO][CELL]: AT TX ( 9): AT+CGACT?
[00071543ms][INFO][CELL]: AT TX ( 1): <cr>
[00071548ms][INFO][CELL]: AT RX ( 8): <cr><ln>+CGACT
[00071548ms][INFO][CELL]: AT RX ( 3): : 1
[00071548ms][INFO][CELL]: AT RX ( 3): ,0<cr>
[00071548ms][INFO][CELL]: AT RX ( 3): <ln><cr><ln>
[00071549ms][INFO][CELL]: AT RX ( 3): OK<cr>
[00071549ms][INFO][CELL]: AT RX ( 1): <ln>
[00071549ms][INFO][CELL]: AT TX ( 9): AT+CGATT?
[00071549ms][INFO][CELL]: AT TX ( 1): <cr>
[00071553ms][INFO][CELL]: AT RX ( 7): <cr><ln>+CGAT
[00071553ms][INFO][CELL]: AT RX ( 3): T: 
[00071553ms][INFO][CELL]: AT RX ( 3): 0<cr><ln>
[00071553ms][INFO][CELL]: AT RX ( 3): <cr><ln>O
[00071554ms][INFO][CELL]: AT RX ( 3): K<cr><ln>
[00071554ms][INFO][CELL]: AT TX (10): AT+CGEREP=
[00071554ms][INFO][CELL]: AT TX ( 1): 1
[00071554ms][INFO][CELL]: AT TX ( 1): <cr>
[00071559ms][INFO][CELL]: AT RX ( 6): <cr><ln>OK<cr><ln>
[00071559ms][INFO][CELL]: AT TX ( 6): AT+CSQ
[00071559ms][INFO][CELL]: AT TX ( 1): <cr>
[00071563ms][INFO][CELL]: AT RX (10): <cr><ln>+CSQ: 99
[00071563ms][INFO][CELL]: AT RX ( 3): ,99
[00071563ms][INFO][CELL]: AT RX ( 3): <cr><ln><cr>
[00071563ms][INFO][CELL]: AT RX ( 3): <ln>OK
[00071564ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00071564ms][INFO][CELL]: AT TX ( 6): AT+CSQ
[00071564ms][INFO][CELL]: AT TX ( 1): <cr>
[00071568ms][INFO][CELL]: AT RX ( 6): <cr><ln>+CSQ
[00071568ms][INFO][CELL]: AT RX ( 4): : 99
[00071568ms][INFO][CELL]: AT RX ( 3): ,99
[00071568ms][INFO][CELL]: AT RX ( 3): <cr><ln><cr>
[00071569ms][INFO][CELL]: AT RX ( 3): <ln>OK
[00071569ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00071569ms][INFO][CELL]: RSSI unknown
[00071569ms][INFO][CELL]: AT TX ( 9): AT+CGREG?
[00071570ms][INFO][CELL]: AT TX ( 1): <cr>
[00071573ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00071573ms][INFO][CELL]: AT RX ( 3): +CG
[00071573ms][INFO][CELL]: AT RX ( 3): REG
[00071573ms][INFO][CELL]: AT RX ( 3): : 2
[00071574ms][INFO][CELL]: AT RX ( 3): ,4<cr>
[00071574ms][INFO][CELL]: AT RX ( 3): <ln><cr><ln>
[00071574ms][INFO][CELL]: AT RX ( 3): OK<cr>
[00071574ms][INFO][CELL]: AT RX ( 1): <ln>
[00071575ms][INFO][CELL]: Network registration (timeout 180000 ms)
[00071575ms][INFO][CELL]: AT TX ( 8): AT+COPS?
[00071575ms][INFO][CELL]: AT TX ( 1): <cr>
[00071579ms][INFO][CELL]: AT RX (11): <cr><ln>+COPS: 0<cr>
[00071579ms][INFO][CELL]: AT RX ( 3): <ln><cr><ln>
[00071579ms][INFO][CELL]: AT RX ( 4): OK<cr><ln>
[00071579ms][INFO][CELL]: Continue after 4 seconds
[00071738ms][INFO][CELL]: AT RX ( 1): <cr>
[00071738ms][INFO][CELL]: AT RX ( 3): <ln>+C
[00071739ms][INFO][CELL]: AT RX ( 3): REG
[00071739ms][INFO][CELL]: AT RX ( 3): : 2
[00071739ms][INFO][CELL]: AT RX ( 3): <cr><ln><cr>
[00071739ms][INFO][CELL]: AT RX ( 3): <ln>+C
[00071740ms][INFO][CELL]: AT RX ( 3): GRE
[00071740ms][INFO][CELL]: AT RX ( 3): G: 
[00071740ms][INFO][CELL]: AT RX ( 3): 2<cr><ln>
[00072212ms][INFO][CELL]: AT RX ( 1): <cr>
[00072212ms][INFO][CELL]: AT RX ( 3): <ln>+C
[00072213ms][INFO][CELL]: AT RX ( 3): REG
[00072213ms][INFO][CELL]: AT RX ( 3): : 1
[00072213ms][INFO][CELL]: AT RX ( 3): ,"F
[00072213ms][INFO][CELL]: AT RX ( 3): FFE
[00072214ms][INFO][CELL]: AT RX ( 3): ","
[00072214ms][INFO][CELL]: AT RX ( 2): 76
[00072214ms][INFO][CELL]: AT RX ( 3): 610
[00072214ms][INFO][CELL]: AT RX ( 3): 7",
[00072215ms][INFO][CELL]: AT RX ( 3):  7<cr>
[00072215ms][INFO][CELL]: AT RX ( 3): <ln><cr><ln>
[00072215ms][INFO][CELL]: Registering network => Attaching network
[00072215ms][INFO][CELL]: AT RX ( 7): +CGREG:
[00072216ms][INFO][CELL]: AT RX ( 3):  1,
[00072216ms][INFO][CELL]: AT RX ( 3): "FF
[00072216ms][INFO][CELL]: AT RX ( 2): FE
[00072216ms][INFO][CELL]: AT RX ( 3): ","
[00072217ms][INFO][CELL]: AT RX ( 3): 766
[00072217ms][INFO][CELL]: AT RX ( 3): 107
[00072217ms][INFO][CELL]: AT RX ( 3): ",7
[00072217ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00072218ms][INFO][CELL]: AT TX ( 6): AT+CSQ
[00072218ms][INFO][CELL]: AT TX ( 1): <cr>
[00072223ms][INFO][CELL]: AT RX (12): <cr><ln>+CSQ: 99,9
[00072223ms][INFO][CELL]: AT RX ( 4): 9<cr><ln><cr>
[00072223ms][INFO][CELL]: AT RX ( 3): <ln>OK
[00072223ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00072224ms][INFO][CELL]: RSSI unknown
[00072224ms][INFO][CELL]: Attaching network (timeout 60000 ms)
[00072224ms][INFO][CELL]: AT TX ( 9): AT+CGATT?
[00072224ms][INFO][CELL]: AT TX ( 1): <cr>
[00072229ms][INFO][CELL]: AT RX (11): <cr><ln>+CGATT: 1
[00072229ms][INFO][CELL]: AT RX ( 3): <cr><ln><cr>
[00072229ms][INFO][CELL]: AT RX ( 4): <ln>OK<cr>
[00072229ms][INFO][CELL]: AT RX ( 1): <ln>
[00072230ms][INFO][CELL]: AT TX ( 9): AT+CGACT?
[00072230ms][INFO][CELL]: AT TX ( 1): <cr>
[00072234ms][INFO][CELL]: AT RX ( 9): <cr><ln>+CGACT:
[00072234ms][INFO][CELL]: AT RX ( 4):  1,1
[00072234ms][INFO][CELL]: AT RX ( 3): <cr><ln><cr>
[00072234ms][INFO][CELL]: AT RX ( 3): <ln>OK
[00072235ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00072235ms][INFO][CELL]: AT TX (11): AT+CGPADDR=
[00072235ms][INFO][CELL]: AT TX ( 2): -1
[00072235ms][INFO][CELL]: AT TX ( 1): <cr>
[00072240ms][INFO][CELL]: AT RX ( 9): <cr><ln>ERROR<cr><ln>
[00072440ms][INFO][CELL]: AT TX (11): AT+CGPADDR=
[00072440ms][INFO][CELL]: AT TX ( 2): -1
[00072440ms][INFO][CELL]: AT TX ( 1): <cr>
[00072447ms][INFO][CELL]: AT RX ( 9): <cr><ln>ERROR<cr><ln>
[00072647ms][INFO][CELL]: AT TX (11): AT+CGPADDR=
[00072647ms][INFO][CELL]: AT TX ( 2): -1
[00072647ms][INFO][CELL]: AT TX ( 1): <cr>
[00072654ms][INFO][CELL]: AT RX ( 9): <cr><ln>ERROR<cr><ln>
[00072854ms][INFO][CELL]: AT TX (11): AT+CGPADDR=
[00072854ms][INFO][CELL]: AT TX ( 2): -1
[00072854ms][INFO][CELL]: AT TX ( 1): <cr>
[00072859ms][INFO][CELL]: AT RX ( 3): <cr><ln>E
[00072859ms][INFO][CELL]: AT RX ( 3): RRO
[00072859ms][INFO][CELL]: AT RX ( 3): R<cr><ln>
[00073059ms][INFO][CELL]: AT TX (11): AT+CGPADDR=
[00073059ms][INFO][CELL]: AT TX ( 2): -1
[00073059ms][INFO][CELL]: AT TX ( 1): <cr>
[00073066ms][INFO][CELL]: AT RX ( 9): <cr><ln>ERROR<cr><ln>
[00073266ms][INFO][CELL]: AT TX (11): AT+CGPADDR=
[00073266ms][INFO][CELL]: AT TX ( 2): -1
[00073266ms][INFO][CELL]: AT TX ( 1): <cr>
[00073271ms][INFO][CELL]: AT RX ( 9): <cr><ln>ERROR<cr><ln>
[00073471ms][INFO][CELL]: AT TX (11): AT+CGPADDR=
[00073471ms][INFO][CELL]: AT TX ( 2): -1
[00073471ms][INFO][CELL]: AT TX ( 1): <cr>
[00073475ms][INFO][CELL]: AT RX ( 2): <cr><ln>
[00073475ms][INFO][CELL]: AT RX ( 3): ERR
[00073475ms][INFO][CELL]: AT RX ( 3): OR<cr>
[00073475ms][INFO][CELL]: AT RX ( 1): <ln>
[00073675ms][INFO][CELL]: AT TX (11): AT+CGPADDR=
[00073675ms][INFO][CELL]: AT TX ( 2): -1
[00073675ms][INFO][CELL]: AT TX ( 1): <cr>
[00073682ms][INFO][CELL]: AT RX ( 9): <cr><ln>ERROR<cr><ln>
[00073882ms][INFO][CELL]: AT TX (11): AT+CGPADDR=
[00073882ms][INFO][CELL]: AT TX ( 2): -1
[00073882ms][INFO][CELL]: AT TX ( 1): <cr>
[00073889ms][INFO][CELL]: AT RX ( 9): <cr><ln>ERROR<cr><ln>
[00074089ms][INFO][CELL]: AT TX (11): AT+CGPADDR=
[00074089ms][INFO][CELL]: AT TX ( 2): -1
[00074089ms][INFO][CELL]: AT TX ( 1): <cr>
[00074097ms][INFO][CELL]: AT RX ( 9): <cr><ln>ERROR<cr><ln>
[00074297ms][INFO][CELL]: AT TX (11): AT+CGPADDR=
[00074297ms][INFO][CELL]: AT TX ( 2): -1
[00074297ms][INFO][CELL]: AT TX ( 1): <cr>
[00074303ms][INFO][CELL]: AT RX ( 3): <cr><ln>E
[00074303ms][INFO][CELL]: AT RX ( 3): RRO
[00074303ms][INFO][CELL]: AT RX ( 3): R<cr><ln>
[00074303ms][WARN][CELL]: Connected but no local ip address
done

Any other ideas? CellularConnection without the possibility to reconnect is kind of useless :confused:

It seems that the modem is sending the URC after the next AT command. So maybe you should ping the modem until you receive the URC, and then try connecting again. I don’t recall having this issue with my modem. In the worst case, you could try turning off and on to start from scratch. The Mbed cellular driver can be annoying with some “edge” cases.