Hi,
I'm having an issue when connecting to a NB-IoT network with a Portenta H7 Lite Connected and the Portenta CAT.M1/NB IoT GNSS Shield.
Following the Getting Started Tutorial it is not working.
The example code File > Examples > GSM > GSMClient has multiple issues her:
1. I have to comment line 12
GSMClient client;
and everything in setup() after line 35, as well as everything in loop(), otherwise the Portenta H7 crashes immediately. Which means it isn't even visible as a device to the IDE any more. One has to double press the reset button to start the bootloader.
2. No matter which trace level I use in
GSM.trace(Serial);
GSM.setTraceLevel(4);
output is always the same.
3. When running the code, what I get is:
...
[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 PIN required
[ERR ][CELL]: PIN required but no SIM pin provided.
[ERR ][CELL]: CellularStateMachine failure: SIM pin
[ERR ][CELL]: CellularStateMachine target state Attaching network, current state SIM pin
[INFO][CELL]: CellularContext disconnected
The board was not able to register to the network...
even so
- I entered the correct SIM pin in the arduino_secrets.h file
- The same SIM card works in an Arduino MKR NB1500
- Compilation target is the H7 main core
Since the mbed-os code is pre-compiled, I could not find out where these messages are generated and what is really going on in the background. May be the message is somehow misleading and the pin isn't the real issue.
Any ideas why the beginners example is not working at all?
Thanks!