SIM800 系列模块 TCPIP 协议 AT 命令使用手册
V1.00 4 1130.2011
目 录
版本历史..................................................................................................................................................3
第 1 章 概述............................................................................................................................................6
1.1 文档范围.......................................................................................................................................6
1.2 相关资料.......................................................................................................................................6
第 2 章 TCPIP协议命令列表 .................................................................................................................7
2.1 TCPIP主要特点 .........................................................................................................................7
2.2 TCPIP协议命令列表 .................................................................................................................7
第 3 章 详细命令描述 ............................................................................................................................8
3.1 GSM网络注册信息 ...................................................................................................................8
3.1.1 AT+CREG 网络注册信息 ...................................................................................................8
3.1.2 实例查询GSM网络状态 .......................................................................................................9
3.2 GPRS网络注册信息..................................................................................................................9
3.2.1 AT+CGREG GPRS网络注册状态.......................................................................................9
3.2.2 实例查询GPRS网络状态....................................................................................................10
3.3 AT+CGATT 附着和分离GPRS业务 ....................................................................................11
3.4 TCPIP协议应用方式 ...............................................................................................................11
3.4.1 AT+CIPMUX配置应用方式 ................................................................................................11
3.4.2 实例TCPIP应用方法............................................................................................................12
3.5 建立TCP或UDP连接..............................................................................................................12
3.5.1 AT+CIPSTART 建立TCP连接或UDP连接.......................................................................12
3.5.2 实例建立TCP连接或UDP连接...........................................................................................14
3.6 TCP或UDP数据发送方法.......................................................................................................15
3.6.1 AT+CIPSEND 发送数据 .....................................................................................................15
3.5.2 实例数据发送方法..............................................................................................................17
3.6 关闭TCP或UDP连接...............................................................................................................17
3.6.1 AT+CIPCLOSE 关闭TCP或UDP连接 .............................................................................17
3.6.2 AT+CIPSHUT 关闭移动场景 ...........................................................................................18
3.6.3 实例关闭连接及移动场景...................................................................................................18
3.7 AT+CSTT 启动任务并设置接入点APN、用户名、密码..................................................18
3.8 AT+CIICR 激活移动场景(或 发起GPRS 或CSD无线连接) ............................................19
3.9 AT+CIFSR 获得本地IP地址 ................................................................................................19
3.10 AT+CIPSTATUS 查询当前连接状态.................................................................................20
3.11 AT+CDNSCFG 配置域名服务器DNS...............................................................................21
3.12 AT+CDNSGIP 域名解析....................................................................................................22
3.13 AT+CIPHEAD 设置接收数据是是否显示IP头 ................................................................22
3.14 AT+CIPATS 设置自动发送数据的时间 ............................................................................23
3.15 AT+CIPSPRT 设置发送数据时是否显示 ‘>’ 和send ok.................................................23
3.16 AT+CIPSERVER 配置为服务器........................................................................................24
3.17 AT+CLPORT 设置本地端口号 ..........................................................................................25
3.18 AT+CIPCSGP 设置为CSD或GPRS连接模式 ...................................................................26
3.19 AT+CIPSRIP 设置接收数据时是否显示发送方的IP地址和端口号 ...............................27
3.20 AT+CIPDPDP 设置是否检查GPRS网络时间状态 ...........................................................27