-
-
Notifications
You must be signed in to change notification settings - Fork 284
BLE Central examples for nRF51 #166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I am very interested in such an example, too.
So it should be possible to use one of Nordic Semiconductor's central device examples as a starting point. |
Are you just able to run Nordic examples directly from the Arduino IDE without modification? I need to give that a try. |
Today I tried to run the Nordic example directly from the Arduino IDE and my result is: Now I am trying to build a Simple BLE Scanner example based on the Heart Rate Monitor example from the nRF5 SDK 12.3.0 I will update my comment when I have new results. Update: The problem seems to remain the same - you somehow have to include most of the Nordic's SDK files. Maybe it is easier to use RedBearLab's Central Device example for their RedBear Nanos or arduino-BLEPeriphal as a starting point for solution. The RedBearLab's project contains a lot of Nordic's SDK and uses SoftDevice S130. |
As far as I know Sandeep has not built a Central / Master version of his BLE library. This core is really only intended to get the basic features like SPI and I2C working, the Bluetooth master or ANT capabilities still require you to build your own library. |
Ok, i tried to insert Nordic's SDK into the sandeepmistry/arduino-nRF5 repository. But now I am really stuck, I get the compilation error:
There are multiple checks like this:
But I do not have a clue how to improve the Update: Ok the big problem is: all files on the SDK/components are included and build. Many of these files are not needed and not buildable without proper definitions and the right file includes. |
This core is using an older version of the Nordic SDK, it's either 9 or 10... I am not 100% of the version but it's definitely not compatible with SDK v12. |
This should be possible with the older S130/S132 SoftDevice. There's some discussion on scanning here sandeepmistry/arduino-BLEPeripheral#155 with @floe. It would be nicer to see a |
I have now an overview over the Nordic SDK and used Eclipse CDT including a ST-Link V2 to program my Waveshare BLE400 board. Give me your opinions on my idea. |
Please submit a pull request to do so.
I don't think it is really needed, plus it has a non-open source license. |
CentralRole support was added in arduino.org's fork of the library |
Is someone planning to add the BLECentral component to Mistry's Arduino core so that we can use it just like we use BLEPeripheral? Not sure how to do this myself. Or maybe this is straightforward to use as is. I tried but had a lot of compile errors, etc. just from the fact I have no idea what I am doing. Anyway, I would love to be able to use the central role examples in the Primo version of the nRF52 core with the core reposited here (which works for my custom nRF52 boards) if some knowledgeable person could explain how to do so. Thanks. |
I am totally with you on that. I tried many different approaches but nothing worked so it seems some cde alterations are needed. |
There was a pretty big discussion about this months ago (last year maybe?) and it was decided not to add BLE support directly to the core. Personally, I am not working on anything BLE related because I am working with the ANT related features. |
Will ANT implementation include Central role or whatever it's called in ANT specification? |
Using ANT requires a license from Garmin so I won't be publishing my code related to ANT. |
I wasn't clear in my request. I agree we don't want BLE added to the nRF52
Arduino core.
What I am asking for is an API like BLEPeripheral that we could include in
core sketches but in this case it would be BLECentral and would allow
running the central examples in the Primo core.
I tried to do something like this but never got the examples to compile
because I was missing some Primo files or dependencies. This sounds
straightforward to fix for someone who knows the Mistry core and can more
properly formulate the BLECentral API from the Primo core so it can run
using the Mistry core.
Sadly, that person is not me.
…On Wed, Sep 20, 2017 at 7:38 AM, dlabun ***@***.***> wrote:
Using ANT requires a license from Garmin so I won't be publishing my code
related to ANT.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#166 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGY1qvFc63feQy5dJJ9bxZLl3A9wgAKhks5skSNwgaJpZM4N2O1Y>
.
|
Closing due to lack of activity |
last time I used nrf51 as central I used redbear labs library may be one can try that I will see if I could do it. with Sandeep's core. it has same nrf51 support and ble examples for central. https://github.com/RedBearLab/nRF51822-Arduino/tree/S130/arduino-1.6.x/hardware/RBL/RBL_nRF51822/libraries/BLE_Examples/examples/BLE_CentralTest |
I see that nRF51 chips support Central and Peripheral modes in SoftDevice 130 v2.0.1 but I don't see any examples for a Central/Master BLE device that can connect to other nRF51 or nRF52 chips.
Does anyone have an example for BLE Central to scan and connect to other devices?
The text was updated successfully, but these errors were encountered: