Design of remote monitoring module based on embedded Linux and Arm

Publisher:阳关三迭Latest update time:2011-06-22 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Introduction
Embedded systems are application-centric, computer-based systems with tailorable software and hardware to meet the strict requirements of application systems for functions, reliability, cost, volume, and power consumption. Among them, the design of remote configuration modules based on embedded Linux has attracted more and more attention. Through the design of remote configuration modules based on embedded Linux, remote experts and related technicians can monitor the operating status of devices connected to the server from any node on the Internet and perform operation modifications. The
main function of the system is to enable remote experts and related technicians to monitor the operating status of multiple devices through the client side of the system in different locations through computers. The server side of the system on the device side not only undertakes some tasks of real-time detection of system status, but also needs to save these recorded information and process the requests issued by the client software accordingly. The system has expanded the network card module, input and output signal interface and other modules in hardware to meet the needs of remote control.


1 System hardware design
This system uses Samsung's S3C44BOX ARM7TDMI core as the microprocessor chip. The system hardware framework structure diagram is shown in Figure 1, and its circuit schematic diagram is shown in Figure 2.

1.1 Storage Module Design
The system's FLASH uses HY29LV160, with a capacity of 2M bytes, which serves as the program memory of S3C44BOX. It stores boot code, uclinux kernel, Ethernet MAC address, and application programs. The single-chip storage capacity of HY29LV160 is 16M bits (2M bytes), the operating voltage is 2.7V~3.6V, and it uses 48-pin TSOP package or 48-pin FBGA package. It has a 16-bit data width and can work in 8-bit (byte mode) or 16-bit (word mode) data width. In the design process of this system, considering that the maximum capacity of the uclinux operating system with application programs will not exceed 1_7 MB, the FLASH memory with a size of 2MB can meet the system requirements. The DRAM uses HY57V641620, which is used to set the program stack and store various variables. The storage capacity of HY57V641620 is 4 groups x 16 M bits (8 M bytes), and the operating voltage is 3.3 V. According to the system requirements, a 16-bit or 32-bit SDRAM memory system can be constructed. However, in order to give full play to the data processing capability of the 32-bit CPU, the system uses a 32-bit SDRAM memory system with a total of 16 MB of SDRAM space, which can meet the operating requirements of embedded operating systems and various relatively complex algorithms.
1.2 Network interface module design
The network interface chip of the system is RTL8019AS. It is a 10 M Ethernet chip that can provide Ethernet access for the system. The data bus width of RTL8019AS is 16 bits. Therefore, the IOCS16B pin is pulled up in the design. RTL8019AS integrates two RAMs. One is 16 kB, with an address of 0x4000-7FFF; the other is 32 bytes, with an address of 0x0000-0x001F. 16k RAM is used as a buffer for sending and receiving data. Generally, 0x4000-0x46FF is used as a sending buffer, and 0x4700-0x7FFF is used as a receiving buffer. The interrupt output INTO of RTL8019 is connected to the EINTO terminal of S3C44BOX. In this way, the external interrupt O of the processor can be used to report the current operation of CPURTL8019AS, such as sending and receiving data, error exceptions, etc. The system can query the value of the internal register ISR of RTL8019 to obtain the operating status of the system for reading. [page]

I0S2 is pulled up, and the others are left floating. When the pin of RTL8019AS is left floating, the input state of the pin is low level. There is a 100 kΩ pull-down resistor inside, so IOSO, IOSI, and I0S3 are all low level, and the I/0 base address of the chip is 200H. Chip select AEN is connected to nGCS5 of the processor, which is Bank5, so the address range allocated by RTL8019 in the system is: 0xoa000000—0xoc000000. Since the data bus width is 16 bits, the A1 of the processor is connected to the SA0 of 8019, so for the processor, the I/0 base address of RTL8019AS is 0XOA000400H. 20F001 is a network card filter, which contains a pair of low-pass filters and a pair of isolation transformers. It is directly connected to the RJ45 crystal socket.


2 Construction of system software platform
After modifying the standard Linux kernel, uclinux has formed a highly optimized and compact embedded Linux. Although it is small in size, uclinux still retains most of the advantages of Linux: stability, good portability, excellent network functions, complete support for various file systems, and standard and rich APIs, which are suitable for the establishment of remote configuration modules. Therefore, the remote configuration module is based on uclinux to establish the system software platform.
The system uses the GNU suite arm-elf tool chain: arm-elf-tools-20030314. sh to establish a cross environment for compiling uclinux. Copy arm-elf-tools-20030314. sh to the root directory and run the installation:
sh arm-elf-tools-20030314. sh to compile and port uclinux .
After the cross compilation is successful, the images directory is generated under the uClinux-dist/directory, which contains 3 binary files: image. ram, image. rom and romfs. img.


3 System software design
The system software is the core of the remote configuration module. First, the bootloader process is written to optimize the execution of the system on the development board, and then the application and device driver development are implemented. The application development is mainly based on the writing of the socket application. In the process of socket implementation, this system uses xml files to configure device driver parameters.
3.1 Bootloader design
The design of the bootloader is mainly to jump the system program execution to the execution location of the system kernel after the system is powered on and reset. For this main function, the kernel and other parts of the microprocessor must be initialized and other functions must be expanded. The bootloader mainly completes the following processes:
(1) Establish an interrupt vector table
(2) Initialize various processor modes
(3) Introduce special variables
(4) Initialize memory
(5) Code copy
After completing the system hardware initialization process, the CPU usage right is handed over
to the operating system, thus completing the ultimate purpose of the bootloader.
3.2 Device driver development
Linux operation of devices The Linux system accesses devices just like accessing files
. For example, to open a device, use the system call open()

Reference address:Design of remote monitoring module based on embedded Linux and Arm

Previous article:ARM virtual development based on Proteus
Next article:Design of computer embroidery machine control system based on ARM and FPGA

Recommended ReadingLatest update time:2024-11-17 00:17

【Embedded Linux+ARM】Memory controller (operating SDRAM)
1. Storage Controller Introduction The "Storage Manager" in s3c2440 provides the signals needed to access external devices and has the following features: 1. Support little endian and big endian (selected by software) 2. Each bank is 128M, there are 8 banks in total, totaling 1G 3.BANK0~BANK5 can support exter
[Microcontroller]
【Embedded Linux+ARM】Memory controller (operating SDRAM)
Design of thermistor thermometer based on ARM7TDMI-S microprocessor LPC2142
Traditional thermistor thermometers are mostly composed of ordinary single-chip microcomputers (MCS-51 series) + A/D converters and LED display modules. They have many discrete components, high power consumption, complex design and are difficult to debug. Software is also mostly implemented in lengthy and cumbersome
[Microcontroller]
Design of RFID access control system based on ARM
Automation, informatization and intelligence have become the needs of the development of the times. Since the 21st century, unlimited technology and computer technology have continued to develop in depth, and the Internet of Things industry is booming. The access control system based on RFID technology is a good embodi
[Microcontroller]
Design of RFID access control system based on ARM
Scatter-loading for ARM
For those who have just learned ARM, if they analyze its startup code, they often do not understand the meaning of the following variables: |Image$$RO$$Limit|, |Image$$RW$$Base|, |Image$$ZI$$Base|. First of all, I would like to state that the debugging software I use is ADS1.2. After we have written the program, we
[Microcontroller]
A New Measuring Instrument Based on ARM and LPC2214
  At present, the wheel alignment instruments used at home and abroad mainly adopt contact positioning. Due to the limitations of its measurement principle, its detection operation process is very complicated and cannot achieve rapid detection, making it difficult to be widely used in train manufacturers and train ins
[Test Measurement]
A New Measuring Instrument Based on ARM and LPC2214
Design of Power Fiber Signal Analyzer Based on ARM and FPGA
0 Introduction With the expansion and complication of power networks and the advent of regional interconnection trends, the behavior of power systems will become more and more complex. The applicability of some original assumptions and simplified models will be further challenged and tested. In this case, ri
[Microcontroller]
Design of Power Fiber Signal Analyzer Based on ARM and FPGA
Exynos4412 Uboot compilation tool - installation of cross tool chain arm-linux-gcc
1. What is cross-compilation? Run the compiler on the development host to compile the kernel and application. The kernel and program run on the target machine. This compilation process is called cross-compilation. The compiler runs on the development host (usually an X86-based PC), and the compiled code is for the tar
[Microcontroller]
Exynos4412 Uboot compilation tool - installation of cross tool chain arm-linux-gcc
Registration is now open for Arm Tech Symposia
The industry-renowned Arm® Tech Symposia annual technology conference will kick off at the Ritz-Carlton Hotel in Pudong, Shanghai on November 19, 2024, and will move to the Renaissance Shenzhen Bay Hotel on November 21. As Arm's most important annual technology event, this year's Arm Tech Symposia, with the
[Network Communication]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
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号