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

Parents
  • Thank you for your answer Asbjørn, i have this library already installed, i took a quick look through the sketch "ble_broadcast" but i have no idea what is all the code for. If i load that sketch to my board, i can't find it anymore from smartphone. I want to broadcast the current GPS position of my GPS Shield as (let's call it) "service data", while my nRF8001 is working as a beacon.

    Which part do i have to change? Sorry, but there is so much for me to learn.

    EDIT: maybe you can tell me where i can read more about what i want to do, that i understand more of broadcasting information in beacon-mode.


    EDIT: Now i'm on the right way. My BLE_broadcast.ino is working without an error, but i can't find it at all as an BLE Device. Both Smartphones (Galaxy S3 with 4.3 and iPhone 6 with iOS8.1) don't see the BLE Device. What do i have to do that my device is broadcasting it's name ? Do i need a further pipe for this?

Reply
  • Thank you for your answer Asbjørn, i have this library already installed, i took a quick look through the sketch "ble_broadcast" but i have no idea what is all the code for. If i load that sketch to my board, i can't find it anymore from smartphone. I want to broadcast the current GPS position of my GPS Shield as (let's call it) "service data", while my nRF8001 is working as a beacon.

    Which part do i have to change? Sorry, but there is so much for me to learn.

    EDIT: maybe you can tell me where i can read more about what i want to do, that i understand more of broadcasting information in beacon-mode.


    EDIT: Now i'm on the right way. My BLE_broadcast.ino is working without an error, but i can't find it at all as an BLE Device. Both Smartphones (Galaxy S3 with 4.3 and iPhone 6 with iOS8.1) don't see the BLE Device. What do i have to do that my device is broadcasting it's name ? Do i need a further pipe for this?

Children
No Data
Related