分页: 1 / 1

[求助]如何使用tdscdma无线网卡

发表于 : 2009-03-02 23:14
pollora
我家里有中兴的mu350和大唐的dtm5731
网上找了一天使了不少办法都不行
我的本本是预装ubuntu的上网本

Re: [求助]如何使用tdscdma无线网卡

发表于 : 2009-03-05 15:37
pollora
使用PPPD手动拨号成功
不过速率好象有问题
TD-HSDPA数据卡 -> usb driver -> usb-serial

driver -> tty driver -> ppp模块 -> 再到上层转发到电脑。可能就是在上述的模块或驱动时出了问题

Re: [求助]如何使用tdscdma无线网卡

发表于 : 2009-03-05 15:38
pollora
查过资料
可能有下面问题
1. 有额外的 packet 在定时发到这个接口。
2. 会不断的打印 信息,造成速率下降。
那位老兄解决过?

Re: [求助]如何使用tdscdma无线网卡

发表于 : 2009-03-27 17:45
windychen
老大,我现在用dtm5731的上网卡,用ubuntu死活拨不出去,看 /var/log/debug里说no network protocols running,想问一下你是怎么拨出去的呢,能否把pppd的脚本和option文件给我贴一下,谢谢。

Re: [求助]如何使用tdscdma无线网卡

发表于 : 2009-04-06 15:10
飞狐军
从TD卡说明书上抄来一部分。但本人不理解,不知道怎么创建脚本,怎么运行脚步。

PPP拔号分两部分,一部分是内核部分,一部分是PPP拔号工具,首先使内核支持PPP拔号。
一般的Linux发行版本内核启动对PPP拔号的支持。如果没有开启,你只需要输入make menuconfig,对内核进行配置。

内核选项已经配置完毕,(重新)编译内核,使用新内核重启机器就可以实现PPP拔号的支持了。
另外就是PPP拔号工具了,现在附录华域提供的拔号的脚本,将此脚本放到/etc/ppp目录下。
此脚本包含两个文件ppp-on 和ppp-on-dialer。
文件ppp-on
#!/bin/sh
#
# Script to initiate a ppp connection. This is the first part of the
# pair of scripts. This is not a secure pair of scripts as the codes
# are visible with the 'ps' command. However, it is simple.
#
# These are the parameters. Change as needed.
APN=cmnet
ACCOUNT=
PASSWORD=
TELEPHONE=*99***1# # The telephone number for the connection
LOCAL_IP=0.0.0.0 # Local IP address if known. Dynamic = 0.0.0.0
REMOTE_IP=0.0.0.0 # Remote IP address if desired. Normally 0.0.0.0
NETMASK=255.255.255.0 # The proper netmask if needed

if [ $# == 4 ]
then
APN="$1"
TELEPHONE="$2"
ACCOUNT="$3"
PASSWORD="$4"
elif [ $# == 3 ]
then
APN="$1"
TELEPHONE="$2"
ACCOUNT="$3"
elif [ $# == 2 ]
then
APN="$1"
TELEPHONE="$2"
else
echo "Parameter error.ppp-on APN TELEPHONE {ACCOUNT PASSWORD}"
exit 1
fi
echo "APN=$APN,TELPHONE=$TELEPHONE,ACCOUT=$ACCOUNT,PASSWORD=$PASSWORD"
#
# Export them so that they will be available at 'ppp-on-dialer' time.
export APN TELEPHONE ACCOUNT PASSWORD
#
# This is the location of the script which dials the phone and logs
# in. Please use the absolute file name as the $PATH variable is not
# used on the connect option. (To do so on a 'root' account would be
# a security hole so don't ask.)
#
DIALER_SCRIPT=/etc/ppp/ppp-on-dialer
#
# Initiate the connection
#
# I put most of the common options on this command. Please, don't
# forget the 'lock' option or some programs such as mgetty will not
# work. The asyncmap and escape will permit the PPP link to work with
# a telnet or rlogin connection. You are welcome to make any changes
# as desired. Don't use the 'defaultroute' option if you currently
# have a default route to an ethernet gateway.
#
exec /usr/sbin/pppd debug lock modem crtscts /dev/ttyACM0 460800 \
logfile /var/ppplog asyncmap 20A0000 kdebug 0 $LOCAL_IP:$REMOTE_IP \
user "$ACCOUNT" password "$PASSWORD" noipdefault \
netmask $NETMASK defaultroute connect $DIALER_SCRIPT

如上所示,最重要最后一句exec调用/usr/sbin/pppd来进行拔号。如果你发现你的Modem设备不是ttyACM0,那么千万要注意,将/dev/ttyACM0改成你的Modem设备名。
文件ppp-on-dialer
#!/bin/sh
#
# This is part 2 of the ppp-on script. It will perform the connection
# protocol for the desired connection.
#
exec /usr/sbin/chat -v \
TIMEOUT 3 \
ABORT '\nBUSY\r' \
ABORT '\nNO ANSWER\r' \
ABORT '\nRINGING\r\n\r\nRINGING\r' \
'' \rAT \
'OK-+++\c-OK' ATH0 \
TIMEOUT 30 \
OK AT+CGDCONT=1,\"ip\",\"$APN\" \
OK AT \
OK AT \
OK ATDT$TELEPHONE \
CONNECT ''

将上述两个脚本文件放到/etc/ppp目录,执行以下命令
# ./etc/ppp/ppp-on cment *99***1# user user
其中/etc/ppp/ppp-on为拔号脚本,cmnet为APN,*99***1#为拔入号码 user为用户名 user为密码。
注意:APN、用户名、密码以当地运营商提供信息为准,若用户名和密码为空时,请填入默认信息“user”。
你可以查看log日志,以检查是否已经拔上网络。根据以下脚本,log放在/var/ppplog下。
# cat /var/ppplog

Re: [求助]如何使用tdscdma无线网卡

发表于 : 2009-04-26 0:44
roadd
这个问题解决了吗?我的也是中兴mu350,如果上不了网,就不能按速配指南上网设置啊!我已经装了9.04,说是支持3G,是怎么支持的?有高手教教我么?