摘要
AT命令广泛应用于各种无线通信移动台及控制终端,基于其字符串特性及正则表达式处理字符串的优异能力,设计并实现了一款与所在设备无关的AT命令协议栈以及协议栈的架构、AT命令的正则表达式模式字符串和表驱动AT命令处理机制,介绍了AT命令及正则表达式的基本概念及使用方法,极大地简化了程序设计和提高了程序的可维护性,通过实际应用证明了AT命令协议栈的可用性及易用性。
The AT command is widely used in all kinds of wireless communication mobile station and control terminal. Based on its character string features and the excellent string processing capability of regular expression, this paper designs and implements an AT command protocol stack independent of device, and introduces the protocol stack architecture, AT command string expression pattern and table-driven AT command handling mechanism. The basic concept and application method of AT command regular expression are described. The proposed AT command protocol stack simplifies the procedure design and improves the program maintainability. The practical application proves the availability and usability of this protocol stack.
出处
《计算机与网络》
2015年第15期44-47,共4页
Computer & Network
基金
2010年度电子信息产业发展基金第一批项目(工信部财[2010]301号)城市轨道交通专业通信和指挥调度系统应用示范
关键词
AT命令
正则表达式
协议栈
表驱动
AT command
regular expression
protocol stack
table-driven