This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52 setup client and server examples to send serial packets over mesh and print on uart

Good day, 

I am starting a new project where I am using the ANNA-B112 BLE device from ublox in a custom design. The ANNA-B112 interfaces with a host MCU over UART. 
I would like to be able to set up a mesh network with one client device and several servers. 
The main function of the server host mcu is to gather data from various sensors, package it into a packet and then send then send the data over uart to the BLE chip, which in turn will forward the packet of (sensor) data over the mesh network to the client . 

for this i will need to provision the client and server using the nRF mesh app, and not using the PyACI scripts. 

I have looked at the serial and light switch examples but not very sure how to move forward from here. 

Help in pointing me in the right direction and usage would be greatly appreciated .

Thank you 

Parents
  • Hi Nishant, 

    Have you tried the light switch example  ?

    I don't see any problem doing what you are planning. In our light switch example you can have multiple servers reporting to a client (in the example the client turn off and on the light on the servers, but you can actively publish data from the server without the client asking as well). 

    You just need to implement your own proprietary model (you can refer to our simple_on_off model) and make a network similar to the light switch example. 

  • Hi Hung, I am currently using nRF mesh 3.2 and nRF SDK 15.3. I have integrated the uart module to light switch server and client both. I have one client (BT840) and 3 servers (BT832) as of now. Tested the application and working as per the requirement and also able to print the messages on on/off actions based on button press on UART terminal. Now i want to send the data (20 bytes) from client application to the servers (groups basically) over uart. 

    Could you please guide how to add the ble_uart so that messages can be sent to specific devices in mesh network (publish data to specific publish address). I went through some threads here in forum and found that simple message server would do the similar thing which i want to do. But that model is not present in nRF mesh 3.2. 

    Also if i add ble_uart service it would be able to communicate with only one device, right? 

    client (20 bytes)---->publish----->subscribe 20 bytes (all the servers in network), this is what i want to do.

    Seeking for some quick response. Thank you 

Reply
  • Hi Hung, I am currently using nRF mesh 3.2 and nRF SDK 15.3. I have integrated the uart module to light switch server and client both. I have one client (BT840) and 3 servers (BT832) as of now. Tested the application and working as per the requirement and also able to print the messages on on/off actions based on button press on UART terminal. Now i want to send the data (20 bytes) from client application to the servers (groups basically) over uart. 

    Could you please guide how to add the ble_uart so that messages can be sent to specific devices in mesh network (publish data to specific publish address). I went through some threads here in forum and found that simple message server would do the similar thing which i want to do. But that model is not present in nRF mesh 3.2. 

    Also if i add ble_uart service it would be able to communicate with only one device, right? 

    client (20 bytes)---->publish----->subscribe 20 bytes (all the servers in network), this is what i want to do.

    Seeking for some quick response. Thank you 

Children
Related