Implementing Embedded Remote Communication Based on SMTP Protocol in ARM Processor

Publisher:WhisperingWishLatest update time:2010-07-13 Source: EDN Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
In this topic, a new embedded remote communication mode is provided through the SMTP protocol. That is, the SMTP protocol is implemented in the ARM processor and connected to the Internet through twisted pair cables. The remote control equipment or instruments developed on this platform realize remote data transmission through the Internet, and can be remotely monitored and controlled through the Internet on any computer connected to the Internet.

The project selected a 32-bit microprocessor based on ARM architecture, introduced the various components of the module, including the ARM-based hardware structure model, software structure, the basic structure of SMTP and its operating mechanism, and analyzed in detail the specific implementation and debugging process of the embedded SMTP software module in the ARM system.

1. Overall system structure

In the system, the SMTP server is introduced into the ARM platform to realize the embedded SMTP server (Embedded SMTP Server). Control equipment and instruments are developed based on this software and hardware system, so that traditional test and control equipment can be transformed into Internet-based network test and control equipment with TCP/IP as the underlying communication protocol and SMTP technology as the core. Compared with the traditional SMTP Server, the embedded SMTP system simplifies the protocol structure and integrates information collection and information release into the on-site measurement and control equipment. Since SMTP is a cross-platform standard communication protocol in the Internet, the SMTP server embedded in the device can receive E-mail instructions and data sent by any standard mail sending tool. At the same time, due to the openness and independent platform characteristics of SMTP technology, the design and maintenance workload of the software system and communication system is greatly reduced, the cost of personnel training is saved, and the management level of on-site test and control equipment is improved.

1.1 System Hardware Structure

The core components of the system hardware are composed of an embedded microprocessor system running an embedded operating system, and the core software of the system runs on the embedded operating system. Due to the mature technology of ARM processors, high market share, and sharply reduced costs, from the perspective of industrial control, we chose MOTOROLA's MX9328MX1 based on the ARM core. This chip is based on ARM9T. On the one hand, it has the advantages of low power consumption and high performance of ARM processors; on the other hand, it has rich on-chip resources, which is very suitable for the development of embedded products.

The hardware system includes a microprocessor that implements the SMTP communication function. It can be directly integrated with the front-end application system or connected to the application system through the field bus. It includes: 8M FLASH memory for storing the system kernel of the real-time operating system, TCP/IP protocol stack, various control programs and other parallel modules; 32M SDRAM memory for use during system operation; Ethernet interface for connection with the Internet/Intranet; field bus expansion control module for distributed control of devices within a certain range on site; general IO port control module, etc. Its hardware structure is shown in Figure 1 [2].

Figure 1: Embedded SMTP remote control platform hardware structure

Considering the cost-effectiveness, the hardware structure of the system is adjusted according to different application environments, and the hardware resources are also limited. The system kernel, TCP/IP protocol stack, and various application programs of the real-time operating system must be written into FLASH and loaded into SDRAM at runtime, which places high demands on the software system.

1.2 System Software Structure

The software system of the whole system consists of five parts: ① embedded operating system; ② virtual file system; ③ SMTP engine; ④ configuration module; ⑤ security module; ⑥ control program interface module.

The embedded operating system uses Linux as the software foundation of the system. Its excellent cross-platform transplantation capability, open source code, and flexible configuration provide convenience for development. The built-in TCP/IP protocol stack allows users to quickly develop application layer protocol programs.

The virtual file system on Linux builds a disk-like usage environment based on FLASH and SDRAM. The virtual file system uses data structures to store information such as file size and modification time. The control programs and configuration texts required in the system are stored in the form of files on the system chip through the virtual file system.

The SMTP engine is responsible for responding to user requests, enabling users to remotely control the actions of the device through the application program interface, reporting critical value status, and regularly reporting working status to users.

The configuration module allows system administrators to set device parameters remotely using emails. The configuration environment variables defined during system startup include device critical values, status report cycles, network parameters such as Socket ports, device start and stop times, working cycles, etc.

The configuration and control information access of the remote network device is the focus of security protection. The security module protects sensitive information by defining security domains on the server and defining usernames/passwords for each security domain. It can also take encryption measures for request control actions and data to achieve security protection functions. The system mainly implements protection measures through ESMTP. ESMTP is an extended SMTP protocol, which is a security authentication service opened by the mail server system to restrict non-official users of the system from using the system to distribute spam or other improper behaviors.

The application program interface module realizes the control and data exchange with the embedded control system. In this system, the application program interface communicates with the embedded operating system and realizes the configuration, monitoring and control of the embedded system through the device driver. It is the core of the system control. The monitoring program module is implemented using CGI (Common Gateway InteRFace).

Reference address:Implementing Embedded Remote Communication Based on SMTP Protocol in ARM Processor

Previous article:Design based on ARM+MCU+CPLD/FPGA
Next article:Design of double-layer network monitor for rubber and plastic machinery based on ARM

Recommended ReadingLatest update time:2024-11-17 02:47

ARM emulator and embedded system design explanation
An embedded system is a dedicated computer system that is part of a device or equipment. Usually, an embedded system is an embedded processor control board with a control program stored in ROM. In fact, all devices with digital interfaces, such as watches, microwave ovens, VCRs, cars, etc., use embedded systems. Some e
[Microcontroller]
ARM emulator and embedded system design explanation
Design of electronic brush based on ARM and acceleration sensor
With the popularization of computers, electronic pens have developed rapidly as a new human-computer interaction tool. In China, Hanwang has always been in a leading position in handwriting recognition and has led the development of domestic electronic pens. Foreign countries have associated handwriting with of
[Microcontroller]
Design of electronic brush based on ARM and acceleration sensor
Analysis of the LED bulletin board hardware circuit using ARM
  In recent years, LED electronic display screens have attracted increasing attention as a high-tech product. They can display text, graphics and image information in real time or in a loop. They have many advantages, such as rich display modes, strong viewing, convenient display content modification, high brightness,
[Microcontroller]
Analysis of the LED bulletin board hardware circuit using ARM
ARM conditional execution instructions
1.                Draw the flowchart of the following program. And use conditional execution instructions to simplify the program:                            CMP  R0, #10                       BEQ  ROUTINE                       ADD  R1,R1,R0                       SUB  R1,R1,R2 ROUTINE                       
[Microcontroller]
ARM conditional execution instructions
Compiling Linux 2.6.34 kernel for mini2440
The linux-2.6.34 kernel has been released, so I downloaded it and compiled it. There is basically no need to modify it. I just need to modify two lines of Makefile ARCH ?= arm CROSS_COMPILE ?= arm-linux- //This is the cross-compilation tool Then run make mini2440_defconfig to modify arch/arm/mach-s3c
[Microcontroller]
Samsung and Arm jointly optimize next-generation GAA-based Cortex-X CPU
Samsung Electronics recently announced that it will work with Arm to provide optimized next-generation Arm Cortex-X CPUs developed based on Samsung Foundry's latest all-around gate (GAA) process technology. The program builds on Samsung Foundry's multi-year partnership with Arm, where Samsung Foundry has produced mi
[Semiconductor design/manufacturing]
Qemu builds ARM vexpress development environment (Part 2) ---- Start the Linux kernel through u-boot
In the above article "Building ARM vexpress development environment with Qemu (I)", we have briefly described how to directly start the Linux kernel through Qemu simulation and mount the root file system on the SD card. This method is to directly start the kernel, which is somewhat different from the actual ARM board
[Microcontroller]
AT91 Series ARM Hardware Design Notes
Power Issues 1.VDDCORE and VDDIO pin power supply A) VDDCORE and VDDIO pin power supply must be connected to a clean DC power supply using decoupling capacitors; the decoupling capacitors should be as close as possible to the VDD and GND pins of the microcontroller; the typical value of the decoupling capacitor is 33
[Microcontroller]
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号