0

我已经安装了 Redhat(未购买)6.1(新 Redhat),我正在尝试在其中连接 Idea-3g NetSetter。我已经通过 Yum 安装了 ppp 和 wvdial 并在 /etc/wvdial.conf 文件中进行了必要的更改,但我无法配置它。

当我浏览日志时,我发现我的系统正在将此设备作为大规模存储设备而不是将其作为调制解调器设备。我去了谷歌,但它也没有帮助我

在 Wvdial.conf 文件中,我必须输入 /dev/ttyUSB0 但在 dev 目录下没有像 ttyUSB 这样的文件。有 tty1,tty2 等。所以我该如何解决这个问题。请帮助我..一些必要的信息在这里

[root@server ~]# wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot open /dev/ttyUSB0: Inappropriate ioctl for device
--> Cannot open /dev/ttyUSB0: Inappropriate ioctl for device
--> Cannot open /dev/ttyUSB0: Inappropriate ioctl for device
[root@server ~]# lsusb
Bus 002 Device 003: ID 0bda:0138 Realtek Semiconductor Corp. 
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 006: ID 12d1:1446 Huawei Technologies Co., Ltd. E1552 (HSPA modem)
Bus 001 Device 004: ID 0c45:643d Microdia 
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[root@server ~]#vi /proc/version
Linux version 2.6.32-131.0.15.el6.i686 (mockbuild@x86-001.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Tue May 10 15:42:28 EDT 2011 



[root@server ~]# tail /var/log/messages  (Last Few Lines)
May  4 22:49:18 server kernel: usb 1-1.2: USB disconnect, address 6
May  4 22:49:18 server kernel: scsi 15:0:0:0: rejecting I/O to dead device
May  4 22:49:19 server gnome-keyring-daemon[2212]: removing removable location: /media/20110811_0533
May  4 22:49:19 server gnome-keyring-daemon[2212]: no volume registered at: /media/20110811_0533
May  4 22:49:31 server kernel: usb 1-1.2: new high speed USB device using ehci_hcd and address 7
May  4 22:49:31 server kernel: usb 1-1.2: New USB device found, idVendor=12d1, idProduct=1446
May  4 22:49:31 server kernel: usb 1-1.2: New USB device strings: Mfr=3, Product=2, SerialNumber=0
May  4 22:49:31 server kernel: usb 1-1.2: Product: HUAWEI Mobile
May  4 22:49:31 server kernel: usb 1-1.2: Manufacturer: HUAWEI Technology
May  4 22:49:31 server kernel: usb 1-1.2: configuration #1 chosen from 1 choice
May  4 22:49:31 server kernel: scsi17 : SCSI emulation for USB Mass Storage devices
May  4 22:49:31 server kernel: scsi18 : SCSI emulation for USB Mass Storage devices
May  4 22:49:36 server kernel: scsi 17:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
May  4 22:49:36 server kernel: scsi 18:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
May  4 22:49:36 server kernel: sr1: scsi-1 drive
May  4 22:49:36 server kernel: sr 17:0:0:0: Attached scsi generic sg2 type 5
May  4 22:49:36 server kernel: sd 18:0:0:0: Attached scsi generic sg4 type 0
May  4 22:49:36 server kernel: sd 18:0:0:0: [sdc] Attached SCSI removable disk


[root@server ~]# cd /dev/
[root@server dev]# ls
agpgart          log                 ram1    sda5      tty15  tty40  tty9
autofs           loop0               ram10   sda6      tty16  tty41  ttyS0
block            loop1               ram11   sda7      tty17  tty42  ttyS1
bsg              loop2               ram12   sda8      tty18  tty43  ttyS2
bus              loop3               ram13   sdb       tty19  tty44  ttyS3
cdrom            loop4               ram14   sdc       tty2   tty45  urandom
cdrom2           loop5               ram15   sg0       tty20  tty46  usbmon0
cdrw             loop6               ram2    sg1       tty21  tty47  usbmon1
char             loop7               ram3    sg2       tty22  tty48  usbmon2
console          lp0                 ram4    sg3       tty23  tty49  v4l
core             lp1                 ram5    sg4       tty24  tty5   vcs
cpu              lp2                 ram6    shm       tty25  tty50  vcs1
cpu_dma_latency  lp3                 ram7    snapshot  tty26  tty51  vcs2
crash            MAKEDEV             ram8    snd       tty27  tty52  vcs3
disk             mapper              ram9    sr0       tty28  tty53  vcs4
dri              mcelog              random  sr1       tty29  tty54  vcs5
dvd              mem                 raw     stderr    tty3   tty55  vcs6
dvdrw            net                 rfkill  stdin     tty30  tty56  vcsa
fb               network_latency     root    stdout    tty31  tty57  vcsa1
fb0              network_throughput  rtc     systty    tty32  tty58  vcsa2
fd               null                rtc0    tty       tty33  tty59  vcsa3
full             nvram               scd0    tty0      tty34  tty6   vcsa4
fuse             oldmem              scd1    tty1      tty35  tty60  vcsa5
hpet             port                sda     tty10     tty36  tty61  vcsa6
hugepages        ppp                 sda1    tty11     tty37  tty62  vga_arbiter
hvc0             ptmx                sda2    tty12     tty38  tty63  video0
input            pts                 sda3    tty13     tty39  tty7   watchdog
kmsg             ram0                sda4    tty14     tty4   tty8   zero





 [root@server dev]#vi /etc/wvdial.congf

[Dialer Defaults]
Modem=/dev/ttyUSB0        ***what to write here***
Baud = 115200
Init 1 = AT+CGMM
Init 2 = AT+CMEE=1
Init 3 = ATE0
Init 4 = AT^HS=0,0
Init 5 = AT+CFUN?
Init 6 = AT+CLCK="SC",2
Init 7 = AT+CPIN?
Init 8 = AT+CLCK="SC",2
Modem Type = USB MODEM
Phone=*99#
Username =""
Password =""
New PPPD = yes
Dial Command=ATDT
Stupid Mode=1
ISDN=0

请帮助我如何解决它


我正在提供 wvdial coomand 的输出,它一次又一次地重新启动并显示 ppd 错误 16。我试图找出它并发现这个错误是调制解调器挂起的。我尝试了很多,但问题就是这样。

[root@server ~]# wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> 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*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Sat May  5 07:25:25 2012
--> Pid of pppd: 2905
--> Using interface ppp0
--> Disconnecting at Sat May  5 07:25:27 2012
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 5 seconds
--> Cannot get information for serial port.
--> 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.
--> Cannot get information for serial port.
--> 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*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Sat May  5 07:25:32 2012
--> Pid of pppd: 2925
--> Using interface ppp0
--> Disconnecting at Sat May  5 07:25:34 2012
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 10 seconds



[root@server ~]# vi /dev/tty
tty                tty25              tty42              tty6
tty0               tty26              tty43              tty60
tty1               tty27              tty44              tty61
tty10              tty28              tty45              tty62
tty11              tty29              tty46              tty63
tty12              tty3               tty47              tty7
tty13              tty30              tty48              tty8
tty14              tty31              tty49              tty9
tty15              tty32              tty5               ttyS0
tty16              tty33              tty50              ttyS1
tty17              tty34              tty51              ttyS2
tty18              tty35              tty52              ttyS3
tty19              tty36              tty53              ttyUSB3
tty2               tty37              tty54              ttyUSB4
tty20              tty38              tty55              ttyUSB_utps_diag
tty21              tty39              tty56              ttyUSB_utps_modem
tty22              tty4               tty57              ttyUSB_utps_pcui
tty23              tty40              tty58              
tty24              tty41              tty59  
4

1 回答 1

1

这种设备首先将自己呈现为大容量存储设备是相当普遍的,可能包含文档和驱动程序。

尝试先弹出大容量存储设备。真正的调制解调器设备可能会出现。

自动化这个

一旦您确认这确实是问题所在,您就可以自动弹出。

这个论坛讨论中描述得相当好,但简而言之,你添加一个 udev 规则,一旦检测到设备就会调用弹出或 usb-modeswitch。这样,将创建正确的设备节点,您无需担心 WvDial 中的问题。

于 2012-05-04T13:53:29.260 回答