cancel
Showing results for 
Search instead for 
Did you mean: 

BLE Mesh

lucas_brcg
Associate II

hello, as part of a project for a course I'd like to recover the sound intensity in random places. For this, I have 3 steval mksbox1V1 and I use the microphone mp23abs1 to recover the sound intensity in db of an environment. I'd like to place the cards in different rooms in my school and have the card furthest away send its data to the next card, then relay it to the last card and have the last card send all the data to the PC. So to do all this I want to use mesh, and I'd like to know how mesh works on these cards? How do I configure the cubeMX?

 

 

7 REPLIES 7
Dominique FOLLEZOUR
ST Employee

Hello

BLE mesh might be an alternative. This might be not so straight forward as you will have :

1. port the STSW-BNRG-Mesh - Mesh over Bluetooth Low Energy - STMicroelectronics over  mksbox1V1

2. enable & provision mesh

3.install setup

An other alternative , pending to your network size, would be just to put each device in advertising (pushing for data) and scanning mode (listenning to data). This setup is pretty simple to deployed but not scalable as mesh technology. It will be really efficient and straight forward if you have few nodes in your network (up to 20 I would say).

Br

Dominique

 

Hello,

Thank you for your reply, which means that I don't necessarily need to activate the mesh. I can just configure my first card in advertising mode to send data to the second, which will be in scanning mode, and also in advertising mode to send data to the last card, then the last card in turn to send the data back to the PC?

Dominique FOLLEZOUR
ST Employee

You are right this approach would be more straight forward, all nodes in advertising & scanning mode. This is for sure efficient up to 20 nodes, if more nodes it might lead to crowded network.

OK, so how do I do that? Do I just hand code each card or do I have to add specific files?

Hello

 

As you have not the ideal dev kit, the only way indeed is to keep the BlueNRG-M2 as it is , then develop code on top of the host MCU, based on some example from X-CUBE-BLE2 - Bluetooth low energy software expansion for STM32Cube - STMicroelectronics

 

Br

Dominique

So on this link i can find some develop code examples ?

Dominique FOLLEZOUR
ST Employee

For sure you will find some code to be hosted over the host MCU of the mksbox1V1.  The link is target sample code running over NUCLEO-L4. My recommandation is so to start from the sample code dedicated to mksbox1V1 and inspired from abover link to understand how to move to advertising then scanning.

 

Br

Dominique