-
• #2
By reference codes, you mean https://wolfgangklenk.wordpress.com/2018/10/12/espruino-on-rak8212-accessing-the-nb-iot-nb1-modem/ ?
What happens if you manually add each command on the left-hand side of the IDE one at a time? You can also add
at.debug()
to get debug text printed to help you.The problem may be that you're executing the commands right after each other with no delay between them. In that case, it may be that the modem is just not having time to get a connection.
-
• #4
do you have any thoughts about why they might be getting a NOSERVICE message?
I don't know in detail, but what I am missing in the example code is an AT command "AT+COPS" to manually register at the network. I did my tests with NB-IoT capable SIM cards by Vodafone (Germany) and 1NCE. So maybe it is the missing step to register at the network.
I just updated my MQTT via NB-IoT example a few days ago, you can see the sequence of AT commands there. Check it out at
https://github.com/wklenk/rak8212-espruino-nb-iot/blob/master/data-logger-bg96-mqtt.js
-
• #5
after adding sendAtCommand("AT+CMEE=1"); I got the error code : 10 , which means " SIM card is not inserted"
we changed the direction to insert SIM , but got the same error, what could be wrong?
-
• #6
we finally found this is because of SIM card contact point not good. every time we need to push SIM card to make it working
I used your reference codes to test BG96 functions , we always meet some errors like " NO SERVICE " , can some one help us?
1 Attachment