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

[Android MCP App] Showing "connect button" at a beacon?

/****************   Test Condition   **********************/

Phone: Nexus 5 (Android 6.0.1)
nRF Beacon Kit
MCP App Version 4.0.3

/**********************************************************/

B1

Raw Data

Hi, I use a nRF Beacon kit. I didn't change the firmware of the beacon.

As far as I know, beacon is a non-connectable peripheral.

As a result, that "connect button" seems questionable to me.

It doesn't connect even if I press it. :D

Anyways, my questions are

  1. There's really no way that beacon (peripheral) can be connected with a central (ex. iPhone)

without changing the services and characteristics?

(I think this question has really came frequently :D)

Then, personally, I think that "connect button" for beacons

should be removed like the old MCP app.

  1. Then, is there an example that a peripheral acts both a scanner and advertising peripheral?

I hope for a scenario like the following:

Central device (ex. iPhone) comes near the beacon which is advertising data. ->

(Suppose this beacon does not use other services such as HID or NUS, only advertising beacon.)

The iPhone then sends a scan response request to that beacon. ->

(I'm not sure if central devices sends that packet when it gets advertising data from a beacon.)

The beacon gets the scan response request packet and blinks the LED.

Of course, if there are multiple beacons near the central device, it will be tricky.

However, let's assume there's one beacon and one central.

Is this scenario possible? Plus, making the beacon to both scan and advertise (doing both of this is also questionable though) will fit this scenario?

-Best Regards

**/Edited, @ Võ Thanh Hiếu /

event

Thanks, you are meaning here?

I'm using SDK 7.2 and Softdevice S110.

The beacon example doesn't have this on_ble_event.

Anyways, I will try it out. Thanks~

**/Edited 2, @ Võ Thanh Hiếu, Test Result /

Hi, Võ Thanh Hiếu. Thanks for your tip and other references, I got some results, maybe? :D

Ref. 1 Stefan Birnir Sverrisson's answer

Ref. 2 Petter Myhre's answer

Change

Result

The problem is this "peer address" change doesn't it?

Sorry if I dragged this question quite long. This will be my last one.

-Best Regards

Parents
  • @Võ Thanh Hiếu, Thanks for your guidance.

    I will give it a shot.

    /****** Edited, Questions about the code **********/

    In the beacon example (nRF5_SDK_XX\examples\ble_peripheral\ble_app_beacon),

    the ble_stack_init function only enables stack and does not register SoftDevice handler modules

    for BLE events such as ble_evt_dispatch (which calls on_ble_evt) or sys_evt_dispatch.

    Then after enabling the BLE stack, should I call sd_ble_opt_set before initializing advertising data

    and add ble_evt_dispatch and sys_evt_dispatch?

Reply
  • @Võ Thanh Hiếu, Thanks for your guidance.

    I will give it a shot.

    /****** Edited, Questions about the code **********/

    In the beacon example (nRF5_SDK_XX\examples\ble_peripheral\ble_app_beacon),

    the ble_stack_init function only enables stack and does not register SoftDevice handler modules

    for BLE events such as ble_evt_dispatch (which calls on_ble_evt) or sys_evt_dispatch.

    Then after enabling the BLE stack, should I call sd_ble_opt_set before initializing advertising data

    and add ble_evt_dispatch and sys_evt_dispatch?

Children
No Data
Related