Wireless Control Method, Smart Home Device and Client
By presenting the client's MAC address in the pre-stored device information of the smart home device, Bluetooth communication between the smart home device and the client is realized, solving the complex problem of multiple distribution network authentication between different communication channels, and improving user experience and security.
Patent Information
- Application Number
- CN202211274171.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-18
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2042-10-18
AI Technical Summary
In the prior art, smart home devices are complicated to authenticate multiple distribution networks between different communication channels, resulting in poor user experience.
When the client's MAC address exists in the pre-stored device information of the smart home device, the smart home device communicates with the client through Bluetooth, so that authentication is only required once, no matter what channel the client connects through.
The multi-distribution network authentication process for smart home devices is simplified, the user experience is improved, unnecessary security verification is reduced, and security is ensured.
Smart Images

Figure CN115580503B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of smart home devices. Specifically, it relates to a wireless control method, a smart home device, a client, and a smart home device system. Background Art
[0002] Smart devices are an essential core part of smart homes. Communication technologies such as Bluetooth, WiFi, zigBee, RFID, infrared, and radio frequency also play important roles. In particular, the combination of Bluetooth and WiFi enables control in different scenarios of wide area networks and local area networks. In recent years, BLE Bluetooth and WiFi have also become standard hardware for various smart devices.
[0003] In the current trend of information Internet and smart homes, information security and user experience are important and indispensable links in product design. For example, how a mobile phone connects to a device for communication control.
[0004] A mobile phone and a device can be bound and controlled through BLE or WiFi, with the help of an APP or a small program. However, different communication methods require different authentication methods. After a device is authenticated through WiFi, if it wants to be controlled via Bluetooth, it still needs to be re-authenticated via Bluetooth, and the process is too complex. Summary of the Invention
[0005] The main objective of this application is to provide a wireless control method, a smart home device, a client, and a smart home device system to solve the problem of complex multiple network configuration and authentication for the same device through different channels in the prior art.
[0006] According to one aspect of an embodiment of the present invention, a wireless control method is provided. This method is applied to a smart home device and includes: the smart home device receives an information encapsulation protocol sent by a client, and the encapsulation protocol includes the MAC address of the client; when the MAC address of the client exists in the pre-stored device information of the smart home device, the smart home device communicates with the client via Bluetooth, and the pre-stored device information of the smart home device includes at least one MAC address.
[0007] Optionally, before the smart home device receives the information encapsulation protocol sent by the client, the method further includes: the smart home device periodically updates the pre-stored device information.
[0008] Optionally, the smart home device periodically updates the pre-stored device information, including: after each predetermined time period, the smart home device receives the MAC address of the client and the IP address of the client sent by the signal relay device, where the IP address of the client is an address generated by the signal relay device according to the MAC address of the client; the smart home device constructs an address mapping relationship table, which is used to represent the mapping relationship between the MAC address of the client and the IP address of the client sent by the signal relay device; the smart home device stores the address mapping relationship table in a database.
[0009] Optionally, after the smart home device stores the address mapping relationship table in the database, the method further includes: the smart home device receives the MAC address of the client and the current IP address of the client sent by the signal relay device, where the current IP address of the client is used to represent the IP address of the client at the current moment; when the MAC address of the client exists in the address mapping relationship table, the smart home device replaces the IP address of the client in the address mapping relationship table with the current IP address of the client.
[0010] Optionally, the method further includes: when the MAC address of the client does not exist in the pre-stored device information of the smart home device, the smart home device performs a Bluetooth security check on the client.
[0011] Optionally, the smart home device performs a Bluetooth security check on the client, including: the smart home device receives a Bluetooth request instruction sent by the client; the smart home device generates a reply instruction according to the Bluetooth request instruction and sends the reply instruction to the smart home device; the smart home device generates a connection code according to the Bluetooth request instruction and displays the connection code on the display screen of the smart home device.
[0012] According to another aspect of the embodiments of the present invention, a wireless control method is further provided. The method is applied to a client and includes: the client encapsulates the MAC address of the client into the information protocol of the client to obtain an information encapsulation protocol; the client sends the information encapsulation protocol to a smart home device, where when the MAC address of the client exists in the pre-stored device information of the smart home device, the smart home device communicates with the client via Bluetooth.
[0013] According to another aspect of the embodiments of the present invention, a smart home device is further provided. The smart home device includes a receiving unit and a control unit. The receiving unit is configured to receive an information encapsulation protocol sent by a client, and the encapsulation protocol includes the MAC address of the client. The control unit is configured to, when the MAC address of the client exists in the pre-stored device information of the smart home device, communicate with the client via Bluetooth. The pre-stored device information of the smart home device includes at least one MAC address.
[0014] According to another aspect of the embodiments of the present invention, a client is further provided. The client includes a processing unit and a sending unit. The processing unit is configured to encapsulate the MAC address of the client into the information protocol of the client to obtain an information encapsulation protocol. The sending unit is configured to send the information encapsulation protocol to the smart home device. Wherein, when the MAC address of the client exists in the pre-stored device information of the smart home device, the smart home device communicates with the client via Bluetooth.
[0015] According to another aspect of the embodiments of the present invention, a smart home device system is further provided. The system includes a smart home device and a client, and the smart home device is configured to execute any one of the wireless control methods described above.
[0016] In the embodiments of the present invention, when the MAC address of the client exists in the pre-stored device information of the smart home device, the smart home device communicates with the client via Bluetooth, so that the same client only needs to be authenticated once when connecting to the same smart home device or the same group of smart home devices regardless of the channel, thereby solving the problem of complex multiple network configuration authentication for the same device through different channels in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings forming a part of this application are used to provide a further understanding of this application. The schematic embodiments of this application and their descriptions are used to explain this application and do not constitute an improper limitation to this application. In the drawings:
[0018] Figure 1 A flowchart of a wireless control method according to an embodiment of the present application is shown;
[0019] Figure 2 A schematic diagram of a smart home device according to an embodiment of the present application is shown.
[0020] Figure 3 A flowchart of another wireless control method according to an embodiment of the present application is shown;
[0021] Figure 4The figure shows a schematic diagram of a client according to an embodiment of the present application;
[0022] Figure 5 The figure shows a flowchart of a wireless control scheme according to an embodiment of the present application. Detailed implementation manners
[0023] It should be noted that, without conflict, the embodiments in the present application and the features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the drawings and in conjunction with the embodiments.
[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so as to implement the embodiments of the present application described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units does not necessarily need to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0026] It should be understood that when an element (such as a layer, film, region, or substrate) is described as being "on" another element, the element can be directly on the other element, or there may also be an intermediate element. Moreover, in the specification and claims, when an element is described as "connected" to another element, the element can be "directly connected" to the other element, or "connected" to the other element through a third element.
[0027] As described in the background art, in the prior art, a mobile phone and a device can be bound and controlled through BLE or WiFi, with the help of an APP or a mini-program. However, different communication methods require different authentication methods. After a same device is authenticated through WiFi, if it wants to be controlled through Bluetooth, it still needs to be re-authenticated via Bluetooth, and the process is too complex. To solve the problem of complex multiple network configuration and authentication for the same device through different channels in the prior art, in a typical implementation manner of the present application, a wireless control method, a smart home device, a client, and a smart home device system are provided.
[0028] According to an embodiment of the present application, a wireless control method is provided. This method is applied to smart home devices, and the smart home devices can be smart air conditioners, smart refrigerators, etc.
[0029] Figure 1 is a flowchart of a wireless control method according to an embodiment of the present application. As Figure 1 shown, the method includes the following steps:
[0030] Step S101, the above-mentioned smart home device receives an information encapsulation protocol sent by the client, and the above-mentioned encapsulation protocol includes the MAC address of the above-mentioned client;
[0031] Step S102, when the MAC address of the above-mentioned client exists in the pre-stored device information of the above-mentioned smart home device, the above-mentioned smart home device communicates with the above-mentioned client via Bluetooth. The pre-stored device information of the above-mentioned smart home device includes at least one MAC address.
[0032] In the above steps, when the MAC address of the above-mentioned client exists in the pre-stored device information of the above-mentioned smart home device, the above-mentioned smart home device communicates with the above-mentioned client via Bluetooth, so that the same client connecting to the same smart home device or the same group of smart home devices only needs to be authenticated once regardless of the channel, thereby solving the problem of complex multiple network configuration authentications for the same device through different channels in the prior art.
[0033] In an embodiment of the present application, before the smart home device receives the information encapsulation protocol sent by the client, and the above-mentioned encapsulation protocol includes the MAC address of the above-mentioned client, the method further includes: the above-mentioned smart home device regularly updates the above-mentioned pre-stored device information. By updating the above-mentioned pre-stored device information, the smart home device can store more information of the client.
[0034] In an embodiment of the present application, the above-mentioned smart home device regularly updates the above-mentioned pre-stored device information, including: after each predetermined time period, the above-mentioned smart home device receives the MAC address of the above-mentioned client and the IP address of the above-mentioned client sent by the signal relay device. The IP address of the above-mentioned client is an address generated by the signal relay device according to the MAC address of the above-mentioned client; the above-mentioned smart home device constructs an address mapping relationship table, and the address mapping relationship table is used to represent the mapping relationship between the MAC address of the above-mentioned client and the IP address of the above-mentioned client sent by the signal relay device; the above-mentioned smart home device stores the address mapping relationship table in the database.
[0035] Specifically, by constructing the mapping relationship between the MAC address of the above-mentioned client and the IP address of the above-mentioned client sent by the above-mentioned signal relay device, so that when the MAC address of the above-mentioned client and the IP address of the above-mentioned client are entered subsequently, the purpose of updating the IP address of the above-mentioned client can be achieved.
[0036] In an embodiment of the present application, after the above-mentioned smart home device stores the above-mentioned address mapping relationship table in the database, the above-mentioned method further includes: the above-mentioned smart home device receives the MAC address of the above-mentioned client and the current IP address of the above-mentioned client sent by the above-mentioned signal relay device, and the current IP address of the above-mentioned client is used to represent the IP address of the above-mentioned client at the current moment; when the MAC address of the above-mentioned client exists in the above-mentioned address mapping relationship table, the above-mentioned smart home device replaces the IP address of the above-mentioned client in the above-mentioned address mapping relationship table with the current IP address of the above-mentioned client.
[0037] Since the IP address is changing, it is necessary to continuously update the IP address to correspond to the latest IP address of the client for subsequent Bluetooth connection.
[0038] In an embodiment of the present application, the above-mentioned method further includes: when the MAC address of the above-mentioned client does not exist in the pre-stored device information of the above-mentioned smart home device, the above-mentioned smart home device performs a Bluetooth security check on the above-mentioned client.
[0039] In an embodiment of the present application, when the above-mentioned smart home device performs a Bluetooth security check on the above-mentioned client, it includes: the above-mentioned smart home device receives a Bluetooth request instruction sent by the above-mentioned client; the above-mentioned smart home device generates a reply instruction according to the above-mentioned Bluetooth request instruction and sends the above-mentioned reply instruction to the above-mentioned smart home device; the above-mentioned smart home device generates a connection code according to the above-mentioned Bluetooth request instruction and displays the above-mentioned connection code on the display screen of the above-mentioned smart home device.
[0040] Specifically, by obtaining IP or MAC information, the authorization verification of WIFI and Bluetooth is realized, and the wireless control quick authentication is provided, which reduces unnecessary security verification, but still ensures security. The Bluetooth security check will only be performed when the client first connects to the smart home device, thus avoiding subsequent security checks and improving the convenience of using the client later.
[0041] It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.
[0042] The embodiments of the present application also provide a smart home device. It should be noted that the smart home device of the embodiments of the present application can be used to execute the wireless control method provided by the embodiments of the present application. The following introduces the smart home device provided by the embodiments of the present application.
[0043] Figure 2 is a schematic diagram of a smart home device according to an embodiment of the present application. As Figure 2 shown, the smart home device includes a receiving unit 21 and a control unit 22; the receiving unit 21 is configured to receive an information encapsulation protocol sent by a client, and the encapsulation protocol includes the MAC address of the client; the control unit 22 is configured to, when the MAC address of the client exists in the pre-stored device information of the smart home device, the smart home device communicates with the client via Bluetooth, and the pre-stored device information of the smart home device includes at least one MAC address.
[0044] In the above smart home device, when the MAC address of the client exists in the pre-stored device information of the smart home device, the smart home device communicates with the client via Bluetooth, so that the same client only needs to be authenticated once when connecting to the same smart home device or the same group of smart home devices regardless of the channel, thereby solving the problem of complex multiple network configuration authentications for the same device through different channels in the prior art.
[0045] In an embodiment of the present application, the smart home device includes an updating unit. Before the smart home device receives the information encapsulation protocol sent by the client, and the encapsulation protocol includes the MAC address of the client, the updating unit is configured to periodically update the pre-stored device information.
[0046] In an embodiment of the present application, the updating unit includes a first receiving sub-module, a building sub-module, and a storage sub-module. The first receiving sub-module is configured to receive the MAC address of the client and the IP address of the client sent by a signal relay device after each predetermined time period, and the IP address of the client is an address generated by the signal relay device according to the MAC address of the client; the building sub-module is configured to build an address mapping relationship table, and the address mapping relationship table is used to represent the mapping relationship between the MAC address of the client and the IP address of the client sent by the signal relay device; the storage sub-module is configured to store the address mapping relationship table in a database.
[0047] In an embodiment of the present application, the update unit includes a second receiving sub-module and a replacement sub-module. After the above-mentioned smart home device stores the above-mentioned address mapping relationship table in the database, the second receiving sub-module is used to receive the MAC address of the above-mentioned client and the current IP address of the above-mentioned client sent by the above-mentioned signal relay device. The current IP address of the above-mentioned client is used to represent the IP address of the above-mentioned client at the current moment. The replacement sub-module is used to, when the MAC address of the above-mentioned client exists in the above-mentioned address mapping relationship table, the above-mentioned smart home device replaces the IP address of the above-mentioned client in the above-mentioned address mapping relationship table with the current IP address of the above-mentioned client.
[0048] In an embodiment of the present application, the smart home device includes a verification unit. The verification unit is used to perform Bluetooth security verification on the above-mentioned client when the MAC address of the above-mentioned client exists in the pre-stored device information of the above-mentioned smart home device.
[0049] In an embodiment of the present application, the verification unit includes a third receiving sub-module, a first processing sub-module, and a second processing sub-module. The third receiving sub-module is used to receive the Bluetooth request instruction sent by the above-mentioned client. The first processing sub-module is used for the above-mentioned smart home device to generate a reply instruction according to the above-mentioned Bluetooth request instruction and send the above-mentioned reply instruction to the above-mentioned smart home device. The second processing sub-module is used to generate a connection code according to the above-mentioned Bluetooth request instruction and display the above-mentioned connection code on the display screen of the above-mentioned smart home device.
[0050] The above-mentioned smart home device includes a processor and a memory. The above-mentioned receiving unit and control unit, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to implement corresponding functions.
[0051] The processor contains a kernel, and the kernel is used to retrieve the corresponding program unit from the memory. One or more kernels can be set, and by adjusting the kernel parameters, the problem of complex multiple network configuration authentications through different channels for the same device in the prior art can be solved.
[0052] The memory may include non-permanent memory in a computer-readable medium, forms such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM), and the memory includes at least one storage chip.
[0053] An embodiment of the present invention provides a computer-readable storage medium, on which a program is stored, and when the program is executed by a processor, the above-mentioned wireless control method is implemented.
[0054] An embodiment of the present invention provides a processor, and the above-mentioned processor is used to run a program, wherein when the above-mentioned program runs, the above-mentioned wireless control method is executed.
[0055] The present application also provides a wireless control method, which is applied to a client. The client can be a mobile phone, a smart tablet lamp, etc. Figure 3 It is a flowchart of another wireless control method according to an embodiment of the present application. As Figure 3 shown, the method includes the following steps:
[0056] Step S301, the above-mentioned client encapsulates the MAC address of the above-mentioned client into the information protocol of the above-mentioned client to obtain an information encapsulation protocol;
[0057] Step S302, the above-mentioned client sends the above-mentioned information encapsulation protocol to the smart home device. Wherein, when the MAC address of the above-mentioned client exists in the pre-stored device information of the smart home device, the above-mentioned smart home device communicates with the above-mentioned client via Bluetooth.
[0058] In the above steps, when the MAC address of the above-mentioned client exists in the pre-stored device information of the above-mentioned smart home device, the above-mentioned smart home device communicates with the above-mentioned client via Bluetooth, so that the same client connecting to the same smart home device or the same group of smart home devices only needs to be authenticated once regardless of the channel, thereby solving the problem of complex multiple network configuration authentication for the same device through different channels in the prior art.
[0059] In an embodiment of the present application, before the above-mentioned client encapsulates the MAC address of the above-mentioned client into the information protocol of the above-mentioned client to obtain an information encapsulation protocol, the method further includes: the above-mentioned client sends the MAC address of the above-mentioned client and the IP address of the above-mentioned client to the above-mentioned smart home device, so that the above-mentioned smart home device regularly updates the above-mentioned pre-stored device information. The above-mentioned smart home device receives the MAC address of the above-mentioned client and the IP address of the above-mentioned client sent by the signal relay device, and the IP address of the above-mentioned client is an address generated by the signal relay device according to the MAC address of the above-mentioned client. By updating the above-mentioned pre-stored device information, the smart home device can store more information of clients.
[0060] In an embodiment of the present application, the client sending the MAC address and the IP address of the client to the smart home device includes: after each predetermined time period, the client sending the MAC address and the IP address of the client to the smart home device, wherein the MAC address and the IP address of the client are used to control the smart home device to construct an address mapping relationship table, and the address mapping relationship table is used to represent the mapping relationship between the MAC address and the IP address of the client sent by the signal relay device, and the smart home device stores the address mapping relationship table in a database.
[0061] Specifically, by constructing the mapping relationship between the MAC address and the IP address of the client sent by the signal relay device, subsequent entry of the MAC address and the IP address of the client can achieve the purpose of updating the IP address of the client.
[0062] In an embodiment of the present application, after the client sends the MAC address and the IP address of the client to the smart home device, the method further includes: the client sending the MAC address of the client to the signal relay device to control the signal relay device to generate the current IP address of the client according to the MAC address of the client, wherein the current IP address of the client is sent by the signal relay device to the smart home device, and when the MAC address of the client exists in the address mapping relationship table, the smart home device replaces the IP address of the client in the address mapping relationship table with the current IP address of the client, and the current IP address of the client is used to represent the IP address of the client at the current moment.
[0063] Since the IP address is changing, it is necessary to continuously update the IP address to correspond to the latest IP address of the client for subsequent Bluetooth connection.
[0064] In an embodiment of the present application, the method further includes: when the MAC address of the client does not exist in the pre-stored device information of the smart home device, the client sending a Bluetooth request instruction to the smart home device to control the smart home device to perform Bluetooth security verification on the client.
[0065] In an embodiment of the present application, after the client sends a Bluetooth request instruction to the smart home device, the method further includes: the client receives a reply instruction sent by the smart home device, and the reply instruction is an instruction generated by the smart home device according to the Bluetooth request instruction; when a predetermined operation acting on the display screen of the client is received, the client communicates with the smart home device via Bluetooth, and the predetermined operation is used to represent that the user inputs a connection code displayed on the display screen of the smart home device on the display screen of the client, and the connection code is a code generated by the smart home device according to the Bluetooth request instruction.
[0066] Specifically, by obtaining IP or MAC information, the authorization verification of WIFI and Bluetooth is realized, and the wireless control quick authentication is provided, reducing unnecessary security verification, but still ensuring security. The Bluetooth security check is only performed when the client first connects to the smart home device, thus avoiding subsequent security checks and improving the convenience of using the client later.
[0067] The embodiment of the present application also provides a client. It should be noted that the smart home device in the embodiment of the present application can be used to execute the wireless control method provided by the embodiment of the present application. The following introduces the client provided by the embodiment of the present application.
[0068] Figure 4 is a schematic diagram of the client according to the embodiment of the present application. As Figure 4 shown, the client includes a processing unit 41 and a sending unit 42; the processing unit 41 is used to encapsulate the MAC address of the client into the information protocol of the client to obtain an information encapsulation protocol; the sending unit 42 is used to send the information encapsulation protocol to the smart home device, where when the MAC address of the client exists in the pre-stored device information of the smart home device, the smart home device communicates with the client via Bluetooth.
[0069] In the above client, when the MAC address of the client exists in the pre-stored device information of the smart home device, the smart home device communicates with the client via Bluetooth, so that the same client connecting to the same smart home device or the same group of smart home devices only needs to be authenticated once regardless of the channel, thus solving the problem of complex multiple network configuration authentication for the same device through different channels in the prior art.
[0070] In an embodiment of the present application, the client includes a first communication unit. Before the client encapsulates the MAC address of the client into the information protocol of the client to obtain the information encapsulation protocol, the first communication unit is used to send the MAC address of the client and the IP address of the client to the smart home device, so that the smart home device periodically updates the pre-stored device information. The smart home device receives the MAC address of the client and the IP address of the client sent by the signal relay device, and the IP address of the client is an address generated by the signal relay device according to the MAC address of the client.
[0071] In an embodiment of the present application, the communication unit includes a third processing sub-module. The third processing sub-module is used to send the MAC address of the client and the IP address of the client to the smart home device after each predetermined time period. Among them, the MAC address of the client and the IP address of the client are used to control the smart home device to construct an address mapping relationship table, and the address mapping relationship table is used to represent the mapping relationship between the MAC address of the client sent by the signal relay device and the IP address of the client. The smart home device stores the address mapping relationship table in the database.
[0072] In an embodiment of the present application, the communication unit includes a fourth processing sub-module. The fourth processing sub-module is used to send the MAC address of the client to the signal relay device after the client sends the MAC address of the client and the IP address of the client to the smart home device, so as to control the signal relay device to generate the current IP address of the client according to the MAC address of the client. Among them, the current IP address of the client is sent by the signal relay device to the smart home device. When the MAC address of the client exists in the address mapping relationship table, the smart home device replaces the IP address of the client in the address mapping relationship table with the current IP address of the client, and the current IP address of the client is used to represent the IP address of the client at the current moment.
[0073] In an embodiment of the present application, the client further includes a second communication unit. The second communication unit is used to send a Bluetooth request instruction to the smart home device when the MAC address of the client does not exist in the pre-stored device information of the smart home device, so as to control the smart home device to perform Bluetooth security verification on the client.
[0074] In an embodiment of the present application, the client further includes a third communication unit and a fourth communication unit. After the client sends a Bluetooth request instruction to the smart home device, the third communication unit is used to receive a reply instruction sent by the smart home device, and the reply instruction is an instruction generated by the smart home device according to the Bluetooth request instruction; the fourth communication unit is used to communicate with the smart home device via Bluetooth when receiving a predetermined operation on the display screen of the client, and the predetermined operation is used to represent that the user inputs a connection code displayed on the display screen of the smart home device on the display screen of the client, and the connection code is a code generated by the smart home device according to the Bluetooth request instruction.
[0075] The present application also provides a smart home device system, which includes a smart home device and a client. The smart home device is used to execute any one of the above wireless control methods. When the MAC address of the client exists in the pre-stored device information of the smart home device, the smart home device communicates with the client via Bluetooth, so that the same client only needs to be authenticated once when connecting to the same smart home device or the same group of smart home devices regardless of the channel, thereby solving the problem of complex multiple network configuration authentications for the same device through different channels in the prior art.
[0076] An embodiment of the present invention provides a device, which includes a processor, a memory, and a program stored on the memory and executable on the processor. When the processor executes the program, it implements at least the following steps: the smart home device receives an information encapsulation protocol sent by the client, and the encapsulation protocol includes the MAC address of the client; when the MAC address of the client exists in the pre-stored device information of the smart home device, the smart home device communicates with the client via Bluetooth, and the pre-stored device information of the smart home device includes at least one MAC address. The device herein can be a server, a PC, a PAD, a mobile phone, etc.
[0077] The present application also provides a computer program product, which, when executed on a data processing device, is adapted to execute a program initialized with at least the following method steps: the smart home device receives an information encapsulation protocol sent by the client, and the encapsulation protocol includes the MAC address of the client; when the MAC address of the client exists in the pre-stored device information of the smart home device, the smart home device communicates with the client via Bluetooth, and the pre-stored device information of the smart home device includes at least one MAC address.
[0078] In order for those skilled in the art to more clearly understand the technical solution of the present application, the following will illustrate the technical solution and technical effect of the present application in combination with specific embodiments.
[0079] Embodiment
[0080] This application provides a wireless control solution, which is applied to the above-mentioned smart home device system, such as Figure 5 As shown, this solution includes the following steps:
[0081] Step 1: After each predetermined time period, the above-mentioned smart home device receives the MAC address of the above-mentioned client and the IP address of the above-mentioned client sent by the signal relay device. The IP address of the above-mentioned client is the address generated by the signal relay device according to the MAC address of the above-mentioned client. The above-mentioned smart home device constructs an address mapping relationship table, which is used to represent the mapping relationship between the MAC address of the above-mentioned client and the IP address of the above-mentioned client sent by the signal relay device. The above-mentioned smart home device stores the address mapping relationship table in the database;
[0082] Step 2: The above-mentioned smart home device receives the MAC address of the above-mentioned client and the current IP address of the above-mentioned client sent by the signal relay device. The current IP address of the above-mentioned client is used to represent the IP address of the above-mentioned client at the current moment. If the MAC address of the above-mentioned client exists in the address mapping relationship table, the above-mentioned smart home device replaces the IP address of the above-mentioned client in the address mapping relationship table with the current IP address of the above-mentioned client. If the MAC address of the above-mentioned client does not exist in the address mapping relationship table, the above-mentioned smart home device stores the current IP address of the above-mentioned client in the address mapping relationship table
[0083] Step 3: The above-mentioned client encapsulates the MAC address of the above-mentioned client into the information protocol of the above-mentioned client to obtain an information encapsulation protocol. The above-mentioned smart home device receives the information encapsulation protocol sent by the client, and the encapsulation protocol includes the MAC address of the above-mentioned client;
[0084] Step 4: When the MAC address of the above client does not exist in the pre-stored device information of the above smart home device, the above smart home device receives the Bluetooth request instruction sent by the above client; the above smart home device generates a reply instruction according to the above Bluetooth request instruction, and sends the above reply instruction to the above smart home device; the above smart home device generates a connection code according to the above Bluetooth request instruction, and displays the above connection code on the display screen of the above smart home device. The above client receives the reply instruction sent by the above smart home device, and the above reply instruction is the instruction generated by the above smart home device according to the above Bluetooth request instruction; when receiving a predetermined operation on the display screen of the client, the above client communicates with the above smart home device via Bluetooth. The above predetermined operation is used to represent that the user inputs the connection code displayed on the display screen of the smart home device on the display screen of the client. The connection code is the code generated by the above smart home device according to the above Bluetooth request instruction, and then step 1 is performed;
[0085] When the MAC address of the above client exists in the pre-stored device information of the above smart home device, the above smart home device communicates with the above client via Bluetooth, and then step 1 is performed.
[0086] In the above steps, when the MAC address of the above client exists in the pre-stored device information of the above smart home device, it is considered to be the same device. The air conditioner device (smart home device) does not start the security verification, and the mobile phone device (client) is considered to be a trusted device, and the Bluetooth control is directly authorized without using a verification code or other security checks; otherwise, security checks are required.
[0087] In the above embodiments of the present invention, the descriptions of each embodiment have their own emphases. For the parts not detailed in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
[0088] In several embodiments provided in the present application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only illustrative. For example, the above unit division can be a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of units or modules can be in electrical or other forms.
[0089] The units described above as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0090] In addition, the functional units in the various embodiments of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
[0091] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in the various embodiments of the present invention. The foregoing storage medium includes: USB flash drives, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), mobile hard disks, magnetic disks, or optical discs and other various media that can store program codes.
[0092] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0093] 1) For the wireless control method of the present application, when the MAC address of the client exists in the pre-stored device information of the above smart home device, the smart home device communicates with the client via Bluetooth, so that the same client connecting to the same smart home device or the same group of smart home devices only needs to be authenticated once regardless of the channel, thereby solving the problem of complex multiple network configuration authentications for the same device through different channels in the prior art.
[0094] 2) For the smart home device of the present application, when the MAC address of the client exists in the pre-stored device information of the above smart home device, the smart home device communicates with the client via Bluetooth, so that the same client connecting to the same smart home device or the same group of smart home devices only needs to be authenticated once regardless of the channel, thereby solving the problem of complex multiple network configuration authentications for the same device through different channels in the prior art.
[0095] 3) When the MAC address of the client exists in the pre-stored device information of the above-mentioned smart home device, the above-mentioned smart home device communicates with the above-mentioned client via Bluetooth, so that the same client only needs to be authenticated once when connecting to the same smart home device or the same group of smart home devices regardless of the channel, thus solving the problem of complex multiple network configuration authentication for the same device through different channels in the prior art.
[0096] 4) When the MAC address of the client exists in the pre-stored device information of the above-mentioned smart home device, the above-mentioned smart home device communicates with the above-mentioned client via Bluetooth, so that the same client only needs to be authenticated once when connecting to the same smart home device or the same group of smart home devices regardless of the channel, thus solving the problem of complex multiple network configuration authentication for the same device through different channels in the prior art.
[0097] The above are only the preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, various changes and modifications can be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A wireless control method, which is applied to a smart home device, characterized in that, Including: The smart home device receives an information encapsulation protocol sent by the client, and the encapsulation protocol includes the MAC address of the client. When the MAC address of the client exists in the pre-stored device information of the smart home device, the smart home device communicates with the client via Bluetooth. The pre-stored device information of the smart home device includes at least one MAC address. The method further includes: When the MAC address of the client does not exist in the pre-stored device information of the smart home device, the smart home device performs a Bluetooth security check on the client. Specifically, the smart home device receives a Bluetooth request instruction sent by the client. The smart home device generates a reply instruction according to the Bluetooth request instruction and sends the reply instruction to the smart home device. The smart home device generates a connection code according to the Bluetooth request instruction and displays the connection code on the display screen of the smart home device.
2. The method according to claim 1, wherein Before the smart home device receives the information encapsulation protocol sent by the client, and the encapsulation protocol includes the MAC address of the client, the method further includes: The smart home device periodically updates the pre-stored device information.
3. The method according to claim 2, characterized in that, The smart home device periodically updating the pre-stored device information includes: After each predetermined time period, the smart home device receives the MAC address of the client and the IP address of the client sent by the signal relay device. The IP address of the client is an address generated by the signal relay device according to the MAC address of the client. The smart home device constructs an address mapping relationship table, which is used to represent the mapping relationship between the MAC address of the client and the IP address of the client sent by the signal relay device. The smart home device stores the address mapping relationship table in the database.
4. The method according to claim 3, characterized in that, After the smart home device stores the address mapping relationship table in the database, the method further includes: The smart home device receives the MAC address of the client and the current IP address of the client sent by the signal relay device. The current IP address of the client is used to represent the IP address of the client at the current moment. When the MAC address of the client exists in the address mapping relationship table, the smart home device replaces the IP address of the client in the address mapping relationship table with the current IP address of the client.
5. A wireless control method, which is applied to a client, is characterized in that, Including: The client encapsulates the MAC address of the client into the information protocol of the client to obtain an information encapsulation protocol. The client sends the information encapsulation protocol to the smart home device. Wherein, when the MAC address of the client exists in the pre-stored device information of the smart home device, the smart home device communicates with the client via Bluetooth. In the case where the MAC address of the client does not exist in the pre-stored device information of the smart home device, the client sends a Bluetooth request instruction to the smart home device to control the smart home device to perform Bluetooth security verification on the client; After the client sends a Bluetooth request instruction to the smart home device, the method further includes: the client receives a reply instruction sent by the smart home device, and the reply instruction is an instruction generated by the smart home device according to the Bluetooth request instruction; in the case of receiving a predetermined operation on the display screen of the client, the client communicates with the smart home device via Bluetooth, and the predetermined operation is used to represent that the user inputs a connection code displayed on the display screen of the smart home device on the display screen of the client, and the connection code is a code generated by the smart home device according to the Bluetooth request instruction.
6. A smart home device, characterized in that, It includes: A receiving unit, configured to receive an information encapsulation protocol sent by the client, and the encapsulation protocol includes the MAC address of the client; A control unit, configured to, in the case where the MAC address of the client exists in the pre-stored device information of the smart home device, the smart home device communicates with the client via Bluetooth, and the pre-stored device information of the smart home device includes at least one MAC address; The smart home device includes a verification unit, and the verification unit is configured to, in the case where the MAC address of the client exists in the pre-stored device information of the smart home device, perform Bluetooth security verification on the client; The verification unit includes a third receiving sub-module, a first processing sub-module, and a second processing sub-module. The third receiving sub-module is configured to receive a Bluetooth request instruction sent by the client; the first processing sub-module is configured to generate a reply instruction by the smart home device according to the Bluetooth request instruction and send the reply instruction to the smart home device; The second processing sub-module is configured to generate a connection code according to the Bluetooth request instruction and display the connection code on the display screen of the smart home device.
7. A client, characterized in that, It includes: A processing unit, configured to encapsulate the MAC address of the client into the information protocol of the client to obtain an information encapsulation protocol; A sending unit, configured to send the information encapsulation protocol to the smart home device, wherein, in the case where the MAC address of the client exists in the pre-stored device information of the smart home device, the smart home device communicates with the client via Bluetooth; The client further includes a second communication unit, and the second communication unit is configured to, in the case where the MAC address of the client does not exist in the pre-stored device information of the smart home device, send a Bluetooth request instruction to the smart home device to control the smart home device to perform Bluetooth security verification on the client; The client further includes a third communication unit and a fourth communication unit. After the client sends a Bluetooth request instruction to the smart home device, the third communication unit is configured to receive a reply instruction sent by the smart home device, and the reply instruction is an instruction generated by the smart home device according to the Bluetooth request instruction; the fourth communication unit is configured to communicate with the smart home device via Bluetooth when receiving a predetermined operation acting on the display screen of the client, and the predetermined operation is used to represent that a user inputs a connection code displayed on the display screen of the smart home device on the display screen of the client, and the connection code is a code generated by the smart home device according to the Bluetooth request instruction.
8. A smart home device system, characterized in that, A smart home device and a client are included, and the smart home device is configured to execute the wireless control method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Authentication for secure wireless communication
CN102197624A
Terminal access position keep-alive method and device
CN103974380A
Communication control method for main control intelligent terminal and terminal
CN106230670A