Font Size: a A A

The Software Design Of Embedded Network Controller Based On RT-Thread

Posted on:2020-03-01Degree:MasterType:Thesis
Country:ChinaCandidate:J XingFull Text:PDF
GTID:2428330572969899Subject:Electronics and Communications Engineering
Abstract/Summary:PDF Full Text Request
The contemporary world is facing a new round of industrial reform,embedded technology must also be combined with the Internet,and further tend to intelligent.Iin accordance with this trend,this paper designs an embedded network controller based on RT-Thread.The software design is divided into two parts,namely the controller and the computer.Its aim is to provide users with a platform for secondary development and realize real-time control and data collection of small devices.In tenns of software design of the controller,the software framework of the controller is divided into tour layers:user layer,user layer,API layer,RT-Thread layer and driver layer.Aimins at the disadvantages of poor portability,low scalability and low real-time performance of the embedded development process in the past,this design is based on RT-Thread real-time operatins system and applies the multi-thread workina mode to improve the portability and real-time performance of the embedded controller.On the other hand,for the needs of users' secondary development,this paper encapsulates the function library for users and designs the API for users to call.Among them,aiming at the situation that the user does not know the trapezoidal diagram programming language,the programmable logic control API is designed,and the output interface of digital value is designed.The method of node connection logic recognition is adopted,so that the user can directly set the parameters of this kind of API and finally realize his own circuit logic on the controller.In addition,the system clock for high-precision time sampling is used,to realize the PID algorithm control,the user calls the PID algorithm control API.the output of real-time regulation can be achieved after the configuration of the parameters,then realize automatic control.In addition,in order to comply with the trend of next generation Internet,and to satisfy the need of users,that the user can be offered a real-time data acquisition from the controller,the network communication module designed in this paper supports IPv4/IPv6 protocol,the embedded network controller is designed as a server side based on the TCP,using concurrent multi-threaded server model for software design,and realize that the multiple clients can have a data acquisition and a monitoring of the controller through the network communication.In terms of the PC software design,in order to meet the needs of users for real-time observation and storage of data collected by the controller,this paper selects C#language.adopts Winform framework,introduces Iocomp external industrial control library,and designs the UI interface of the computer software.In addition,In order to provide users with intuitive data observation function ald convenient data processing function,the design realizes the data display and graphic display functions,and realizes the dynamic and static analysis of data through real-time sending and receiving of the data.In addition.SQLite embedded database is used for data storage and data reprocessing.Finally,the user can collect and monitor the data of the external devices from the controller through the computer.Finally,the embedded network controller is tested for the programmable logic control function of the controller,the data acquisition and monitoring function of the computer and the overall network communication function.The test results verify the practical application value of the embedded network controller designed in this paper.
Keywords/Search Tags:RT-Thread, embedded network controller, programmable logic control, PID control, data acquisition system
PDF Full Text Request
Related items