Skip to main content
Associate II
October 4, 2024
Solved

Help needed with BLE server/client program

  • October 4, 2024
  • 2 replies
  • 2775 views

hi, I have two B-WB1M-WPAN1 cards and I would like to create a program that works as a client server, so one card will act as a server and then other client cards will send messages to it via BLE, I saw the example proposed by the company "BLE_HR_p2p_Sensor" which might look like what I want to do but I haven't quite figured out how it all works.
Where can I find, for example, a complete file with commands useful for BLE transmission?
Then if you have any advice they are welcome, I would also be curious to understand how the connection through the application from the phone to the card works.

Best answer by STTwo-32

No For sure, the first one is for a server and now we will have Client configuration. So, you should make some changes.

PS: this discussion became so long. I think if your original request is answered, you may select the best answer with an "accept as Solution". Then, you can keep creating new threads whenever you find that you need help.

Best Regards.

STTwo-32

 

2 replies

Andrew Neil
Super User
October 4, 2024

You've posted this in the MPU section, but the B-WB1M-WPAN1 seems to be targetted at MCUs ?

 

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.
snak3inAuthor
Associate II
October 4, 2024

My bad sorry, how can i change it?

 

Andrew Neil
Super User
October 4, 2024

You're using an STM32 MCU, then?

If so, I could move it...

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.
STTwo-32
Technical Moderator
October 4, 2024

Hello @snak3in and welcome to the ST Community.

For the Client, server part of the question, you can go to this question. I think the answer should be helpful. 

To understand how the BLE transmission works and how the application operates between board and Smartphones, you can use the AN5289

Best Regards.

STTwo-32

 

snak3inAuthor
Associate II
October 9, 2024

ok thanks, let's say that I understood a little more about this whole system by looking at what you sent me.
I still have several doubts however, first of all I created a "server" program on my B-WB1M-WPAN following one of your tutorials on YouTube but when I start it very often I can't see it from the ST BLE Toolboox app, yesterday I noticed that I could see it when I put only the favorites in the filters, today that I'm trying again I can't even see it this way

STTwo-32
Technical Moderator
October 9, 2024

Hello @snak3in 

For a P2P Server application on the B-WB1M-WPAN, the best way for me is to refer to this working application. It includes a .ioc file that should help you to understand the configurations. Also, you can go to the code and check what you have to add. Also, you can refer to this wiki for better explanation.

Best Regards.

STTwo-32