1 Introduction
With the continuous development of network technology and communication technology, people hope that they can understand and control the situation in their homes in a certain way even when they are working or going out. At the same time, with the popularization of digital homes, the remote control of smart home has become one. Trends. Through the family bus technology , the home intelligent control system connects various household appliances, home security devices and various metering devices in the home to form a home internal network, which is managed by the home intelligent controller [1]. Remote control is to connect the smart home controller to the outside world through some communication method, so that people can monitor and control the home system locally or remotely. The scheme introduced in this paper combines the advantages of GPRS (GeneralPacketRADIoService) technology forever online, fast speed, wide access range, small size, low power consumption, etc. [2], using RS485 industrial bus, designed to realize an embedded system based on Home smart controller. Users can now remotely monitor wirelessly via SMS and the Internet. Today, mobile phones and the Internet are quite popular, providing users with simpler and more convenient choices. At the same time, due to the special design of the RS485 interface of the controller, the external nodes can be expanded from 32 to 64, which solves the problems of wiring and networking of household equipment.
2 system design
From the structural point of view, it is mainly divided into three parts: user, controller, and home device control of RS485 bus. The user sends a command to the GPRS module of the controller through a mobile phone short message or a network mode, and the controller also feeds back information to the user or issues an alarm notification through the GPRS module. Thereby, the user and the controller are wirelessly interconnected to realize remote control.
3 hardware design
The block diagram of the hardware part is shown in Figure 1. The controller is the core part of the whole system. It is connected to the GPRS module through the serial port extension; the RS485 bus interface is connected to the household equipment through the level conversion chip; and the LCD, keyboard, etc. are also provided. Interactive interface. The main control chip of the controller adopts Samsung S3C44B0, uses ARM7TDMI core, and the working frequency is 66MHz [1]. The processor external 4MFlash (the boot code and system code for the storage controller and the text log of the day event) is allocated to the memory Bank0 space and the 4M×16 SDRAM, and is allocated to the Bank6 space of the memory.
GPRS module peripheral circuit: GPRS module uses Siemens MC35 module, supports data, voice, short message and fax and other communication methods can be controlled by AT command. The serial line can be directly connected to the RS232 serial port after level conversion by the MAX3238. Serial port expansion: 44B0 provides a complete 9-wire serial port for GPRS modem dial-up via an external dual-channel universal asynchronous transceiver ST16C2550. Its main features are receiving and transmitting FIFO (first in first out) buffers each with 16 bytes. The independent baud rate generator can provide 50bps to 4Mbps transceiver clocks. The user can conveniently locate the error and judge the operating status through the status register of the chip. The chip memory space uses the reserved storage space bank4. Use bus mode control. RS485 interface design: using TI's RS485 interface chip 75LBC184, can realize the conversion between the TTL level and RS485 level of the 44B0 serial port, the input impedance of the chip is twice the RS485 standard input impedance (≥24KΩ) Therefore, 64 nodes can be connected to the bus (equivalent to twice the original). And it has a unique design, when the input is open, its output is high, this can ensure that the open circuit of the receiver input cable does not affect the normal operation of the system.
Cat6 Patch Cable,Connector Boots,Rj45 Modular Plug Boots,Mini Connector Boots
Dongguan Fangbei Electronic Co.,Ltd , https://www.connectorfb.com