摘要
针对目前市场上的串口服务器都是单串口对单网口的结构,提出了一种多串口对单网口的接口服务器改进方案。以嵌入式单片机S3C6410和以太网卡DM9000搭建硬件平台,充分利用单片机的多个UART、嵌入式操作系统的多线程和多队列缓冲将接收到的多个串口数据排队,最后利用优先级排队算法进行数据处理。通过使用改进型串口服务器进行组网实验,表明利用优先级排队算法的方案具有可行性,单个的改进型串口服务器具备多个传统串口服务器的组网能力。
The structure of the serial device server is a single-serial port to a single-network-port on the market at present,considering this point a improvement project of the serial device server is proposed in this paper which is a kind of multiple-serial port to a single-network-port.We use the embedded microcontroller S3C6410 and Ethernet card DM9000 building hardware platform,take full advantage of the multiple UART of microcontroller,the multithreading of embedded operating system and multiple queue buffer to line the received data of serial,and use priority queuing algorithm for data processing finally.By using modified serial device server for network experiments,it suggests that the project using the priority queue algorithm is feasible.A modified Serial device Server has the networking ability as same as multiple the traditional serial device server.
出处
《工业技术创新》
2016年第3期422-426,共5页
Industrial Technology Innovation