Remote appliance Infrared Remote Control System Based on Short Messages and remote control of Short Messages

Source: Internet
Author: User

Remote appliance Infrared Remote Control System Based on Short Messages and remote control of Short Messages

Remote appliance Infrared Remote Control System Based on Short Messages

Remote Wan control of household appliances is one of the main development directions of Information appliances. Short Message Platform has become an important method for remote appliance control due to low costs, wide coverage, and convenient use. This paper studies and develops a remote Infrared Remote Control System Based on Short Messages. The system uses Java language applications as customer control terminals, short messages as control signal transmission platforms, and infrared remote controls commonly used in household appliances as control devices, A complete remote home appliance control system is developed. This paper first analyzes the selection of the WAN transmission technology, home appliance control equipment, customer control terminal and other three key technologies, and accordingly puts forward the overall structure of the system design. Later, this paper introduces the system hardware design, focuses on the MCU module, short message module, infrared remote control circuit, serial communication circuit, and other major modules of the detailed design. In the subsequent sections, This article first introduces the basic working principle, common AT commands and usage of the Short Message Platform, and then introduces the overall software structure of the receiving end and the sending end, key modules such as short message receiving and decoding, infrared signal modulation and generation are analyzed in detail. Finally, this paper introduces the structure of the user control end software written in Java language, including the interface design, serial port access and other key modules. Finally, this paper discusses the system hardware testing, software testing and integration testing, and finally realizes the use of short message remote control air conditioning and a DVD machine, to verify the effectiveness of the entire system design. This text message-based Remote Control System for remote appliances has the advantages of good scalability, convenient use, low price and wide coverage, and has certain promotion value, its key technologies can also be extended to industrial control and other fields. By controlling the air conditioner, the system can turn on the air conditioner at home through a computer or mobile phone on the way to work, and enjoy it at home.


Interface selection for controllers and household appliances


Because the infrared remote control interface is the main control interface for household TV sets, VCD, air conditioners, and DVD digital projectors, this article attempts to start with the remote control of household appliances without any changes, remote control signals are generated using infrared light emitting tubes driven by an additional MCU circuit to control various household appliances with remote control functions.

The infrared interface between the system controller and home appliance is used by the microcontroller software and the corresponding additional circuit to transmit the control information of Information home appliance, and Realize unified control of various remote control appliances. Users only need to care about the types of appliances under control and what effective operations need to be performed, such as selecting channels for TV sets, adjusting the volume, and not performing fast release or pause operations, remote control can be achieved without making any changes to the current electrical appliance.

At present, most smartphones are equipped with Java virtual machines and support Java programs. Therefore, the advantage of using Java to write a host computer is to facilitate subsequent transplantation to a mobile phone.





System diagram


In this design, the controlled end consists of a single-chip microcomputer, a GSM module, a detection part, and a control part. PC is used for control. The main control program sends messages to the Short Message Service Center (SMSC) in the form of short messages through the serial port r0000to the GSM module, and then the short message service center sends messages to the controlled GSM module. After receiving short messages, the controlled GSM module sends the messages to the MCU through the serial port R232. The MCU extracts control commands Based on the received short messages. The system uses the command code for infrared emission encoding, the mcu io port is used to drive the transistor and infrared transmitting tube, which sends infrared signals with corresponding functions, and then controls the controlled devices. [14] [15]


Hardware structure diagram


The hardware design of the system mainly includes the hardware design of the sending end and the hardware design of the receiving end. Figure 3-1 shows the system hardware structure. The sender hardware consists of RS232 level conversion module maxcompute, GSM module TC35i, and power supply module. The receiver hardware is composed of the GSM module TC35i, MCU module W78LE516, infrared emission drive transistor, infrared emission tube, and power supply module.







Short Message Module


Currently, the two GSM modules, wavecom and siment, are available in the market. According to the information on the Internet, the market share of wavecom is low, and the SIMENT module has enough powerful functions, including the Enterprise's SMS platform, in particular, the TC35 or TC35i of siment is basically used for wireless fixed talk. TC35i is an improved product of TC35 with better stability. Therefore, TC35i is selected as the GSM module of the system.


Introduction to Siemens TC35i Module


With the development of communication technology and mobile communication network service functions, there is a growing trend in the field of industrial control and remote control. To meet this need, siemens has released TC35i, a new generation of wireless communication GSM module. Based on the short message function of this module, it can quickly and securely Implement User information processing and other functions, it is particularly suitable for scenarios where the control center is far away from the terminal device, or wired communication media is inconvenient to use.


Currently, many GSM modules have been used in China, and the functions and usage of these modules are not very different. This design uses the TC35i of Siemens TC35 series. This wireless module is compatible with TC35 and has a compact design, greatly reducing the size of your products. TC35i is compatible with GSM2/2, dual-band GSM900/GSM1800), RS232 data interface, this module and RF circuit and baseband integration, to provide users with standard AT command interface, it provides fast, reliable, and secure transmission for data, voice, short messages, and fax, facilitating application development and design.




Customer Terminal System Software Design


The software at the application layer is written in JAVA, and JDK is required for JAVA Development and runtime environments. Therefore, JDK must be installed on the development and running PC,


Java has the advantages of cross-platform, one-time writing, and easy-to-use. In terms of language itself, it is a product that abandons the many shortcomings of C/C ++ and integrates the advantages of many languages. From the perspective of applications, J2EE is currently the most outstanding platform and the most successful solution for enterprise-level applications. It has already dominated mobile and embedded product development, mobile Java applications and Java games are emerging one after another, showing their vitality. J2SE is also unwilling to lag behind, and a considerable number of Java Desktop applications are also emerging. [20]



Main program module diagram


 

Figure shows the main program module. The main program consists of the remote control key code database, window framework module, serial communication package, serial parameter setting module, serial communication module, and short message PDU packaging module, remote Control graphical interface module.


Overall receiver structure

The software structure of the MCU at the receiving end is composed of the CPU initialization module, GSM control module, infrared remote control transmitter module, timer interrupt module, GSM Short Message sending module, and GSM Short message receiving module. After the system is powered on, the first step is to reset the MCU circuit, and then execute the program from the 00 address. The CPU initialization module initializes the IO port and interrupts initialization, timer initialization (including initialization of three timers. The timer 0 is used to generate a carrier of 38 kHz for infrared remote control, the timer 1 is used to generate the baud rate of the serial port, and the timer 2 is used to generate a system clock of 25 ms ), serial Port initialization, GSM module reset pulse generation and initialization, enter the main cycle. The main cycle is to query the status of the GSM module, read the SMS report, and read the index number of the current new SMS, then, send the AT command to read the new text message from the SIM card and then analyze the text message and respond accordingly. If there is a new text message, copy the text message content to the buffer and parse it to retrieve the control command code, and send the control command code to the infrared remote control transmitting module to generate an infrared remote control pulse. After processing, use the AT + CMGD = INDEX <CR> command to remove it from the SIM card, and then repeat the above process.







Short Message-based remote Appliance Control System-program design and flowchart of the receiving module

Contact me, qq: 40785208
 
Remote Control of the home appliance system

The system controls the telephone dual-Tone Multi-frequency transceiver MT8880 and the infrared encoding/decoding chip MCP2120 through a single-chip microcomputer, the existing program-controlled telephone network is used to implement automatic alarm, remote control, voice prompt and message functions of household appliances, thus realizing the Smart Home Appliance Remote Control System Based on Infrared Communication Technology. The infrared communication technology improves the system's anti-electromagnetic interference capability, high speed and reliability. The entire system features flexible configuration, good scalability, and low cost.
Institute of Intelligent Information System, Wuhan University of Technology,

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.