I've a MKR 1400 Board with SIM, Antenna, and Lipo attached. The TestModem sketch works fine. When trying the GSMScanNetworks sketch with the only change in line 30:
GSM gsmAccess(true); // include a 'true' parameter to enable debugging
I get the following output: (The full output is given in the attachment)
[...]
AT+CREG?
+CREG: 0,0
OK
This part is repeating itself a number of times till the board hangs.
When I google the result I understand, that the first 0 of +CREG: 0,0 means their will be no message when changing the connection status, which is OK. The second zero tells that the board is not connected to a network but it is not searching for a connection either.
Why is the board not looking for a connection?
Why does it hang?
I will be gratefull, if someone could share their ideas.
Yes, I had a LIPO battery connected to the MKR GSM 1400 board. I have also tried with a 5V/2,1A power supply connected to VIN, but I got the same result in both cases.
I got also the exact same problem that @mrcarrera ...
I'm using an external power supply 5v 3A, a working sim card and a gsm antenna.
The "TestModem" code provided by the MKRGSM library works perfectly by providing the correct IMEI number of my board.
But with the "GsmScanNetworks" the serial monitor is printing always the same thing and get stuck with those same lines : AT+CREG? +CREG: 0,0.
What could possibly be wrong?
Has someone that already face this issue beeing able to solved it?
Quick update - got this working by making sure the SIM works fine in a normal phone and then placing it in the board and running it off external power. Definitely looked like a power issue, but has since disappeared.
I got also the exact same problem that @mrcarrera ...
I'm using an external power supply 5v 3A, a working sim card and a gsm antenna.
The "TestModem" code provided by the MKRGSM library works perfectly by providing the correct IMEI number of my board.
But with the "GsmScanNetworks" the serial monitor is printing always the same thing and get stuck with those same lines : AT+CREG? +CREG: 0,0.
What could possibly be wrong?
Has someone that already face this issue beeing able to solved it?
I have some recollection about needing a different sim card to work on 2g and 3g networks? Have you tried your simcard in a smart phone and been able to browse the web or similar?