-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Can not apply advertisment data #4288
Comments
Maybe my example something wrong, I used old firmware version (should be softdevice3.0) as below, that work for bluetooth connection. MicroPython v1.8.1-3865-gd91c351-dirty on 2018-05-01; PCA10040 with NRF52832 from machine import RTCounter, Temp But when I changed to updated version firmware with softdevice 6.0, bluetooth signal can be advertised but cannot connect. Rdgs, |
I have the same problem, using the stock example ubluepy_temp.py, advertising is ok, event_handler EVT_GAP_CONNECTED ok, but then that's all. Connection soon timeout after a while. |
@linycm, are you running this from a build of master branch? I'm not able to re-produce the error, as the code you posted advertise and connects for me. Do you have any log from the central that could hint on why the connection fails? Alternatively, you could enable some logging from the ble_drv.c by toggling the BLE_DRIVER_VERBOSE to 1 to see why the connect might fail on the peripheral side. |
@glennrub, log from the central: Connection Alert: I set BLE_DRIVER_VERBOSE to 1 in file ble_drv.c and compile again. I put the last code in REPL and got log as below: Is enabled status: 0
|
@glennrub, Thanks! |
@linycm , sorry for taking so long. Thanks a lot for your log! Based on the log i do see an unhandled event, 0x23. This translates into BLE_GAP_EVT_DATA_LENGTH_UPDATE_REQUEST. I do not have any way of provoking your error using iOS, so i have made a patch that you could try out: Could you try out the patch and see if this solves the issue? |
We saw the same error in the CircuitPython BLE code. iPhone 7 and later, and modern iPads apparently have extended-length BLE packet capability in the hardware. iPhone 6s and earlier don't. We just say we don't provide this: |
@glennrub , I compiled the new version again. Try again but I cannot connect BLE in iphone7 yet. |
@glennrub I tested it also on my nrf52840DK (PCA10056) board, it freezes when I try to connect to the device and the client device doesn't finish connecting to it (tested with Android, Mac and iOS) |
Hi @glennrub ,
I got a similar issue with #4179 .
I test bluetooth example on my NRF board PCA10040, then got error for cannot apply advertisment data. I put some in REPL as below:
And I got feedback:
Traceback (most recent call last):
File "", in
OSError: Can not apply advertisment data. status: 0x09
Rdgs,
Martin
The text was updated successfully, but these errors were encountered: