标题: WCDMA USB modem在OpenBSD拨号/发短信 [打印本页] 作者: x-fish 时间: 2011-11-07 12:12 标题: WCDMA USB modem在OpenBSD拨号/发短信 本帖最后由 x-fish 于 2011-11-08 09:55 编辑
3G卡拨号方法一:
具体查看 /etc/ppp/ppp.conf.sample 和man ppp , man chat 等
# To connect via a GPRS or UMTS device (e.g. a mobile phone or a PC Card),
# it's often necessary to set the access-point name (in this case 'internet')
# which requires quotes in the dial string. This section shows the escaping
# required. Devices that have not already authenticated the SIM card (like a
# PC Card) need to issue the "AT+CPIN=xxxx" (xxxx being the PIN for the SIM
# card) first.
# For certain devices it is necessary to adjust the baud rate (speed setting)
# and/or change the dial string to "*99***1#".
# UMTS devices often allow control of the connect mode (UMTS only, GPRS only
# or default to which is available); this can be controlled with the number
# passed to the AT+CGDCONT command and is device dependant.
# Some ISPs do special things in their IPCP session in order to negotiate
# the IP addresses; in this case it may be necessary to play with the ifaddr
1.驱动支持
在OpenBSD下已经有Huawei的3G USB Modem驱动,一般都是使用了高通的芯片.
执行以下命令可以看到支持设备的名称:
#man umsm
复制代码
2.查看是否可以识别设备:
#dmesg
复制代码
可以看到
umsm0 at uhub0 port 3 configuration 1 interface 0 "Huawei Technologies HUAWEI Mobile" rev 2.00/0.00 addr 2
ucom0 at umsm0
umsm1 at uhub0 port 3 configuration 1 interface 1 "Huawei Technologies HUAWEI Mobile" rev 2.00/0.00 addr 2
ucom1 at umsm1
umsm2 at uhub0 port 3 configuration 1 interface 2 "Huawei Technologies HUAWEI Mobile" rev 2.00/0.00 addr 2
ucom2 at umsm2
umsm3 at uhub0 port 3 configuration 1 interface 3 "Huawei Technologies HUAWEI Mobile" rev 2.00/0.00 addr 2
ucom3 at umsm3
umsm4 at uhub0 port 3 configuration 1 interface 4 "Huawei Technologies HUAWEI Mobile" rev 2.00/0.00 addr 2
umsm5 at uhub0 port 3 configuration 1 interface 5 "Huawei Technologies HUAWEI Mobile" rev 2.00/0.00 addr 2
#usbdevs -v
复制代码
# usbdevs -v
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
port 3 addr 2: high speed, power 500 mA, config 1, HUAWEI Mobile(0x14ac), Huawei Technologies(0x12d1), rev 0.00
port 4 powered
port 5 powered
port 6 powered
port 7 powered
port 8 powered
3.配置文件
default:
#注意该设备名称,发现在我的机器上为 /dev/cuaU0 ,而中兴的一款3G USB WCDMA Modem却为 /dev/cuaU2