Chinaunix首页 | 论坛 | 博客
  • 博客访问: 412507
  • 博文数量: 65
  • 博客积分: 1491
  • 博客等级: 上尉
  • 技术积分: 702
  • 用 户 组: 普通用户
  • 注册时间: 2009-05-30 15:57
文章分类
文章存档

2011年(6)

2010年(12)

2009年(47)

我的朋友

分类: C/C++

2009-05-30 17:27:56


what's it?

   It's also named as "AT Command".

   Details:

Special character

   AT - "Attention": tells the modem that modem-commands follow.
   Z - Resets the modem to its default state.
   CR - Carriage Return character (CR=\r=0x13): a command string is terminated with a Carriage Return character.

Mode

   1,data mode: in which the modem sends the data to the remote modem. (A modem in data mode treats everything it receives from the computer as data and sends it across the phone line).

   2,command mode: in which data is interpreted as commands to the local modem (commands that the local modem should execute).

S-寄存器

()

    调制解调器一般使用记忆存储区域或者S-寄存器来控制其操作环境的信息,S-寄存器是和联合使用的。

    要显示一个S-寄存器里的值,先输入ATSn?(也许是ATSn=?)

    要修改一个S-寄存器的值,先输入ATSn=r (n是该寄存器的序号,r是新值或者新的设置)

Mode切换

    从data mode 到 command mode: 发送(默认)字符串"+++",并pause一秒;

    从command mode 到 data mode: 发送命令ATO.

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