硬件环境:友善的tiny210v2 3G模块:中兴的MC2176 (cdma 2000) 插入板子上面的pcie插槽
软件环境:linux2.6.35.7
我已经开启了内核中相关驱动。主要用usb-serial 的驱动。
在\linux-2.6.35.7\drivers\usb\serial\option.c 追加了3G设备的PID 和VID
#define ZTE_PRODUCT_MC2700 0xffed。打开内核中相关的ppp服务协议。
在/dev下产生了/tttyUSB0----/ttyUSB3的设备结点。我感觉3G驱动已经加载成功。相应的ppp 服务已经配置到内核中。
使用下面脚本进行拨号链接:
cdma2000:
nodetach
lock
/dev/ttyUSB0
115200
user "
ctnet@mycdma.cn"
password "vnet.mobi"
crtscts
modem
hide-password
usepeerdns
noauth
noipdefault
novj
novjccomp
noccp
defaultroute
ipcp-accept-local
ipcp-accept-remote
connect 'chat -s -v -f /etc/ppp/peers/chat-cdma2000-connect'
disconnect 'chat -s -v -f /etc/ppp/peers/chat-cdma2000-disconnect'
2.chat-cdma2000-connect:
ABORT 'NO CARRIER'
ABORT 'ERROR'
ABORT 'NO DIALTONE'
ABORT 'BUSY'
ABORT 'NO ANSWER'
'' AT
OK ATZ
OK AT+CFUN=1
OK ATDT#777
CONNECT ''
但是我执行了pppd call cdma2000 调用3G拨号后,,没有成功,串口具体打印如下:
[root@FriendlyARM peers]# pppd call cdma2000
abort on (NO CARRIER)
abort on (ERROR)
abort on (NO DIALTONE)
abort on (BUSY)
abort on (NO ANSWER)
send (AT^M)
expect (OK)
AT^M^M
OK
-- got it
send (ATZ^M)
expect (OK)
^M
ATZ^M^M
OK
-- got it
send (AT+CFUN=1^M)
expect (OK)
^M
AT+CFUN=1^M^M
OK
-- got it
send (ATDT#777^M)
expect (CONNECT)
^M
ATDT#777^M^M
OK^M
^M
OK^M
^M
NO CARRIER
-- failed
Failed (NO CARRIER)
Connect script failed
问题:
1. 拨号不能成功啊,这个到底是哪里的问题呢?是我使用的脚本不对,还是说别的问题?那位大侠研究过这方面的,可否指导一下,小弟啊 ~!!万分感激!!
2. 如果我想通过这样的软硬件环境使用3G模块,该看那些资料,掌握那部分的知识,才能满足开发工作。