Skip to main content
Senior
July 4, 2024
Solved

BLE Data Transfer between TWO STM32WB

  • July 4, 2024
  • 15 replies
  • 4126 views

I want to configure a stm32wb as BLE central and other as BLE peripheral such that they can exchange data. The combination of all this data also needs to be sent to a mobile phone. Can anyone suggest me a MOOC or may be a document that can  be used as a manual to perform this task.

This topic has been closed for replies.
Best answer by STTwo-32

Sorry for the confusion i have. You need to use a node with the Router example STM32CubeWB/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE/BLE_p2pRouteur at master · STMicroelectronics/STM32CubeWB (github.com) and other node(s) with the server example STM32CubeWB/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE/BLE_p2pServer at master · STMicroelectronics/STM32CubeWB (github.com) than you can connect your Smartphone to the Router and exchange data as mentioned on the Router readme file.

PS: Both examples are tested with our Nucleo Board. They should run on the STM32WB DK board but may need some adaptation. 

Best Regards.

STTwo-32

15 replies

Andrew Neil
Super User
July 4, 2024

Your title says said "Pairing", but your post just talks about exchanging data - which one are you actually asking about?

(BLE can exchange data without pairing)

 

Title now edited.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
RiturajAuthor
Senior
July 4, 2024

Sorry if I used a wrong term.  Basically, I want to connect two stm32wb  to each other via BLE  so data from sensors can be sent from one of these to other and the later can also transfer the data to a mobile phone via BLE.

 

STTwo-32
ST Technical Moderator
July 4, 2024

Hello @Rituraj 

For Such an application, You can use the examples of the STM32CubeWB/Projects at master · STMicroelectronics/STM32CubeWB (github.com) For implementing a central, server or peripheral node. You can also refer to the Wiki pages mentioned on this post. Also, you can find a lot of playlists on our Chanel in YouTube.

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.
RiturajAuthor
Senior
July 11, 2024

I have already used one of the examples i.e. BLE_Mesh_Model_Sensor and it works well. I want to connect this mesh to my phone so I can read this data via my phone.  I accessed the mesh using st ble toolbox but it has just 1 single service (Mesh Proxy Service) . If there is a way that could be used kindly let me know.

STTwo-32
ST Technical Moderator
July 11, 2024

I suggest you to use the P2P server example gor such a perpose. 

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.
RiturajAuthor
Senior
July 14, 2024

@STTwo-32 Thanks . I am really new to this . How can I make sure that the the router and server should work in a pair with no cross connection. Now I know both of these work as I can see on ST toolbox but how can I check if the are connected among them selves . I earlier modified an example to trigger data transmission using push button . I am able to understand the server but I have no idea what and how can I deal with router. I need this router to accept data from Server . add some more data to it and then share it to my phone.

 

Could you tell me about the files I should be looking into and what can be done to ensure no crossconnections.

STTwo-32
ST Technical Moderator
July 15, 2024

Hello @Rituraj 

This is a new question. So, I suggest you create a new post with more explanation on what you need and your use case to give it more visibility.

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.
Andrew Neil
Super User
July 16, 2024
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.