[Graduation Project Android Series] Design of smart home remote control system

Smart home remote control system design

Summary

        The system is an application based on the Android platform, which can realize remote control of home devices through network connection. Its main functions include switch control of home equipment, temperature adjustment, music playback, security monitoring, etc. The design of the system needs to consider factors such as hardware, software, data transmission, security, and scalability to achieve intelligent control and monitoring of home devices. The user interface should be friendly, concise and easy to operate, and the control logic should be precise and reliable to ensure the accuracy of control. Data transmission adopts TCP/IP protocol to ensure data security and stability. The security of the system uses encryption technology and security authentication technology to prevent hacker attacks and information leakage. The system's scalability adopts a plug-in design, supporting dynamic addition of plug-ins to support new devices.

Key words

Android; smart home; remote control; hardware design;

Table of contents

1. Topic selection and its significance

1. Name of the design task

1.2 Research significance

2. Literature review

3. Design concept

3.1 Overall system design

3.2 Smart home system hardware design

3.2.1 System schematic diagram

3.3 Smart home system software design

3.3.1 Login interface design of Android client

3.3.2 Program function implementation

3.3.3 Page display

3.3.4 Implementation effects

4. Solution to the problem

4.1 Solution

4.2 Description of the main parts of the plan or technical analysis

4.3 Plan feasibility analysis

4.3.1 Technical feasibility

4.3.3 User feasibility

5 Conclusion

references

Acknowledgments


1. Topic selection and its significance

1. Name of the design task

        The design task title I chose was to design and implement a smart home remote control system design.

1.2 Research significance

        The smart home remote control system is a new type of smart home application that can greatly facilitate people's lives. By developing a new Android operating system, we can better manage and operate home appliances, thereby improving users' quality of life. This new technology can provide users with a more convenient operating experience and help them better manage their appliances. This system has the following research significance:

        Improve the quality of life: Smart home remote control systems can greatly facilitate people's lives and improve their quality of life.

        Promote the development of smart home technology: The smart home remote control system based on the Android platform designed in this study can provide a new idea and method for the development of smart home technology.

        Promote the development of mobile application technology: The system of this study is an application based on the Android platform, which can provide reference for the development of mobile application technology.

        Promote the development of IoT technology: Smart home remote control systems require remote control through network connections, which can provide a certain impetus for the development of IoT technology.

        In summary, the smart home remote control system studied in this study has certain research significance and can provide reference for the development of smart homes, mobile applications, Internet of Things and other fields.

2. Literature review

        "Design and Implementation of Smart Home Remote Control System Based on Android Platform" (Authors: Li Chunmei, Chen Wei, Li Lei, publication date: 2017).

        This article aims to discuss the construction and implementation of a smart home remote control system based on the Android platform. To this end, we use the TCP/IP protocol to realize data transmission, and also use advanced encryption technology and security authentication mechanisms to ensure the security of the system. This document explains in detail the hardware design, software design, security design, and scalability design of the system, and is a relatively comprehensive document.

3. Design concept

        The smart home remote control system designed in this paper is based on Internet of Things technology. By connecting smart home devices to the Internet, users can remotely control home devices at any time and place. The system uses an open source hardware platform and cloud computing technology, and can be remotely controlled using a smartphone app or web page to facilitate users to achieve intelligent management of home equipment.

3.1 Overall system design

        The overall structure of the smart home control system developed in this article is shown in Figure 1. The system uses an Android smartphone or tablet as the control terminal and exchanges files with the remote control through the Internet. The wireless routing transmit module is built from the WiFi gateway in the system. Each child node has a wireless network receiving module. After the sub-nodes are connected to smart (dimmer) switches, smart infrared transmitters, smart curtain controllers and other devices, they can receive data interaction between WiFi gateways and wireless transmitting modules. The infrared transmitter adopts a fully digital wireless two-way communication method, and the antenna receives WiFi signals and signals generated by keystrokes. At the same time, the filter changes the frequency of the received signal, and after being processed by the microcontroller control system, the infrared signal is sent to the connected equipment to realize remote control of air conditioners, audio, air conditioners and other equipment. television. Household appliances in the room, such as series, kitchen appliances, etc.

figure 1

3.2 Smart home system hardware design

3.2.1 System schematic diagram

        STM32F103C8T6 is a 32-bit ARM Cortex-M3 core micro-management device with powerful performance. It has a variety of scalable functions, including flash memory, SRAM, clock, timer, ADC, PWM, USART, and can meet the needs of a variety of industries. , such as industrial production monitoring, smart homes, vehicle electronic equipment, medical equipment, etc. This chip plays a key role in this integrated circuit, as shown in Figure 2

 

figure 2

3.3 Smart home system software design

3.3.1 Login interface design of Android client

        Create a layout file named "login_activity.xml" which is a layout file used to manage user information. It contains various elements such as user name, password input box and login button.

        Create a class called "LoginActivity" in Java code that inherits from "AppCompatActivity".

        Define variables in the "LoginActivity" class to reference components in the layout file, such as TextView, EditText, and Button.

        Use the "findViewById()" method in the "onCreate()" method to associate the component in the layout file with the variable in the Java code.

        By installing a click event listener, when a user clicks the login button, real-time monitoring of related events can be achieved, thereby improving login efficiency.

        Get the text in the username and password input boxes in an event listener and use that text to authenticate the user.

        If the user's account number and password are accurately recorded, the system will automatically return to the main interface. If it is not accurately recorded, the system will issue a warning to remind the user to pay attention.

        Finally, add the "LoginActivity" class to the AndroidManifest.xml file and set it as the application's startup activity.

3.3.2 Program function implementation

        Establish a Socket connection: Establish a Socket connection through the IP address and port number, and display the connection status on the interface. When the user clicks the connect button, the connection event will be executed, that is, the Socket connection will be established.

Ventilation switch button initialization

        Add a ToggleButton control in the layout file, find the control in the Java code and set the listener

Dehumidification switch button

Add a ToggleButton control to the layout file:

xml

<ToggleButton

    android:id="@+id/dehumidifier_toggle"

    android:layout_width="wrap_content"

    android:layout_height="wrap_content"

    android:textOff="关闭"

android:textOn="打开" />

3.3.3 Page display

Implement the layout of the app page here in activity_main.Xml.

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"

    xmlns:tools="http://schemas.android.com/tools"

    android:layout_width="match_parent"

    android:layout_height="match_parent"

    

    android:orientation="vertical"

    tools:context=".MainActivity" >





    <LinearLayout

        android:layout_width="fill_parent"

        android:layout_height="fill_parent"

        android:layout_marginTop="20dp"

        android:orientation="vertical">





        <LinearLayout

            android:layout_width="match_parent"

            android:layout_height="wrap_content"

            android:orientation="horizontal">





            <EditText

                android:id="@+id/IPText"

                android:layout_width="match_parent"

                android:layout_height="wrap_content"

                android:layout_marginLeft="10dp"

                android:layout_marginRight="5dp"

                android:layout_weight="1"

                android:ems="10"

                android:hint="请输入衣柜服务端的IP地址"

                android:textSize="20dp" />



            <Button

                android:id="@+id/StartConnect"

                android:layout_width="match_parent"

                android:layout_height="wrap_content"

                android:layout_marginRight="10dp"

                android:layout_weight="2"

                android:text="开始连接"

                android:textSize="20dp" />

        </LinearLayout>





        <RelativeLayout

            android:layout_width="match_parent"

            android:layout_height="wrap_content">



            <TextView

                android:id="@+id/tv1"

                android:layout_width="match_parent"

                android:layout_height="wrap_content"

                android:layout_marginLeft="20dp"

                android:textSize="20dp" />



        </RelativeLayout>



        <LinearLayout

            android:layout_width="match_parent"

            android:layout_height="wrap_content"

            android:orientation="vertical">



            <LinearLayout

                android:layout_width="match_parent"

                android:layout_height="wrap_content"

                android:gravity="center"

                android:orientation="horizontal">



                <TextView

                    android:id="@+id/textView"

                    android:layout_width="wrap_content"

                    android:layout_height="wrap_content"

                    android:layout_marginLeft="10dp"

                    android:text="通风"

                    android:textSize="25sp" />



                <Switch

                    android:id="@+id/switch_c"

                    android:layout_width="wrap_content"

                    android:layout_height="wrap_content"

                    android:layout_marginLeft="40dp"

                    android:textOff="OFF"

                    android:textOn="ON"

                    android:thumb="@drawable/thumb"

                    android:track="@drawable/track"



                    />

            </LinearLayout>



            <LinearLayout

                android:layout_width="wrap_content"

                android:layout_height="wrap_content"

                android:layout_gravity="center"

                android:layout_marginTop="20dp"

                android:gravity="center"

                android:orientation="horizontal">



                <TextView

                    android:id="@+id/textView2"

                    android:layout_width="wrap_content"

                    android:layout_height="wrap_content"

                    android:layout_marginLeft="10dp"

                    android:gravity="center"

                    android:text="抽湿"

                    android:textSize="25sp" />



                <Switch

                    android:id="@+id/switch_t"

                    android:layout_width="wrap_content"

                    android:layout_height="wrap_content"

                    android:layout_marginLeft="40dp"

                    android:textOff="OFF"

                    android:textOn="ON"

                    android:thumb="@drawable/thumb"

                    android:track="@drawable/track"



                    />

            </LinearLayout>



        </LinearLayout>



        <LinearLayout

            android:layout_width="match_parent"

            android:layout_height="wrap_content"

            android:orientation="vertical">



            <TextView

                android:id="@+id/temp_text"

                android:layout_width="match_parent"

                android:layout_height="wrap_content"

                android:layout_marginLeft="20dp"

                android:layout_marginTop="15dp"

                android:text="温湿度:0℃"

                android:textSize="25sp" />



            <TextView

                android:id="@+id/mq_text"

                android:layout_width="match_parent"

                android:layout_height="wrap_content"

                android:layout_marginLeft="20dp"

                android:text="气体浓度:0%"

                android:textSize="25sp" />

        </LinearLayout>



        <TextView

            android:id="@+id/test"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

            android:layout_gravity="center"

            android:text="杨佳生智能家居"

            android:textColor="#F80040FF"

            android:textSize="30sp" />



        <Button

            android:id="@+id/button_test"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

            android:text="点击我会害羞的" />



    </LinearLayout>

</RelativeLayout>

3.3.4 Implementation effects

Build and package the APP and install it on your mobile phone

 

Debugging using tcp

You can see that the app is connected and can receive data from the control system

4. Solution to the problem

4.1 Solution

        The smart home remote control system designed in this article mainly includes three parts: home equipment connection module, remote control module and cloud platform module. The home device connection module is responsible for connecting smart home devices to the Internet, the remote control module is responsible for receiving user control instructions and sending them to home devices, and the cloud platform module is responsible for providing cloud computing services for home devices.

4.2 Description of the main parts of the plan or technical analysis

        The home device connection module uses wireless network communication technology and mainly includes Wi-Fi modules and MCU control chips. The Wi-Fi module is responsible for communicating with the Internet, and the MCU control chip is responsible for connecting smart home devices with the Wi-Fi module. The remote control module is controlled using a smartphone App or web page, and mainly includes a control command generation module and a control command transmission module. The control instruction generation module is responsible for generating control instructions, and the control instruction transmission module is responsible for transmitting the control instructions to the home device connection module. The cloud platform module uses cloud computing technology and mainly includes data storage module, data processing module and data analysis module. The data storage module is responsible for storing data of home devices, the data processing module is responsible for processing and managing data, and the data analysis module is responsible for analyzing and evaluating data.

4.3 Plan feasibility analysis

4.3.1 Technical feasibility

        Technically speaking, the design of a smart home remote control system is feasible. Looking at the overall situation, using advanced technical means to build an efficient, safe and efficient smart home remote control system requires careful selection and optimization of equipment, effective transmission protocols and corresponding coding software to ensure its efficient operation. These devices can connect to the smart home control center through different communication protocols (such as Wi-Fi, Bluetooth, Zigbee, etc.) to achieve data collection and control instruction transmission.

        At the same time, smart home remote control systems require the development of corresponding software and APPs. For software development, you can choose from different programming languages ​​and development frameworks, such as Python, Java, Node.js, etc. For APP development, you can choose different mobile development platforms, such as Android, iOS, etc. At the same time, cloud platforms can be used to store and process data, enabling data sharing and remote access.

        When designing a smart home remote control system, its economic viability depends on the investment cost and expected rate of return. 4.3.2 Economic feasibility

        The economic feasibility of a smart home remote control system design mainly depends on the input cost and expected benefits of the system.

        First of all, the system investment cost includes hardware equipment, software development, APP development, cloud platform, etc. These costs need to be fully budgeted and evaluated at the early stage of the design plan to ensure the feasibility and economy of the system.

        Secondly, expected benefits include the use value and commercial value of the system. The use value of the system is mainly reflected in improving the quality of life, saving energy, improving safety, etc., which can be realized through the smart home remote control system. Business value includes aspects such as product sales and service charges, which require analysis and prediction based on market demand and competition.

        Taken together, the economic feasibility of the smart home remote control system design is relatively high. With the continuous development of the smart home market and the increasing needs of users, smart home remote control systems will become one of the important products on the market. At the same time, with the continuous advancement of technology and the continuous decline of costs, the investment cost of smart home remote control systems will gradually decrease, making the system more economical and feasible. .

4.3.3 User feasibility

        The user feasibility of a smart home remote control system mainly depends on the user's needs and experience.

        First, user needs are at the core of the design solution. Smart home remote control systems need to meet the needs of users, including improving quality of life, saving energy, and improving security. Therefore, it is necessary to fully consider the needs of users when designing solutions, and conduct market research and user needs analysis to ensure that the system can meet user expectations and needs.

        Secondly, user experience is one of the key factors for users to choose a smart home remote control system. The system needs to have a good user interface and operating experience, so that users can easily achieve remote control and monitoring, and improve user satisfaction and experience.

        Overall, the user feasibility of smart home remote control systems is relatively high. As the smart home market continues to develop and user needs continue to increase, users' demand for smart home remote control systems will also continue to increase. At the same time, with the continuous advancement of technology and the continuous improvement of products, the experience of using smart home remote control systems will gradually improve, making users more willing to choose to use smart home remote control systems.

5 Conclusion

        The smart home remote control system designed in this paper has high feasibility and practicability, and can facilitate users to remotely control home equipment and improve the quality of life and comfort. This system has a certain role in promoting the development of the smart home field and provides a feasible solution for the practical application of smart home remote control systems.

references

[1] Zhang Lei. Design of smart home remote control system based on STM32 [D]. Hebei University of Engineering, 2018.

[2] Wang Jia. Research on smart home remote control system based on Internet of Things technology [D]. Shandong University, 2016.

[3] Wang Dandan, Wang Ji, Yang Wenjing. Design of smart home remote control system based on MQTT protocol [J]. Computer Knowledge and Technology, 2019, 15(2): 97-99.

[4] Wang Zhiyong, Wang Ying. Design of smart home remote control system based on cloud computing [J]. Electronic Technology and Software Engineering, 2017, 6(9): 56-57.

[5] Wang Qiang. Design of smart home remote control system based on Android [J]. Computer Knowledge and Technology, 2018, 14(20): 68-70.

[6] Liu Yang. Design of smart home remote control system based on WeChat public account [J]. Computer Knowledge and Technology, 2018, 14(23): 113-115.

[7] Wang Jia, Wang Xin. Design of smart home remote control system based on ZigBee technology [J]. Computer Knowledge and Technology, 2016, 12(23): 47-49.

[8] Tao Jie, Zhao Lei. Design of smart home remote control system based on wireless sensor network [J]. Computer Knowledge and Technology, 2017, 13(9): 102-104.

[9] Wang Wenjuan, Wang Dandan, Wang Ji. Web-based smart home remote control system design [J]. Electronic Technology and Software Engineering, 2019, 8(10): 44-45.

[10] Zhou Wenlong, Zhang Yang. Design of smart home remote control system based on STM32 and WiFi [J]. Electronic Technology, 2018, 31(2): 118-120.

Acknowledgments

        I would first like to thank my admired instructors for their careful guidance and constant encouragement. He gave me a lot of valuable advice on topic selection, research direction, and thesis structure, and gave me countless help and support when I encountered difficulties. Without his careful guidance and constant attention, I would not have been able to complete this graduation thesis. At the same time, I would also like to thank the teachers and classmates at the college for providing me with sufficient time and space during my graduation project, which enabled me to focus on my research and devote myself wholeheartedly to the writing of my graduation thesis.

        In addition, I would like to thank the companies I work for for providing me with the necessary data, resources and technical support. During the whole process of graduation project, they gave me a lot of help and provided me with a good research environment and conditions.

        Finally, I would like to thank everyone who has helped me, as well as my parents, who communicated with me during the thesis, shared my psychological pressure, helped me in my daily life, and encouraged me in my study spirit.

        Finally, I would like to express my gratitude and heartfelt thanks to this group of people who have been willing to help me.

Please follow and like + privately message the blogger to receive the project source code

Follow the blogger for a more exciting next article

Three consecutive hits with one click! ! !

Three consecutive hits with one click! ! !

Three consecutive hits with one click! ! !
Thanks for the three-click connection! ! !

Guess you like

Origin blog.csdn.net/m0_56073435/article/details/131181535