cancel
Showing results for 
Search instead for 
Did you mean: 

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

LZi.1
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions
STTwo-32
ST Employee

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.

View solution in original post

2 REPLIES 2
STTwo-32
ST Employee

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.

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