Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4194056
  • 博文数量: 776
  • 博客积分: 13014
  • 博客等级: 上将
  • 技术积分: 10391
  • 用 户 组: 普通用户
  • 注册时间: 2010-02-22 17:00
文章分类

全部博文(776)

文章存档

2015年(55)

2014年(43)

2013年(147)

2012年(20)

2011年(82)

2010年(429)

分类:

2010-06-26 15:18:47

1.             开机

2.             发短信

 

2.1 设置短消息中心(必须首先设置)

AT+CSCA=“+8613800270500”回车(具体的号码由当地的运营商决定。)

 

2.2 发英文短信

AT+CMGF=1回车(采用文本格式发送,如用PDU格式,则AT+CMGF=0)
AT+CMGS=“+8613xxxxxxxxx”
回车

>
输入短消息。Crtl+Z结束并发送。

 

2.3 发中文

以下例子发送你好13912345678
发送数据是:你好
Unicode译码为:4F60597D 

AT+CMGS=019 //15PDU 规约头固定长度15 字节)+4(报文长度个字节)
> 0011000D91683119325476F8000801044F60597D [ctrl-Z]
00 //SCA预留
11 // FO 设置PDU 类型
00 // MR 发送参考号
0D //DA 目的号码长度
91 //DA 目的号码类型
68 //DA 中国的区号
3119325476F8 //DA 目的号码编码
00 // PID 发送方式
08 //DCS 编码模式
01 //VP 有效期
PDU 中用户数据前的PDU 头的长度是15 字节
04 //UDL 数据长度
4F60597D //UD 数据内容Unicode 译码

 

-- 其中绿色底色的部分在编程时动态添加。

 

3.             打电话

ATD 拨号命令。这个命令用来设置通话、数据或传真呼叫。
ATD13844019770;
ATH
挂机命令。

ATA
接电话。

 

4.             上网

使用pppd上网(只是上网方式中的一种,其他方式如:NetWorkManagerKPPP)

To connect using the manual pppd method you will need to download the pppd scripts .

1. Navigate to the directory that contains pppd-scripts.tar.gz and extract it to the default location by typing the following commands:
$ cd "directory"
$ tar -zxf pppd-scripts.tar.gz

2. Switch to root and copy the files to the ppp/peers directory by typing the following commands:
# su
# cp -r ./ppp /etc/
# cd /etc/ppp
# chmod a+x ip-up.local ip-down.local

3. If using a GSM/UMTS device follow these steps to set the authentication settings; otherwise, skip this step:

a. # cd /etc/ppp/peers

b. # vi ./gsm_chat (You may use other editing programs such as emacs or gedit to edit the script)

c. Go to the APN section and replace the listed APN with that of your service provider (e.g. If your service provider is AT&T, you would type in isp.cingular).

d. There are a few sample APN lines listed in the script that can be tried.

e. Save and exit.

4. Test the connection by typing the following command (you may need to use the root account to run pppd):

a. For CDMA devices:
# pppd call cdma

b. For GSM/UMTS devices:
# pppd call gsm

c. For Aircard 885E, MC8785, C885 devices:
# pppd call gsm885

5. If the connection test is not successful; further authentication may be required.

a. # vi ./gsm (You can use other editing programs such as emacs or gedit)

b. Put a '#' next to the "noauth" line (this disables the line).

c. Remove the '#' next to the user and password lines.

d. Type in the appropriate user name and password. (Contact your service provider if you do not know what these are.)

e. Some pppd version may not correctly set up the dynamic DNS configuration. It may be necessary to copy or link /etc/ppp/resolv.conf to /etc/resolv.conf.

 

  

阅读(1716) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~