Firstly multiplexing system cut off the trunk line of the remote process control RS485,and pided which into two domains.Then TCP / IP data with different RS485 protocols formats is transmitted over Ethernet [4] between regions withoutdamaging the raw data, while other RS485 applications can also be added. Principle structure over Ethernet is shown in Fig.2, the ID number begin with # code in the Fig.2 represents the existing different RS485 system in industrial and mining enterprises, dotted lines represent virtual circuits after different RS485 transmit over Ethernet, which is similar to virtual communication between peer-to-peer layer based on TCP/IP.As can be seen from the figure, RS485 system can access to the Internet architecture by this structure,by this way the kind of communication based on IP without domain is achieved.The advantage of this architecture is no limitation to communication distance, communication speed and  protocol types. 

 It’s necessary to design application layer protocol format because multiple different RS485 can make peer-to-peer communication using TCP/IP data over Ethernet. Application layer protocol format is shown in Fig.3, the code format can complete the RS485 communication between corresponding entities [5].In the protocol format,command, parameters and priority level each occupy one byte, the contents occupy 1024 bytes.About the specific definition of protocol format is shown in Tab.1. The command is 0x22 when communication between the RS485 entities defined in Tab.1.The command changed accordingly if need to set the interface parameter value. Parameters bytes can represent 256 different interface number, priority level bytes can represent 256 priority, higher the number, the higher the priority, the content bytes represent the raw data transmitted between RS485 entities or the value when configure the interface parameter. In the design of the data protocol format, by selecting the appropriate content size and packaging UDP,maximum 

response time is set.At the same time multiplexing system deal with each I/O buffer data by descending priority sequence to meet the communication structural requirements. 

V. SYSTEM DESIGN OVER ETHERNET Design over Ethernet adopts two modes co-existing of client and server to deal with multiple RS485 serial port raw data.The client mode receives the raw data of the RS485 serial port, packages data, sends packaged UDP data; the server mode receives UDP data, unpacks protocol data, sends uncompressed data to the serial port specified by the protocol number. UDP headers contain fewer bytes and its response speed is very fast but consume less load and resources than the TCP, so it is very adapted to the transport layer protocol above IP.  Multiplexing system requires fast and efficient multiple I/O handling, which commonly adopts the blocking and nonblocking I /O operation mode [6-7].But for more complex I/O operation, the two models are often inadequate. I/O multiplexing is adapted to multiple I/O efficient access.The two I/O modes are on the contrary, non-blocking I/O mode allows multiplexing hung itself up, and which can know it immediately , correctly and efficiently deal with the I/O once one or more I/O conditions occurred, which simultaneously avoiding multithreading resources is took up too much as blocking and round robin resources. Multiplexing and demultiplexing flow chart based on I/O is shown in Figure 4. Multi-thread multiplexing and demultiplexing structure based on the blocking I/O type is also designed, whose flow chart is shown in Fig.5. Contrast with I/O multiplexing,multi-thread multiplexing based on blocking I/O whose performance and efficiency are not more than I/O multiplexing,especially in many I/O case ,in which more thread need to be opened and more system resources are took up.

Aim at RS485 communication protocol are nonstandardized and transmission line can not be multiplexed, this paper achieve the technology of RS485 over Ethernet which allows multiple  different RS485 transparently transmit TCP/IP data by Ethernet and multiplexed to one line. In this paper, start with line multiplexing, design framework model of the 

上一篇:直流电动机调速控制英文文献和中文翻译
下一篇:水辅助注塑系统英文文献和中文翻译

AngularJS技术介绍英文文献和中文翻译

RANSAC算法全景图像拼接关键技术研究+源程序

模拟退火技术来设计英文文献和中文翻译

数字通信技术在塑料挤出...

快速成型制造技术英文文献和中文翻译

数控技术和设备的发展趋...

CAE技术在车辆安全性应用英文文献和中文翻译

提高教育质量,构建大學生...

酵母菌发酵生产天然香料...

上海居民的社会参与研究

AES算法GPU协处理下分组加...

浅论职工思想政治工作茬...

压疮高危人群的标准化中...

从政策角度谈黑龙江對俄...

浅谈高校行政管理人员的...

基于Joomla平台的计算机学院网站设计与开发

STC89C52单片机NRF24L01的无线病房呼叫系统设计