找回密码
 注册
快捷导航
查看: 24875|回复: 28

 T40+aircard 750在Red Hat linux 中上网配置实战!

[复制链接] |自动提醒
阅读字号:

1208

回帖

24

积分

4678

资产值

白金会员 Rank: 3Rank: 3Rank: 3

注册时间
2003-12-10
银牌荣誉勋章(注册10年以上会员)铜牌荣誉勋章(注册8年以上会员)
发表于 2004-6-21 00:04:20| 字数 152| - 中国–甘肃–兰州 移动 | 显示全部楼层 |阅读模式
在XP中,aircard 750提供了全面的支持,但在linux中,并没有它的相关驱动,我搜遍了国内的网站,也没找到相关的资料。不得已硬着头皮去啃英文资料,结合中国移动的GPRS业务,终于实现了在linux中(我用的系统是小红帽)用aircard 750上网。下面就将具体做法写在下面,也许对大家能有点帮助。

评分

参与人数 1技术分 +2 收起 理由
+ 2

查看全部评分

我们在一个世界,却不能真得看到彼此。

1208

回帖

24

积分

4678

资产值

白金会员 Rank: 3Rank: 3Rank: 3

注册时间
2003-12-10
银牌荣誉勋章(注册10年以上会员)铜牌荣誉勋章(注册8年以上会员)
 楼主| 发表于 2004-6-21 00:07:35| 字数 44| - 中国–甘肃–兰州 移动 | 显示全部楼层
在开始之前不要将卡插入计算机,要以root身份的登录linux,然后

下载下面的这个附件:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
我们在一个世界,却不能真得看到彼此。
回复 支持 反对

使用道具 举报

1208

回帖

24

积分

4678

资产值

白金会员 Rank: 3Rank: 3Rank: 3

注册时间
2003-12-10
银牌荣誉勋章(注册10年以上会员)铜牌荣誉勋章(注册8年以上会员)
 楼主| 发表于 2004-6-21 00:10:09| 字数 294| - 中国–甘肃–兰州 移动 | 显示全部楼层
第一步,其实也就是最为关键的一步,就是要让linux能认出我们的pcmcia网卡。
把下面列出的几行加到/etc/pcmcia/config 中去:


card "Sierra Wireless AC710/AC750 GPRS Network Adapter R1"
manfid 0x0192, 0x0710
cis "cis/SW_7xx_SER.dat"
bind "serial_cs"

然后把附件里的SW_7xx_SER.dat拷到/etc/pcmcia/cis/下
重启计算机
插入aircard 750
这时计算机就可以认出它了,在硬件浏览器里,可以找到它:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
我们在一个世界,却不能真得看到彼此。
回复 支持 反对

使用道具 举报

1208

回帖

24

积分

4678

资产值

白金会员 Rank: 3Rank: 3Rank: 3

注册时间
2003-12-10
银牌荣誉勋章(注册10年以上会员)铜牌荣誉勋章(注册8年以上会员)
 楼主| 发表于 2004-6-21 00:11:07| 字数 445| - 中国–甘肃–兰州 移动 | 显示全部楼层
第二步,把附件里的 ac750 和 ac750chat拷到/etc/ppp/peers下
编辑 /etc/ppp/peers/ac750,中的"user < login>",< login>为你的用户名,我把它写成cmnet,即 “user cmnet”
编辑/etc/ppp/peers/ac750chat,把
OK AT+cgdcont= 1,"IP","<APN>"中的<APN>改为中国移动GPRS数据上网的接入点cmnet

编辑/etc/ppp/pap-secrets,加入下面一行

"< login>""< login>" "<password>" "*"
我把它设为
"cmnet" "cmnet" "cmnet" "*"
我们在一个世界,却不能真得看到彼此。
回复 支持 反对

使用道具 举报

1208

回帖

24

积分

4678

资产值

白金会员 Rank: 3Rank: 3Rank: 3

注册时间
2003-12-10
银牌荣誉勋章(注册10年以上会员)铜牌荣誉勋章(注册8年以上会员)
 楼主| 发表于 2004-6-21 00:12:33| 字数 66| - 中国–甘肃–兰州 移动 | 显示全部楼层
好了,至此所有准备工作就全部做完了,下面就是要用拔号器建立GPRS连接了,注意看网卡上的灯是亮的而且是绿色的,就可以进行下面几步了。
我们在一个世界,却不能真得看到彼此。
回复 支持 反对

使用道具 举报

1208

回帖

24

积分

4678

资产值

白金会员 Rank: 3Rank: 3Rank: 3

注册时间
2003-12-10
银牌荣誉勋章(注册10年以上会员)铜牌荣誉勋章(注册8年以上会员)
 楼主| 发表于 2004-6-21 00:16:28| 字数 70| - 中国–甘肃–兰州 移动 | 显示全部楼层
用KPPP建立连接:
首先打开KPPP,建立一个新的连接,名称你可以随便写,号码是*99***1# ,在下面的认证里选择PAP/CHAP。
如图:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
我们在一个世界,却不能真得看到彼此。
回复 支持 反对

使用道具 举报

1208

回帖

24

积分

4678

资产值

白金会员 Rank: 3Rank: 3Rank: 3

注册时间
2003-12-10
银牌荣誉勋章(注册10年以上会员)铜牌荣誉勋章(注册8年以上会员)
 楼主| 发表于 2004-6-21 00:17:59| 字数 18| - 中国–甘肃–兰州 移动 | 显示全部楼层
因为GPRS是动态分配IP的,所以:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
我们在一个世界,却不能真得看到彼此。
回复 支持 反对

使用道具 举报

1208

回帖

24

积分

4678

资产值

白金会员 Rank: 3Rank: 3Rank: 3

注册时间
2003-12-10
银牌荣誉勋章(注册10年以上会员)铜牌荣誉勋章(注册8年以上会员)
 楼主| 发表于 2004-6-21 00:19:49| 字数 5| - 中国–甘肃–兰州 移动 | 显示全部楼层
网关设置:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
我们在一个世界,却不能真得看到彼此。
回复 支持 反对

使用道具 举报

1208

回帖

24

积分

4678

资产值

白金会员 Rank: 3Rank: 3Rank: 3

注册时间
2003-12-10
银牌荣誉勋章(注册10年以上会员)铜牌荣誉勋章(注册8年以上会员)
 楼主| 发表于 2004-6-21 00:22:17| 字数 57| - 中国–甘肃–兰州 移动 | 显示全部楼层
DNS不设应该也是可以的,如果GPRS建立连接后打不开网页,应该填写这一项,可以打当地的1860询问当地的DNS:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
我们在一个世界,却不能真得看到彼此。
回复 支持 反对

使用道具 举报

551

回帖

5

积分

1444

资产值

高级会员 Rank: 2Rank: 2

注册时间
2003-7-31
铜牌荣誉勋章(注册8年以上会员)
发表于 2004-6-21 00:23:17| 字数 6| - 中国–四川–成都 电信 | 显示全部楼层
好贴!顶一个
ThinkPad X24 再见蓝色巨人,永远的ThinkPad,永远的小黑
回复 支持 反对

使用道具 举报

1208

回帖

24

积分

4678

资产值

白金会员 Rank: 3Rank: 3Rank: 3

注册时间
2003-12-10
银牌荣誉勋章(注册10年以上会员)铜牌荣誉勋章(注册8年以上会员)
 楼主| 发表于 2004-6-21 00:24:29| 字数 46| - 中国–甘肃–兰州 移动 | 显示全部楼层
好了,设置好了确定就可以了,出现如下登录页面,用户名cmnet密码cmnet,点连接。。。。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
我们在一个世界,却不能真得看到彼此。
回复 支持 反对

使用道具 举报

1208

回帖

24

积分

4678

资产值

白金会员 Rank: 3Rank: 3Rank: 3

注册时间
2003-12-10
银牌荣誉勋章(注册10年以上会员)铜牌荣誉勋章(注册8年以上会员)
 楼主| 发表于 2004-6-21 00:32:32| 字数 31| - 中国–甘肃–兰州 移动 | 显示全部楼层
出现如下提示表明工作正常,网络注册成功,就可以上网了。。。。。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
我们在一个世界,却不能真得看到彼此。
回复 支持 反对

使用道具 举报

1208

回帖

24

积分

4678

资产值

白金会员 Rank: 3Rank: 3Rank: 3

注册时间
2003-12-10
银牌荣誉勋章(注册10年以上会员)铜牌荣誉勋章(注册8年以上会员)
 楼主| 发表于 2004-6-21 00:37:29| 字数 43| - 中国–甘肃–兰州 移动 | 显示全部楼层
也可以用pppd:
启动终端,输入pppd call ac750
出现如下结果,连接就成功了:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
我们在一个世界,却不能真得看到彼此。
回复 支持 反对

使用道具 举报

1208

回帖

24

积分

4678

资产值

白金会员 Rank: 3Rank: 3Rank: 3

注册时间
2003-12-10
银牌荣誉勋章(注册10年以上会员)铜牌荣誉勋章(注册8年以上会员)
 楼主| 发表于 2004-6-21 00:59:44| 字数 15| - 中国–甘肃–兰州 移动 | 显示全部楼层
终于写完了

:)

最后再上图一张:
我们在一个世界,却不能真得看到彼此。
回复 支持 反对

使用道具 举报

7045

回帖

3

积分

1万

资产值

禁止发言

注册时间
2003-8-19
铜牌荣誉勋章(注册8年以上会员)
发表于 2004-6-21 01:14:55| 字数 11| - 中国–广东–深圳–罗湖区 电信 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复 支持 反对

使用道具 举报

1208

回帖

24

积分

4678

资产值

白金会员 Rank: 3Rank: 3Rank: 3

注册时间
2003-12-10
银牌荣誉勋章(注册10年以上会员)铜牌荣誉勋章(注册8年以上会员)
 楼主| 发表于 2004-6-21 01:19:50| 字数 17| - 中国–甘肃–兰州 移动 | 显示全部楼层
图不知道咋回事没发上来,再来一次:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
我们在一个世界,却不能真得看到彼此。
回复 支持 反对

使用道具 举报

2449

回帖

16

积分

9261

资产值

高级会员 Rank: 2Rank: 2

注册时间
2002-6-22
铜牌荣誉勋章(注册8年以上会员)银牌荣誉勋章(注册10年以上会员)
发表于 2004-6-21 08:16:02| 字数 5| - 中国–浙江–嘉兴 电信 | 显示全部楼层
不错,加分
JAVA+PHP+VC+linux c
回复 支持 反对

使用道具 举报

1208

回帖

24

积分

4678

资产值

白金会员 Rank: 3Rank: 3Rank: 3

注册时间
2003-12-10
银牌荣誉勋章(注册10年以上会员)铜牌荣誉勋章(注册8年以上会员)
 楼主| 发表于 2004-6-21 10:29:24| 字数 20| - 中国–甘肃–兰州 移动 | 显示全部楼层
活活,终于实现零的突破啦!

谢谢版主鼓励!
我们在一个世界,却不能真得看到彼此。
回复 支持 反对

使用道具 举报

1万

回帖

0

积分

1590

资产值

入门会员 Rank: 1

注册时间
2003-12-13
发表于 2004-6-21 15:13:47| 字数 72| - 中国–云南–昆明 电信 | 显示全部楼层
呵呵,要是用USB接口的怎么驱动来上网啊!!!!我用的是红旗LINUX4.0桌面版的,上网的是USB接口的GPRS。盼望能得到强人的支持,谢谢啦
夏眠结束,开始活跃ing
回复 支持 反对

使用道具 举报

829

回帖

0

积分

1540

资产值

入门会员 Rank: 1

注册时间
2004-4-17
发表于 2004-6-21 23:09:55| 字数 35| - 中国–浙江–宁波–北仑区 电信 | 显示全部楼层
谢谢楼主分享心得呢,我用的是CDMA1X的卡,能提示下怎么来驱动它吗?
T42-1WU  768M 40G BMDC200B蓝牙XP+FEDORA1.0T39MC+TREO600
回复 支持 反对

使用道具 举报

1208

回帖

24

积分

4678

资产值

白金会员 Rank: 3Rank: 3Rank: 3

注册时间
2003-12-10
银牌荣誉勋章(注册10年以上会员)铜牌荣誉勋章(注册8年以上会员)
 楼主| 发表于 2004-6-22 11:00:22| 字数 7,123| - 中国–甘肃–兰州 移动 | 显示全部楼层
T-Mobile Internet on Linux
The wireless data landscape
T-mobile lowered the price on their unlimited data option. It's now $30/month ($20 if you already have a voice plan) whereas all the other guys are at $80/month (Verizon, Sprint) or they don't offer unlimited at all (AT&T).

It should be noted that GPRS (T-Mobile, AT&T) is slower than 1xrtt (Verizon, Sprint). GPRS is rated at a max of 56k but 1xrtt is supposed to reach 144k. I haven't tried 1xrtt but I can tell you that the rates I get with GPRS are well below 56k. T-Mobile may not have a speed advantage, but you have to give it to them for their price advantage.

Verizon is starting to deploy a real 3G network in some cities (Washington DC was one). At some point it may be worth looking into a bluetooth phone from Verizon that can do 1xrtt and also cdma2000 aka 1xEV aka 1xEV-DO once it's deployed in my town... I asked Verizon which phones could do all that and they were basically clueless (maybe because they are resisting bluetooth adoption for some reason).

Verizon sells a PCMCIA card made by Qualcomm ("PC 5220" for "CDMA 1xEVDO") that is supposed to handle 3G as well as current technologies. It is not supported in Linux however. It shows up as a USB adapter with an unknown device attached:

06:00.0 USB Controller: Lucent Microelectronics: Unknown device 5802 (rev 10) (prog-if 10 [OHCI])
Subsystem: Lucent Microelectronics: Unknown device 5802
Flags: bus master, medium devsel, latency 64, IRQ 11
Memory at 21000000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [50] Power Management version 2

Sep 17 17:47:25 jab kernel: cs: cb_alloc(bus 6): vendor 0x11c1, device 0x5802
Sep 17 17:47:25 jab kernel: PCI: Enabling device 06:00.0 (0000 -> 0002)
Sep 17 17:58:25 jab kernel: usb-ohci.c: USB OHCI at membase 0xe0947000, IRQ 11
Sep 17 17:58:25 jab kernel: usb-ohci.c: usb-06:00.0, PCI device 11c1:5802
Sep 17 17:58:25 jab kernel: usb.c: new USB bus registered, assigned bus number 2
Sep 17 17:58:25 jab kernel: hub.c: USB hub found
Sep 17 17:58:25 jab kernel: hub.c: 2 ports detected
Sep 17 17:58:27 jab kernel: hub.c: new USB device 06:00.0-1, assigned address 2
Sep 17 17:58:27 jab kernel: usb.c: USB device 2 (vend/prod 0xf3d/0x401) is not claimed by any active driver.

Sierra Wireless plans to have a strikingly similar high-speed card (Aircard 580) out in 2004. No official Linux support, but they may provide hints about how to use it like they do with their other cards.

This is intriguing... GSMTM? http://www.pcclub.com/edge/
Hardware
I originally opted for the Sierra Wireless Aircard 750. I'm not going to use T-Mobile for voice much and I figured I didn't need one more device to keep charged. (Actually, you can make voice calls using this card; under Linux you might be able to use an approach similar to the what one Linux user did on an Aircard 555.)



Set up the windows software and make sure the card works under windows. This registers the card and also updates the firmware.
Driver
Get the pcmcia files from Sierra Wireless. They also provide some of the config information below but not specifically for T-Mobile's network. Note that a recent pcmcia package may already have these settings in place.
Configuration
These are the main places to get the configuration right. I'm calling my configuration tmobile in these examples...

Regarding "internet2" below in the configuration... from a post by MattPackwood@cs.com:

If you have an "Internet Plan" you can access wap.voicestream.com and internet2.voicestream.com.

If you have the "Pro" or "VPN" service (there is no extra cost for this compared to a "regular Internet Plan") you can access internet3.voicestream.com and wap.voicestream.com (but NOT internet2.voicestream.com!).

So use whatever works, but take note that internet2 will give you "private" IP addresses so there may be some network services that don't work.

/etc/ppp/peers/tmobile:

noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/tmobile"
debug
/dev/ttyS1
57600
defaultroute
noipdefault
user ''
remotename tmobile
ipparam tmobile
crtscts
idle 300

/etc/ppp/chatscripts/tmobile:

ABORT ERROR
'' ATZ
OK AT+cgdcont=1,"IP","internet2.voicestream.com"
OK ATD*99#
CONNECT ''

/etc/ppp/pap-secrets:

(none) * password
'' tmobile

/etc/ppp/resolv/tmobile:

nameserver 216.155.175.40
nameserver 216.155.165.50
You must hardcode the DNS servers this way when using the Sierra card for some reason. Trying to get PPP to discover the servers always made the connection fail for me. You may want to try your own ISP's DNS servers if this one doesn't work.

I suggest you disable image compression on http://getmorespeed.t-mobile.com. You must be using t-mobile DNS in order for getmorespeed to resolve.

/etc/ppp/options:
You MUST disable the lines that give values for lcp-echo-interval and lcp-echo-failure or your connection will always terminate (eg after two minutes). It appears that GPRS providers do not reply to lcp echo requests but pppd normally uses these to determine if the connection is still good.

/etc/apm/event.d/ppp:

#!/bin/sh

# stop and also restore ppp connection

case "$1" in
suspend)
/usr/bin/poff
;;

resume)
(sleep 15 && /sbin/ifconfig eth0 >/dev/null 2>&1 || pon tmobile) &
;;

esac

This script ensures that ppp isn't holding onto the port when the laptop is being suspended. This reduced the need to eject and reinsert the card. The connection will be restored at resume time if no ethernet card is present.
Fire it up
On my Debian box, I just issue

pon tmobile

to get it to run. There are significant delays while the chatscript runs, while it's waiting for a reply to modem commands. Actually if it runs without the pauses, something is probably wrong.

I had a lot of trouble whenever a connection failed. I invariably had to either eject the card and reinsert, restart pcmcia services, or both. The Linux driver seems to get in a strange state especially after a failed connection. The card seems to run hot if it's connected for a while and that's often when I see trouble.

When you fire up ssh, use the -C option to enable compression.
Bluetooth
I also have the Socket communications CF "G" model bluetooth adapter and I've set things up with a Nokia N-Gage. This configuration actually works a lot better than the card above. I get much better coverage and basically no connections hanging. Too bad I didn't try this route first.

I installed bluez from cvs, installed pcmcia-cs from unstable.

I set up a resume script in /etc/apm/event.d/bluetooth that starts and stops the bluetooth card:

#!/bin/sh

# stop and also restore bluetooth

case "$1" in
suspend)
rfcomm release 0
killall hciattach
sleep 2
;;

resume)
# this belongs in pcmcia serial script (?)
hciattach /dev/ttyS1 socket
hciattach /dev/ttyS3 socket
rfcomm bind 0 00:60:57:85:BD:5B 1
;;

esac

Note this stuff really should be in the pcmcia scripts but I hate to make changes to scripts that will be overwritten when I update the pcmcia package. The only problem I see with this for now is that stuff doesn't come up when I start up the machine, only when I resume it. I rarely have to reboot my laptop so it's not much of an issue.

I use a new config in /etc/ppp/peers/tmobile:

noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/tmobile"
debug
/dev/rfcomm0
115200
defaultroute
noipdefault
user ''
remotename tmobile
ipparam tmobile
crtscts

The bluetooth setup is very nice. I never have to think about what card is inserted since I leave the bluetooth card in. Whenever I resume my laptop without an ethernet card inserted, it goes online using my Tmobile connection. I don't even have to think about it any more--it's there when I need it.


References
Tmobile's settings page http://www.t-mobile.com/help/services/tz/configother.asp
Sierra Wireless Linux pcmcia and config files http://www.sierrawireless.com/SupportDownload/ac7x0_linux.asp

GPRS-HOWTO (for some other provider) http://turtiainen.dna.fi/GPRS-HOWTO

Aircard 555 Linux Howto http://centerclick.org/aircard555/
Bluetooth solutions with Linux http://www.jepstone.net/index.cgi/Wireless
Bluetooth solution with MacOS X and Nokia 6310i http://www.mengwong.com/misc/tmo ... -bluetooth-osx.html
Tom's attempts with GPRS+bluetooth log http://www.teaparty.net/technotes/blue-gprs.html
我们在一个世界,却不能真得看到彼此。
回复 支持 反对

使用道具 举报

1208

回帖

24

积分

4678

资产值

白金会员 Rank: 3Rank: 3Rank: 3

注册时间
2003-12-10
银牌荣誉勋章(注册10年以上会员)铜牌荣誉勋章(注册8年以上会员)
 楼主| 发表于 2004-6-22 11:05:02| 字数 11| - 中国–甘肃–兰州 移动 | 显示全部楼层
资料很多,仔细看看吧!
我们在一个世界,却不能真得看到彼此。
回复 支持 反对

使用道具 举报

1208

回帖

24

积分

4678

资产值

白金会员 Rank: 3Rank: 3Rank: 3

注册时间
2003-12-10
银牌荣誉勋章(注册10年以上会员)铜牌荣誉勋章(注册8年以上会员)
 楼主| 发表于 2004-6-22 11:30:06| 字数 7,917| - 中国–甘肃–兰州 移动 | 显示全部楼层
LINUX GPRS HOWTO

Esa Turtiainen (etu@dna.fi)
Jari Arkko (Jari@arkko.com)

15th April, 2001
(Last update 12th March, 2002)


TABLE OF CONTENT

INTRODUCTION
QUICK START
ADVANCED CONFIGURATION
PROBLEMS IN GPRS TO INTERNET CONNECTIONS
PPP PROBLEMS BETWEEN LINUX PPPD AND GPRS CELLULAR TELEPHONE
PARAMETERS IN ERICSSON R520m GPRS PHONE
ERICSSON T39
CAN I CONNECT TWO GPRS TELEPHONES TOGETHER?
SECURITY PROTOCOLS WITH GPRS
COMBINING GSM DATA AND GPRS DATA WITH THE SAME SETUP
ROAMING ABROAD
SOME GPRS TERMS
LINKS
DISCLAIMER


INTRODUCTION

GPRS is a General Packet Radio Service, an add-on to GSM and TDMA cellular
telephone standards used all over the world.  It allows (almost) always-on
Internet connections using GSM (or TDMA) telephones.

You need a GSM (or TDMA) telephone that has GPRS support to use the service
(for example, Ericsson R520m).  Additionally, your operator must support
service and you must subscribe it.

  PC ------ Telephone ------ Operator ------ ISP ------ Internet
      PPP over        IP over   (GGSN)  IP         IP
      IrDA/           several
      Bluetooth/      tunneling
      Serial          protocols)

This howto describes how you can access Internet with your PC using a GPRS
cellular telephone as a modem.  For you, it looks like you call to an ISP
but your telephone handles the connection and on the wireless network there
is just packets.  Actually your telephone has a dual role: it acts like a
modem for you (you discuss with standard modem AT commands to create the
connection) but as well it acts like an ISP modem bank and access server.
Your PPP connection ends already on your telephone and the raw IP packets
are tunneled over the operator network into an ISP (often operator itself).

GPRS is able to relay several protocols but normally you are interested only
in a situation where you use PPP from the PC to the telephone and telephone
tunnels IP packets to an ISP to be delivered to Internet (or operator's WAP
service or your company intranet).

To create a connection, you first communicate with the GPRS cellular
telephone by a simple AT command set (it is exactly like a modem but a
little extended). The call command (ATD) is handled by the telephone and it
starts a PPP connection for you.

After that, the situation looks exactly similar as your computer is
communicating with an ISP modem.


QUICK START

Let's assume that you have an laptop and infrared connection to a GPRS
cellular telephone.  You must have a GPRS subscription and you must know
an APN string used to access Internet from your operator's network.

Now you can start the connection by
1. Configure connection in your telephone using operators
   parameters and CID=2
2. Set up infrared connection between your PC and telephone.
3. Call like to normal ISP using the modem in infrared port,
   use telephone number *98*2#

and that is it.  However, this may require some more explanation and
problem solving.

First, you configure some communication profiles to your GPRS phone. This
saves you some work because after that you refer to those profiles by using
number of the profile to be used (that is called CID). Let's assume that we
are using CID=2 (the default one (1) is often used for WAP connections). The
most important parameter for every connection is a string called APN. That
characterizes where you want to connect.  You have to ask from your operator
what APN to use to access public Internet, in our case it is simply
"internet" (operator is Sonera).  There are different strings to access WAP
gateway or company intranets.

Then you connect the phone.  You can do that with an infrared connection (or
serial cable or Bluetooth). In any case, the phone looks like a modem that
is behind serial cable.

Then you start the connection exactly like calling an ISP.  The easiest way
to connect is to use a special kind of telephone number.  It is:

   *98*2#

This starts PPP/IP connection to your telephone.  Number 2 refers to CID
that you have assigned to accessing Internet on your telephone.  If it is 3,
use telephone number *98*3# instead.  If you use something that looks like a
normal telephone number, you are calling this number using ordinary GSM
data.  Assigning CID numbers is telephone specific and it is explained
later.

Now you have a PPP connection open to your infrared port.  Use it like
you had called an ISP using a modem.  Some tricks may be needed because
the PPP implementation in a cellular telephone is naturally as minimal
as possible.

You likely need get a DNS server address and set it as your operator
recommends before you can resolve DNS names.


ADVANCED CONFIGURATION

The quick call using number *98*2# does not allow you to modify parameters
to your GPRS connection.  A full range of parameters is available if you
use extended AT commands defined in ETSI TR 127 007.

To test these commands, you can try taking a terminal emulator connection to
the telephone.  This works over infrared connection using the serial line
number that is assigned to the infrared connector (IrDA).  (Note that, at
least in Ericsson R520m telephone, telephone does not start PPP negotiation
even after you start a valid connection - it waits for a valid PPP packet
from you.)

The basic GPRS commands start with +CG.  To start a GPRS data connection,
you can use to following instead using *98*2# telephone number (you are not
able to give more commands after this!):

    AT+CGDATA="PPP",2<CR>

Where <CR> is the end of line character "Carrier Return".  Commands are
case insensitive.

Before giving the previous command you can give other commands to set
communication parameters.  Most commands can be used to ask and set
parameters and in some commands you can ask for allowed parameter ranges.
For example:

     AT+CGDCONT?           (ask CID parameters in GPRS cellular phone)
     AT+CGDCONT=...           (set CID parameters in GPRS cellular phone)
     AT+CGDCONT=?           (ask parameter ranges)

+CGDCONT handles those parameters that you normally modify using
GPRS cellular telephone menus.

Command +CGQREQ sets quality parameters for the connection.

Command +CGTFT would set some more interesting parameters in IP
connections but it seems to be not implemented in Ericsson R520m.
It could set for example IPSec encryption.

Note that telephone number *98*2# is handled differently than the normal
telephone numbers in your GPRS cellular telephone.  Nothing happens if you
manually try to call this number using telephone keyboard.

There is another telephone number *99# as well.  It takes more parameters
and allow X.25 etc. data calls. However, if you use PPP/IP communications,
there is not much use of extra parameters in *99# command.

ETSI TR 127 007 is available from ETSI web site http://www.etsi.org by
registering yourself.  It is around 160 pages long.  This document used to
be quite expensive but currently it is freely downloadable.


PROBLEMS IN GPRS TO INTERNET CONNECTIONS

Wireless transport always creates it's own challenges in communications.
GPRS is still first generation of packet based public telecommunications
service.

The worst problem is that the latency is pretty bad.  The best pings are
about one and half seconds. You don't want to use interactive applications
one character at time over GPRS. SSH is especially slow because secure
authentication requires very many round-trip communications.

All the DNS queries, even to the operator DNS server will take more than a
second.  You likely want to put a local DNS cache program to your PC.

In GPRS you are likely behind NAT (Network Address Translation).  All your
connections to Internet seems to come from one operator's computer. That
means for example that IPSec security protocol or H.323 or SIP signaling of
multimedia applications won't work.

Mailer that are based on SMTP do not normally accept any mail due to spamming
misuse or this feature.  Therefore you have to get SMTP mailer address from
your operator to send mail.  Our current provider (Sonera) does not offer
that yet.


PPP PROBLEMS BETWEEN LINUX PPPD AND GPRS CELLULAR TELEPHONE

There are some problems in PPP protocol used in GPRS telephone. (Some of
these notes may be specific to Ericsson R520m telephone.)


Normally you want that you are able to start communications with command

         pppd call gprs

This requires that you put the appropriate line options to file
/etc/ppp/options.ircomm0 (that is used automatically when ppp is started to
/dev/ircomm0).  Note that options in /etc/ppp/options and in ~/.ppprc
interfere with these settings. (Note the evaluation order of these files!)
Additionally the file /etc/ppp/peers/gprs should define the gprs operator
and /etc/chatscripts gprs should define how to make the call.  Naturally,
this is optional and the commands can be given directly as well.

There is no hardware flow control or carrier detection in the GPRS cellular
telephone - at least in infrared protocol.  You must turn them off.  In PPP
option files use options:

      -crtscts
      local

to turn off waiting of carrier detect or flow control signals.

You must use CHAP authentication protocol and check the information in
chap-secrets - although passwords are not necessarily checked in network.
If you turn authentication off, GPRS telephone suggest some protocol that is
not supported in Linux PPP.  This breaks the connection attempt.

The network does not answer Linux PPP echo request.  This means that in the
default configuration the connection will be shut down in about two minutes!
PPP echo requests must be turned off. You must comment out the entries:

        # lcp-echo-interval 30
        # lcp-echo-failure 4
我们在一个世界,却不能真得看到彼此。
回复 支持 反对

使用道具 举报

1208

回帖

24

积分

4678

资产值

白金会员 Rank: 3Rank: 3Rank: 3

注册时间
2003-12-10
银牌荣誉勋章(注册10年以上会员)铜牌荣誉勋章(注册8年以上会员)
 楼主| 发表于 2004-6-22 11:30:58| 字数 7,504| - 中国–甘肃–兰州 移动 | 显示全部楼层
Note that I am not aware how to disable these if they exist in any
PPP configuration file.  Setting them as 0 does not disable them.
If echo is set on in /etc/ppp/options you can not disable them in
/etc/ppp/options.ircomm.

When you debug the connection, you want to add options

     debug debug debug
     nodetach
     
To get interactive messages to console.  Note that you need
to write debug three times to get enough messages.

To optimize connection, you should add packet size to as large as possible.
GPRS is able to handle 1500 byte packets.  Your latency is bad anyhow, so
there is no need to use small packets.  (Actually, it caused a lot problems
when the MTU was changed.  Don't touch the default before you get the
connection up.)

TBD: what is the best compression combination?

A working chatscript (/etc/chatscripts/gprs) is:

........... (TBD)

A working GPRS peer definition (/etc/ppp/peers/gprs) is:

........... (TBD)

And putting all this together you can call Internet through GPRS cellular
telephone by simply writing "pppd call gprs".  You can always check the
connection status by

           % ifconfic ppp0
           ....

Naturally you need plenty of IP parameters right to get connection up but
they are general to any Internet connection. Especially boring is to change
DNS servers in /etc/resolv.conf to those that operator suggests.  (Note that
there is a new feature to fetch DNS servers from network inside PPP protocol
(option usepeerdns) but GPRS does not seem to support that.)


PARAMETERS IN ERICSSON R520m GPRS PHONE

Normally, you left all the connection parameters as defaults except APN.
That means that user name and password are empty (and you don't want to send
password at all) and you don't set fixed IP address.  Quality of service
parameters are normally "as subscribed".

First, you configure some communication profiles to your GPRS phone. This is
necessary as the profiles will be used as we bring up the gprs connection
later. The profiles are referred to by a number called the CID. Typically we
will use either CID=1 or CID=2, maybe most often the latter as the number 1
may have been reserved for WAP. The most important parameter for every
connection is a string called APN, which identifies the network we want to
connect to. You have to ask from your operator what APN to use to access
public Internet, in our case of the Sonera, it is simply "internet".  There
are different strings to access WAP gateway or corporate intranets.

Here's how to set up the profiles for your Ericsson R520m phone. Go to
"Settings" and scroll down to the end of the menu and pick "Data comm.".
Then pick "Data accounts". You might already have a suitable account here,
but if not go ahead and create one. (Typically, a WAP profile would have the
string WAP in its name, and these can't be used.) Creating a new account
happens through pressing "Add account". Here you can simply specify the APN,
the username and password can be left as empty, and everything else to
reasonable defaults. In the case of Sonera, we need to set the APN to
"internet" and the name of the profile should be "INTERNET". As the creation
has been performed, go back to the "Data accounts" menu and pick the account
you just created and press Yes. A menu appears, and you will see at the end
the CID value, typically either 1 or 2. Memorize this.

The init string for the telephone is (from Windows settings file erim520.inf
in associated CD ROM):

        AT &F<cr>
        AT V1E0S0=0&D2&C1<cr>
        AT +CMEE=1<cr>

This looks like more adapted to GSM data connections but we have used the
same one to initialize GPRS connections.

There are some settings where you should set default to GPRS to ensure that
GPRS is used whenever possible.  However, they are not critical in PC use.

Note that in this telephone, infrared connection is not on unless you
disable Bluetooth.  The only warning is that you have just Bluetooth icon on
the display but not infrared icon (although you have enabled infrared).

The only way to know that the GPRS connection is on is to ask status of the
phone, for example using the volume button on the side of the phone.  As the
last line there is a mention on GPRS if it is on.  I don't know any way to
find out how much data you have transferred in the current session.

The telephone is able to run on 115200 kbps in infrared interface.  There is
no need to limit speed of infrared to lower speed like in some other
cellular telephones.

The speed of connection with these settings is around 3.2 kBps (26kbps).
There may be some other settings to increase speed. (It seems that my
operator Sonera has limited the maximum speed to much lower during 2002!)

Ping latencies with GPRS are typically 1.5 to 4 seconds.


ERICSSON T39

There is a problem in Ericsson T39 telephone and current pppd software
in Linux.  Telephone does not do framing right and it breaks the PPP
protocol in Linux.  There is an easy way to circumvent the problem:
add the following line to /etc/modules.conf:

    options ppp_async flag_time=0

This information is from Zoltan Nagy <rnzoli@axelero.hu>. The previous patch
by Tommi Linnakangas (Tommi.Linnakangas@iki.fi) that slowed down the PPP
negotiation is not needed any more.


CAN I CONNECT TWO GPRS TELEPHONES TOGETHER?

Unfortunately no.  All the connections must be started from the
telephone.  You must use servers in the network.

At theory there could be some proxy that could help here but we
are not aware of such an application.


SECURITY PROTOCOLS WITH GPRS

Likely all operators use network address translation or NAT
to change your IP address on the edge of the network.  This
means that standard IPsec protocol does not work with GPRS.
There are extensions that allow that but still they do not
interoperate between different IPsec implementations.  Most
vendors do not support it yet.

SSH works with GPRS but it is quite useless in interactive
use.  All security protocols use challenge-response authentication
that requires several roundtrips.  If packets are lost, timeouts
affect badly performance.  Starting SSH connection requires tens
of secons.


COMBINING GSM DATA AND GPRS DATA WITH THE SAME SETUP

(I am interested in hearing if somebody manages to do that.)


ROAMING ABROAD

When you roam abroad, all the settings should remain the same.
Especially, APN should be globally unique.

With our Sonera connection, roaming to Norway should work but
we have not tried it (yet).  Follow the Sonera links for more
info.


SOME GPRS TERMS

Here are some important GPRS terms.  Some of there are not used in this
howto to keep things simple.  However, you need these if you read any GPRS
descriptions - writers of that kind of material love acronyms. Here are two
groups of terms: important ones for this scenario and less important ones
(network internal terms).

Important terms:

GPRS
        General Packet Radio Service
APN
        Access Point Name.  Name of the ISP, Operator WAP gateway or
        company intranet.
GGSN
        Gateway GPRS Service Node.  Node that relays IP packets to ISP,
        Operator WAP gateway or Company intranet.  APN actually identifies
        one interface in one GGSN.
PDP context
        This is synonym for your IP tunneling connection to ISP
ISP
        Internet Service Provider.  That operator that gives you
        general Internet connectivity, DNS services, email services
        and even your IP address.  Often the same as your GPRS operator
        but not necessarily.
MS
        Mobile Station.  Your cellular telephone.
MT
        Mobile Terminal.  Your PC.


Less important terms:

PDP
        Packet Data Protocol.  (IP in this case.)
IMSI
        International Mobile Subscriber Identity.  Your subscription
        and identity information related to subscription.  There is no
        special GPRS IMSI but it is the same as your GSM IMSI.
GTP
        GPRS Tunneling Protocol.  The protocol used to tunnel IP packets
        from your location (SGSN) to GGSN.
SNDCP
        Subnetwork Dependent Convergence Protocol.  The protocol used to
        tunnel IP packets from your terminal to your location server (SGSN).
SGSN
        Serving GPRS Service Node.  The node that keeps track of you when
        you are on it's location area.


GPRS LINKS

http://www.etsi.org
http://mobileinternet.ericsson.com
http://www.3gpp.org
http://www.mobilegprs.com


OPERATOR LINKS

http://www.qindel.com/gprs
Contains instructions (in Spanish!) how to set up connection to Spanish
cellular operators.

http://www.sonera.fi/gprsasetukset
Contains instruction (in Finnish!) how to set up connection to Finnish
cellular operator Sonera.


DISCLAIMER

Note that although we both work for Ericsson we have not used or even
received any information from Ericsson for this HOWTO.  We just happened to
be among the lucky ones to receive Ericsson R520m telephones among the first
ones and wanted to share the experience.  Terminology used in this howto is
meant for more clarity than accuracy.  Esa is not affiliated with the
Finnish operator DNA - the mail address dna.fi is the older Domestic Network
Association, the operator is dnafinland.fi.
我们在一个世界,却不能真得看到彼此。
回复 支持 反对

使用道具 举报

317

回帖

5

积分

263

资产值

高级会员 Rank: 2Rank: 2

注册时间
2003-8-26
铜牌荣誉勋章(注册8年以上会员)
发表于 2004-7-6 15:27:15| 字数 183| - 中国–山东–济南 联通 | 显示全部楼层

真是faint啊,刚才敲了很长的贴子没有了

Boss又安排任务了,有空再来发。

   主要是去年我在slackware下,用Motorola V730实现了cdma 1x无线上网,同时公司也有AireCard 750,也配置好了。现在我主要用朋友给的一块Symbol无线网卡上wlan。
    机器配置为 IBM r40 +  SLackware + FreeBSD 5.0

      大家有什么这方面的问题,欢迎发到这里来讨论交流。BOSS催了,先闪一会儿。
回复 支持 反对

使用道具 举报

317

回帖

5

积分

263

资产值

高级会员 Rank: 2Rank: 2

注册时间
2003-8-26
铜牌荣誉勋章(注册8年以上会员)
发表于 2004-7-6 15:35:08| 字数 257| - 中国–山东–济南 联通 | 显示全部楼层

另外,哪位有蓝牙设备,我也可以帮你搞定

如T39一类,通过蓝牙、红外口无线上网的方法,大家可以在此交流。只要有设备,我可以很快帮你解决地。呵呵。因为我很少上网查资料,有问题都是自己搞定。

   不知道有没有山东的朋友,我主要是做短信应用的,平时工作主要做市场和业务。哪位有资金,可以来信大家合作一把。 虽然平时主要做市场,但技术上,嘿嘿,应该可以独立解决很多问题地。(实际上,最善于解决技术难题)。不知道我们Boss是如何想的,把我安排跑市场和业务。现在最大的理想,是有机会把自己的想法实现了。

[ Last edited by 快乐玩家 on 2004-7-6 at 15:37 ]
回复 支持 反对

使用道具 举报

289

回帖

0

积分

540

资产值

入门会员 Rank: 1

注册时间
2003-11-29
发表于 2004-7-13 09:42:13| 字数 14| - 中国–广东–广州–番禺区 电信 | 显示全部楼层
gc 75的gprs卡可以么?
无欲则刚!!
回复 支持 反对

使用道具 举报

289

回帖

0

积分

540

资产值

入门会员 Rank: 1

注册时间
2003-11-29
发表于 2004-7-16 15:45:51| 字数 4| - 中国–广东–广州–番禺区 电信 | 显示全部楼层
顶一下.
无欲则刚!!
回复 支持 反对

使用道具 举报

1

回帖

0

积分

17

资产值

入门会员 Rank: 1

注册时间
2004-11-29
发表于 2004-11-29 02:01:17| 字数 887| - 中国–广东–深圳 联通 | 显示全部楼层

just done access of internet with cdma1x-2000 pccard on my thinkpad t42 + fedora

my card is sold by some company in shenzhen but the chip inside shows from QUALCOMM. it costs me about RMB 1200 and bought from the counter of LIANTONG.  the driver gets tooooo bad even on windows, especially after i upgrade the os to winxp/sp2.  very difficult to install the driver -- one must manually install it and have to bear it would often refuse work unless you restart the machine serveral times! also, there is no support for this on the seller's website; because they told me they haven't got enough technicals!

but it seems now being able to run on linux. fedora2 can find the card and install it on ttyS16. but the baudrate is different from windows. on windows, the virtual port report the rate as 230400, however, there can be only 57600 on linux.

setting up dialup is very easy. create a modem connection i.e, cdma, from some gui tool on gnome. then dial using wvdial cdma, i don't know why i cann't dialup using the usual way - ifup cdma.

i noticed one interesting thing is that the dialup never uses the user name and password which means there is no authentication.
回复 支持 反对

使用道具 举报

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

本版积分规则

Powered by Discuz! X3.5 © 2001-2023 Comsenz Inc

GMT+8, 2025-4-20 20:07 , Processed in 0.241716 second(s), 72 queries , Gzip On, OPcache On.

手机版|小黑屋|安卓客户端|iOS客户端|Archiver|备用网址1|备用网址2|在线留言|专门网

返回顶部