Comments (14)
great, it worked for the test!
from ubxlib.
It seems that the secure MQTT login request is being sent to the server but is failing; from the SARA-R4 AT manual:
Login to the MQTT server will have two responses, an immediate "+UMQTTC: 1,1" response that indicates that the module has sent the MQTT login request to the MQTT server. The MQTT server's login response will happen asynchronously when the MQTT server has finished processing the MQTT login request and decided whether or not to accept it.
Assuming that the username/password and IP address are correct, and since MQTT itself is indicating no error (+UMQTTER: 0,0
), first suspicion would have to be that TLS security negotiation is failing. What is the approximate time between the OK
response to the AT+UMQTTC=1
command and the +UUMQTTC: 1,0
arriving?
Would your server accept a non-TLS connection (purely as an experiment)?
from ubxlib.
from ubxlib.
Ah, yes, Phil is right, and MQTT on SARA-R4xx is currently marked as not supported, see this line here:
https://github.com/u-blox/ubxlib/blob/master/cell/src/u_cell_private.c#L94
@alexmaron81: have you modified that line to include MQTT support on SARA-R4xx, or are you using unmodified code, in which case I should investigate why you are even getting to a login attempt.
In terms of testing the MQTT support on R41x, I can look at that but I'm afraid it might not be for a week or two.
from ubxlib.
Yes RobMeades, I had commented out the four lines in the u_cell_private.c.
What would you suggest how I should proceed to get a connection?
from ubxlib.
What needs to happen is that the ubxlib
MQTT tests need to pass with those lines present, which will take a little debugging. If you fancy it you can have a go yourself, but the differences between SARA versions ref. MQTT can be a bit "interesting" and will likely require some fettling.
If I can get my current thing out of the way this evening there's a chance I could have a go at this myself over the next few days, since I do now have a SARA-R412M-02B in the test system with the correct FW version loaded onto it.
What is your deadline?
from ubxlib.
my deadline has actually expired ;-)
I wanted to finish establishing the connection two weeks ago and would have "celllocate" at the next step.
Unfortunately, the library for cellocate has not yet been expanded.
The subject of at commands is new to me and that's why I selected a module like u-blox, because I saw that the library "ubxlib" was available for the esp32.
Thanks for the help, at the same time I use the time and try to understand the at commands.
from ubxlib.
Well, the thing I am working on right now is the location APIs and I am actually testing the completed Cell Locate API implementation as we speak.
You're welcome to continue with AT commands of course but I would estimate that the location APIs will be ready by the end of August and I can test/debug the MQTT API on SARA-R142M-02B in the same timeframe if that is useful to you.
from ubxlib.
That sounds good!
I would like to deal intensively with iot, can you recommend a source of information about the at commands or general data transmission via the mobile network?
from ubxlib.
For AT commands I'd just go to either the u-blox AT command manual or, if you prefer, to 3GPP 27.007, but then you will need to check if we support that particular AT command.
On data transmission over the mobile network, and one that covers the vagaries of NBIoT/cat-M1 I'm not sure what to suggest: @philwareublox, do you have any recommendations?
from ubxlib.
from ubxlib.
I just do not get any further. I don't know where to start looking for the error.
Do you have a suggestion where I should look first?
from ubxlib.
Simplest thing would be to use the code that I will release at the end of August. The code is complete and tested but I am on holiday this week and it has not yet passed review so I cannot merge it however, if you cannot wait, then I have pushed it to a preview branch where you can try it out. I will delete this branch when I have merged the code so this is not a permanent solution for you, only useful if you really want to try something out immediately.
from ubxlib.
Hopefully this is addressed by this commit. I will delete the preview branch now and close this issue: please open a new issue if you believe there is more to do.
from ubxlib.
Related Issues (20)
- how to enable multiple selected messageId.id.pNmea msg types HOT 5
- capture all UBX data from GNSS module HOT 13
- Compiling in ubxlib triggers SecureFault in Trusted Firmware-M on nrf9160 HOT 12
- Cell Network Up Keep Going Callback Fails at Tick Wrap-Around HOT 1
- AT Client Character Wait Fails Once Ticks Wrap Beyond INT32_MAX HOT 2
- Some 64-bit milliseconds tick values were not migrated to 32-bit HOT 30
- Assistance Requested for Configuring ubxlib for LEAN_R8 on Linux HOT 131
- Problems selecting cipher suites HOT 16
- +CME ERROR: Operation not allowed HOT 11
- SARA-R510M8S: How to use cellular network and GNSS network simultaneously? HOT 5
- print ubxlib output to usb on nrf52840 dongle using Zephyr HOT 31
- SPI interface for short-range devices HOT 2
- uCellSockCleanup HOT 13
- Using pppd with LARA-R6 via USB HOT 31
- Function rand() do not provide a return status HOT 2
- C2C seems not to have a session counter HOT 2
- AssistNow for SARA-R510M8S HOT 4
- Support for NEO-F9P-15 Base & Rover HOT 11
- few tick timeout comparison and other issues/improvements: HOT 6
- Unable to connect to AWS following example HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ubxlib.