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.
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
- Popular Resources
- Popular amplifiers
- 西门子S7-12001500 PLC SCL语言编程从入门到精通 (北岛李工)
- Siemens Motion Control Technology and Engineering Applications (Tongxue, edited by Wu Xiaojun)
- MCU C language programming and Proteus simulation technology (Xu Aijun)
- 100 Examples of Microcontroller C Language Applications (with CD-ROM, 3rd Edition) (Wang Huiliang, Wang Dongfeng, Dong Guanqiang)
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
- 05 Serial port experience and receiving variable-length data
- IC card swiping technology under the screen
- AC detector
- Selection and application of freewheeling diode
- ESP32 CAM Development with MicroPython
- Challenges 5G Brings to Base Station RF PA Design
- Division circuit
- Android smart wearable device development from entry to mastery pdf download
- Why can't we develop industry software like Matlab?
- Android control LED-2-JNI basis of SinlinxA33 development board