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

Bluetooth stops working on multiple pi's after some time, reset fails #1158

Closed
wtangofoxtrot opened this issue Apr 24, 2022 · 15 comments
Closed
Labels

Comments

@wtangofoxtrot
Copy link

Seeing this issue across my pi3/4s in the house, bluetooth stops working by itself and room-assistant is unable to reset it. The syslogs show the following message in a loop:

Apr 24 19:21:30 pi-downstairs kernel: [163895.869538] Bluetooth: hci0: command 0x1001 tx timeout
Apr 24 19:21:32 pi-downstairs kernel: [163897.949577] Bluetooth: hci0: command 0x1009 tx timeout
Apr 24 19:21:41 pi-downstairs room-assistant[664]: 24/04/2022, 19:21:41 - warn - BluetoothService: Did not detect any low energy advertisements in a while, resetting
Apr 24 19:21:43 pi-downstairs kernel: [163908.749672] Bluetooth: hci0: command 0x1003 tx timeout
Apr 24 19:21:44 pi-downstairs room-assistant[664]: 24/04/2022, 19:21:44 - error - undefined: Command failed: hciconfig hci0 reset
Apr 24 19:21:45 pi-downstairs kernel: [163910.829697] Bluetooth: hci0: command 0x1001 tx timeout
Apr 24 19:21:47 pi-downstairs kernel: [163912.909725] Bluetooth: hci0: command 0x1009 tx timeout
Apr 24 19:21:56 pi-downstairs room-assistant[664]: 24/04/2022, 19:21:56 - warn - BluetoothService: Did not detect any low energy advertisements in a while, resetting
Apr 24 19:21:58 pi-downstairs kernel: [163923.789823] Bluetooth: hci0: command 0x1003 tx timeout
Apr 24 19:21:59 pi-downstairs room-assistant[664]: 24/04/2022, 19:21:59 - error - undefined: Command failed: hciconfig hci0 reset
Apr 24 19:22:00 pi-downstairs kernel: [163925.869834] Bluetooth: hci0: command 0x1001 tx timeout
Apr 24 19:22:02 pi-downstairs kernel: [163927.949823] Bluetooth: hci0: command 0x1009 tx timeout

Only fix I've used so far is a cron task to reboot these pi's every night to keep them working.

@bachoo786
Copy link

@wtangofoxtrot I have the same issue until I restart my pi.

@mKeRix can you please look into this? Thanks

@etmomoabc
Copy link

I have the same problem, too bad I use the room assistant to track cars in and out of the garage!

@github-actions
Copy link

github-actions bot commented Sep 6, 2022

There hasn't been any activity on this issue recently. In an effort to provide a better overview of current issues we automatically clean some of the old ones. Many of them may already be resolved in newer versions of room-assistant.
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Sep 6, 2022
@wtangofoxtrot
Copy link
Author

This issue still keeps happening across all my pi's, ive tried to setup a cronjob to reboot them every day but that is still not sufficient as it might start a few hours after that. rebooting is the only fix afaik

@github-actions github-actions bot removed the stale label Sep 14, 2022
@wtangofoxtrot
Copy link
Author

wtangofoxtrot commented Nov 6, 2022

Looks like hci0 just disappears after some time on all my p3/4s (Not seeing this on my Pi0 though)

example when a pi stops working:

pi@pi-downstairs:~ $ tail -f /var/log/syslog
Nov  6 10:39:17 pi-downstairs room-assistant[698257]: 11/6/2022, 10:39:17 AM - warn - BluetoothService: Did not detect any low energy advertisements in a while, resetting
Nov  6 10:39:19 pi-downstairs kernel: [2654990.953723] Bluetooth: hci0: command 0x1003 tx timeout
Nov  6 10:39:20 pi-downstairs room-assistant[698257]: 11/6/2022, 10:39:20 AM - error - undefined: Command failed: hciconfig hci0 reset
Nov  6 10:39:21 pi-downstairs kernel: [2654992.969736] Bluetooth: hci0: command 0x1001 tx timeout
Nov  6 10:39:23 pi-downstairs kernel: [2654994.985756] Bluetooth: hci0: command 0x1009 tx timeout
pi@pi-downstairs:~ $ hcitool dev
Devices:
pi@pi-downstairs:~ $ hciconfig -a
hci0:	Type: Primary  Bus: UART
	BD Address: <some-addr>  ACL MTU: 1021:8  SCO MTU: 64:1
	DOWN
	RX bytes:-1716560377 acl:8915 sco:0 events:70177779 errors:0
	TX bytes:12229355 acl:14701 sco:0 commands:859254 errors:0
	Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
	Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
	Link policy: RSWITCH SNIFF
	Link mode: SLAVE ACCEPT

Upon resetting the pi

pi@pi-downstairs:~ $ hcitool dev
Devices:
	hci0	<some-addr>
pi@pi-downstairs:~ $  hciconfig -a
hci0:	Type: Primary  Bus: UART
	BD Address: <some-addr>  ACL MTU: 1021:8  SCO MTU: 64:1
	UP RUNNING
	RX bytes:15124 acl:33 sco:0 events:677 errors:0
	TX bytes:8224 acl:28 sco:0 commands:385 errors:0
	Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
	Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
	Link policy: RSWITCH SNIFF
	Link mode: SLAVE ACCEPT
	Name: 'pi-downstairs'
	Class: 0x2c0000
	Service Classes: Rendering, Capturing, Audio
	Device Class: Miscellaneous,
	HCI Version: 5.0 (0x9)  Revision: 0x156
	LMP Version: 5.0 (0x9)  Subversion: 0x6119
	Manufacturer: Cypress Semiconductor (305)

@github-actions
Copy link

github-actions bot commented Feb 5, 2023

There hasn't been any activity on this issue recently. In an effort to provide a better overview of current issues we automatically clean some of the old ones. Many of them may already be resolved in newer versions of room-assistant.
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Feb 5, 2023
@wtangofoxtrot
Copy link
Author

No new release in a yr so definitely not a stale issue, shooo bot !

@github-actions github-actions bot removed the stale label Feb 6, 2023
@vistalba
Copy link

vistalba commented Feb 6, 2023

Same issue on a Pi3 and Pi4. Not happening on pi zero w 2.

@mk-au
Copy link

mk-au commented Mar 5, 2023

Seeing this too on a Pi Zero W with Bullseye 5.15 kernel. Bluetooth stops connecting after about 24 hours and can only be fixed with a reboot. Only recently started happening.

@github-actions
Copy link

github-actions bot commented Jun 4, 2023

There hasn't been any activity on this issue recently. In an effort to provide a better overview of current issues we automatically clean some of the old ones. Many of them may already be resolved in newer versions of room-assistant.
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Jun 4, 2023
@wtangofoxtrot
Copy link
Author

still an issue (hate this bot..)

@github-actions github-actions bot removed the stale label Jun 8, 2023
@github-actions
Copy link

github-actions bot commented Sep 7, 2023

There hasn't been any activity on this issue recently. In an effort to provide a better overview of current issues we automatically clean some of the old ones. Many of them may already be resolved in newer versions of room-assistant.
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Sep 7, 2023
@vistalba
Copy link

vistalba commented Sep 7, 2023

Still having this issues.

@github-actions github-actions bot removed the stale label Sep 8, 2023
@marsp88
Copy link

marsp88 commented Dec 7, 2023

Similar issue here. After a while it stops detecting and only a restarts helps.
But it seems related to hcitool:

Command failed: hcitool -i hci0 cc "xx:xx:xx:xx:xx" && hcitool -i hci0 rssi "xx:xx:xx:xx:xx:xx"
Can't create connection: Input/output error
Get connection info failed: No such file or directory

Copy link

github-actions bot commented Mar 6, 2024

There hasn't been any activity on this issue recently. In an effort to provide a better overview of current issues we automatically clean some of the old ones. Many of them may already be resolved in newer versions of room-assistant.
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

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

No branches or pull requests

6 participants