Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

AT+USOCO and AT+USOCL returning ERROR constantly when trying to connect to Firebase server #90

Open
cth000182 opened this issue Oct 7, 2021 · 1 comment
Labels
topic: code Related to content of the project itself

Comments

@cth000182
Copy link

It has been a couple of weeks since we found our issue, but essentially it was a one liner fix...

Background: The Arduino MKR NB 1500 was running with no issue for quite some time during testing. After about a week or two, we were unable to connect to the Firebase server anymore. We found that the sockets were not being created, opened, or closed. Then, every new MKR we tested had the same issue. After not finding solutions online, we read through the SARA-R4 datasheet and enabled Modem debug AT commands.

Fix: Long story short, in the NBClient.cpp, (line 128ish) we change MODEM.send("AT+USECPRF=0,0,1"); to MODEM.send("AT+USECPRF=0,0,0"); and the sockets are now functioning correctly. We have GET/POST thousands of requests with <1% failure to connect rate.

During our troubleshooting and Googling, we realize many others have had this issue or at least, the same symptoms so we felt the need to post here for others. Hope this helps!

@cth000182 cth000182 changed the title AT+USOCO and AT+USOCL returning ERROR constantly when trying to connect to a server AT+USOCO and AT+USOCL returning ERROR constantly when trying to connect to Firebase server Oct 8, 2021
@lizabetharum
Copy link

Thank you so much for your post. This was driving me crazy!

@per1234 per1234 added the topic: code Related to content of the project itself label Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself
Projects
None yet
Development

No branches or pull requests

3 participants