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

To display uuid, major,minor values and company identifier using Ble_app_proximity example

i am not able display uuid, major,minor values and company identifier(so that we can change the beacon identification to ibeacon)  using Ble_app_proximity example. please say the specific steps to display these.

Parents
  • I'm not sure I understand what your are trying to do. There is no beacon uuid/minor/major value in the ble_app_proximity example, did you add this from the ble_app_beacon application?

    Have you tried debugging, following this and this guide, to see if there are any error codes reported?

  • Did you debug to check if there are error codes reported? This is normally the case when your device is not advertising.

  • The example will only sample battery voltage every 120 seconds. I tested the example and confirmed that lower values are reported when running off battery.

    You can change the interval for sampling on line 101 of main.c in my example:

    Fullscreen
    1
    #define BATTERY_LEVEL_MEAS_INTERVAL APP_TIMER_TICKS(120000) /**< Battery level measurement interval (ticks). This value corresponds to 120 seconds. */
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • @Jørgen Holmefjord  now my beacon should only advertise to specific device like my phone with an app and that nrf52 dk should not advertise to other devices so that other devices cannot see any information of my nrf52dk

    what should i change in the code for that functionality

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    #include <stdint.h>
    #include <string.h>
    #include "ble_advertising.h"
    #include "nordic_common.h"
    #include "nrf.h"
    #include "nrf_soc.h"
    #include "nrf_drv_saadc.h"
    #include "app_error.h"
    #include "ble.h"
    #include "ble_err.h"
    #include "ble_hci.h"
    #include "ble_srv_common.h"
    #include "ble_advdata.h"
    #include "ble_tps.h"
    #include "ble_ias.h"
    #include "ble_lls.h"
    #include "ble_bas.h"
    #include "ble_conn_params.h"
    #include "sensorsim.h"
    #include "nrf_sdh.h"
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Your question is outside the topic of this thread, please post your question in a new thread. You need to look into directed advertising. Note that advertising packets will still be visible on-air for other devices to receive, there is no way to advertise only to a single device, other devices will receive the advertising packet and filter it out since it is not addressed to that device, but sniffers can still see the packets.

  • @Jørgen Holmefjord why my beacon is still in BSP_INDICATE_CONNECTED mode if get disconnected also

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    #include <stdint.h>
    #include <string.h>
    #include "ble_advertising.h"
    #include "nordic_common.h"
    #include "nrf.h"
    #include "nrf_soc.h"
    #include "nrf_drv_saadc.h"
    #include "nrf_sdm.h"
    #include "app_error.h"
    #include "ble.h"
    #include "ble_err.h"
    #include "ble_hci.h"
    #include "ble_srv_common.h"
    #include "ble_advdata.h"
    #include "ble_tps.h"
    #include "ble_ias.h"
    #include "ble_lls.h"
    #include "ble_bas.h"
    #include "ble_conn_params.h"
    #include "ble_conn_state.h"
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    please check once

Reply Children
No Data