nRF54L15-DK Mesh Sensor Observer sample connected to Mesh Sensor sample

Hello everybody.

I'm experiencing a problem with two nRF54L15-DK boards, one flashed with sensor clent sample (Client) and the other with sensor server sample (Sensor_srv). When I press the Button 3 of the Client board a sensor setting set message is sent to the Sensor_serv board (see the picture below for the code and the next for message detect with nRF Sniffer for BLE)

On the Sensor_srv board the code to declare the presence detect sensor is 

and the settings struct is 

with the function of the sample to manage the set of the threshold is 

I would expect the set function to be called every time I press button 3 on the Client board, but it never happens. I checked by placing a break point within the function. In the nRF Mesh application, the Client (named Mesh Sensor Observer) publish address is the group address 0xC001, while in the Sensor_srv (named Mesh sensor) the subscription address and the publish address are the same.

Does anyone have any suggestions for solving this problem?

Parents
  • Hi,

    Which NCS version are you using? 

    What the logs of sensor server and client boards do you get when pressing the Button 3 of the Client board?

    I would expect the set function to be called every time I press button 3 on the Client board, but it never happens.

    Which set function do you expect to call?

    Regards,
    Amanda H.

  • Hi Amanda

    The version of my ncs is 3.1.0. I would expect the function "presence_motion_threshold_set" be called every time I press the button 3 of the client board.

    By the way, I'm fairly new to Zephyr and Nordic microcontrollers. How can I enable logging on both boards? Currently, the original sensor server prj.conf file contains:
    CONFIG_BT_MESH_LOG_LEVEL_DBG=y
    CONFIG_BT_MESH_PROVISIONEE_LOG_LEVEL_INF=y 

    but I do not see any message on the boards VCOM when I press button 3 of the client board. 

    Which config settings should I set to get info when I press button 3 of the client?

Reply
  • Hi Amanda

    The version of my ncs is 3.1.0. I would expect the function "presence_motion_threshold_set" be called every time I press the button 3 of the client board.

    By the way, I'm fairly new to Zephyr and Nordic microcontrollers. How can I enable logging on both boards? Currently, the original sensor server prj.conf file contains:
    CONFIG_BT_MESH_LOG_LEVEL_DBG=y
    CONFIG_BT_MESH_PROVISIONEE_LOG_LEVEL_INF=y 

    but I do not see any message on the boards VCOM when I press button 3 of the client board. 

    Which config settings should I set to get info when I press button 3 of the client?

Children
Related