Test 2
// modem.waitForNetwork()
modem.gprsConnect(apn, gprsUser, gprsPass)
Expected result
connect to APN - testing using AT+CGREG
Actual result
Test 1: waitForNetwork()
Waits for AT+CREG to be set - which is wrong we don't get GSM on NB-IOT SIM.
Test 2: gprsConnect
tinyGSM is using commands not in the SIM7070-7090 command reference manual
like AT+CIPSHUT and AT+CAPBR. Does not get connected to GPRS
and reverts to CREG as if GSM connection expected
AT&W does not work on sim7080 - parameters are autosave..
[ 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: SIMCOM_SIM7080 breakout Main processor board: Arduino Zero TinyGSM version: 0.11.5 Code: MQTT_CLIENT
Scenario, steps to reproduce
use NB-IOT SIM MqttClient.txt
Changed lines in example :
define TINY_GSM_MODEM_SIM7080
define SerialMon SerialUSB
const char apn[] = "telenor.iot";
Test 1 : ... modem.waitForNetwork()
Test 2 // modem.waitForNetwork() modem.gprsConnect(apn, gprsUser, gprsPass)
Expected result
connect to APN - testing using AT+CGREG
Actual result
Test 1: waitForNetwork() Waits for AT+CREG to be set - which is wrong we don't get GSM on NB-IOT SIM.
Test 2: gprsConnect
tinyGSM is using commands not in the SIM7070-7090 command reference manual like AT+CIPSHUT and AT+CAPBR. Does not get connected to GPRS and reverts to CREG as if GSM connection expected AT&W does not work on sim7080 - parameters are autosave..
test1.log test2.log
Debug and AT command log
Test 1: 2:51:25.966 -> Waiting for network...AT+CREG? 22:51:25.966 -> 22:51:25.966 -> +CREG: 0,2
Test 2: 23:38:42.284 -> Connecting to telenor.iotAT+CIPSHUT 23:39:42.236 -> AT+SAPBR=3,1,"Contype","GPRS" 23:39:43.231 -> AT+SAPBR=3,1,"APN","telenor.iot" 23:39:44.259 -> AT+CGDCONT=1,"IP","telenor.iot" 23:39:45.254 -> AT+CGACT=1,1 23:40:45.218 -> AT+SAPBR=1,1 23:42:10.140 -> AT+SAPBR=2,1 23:42:40.150 -> fail 23:42:50.132 -> AT+CREG?