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

How to send data while advertising with RedBear Blend/nRF8001

Hey ho, I'm new to BLE and Nordic. I'm a student from Germany and i want to realize one simple function with Arduino (RedBear Blend with nRF8001) and Android.

I want my Arduino to work like a beacon (i don't want to pair my Arduino with smartphone) and in addition while advertising send data (just one string which can be changed within Arduino program).

So it should work like this: Beacon sends continuously "hey, I'm here" with an string to my smartphone. If the smartphone is in range from the beacon and the smartphone app is working, the smartphone app should show me "hey, I'm here" with the string.

Is this possible with RedBear Blend / nRF8001 ? Or should I buy a nRF51288 ?

Can someone tell me what i have to write/change in the Arduino sketch that this is working?

Thanks a lot in advance and i apologize for my bad english skills.

Dennis

  • I make progess and it starts to make fun for me :) I've used ble_broadcast example, in "case ACI_DEVICE_STANDBY" i've added "lib_aci_open_adv" with the correct pipe, before it comes to "lib_aci_broadcast". After "lib_aci_broadcast" i've added "lib_aci_set_local_data" with the right expressions. When the program runs, Serial Monitor shows startup message and a few other messages, but after "Broadcastint started", there comes the ACI Command 1C, Evt cmd response: Error, Arduino is in a while(1) loop.

    It compiles without an error. What is wrong?

Related