Hi.
I've been trying to register to the NB-IoT network (Bologna, Italy) using a Portenta H7 paired with the CAT.M1/NBIoT GNSS Shield using the "getting started" tutorial with the relative script ("GSMClient.ino"), without editing any other part of the script.
I've inserted in the script both the correct APN and pin of the mounted SIM (provider: TIM), but the module is not able to register to the network. Here is the output:
*Starting Carrier Network registration*
*[INFO][CELL]: New CellularContext (0x240168b0)*
*[INFO][CELL]: Cinterion model TX62-W (5)*
*[INFO][CELL]: Start connecting (timeout 1000 ms)*
*[WARN][CELL]: URC already added with prefix: +CGEV: NW DEACT*
*[WARN][CELL]: URC already added with prefix: +CGEV: ME DEACT*
*[WARN][CELL]: URC already added with prefix: +CGEV: NW PDN D*
*[WARN][CELL]: URC already added with prefix: +CGEV: ME PDN D*
*[INFO][CELL]: Cinterion model TX62-W (5)*
*[WARN][CELL]: URC already added with prefix: +CGEV: NW DEACT*
*[WARN][CELL]: URC already added with prefix: +CGEV: ME DEACT*
*[WARN][CELL]: URC already added with prefix: +CGEV: NW PDN D*
*[WARN][CELL]: URC already added with prefix: +CGEV: ME PDN D*
*[INFO][CELL]: Modem manufacturer: Cinterion*
*[INFO][CELL]: Modem model: TX62-W*
*[INFO][CELL]: Modem revision: REVISION 01.001*
*[INFO][CELL]: Modem ready*
*[INFO][CELL]: Found PDP context 1*
*[INFO][CELL]: Empty pwd and username fields: no need for authentication*
*[INFO][CELL]: CellularContext connect*
*[INFO][CELL]: Setup SIM (timeout 10000 ms)*
*[INFO][CELL]: SIM is ready*
*[INFO][CELL]: RSSI unknown*
*[INFO][CELL]: Network registration (timeout 180000 ms)*
*[INFO][CELL]: Continue after 1 seconds*
*[INFO][CELL]: RSSI unknown*
*[INFO][CELL]: Network registration (timeout 180000 ms)*
*[INFO][CELL]: Continue after 2 seconds*
*[INFO][CELL]: RSSI unknown*
*[INFO][CELL]: Network registration (timeout 180000 ms)*
*[INFO][CELL]: Continue after 4 seconds*
*[INFO][CELL]: RSSI -53 dBm*
*[INFO][CELL]: Network registration (timeout 180000 ms)*
*[INFO][CELL]: Continue after 8 seconds*
*[INFO][CELL]: RSSI -59 dBm*
*[INFO][CELL]: Network registration (timeout 180000 ms)*
*[INFO][CELL]: Continue after 16 seconds*
*[INFO][CELL]: RSSI -51 dBm*
*[INFO][CELL]: Network registration (timeout 180000 ms)*
*[INFO][CELL]: Continue after 32 seconds*
*[INFO][CELL]: RSSI -51 dBm*
*[INFO][CELL]: Network registration (timeout 180000 ms)*
*[ERR ][CELL]: CellularStateMachine failure: Registering network*
*[ERR ][CELL]: CellularStateMachine target state Attaching network, current state Registering network*
*[INFO][CELL]: CellularContext disconnected*
*The board was not able to register to the network...*
I've also tried accessing the GNS.h file and modifying the array referring to the number of trials for connecting to the network, since I've been told that new SIMs can take up to 30 minutes to connect for the first time. The default waiting time for the board to give up is in the order of 1 minute, so I've increasedit. I've modified the array as so:
const uint16_t _retry_timeout[64] = {12, 12, 12, 12, 12, 12, ...};
//instead of the default:
const uint16_t _retry_timeout[6] = {1, 2, 4, 8, 16, 32};
This leads to no solution, instead it makes the code get stuck after just a few trials (not 64 as wanted).
The SIMs shouldn't be the issue since I'm positive that they are active, having received them very recently.
To be clear: I've not been using the Arduino Bipole antenna for the project, but a set of different antennas, all leading to the same results.
What could be the issue here?