LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1015|回复: 2

gentoo 下 nokia CDMA 手机拨号上网

[复制链接]
发表于 2008-12-24 22:32:05 | 显示全部楼层 |阅读模式
最近发现有一种30元包24小时的CDMA上网卡,想起来有个nokia2280在箱子里,可以移动上网,于是到网上买了条CA42 cable,下面开始设置。
参考了网上几篇关于拨号上网的文章

1.首先检查内核中已包括USB驱动

2.选择合适的数据线驱动
我的这根CA42 lsusb后显示
ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
在内核(2.6.27)中已经包含了PL2303的驱动,可以编译成模块
  
  • USB support  --->   
          <M>   USB Serial Converter support  --->  
              <M>   USB Prolific 2303 Single Port Serial Driver
    其他驱动可以不选,包括seriel port,可能编译的时候会自动加上
    插上CA42 cable后会有/dev/ttyUSB0的设备,也可能被识别为其他设备

    3.内核PPP
      <M>   PPP (point-to-point protocol) support                     
            <M>     PPP support for async serial ports
            <M>     PPP support for sync tty ports
            <M>     PPP Deflate compression
            <M>     PPP BSD-Compress compression
            <M>     PPP MPPE compression (encryption)         
    4.#emerge wvdial
    使用wvdial拨号配置方便
    5.编辑/etc/wvdial.conf
            [Dialer Defaults]
            Modem = /dev/ttyUSB0
            Baud = 230400
            Init1 = AT
            Init2 = AT+crm=1
            Init3 = AT+cso=33
            Init4 = ATE0V1
            Phone = #777
            Username = CARD
            Password = CARD
    这里初始化的命令要注意一下,可能nokia CDMA用的是自己的芯片,而不是高通的,初始化AT指令和其他的不一样。我是从nokia windows 下的modem驱动中找到这些指令的
    6.#wvdial
    执行wvdial就可以连上了,Ctrl+c中断连接
    第一连接比较快,再连接时就会连不上,可多插拔几次
    --> WvDial: Internet dialer version 1.60
    --> Initializing modem.
    --> Sending: AT
    AT
    AT
    OK
    --> Sending: AT+crm=1
    AT+crm=1
    OK
    --> Sending: AT+cso=33
    AT+cso=33
    OK
    --> Sending: ATE0V1
    ATE0V1
    OK
    --> Modem initialized.
    --> Sending: ATDT#777
    --> Waiting for carrier.
    CONNECT
    --> Carrier detected.  Waiting for prompt.
    ~[7f]}#@!}!}!} }=}!}$}%\}"}&} } } } }#}%B#}%}%}&}-Pe%}'}"}(}"[11]b~
    --> PPP negotiation detected.
    --> Starting pppd at Wed Dec 24 20:30:30 2008
    --> Pid of pppd: 1557
    --> Using interface ppp0
    --> local  IP address 114.81.148.249
    --> remote IP address 10.234.48.16
    --> primary   DNS address 202.96.209.6
    --> secondary DNS address 202.96.209.134

    参考:
    搞定gentoo linux下cdma 1x无线上网!<http>http://www.linuxsir.cn/bbs/showthread.php?t=253874</http>
    ubuntu 8.10 下试用CDMA无线上网<http>http://linux.chinaitlab.com/administer/770292.html</http>
  • 发表于 2008-12-25 09:27:14 | 显示全部楼层
    不是30块包月啊?没劲。
    回复 支持 反对

    使用道具 举报

    发表于 2008-12-25 10:03:54 | 显示全部楼层
    唉~~~当初那个20元不限量的卡不取消多好呀!!
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    快速回复 返回顶部 返回列表