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

sending data over the mesh network

Hi,

i'm using nRF5 SDK 15.2.0 and  nRF5 SDK for Mesh v3.1.0 using the examples light switch client and server. the clients getting data from my sensor over the UART and sending it to the server. i'm using the function generic_onoff_client_set to send the data from the client.

1. what the different between the ACCESS_RELIABLE_TRANSFER_SUCCESS that i get in the call back function app_gen_onoff_client_transaction_status_cb and the status that the server send and the client get it in the function status_handle . how the client send each status(i know when the server use the function send_status i get it in the function status_handle but what with the first one?). did all the clients in the mesh network get the status or only the client that send the message?

2. how can i know that the mesh it actually work? there is a way to test it?except the way to put number of ble devises and check if i get the data in the end target ( i tried it but some time i get the data and some time not and i'm not sure if the mesh actually work)?

3. i sending data from the server to the client using the function send_status  i get the data in the client faster then i sending data from the client to the sever using the function that i mention above. why? and if i using the function send_status to send message from the server to client did it transfer over the mesh or the client get it directly from the server

Parents
  • Hi. 

    1, The ACCESS_RELIABLE_TRANSFER_SUCCESS is an acknowledged transaction status callback. The application can determine a suitable course of action by using this callbakc. 
    The status_handle is an access layer handle type, as defined in access.h. It can be used by both client & the server. Both the client & the server use access_model_publish to send data between each other via the access layer. (Ref. this case: https://devzone.nordicsemi.com/f/nordic-q-a/46986/server-model-id)

    2. We don't currently have a tool to monitor the Mesh. So you would have to set up your own test to make sure that the nodes are active and working. However, you can take a look at the health model and heartbeat messages. Health messages are used to monitor states that determine the physical condition of a node.

    3. I'm not sure if I understand the question. If the message is sent directly to the client from the server or if it's relayed through the network would depend if the nodes are in direct radio contact etc. 

    Best regards, 
    Joakim

Reply
  • Hi. 

    1, The ACCESS_RELIABLE_TRANSFER_SUCCESS is an acknowledged transaction status callback. The application can determine a suitable course of action by using this callbakc. 
    The status_handle is an access layer handle type, as defined in access.h. It can be used by both client & the server. Both the client & the server use access_model_publish to send data between each other via the access layer. (Ref. this case: https://devzone.nordicsemi.com/f/nordic-q-a/46986/server-model-id)

    2. We don't currently have a tool to monitor the Mesh. So you would have to set up your own test to make sure that the nodes are active and working. However, you can take a look at the health model and heartbeat messages. Health messages are used to monitor states that determine the physical condition of a node.

    3. I'm not sure if I understand the question. If the message is sent directly to the client from the server or if it's relayed through the network would depend if the nodes are in direct radio contact etc. 

    Best regards, 
    Joakim

Children
No Data
Related