fwupd/plugins/unifying
Richard Hughes 838d91e4ed Add support for counterpart GUIDs
These are GUIDs that are related to the main device, but should not be used for
quirk matching. For instance, we might want to list the GUIDs for a bootloader
mode, but we don't want to import all the quirks for the bootloader when in the
runtime mode.
2018-08-30 16:55:41 +01:00
..
data Add support for Logitech Unifying devices 2016-12-12 15:36:53 +00:00
fu-plugin-unifying.c trivial: Set the quirks instance on the unifying context object 2018-08-28 18:30:00 +01:00
lu-common.c unifying: Hide raw communication behind the plugin verbose option 2018-08-12 11:00:49 +01:00
lu-common.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
lu-context.c trivial: Set the quirks instance on the unifying context object 2018-08-28 18:30:00 +01:00
lu-context.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
lu-device-bootloader-nordic.c unifying: Allow flashing devices in recovery mode 2018-08-13 08:57:57 +01:00
lu-device-bootloader-nordic.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
lu-device-bootloader-texas.c unifying: Allow flashing devices in recovery mode 2018-08-13 08:57:57 +01:00
lu-device-bootloader-texas.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
lu-device-bootloader.c unifying: Set a display name on the bootloader device 2018-08-10 14:50:43 +01:00
lu-device-bootloader.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
lu-device-peripheral.c unifying: remove duplicate && line 2018-08-22 19:53:28 +01:00
lu-device-peripheral.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
lu-device-runtime.c Add support for counterpart GUIDs 2018-08-30 16:55:41 +01:00
lu-device-runtime.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
lu-device.c trivial: Allow setting the firmware min and max sizes from quirk files 2018-08-28 18:30:00 +01:00
lu-device.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
lu-hidpp-msg.c Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
lu-hidpp-msg.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
lu-hidpp.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
lu-self-test.c Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
meson.build trivial: Allow setting the firmware min and max sizes from quirk files 2018-08-28 18:30:00 +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.quirk trivial: Allow setting the firmware min and max sizes from quirk files 2018-08-28 18:30:00 +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/