怎么解决CDMA pcmcia卡拨号总超时的问题?

CPU/显卡/打印机/USB设备等硬件问题
abacan
帖子: 29
注册时间: 2006-09-10 11:01

怎么解决CDMA pcmcia卡拨号总超时的问题?

#1

帖子 abacan » 2006-09-10 11:10

中兴MC312+,拨号成功过一两次,其他情况下ATDT后都会提示超时。

wvdialconf信息如下
Scanning your serial ports for a modem.

ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1
ttyS2<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS2<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS2<*1>: ATQ0 V1 E1 -- OK
ttyS2<*1>: ATQ0 V1 E1 Z -- OK
ttyS2<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyS2<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyS2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyS2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyS2<*1>: Modem Identifier: ATI -- ERROR
ttyS2<*1>: Max speed is 115200; that should be safe.
ttyS2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
Modem Port Scan<*1>: S4 S5 S6 S7 S8 S9 S10
Modem Port Scan<*1>: S11 S12 S13 S14 S15 S16 S17 S18
Modem Port Scan<*1>: S19 S20 S21 S22 S23 S24 S25 S26
Modem Port Scan<*1>: S27 S28 S29 S30 S31 S32 S33 S34
Modem Port Scan<*1>: S35 S36 S37 S38 S39 S40 S41 S42
Modem Port Scan<*1>: S43 S44 S45 S46 S47

Found a modem on /dev/ttyS2.
Modem configuration written to /etc/wvdial.conf.

*** WARNING! Line "/dev/ttyS2"
in /etc/ppp/options may conflict with wvdial!


*** WARNING! Line "115200"
in /etc/ppp/options may conflict with wvdial!

ttyS2<Info>: Speed 115200; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

wvdial.conf设置如下

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
ISDN = 0
Check Carrier = no
New PPPD = yes
Phone = #777
Modem = /dev/ttyS2
Username = CARD
Password = CARD
Baud = 115200

wvdial执行后显示信息
--> WvDial: Internet dialer version 1.55
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
~[7f]}#@!}!}!} }=}!}$}%j}"}&} } } } }#}%B#}%}%}&}"~[16]#}'}"}(}"pc~~[7f]}#@!}!}"} }=}!}$}%j}"}&} } } } }#}%B#}%}%}&}"~[16]#}'}"}(}"C9~~[7f]}#@!}!}#} }=}!}$}%j}"}&} } } } }#}%B#}%}%}&}"~[16]#}'}"}(}"]w~~[7f]}#@!}!}$} }=}!}$}%j}"}&} } } } }#}%B#}%}%}&}"~[16]#}'}"}(}"%
~~[7f]}#@!}!}%} }=}!}$}%j}"}&} } } } }#}%B#}%}%}&}"~[16]#}'}"}(}";C~~[7f]}#@!}!}&} }=}!}$}%j}"}&} } } } }#}%B#}%}%}&}"~[16]#}'}"}(}"[08]}9~~[7f]}#@!}!}'} }=}!}$}%j}"}&} } } } }#}%B#}%}%}&}"~[16]#}'}"}(}"[16]W~~[7f]}#@!}!}(} }=}!}$}%j}"}&} } } } }#}%B#}%}%}&}"~[16]#}'}"}(}"xm~~[7f]}#@!}!})} }=}!}$}%j}"}&} } } } }#}%B#}%}%}&}"~[16]#}'}"}(}"f#~~[7f]}#@!}!}*} }=}!}$}%j}"}&} } } } }#}%B#}%}%}&}"~[16]#}'}"}(}"Uy~~[7f]}#@!}%}+} }$G4~[04]**GW[04]*[01] [11] *SKT*DORMANT_ON
--> Timed out while dialing. Trying again.
abacan
帖子: 29
注册时间: 2006-09-10 11:01

#2

帖子 abacan » 2006-09-13 9:32

我想问下
--> Waiting for carrier.
ATDT#777
后的乱码输出是在进行什么操作?不知对分析解决超时的原因有没有帮助。

在windows下使用拨号连接选择“显示终端窗口”,拨号后终端窗口会有类似的输出,但是窗口下方有一个“D”按钮,点击后才能转换到“发送用户名和密码”提示对话框。如果不点选“D”按钮也是一直输出乱码。
abacan
帖子: 29
注册时间: 2006-09-10 11:01

#3

帖子 abacan » 2006-09-19 15:51

pon拨号后的返回信息
Sep 19 10:16:48 localhost chat[5950]: abort on (NO ANSWER)
Sep 19 10:16:48 localhost chat[5950]: abort on (DELAYED)
Sep 19 10:16:48 localhost chat[5950]: send (ATZ^M)
Sep 19 10:16:48 localhost chat[5950]: expect (OK)
Sep 19 10:16:48 localhost chat[5950]: ATZ^M^M
Sep 19 10:16:48 localhost chat[5950]: OK
Sep 19 10:16:48 localhost chat[5950]: -- got it
Sep 19 10:16:48 localhost chat[5950]: send (ATDT#777^M)
Sep 19 10:16:48 localhost chat[5950]: expect (CONNECT)
Sep 19 10:16:48 localhost chat[5950]: ^M
chenmo@abacan-t43:~$ plog
Sep 19 10:16:48 localhost chat[5950]: expect (CONNECT)
Sep 19 10:16:48 localhost chat[5950]: ^M
Sep 19 10:16:56 localhost chat[5950]: ATDT#777^M~^?}#@!}!}!} }=}!}$}%j}"}&} } } } }#}%B#}%}%}&3=P}+}'}"}(}"^B}!~~^?}#@!}!}
Sep 19 10:16:59 localhost chat[5950]: "} }=}!}$}%j}"}&} } } } }#}%B#}%}%}&3=P}+}'}"}(}"1[~~^?}#@!}!}#} }=}!}$}%j}"}&} }
Sep 19 10:17:02 localhost chat[5950]: } } }#}%B#}%}%}&3=P}+}'}"}(}"/^U~~^?}#@!}!}$} }=}!}$}%j}"}&} } } } }#}%B#}%}%}&3=
Sep 19 10:17:08 localhost chat[5950]: P}+}'}"}(}"Wo~~^?}#@!}!}%} }=}!}$}%j}"}&} } } } }#}%B#}%}%}&3=P}+}'}"}(}"I!~~^?}#@
Sep 19 10:17:11 localhost chat[5950]: !}!}&} }=}!}$}%j}"}&} } } } }#}%B#}%}%}&3=P}+}'}"}(}"z{~~^?}#@!}!}'} }=}!}$}%j}"}
Sep 19 10:17:14 localhost chat[5950]: &} } } } }#}%B#}%}%}&3=P}+}'}"}(}"d5~~^?}#@!}!}(} }=}!}$}%j}"}&} } } } }#}%B#}%}%
Sep 19 10:17:17 localhost chat[5950]: }&3=P}+}'}"}(}"}*^O~~^?}#@!}!})} }=}!}$}%j}"}&} } } } }#}%B#}%}%}&3=P}+}'}"}(}"}4A
Sep 19 10:19:18 localhost chat[6083]: }&d}>><}'}"}(}"c:~~^?}#@!}!})} }=}!}$}%j}"}&} } } } }#}%B#}%}%}&d}>><}'}"}(}"}]t~
Sep 19 10:19:25 localhost chat[6083]: ~^?}#@!}!}*} }=}!}$}%j}"}&} } } } }#}%B#}%}%}&d}>><}'}"}(}"N.~~^?}#@!}%}+} }$G4~^D*
Sep 19 10:19:25 localhost chat[6083]: *GW^D*^A^@^Q^@*SKT*DORMANT_ON^M
Sep 19 10:19:35 localhost chat[6083]: alarm
Sep 19 10:19:35 localhost chat[6083]: Failed
Sep 19 10:19:35 localhost pppd[6082]: Connect script failed
Sep 19 10:19:36 localhost pppd[6082]: Exit.
lbjcumt
帖子: 36
注册时间: 2005-05-30 10:08

#4

帖子 lbjcumt » 2006-09-19 21:11

你的比我的还好些,我刚买的亿晨A5,卡插上后在设备管理器里能看到CDMA CARD,但用wvdialconf却检测不到,不知道怎么回事?
lbjcumt
帖子: 36
注册时间: 2005-05-30 10:08

#5

帖子 lbjcumt » 2006-09-19 21:15

*** WARNING! Line "/dev/ttyS2"
in /etc/ppp/options may conflict with wvdial!


*** WARNING! Line "115200"
in /etc/ppp/options may conflict with wvdial!

好像有冲突,是不是这有什么问题
abacan
帖子: 29
注册时间: 2006-09-10 11:01

#6

帖子 abacan » 2006-09-22 15:55

启动时不要插卡,进入系统以后再插卡试试
flyinwind
帖子: 69
注册时间: 2006-06-06 16:55

#7

帖子 flyinwind » 2006-09-24 23:46

俺也使用CDMA上网,通常图方便就直接sudo network-admin直接调出图形界面把modem port、phone num、user和password填上后点击activate稍等几秒钟网络就联通了(这种情况下没有经过wvdialconf配置的一步,所以/etc/wvdial.conf都没什么内容)

这几天看了楼主的贴子,所以今晚上试了试手工的方式,也联上网上去了
首先,sudo wvdialconf配置一下,看楼主中间有说什么*** WARNING! Line "/dev/ttyS2" ,要不楼主先备份一份/etc/wvdial.conf,然后把此文件的内容清空后sudo wvdialconf一次吧;

接着,手动编辑/etc/wvdial.conf给phone/user/password填上值,最后的文件内容为:
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Baud = 460800
New PPPD = yes
Modem = /dev/ttyUSB0
ISDN = 0
Phone =×××
Password =×××
Username =×××
其中modem和Baud项根据卡不同值也可能会不同,俺用的华为的卡

最后就是联网了,sudo wvdial执行后就可以用了,这儿如果不加sudo的话没法联上网去(),在 Waiting for carrier. ATDT 的时候俺这里没有出现楼主贴子里的乱码,不知道是怎么回事了

实在不行楼主也试一下前面的那种操作,直接sudo network-admin在图形窗口里联网看看?
flyinwind
帖子: 69
注册时间: 2006-06-06 16:55

#8

帖子 flyinwind » 2006-09-24 23:48

abacan 写了:启动时不要插卡,进入系统以后再插卡试试
启动前还是启动后插卡没有什么影响的^_^
lbjcumt
帖子: 36
注册时间: 2005-05-30 10:08

#9

帖子 lbjcumt » 2006-09-25 20:12

我的卡插上后系统识别为串口设备
用dmesg
可以看到有如下字样
[17179588.892000] pccard: PCMCIA card inserted into slot 0
[17179588.920000] pcmcia: registering new device pcmcia0.0
[17179589.100000] ttyS0: detected caps 00000700 should be 00000100
[17179589.100000] 0.0: ttyS0 at I/O 0x2e8 (irq = 4) is a 16C950/954
但用sudo network-admin和wvdialconf都检测不到设备,是怎么回事,是不是缺少什么模块?请楼上的高手给指点迷津,谢了!
flyinwind
帖子: 69
注册时间: 2006-06-06 16:55

#10

帖子 flyinwind » 2006-09-25 21:33

lbjcumt 写了:我的卡插上后系统识别为串口设备
用dmesg
可以看到有如下字样
[17179588.892000] pccard: PCMCIA card inserted into slot 0
[17179588.920000] pcmcia: registering new device pcmcia0.0
[17179589.100000] ttyS0: detected caps 00000700 should be 00000100
[17179589.100000] 0.0: ttyS0 at I/O 0x2e8 (irq = 4) is a 16C950/954
但用sudo network-admin和wvdialconf都检测不到设备
network-admin里检测不到没什么,不过wvdialconf检测不到就比较奇怪了,wvdialconf检测的时候会把几个端口都检测,除了显示pcmcia卡用的那个端口信息,也会把其它口上没检测到modem设备的信息同时显示给你,会不会是你只留意那些没检测出结果的信息了?

dmesg中已给出你的modem port,即使network-admin里检测不到,甭管它呵,network-admin后点config,选modem再点开properties页,在modem port处自己填入/dev/ttyS0(因为偶的network-admin也检测不到,所以偶就是自己填进的),填入phone/user/password后,activate它,稍等一会看看(建议你在顶部的面板上增加network monitor,这样不 但可以随时查看网络状态,在上面右击propery的话相当于启动network-admin,省事)

如果实在不行的话,呵呵,还有一个图形工具可用,在snaptic中找到gnome-PPP安装它后通过顶部的菜单Applicatons-internet中GNOME PPP启动这个程序,在其界面上点setup后会有个detect,偶用network-admin也检测不到,但在gnome ppp中一下子就检测出来了,比wvdialconf更清晰直接
lbjcumt
帖子: 36
注册时间: 2005-05-30 10:08

#11

帖子 lbjcumt » 2006-09-27 19:54

我试了一下,用network-admin
自己填入/dev/ttyS0,在填入phone/user/password激活后,点确定等了好长时间,然后还是不行。
用wvdialconf显示信息如下
Scanning your serial ports for a modem.

WvModem<*1>: Cannot set information for serial port.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1 S2 S3 S4 S5 S6 S7 S8
Modem Port Scan<*1>: S9 S10 S11 S12 S13 S14 S15 S16
Modem Port Scan<*1>: S17 S18 S19 S20 S21 S22 S23 S24
Modem Port Scan<*1>: S25 S26 S27 S28 S29 S30 S31 S32
Modem Port Scan<*1>: S33 S34 S35 S36 S37 S38 S39 S40
Modem Port Scan<*1>: S41 S42 S43 S44 S45 S46 S47


Sorry, no modem was detected! Is it in use by another program?
Did you configure it properly with setserial?
至于gnome-PPP我还没试,有空试一下。
到底问题在哪呢?
flyinwind
帖子: 69
注册时间: 2006-06-06 16:55

#12

帖子 flyinwind » 2006-09-27 20:21

lbjcumt 写了:我试了一下,用network-admin
自己填入/dev/ttyS0,在填入phone/user/password激活后,点确定等了好长时间,然后还是不行。
用wvdialconf显示信息如下
Scanning your serial ports for a modem.
…………………………
Sorry, no modem was detected! Is it in use by another program?
Did you configure it properly with setserial?
至于gnome-PPP我还没试,有空试一下。
到底问题在哪呢?
信息里已经说明系统wvdialconf检测不到你的CDMA设备,
我用wvdialconf后开始显示的信息和你的一样
要么你的modem port不在s*上,要么系统根本就不认识你的卡,(也许第二个原因大些,modem port是别的wvdialconf能检测出来的)
在网了帮你找了下,很遗憾,除了你发的这个贴子还真没找到其它的呵呵
要不你向亿晨的支持打电话咨询一下这个产品在linux下的使用?

我用wvdialconf后的消息如下,:
WvModem<*1>: Cannot set information for serial port.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1 S2 S3 S4 S5 S6 S7 S8
………(略)……………
Modem Port Scan<*1>: S41 S42 S43 S44 S45 S46 S47
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- OK
………略………
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
………略………
Found a modem on /dev/ttyUSB0.
lbjcumt
帖子: 36
注册时间: 2005-05-30 10:08

#13

帖子 lbjcumt » 2006-09-28 10:13

我的卡系统应该是认得,通过设备管理器能看见,我截的图放在附件里了。
你的卡用wvdialconf怎么检测出是USB的接口,你是不是加载了什么模块了?
我曾参考
http://zh.gentoo-wiki.com/TIP_CDMA_Wireless_Card

http://spo0nman.blogspot.com/2006/08/hu ... linux.html[/img][/code][/quote]
附件
Screenshot-2.png
Screenshot.png
abacan
帖子: 29
注册时间: 2006-09-10 11:01

#14

帖子 abacan » 2006-09-29 20:28

使用pppconfig配置ppp拨号脚本,名称为provider,注释掉chart script中等待CONNECT响应的一句后使用pon拨号成功。
/etc/chartscripts/provider内容如下
# This chatfile was generated by pppconfig 2.3.10.
# Please do not delete any of the comments. Pppconfig needs them.
#
# ispauth CHAP
# abortstring
ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED
# modeminit
'' ATZ
# ispnumber
OK-AT-OK "ATDT#777"
# ispconnect
# CONNECT \d\c
# prelogin

# ispname
# isppassword
# postlogin

# end of pppconfig stuff

/var/log/messages摘录如下
Sep 29 20:15:59 localhost pppd[5066]: pppd 2.4.4b1 started by chenmo, uid 1000
Sep 29 20:16:00 localhost chat[5067]: abort on (BUSY)
Sep 29 20:16:00 localhost chat[5067]: abort on (NO CARRIER)
Sep 29 20:16:00 localhost chat[5067]: abort on (VOICE)
Sep 29 20:16:00 localhost chat[5067]: abort on (NO DIALTONE)
Sep 29 20:16:00 localhost chat[5067]: abort on (NO DIAL TONE)
Sep 29 20:16:00 localhost chat[5067]: abort on (NO ANSWER)
Sep 29 20:16:00 localhost chat[5067]: abort on (DELAYED)
Sep 29 20:16:00 localhost chat[5067]: send (ATZ^M)
Sep 29 20:16:00 localhost chat[5067]: expect (OK)
Sep 29 20:16:00 localhost chat[5067]: ATZ^M^M
Sep 29 20:16:00 localhost chat[5067]: OK
Sep 29 20:16:00 localhost chat[5067]: -- got it
Sep 29 20:16:00 localhost chat[5067]: send (ATDT#777^M)
Sep 29 20:16:00 localhost pppd[5066]: Serial connection established.
Sep 29 20:16:00 localhost pppd[5066]: Using interface ppp0
Sep 29 20:16:00 localhost pppd[5066]: Connect: ppp0 <--> /dev/ttyS2
Sep 29 20:16:05 localhost pppd[5066]: CHAP authentication succeeded:
Sep 29 20:16:05 localhost pppd[5066]: CHAP authentication succeeded
Sep 29 20:16:05 localhost kernel: [17179766.332000] PPP BSD Compression module registered
Sep 29 20:16:05 localhost kernel: [17179766.416000] PPP Deflate Compression module registered
Sep 29 20:16:06 localhost pppd[5066]: local IP address 220.205.57.9
Sep 29 20:16:06 localhost pppd[5066]: remote IP address 220.192.0.7
Sep 29 20:16:06 localhost pppd[5066]: primary DNS address 220.192.0.130
Sep 29 20:16:06 localhost pppd[5066]: secondary DNS address 220.192.8.58
lbjcumt
帖子: 36
注册时间: 2005-05-30 10:08

#15

帖子 lbjcumt » 2006-09-30 8:09

:D 拨号成功,恭喜了!我的啥时候能拨号成功呀
回复