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

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

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

This topic has been closed for replies.
STTwo-32
STTwo-32Best answer
ST 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

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

2 replies

STTwo-32
STTwo-32Best answer
ST 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

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
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.