andyvorld / LGSTrayBattery

A tray app used to track battery levels of wireless Logitech mouse.
GNU General Public License v3.0
369 stars 30 forks source link

Problems with Wireless Keyboard K270 #110

Open Danstiv opened 6 months ago

Danstiv commented 6 months ago

Hello @andyvorld

The application does not work correctly with the Logitech Wireless Keyboard K270.

  1. To detect the keyboard, i must hold down a key on the keyboard and hold it for several seconds immediately after starting the program, otherwise the keyboard is not detected.

  2. Even if the keyboard was detected, the battery status is no longer updated, the API returns last update, which contains the time of the first detection. This field has not changed its value even after two days.

Is it possible to fix these problems? I am ready to provide additional information and perform testing if necessary. Thanks in advance.

Danstiv commented 3 weeks ago

Hello @andyvorld!

My experiments have shown that the keyboard does not respond well to pings, which is likely why the program discards the device.

Can you change that initial detection logic?

It might be worth using a solution like this.

Also it seems that the last update time only changes when the charge level changes, I think it would be better if the last update time is updated when any successful response is received.

I hope someone can do this since I don't know C# well enough