Closed schmidie closed 3 years ago
If your operator requires the band and technology to be set, you'll have to use some AT commands yourself. If you want to stick to TinyGSM, you can try something like: (Note: The GF()
is just an abstraction for flash strings.)
// Band Configuration
// 1NCE: 80 for Band 8
modem.sendAT(GF("+QCFG=\"band\",0,0,80,1"));
modem.waitResponse(500);
// Configure RAT(s) to be Searched
// 0 Automatic, 1 Take effect immediately
modem.sendAT(GF("+QCFG=\"nwscanmode\",0,1"));
modem.waitResponse(500);
// Configure RAT Searching Sequence
// (LTE Cat NB1 -> LTE Cat M1 -> GSM)
modem.sendAT(GF("+QCFG=\"nwscanseq\",030201,1"));
modem.waitResponse(500);
// Configure Network Category to be Searched under
// 0 LTE Cat M1,1 LTE Cat NB1,2 LTE Cat M1 and Cat NB1
modem.sendAT(GF("+QCFG=\"iotopmode\",1,1"));
modem.waitResponse(500);
// use PS domain service for data-service
// see http://prog3.com/sbdm/blog/dailinqing1984/article/details/45744565
modem.sendAT(GF("+QCFG=\"servicedomain\",1,1"));
modem.waitResponse(500);
// Configure Parameters of a TCP/IP Context
// <context_type>,<APN>,<username>,<password>,<authentication>
modem.gprsConnect("iot.1nce.net");
:+1: cool, thanks! works good with
modem.gprsConnect(apn, gprsUser, gprsPass);
// Band Configuration
// 1NCE: 80 for Band 8
modem.sendAT(GF("+QCFG=\"band\",0,0,80,1"));
modem.waitResponse(300);
// Configure RAT(s) to be Searched
// 0 Automatic, 1 Take effect immediately
modem.sendAT(GF("+QCFG=\"nwscanmode\",0,1"));
modem.waitResponse(300);
// Configure RAT Searching Sequence
// (LTE Cat NB1 -> LTE Cat M1 -> GSM)
modem.sendAT(GF("+QCFG=\"nwscanseq\",030201,1"));
modem.waitResponse(300);
// Configure Network Category to be Searched under
// 0 LTE Cat M1,1 LTE Cat NB1,2 LTE Cat M1 and Cat NB1
modem.sendAT(GF("+QCFG=\"iotopmode\",1,1"));
modem.waitResponse(300);
// Operator Selection
modem.sendAT(GF("+COPS=1,2,\"26201\",9"));
modem.waitResponse(300);
Hi I have problems to get the TinyGSM running on my board. With this AT commands I can establish successfully a connection:
...but I would prefere to use TinyGSM ;-)
[ X ] I have read the Troubleshooting section of the ReadMe
What type of issues is this?
[ ] Request to support a new module
[ ] Bug or problem compiling the library [ X ] Bug or issue with library functionality (ie, sending data over TCP/IP) [ ] Question or request for help
What are you working with?
Modem: Quectel BG96 Revision: BG96MAR02A07M1G Main processor board: nrf52840 (https://docs.rakwireless.com/Product-Categories/WisTrio/RAK5010-M/Overview/) TinyGSM version: 0.10.8 Code: WebClient example
Scenario, steps to reproduce
Hi, I try to get the TinyGSM running on my board but I always end up in AT+CREG => 0,3 => Registration denied. I just configured the tinyGSM like explained in the instructions. I set the APN (iot.1nce.net) and also tried to call modem.gprsConnect(apn, gprsUser, gprsPass); before network-search. I also tried completly erase the chip and flashed new bootloader.
Expected result
modem.waitForNetwork() => true
Actual result
AT+QIACT=1 ERROR
+CREG: 0,2 OK
+CREG: 0,3 OK
than it stays in +CREG: 0,3
Debug and AT command log
Anyone has any idea ?