Design of short message receiving and sending system based on AT89C52 single chip microcomputer

Publisher:温文儒雅Latest update time:2012-04-07 Source: 仪器仪表用户Keywords:AT89C52 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

0 Introduction

The GSM (Global System for Mobile communication) system is a relatively mature, complete and widely used system in the current mobile communication system based on time division multiple access technology. The GSM digital cellular mobile communication network that has been built to cover the whole country is the main mode of public mobile communication network in my country. The short message service based on GSM is a wireless application for transmitting short messages on the mobile network, and is a process of storing and forwarding information on the mobile network. The GSM module is another very important GSM mobile communication system terminal device after the GSM mobile phone. It is a data terminal device that combines the traditional modem with the GSM wireless mobile communication system, also known as the GSM Modem.

1 System Principle and System Structure

This system mainly studies how to use the GSM mobile phone module to realize the sending and receiving of short messages on the computer terminal (i.e. the dotted part in Figure 1). The design uses the STC89C52 microcontroller and Siemens' GSM module TC35 to realize the GSM Modem prototype with the function of sending and receiving text messages. The modem is connected to the PC through the RS232 serial port, and the front-end software is developed on the PC to realize the point-to-point two-way sending and receiving of Chinese and English text messages, thereby realizing the remote communication function with the user's mobile phone or GSM module. The system design consists of two parts: hardware design and software design. The hardware design mainly studies the control of the GSM module by the microcontroller and the communication between the microcontroller and the computer.

Figure 1 System working principle block diagram

2 System Hardware[1]

The hardware part of the system includes the TC35 communication module circuit, power supply circuit and single-chip microcomputer system. The TC35 communication module circuit consists of the ICT (Ignition) startup circuit, the SYNC (Synchronization) indicator circuit, and the SIM (Subscriber Identification Module) card circuit; the single-chip microcomputer system includes the single-chip microcomputer minimum system, the single-chip microcomputer and TC35 communication circuit, and the single-chip microcomputer and PC communication circuit. The system hardware principle is shown in Figure 2. The single-chip microcomputer communicates with the TC35 module through AT instructions. AT instructions can be used to control calls, text messages, phone books, data services, supplementary services, faxes, etc. The single-chip microcomputer sends AT commands directly to the TC35 module through the serial interface, which can complete a variety of functions. Such as network login to read the SIM card number, send SMS messages, receive SMS messages, etc. In this way, the sending, receiving, querying and management of short messages can be realized conveniently and concisely. [page]

Figure 2 System hardware structure diagram

Figure 3 Main program design flow chart

3 Software design[2]

The system programming includes PC interface design and MCU programming. Instrument users only introduce MCU programming here. MCU programming mainly includes MCU and TC35 module initialization program; MCU control program for TC35 module; TC35 module SMS sending and receiving program.

The main program is a description of the entire system framework [3]. The function of the main program of this system is to complete the system initialization after power-on, then wait for the command from the PC or TC35 module to arrive, and complete the corresponding action according to the content of the command, such as sending or receiving text messages. The flow chart is shown in Figure 3.

System initialization includes the initialization of the MCU itself and the TC35 module. The MCU initialization mainly sets the serial port and timer registers. In this system, the serial port is set to a baud rate of 9600Bps, and timer 0 is set for delay to generate the baud rate required for the simulated serial port. The initialization of the TC35 module is done by sending AT commands to the MCU to set the TC35 module.

The microcontroller controls TC35 through AT commands, and TC35 responds to the commands to make corresponding actions. For receiving SMS, the microcontroller uses serial port interruption. When the serial port is interrupted, it determines whether it is a new message prompt, and then takes the next step. Sending SMS uses query mode, and the main program performs loop query on the PC side and performs corresponding actions on the query results.

4 Conclusion

This system is not limited to application in specific fields. It mainly analyzes and studies the common key technologies in short message systems through this design. After mastering this technology, it can be applied to specific fields such as remote data acquisition, monitoring, and alarm by simply adding microcontroller peripheral circuits.

References

[1] Cheng Xiang. Short Message Service in GSM System[J]. Mobile Communications, 2004, (6): 7-10

[2] Li Hui. Wireless communication system based on GSM short message[D]. Nanjing: Nanjing University of Science and Technology, 2004

[3] Huang Weigong, Principles and Application Technology of Single Chip Microcomputers[M]. Xi'an: Xi'an University of Electronic Science and Technology Press, 2007

About the author: Sun Ying, female, professor, engaged in teaching electronic technology, switching technology and research on single-chip microcomputer applications.

Keywords:AT89C52 Reference address:Design of short message receiving and sending system based on AT89C52 single chip microcomputer

Previous article:Design of Remote Temperature Monitoring System Based on AT89C52 Single Chip Microcomputer and TC35i
Next article:Design of smart home alarm system based on AT89C2051 microcontroller

Recommended ReadingLatest update time:2024-11-16 20:51

GSM/GPRS/EDGE Test Introduction
  GSM system is the abbreviation of Pan-European Digital Cellular Mobile Communication Network. It is the most mature digital mobile communication system currently developed. It is now renamed "Global System for Mobile Communication". It is the standard of the second-generation cellular system and the first cellular sy
[Test Measurement]
Is W-CDMA the same thing as UMTS? Or is UMTS a part of GSM?
Is W-CDMA the same as UMTS? Or is UMTS part of GSM? Is W-CDMA a type of CDMA? Which one is the same as 3G? There are many misconceptions about these concepts. Every technology-based industry suffers from difficult acronyms and is suffocated by a sea of ​​letters. However, few people realize that the dazzling te
[Analog Electronics]
The Principle and Design of Vehicle Automatic Tracking System Based on GPS and GSM
0 Introduction With the improvement of people's living standards, cars have gradually entered ordinary families. With the increasing number of cars year by year, car theft and robbery have become a more serious social problem. In solving the problem of car theft prevention, most cars mainly use flashing lights
[Automotive Electronics]
The Principle and Design of Vehicle Automatic Tracking System Based on GPS and GSM
Design of unmanned cleaning and nursing machine based on GSM and PIC microcontroller
0 Introduction With the intensification of the aging process in China, there is a "vulnerable group of people who are bedridden for a long time" in today's society because they have lost the ability to take care of themselves, especially those who are almost unconscious. They need to be taken care of for a long time,
[Microcontroller]
Design of unmanned cleaning and nursing machine based on GSM and PIC microcontroller
Design of Ultra-low Frequency Signal for AT89C52 Single Chip Microcomputer
    Low-frequency and ultra-low-frequency signals are widely used in medicine, electrochemical research and experimental teaching. Especially in the field of electrochemistry, ultra-low-frequency signal generators have become an indispensable part of electrochemical instruments. Electrochemical instruments equipped wi
[Microcontroller]
Design of Ultra-low Frequency Signal for AT89C52 Single Chip Microcomputer
A Clever Application of Large-Capacity EEPROM in Single-Chip Microcomputer
    With the development of economy, some problems that are difficult to solve with traditional methods have emerged in transportation. The phenomenon of road congestion is becoming more and more serious, and the economic losses caused are getting bigger and bigger, and they have been growing at a large proportion. Th
[Microcontroller]
A Clever Application of Large-Capacity EEPROM in Single-Chip Microcomputer
Laboratory Intelligent Automatic Security System Based on GSM and Single Chip Microcomputer
This paper proposes a design scheme for a laboratory security system based on GSM and single-chip microcomputer LPC2138 . The system uses the 32-bit ARM series single-chip microcomputer LPC2138 as the main control chip, and collects laboratory information through various sensors. If there are factors that endang
[Microcontroller]
Laboratory Intelligent Automatic Security System Based on GSM and Single Chip Microcomputer
Design of greenhouse temperature monitoring system based on AT89C52
The greenhouse requires the temperature to be kept within a certain range, which is the best environment temperature for the growth of plants and animals. Therefore, the environment temperature for the growth of plants and animals must be monitored and controlled to make it suitable for the growth of plants and animals
[Microcontroller]
Design of greenhouse temperature monitoring system based on AT89C52
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号