Install usb_modeswitch openwrt




















There is an effort underway to support this and other Huawei modems which provide the respective ports. Post by zxdavb » Wed Feb 01, pm Then I accept defeat! Thanks for the valuable input. Anyway, here is my latest version of the script Confirm: ifconfig grep 3g-wwan -A 9 after a few secs Confirm: ping 8. I've got success with E I found we have to make device switched to "12d" instead of "12d" with the driver.

I posted my how-to to OpenWRT forum. Thank you! If you are truly out of options, you can use cat. Show pagesource Old revisions Backlinks Back to top. Please refer to your device documentation to find out which USB driver version your device needs.

There is a more complete USB Drives page. Start with refreshing the list of available packages opkg update. Obtain a list of already installed USB packages: opkg list-installed grep usb Result: kmod-usb-core - 4. Install the USB core package all USB versions , if the previous list-output does not list it: opkg install kmod-usb-core insmod usbcore.

Install the USB storage package all USB versions , if the previous list-output does not list it: opkg install kmod-usb-storage. After modeswitching, the usb device will stay with the same vendor id and product id, but with target device class number of 7.

After modeswitching, the usb device will switch to decimal vendor id and product id of , which you can convert to hexadecimal notation of D You need decimal to hexadecimal converter such as your computer's calculator in 'programmer's mode'.

For diagnostics purpose, you can create usb-mode-custom. Converting the standard usb-modeswitch file to json format can be done in a simple way. The following section will go into details on how to do this for the ancient E A previously configured serial modem, that is unknown to the kernel can be manually associated with it's driver by assigning it the manufacturer and product id as shown by lsusb as follows: e.

If you encounter problems with an undetected Huawei E, you can try the following - this resets the E to its factory defaults, so it can again be handled by the new JSON-based modeswitch. Alternatively, you can also use option GSM driver on your dongle. Option driver is more reliable, as it can distinguish between serial port and storage port.

Adding the above to hotplug instead of rc. If your modem's switched product id is , the above will work. Show pagesource Old revisions Backlinks Back to top. First install required packages: comgt manpage for comgt. Appropriate host controller interface for your USB hardware precompiled images will most likely already contain the correct one. Support for serial communication; needed to send control commands to the dongle and receive its responses.

If you are doing an offline installation, you might need some of these packages handy kmod-usb-core , usually already in the default install. First install needed packages: opkg update opkg install comgt kmod-usb-serial kmod-usb-serial-option kmod-usb-serial-wwan usb-modeswitch Now plug your USB Dongle to the USB port and restart the router.

Now we need to check if the default chatscript does work with your 3g provider or not. Just type on console 'ifup wan' Now check dmesg logread for successful connect: pppd 2. I have butchered the script a bit:!

You can use many usb 3G dongles easily by using an active USB hub. Connect all 3g dongles and start. You need to configure interfaces. Now you have both interfaces configured and they should work. You can use both interfaces as a failover. Here is basic configuration to get the connection working.



0コメント

  • 1000 / 1000