Questions about the distance measurement mesh model

Hello

My application is based on the Distance measurement sample which uses a BLE  scan response callback to trigger the measurement synchronization sequence in reflector mode and scan callback to trigger synchronization sequence in  initiator mode. With the Distance mesh model the measurement sequence is started with the bt_mesh_dm_cli_measurement_start API

It seems that simply calling this API every time a scan packet arrives is going to overwhelm the mesh network. On the other hand it would be great to receive more than one measurement so averaging can be applied. What's your recommendation on how frequently should  bt_mesh_dm_cli_measurement_start API be called?
Also

There is an API bt_mesh_dm_cli_results_get() which returns the measurement results.

However the results are available in the bt_mesh_dm_cli_measurement_start() callback. 
Can you clarify when this function should be called?

Do you plan to add a sample how the DM model should be used? That would very helpful

Thank you

Andy

Parents Reply
  • Hi Andreas,

    Currently we don't have any official samples planned. I will look into it and see if I can create an unofficial sample, but I can not guarantee anything w.r.t. time horizon and/or if it ever will be done.

    Im also working in a bt mesh project and we need to use the distance measurement mesh model, even if the API is clear as a beginners we have some complications, then im also interested if either an official or unofficial sample is available.

    I thank you in advance,

    Kind regards,

    Mehdi - Firmware engineer

Children
Related