ARMmbed / mbed-os-example-ble

BLE demos using mbed OS and mbed cli
Apache License 2.0
134 stars 118 forks source link

Periodic advertisement example issue on WB55 #365

Closed pan- closed 3 years ago

pan- commented 3 years ago

Description of defect

From https://github.com/ARMmbed/mbed-os-example-ble/issues/355#issuecomment-805578819

They do not compile on GCC 9.3.1. I tried using the online compiler with the periodic advertisement example, while it compiles i can't get the Bluetooth to work properly (on a ST WB55).

Target(s) affected by this defect ?

ST WB55

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

GCC

How is this defect reproduced ?

Try to compile the application with GCC 9.6.3. It does not compile. Try to execute the application compiled with the online compiler: It doesn't work.

pan- commented 3 years ago

@Arjun765 Is it a fair description of your issue ?

ciarmcom commented 3 years ago

@pan- This issue has an incomplete or old issue template.For future reference please use an up to date clone of the repository before raising issues. Many thanks.

ciarmcom commented 3 years ago

Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers. Internal Jira reference: https://jira.arm.com/browse/IOTOSM-3735

jeromecoutant commented 3 years ago

@pan- Did you try on your side...?

jeromecoutant commented 3 years ago

Then as explained in https://github.com/ARMmbed/mbed-os-example-ble/tree/master/BLE_PeriodicAdvertising Devices must support extended advertising and periodic advertising (Bluetooth version 5+).

paul-szczepanek-arm commented 3 years ago

Thank you @jeromecoutant.

@Arjun765 we now have a handy new example: https://github.com/ARMmbed/mbed-os-example-ble/tree/development/BLE_SupportedFeatures which lists the available features.

pan- commented 3 years ago

@jeromecoutant I opened the issue to keep track of it rather than it being buried in another issue. It is expected extended advertising won't work on WB55. If a user face the same issue it can search for this one and try out the BLE_SupportedFeatures example. Compilation is fine though.

Arjun765 commented 3 years ago

BLE_SupportedFeatures works on a WB55. Tried the BLE_Advertising on a nrf52840, while i can see it advertising as "BATTERY" i can't connect to it. The nrf mobile app says "Error 133, GATT error"

paul-szczepanek-arm commented 3 years ago

That is correct. It is advertising with non-connectable advertising. You can connect to BLE_GattServer_CharacteristicWrite or BLE_GattServer_AddService for example.