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

multiple server on one client - light switch demo

Hellou. I'm developing application, which is modifiaction of light switch demo. I need use 128 servers and one client. But when I redefine in SERVER_COUNT to 128 in client application, it is no posible connect to servers (servers are not promisioned). I was read somewhere its needed change ACCESS_FLASH_PAGE_COUNT and DSM_FLASH_PAGE_COUNT . But I didn't find how many pages are needed for example 128 servers. My question is how many bytes are needed for writing data to ACCESS_FLASH and how many bytes are needed for writing data to DSM_FLASH by promisioning for 1 server. When i know how many bytes ist needed for 1 bytes, its enoght multiple by SERVER _COUNT(exactly 128) and from this calculate hoe many pages is needed for ACCESS_FLASH_PAGE_COUNT and  DSM_FLASH_PAGE_COUNT. 

Thank you for answer. 

Parents
  • Hi,

    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. 

     

  • I think there is an error in the last paragraph of your answer. You mention the same function access_model_publish_address_set() for both setting the app key and the publication address. I guess the first is not the one you actually had in mind. Could you please correct that? Is it always necessary to set an app key if there was already assigned an address and now is only changed to another one?

Reply
  • I think there is an error in the last paragraph of your answer. You mention the same function access_model_publish_address_set() for both setting the app key and the publication address. I guess the first is not the one you actually had in mind. Could you please correct that? Is it always necessary to set an app key if there was already assigned an address and now is only changed to another one?

Children
Related