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

Adding more than 1000 SERVER_NODE_COUNT for the light switch example

Hello Developers,

I successfully I made some modifications to the light switch example to transmit a larger payload and I was wondering what changes should I do to have to allow the provisioner code compile for values higher than 370 SERVER_NODE_COUNT, below that number the provisioner compiles and I am able to provisionee all the custom boards I have available (around 80), but If I want to use more than 370 nodes on my network what should I do?

I am using the Mesh SDK 2.2 and the provisioner example, I know can use PyACI, but is there some hacky way to use a nrF52 to provisioner a larger number of nodes? e,g adding external flash (I am assuming the issue a memory related)

Regards

Meliodas

  • Hi Meliodas,

    You are correct. The issue is memory related. I would not recommend to provision so many nodes via one devkit, especially not a nrf52832, as you have no way of backing up this provisioning data currently. With the Interactive PyACI script, on the other hand, you can easily backup the example_database.json file. May I ask why you want to provision so many nodes via one dev kit?

    Do you have a 52840 dev kit by any chance? Have you tried provisioning with that?

    Kind Regards,

    Bjørn

  • Hi , I have a nRF5252840 available, I would like to be able to build the example either for a nRF52832 or 840 using a higher number for server_node_count, at the moment I don't want provision such amount of nodes using a dev kit just build the provisioner and study how it affects the nodes when the server_node_count has a high value, I also facing the PyACI script option,but it would be wonderful if I have that two options

  • This case could be very helpful. Do you require one generic on off client model for each server model? Below a quote from the case I linked to:

    "The way our example designed is that for each command from the client node we use one client model. For example by default, we have 4 server node, and have 1 client to control LED on server 1, 1 client for server 2, 1 client for ODD Group and one client for EVEN group. Each client located on one element, we have 4 elements on the client node. 

    If you plan to have 128 server, you may not want to have 128 client models/elements to control each of them. I would suggest to use one single client to control multiple servers. You just need to change the publication address of the client to target one server, and can change that address when another server. 

    You can use dsm_address_publish_add() to add an address to the DSM, then use access_model_publish_address_set() to set the app key, and access_model_publish_address_set() to set the publication address of the client mode. "

    If this works for you, you would not need to increase SERVER_NODE_COUNT & could use one client model to control multiple server models.

Related