当前在线人数13864
首页 - 分类讨论区 - 海外生活 - 手机计划版 -阅读文章
未名交友
[更多]
[更多]
文章阅读:4GC ZTE Pocket WiFi USB Tethering with OpenWRT
[同主题阅读] [版面: 手机计划] [作者:larry] , 2017年02月02日07:04:59
larry
进入未名形象秀
我的博客
[上篇] [下篇] [同主题上篇] [同主题下篇]

发信人: larry (土哥), 信区: CellularPlan
标  题: 4GC ZTE Pocket WiFi USB Tethering with OpenWRT
发信站: BBS 未名空间站 (Thu Feb  2 07:04:59 2017, 美东)

Update (copied from my post in another thread):

I think I found the magic to keep it in 1405 (in OpenWrt 15.05).

1. Install the package  kmod-usb-storage (which will also pull in kmod-scsi-
core by dependency).
2. Remove the package usb-modeswitch.

Power off pocket wifi one last time :-), then everything should be up and
running. It will not go back to 1403 any more even if you reboot the router.
Actually, it always starts in 1225, but the usb-storage driver apparently
contains the proper modeswitch message to send to the device to kick it into
1405 every time.

Don't ask me how I found this out. I just wasted too much time on this than
I should have :-).


--- Obviously, if you are starting fresh, just don't install usb-modeswitch
to begin with, and load kmod-usb-storage instead (all other things being
equal), then everything will "just work" (as far as the device driver is
concerned). You still need to configure the interface.


Original Post:


在 OpenWRT 上折腾无数次之后,终于搞定Pocket WiFi 的 USB Tethering. 测速平均
在 50 - 60 Mbps (下载),上传 5 - 15 Mbps. 信号显示一到两格,偶尔三格。

最关键的一点:install usb_modeswitch package, and make sure your device id
is switched to 19d2:1405, and use kmod-usb-net-cdc-ether, NOT kmod-usb-net-
rndis.

The rest will be in English, as it will be faster for me to describe it this
way.

I am using OpenWRT 15.05 (CC, current stable version).

Extra packages that you need:

1. the usual usb/usb-net kernel modules, see

https://wiki.openwrt.org/doc/howto/usb.tethering

2. usb_modeswitch (this one is not listed on the OpenWRT usb tether wiki
page)

3. DON'T USE kmod-usb-net-rndis. If you installed it already, REMOVE IT!

Once you have all the packages in place, run "lsusb" and make sure your
device is listed as 19d2:1405, NOT 19d2:1225 or 19d2:1403. The modeswitch
package will switch the device from 1225 to either 1403 or 1405.

1403 is the rndis mode, the driver (kmod-usb-net-rndis) will seem to work (
the ethernet device usb0 will be created, and you will be able to connect),
but it is EXTREMELY slow in download. I got about 0.3Mbps, even though the
upload is super fast at around 10Mbps. I googled for a long time (a couple
of days), and couldn't track down any solution (there were reports of
similar bugs in other linux systems). That's why you DON'T want to use the
rndis mode as 19d2:1403.

When I plugged the device into my old Debian laptop, it worked perfectly
fine. It finally dawned on me that I should check the device ID, and I
noticed that it was using the cdc-ether driver instead of the rndis driver.
It took me a while to figure out the right combination, but eventually I got
it working, using kmod-usb-net-cdc-ether on OpenWRT.

If your device shows up as 1403, the only way I can get it to go into the
1405 mode on OpenWRT at this point: power off AND disconnect, then power up
without connecting. After it powers up, then connect to your OpenWRT router,
and modeswitch should now put it in 1405 correctly. Run "lsusb" to double
check, and "dmesg" should show the cdc-ether driver registering the new
ethernet device "usb0".

Set up (use the web interface, much easier than the command line unless you
know linux well) the wan interface to use the usb0 device, then you are good
to go. I won't go into the details of OpenWRT setup here. There are plenty
of online instructions if you don't already know how.





--
※ 修改:·larry 於 Feb 10 22:23:22 2017 修改本文·[FROM: 173.]
※ 来源:·WWW 未名空间站 网址:mitbbs.com 移动:在应用商店搜索未名空间·[FROM: 96.]

[上篇] [下篇] [同主题上篇] [同主题下篇]
[转寄] [转贴] [回信给作者] [修改文章] [删除文章] [同主题阅读] [从此处展开] [返回版面] [快速返回] [收藏] [举报]
 
回复文章
标题:
内 容:

未名交友
将您的链接放在这儿

友情链接


 

Site Map - Contact Us - Terms and Conditions - Privacy Policy

版权所有,未名空间(mitbbs.com),since 1996