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

how to create more groups in mesh

I create a mesh use Mesh SDK v1.0.1 and there is just a group ,and I want to create more groups. I compared it with Mesh SDKv2.0.1 which divide servers into two groups . The servers subscribe the group address .But I still don't know  how to create the group address and make different servers subscribe them.could you help me?

Parents
  • Hi, 

     

    Could you let me know if any particular reason you can't change to SDK v2.0.1 ? 

    If you have to stick to SDK v1.0.1 and want to assign different group address to different server, take a look in PROV_STATE_CONFIG_SUBSCRIPTION in do_config_step in provisioner.c 

    This is where the group address GROUP_ADDRESS (=0xCAFE)  got assigned to the model's subscription on the server. You can set different group addresses here.

    And on the client side, if you want to set a client to publish to different group address you change it inside access_setup() in main.c or use dsm_address_publish_add() and access_model_publish_address_set() to change. 

     

  • I don't use the SDK v2.0.1 because I need receive the RSSI from the client and I have add  other modules to it.

    I have read the codes that  you have had   mentioned . but I'm confused about the sequence of provision procedure to add the unicast  address and group address (I mean that how to judge the server's address to add the subscribtion). And do I need to add other addresses except 0xCAFE if I set different group addresses ?

  • The current configuring server's address is what you used when calling provisioner_configure(UNPROV_START_ADDRESS + m_configured_devices) 

    Uni cast address is added when doing provisioning, when the group address to be subscribed to or publish to is set during configuration. 

    I suggest to follow this guide to understand more about provisioning and configuration: 

    I'm not sure why you can't use RSSI on new nRF Mesh SDK. Please be aware that SDK v1.0.1 is not qualified. If you build your product on SDK v1.0.1, it's more likely you won't be able to qualify your product to be used with Bluetooth Mesh. 

  • Hi,

    I used the mesh SDK 2.0.0 to performance the guide you‘ve suggested to follow,

    but a problem bothers me is that when I turn off the "server" and try to use the command "sc.set()"

    it can't control the client anymore. What can I do to solve this problem.

    What I want to do is to use the "serial" example to create one group then control all the nodes which belong to the group. 

  • Hi Nicklaus, 

     

    Please create a new case. The problem you described is not really related to creating new group address. Please describe what exactly you mean by "can't control the client anymore"

    sc.set() is a reliable command. If it doesn't get a response, you will get a timeout. 

    If you want to send an un-acknowledge command, please use sc.unacknowledged_set()

Reply Children
No Data
Related