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

Combining Mesh and Blinky examples

Hello everyone.

I would like to set-up a mesh network of Thingy:52 devices and an nRF52840, which would help me communicate from the an external stimulus to the phone, via this mesh network.

The steps that I have done are: I tried the the Light switch demo Ok & thingy52-mesh-provisioning-demo Ok and the BLE Blinky Application Ok. So, my goal is to send a notification on the phone, when a button on the other end is pressed. Something like that:

[external button -> on, to start communication] -------> [client starts Bluetooth communication (nRF52840)] ------> [server (Thingy:52), relay] ------> [phone running 'Blinky App', receives notification].

Do you have an idea/suggestion of how I should combine the two examples? From what I understand, the phone cannot participate in the Mesh, so the tricky part should be a code on the nRF52840, which helps the board (1) join the mesh and subscribe to notifications, while (2) also writing into a characteristic something, to send a notification on the phone.

Thank you in advance!

Parents Reply Children
  • Yes, you need to use another development board to do the provisioning. 

  • Hello! Thanks for this info, I have been waiting for another dev board until now.

    Ok, so the last step from my project would be to actually integrate the Mesh project into the Nordic Blinky project, like I said in the beginning. But before trying to follow that tutorial (which I failed until now), I would like to ask you some questions.

    Mag So, on one hand, the provisioning needs to be done from the nRF Mesh phone Application (this works for the Mesh project).
    Mag On the other hand, for the combined example, provisioning cannot be make from the phone and needs to be made by a dev board.

    This is not so feasible, because I would like to deploy this combined mesh+blinky on many Thingy:52, which will act as a range extender, like I presented in the beginning:

    [server (Thingy:52), relay]

    But this can only be achieved if I specifically assign them with the same group address from the phone. So this cannot be just randomly done by a devboard.
    I hope that I explained well enough my concern.

    Do you see the problem that I will have even if I try to combine the two exampls? Maybe I should try another approach (?). Thinking Do you have any ideas?

    Thanks! Sun with face

  • Hi,

    I might have been misleading with the coexistence example. It was meant to use as a reference on how you can merge the blinky example and mesh example. 

    For provisioning, all nodes in the network need to be provisioned by the same provisioner. (Actually, it can be multiple provisioners, but then the provisioners must exchange information about the network beforehand, such as network key, already provisioned nodes, app keys, etc.) 

    So if you want to provision everything from the phone you can add support for PB-GATT yourself. I haven't done this myself but there should be many threads on this forum discussing about this already. I suggest you try to search around the forum, and this will be helpful.

  • Hi  and thanks for your help.

    Ok, now I understand that it may be more complex than I originally imagined Smile

    Thanks for your references! 

Related