随着网络技术的发展,工业控制等应用场合对通信数据的实时性和可操作性提出了很高的要求.RS-232总线作为通信场合中常用的外部总线,存在着传输距离有限、传输速率慢的缺点.为了解决上述弊端,采用PIC网络单片机,针对TCP/IP协议栈中TCP、HTTP等相关协议部分进行修改,设计出HTTP与RS-232协议转换器,实现了TCP/IP协议与串行通信协议数据包的相互转换,并通过AJEX、CGI技术以及以太网中的相关服务达到动态配置网络参数的目的.%With the development of the technology of network, many applications have a highly requirement about real - time and operability of communication data. As a common communication interface , RS - 232 has a defect of short transmission distance and low transmission rate. In order to solve the defect is conveyed above, a design idea of protocol converter worked between HTTP and RS - 232 Bus by using PIC single chip and modifying TCP、HTTP and other relevant protocols in the TCP/IP Stack is introduced in this paper. This converter could execute data pockets transformation between these two protocols and solves some defects as showed above and configure net parameters dynamically through AJAX,CGI and relevant services of Ethernet.
展开▼