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

Cannot config ublox odin w2 wifi #12573

Closed
se7ensong opened this issue Mar 4, 2020 · 9 comments
Closed

Cannot config ublox odin w2 wifi #12573

se7ensong opened this issue Mar 4, 2020 · 9 comments

Comments

@se7ensong
Copy link

Description of defect

Cannot use set_config() API provided by the Ublox driver in the OdinWiFiInterface.cpp to configure wifi parameters such as scan listen interval, remain on channel, etc.

Target(s) affected by this defect ?

MODULE_UBLOX_ODIN_W2 family

Toolchain(s) (name and version) displaying this defect ?

IAR 8.42.1

What version of Mbed-os are you using (tag or sha) ?

mbed-os-5.14.2

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

IAR 8.42.1

How is this defect reproduced ?

In any example using , add the following code

OdinWiFiInterface *network;
network  = (OdinWiFiInterface *)(WiFiInterface::get_default_instance());
target_config_params_e cfg = ODIN_CFG_SET_SCAN_LISTEN_INTERVAL;
network->set_config(&cfg, 150);
@ciarmcom
Copy link
Member

ciarmcom commented Mar 4, 2020

@se7ensong thank you for raising this issue.Please take a look at the following comments:

Have you correctly specified which version of Mbed OS you are using (tag or sha)? We cannot automatically identify a release based on what you have provided.

NOTE: If there are fields which are not applicable then please just add 'n/a' or 'None'.This indicates to us that at least all the fields have been considered.

@se7ensong
Copy link
Author

Not sure what should I specify here. The tag shown on the github is indeed mbed-os-5.14.2

@adbridge
Copy link
Contributor

adbridge commented Mar 5, 2020

Not sure what should I specify here. The tag shown on the github is indeed mbed-os-5.14.2

@se7ensong I'll investigate, that tag is indeed valid and should have been correctly identified by our automation

@ciarmcom
Copy link
Member

ciarmcom commented Mar 6, 2020

Internal Jira reference: https://jira.arm.com/browse/MBOTRIAGE-2580

@JanneKiiskila
Copy link
Contributor

@ARMmbed/team-ublox - probably up your alley?

@qasim-ublox
Copy link

@se7ensong we've started looking into the issue.
I have run the application and I've seen that application crashes when network->set_config(&cfg, 150); is called. I want to know that, if application is crashing in your case as well or you've encountered a different output? Just to make sure if we are correctly replicating it.. It would be helpful for us if you can provide the application/error logs..
Thanks

@se7ensong
Copy link
Author

@qasim-ublox , yes, that crashes but you should be able to fix this by fixing the fall through here in the switch cases:

Then, it should go through without issue but it has no effect I think

@qasim-ublox
Copy link

@se7ensong yes you are right about the fix. We've already applied the above fix but it still crashes. While debugging the driver I found that, this crash is coming from driver. We are further investigating it and will provide the fix soon.

@qasim-ublox
Copy link

This issue is fixed in the latest release i.e. v3.7.2. Can we close this issue now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants