Git Product home page Git Product logo

Comments (7)

RobMeades avatar RobMeades commented on September 23, 2024 1

Great, will work up a change and let you know when it has landed back here.

from ubxlib.

RobMeades avatar RobMeades commented on September 23, 2024 1

Fixed in commit f95208f.

from ubxlib.

RobMeades avatar RobMeades commented on September 23, 2024

Hi there, and thanks for posting. Which version of ubxlib is this with? Asking 'cos we changed the way it worked in commit f7d9d84. Don't know whether that makes things better or worse of course.

EDIT: interesting idea, passing authenticationMode from uNetworkCfgCell_t through to activateContextUpsd(). Lemme have a thing about whether there's a down-side to that. Slippery things these module versions :-).

from ubxlib.

GioTB avatar GioTB commented on September 23, 2024

í´m using the master branch, it´s on the cell/src/u_cell_net.c file, on segment that start on line 1687
if (errorCode == 0) {
// Automatic authentication protocol selection
uAtClientLock(atHandle);
uAtClientCommandStart(atHandle, "AT+UPSD=");
uAtClientWriteInt(atHandle, profileId);
uAtClientWriteInt(atHandle, 6);
uAtClientWriteInt(atHandle, 3);
uAtClientCommandStopReadResponse(atHandle);
errorCode = uAtClientUnlock(atHandle);
}

from ubxlib.

RobMeades avatar RobMeades commented on September 23, 2024

Understood, yes, it's hard coded for SARA-U201 but you are right that it needn't be. Will give it a try.

from ubxlib.

RobMeades avatar RobMeades commented on September 23, 2024

A quick look suggests that changing this line:

uAtClientWriteInt(atHandle, 3);

...to be:

        uAtClientWriteInt(atHandle, pInstance->authenticationMode);

...would be sufficient to meet your needs, i.e. it will then use the authenticationMode from uNetworkCfgCell_t. Can you try this and let me know if it works for you? If it does I can make the change.

from ubxlib.

GioTB avatar GioTB commented on September 23, 2024

yes!, that actually works, i tryed first hardcoding it to "0" but then i changed it exactly like you leave it and works right away.

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.