Skip to content
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

build arpi-13 and arpi-14 on rpi4 ,the bluetooth can scan and match ,but can' t connected #128

Open
niangegelaile opened this issue Aug 12, 2024 · 4 comments

Comments

@niangegelaile
Copy link

I compiled the arpi-13 and arpi-14 branches and both were successfully installed. But they all have the same problem, Bluetooth can match, but cannot establish a connection. Could you please help solve this problem

@losgobbi
Copy link

Hi!! What is the BT device that you are trying to pair/connect? Is this occurring with other BT devices too? Suggest to capture the logcat buffers around that time, maybe using some BT tags, so we can understand better the issue (past that here too, with proper format so it could be readable). Last month I've compiled arpi, but I didn't use the BT connection.
Regards!

@niangegelaile
Copy link
Author

niangegelaile commented Dec 9, 2024

Hello, thank you for your reply. I tried to connect the Bluetooth headset, but it kept stopping on the Bluetooth search page. I found the error log below

03-03 10:11:12.823 1832 1832 E droid.bluetooth: [0303/101112.823104:ERROR:message_loop_thread.cc(103)] DoInThreadDelayed: message loop is null for thread bt_main_thread(-1), from pc:0x7c3e9c6868
03-03 10:11:12.823 1832 1832 E droid.bluetooth: [0303/101112.823333:ERROR:btu_task.cc(94)] do_in_main_thread: failed from pc:0x7c3e9c6868
03-03 10:11:12.823 1832 1832 E droid.bluetooth: [0303/101112.823465:ERROR:bta_sys_main.cc(171)] bta_sys_sendmsg: do_in_main_thread failed

03-03 10:11:10.343 1832 1832 E droid.bluetooth: [0303/101110.343079:ERROR:hal_version_manager.cc(135)] HalVersionManager No supported HAL version
03-03 10:11:10.589 1832 1832 W ActivityThread: Failed to find provider info for bluetooth_legacy.provider (user not unlocked)

@losgobbi
Copy link

losgobbi commented Dec 13, 2024

Tks for the logs, but they are not very helpful due their meaning (at least for me). Anyway, I was able to test this locally with two different devices....a linux pc and a external headset. Both are not working, so BT state looks broken to me. The behavior is this:

  • the scan is working, I can see my pc and the headset;
  • when the connection starts, it looks like it was able to do part of the "bt handshake" (when used the pc, I can also see the pin code);
  • but in the next stages of the "bt handshake", for some reason, the connection is aborted (?);
  • and after that, the BT device stays as a "saved device" inside settings app;

I was checking the logs like this: logcat -b all | grep -iE "btm|l2|bluetooth", but I don't know yet in which layer the problem is.
I'll further debug this when I've some time.
Tks.

@niangegelaile
Copy link
Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants