Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

IoT_Example doesn't seem to be working #75

Closed
adam6806 opened this issue Feb 28, 2019 · 9 comments
Closed

IoT_Example doesn't seem to be working #75

adam6806 opened this issue Feb 28, 2019 · 9 comments

Comments

@adam6806
Copy link

Included the serial output. I am using CloudMQTT. I have the 7000G version. I was able to successfully work through the LTE Demo sketch. I did have to add these two lines.

fona.setPreferredMode(38); // Use LTE only, not 2G
fona.setPreferredLTEMode(1); // Use LTE CAT-M only, not NB-IoT

I added them to the IoT Example sketch as well. I am noticing some off characters so possibly a baud rate issue? I really don't know. It just sits there at the end. I know the cell connection isn't established because the light is blinking at the slower speed.

*** SIMCom Module IoT Example ***
Configuring to 9600 baud
Attempting to open comm with ATs
---> AT
<---
---> AT
<---
---> AT
<---
---> AT
<---
---> AT
<---
---> AT
<---
---> AT
<---
---> AT
<---
---> AT
<---
---> AT
<---
---> AT
<---
---> AT
<--- AT
---> ATE0
<--- ATE0
---> ATE0
<--- OK
---> ATI
<--- SIM7000G R1529

OK

---> AT+CPMS="SM","SM","SM"
<--- +CPMS: 0,10,0,10,0,10

FONA is OK
Found SIM7000G (Global)
---> AT+GSN
<--- RRR�⸮%5
⸮⸮⸮Module IoT Example ***
Configuring to 9600 baud
Attempting to open comm with ATs
---> AT
<--- OK
---> ATE0
<--- OK
---> ATE0
<--- OK
---> ATI
<--- SIM7000G R1529

OK

---> AT+CPMS="SM","SM","SM"
<--- +CPMS: 0,10,0,10,0,10

FONA is OK
Found SIM7000G (Global)
---> AT+GSN
<---⸮

@adam6806
Copy link
Author

This last time I ran it seems like each time it's trying to get the IMEI from the FONA library it is looping. fona.getIMEI(imei);

@adam6806
Copy link
Author

Still can't seem to find the difference between the iot example and lte demo example.

@wwkv
Copy link

wwkv commented Feb 28, 2019

I have the exact same issue, the LTE_demo works perfectly but the iot_demo stalls after the AT+GSN command...

@wwkv
Copy link

wwkv commented Mar 1, 2019

I found that Adafruit_MCP9808 tempsensor = Adafruit_MCP9808(); had an effect on the problem we have. When uncommenting this line (and all the lines involving the temperature sensor) the IMEI lookup was succesfull! Not quite sure why this is happening, maybe you know what's up? I'm happy though, only found this after hours of troubleshooting!

@wwkv
Copy link

wwkv commented Mar 1, 2019

All right, I found it! I installed a previous version of the Adafruit MCP9808 library and now it's working properly!

@adam6806
Copy link
Author

adam6806 commented Mar 2, 2019

Nice work @wwkv confirmed that does the trick for me as well. Your efforts are much appreciated :) @botletics can you please either update the documentation or implementation so that others don't fall into this issue please?

@adam6806
Copy link
Author

adam6806 commented Mar 3, 2019

@wwkv which version of the library did you use? I wasn't able to get it working with the adafruit mqtt example on any version.

@wwkv
Copy link

wwkv commented Mar 3, 2019

I used version 1.0.1. I'm still having issues too btw, the IMEI lookup works fine but if I enable the temperature sensor it doesn't want to connect to the MQTT. The only fix I now use temporarily is just uncomment all of the code that uses the MCP9808 library... I will look into it some more tomorrow.

@botletics
Copy link
Owner

Try commenting out the temperature sleep and wake up lines.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants