Analyze the design of general industrial control hardware platform based on ARM and Linux

Publisher:breakthrough3Latest update time:2021-06-10 Source: eefocusKeywords:ARM Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere


2 PC simulator development environment construction

Create your own development directory, unzip the files libminigui-1.3.3.tar.gz and minigui-res-1.3.3.tar.gz; compile and install the library file libminigui required for MiniGUI to run; install the resource file minigui-res-1.3.3; modify the /etc/ld.so.conf file, add a line /usr/local/lib, and then execute [root]# ldconfig to modify the minigui configuration file according to the hardware platform configuration and development environment settings, including modifying the path, screen resolution, etc.

After the PC simulator development environment is set up, you can develop applications on the PC and execute them in qvfb. After verifying the correctness of the program, you can cross-compile, download and run it.


3 Cross-compile Minigui1.3.3

Unzip the arm-Linux-2.95.3.bz2 file to install the cross-compilation tool? cross-2.95.3, modify it after installation. bashrc script, set the environment variable: PATH="$PATH:/sbin:/usr/local/arm/2.95.3/bin:/usr/local/bin:/usr/local".

Next, install the zlib library, png library, and libttf library in turn. Their functions are: compilation basis for other libraries, displaying PNG graphics, and displaying text. After completing the cross-compilation of the above additional libraries, you can compile libminigui. Copy the corresponding library in /usr/local/arm/2.95.3/arm-Linux/lib to the /usr/lib directory of the target board. When copying, execute the arm-Linux-strip command on the library file to remove the debugging information in the file. At the same time, copy the resource file to the /usr/local/lib directory of the target platform. In this way, the cross-compilation work is completed, and the application debugged on the PC can be downloaded to the target hardware platform for application.


Human-machine interface development for general industrial control platform

1 Human-computer interaction interface requirements analysis and overall design

The universal industrial control platform communication human-computer interaction interface is a human-computer interaction platform that integrates function demonstration, information collection, equipment status, communication interaction and other functions. It can efficiently and intuitively display the basic information of the universal industrial control platform, while effectively guiding the user's operation and improving the efficiency of use. It is the main way for users to interact with the universal industrial control platform.


The human-computer interaction interface display uses a 14-inch color display screen from PHILIPS. The software operating environment uses the embedded operating system Linux 2.6.21 and the GUI development environment MiniGUI 1.3.3. The entire software design process needs to complete the following functions:

(1) Display the specific information of the platform and the information of other industrial control equipment online in this network in real time;

(2) Using the platform as a controller, multi-threaded information collection and control of other common online devices in the network can be realized;

(3) Real-time control of the industrial control network using UDP and RS485 communication methods;

(4) Automatically disconnect industrial control equipment when it goes offline to prevent users from operating it incorrectly;


The general industrial control platform communication human-machine interaction interface is mainly based on the Modbus protocol to complete the function demonstration, information collection, equipment status, and communication interaction functions in the industrial control system for the two networking modes of UDP and RS485. The design requires simplicity, practicality, and easy operation. A complex interface will bring unnecessary overhead and affect performance. The overall design scheme and effect diagram of the human-machine interaction interface are set according to the demand analysis as shown in Figures 3 and 4.


Figure 3 Overall design of human-computer interaction interface


Figure 4 Overall effect diagram


2 Interface design process

The interface design process using MiniGUI is shown in Figure 5.

Figure 5 Interface design process


Communication implementation scheme based on industrial measurement and control Modbuss protocol

A good industrial control platform must have the function of efficient communication to keep up with the requirements of industrial development. The general industrial control platform designed in this paper can be used as a control center to collect and control data from other devices in the communication network, including typical digital-to-analog conversion equipment, analog-to-digital conversion equipment, digital quantity equipment, etc. in the industrial control field, so as to keep abreast of the situation of each work site at any time. Since the Modbus protocol is a standard communication protocol in the field of industrial measurement and control, the protocol is simple and widely used, so the design of the communication software of this platform adopts the Modbus protocol. The common networking methods in the field of industrial measurement and control mainly include UDP and RS485, which occupy a certain position in industrial networking with their own unique advantages. In order to achieve the design goal of the universality of the industrial control platform, this platform integrates the two networking methods into the communication human-computer interaction interface. Figure 6 is the topological structure diagram of the communication of this platform.


Figure 6 Communication topology


summary

In the development process of the general industrial control platform based on ARM and Linux, the hardware platform selects the appropriate ARM microprocessor AT91RM9200 and expands its peripheral components to adapt to the more abundant technical requirements of the current industrial control site, and combines fieldbus technology to expand a variety of communication interfaces to meet the communication needs of users; the software platform uses Linux, the most widely used operating system in the embedded field, and builds a cross-compilation environment at the same time, and makes full use of open source software. Based on the MiniGUI developed based on the graphical interface, an industrial control human-computer interaction interface based on UDP and RS485 two communication structures is designed for the bus protocol Modbus in the industrial control field, realizing a general industrial control platform based on ARM and Linux with strong network communication capabilities and rich interfaces as technical indicators.


The main features of this general industrial control platform are:

(1) Rich hardware interfaces to meet various needs in the field of industrial measurement and control;

(2) Use 3U slots to enhance versatility and expandability;

(3) Based on the Linux operating system and MiniGUI graphical interface development environment, the human-computer interaction interface is friendly and convenient;

(4) The industrial measurement and control Modbus communication protocol is adopted, and the communication topology is constructed based on serial RS485 and network UDP. It has a wide range of applications, reliable performance and high real-time performance.


[1] [2]
Keywords:ARM Reference address:Analyze the design of general industrial control hardware platform based on ARM and Linux

Previous article:Establishment of ARM/uClinux development environment
Next article:Talking about the mutual growth of myself and ARM

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号