-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Unable to establish ble connection between devices #6347
Comments
I am seeing the same behavior. RPi4B with the provided TE2 image , DUT is a RPi3B with Ubuntu 20.04 (branch test_event_2.2). Application being tested is the provided lighting example app. |
I am facing same problem with with master branch RPi4B running "chip-all-clusters-app" under the folder out/debug/standalone as well. |
Are you able to connect the BLE device using
|
After scanning through the code I found the error happening when invoke the function bluez_device1_call_connect( ) :
call to bluez_device1_call_connect( ) translates to g_dbus_proxy_call( ) with the method-name "connect" |
I had faced this issue with bluetoothctl in the past also. connect is not smooth. Connect happens after mulitple retries but happens for sure. It usually takes less than < 10sec as per my observation. |
Is there any smooth way to address this connect issue. Many fellow members are also facing similar kind of issues. |
If you face the same issues with |
Let me buy and test with additional USB dongle (nRF 52840) |
I can confirm that this fails for me. RPi4B to RPI3B. |
Two things which you can also try are:
|
Another thing to try is disabling the WiFi of the RPi4 |
I have verified by registering profile @ Raspbeerypi and connecting from Laptop and consistently i have observed that it takes less than 10 seconds to establish the ble connection everytime. |
yes, i have increased kConnectTimeoutMs upto 20 seconds @ both laptop and RPi. But the connection still didn't go through. I find that this parameter has no bearing with the issue which I am currently facing.
and logs @ RPi running lighting-app is as below:
Please note that in the above log, as soon as controller prints
|
i stand corrected about this statement, it was happening so to me earlier because of profile registration. With proper profile registration, i am not facing this issue and everytime connect happens instantly within a second or two. |
I have tried this option as well, but made no difference to the issue. |
are you registering the profile properly in one of the device before initiating connect from the other device ? |
original issue is no more happening after upgrading the ubuntu version and hence closing this issue. |
@nageshshamnur Which ubuntu version have you updated ?I found similar problems. |
After verification, we need to upgrade to version 21.04 Ubuntu. Otherwise, the BlueZ version is too low. I think we need to update the doc. |
|
Problem
expected behavior: Connect command in ChipDeviceController running on laptop should be able to connect to Lighting App running on RPi4B
actual behavior: Connect command in ChipDeviceController is timeout and unable to connect to Lighting App running on RPi4B.
system configuration:
Topology: Intel Corei7 laptop running Ubuntu 20.04.2 LTS <-------------------> RPi4B running Ubuntu 20.04.2 LTS
Branch: Test_event_2.2
Note: Both laptop and RPi using the default bluetooth radio (without any dongles). hciconfig on both devices is having hci0.
steps to reproduce:
RPi4B running Lighting App as suggested in the page https://github.com/project-chip/connectedhomeip/tree/master/examples/lighting-app/linux Logs as below:
Running ChipDeviceController on Laptop but ble connection is not established due to Timeout. Logs as bdlow:
Proposed Solution
NA
The text was updated successfully, but these errors were encountered: