Preface
At present, in most remote measurement and control systems, the hardware of the system uses 8/16-bit single-chip microcomputers, and the software is mostly programmed in assembly language, which only contains a simple loop processing control flow; the communication between single-chip microcomputers (or host computers) is formed through RS232, RS485 or CAN bus to form a local area network, and then the PC is used as a Web server to communicate with the Internet. Such remote measurement and control equipment is costly, large, slow, and consumes a lot of power. Now, the price of 32-bit embedded CPUs has dropped, and the performance indicators have also improved, providing possibilities for the widespread application of embedded systems. Based on the above situation, we apply embedded systems to remote measurement and control systems, which greatly improves the performance of the measurement and control system, while reducing costs and power consumption, and greatly reducing the size.
Embedded systems are generally developed using embedded operating systems. In the selection of embedded operating systems, Linux has complete open source code, so it has the characteristics of modifying and optimizing the system, stable kernel, applicable to multiple CPUs and multiple hardware platforms, and supporting networks, so it is better to choose Linux as an embedded operating system. The embedded remote measurement and control system based on ARMlinux proposed in this paper can not only realize local data acquisition and control, but also realize remote measurement and control tasks.
1. Hardware system
The hardware system is shown in Figure 1. S3C2410 contains a 16/32-bit Risc (ARM920T) CPU core with a main frequency of 200Hz, an 8-channel 10-bit AD converter and a large number of I/O ports, LCD controller and other rich interfaces. It can run Ucosll, ARMlinux and Wince embedded operating systems. DM 9OOO is a 10M/100M Ethernet interface control chip. This hardware system has a simple structure and low cost, and can directly access the Internet without a PC.
2. Software system
The embedded operating system is the core of the entire embedded system. This system uses the ARMlinux system. Since the storage capacity of the embedded system is very small, the ARMLinux operating system must be tailored to fit into the limited memory. Many materials have discussed this, so I will not repeat it here. The following mainly introduces the remote measurement and control software design based on the operating system. Its architecture is shown in Figure 2.
2.1 Web server based on Boa
There are three main web servers for embedded Linux: Hapd, Thttpd and Boa. Httpd is the simplest web server. It has the weakest function and does not support authentication or CG1. Both Thttpd and Boa support authentication, CGI, etc., and have relatively complete functions. Boa is a small single-task Httpd server with open source code and excellent performance, which is particularly suitable for application in embedded systems. The following introduces the porting and compilation of Boa.
For embedded Linux with MMU, after downloading Boa to the Redhat host, unzip it to any directory, and then modify the compiler in Boa/src/Makefde. For example:
CC=/opfhosfarmv41/bin/armv41—unkllown—linux—gcc
CPP=/opt/host/army41/bin/armv41—unknown—linux—g++
After that, just execute make in the Boa/src directory to generate the Boa executable file. Copy it to the bin directory of the ramdisk mount directory, add the configuration file and HTML/CGI file, and then redo the ramdisk. [page]
Figure 3 Experimental results
3. Test results
First, build an embedded development environment based on S3C2410, burn the compiled booloader, embedded Linux kernel and ramdisk into Flash, then start the Boa server, enter the IP address of the embedded system in the browser of the PC, and the web page shown in Figure 3 will be displayed. By clicking slow, medium and high speeds, and then clicking OK, the flashing of the LED on the measurement and control board changes from slow to fast, and the design goal is successfully achieved.
4. Conclusion
The remote measurement and control system based on ARMLinux developed by us has truly realized remote measurement and control through the Internet. It has the performance of a general platform and is particularly suitable for home appliance network monitoring and remote industrial control with low real-time requirements. Of course, with the improvement of hardware and network speed and the improvement of the real-time performance of the operating system, the performance of this measurement and control system will be greatly improved, so it has a good application prospect.
Previous article:Application of ProteuS in ARM system design
Next article:The transplantation design of uC/OS based on ARM microprocessor
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Emergency help--Drive material preparation, manufacturing process, and operation process knowledge
- Summary of Verilog non-synthesizable statements...
- Initialization operations required for C51 microcontroller to output printf
- Please analyze the function and principle of this circuit.
- [Exploration of RTOS and Linux controller cycloneDDS communication and encryption protection] A preliminary study of AC6 development environment
- How to achieve low power consumption when porting a program from MSP430FR4133 to MSP430FR6972?
- The latest proteus 8.9sp2
- Bidirectional 400V-12V DC/DC Converter Reference Design
- 6G is on the way, what is the terahertz technology behind it?
- 100W24v output board, change to 12V output