Usb-mode.json Github repository to mantain an updated file

I didn't find on a page reguarding the usb-mode.json file used by usb-modeswitch package. This file contains the info needed to trigger the mode switching for USB devices with multiple "modes".

For example it doesn't contain the info for this USB dongle.

I added manually the following and restarted the usbmodeswitch service:

             "0e8d:2870": {
                        "*": {
                                "t_vendor": 3725,
                                "t_product": [ 30226 ],
                                "mode": "StandardEject",
                                "msg": [  ]

This way it is beeing recognized as a WIFI dongle.

Running on: OpenWrt 19.07.9 r11405-2a3558b0de / LuCI openwrt-19.07 branch git-22.052.50988-1b6c126

I don't think the usbmode package is mirrored on the OpenWrt github account. The repo is here:

But there is no usb-mode.json file. This file is autogenerated by the script. Most of the input comes from usb-modeswitch data. See;a=blob; and

It's possible to add OpenWrt changes to the input as files in

But probably better to just submit new data to the usb-modeswitch project for longterm maintenance and common open source development. See

1 Like

wow I have to admit that wasn't aware of the base project that isn't limited to openwrt. Thank you.

One last thing: I found out that the json file on 20.02 does have the config for the device. It's just the 19.07 version that doesn't contain it. :man_shrugging:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.