Skip to main content
Associate
September 10, 2024
Solved

B-WB1M-WPAN1 P2P Client

  • September 10, 2024
  • 1 reply
  • 1331 views

Hi,

I am attempting to get two B-WB1M-WPAN1 boards to connect to each other, one acting as a server and one acting as a client. I am fairly new to ST programming and thus I rely heavily on the examples and documentation to guide me. I have found an example p2p server project using the cube IDE which works well, I am also able to connect to my phone and communicate with this server.

My problem lies in attempting to create a client project for my WPAN1 board which can connect to the server WPAN1. I cannot find any examples or documentation for this? I have seen similar examples for other MCUs but I have struggled to emulate this on a WPAN1. Is there any example client projects out there worth looking at or perhaps some good documentation for this?

I have also tried using the template for WPAN1 BLE using the MX configurator following this tutorial:

STM32WB Getting Started Series: Part 12b, Lab. Receiving data from the phone (youtube.com)

This appears to make a template project capable of connecting to a p2p server WPAN1. However, I find this does not work as when I attempt to run in debug, I notice the scan function is never called and the program gets stuck in an infinite loop claiming there is no tasks to complete in the sequencer, despite me scheduling during initialisation.

Thank you.

Best answer by STTwo-32

Hello @JacobFA 

For the B-WB1M-WPAN1, there is no Client examples. But you can refer to the BLE_p2pClient for the NUCLEO-WB15CC as a reference and do the necessary Modifications (BSP, pin mapping,...) since the Both NUCLEO-WB15CC and B-WB1M-WPAN1 are based on an STM32WB15CC MCU.

Best Regards.

STTwo-32

1 reply

STTwo-32
STTwo-32Best answer
Technical Moderator
September 24, 2024

Hello @JacobFA 

For the B-WB1M-WPAN1, there is no Client examples. But you can refer to the BLE_p2pClient for the NUCLEO-WB15CC as a reference and do the necessary Modifications (BSP, pin mapping,...) since the Both NUCLEO-WB15CC and B-WB1M-WPAN1 are based on an STM32WB15CC MCU.

Best Regards.

STTwo-32