K750 fixes in hidpp-rework branch (was: Re: UPower 0.9.21)
Peter Wu
lekensteyn at gmail.com
Wed Aug 28 10:28:07 PDT 2013
> > A notification should appear within a second of the request.
>
> 17:33:40.645 Send report_id=10 short device=02 DEV2
> type=09 params=0F 01 01 00 17:33:40.676
> Recv report_id=11 long device=02 DEV2
> type=09 params=0F 01 01 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 17:33:41.542 Recv report_id=11 long device=02
> DEV2 type=09 params=10 22 01 11 05 FA 47 4F 4F 44
> 00 00 00 00 00 00 00
>
> Ah I recognize this!
>
> If I'm not mistaken the battery level is 0x22 so should be 34 %
> And the light 0x0111 so 273 lux (which seems correct to me).
Makes sense, please test the updated code in
https://git.lekensteyn.nl/upower/?h=hidpp-rework . There is still a FIXME,
currently I assume that the device is charging whenever there is light, but
this is very likely wrong.
There is also a possibility to add battery voltage, but it is not documented.
22 - battery percentage (34%)
01 11 - lumenosity (273 lux)
05 fa - battery voltage with unknown conversion rules?
47 4f 4f 44 - ASCII "GOOD" (??)
0x672 is known to be 2.67793237653V (from the K750 spec[1]), I do not know
what the use is for that "GOOD" text.
Peter
[1]:
https://lekensteyn.nl/files/logitech/4301_k750_solarkeyboard_lightandbattery.pdf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/devkit-devel/attachments/20130828/3fdc51dd/attachment.pgp>
More information about the devkit-devel
mailing list