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

Doubts about BLE and MESH

Hello,

I am doing a project for college with nRF52840. It's about a mobile phone with an app that send the location of the device when a user touch a button. This message enter in the nRF52840 Mesh and reach a server. 

I was working with the light switch example. The client node has to be a proxy node, receiving messages from the mobile and resending to the mesh. now i have some doubts about how i can continue:

1. How can I send and receive in the mobile phone messages to/from the nRF52840 with the proxy option? I need to make a coexistance between SDK and Mesh SDK, with a GATT Bearer...?

2. This messages can have 2 type of opcodes (with and without ack).  In the moment I would have working the point before, is there any form of send this opcode between BLE and Mesh?

3. The mobile phone can connect to many nRF. When it connect to one, the other act as a relay. Do i have to configure this relay in any way?

Thanks in advance!! Slight smile

  • Hi,

    1. The Light switch example have the proxy feature enabled by default. You can send messages from the phone using our nRF Mesh app

    2. 

    In the moment I would have working the point before, is there any form of send this opcode between BLE and Mesh?

    Do you want to know how to send messages with and without ack between proxy node and mobile? Can you elaborate? 

    3.

    The mobile phone can connect to many nRF. When it connect to one, the other act as a relay. Do i have to configure this relay in any way?

    I'm not entirely sure what you mean by this. Do you want to know how to configure a node as an relay node?

  • 1. The Light switch example have the proxy feature enabled by default. You can send messages from the phone using our nRF Mesh app

    But i want to create my own app. What do i have to take in account to make it? 

    Do you want to know how to send messages with and without ack between proxy node and mobile? Can you elaborate? 

    Yes. I have two type of messages in my app. When i send one of them, i want a behaviour and when i send the other, another behaviour. So thats the point of my question. How can i make that difference when the message from the app is sent to the client node?

    I'm not entirely sure what you mean by this. Do you want to know how to configure a node as an relay node?

    I will have multiple nodes. The device can connect to any of them. When the device is connected to a node and send a message, ¿Do I need to configure the nodes so they know how to relay to the server?

  • Hi,

    Our nRF Mesh app is open source and can be found on Github for both iOS and Android. You can use it as a reference to create your own app. I suggest you study the code to see how things are done there.

    The relay feature is enabled by default in our examples. So you won't need to configure anything on the nodes, they will relay the message automatically if needed.

Related