摘 要
1980年起,由于一种状态信息病毒的横空出现,并在一种令人出乎意料的速度下开始繁衍,迫使ARPANET完全停止运行。美国政府的高级研究工程机构(ARPA)给加利福尼亚大学Berkeley分销提供了资金,让他们实现TCP/IP协议。在这个项目中Socket(套接字)横空出世。今天,SOCKET是TCP/IP网络中最为通用的API,也是在INTERNET上进行应用程序开发最为通用的API。
本软件基于Qt Creator编译器,C++语言开发。应用了程序设计技术、网络技术和图形化界面技术。使用了Qt封装好的Network模块和SerialPort模块。本课题的研究内容为,利用socket和串口协议编写TCP/UDP/串口的信息收发工具,以此功能为基础来达到调试设备的目的。本调试助手包括5种设备:TCP服务器设备,TCP客户端设备,UDP服务器设备,UDP客户端设备,串口设备。每个模块代表一个类型的设备。用户可创建多个类型的设备或者创建同一类型的多个设备。每种类型设备均可进行数据的收发。在发送数据时可设置数据格式为ASCII或Hex数据,支持单次发送和定时多次发送。支持数据文件导出等功能。TCP服务器用采用多线程来连接客户端。本软件的亮点在于集成了TCP,UDP,串口的调试功能,可提高学习和工作的效率。使本软件的面向群体更加广泛。通过测试,本软件界面美观,操作简单,功能模块一目了然,运行也比较稳定,可以广泛使用。
关键词:Qt;调试助手;TCP;UDP;串口通信
ABSTRACT
In the early 1980s, ARPANET was stopped completely due to an unexpected self-reproduction of a state information virus. The US Government's Advanced Research Engineering Agency (ARPA) has funded the University of California, Berkeley Distribution, enabling them to implement the TCP / IP protocol. Socket was born in this project. Today, SOCKET is the most common API in TCP / IP networks and the most common API for application development on the Internet.
This software is based on Qt Creator compiler and C ++ language development. Application of programming technology, network technology and graphical interface technology. Qt packaged Network module and SerialPort module are used. The research content of this subject is to use the socket and serial port protocols to write TCP / UDP / serial port information receiving and sending tools, and use this function as the basis to achieve the purpose of debugging equipment. The software includes 5 modules: TCP server, TCP client, UDP server, UDP client, serial port. Each module represents a type of device. Users can create multiple types of devices or multiple devices of the same type. Each type of device can send and receive data. When sending data, the data format can be set to ASCII or Hex data, which supports single transmission and timed multiple transmission. Supports data file export and other functions. The TCP server uses multiple threads to connect to the client. The highlight of this software is the integration of TCP, UDP, serial port debugging functions, which can improve the efficiency of learning and work. Make the software more community-oriented. Through testing, the software has a beautiful interface, simple operation, clear function modules at a glance, stable operation, and can be widely used.
Key words:Qt;Commissioning assistant;TCP;UDP;Serial communicatio