fwupd/plugins/unifying
Richard Hughes a785a1c2f6 Remove the confusing ALLOW_OFFLINE and ALLOW_ONLINE flags
Over the months the original meaning of ALLOW_OFFLINE and ALLOW_ONLINE have be
lost, and there is now a confusing mixture of uses in the source tree. With this
commit we make it clear the UPDATABLE flag is used to specify when the device is
updatable (e.g. from the desktop live session, or from the systemd offline
updates mode, or both) and the NEEDS_REBOOT flag lets us know when the update
is actually going to be done.

For instance, a UEFI UpdateCapsule can be *scheduled* from either the desktop
or from the update mode (but the latter would be a bit weird), but does require
a reboot. Some devices might only be updatable outside the live session, for
instance a hard drive update or a GPU update -- there's just too much going on
with a live session and we want to tightly control what's running during the
firmware flash.

This also means we don't have to "retry" the update when scheduling an update
that really can be scheduled whenever, but just requires a reboot to apply.
2017-08-26 18:09:21 +01:00
..
data Add support for Logitech Unifying devices 2016-12-12 15:36:53 +00:00
fu-plugin-unifying.c Remove the confusing ALLOW_OFFLINE and ALLOW_ONLINE flags 2017-08-26 18:09:21 +01:00
lu-common.c unifying: Ignore spaces in the version prefix 2017-05-03 10:24:59 +01:00
lu-common.h unifying: Add support for DFU features 2017-05-02 21:30:50 +01:00
lu-context.c unifying: Use the new bootloader PIDs for pico receivers 2017-08-14 11:14:14 +01:00
lu-context.h unifying: Add support for DFU features 2017-05-02 21:30:50 +01:00
lu-device-bootloader-nordic.c unifying: Make sure the percentage completion goes from 0% to 100% 2017-07-24 12:02:14 +01:00
lu-device-bootloader-nordic.h unifying: Refactor the plugin now we have some more information about the hardware 2017-04-12 17:54:50 +01:00
lu-device-bootloader-texas.c unifying: Make sure the percentage completion goes from 0% to 100% 2017-07-24 12:02:14 +01:00
lu-device-bootloader-texas.h unifying: Refactor the plugin now we have some more information about the hardware 2017-04-12 17:54:50 +01:00
lu-device-bootloader.c unifying: Make sure the percentage completion goes from 0% to 100% 2017-07-24 12:02:14 +01:00
lu-device-bootloader.h unifying: Make sure the percentage completion goes from 0% to 100% 2017-07-24 12:02:14 +01:00
lu-device-peripheral.c plugins/unifying: Fix minor const-correctness issue 2017-08-16 07:24:25 +01:00
lu-device-peripheral.h unifying: Add support for DFU features 2017-05-02 21:30:50 +01:00
lu-device-runtime.c trivial: Remove or downgrade some superfluous warnings 2017-07-21 13:38:27 +01:00
lu-device-runtime.h unifying: Refactor the plugin now we have some more information about the hardware 2017-04-12 17:54:50 +01:00
lu-device.c unifying: Don't log a warning when an unknown report is parsed 2017-07-07 13:42:45 +01:00
lu-device.h unifying: Use the new bootloader PIDs for pico receivers 2017-08-14 11:14:14 +01:00
lu-hidpp-msg.c trivial: fix various spelling errors 2017-07-17 13:07:05 -05:00
lu-hidpp-msg.h unifying: Split up the HID++2.0 and HID++1.0 functionality 2017-07-04 13:19:09 +01:00
lu-hidpp.h unifying: Split up the HID++2.0 and HID++1.0 functionality 2017-07-04 13:19:09 +01:00
lu-self-test.c unifying: Ignore spaces in the version prefix 2017-05-03 10:24:59 +01:00
lu-tool.c trivial: Ensure that all the C source files include 'config.h' 2017-08-23 18:26:29 +01:00
meson.build unifying: Split up the HID++2.0 and HID++1.0 functionality 2017-07-04 13:19:09 +01:00
README.md unifying: Refactor the plugin now we have some more information about the hardware 2017-04-12 17:54:50 +01:00

Unifying Support

Introduction

This plugin can flash the firmware on Logitech Unifying dongles, both the Nordic (U0007) device and the Texas Instruments (U0008) version.

This plugin will not work with the different "Nano" dongle (U0010) as it does not use the Unifying protocol.

Some bootloader protocol infomation was taken from the Mousejack[1] project, specifically logitech-usb-restore.py and unifying.py. Other documentation was supplied by Logitech.

Additional constants were taken from the Solaar[2] project.

Design Notes

When a dongle is detected in bootloader mode we detach the hidraw driver from the kernel and use raw control transfers. This ensures that we don't accidentally corrupt the uploading firmware. For application firmware we use hidraw which means the hardware keeps working while probing, and also allows us to detect paired devices.

Verification

If you do not have Unifying hardware you can emulate writing firmware using:

unifying-tool write file.hex -v --emulate=bootloader-nordic

This can also be used to produce protocol data to the command line to compare against USB dumps. This plugin should interact with the hardware exactly like the Logitech-provided flashing tool, although only a few devices have been tested.

[1] https://www.mousejack.com/ [2] https://pwr.github.io/Solaar/