-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[HELP] nimBLE central (companion to examples/nimble) on a nrf52840-dk #14012
Comments
@raiden00pl I see that you added the nrf52840-dk:sdc_nimble config. Thank you for this, it helped me a lot to get started. Does the above issue mean anything to you and/or have you managed to get a central as a companion to your example running? From the examples I referenced it shouldn't be hard to get at least the scanning running, but I am stuck with the issue I mentioned. |
@maxikrie I think Nimble integration on NuttX is something that many people are interested on. Could you please include a Documentation/ maybe it could be included like a Guide: https://nuttx.apache.org/docs/latest/guides/index.html @pkarashchenko when you used BLE with ESP32xx did you used Nimble stack as well? |
@acassis So far, I only have the existing nrf52840-dk:sdc_nimble example running, which employs the Nimble stack with the Nordic Softdevice controller to create a BLE peripheral. My goal is to also have a BLE central either on another nrf52840-dk or some ESP32 board with Nimble. As I understand @pkarashchenko may already has a ESP32 configuration with Nimble (not sure if peripheral or central), which he will provide soon. I am happy to provide a guide if I have it running. |
hi, I haven't had a chance to play with nimble as a BLE central role. The problem is rather on the nimble side (maybe something missing in nimble configuration). Last time I looked, |
I have found the issue, which was a wrong configuration. I did set the nimble role to central, but I was missing that the softdevice role also needs to be set (otherwise it links the wrong nrxlib library). The following needs to be set in the defconfig;
I managed to connect between a nrf52840-dk running nuttx with nimble as a central, and a ESP32 running the esp-idf with nimble as peripheral. Once I have everything in nuttx with nimble only, I will create a pull request. |
@maxikrie please submit a board config to mainline with the fix |
@acassis there is no nimble central example application in apps now, so a new board config doesn't make sense here :) |
@acassis Yes, I just got it working. I will provide the source with a config for the nrf52840-dk soon, probably next week. |
@acassis @raiden00pl |
Description
Hello,
I have successfully tested the examples/nimble app on a nrf52840-dk acting as a BLE peripheral. For this, I am connecting to the board with a smartphone and the nrf connect app. Now, I am trying to create a BLE central on a second nrf52840-dk, which can connect to the peripheral.
So far, I have examined and copied from esp example and mynewt-nimble example. However, when I perform a BLE scan for peripherals,
ble_gap_disc
orble_gap_ext_disc
(withMYNEWT_VAL(BLE_EXT_ADV)
) fail with error code 513 hinting to a timeout inble_hs_hci_cmd_tx
.I am happy to provide my code if necessary, but wanted to reach out first if anybody accomplished to get a BLE central to scan for peripherals?
Thanks!
Verification
The text was updated successfully, but these errors were encountered: