Skip to main content
LZi.1
Associate
November 9, 2024
Solved

STM32WB could not discover any peripheral as BLE client with p2p client profile

  • November 9, 2024
  • 1 reply
  • 772 views

Hi there, I am running into trouble when tring to connect my stm32wb55 to other 3rd party peripheral. I use cubeMX and chose client profile to generate the code. Then I modified "OOB_DEMO 1" to "OOB_DEMO 0" in the app_conf.h to make the mcu start scanning automatically. The trace information shows that the scan started properly, but I cannot get any result in the case "HCI_LE_ADVERTISING_REPORT_SUBEVT_CODE". Actually, the program never go into this case.

When I use p2p server profile everyting works fine, I can connect to the mcu with smart phone and exchange data. And I also can connect to 3rd party peripheral with smart phone as well, But the mcu cannot connect to the peripheral as client.

trace.jpg

Best answer by STTwo-32

Hello @LZi.1 

I think you are using an old version of the STM32CubeWB (V1.16.0). Could you please try using the P2P Client example (of the CubeWB V1.20.0) using both OOB_DEMO 1 and OOB_DEMO 0. 

Best Regards.

STTwo-32

 

1 reply

STTwo-32
STTwo-32Best answer
Technical Moderator
November 21, 2024

Hello @LZi.1 

I think you are using an old version of the STM32CubeWB (V1.16.0). Could you please try using the P2P Client example (of the CubeWB V1.20.0) using both OOB_DEMO 1 and OOB_DEMO 0. 

Best Regards.

STTwo-32

 

LZi.1
LZi.1Author
Associate
November 27, 2024

Thank you for your reply. Later I found that the broadcast could be scanned if I keep scanning for serval times.