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.
MODULE_UBLOX_ODIN_W2 family
mbed online compiler
mbed-os-5.15.1
mbed online compiler
Examples provided here https://os.mbed.com/users/se7ensong/code/mbed-os-example-wifi-ble/
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.
Internal Jira reference: https://jira.arm.com/browse/MBOTRIAGE-2581
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.
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.