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

eQ3 - Connection failed very often #26

Closed
JacekKac opened this issue Oct 3, 2020 · 10 comments
Closed

eQ3 - Connection failed very often #26

JacekKac opened this issue Oct 3, 2020 · 10 comments

Comments

@JacekKac
Copy link

JacekKac commented Oct 3, 2020

raspberry pi 4b eQ-3 CC-RT-BLE.

2 eQ-3 devices, paired and working, but frequently i get Connection failed (25% of tries)

1/ Connenction Failed, btmon log during connection:

HCI Event: Command Complete (0x0e) plen 14 #425 [hci0] 172.457975
LE Read Remote Used Features (0x08|0x0016) ncmd 1
Status: Success (0x00)
00 00 00 00 00 00 00 00 00 00 ..........
< HCI Command: LE Add Device To White List (0x08|0x0011) plen 7 #426 [hci0] 172.458043
Address type: Public (0x00)
Address: 00:00:00:00:00:00 (OUI 00-00-00)

HCI Event: Command Complete (0x0e) plen 4 #427 [hci0] 172.458441
LE Add Device To White List (0x08|0x0011) ncmd 1
Status: Repeated Attempts (0x17)
HCI Event: LE Meta Event (0x3e) plen 12 #428 [hci0] 172.766608
LE Read Remote Used Features (0x04)
Status: Connection Failed to be Established (0x3e)
Handle: 64
Features: 0x3f 0x00 0x00 0x08 0x00 0x00 0x00 0x00
LE Encryption
Connection Parameter Request Procedure
Extended Reject Indication
Slave-initiated Features Exchange
LE Ping
LE Data Packet Length Extension
Unknown features (0x0000000008000000)
HCI Event: Disconnect Complete (0x05) plen 4 #429 [hci0] 172.767179
Status: Success (0x00)
Handle: 64
Reason: Connection Failed to be Established (0x3e)
@ MGMT Event: Device Disconnected (0x000c) plen 8 {0x0002} [hci0] 172.804587
LE Address: 00:1A:22:11:80:74 (eQ-3 Entwicklung GmbH)
Reason: Unspecified (0x00)
@ MGMT Event: Device Disconnected (0x000c) plen 8 {0x0001} [hci0] 172.804587
LE Address: 00:1A:22:11:80:74 (eQ-3 Entwicklung GmbH)
Reason: Unspecified (0x00)

2/ Second problem - script sometimes is giving an unexpected result:

pi@raspberrypi:~ $ /opt/eQ-3-radiator-thermostat/eq3.exp 00:1A:22:11:80:74 json
^[[6~can't read "d": no such variable
while executing
"return $d"
(procedure "hexToDecimal" line 3)
invoked from within
"hexToDecimal [lindex $raw_timer [expr 2 * $event + 1 ]]"
(procedure "readTimer" line 13)
invoked from within
"readTimer $day"
(procedure "readTimers" line 5)
invoked from within
"readTimers"
(procedure "toJson" line 14)
invoked from within
"toJson"
("^json$" arm line 2)
invoked from within
"switch -regexp $c {
^sync$ {
init $INIT(mode)
}
^comforteco.* {
checkArgs $c 2 "comforteco" {^comforteco [0-9]{1,2}.?[05]? [0..."
(procedure "doCommand" line 10)
invoked from within
"doCommand"
(file "/opt/eQ-3-radiator-thermostat/eq3.exp" line 1157)

is it normal? maybe someone is experiencing the same issue ?

@pako-github
Copy link

I am experiencing similar problem. I even cannot connect to one of my thermostats anymore although it is no problem to connect it with the phone app. Tried to increase the timeout time which didn't work. But if I do that the debug log says that the connection was refused .

@janvda
Copy link

janvda commented Oct 12, 2020

I remember that raspberry pi Bluetooth range is not huge. So it might be a bluetooth range issue.
Are you getting the same issue when putting the raspberry pi really close to the eQ3 device ?

@pako-github
Copy link

Yes, I can exclude range issues. It worked pretty for a certain amount of time and then it stopped. Hence it could also be a problem with my Linux. Debugging Bluetooth is not always easy...

@whissperr
Copy link

Same connection issues with Raspberry pi 4b and eQ-3 CC-RT-BLE starting from September. Before had no problems. All devices are permanently fixed, so can exclude bluetooth range issue.

@JsBergbau
Copy link

Please have a look at abandonware/noble#99 and RPi-Distro/bluez-firmware#6
For me doing it manually with gatttool from the RPi4 it worked all the time (about 5 times).
But still the RPi4 has really a lot of problems with bluetooth, see also RPi-Distro/firmware-nonfree#8

@whissperr
Copy link

Please have a look at abandonware/noble#99 and RPi-Distro/bluez-firmware#6
For me doing it manually with gatttool from the RPi4 it worked all the time (about 5 times).
But still the RPi4 has really a lot of problems with bluetooth, see also RPi-Distro/firmware-nonfree#8

Thank you very much! Looks like updating firmware as suggested worked in my case. Connection is more stable than before.

@JacekKac
Copy link
Author

JacekKac commented Dec 6, 2020

Please have a look at abandonware/noble#99 and RPi-Distro/bluez-firmware#6
For me doing it manually with gatttool from the RPi4 it worked all the time (about 5 times).
But still the RPi4 has really a lot of problems with bluetooth, see also RPi-Distro/firmware-nonfree#8

Thank you very much! Looks like updating firmware as suggested worked in my case. Connection is more stable than before.

Hi, can you point exact steps how to update the firmware? there are 3 different links and a lot of posts, which way worked for you ?

@whissperr
Copy link

Please have a look at abandonware/noble#99 and RPi-Distro/bluez-firmware#6
For me doing it manually with gatttool from the RPi4 it worked all the time (about 5 times).
But still the RPi4 has really a lot of problems with bluetooth, see also RPi-Distro/firmware-nonfree#8

Thank you very much! Looks like updating firmware as suggested worked in my case. Connection is more stable than before.

Hi, can you point exact steps how to update the firmware? there are 3 different links and a lot of posts, which way worked for you ?

Sorry, unfortunately after some days doing tests, can not confirm that solution is really working for me. You can try on your system, I've replaced original firmware with the one from this post: RPi-Distro/bluez-firmware#6 (comment).

@JsBergbau
Copy link

JsBergbau commented Dec 8, 2020

I can recommend this bluetooth dongle https://www.aliexpress.com/item/32696756077.html for using with Raspberry PI4.
Quite cheap but working great for me. At least range is similar or higher than built in from Raspberry PI 3B.

To use this interface, you have to modify the script. Details see here #30

@JacekKac
Copy link
Author

JacekKac commented Dec 12, 2020

@whissperr worked for me. BT problems are gone

https://www.raspberrypi.org/forums/viewtopic.php?t=292113&p=1766154

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

5 participants