Mbed-os: BLE stops advertising when WiFi is connected on EVK-ODIN-W2

Created on 5 Mar 2020  路  15Comments  路  Source: ARMmbed/mbed-os

Description of defect

When using BLE with WiFi on EVK-ODIN-W2, the BLE stops advertising as soon as WiFiInterface::get_default_instance(); is called. The BLE doesn't readvertise when WiFI is disconnected. The expected behaviour is BLE stays advertising regardless of WiFi behaviour.

Target(s) affected by this defect ?

MODULE_UBLOX_ODIN_W2 family

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

mbed online compiler

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


mbed-os-5.15.1

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

mbed online compiler

How is this defect reproduced ?

Examples provided here https://os.mbed.com/users/se7ensong/code/mbed-os-example-wifi-ble/

CLOSED mirrored bug

Most helpful comment

Thanks @qasim-ublox . Considering master branch will not be supported anymore from the reply here https://github.com/ARMmbed/mbed-os/issues/12720#issuecomment-609664255 I have retested all three compilers with the archive files on 5.15.1 and all of them works.

Thank you again for your hardwork.

All 15 comments

Just want to point out one more thing that if wifi is started before BLE, then it will crash the app.

cc @ARMmbed/team-ublox

@se7ensong thank you for the update.It appears however that there is still some missing information:

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.

we have started looking into issue, will update reproducibility and how fix to be provided

@aqib-ublox , is there any update? Thank you.

@se7ensong yes we did proceed with some sort of changes,
We have modified application and updated libs, we succeed with enabling Wifi first and then ble advertisement?
Would it fulfill your requirement?

Thank you @aqib-ublox . That is great news! For my application, I would require BLE UART and WIFI to run in parallel regardless which one starts first. Do you think this is something ublox team can test before releasing the code? Or I can help testing.

One last thing is this still CORDIO stack or UBLOX stack?

@se7ensong it would be CORDIO stack no doubt, we would share our internal repo and branch first for testing with application. Application we tested is BLE heart rate service profile with Wifi station, so you can modify that for BLE SPS service. Thanks

@se7ensong sorry for delayed response, can u find https://github.com/u-blox/mbed-os/tree/bt_wifi_demo for testing with GCC and ARM?

please see application modified as well here

Hi @aqib-ublox , I have tested the fix and it works for GCC (2018 q2) and ARMC6. Can you please also release one for IAR? The example provided is for easier reproducibility.

Hi @se7ensong, I have provided release for IAR as well in the branch already shared. Please have a look and let me know if you face any issue.

@se7ensong sorry for delayed response, can u find https://github.com/u-blox/mbed-os/tree/bt_wifi_demo for testing with GCC and ARM?

Thanks @qasim-ublox . Considering master branch will not be supported anymore from the reply here https://github.com/ARMmbed/mbed-os/issues/12720#issuecomment-609664255 I have retested all three compilers with the archive files on 5.15.1 and all of them works.

Thank you again for your hardwork.

@qasim-ublox thanks for the fixes and @se7ensong for testing.
We're closing this issue as it's considered resolved.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pilotak picture pilotak  路  3Comments

chrissnow picture chrissnow  路  4Comments

1domen1 picture 1domen1  路  3Comments

cesarvandevelde picture cesarvandevelde  路  4Comments

rbonghi picture rbonghi  路  3Comments