Design of single chip microcomputer for sending and receiving short messages

Publisher:HappyExplorerLatest update time:2013-02-21 Source: 51heiKeywords:MCU 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, reading SIM card numbers, sending SMS messages, receiving SMS messages, etc. In this way, the sending, receiving, querying and management of short messages can be realized conveniently and concisely.

Figure 2 System hardware structure diagram [page]

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 cyclic 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

Keywords:MCU Reference address:Design of single chip microcomputer for sending and receiving short messages

Previous article:Single chip telephone dial alarm
Next article:Design of Single-Chip Microcomputer Multi-CPU System

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

51 MCU drives ds1302 program (12864 LCD display)
This is the main interface This is the main menu interface This is the sub-interface for setting time This is the setting date Setting the Backlight This is the status icon that appears on the main interface after the key tone and alarm are set.  
[Microcontroller]
51 MCU drives ds1302 program (12864 LCD display)
Features of AVR microcontroller
AVR microcontroller is a RISC microcontroller launched by Atmel in 1997. RISC (Reduced Instruction Set Computer) is relative to CISC (Complex Instruction Set Computer). RISC does not simply reduce instructions, but improves the computing speed by making the computer structure simpler and more reasonable. RISC gives
[Microcontroller]
Analysis and Application of CAN Bus Controller Integrated with AVR Microcontroller
introduction In CAN bus applications, bus nodes are the basic components of the CAN bus. There are two typical design methods for CAN bus nodes. The first method uses an MCU combined with an independent CAN controller to form a bus node . The second method uses an independent MCU, in which case the MCU needs to have a
[Microcontroller]
Analysis and Application of CAN Bus Controller Integrated with AVR Microcontroller
Proteus and Keil Cx51 microcontroller simulation (timer output square wave)
T0 works in mode 1, with a timing time of 50ms. Write a program to make P1.1 output a square wave with a period of 100ms. (Baud rate f=12MHz) Circuit diagram: c Program: #include reg51.h #include stdio.h Uart_Init(); sbit P1_1=P1^1; void main() { TMOD=0x01; TL0=0xB0; TH0=0x3C; TR0=1; for(;; ) {
[Microcontroller]
Real-time multitasking operating system (RTOS) enters the field of microcontroller development
1. Real-time multitasking operating system (RTOS) (1) More oriented to the hardware system rather than the operator The embedded system processor generally works independently without direct human involvement; even if it is involved, there is no large amount of text information output, which is different from desktop
[Microcontroller]
Conversion between MCU system time and Unix time
Implementation on LPC1778/1788 /******************************************************************************************************** * FunctionName   : GetSecondTime() * Description    : 日期格式转化为unix time * EntryParameter :  * ReturnValue    :  **********************************************************************
[Microcontroller]
51 MCU bus and non-bus program comparison
Introduction: The triple bus is referred to as ADC, which always reminds me of the ADC chip. A is the address bus, D is the data bus, and C is the control bus, which controls the off-chip ROM, RAM and I/O. #include #include #define uchar unsigned char #define uint unsigned int uchar code table ="The distance i
[Microcontroller]
51 MCU bus and non-bus program comparison
Development of Pulse Measuring Instrument Based on 8098 Single Chip Microcomputer
1 Measurement principle The 8098 microcontroller has high-speed input and output channels with excellent performance. HSO0~HSO5 are high-speed output channels, which can generate pulse waves (PWM) with adjustable output width and period. HSI0~HSI3 are high-speed input channels. The CPU can simultaneously re
[Test Measurement]
Development of Pulse Measuring Instrument Based on 8098 Single Chip Microcomputer
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号