Hello,
I am looking for an RSSI example, using the dev-kit nRF52DK. To start off, I will have two dev-kits and measuring the range between the two units. After that I would like to have several units, to test an extended range.
Hello,
I am looking for an RSSI example, using the dev-kit nRF52DK. To start off, I will have two dev-kits and measuring the range between the two units. After that I would like to have several units, to test an extended range.
First part solved!
I have used the example Light + Light switch and have added the following
in file: app_onoff.c
static void generic_onoff_state_set_cb(const generic_onoff_server_t * p_self,
const access_message_rx_meta_t * p_meta,
const generic_onoff_set_params_t * p_in,
const model_transition_t * p_in_transition,
generic_onoff_status_params_t * p_out)
{
__LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "msg: SET: %d\n", p_in->on_off);
__LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "rssi: %d\n", p_meta->p_core_metadata->params.scanner.rssi);
** Only the last line has been added to this function
Hello,
If your main goal is getting the distance (and not necessarily RSSI), I just wanted to mention that RSSI is not the best way to get the distance between devices. If you are using NCS 2.2 you could have a look at our new distance measurement model instead, which is using the distance toolkit described in the webinar I linked to above.
I am not sure about what you meant by your second question though. Are you trying to measure the distance to other nodes by triangulating distances between multiple nodes?
Regards,
Elfving
Hello,
If your main goal is getting the distance (and not necessarily RSSI), I just wanted to mention that RSSI is not the best way to get the distance between devices. If you are using NCS 2.2 you could have a look at our new distance measurement model instead, which is using the distance toolkit described in the webinar I linked to above.
I am not sure about what you meant by your second question though. Are you trying to measure the distance to other nodes by triangulating distances between multiple nodes?
Regards,
Elfving
I would like to add a relay node to this to extend my range, how would I go about editing the light/light switch example to configure this?
To add a relay node, or to add the relay feature to your node? To add the relay feature use CONFIG_BT_MESH_RELAY=y. I believe it is added by default to most of our samples though.
Regards,
Elfving