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

Communication problem with the DPG1C module #7

Closed
darkkatarsis opened this issue Sep 3, 2020 · 4 comments
Closed

Communication problem with the DPG1C module #7

darkkatarsis opened this issue Sep 3, 2020 · 4 comments

Comments

@darkkatarsis
Copy link

darkkatarsis commented Sep 3, 2020

The version I will describe is the one from your repository. I run the applications in MQTT mode on Raspberry Pi Zero W. I’m only subscribing topic with the change of position. After connection, the DPG1C controller works smoothly until there is a 2-3 hour break between sending the last position change. After this time, the controller stops responding to commands. And a connection error pops up.

screen

Notes to the screen:
  • disconnecting and reconnecting the bluetooth on Raspberry Pi Zero does not help
  • shutting down deskbluez app and starting it does not help either

Which helps:
Connecting to a desk with another application, e.g. dedicated to MacOS - “Desk Remote Control”. The control of the desk is still blocked unless you click “save favorite position”. Saving the position removes the desk control lock, and I can re-pair and control my desk again using deskbluez.

film

General comments:

  • Disconnecting and connecting the desk every 2h-3h without changing position - does not help
  • Downloading the current position and subscribing after 2h-3h to overwrite - does not help
  • It is possible that a change of position every 2-3h by +1cm/-1cm keeps the connection (unfortunately; as a result, the desk vibrates every 2-3h), and this is rather a wrong solution.
  • There may be a Bluetooth command that sustains communication/authentication, but I am not aware of any.
@darkkatarsis
Copy link
Author

@alex20465 Just like you asked, I've set up a new issue. The description is understandable enough? Can I still help?

@michalzadkowski
Copy link

Same here. Any help would be appreciated.

@maxime1992
Copy link

@darkkatarsis I believe I'm trying to achieve exactly what you've done.
Creating a tiny server which will handle the connection between the desk in bluetooth and with home assistant using MQTT.

Have you had any luck on this path since? I've been banging my head on this...

@darkkatarsis
Copy link
Author

Unfortunately no, the library responsible for the bt connection is unstable - at least for DPG1C. Ultimately, I use Desk Remote Control from app store (I added a few keyboard shortcuts). Worth to know that shortcuts can be automated later, for example using Automator from apple and ssh from HA.

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

4 participants