hshwalk 发表于 2010-5-30 17:15

终于搞定DB120 openwrt + aircard901自动拨号上网!

终于搞定DB120 openwrt + aircard901自动拨号上网!
DB120路由刷了openwrt 用aircard901上网,早就搞好了,需要手动拨号,今天终于发现不能拨好的原因了,利用openwrt的计划任务搞定了自动拨号,本想写个教程,实在是时间太少,有需要帮忙的PM我吧!最好能替我写个教程造福坛友!

qq3135665 发表于 2010-5-30 17:23

想知道楼主手动拨号的时候设置的电话号码是多少?
是*99*1#吗?

roybin 发表于 2010-5-30 17:30

我的也是手动拨号,计划任务怎么搞?

qinyongning 发表于 2010-5-30 17:34

恭喜恭喜,
我的很早901都出了,

roybin 发表于 2010-5-30 18:35

ABORT   BUSY
ABORT   'NO CARRIER'
ABORT   ERROR
REPORTCONNECT
TIMEOUT 10
""      "AT&F"
OK      "ATE1"
OK      'AT+CGDCONT=1,"IP","$USE_APN"'
SAY   "Calling UMTS/GPRS"
TIMEOUT 30
OK      "ATD*99***1#"
CONNECT ' '

roybin 发表于 2010-5-30 18:36

3g.chat

hshwalk 发表于 2010-5-30 20:57

回复 #2 qq3135665 的帖子

*98*1#
*99***1#
都可以

zmd99 发表于 2010-5-30 21:00

问下楼主aircard901的EDGE速度怎样?下载能达到多少?

hshwalk 发表于 2010-5-30 21:01

回复 #3 roybin 的帖子

首先要建个拨号的执行脚本文件,再在路由器管理页面的计划任务中添加内容 */1 * * * */d 提交就可以了。/d 为执行脚本 ,*/1 表示每1分钟执行一次,脚本要判断是否已连接上互联网,连上则直接跳过拨号,没连上才执行拨号。

hshwalk 发表于 2010-5-30 21:04

回复 #8 zmd99 的帖子

用路由器+901 不能在EDGE网络下拨号,原因未明

zmd99 发表于 2010-5-31 12:29

难道真的用路由只能用3G网络?真这样的话我只有等了。。。。。。。。。

luo92 发表于 2010-5-31 13:37

我已经以160块包邮的价格甩卖了AC901,杯具啊。

wenlh 发表于 2010-5-31 13:50

晕,楼上,这价也特低啊。

wenlh 发表于 2010-5-31 15:22

lz弄个教程吧:') 可以修改下这贴里的http://www.ibmnb.com/thread-948344-1-6.html
把901需要注意的改下:P

antclan 发表于 2010-5-31 16:47

LZ /etc/init.d/不能自动拨号?

wenlh 发表于 2010-6-4 17:09

/etc$ usb_modeswitch -W
usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_busses: Skipping non bus directory devices
usb_os_find_devices: Found 002 on 002
usb_os_find_devices: Found 001 on 002
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 001
Reading config file: /etc/usb_modeswitch.setup

* usb-modeswitch: handle USB devices with multiple modes
* Version 1.1.2alpha (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=0x1ab7
DefaultProduct= 0x2000
TargetVendor=   0x1ab7
TargetProduct=0x5700
TargetClass=    not set

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint= not set
MessageContent="5553424312345678000000000000061b000000030000000000000000000000"
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00

InquireDevice enabled (default)
Success check disabled
System integration mode disabled


Looking for target devices ...
searching devices, found USB ID 1ab7:5700
   found matching vendor ID
   found matching product ID
   adding device
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 1d6b:0002
Found devices in target mode or class (1)
Looking for default devices ...
searching devices, found USB ID 1ab7:5700
   found matching vendor ID
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 1d6b:0002
No devices in default mode or class found. Nothing to do. Bye.

-----------------------------------------------------------------
/etc$ usb_modeswitch -W
usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_busses: Skipping non bus directory devices
usb_os_find_devices: Found 002 on 002
usb_os_find_devices: Found 001 on 002
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 001
Reading config file: /etc/usb_modeswitch.setup

* usb-modeswitch: handle USB devices with multiple modes
* Version 1.1.2alpha (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=0x1ab7
DefaultProduct= 0x2000
TargetVendor=   0x1ab7
TargetProduct=0x2000
TargetClass=    not set

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint= not set
MessageContent="5553424312345678000000000000061b000000030000000000000000000000"
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00

InquireDevice enabled (default)
Success check disabled
System integration mode disabled


Looking for target devices ...
searching devices, found USB ID 1ab7:5700
   found matching vendor ID
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 1d6b:0002
No devices in target mode or class found
Looking for default devices ...
searching devices, found USB ID 1ab7:5700
   found matching vendor ID
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 1d6b:0002
No devices in default mode or class found. Nothing to do. Bye.

------------------------------------------------------------------
/root$ usb_modeswitch -W
usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_busses: Skipping non bus directory devices
usb_os_find_devices: Found 002 on 002
usb_os_find_devices: Found 001 on 002
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 001
Check that you have permissions to write to 002/002 and, if you don't, that you set up hotplug (http://linux-hotplug.sourceforge.net/) correctly.
USB error: could not claim interface 0: Device or resource busy
USB error: could not release intf 0: Invalid argument
Reading config file: /etc/usb_modeswitch.setup

* usb-modeswitch: handle USB devices with multiple modes
* Version 1.1.2alpha (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=0x1ab7
DefaultProduct= 0x5700
TargetVendor=   0x1ab7
TargetProduct=0x2000
TargetClass=    not set

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint= not set
MessageContent="5553424312345678000000000000061b000000030000000000000000000000"
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00

InquireDevice enabled (default)
Success check disabled
System integration mode disabled


Looking for target devices ...
searching devices, found USB ID 1ab7:5700
   found matching vendor ID
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 1d6b:0002
No devices in target mode or class found
Looking for default devices ...
searching devices, found USB ID 1ab7:5700
   found matching vendor ID
   found matching product ID
   adding device
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 1d6b:0002
Found devices in default mode or class (1)
Accessing device 002 on bus 002 ...
Using endpoints 0x04 (out) and 0x85 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
OK, driver found ("usbfs")
OK, driver "usbfs" detached
Could not claim interface (error -16). Skipping device inquiry

USB description data (for identification)
-------------------------
Manufacturer: USB 1.1 Storage Device
   Product: 00000000000123456789
Serial No.: 00000000000123456789
-------------------------
Looking for active driver ...
OK, driver found ("usbfs")
OK, driver "usbfs" detached
Setting up communication with interface 0 ...
Using endpoint 0x04 for message sending ...
Trying to send message 1 to endpoint 0x04 ...
OK, message successfully sent
-> Run lsusb to note any changes. Bye.

3个都试了,应该是最后一个成功吧,可接下来要做什么呢?
在60-usb-serial里面加内容,加过了,没什么用啊
/etc$ rmmod usbserial
rmmod: can't unload 'usbserial': unknown symbol in module, or unknown

parameter
这命令又用不了,和这也是insmod,都错误。

wenlh 发表于 2010-6-4 17:10

^x^ 发错帖了,不好意思啊

hshwalk 发表于 2010-6-6 08:45

回复 #11 zmd99 的帖子

哈哈,也就901这个现象,我试过et128没问题

hshwalk 发表于 2010-6-6 08:47

回复 #12 luo92 的帖子

晕,早知道卖我好了,正想看下双901啥样

hshwalk 发表于 2010-6-6 08:51

回复 #15 antclan 的帖子

关键不在这,主要是路由器带901上电后不能正常切换模式

wenlh 发表于 2010-6-6 09:42

配置图:P

51911 发表于 2010-6-6 10:19

详细配置说明什么时候出啊,期待。有图更好了

hshwalk 发表于 2010-6-6 16:31

鍥炲? #21 wenlh 鐨勫笘瀛

鏃ュ織鏄剧ず宸茬粡鎸傛帴ttyUSB0,浣犺瘯涓嬪懡浠?cho "AT^INDLED锛

hshwalk 发表于 2010-6-6 16:41

晕,cmwap发贴乱码了,编辑了一下提示过5分钟了!
从日志看已挂接ttyUSB0,你试下命令?echo "AT^INDLED" > /dev/ttyUSB0 设备正常的话901灯会闪,?图中用户名和实密码填一下,什么都行,我填net,另外网桥那个勾上,不知道是否必须,我是勾了的。

wenlh 发表于 2010-6-6 21:17

命令�echo "AT^INDLED" > /dev/ttyUSB0 设备901灯还是常亮,用户名和实密码填net网桥也勾了,还是不行。
还有今天杯具的把无限量卡锁定了。。。puk才错了3次就被锁了:')

wenlh 发表于 2010-6-7 09:53

"AT^INDLED=1" > /dev/ttyUSB0:(
执行这命令后灯会闪了
/$ ifup td01
Error setting PIN, check card manually
td01(3g): Failed to set the PIN code.
还是拨不了号

xiefh 发表于 2010-6-7 11:42

检查一下有没有3g信号

wenlh 发表于 2010-6-7 13:10

:D aaaaaaaaaaaaaaaaaa

wenlh 发表于 2010-6-7 13:41

在楼主的教导下成功拨上号了。。。哦也:D

beareyes 发表于 2010-6-7 13:56

技术贴 留名备用
页: [1] 2
查看完整版本: 终于搞定DB120 openwrt + aircard901自动拨号上网!