Xudong Liu
School of Information and Communication Engineering
Tianjin Polytechnic University, TJPU Tianjin, China
Liuxudong2007@yahoo.com.cn
Wei Wang
School of Information and Communication Engineering
Tianjin Polytechnic University, TJPU Tianjin, China
wangweibit@163.com
Abstract this paper introduces a control system of indoor intelligent Lighting which is based on power line carrier communication. It can complete remote control by combining GSM module and power line carrier communication, but also can complete wireless remote sensing by combining infrared technology and power line carrier communication. It finally realizes the remote of indoor intelligent lighting and the control of sensing.
Keywords: power line carrier GSM Infrared Indoor intelligent lighting
I.I NTRODUCTION
As the national economy and science technology level improve, in particular, the rapid development and improvement of computer technology communication technology network technology control technology and information technology, it promotes the modernization of family life, the comfort of basic necessities and the safety of living environment. The ultimate goal of human technological development is to serve the needs of life. These high-techs have affected every aspect of people's lives, changed the habits of people, and improved the quality of people's life. Indoor intelligent lighting control refers to use auxiliary technologies of some computers in the room to carry out the control automatically for power line lighting, it can reach the particular lighting effect in special space and time, which can optimize the way of people s life, help people to arrange their time effectively, and even save money for a variety of energy costs.
II.O PERATING PRINCIPLE OF INDOOR
INTELLIGENT LIGHTING CONTROL SYSTEM This system is based on the carrier communication to realize indoor intelligent lighting of a remote control system. Power line is transmission channel for power carrier communication. Analog or digital signal can be transmitted with high speed through the carrier, with a reliable channel and reasonable routing. Power line carrier communication is the cable communication way that does not need to invest in lines uniquely.
Indoor intelligent lighting system is an indoor intelligent control system of light. Compared with the traditional lighting, it can mainly manage the lamp dimming, a key scene, one-on-one remote control and partition lamplight fully open and fully close. And a variety of control mode can achieve the above functions. The main control method is wireless remote control and remote control, etc, and then achieving the function of energy-saving indoor intelligent lighting, environmental protection, comfort and convenience. The system structure is shown in Figure 1.
III.H ARDWARE D ESIGN
A.communication module between MCU and
GSM
MCU communicates with the GSM module through RS232 serial communication interface, extracting the information of GSM device, sending the relevant information, and connected with the power line carrier through the
serial
communication module. Electrical appliance and lighting can be controlled by using power line carrier module, and it needs two serial interfaces on the control. Therefore
STC12C5A60S2 is
selected. STC12C5A60S2 communicates with TC35 through asynchronous serial interface. The communication rate is 9600b / s, with a start bit, 8 data bits, 1 stop bit, and no parity check [1].
Figure 1 System Components
When SCM starts, it issues the command of AT + CMGD = 2, and clears the second data storage space. If the data exists, it means that the data is received and is processed immediately. While the data is processed, the spatial data is removed. When the SCM sends short messages to mobile phone, the MCU will send a series of instructions such as AT, AT + CM GF = 0, AT + CM GS = X to the GSM module. When the reply message is received, the content of short message will be sent [2].
B. Power Line Carrier Module
The function of power line carrier module is to achieve communication between the nodes. In
addition to MI200E chip, it includes the following circuits: power supply circuit, power line coupling circuit, sending filter and receiving filter [3]. The composition of their relations between them is shown in Figure 2. Power line carrier communication circuit module is shown in Figure 3.
Figure 2 Communication Module Chart
Figure 3 Communication circuit Module Chart
C.
Infrared wireless communication module Infrared Remote Control dedicated chip PT2248 is chosen as a part of encoding and sending. The encoding of 18 roads Infrared Remote Control System is the maximum available for PT2248.The internal has integrated 38 kHz infrared carrier oscillation and corresponding digital pulse code modulation circuit. The function of encoding and sending can be achieved by adding small components such as
3 × 6 matrix-style buttons, infrared light emitting diode and driving circuit.
Infrared receiving circuit is shown in Figure 4, using integrated infrared
receiving
head
(receiving module). Infrared receiving head
receives amplifies
detects and shapes infrared
signal, and it demodulates remote coding pulse. Infrared remote receiving head that demodulates coding pulse is serial binary code, which is through encoded control instructions. Therefore, in order to identify the received control instructions correctly, these serial binary codes are required to be decoded. The tasks of MCU are much heavier, so PT2249 is adopted to complete coding.
D. Lighting Terminal Controller
Lighting terminal controller is one of the underlying systems, implementing the specific brightness
adjustment.
Lighting
terminal
controller has a fixed address code, receiving the control command by low-voltage power line, and executing the appropriate operations. In order to avoid the lights controlled by the terminal controller in opening at the same time, which can cause the instantaneous current increasingly, the method that it takes control of one by one is adopted [4]. The hardware structure of lighting brightness control is shown in Figure 5.
IV. T HE SOFTWARE DESIGN
A. design communication module program between MCU and GSM
Controller is initialized firstly, and then continues to inquire GSM module. When it
inquires that the GSM module receives a message sent by the user, it begins to deal with short message, and extracts relevant information, sending the appropriate command data to the power line carrier through the receiving module serial of GSM module, and then in a certain time (it can be adjusted according to users requirements, here the time is set to 60s) waiting for its corresponding address of the terminal device to return information [5]. When the reply message is received or is not received a reply message from the terminal device within the specified time, Controller returns to inquiry scan state.
Terminal device begins to initialize after electric railway resets, waiting for receiving the sending command information. After receiving the command information, address and data information are extracted from it. If they have the same address code, the data is processed and responded accordingly, and sending certain information to the controller at the same time; if not, then returns, continuing to wait for the host to send the command message. The program flow chart is shown in Figure 6. B. Packet structure Design
Packet includes the boot code, a fixed value,
Package information, user data area and the CRC16 checksum results.
and the boot code is
3byte, package is 4byte, user data area is not fixed, CRC checksum is 2byte. The baud rate information (SS[1,0]) and data length (pkg_lengh [5:0]) are required in the Package information, and the maximum data length is word. Data packet structure is shown in Table 1.
T ABLE 1 D ATA PACKET STRUCTURE
Byte1
Byte2
Byte3
Byte4
Byte 5~ N
Byte N+1 ByteN +2 0xFF
0xFF
0x1A
SS[1,0], pkg_len gh[5:0]
Data
CRC High data
CRC Low data
Figure 5 Hardware structure of lighting terminal control
Figure 6 Flowchart terminals Reply
C. design Infrared wireless communication module programming
Firstly, Infrared receiving module initializes. Then it inquires infrared transmitter module continuously. When it inquires that Infrared receiving module receives the information of infrared transmitter module, the information is treated, then sending the appropriate command data to the power line carrier through Infrared receiving module serial, and then in a certain period of time waiting for its corresponding
address of terminal device to reply information [6] .When the reply message is received or is not received a reply message from the terminal device within the specified time , Infrared receiving module returns to inquiry scan state.
V.
C ONCLUDING REMARKS
In this paper, by combining power line carrier technology, wireless infrared and GSM network, it realizes the application in indoor intelligent Lighting control. By means of designing the carrier module, the terminal controller hardware and communication protocols, the signal is transmitted by using existing low-voltage transmission network. And it is applied in indoor intelligent Lighting control and implements low cost, long-distance transmission, high economy and practicality.
R EFERENCES
[1] HaoJie, Li Chao. Power Line Communication Based on
energy-saving lighting control system. information technology
October 2009.
[2] Yu Xinmei Peng Heting.The Design of Intellectualized
Household Control System.Development and application of computer,2009
58-60.
[3] John Newbury(1998) .Communication Requirements and
Standards for Low Voltage Mains Signaling [J]. IEEE Transactions on Power Delivery.1998 (10) :46 - 53. [4] A.Guillemin,N.Morel. An innovative lighting controller
integrated in a self-adaptive building control system. Energy and buildings. 33(2001)477-487.
[5] Lee. Mitchell. A New Carrier Current Transceiver
IC.IEEE Trans.On Consumer Electronics. 1982,28(4)409
4202.
[6] Foschini G J,Gans M J. On limits of wireless
communications in a fading environment whenusing multiple antennas[J].Wireless Personal Communications, 1998,(6): 311-335.