Git Product home page Git Product logo

Comments (14)

alexmaron81 avatar alexmaron81 commented on May 23, 2024 1

great, it worked for the test!

from ubxlib.

RobMeades avatar RobMeades commented on May 23, 2024

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.

philwareublox avatar philwareublox commented on May 23, 2024

from ubxlib.

RobMeades avatar RobMeades commented on May 23, 2024

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.

alexmaron81 avatar alexmaron81 commented on May 23, 2024

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.

RobMeades avatar RobMeades commented on May 23, 2024

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.

alexmaron81 avatar alexmaron81 commented on May 23, 2024

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.

RobMeades avatar RobMeades commented on May 23, 2024

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.

alexmaron81 avatar alexmaron81 commented on May 23, 2024

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.

RobMeades avatar RobMeades commented on May 23, 2024

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.

philwareublox avatar philwareublox commented on May 23, 2024

from ubxlib.

alexmaron81 avatar alexmaron81 commented on May 23, 2024

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.

RobMeades avatar RobMeades commented on May 23, 2024

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.

RobMeades avatar RobMeades commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.