AlCalzone / ioBroker.ble

Monitor Bluetooth Low Energy beacons
MIT License
41 stars 15 forks source link

Interference with eq3-Adapter #549

Open DJTechMo opened 3 years ago

DJTechMo commented 3 years ago

Describe the bug
Hi, i am using the ble-adapter to get data from the xiaomi thermometers. Now I am using eq3-Thermostates in my house, that has an own adapter. Unfortunately the ble adapter interferes with this. When the eq3-adapter starts comunicating, the ble-adapter gives "Cannot set property 'mtu' of undefined" in the log and the eq3-adapter stops working as it cannot connect to the thermostate. With the ble-adapter disabled, the eq3-adapter works without any problems.

To Reproduce
Steps to reproduce the behavior: Not so easy, as you need the thermostates, to reproduce the error:

  1. Activate the ble-adapter
  2. Activate the eq3-adapter
  3. See error

Expected behavior
The ble-adapter and eq3-adapter should coexist and both work without any problem.

Screenshots & Logfiles
Cannot set property 'mtu' of undefined

Versions:

Additional context
I think both adapter works with the bluetooth of the system. Does BLE register any work on the bluetooth?

The eq3-adapter needs a disconnected eq3 thermostate before starting. Could be that the ble-adapter tries to establish a conection with the eq3-thermostate and that causes the eq3-adapater to not work because the eq3-thermostate is already connected.

If you need further information, let me know. Thanks in advance.

AlCalzone commented 3 years ago

I fear there is not much I can do aside from catching the error and not crashing. That error comes from the library @abandonware/noble which the adapter uses.

DJTechMo commented 3 years ago

I fear there is not much I can do aside from catching the error and not crashing. That error comes from the library @abandonware/noble which the adapter uses.

Okay, thank you for your fast response.

Why is it called, when the other adapter calls the py-script to read from the thermostate? Is there a chance that it does not react on that call?

AlCalzone commented 3 years ago

I think the main problem is that you have two adapters fighting for the Bluetooth hardware. It might be solved by adding another Bluetooth stick and configuring the adapters to use different ones.

DJTechMo commented 3 years ago

@AlCalzone

Is it possible to use the ble-adpater for a device that does not advertise on its own, but you have to "ask" him?

AlCalzone commented 3 years ago

Not yet. I've started a bit but currently the zwave2 adapter eats up all my time.