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

The provisioner device gets the RSSI value from the client and server devices for light_switch example.

hi,

The software version is nrf5SDKforMeshv310src and nRF5_SDK_15.2.0_9412b96

I use five nRF52832 nRF52 DK. client * 1, server * 4, provisioner by android phone. 

examples: light_switch. The test is normal.

Now target: The provisioner device gets the RSSI value from the client and server devices. 

How to transfer data? Or can Api put values?

Thank you!

  • Hi. 

    Not sure what you are asking here. 

    How to transfer data? Or can Api put values?

    What kind of data are you looking to transfer?

    Regards, 
    Joakim 

  • Hi Joakim,

    I want to see the RSSI value of the client device and the RSSI value of the server device on the provisioner device.

    Thank you!

    Chin

  • I suggest that you take a look at the Heartbeat message. 
    Heartbeat messages are transmitted by nodes periodically. A heartbeat message indicates to other nodes in the network that the node sending the heartbeat is still active. In addition, heartbeat messages contain data which allows receiving nodes to determine how far away the sender is, in terms of the number of hops required to reach it. This knowledge can be exploited with the TTL field.

    You can also take a look at this thread; 
    https://devzone.nordicsemi.com/f/nordic-q-a/39270/ble-mesh-heartbeat-example 

    Here is a description from Hung Bui who created the example:
    "Attached is a modified version of the lightswitch example to show how to configure heart beat. Please have a look at the node_setup.c file in the provisioner. In the example we will configure the light switch client to send heart beat to address 0xFFFF (all nodes) and the server 1, 2 will subscribe to the client address (0x100) and destination (0xFFFF). The server will print it out as RTT log in mesh_event_cb() in main.c

    If you want to have RSSI (of the last forwarded packet) you would need to nrf_mesh_rx_metadata_t in heartbeat_opcode_handle() to send the RSSI value to mesh_event_cb as NRF_MESH_EVT_HB_MESSAGE_RECEIVED event."

    Best regards, 
    Joakim

Related