Skip to content

quectel: add name to device IDs

fwupd expects device IDs which are unique for each device and its variants. However, Quectel re-uses the same USB VID & PID among different variants such as EG25, EC25, EC20, etc. Moreover, each variant may have subvariants such as EG25GGB, EG25GGC, EG25AFF, EG25AFX, etc.

Add the name of the modem to the device IDs to build more unique device IDs such as USB\VID_2C7C&PID_0125&REV_0001&NAME_EC25GGB.

Example output from mmcli with this patch:

pine64-pinephone:~$ mmcli -m any --firmware-status
  -------------------------------
  Firmware          |     method: fastboot
                    | device ids: USB\VID_2C7C&PID_0125&REV_0318
                    |             USB\VID_2C7C&PID_0125
                    |             USB\VID_2C7C
                    |             USB\VID_2C7C&PID_0125&REV_0318&NAME_EG25GGB
                    |    version: 0.5.7
  -------------------------------
  Fastboot settings | at command: AT+QFASTBOOT

Fixes #502 (closed)

Edited by Dylan Van Assche

Merge request reports