How to set Delta Threshold for Sensor Server?

Hello all.

I am a beginner for nRF BLE mesh as well as the Zephyr based nRF Connect and have a few queries.

I have been trying to send real time data of a sensor ovel BLE mesh. I have read the documentation regarding what delta threshold is as well as how it should work.

I have my nRF52840 Dongle set up with the Mesh Sensor Server Sample based code which just sends the sensor data to another nRF52DK using the client model. The sensor structure only contains the type of the sensor as well as the getter function. The sensor I am using is a single channel sensor as well since those are the only sensors which support this. Is there any way to integrate the bt_mesh_sensor_srv_sample()? Could this be done while still using periodic publishing?

I have configured the dongle node using nRF Mesh application and set the interval as required. I want to stop the node from sending the data after the interval period if the change in readings is not greater than threshold. How can I achieve this?

Could someone provide a sample code for doing so?

Thanks and regards,

Sumedh L.

Parents
  • Hi,

    All settings such as cadence and data threshold are configured through the Sensor Setup Server on the device. Adding a Sensor Server to your application results in both a Sensor Server model and a Sensor Setup Server model for that Sensor Server.

    Unfortunately the nRF Mesh app does not currently support configuring the Sensor Server through use of the Sensor Setup Server, which means you cannot use the nRF Mesh app for the configuration. This means we do not have a GUI for doing the configuration, as it cannot be done from the nRF Mesh app. You must use a device with full support for the Sensor Client model for that, or you must implement self-configuration on the Sensor Setup Server.

    Regards,
    Terje

  • Hello Terje,

    That is quite unfortunate but it has cleared up the query for me. Although if one were to implement said support, does the nRF Mesh library for Android contain the sensor threshold related functionality?

    Regards,

    Sumedh L.

  • Hi,

    The nRF Mesh library for Android contains the functionality for sending and receiving mesh messages, and as such can be used to implement functionality for using the sensor setup server, yes, including setting/getting threshold. Supporting a specific type of sensor should be relatively quick and straight-forward, while supporting all the different sensor value types would require more work.

    Regards,
    Terje

Reply
  • Hi,

    The nRF Mesh library for Android contains the functionality for sending and receiving mesh messages, and as such can be used to implement functionality for using the sensor setup server, yes, including setting/getting threshold. Supporting a specific type of sensor should be relatively quick and straight-forward, while supporting all the different sensor value types would require more work.

    Regards,
    Terje

Children
Related