-
Notifications
You must be signed in to change notification settings - Fork 117
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
BLE_HeartRate example does not work on NRF52_DK #339
Comments
@jw-smaal thank you for raising this issue.Please take a look at the following comments: We cannot automatically identify a release based on the version of Mbed OS that you have provided. |
Can you look into the log on your iphone to see what the reason for disconnection is? You can also add to the example after init complete:
and add a function to the main class:
This way the example will also print the reason for disconnection. |
Paul, Thank you for looking into this. The iPhone BLE scanner reports: When I add the code I get |
That means a timeout, one of the devices failed to send a packet for longer than the supervision timeout. It's worthwhile to check the connection parameters. If you don't see them on your phone you can do a similar event on the example: and examine: |
This is not related to your problem (at least I don't) but wanted to mention that I have recently overhauled the examples - the new versions are available in the 'development' branch. |
I have a good signal -37dBm I tried the development branch as well and with the BLE_GAP example I am getting similar issues. Maybe it's not a bug but I am unable to get it to function at least with my phone. I am going to get some other devices to try with as well. The serial port on the NRF52_DK shows the following:
|
The BLE_GAP example is designed to connect and disconnect on its own. It looks like it's happily negotiating higher bandwidth and longer packet size so your connection must be OK. I'm surprised by the out of memory errors for creation of an advertising set. I'll look into that. |
@paul-szczepanek-arm happy to report that I managed to use the "BLE_GattServer_CharacteristicWrite" connect to the GattServer on the NRF52_DK and write characteristic to it. Thanks for all your help. |
Glad it works for you. I will follow up on the out of memory errors in the gap example but since it's not part of this issue I will close this. If you think there's still a problem please reopen. |
Description of defect
BLE_HearRate example compiles ok. However when using a BLE scanner and then connecting to the "Heartrate" device it disconnects unexpectedly. I tried multiple types of BLE scanners same issue on iPhone.
The DAPLINK CMSIS-DAP debug printf only printouts: DEVICE MAC ADDRESS: da:3f:a1:a:f5:f
Target(s) affected by this defect ?
NRF_52_DK
Toolchain(s) (name and version) displaying this defect ?
MBED-CLI + GCC
Building project BLE_HeartRate (NRF52_DK, GCC_ARM)
Scan: BLE_HeartRate
Link: BLE_HeartRate
Elf2Bin: BLE_HeartRate
Image: ./BUILD/NRF52_DK/GCC_ARM/BLE_HeartRate.hex
What version of Mbed-os are you using (tag or sha) ?
#8ef0a435b2356f8159dea8e427b2935d177309f8
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
mbed cli 1.10.4
arm-none-eabi-gcc-9.2.1
How is this defect reproduced ?
simply try to compile to the example with a NRF52_DK target and connect to it using a BLE scanner. I also tried other examples (Battery) and gives the same issue).
The text was updated successfully, but these errors were encountered: