-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
nRF52840-PCA10056/59: Cannot bring up HCI0 when using HCI_USB sample #11016
Comments
hcitool commands like lescan work, but without a correct BD addr, using the dongle for IPSP networking fails. |
This is probably BlueZ not knowing how to work without a public address. I will assign this to people with BlueZ knowledge |
BlueZ knows how to work without a public address. bluetoothd will auto-generate a static random address and keep using that. You do need a fairly recent kernel though. Note that all the legacy commands like hcitool and hciconfig are completely oblivious to LE, which is why e.g. hciconfig only knows about the public address and has no identity address concept (which with these controllers would be a static random address) |
Anyway, if you think there's some BlueZ bug I think that'd be best reported to the linux-bluetooth mailing list instead of Zephyr github. |
@mike-scott you said that "Using the dongle for IPSP fails". I assume that is not the case with |
@carlescufi yes, running
|
I updated the title and description of the problem to be more accurate. This was tested on kernel: 4.18.16 |
Update: Now with hci0 up, I try joining nodes to 6lowpan but am unable to ping them once connected. Still debugging. |
Can this be related? Issue #11232 |
Could you check the bug with the fixes for Control endpoint? Basically before you were not able to send more then 64 bytes to the control endpoint which is HCI commands are using. PR #11713 |
@mike-scott any update on this? |
I experienced the same issue with hciconfig. Instead I needed to bring up the controller with btmgmt per Nordic's documentation.
After this, hciconfig correctly showed the device as up. |
@hasslerb hciconfig is a legacy tool that hasn't been updated (and wont be updated) to deal e.g. with single-mode devices without a public address. That said, if you have an anywhere recent bluetoothd running it should take care of the same thing that you just did manually using btmgmt. |
I'll assume this as resolved since there's been no update from the reporter. Please re-open if the issue still persists. |
Experiencing the same issue with hci_usb using a nrf52840 dongle and zephyr 2.2.99 hci_usb was just a quick test, aiming to use hci_uart just wanted to report the issue is still present. Unlike OP I also experience the same with hci_uart and hci_usb. Will try updating bluez. |
The same issue with latest zephyr [git bc6f11b 2020-05-21 10:30:18 +0800] and bluez 5.49 on openwrt 18.06 Solved by:
|
I recently had the same problem on a Raspberry Pi 3, BlueZ 5.50 and a nRF52840 dongle running the HSI_USB sample. When I started the Bluetooth deamon, I saw that it complained about missing crypto implementations. Then, I came across this article, recompiled the Kernel with the specified crypto modules and now everything works fine without setting anything manually. |
The text was updated successfully, but these errors were encountered: