Abstract: A design method of smart home system based on S5PV210 chip is proposed. Using QT on the embedded system platform based on S5PV210 processor and linux2.6.30 kernel, the software system and human-computer interaction interface were developed, and various sensor acquisition information and TC35i modules were controlled, and the Boa server was configured and implemented by CGI. The interaction between the client browser and the embedded web server; the access control system based on STC89C52 is designed.
This article refers to the address: http://
Keywords: smart home; S5PV210; TC35i; BOA
Smart Home is a modern smart home solution that combines computer, communication and control technologies. At present, there are more and more types of smart home products at home and abroad. However, some use low-performance CPUs as the main control chip, which cannot integrate more complex tasks in the smart home system. There is also a part that does not develop a more friendly human-machine interface (GUI) on the control system, which makes it impossible for users to complete convenient operations. After fully researching the smart home, combined with the current advanced CPU chip, a convenient, fast and efficient smart home system is proposed. The temperature sensor is based on the embedded system platform based on S5PV210 processor and linux2.6.30 kernel. DS18B20, human pyroelectric infrared sensor, gas sensor, camera and other sensors monitor the family information in all directions; use GSM module to enable users to control via SMS and feedback sensor information to users; and build BOA server combined with CGI technology to achieve customers The data interaction between the end and the embedded server allows the user to remotely monitor and control the running status of the home appliance through the internet; the system control interface is developed by QT technology, and a master-slave-based access control system is developed.
1 Smart home system
The system composition is shown in Figure 1. The system uses Samsung's high-end ARMCortex-A8 S5PV210 processor as the main control chip, and is composed of various sensors, LCD display, GSM communication, Ethernet communication and access control system. There are three ways for human-computer interaction; the main control system integrates various information into the LCD display and controls and sets it through the touch screen; the system establishes a web server, and the user can remotely access the system through the internet; the user can interact with the system through GSM. The access control system adopts the master-slave mode design, and the main control chip adopts STC89C 52.
System software development first transplants the linux2.6.30 kernel in the system, develops the corresponding hardware driver under this platform; writes the human-computer interaction interface using QT-creator; configures the Boa server under linux2.6.30; CGI program mainly realizes remote client browsing The data exchange controlled between the device and the server; the AT command is used to control the communication between the GSM module and the user's mobile phone.
2 system hardware design
The hardware design mainly introduces various sensor circuits, access control systems and GSM circuits.
2.1 Sensor circuit
Each sensor has a corresponding drive circuit, and its data output port is connected to the GPIO port of the S5PV210 processor, and the connection of each sensor circuit follows the corresponding circuit connection specification.
2.2 Access control system circuit design
The access control system uses the single-chip STC89C52 chip as the main control chip, which consists of single-chip microcomputer, matrix keyboard, alarm circuit and LED indicator display. The circuit design is shown in Figure 2. The system can unlock and change the password. When the number of operation errors is greater than the limit set by the system, the system will lock the system to enhance the security of the password lock while the alarm is in effect. The system also has functions such as power saving and power failure protection. The password setting is set on the LCD touch screen on the main control system. The system initialization password is 012345. The 93c46 chip power-down protection function is used to automatically store the modified password. According to the return value of the single chip microcomputer, the door opening and the status information of the display door can be controlled on the interface written by the main control system QT.
2.3 GSM module circuit design
The TC35i module has 40 pins that are routed through a ZIF (Zero Insertion Force) connector. These 40 pins can be divided into five categories, namely power supply, data input / output, SIM card, audio interface and control. The S5PV210 implements serial communication through the extended MAX232 chip. The TC35i module is connected to the 9-pin D-type socket. The connection circuit is shown in Figure 3. The user can communicate with the smart home control system through the GSM short message function, and obtain the status of each sensor and access control system in the home.
3 system software design
3.1 QT programming
The system uses the Qt designer in Qt creator to design the human-computer interaction interface of the main control system program, and writes the code according to the general rules of QT/embedded programming. Firstly, various related functions of electrical equipment, sensor system, access control system and GSM communication are realized. Control and setup and home entertainment features, then add internationalization and Chinese support in the main program, and finally compile and test the system via NFS.
The main interface class is named SmartHome, which inherits from the QWidget class. Six functional interface objects are declared in their header files, and the two classes, QListWidgetItem and QListWidget, and the mouseMoveEvent method are applied to manage these six behaviors to make them have display hiding capabilities.
Main interface program implementation
3.2 BOA Server Configuration and Migration
The BOA server is a small, efficient, single-tasking web server that is ideally suited for embedded systems. It runs under Linux and supports CGI. In this system, first download, modify and cross-compile the Boa source code under linux, create a new boa folder under the etc directory, place the executable files boa and boa.conf into the directory, and mini.typ es Copy to the etc directory, complete the configuration of the two files boa.conf and mini.types, and finally run ./boa& in the terminal.
3.3 client webpage
JavaScript is a scripting language widely used for client-side web development. It is object- and event-driven and relatively secure. It is often used to add dynamic functionality to HTML pages, such as responding to user actions. CSS (Cascading Style Sheet) can be translated as "Cascading Style Sheets" or "Cascading Style Sheets", which defines how HTML elements are displayed to control the appearance of web pages. By using CSS to achieve the separation of the content and presentation of the page, the work efficiency is greatly improved. Styles are stored in style sheets and are usually placed in sections or stored in external CSS files. Using CSS and JavaScript to write the client web interface is shown in Figure 4.
4 Conclusion
After testing, the system is safe and reliable, and the performance is stable. The main control system interface can be used to conveniently set and control various functions of the home system. The local customer can also realize the flexibility and convenience through an internet computer or a mobile phone. The home system is monitored. The system works stably, has strong scalability, flexible configuration, rich functions, good portability and versatility, and has broad application prospects.
DITUO Home Humidifier Features as following:
- Aroma Humidifier OEM/ODM/OBM service is available.
- Premium Quality Materials: PP materials.
- Adjustable mist output: Strong or Weak.
- 7-color Led light or warm light.
- Waterless Auto-Off Function.
- 4 timer setting: 1 hour, 3 hours, 6 hours and continuous.
- Whisper-quiet design, Aromatherapy Humidifier ideals for bedroom, living room, office, spa, Yoga, hotel.
- Certification (ISO9001 CE ROHS FCC) & Warranty (12 months)
- Great Gifts: It is good choice to use this lovely Personal Humidifier as gifts to your friends and families, lovers.
- After-sale Guaranteed: Please contact with us if there is any problem.
Home Humidifier
Home Humidifier,Aroma Humidifier,Aromatherapy Humidifier,Personal Humidifier
Shenzhen Dituo Electronic Co.,Ltd. , https://www.sz-dituo.com