This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

central scanner and mobile device

I have 2 nrf51-dk with softdevice 130 (one as central, and the other as peripheral), i use sdk v.10.

I have read and follow central tutorial, and all works.

Now, I have modified the code to show the addres of the advertising that central is recieving and only shows the addres of BLE devices, I tried with 2 mobile device, the mobile devices detect nrf51-dk (peripheral), but nrf51-dk (central) no detects mobile devices advertising.

I don´t use whitelist, show all the addresses of the received advertisments.

Edited:

image description

Code:

static void on_ble_evt(ble_evt_t * p_ble_evt)
{
uint32_t              err_code;
const ble_gap_evt_t * p_gap_evt = &p_ble_evt->evt.gap_evt;	
const ble_gap_evt_adv_report_t *p_adv_report = &p_gap_evt->params.adv_report;
//is_uuid_present(&m_nus_uuid, p_adv_report);

switch (p_ble_evt->header.evt_id){
    case BLE_GAP_EVT_ADV_REPORT:{
		printf("dir: %02x:%02x:%02x:%02x:%02x:%02x \n\r", p_adv_report->peer_addr.addr[5], 
														  p_adv_report->peer_addr.addr[4], 
														  p_adv_report->peer_addr.addr[3],
														  p_adv_report->peer_addr.addr[2], 
														  p_adv_report->peer_addr.addr[1], 
														  p_adv_report->peer_addr.addr[0]);
.......

I have tried with Sniffer and nRF Master Control Panel and the same result.

Is there something that I´m doing wrong or nrf-51 (central) doesn´t detect devices that aren´t ble?

Thank you.

  • I check it with "BLE Central, Peripheral Cheker" and "Ble Scanner" and say that support Bluetooth Smart and Peripheral mode, I have just tried with "Locate Beacon" app using smart phone as beacon and with this, my central nrf51-dk is able to discover it.

    My questions is:

    1. If I have a smarth phone that supports Ble tehcnology and I only active Bluetooth (visible), my central nrf51-dk isn´t able to discover?

    2. I will need allways an app similar "Locate Beacon" ?

    Thank you.

  • You need an app that actually tells the smart phone to advertise, it will not do this only by activating Bluetooth. Only when the smart phone advertises the central device will be able to discover it.

  • Hi Petter.

    Thanks for all your help, this is I needed to know.

Related