-
-
Notifications
You must be signed in to change notification settings - Fork 172
NimBLE_Extended_Server.ino example not working? #923
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
Do you have legacy advertising enabled? Most phones don't seem to support extended only advertising. |
Thanks h2zero, that could be the problem. I now tried on 2 nRF52840 devices the Server and Client Bluetoot_5 examples (because in the end I need a Long Range connection between 2 nRF52840 devices) and try to set up a connectiong between them. And I get exact the same errors: To follow your tip, I also tried to set setLegacyAdvertising(true), but that is not allowed for extAdv, I guess because extAdv is using extended Advertising and I need extended Advertising to be able to set the coding to LE_CODED. Is that correct thinking? |
The server seems to actually create the service and characteristic, this is logged by the server:
|
The client now sees the service in the advertisement, but connection still goes wrong. It seems to be connected but then cannot find the service and times out / disconnects. The loggin while scanning:
Who has tips on how to make them connect using Extended Advertising on a nRF52840? I used both bluetooth_5 samples for Server and Client, and that simply does not work. |
No idea what the issue is, I will try to reproduce this. |
With the solution for #929 this issue is solved. |
I try to use bluetooth 5 with NimBLE, but connecting will not work.
I apply the exact sample code (NimBLE_Extended_Server.ino), either with or without changing both primary and secundairyPhy to BLE_HCI_LE_PHY_1M, compile and upload to nRF52840 using Jlink. I use this platform.ini:
[env:Nim-nrf52840server]
platform = https://github.com/h2zero/platform-n-able.git@^1.0.0
board = nRF52840_WHX
framework = arduino
monitor_speed = 115200
;upload_protocol = nrfutil
upload_protocol = jlink
lib_deps =
h2zero/NimBLE-Arduino@^2.1.0
upload_port = COM9
extra_scripts =
pre:build_versioning.py
board_bootloader = adafruit
build_flags =
-DNRF52_SERIES
-DNRF52840_XXAA
-DCONFIG_NIMBLE_CPP_LOG_LEVEL=0
-DCORE_DEBUG_LEVEL=0
-DCONFIG_BT_NIMBLE_EXT_ADV=1
The serial monitor show 'Started advertising', like it should. When I look in BLE Scanner app on my Samsung S24 I do see the device, I can click on Connect but it wont connect: in the app status is set to Connecting, then Discovering Services, but then goes back to Disconnected. Any ideas?
The text was updated successfully, but these errors were encountered: