While working with the Portenta H7 Cat. M1/NB shield, I found out that the Thales Cinterion TX62
cellular modem only connects over NB-IoT, NOT over LTE Cat-M1.
When defining CATM1 in the GSM.begin()
, it doesn't connect and eventually moves to NB-IoT after a few tries.
I used:
if(GSM.begin(pin, apn, username, pass, CATM1)){
When looking at the debug logs, it shows the device is connected to NB-IoT:
The last digit: 9
indicates NB-IoT ( 7
indicates Cat-M1)
+CEREG: 2<cr><ln><cr><ln>+CEREG: 5,"2D5B","0187FB66",9
Any pointers on how to make the shield connect over LTE CAT-M1?
Does anyone know a way to directly communicate with the cellular modem to send AT Commands? This way I can do run some test.
Arduino code used:
#include <GSM.h>
char pin[] = SECRET_PIN; //example "1234"
char apn[] = SECRET_APN; //example "live.provider.com"
char username[] = SECRET_USERNAME;
char pass[] = SECRET_PASSWORD;
void setup() {
Serial.begin(115200);
while(!Serial) {}
GSM.debug(Serial);
if(GSM.begin(pin, apn, username, pass, CATM1)){
Serial.println("connected");
// ...
}
}
Reference: