Equipment communication method, device, equipment, system and storage medium

By using the general host in the smart home system to obtain and transmit wireless network connection information, the problems of complex and poor stability of equipment distribution network are solved, efficient equipment distribution network and stable communication are achieved, and user experience is improved.

CN119835103APending Publication Date: 2025-04-15GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1

Patent Information

Application Number
CN202411905567.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

The equipment distribution network in smart home systems is complex and requires more human intervention, poor stability, low success rate of distribution network, which affects the user experience.

Method used

The terminal device provides the wireless network connection information to the main host. After the main host connects to the wireless network, it provides the connection information to the control terminal and the device host, so that it connects to the wireless network, thereby realizing stable communication between the main host, the control terminal and the device host.

Benefits of technology

The distribution process of smart home system equipment has been simplified, human intervention has been reduced, the success rate and communication stability of equipment distribution network have been improved, and the user experience has been improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119835103A_ABST
    Figure CN119835103A_ABST
Patent Text Reader

Abstract

The invention relates to an equipment communication method and device, equipment, a system and a storage medium, the method is applied to a main host in an intelligent home system, the intelligent home system comprises the main host, a control terminal and an equipment host, and the method comprises the following steps: obtaining connection information of a wireless network from preset terminal equipment, the wireless network is connected according to the connection information; under the condition that the control terminal and / or the equipment host are / is detected, the connection information is sent to the control terminal and / or the equipment host, so that the control terminal and / or the equipment host are / is connected with the wireless network according to the connection information; and communicating with the control terminal and / or the equipment host based on the wireless network. Therefore, the network distribution success rate of the devices in the smart home system and the stability of communication between the devices can be improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart home technology, and in particular to a device communication method, apparatus, device, system and storage medium. Background Art

[0002] At present, with the continuous development of smart home systems, in order to facilitate the control of smart home devices, multiple smart home devices can generally be controlled through a unified smart terminal, realizing one control terminal to control multiple smart home devices, so that users can enjoy the convenience brought by technology.

[0003] In the prior art, since there are many devices in the smart home system, the network configuration process is relatively complicated and requires more human intervention. Its stability is poor and the success rate of one-time network configuration is low, which affects the user experience. Summary of the invention

[0004] The present application provides a device communication method, apparatus, equipment, system and storage medium to solve the problem in the prior art that due to the presence of a large number of devices in a smart home system, the network configuration process is relatively complicated, requires more human intervention, has poor stability, and has a low success rate of one-time network configuration, which affects the user experience.

[0005] In a first aspect, the present application provides a device communication method, which is applied to a main host in a smart home system, wherein the smart home system includes a main host, a control terminal, and a device host, and the method includes:

[0006] Acquire connection information of a wireless network from a preset terminal device, and connect to the wireless network according to the connection information;

[0007] When the control terminal and / or the device host is detected, the connection information is sent to the control terminal and / or the device host, so that the control terminal and / or the device host connects to the wireless network according to the connection information;

[0008] Communicate with the control terminal and / or the device host based on the wireless network.

[0009] In a second aspect, the present application provides a device communication method, which is applied to a device host in a smart home system, wherein the smart home system includes a main host, a control terminal, and a device host, and the method includes:

[0010] When the main host and / or the control terminal are detected and the connection information sent by the main host and / or the control terminal is received, the corresponding wireless network is connected according to the connection information; wherein, when the main host and / or the control terminal detects the device host, the connection information is sent to the device host;

[0011] Communicate with the main host based on the wireless network; wherein the main host communicates with the control terminal and / or the device host based on the wireless network.

[0012] In a third aspect, the present application provides a device communication device, which is applied to a main host in a smart home system, wherein the smart home system includes a main host, a control terminal, and a device host, and the device includes:

[0013] A connection module, used to obtain connection information of a wireless network from a preset terminal device, and connect to the wireless network according to the connection information;

[0014] a sending module, configured to send the connection information to the control terminal and / or the device host when the control terminal and / or the device host is detected, so that the control terminal and / or the device host connects to the wireless network according to the connection information;

[0015] A communication module is used to communicate with the control terminal and / or the device host based on the wireless network.

[0016] In a fourth aspect, the present application provides a device communication device, which is applied to a device host in a smart home system, wherein the smart home system includes a main host, a control terminal, and a device host, and the device includes:

[0017] A connection module, configured to connect to a corresponding wireless network according to the connection information when the main host and / or the control terminal are detected and the connection information sent by the main host and / or the control terminal is received; wherein the main host and / or the control terminal sends the connection information to the device host when the device host is detected;

[0018] A communication module is used to communicate with the main host based on the wireless network; wherein the main host communicates with the control terminal and / or the device host based on the wireless network.

[0019] In a fifth aspect, the present application provides a total host device, comprising: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; the memory is used to store computer programs; and the processor is used to implement any device communication method described in the first aspect when executing the computer program.

[0020] In a sixth aspect, the present application provides a device host device, comprising: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; the memory is used to store a computer program; and the processor is used to implement the device communication method described in any one of the second aspects when executing the computer program.

[0021] In a seventh aspect, the present application provides a device communication system, characterized in that it includes a master host device, a control terminal, and a device host device;

[0022] The master host device is the master host device described in the fifth aspect;

[0023] The device host device is the device host device described in the sixth aspect;

[0024] The control terminal is used to generate a control instruction according to a user operation and send the control instruction to the main host;

[0025] The main host is used to send the received control instruction to the device host device;

[0026] The device host device is used to control multiple smart home devices according to the received control instructions.

[0027] In an eighth aspect, the present application provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the device communication method described in any one of the first aspect or the second aspect is implemented.

[0028] The above-mentioned technical scheme provided by the embodiment of the present application has the following advantages over the prior art: the method provided by the embodiment of the present application, by first providing the connection information of the wireless network to the main host through the terminal device, and after the main host is connected to the above-mentioned wireless network, the main host provides the connection information of the wireless network to the control terminal and the device host in the system, so that other devices in the system can simply and quickly connect to the same wireless network with the main host based on the main host, so that the main host, the control terminal, and the device host can communicate stably under the wireless network, and the network configuration of other devices in the smart home system can be completed through the main host, which simplifies the network configuration process of the devices in the smart home system and reduces human intervention, thereby improving the network configuration success rate of the devices and the stability of communication between devices, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0030] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0031] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0032] Figure 1 A schematic diagram of the structure of a smart home system provided in an embodiment of the present application;

[0033] Figure 2 A flow chart of an embodiment of a device communication method provided in an embodiment of the present application;

[0034] Figure 3 A flowchart of another device communication method provided in an embodiment of the present application;

[0035] Figure 4 A flowchart of another device communication method provided in an embodiment of the present application;

[0036] Figure 5 A flowchart of another device communication method provided in an embodiment of the present application;

[0037] Figure 6A flowchart of another device communication method provided in an embodiment of the present application;

[0038] Figure 7 A flowchart of another device communication method provided in an embodiment of the present application;

[0039] Figure 8 A block diagram of an embodiment of a device communication apparatus provided in an embodiment of the present application;

[0040] Fig. 9 A block diagram of another device communication apparatus provided in an embodiment of the present application;

[0041] Fig.10 A schematic diagram of the structure of a master host device provided in an embodiment of the present application;

[0042] Fig.11 A schematic diagram of the structure of a device host device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0044] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.

[0045] In order to solve the technical problems in the prior art that due to the presence of a large number of devices in the smart home system, the network configuration process is relatively complicated, requires more human intervention, has poor stability, and has a low one-time network configuration success rate, which affects the user experience, the present application provides a device communication method, apparatus, equipment, system and storage medium, which can first provide the connection information of the wireless network to the main host through the terminal device, and after the main host is connected to the above-mentioned wireless network, provide the control terminal and the device host in the system with the connection information of the wireless network through the main host, so that other devices in the system can simply and quickly connect to the same wireless network with the main host based on the main host, so that the main host, the control terminal, and the device host can communicate stably under the wireless network, and the network configuration of other devices in the smart home system can be completed through the main host, which simplifies the network configuration process of the devices in the smart home system, reduces human intervention, thereby improving the network configuration success rate of the devices and the stability of communication between devices, thereby improving the user experience.

[0046] To facilitate understanding of the device communication method provided by the present application, the following is an exemplary description of the smart home system involved in the method:

[0047] See also Figure 1 , is a schematic diagram of the structure of a smart home system provided in an embodiment of the present application. Figure 1 As shown, the smart home system 10 may include a main host 11 , a control terminal 12 , and a device host 13 .

[0048] The above-mentioned main host 11 can be used as a control center in the smart home system 10, such as a home host, which can be combined with edge computing technology to perform data processing and decision-making locally, thereby reducing dependence on the cloud and reducing the delay in command transmission. The main host can be a local server, which can be a single server or a cluster of multiple servers, and the embodiment of the present application does not limit this.

[0049] The control terminal 12 is a terminal device in the smart home system 10, which can be a central control screen in the smart home system 10 or other display devices. The control terminal 12 can be used to interact with the user, thereby obtaining user operations through a visual interface and generating corresponding control instructions according to the user operations. It can also be used to display the operating status of multiple smart home devices in the smart home system 10.

[0050] The device host 13 is a host device for centrally controlling multiple smart home devices. The device host can simultaneously control smart home devices 131, smart home devices 132, and smart home devices 133, etc. The smart home devices (smart home devices 131, smart home devices 132, and smart home devices 133, etc.) can be smart home devices of the same type. For example, the smart home devices are audio devices located in different areas, and the device host 13 is a music host. The device host 13 can be a separate server, a cluster of multiple servers, or other devices, which is not limited in the present embodiment of the application.

[0051] In the embodiment of the present application, when the user controls the smart home devices (such as smart home devices 131, 132, and 133) in the smart home system 10, the control terminal 12 may issue a control instruction. Based on this, after receiving the control instruction, the control terminal may send the control instruction to the main host 11. Afterwards, the main host 11 may parse the control instruction, and when determining that the control instruction is used to control the smart home device controlled by the device host 13, the control instruction may be sent to the device host 13. Finally, the device host 13 may control the corresponding smart home device according to the received control instruction.

[0052] In actual applications, when the above-mentioned main host 11, control terminal 12, and device host 13 communicate with each other, network configuration can be performed first, so as to communicate based on network connection.

[0053] In the prior art, since there are many devices in the smart home system 10, the network configuration process is relatively complicated and requires more human intervention. For example, the user is required to configure each device one by one. This not only has poor stability, but also has a low success rate of one-time network configuration, which affects the user experience.

[0054] In this regard, the present application provides a device communication method, which can complete the network configuration of other devices in the smart home system through the main host, simplify the network configuration process of devices in the smart home system, reduce human intervention, thereby improving the network configuration success rate of the device and the stability of communication between devices, thereby improving the user experience.

[0055] The device communication method provided in the present application is further explained below with reference to specific embodiments in conjunction with the accompanying drawings. The embodiments do not constitute a limitation on the embodiments of the present application.

[0056] To facilitate understanding of the device communication method provided by this application, the following explanations are respectively given from the perspectives of the main host, the device host, and the interaction between the main host, the control terminal, and the device host.

[0057] First, the device communication method provided by this application is explained from the perspective of the main host:

[0058] See also Figure 2 , is a flow chart of an embodiment of a device communication method provided in an embodiment of the present application. As an embodiment, Figure 2 The process shown can be applied to the main host in the smart home system, such as Figure 1 The main host 11 shown. Figure 2 As shown, the process may include the following steps:

[0059] Step 201: Acquire wireless network connection information from a preset terminal device, and connect to the wireless network according to the connection information.

[0060] The above-mentioned terminal device may refer to a device used by a user in daily life, which may be a mobile terminal device (such as a mobile phone, a tablet, etc.) or a computer terminal device, and the embodiments of the present application do not impose any restrictions on this.

[0061] The above connection information refers to the information required for a device to connect to a wireless network, which may include but is not limited to: wireless network name, SSID (Service Set Identifier), connection password, etc.

[0062] In the embodiment of the present application, when the user configures the network for the main host, the user can send the connection information of the wireless network to be connected to the main host through the terminal device. Based on this, the main host obtains the connection information of the wireless network from the preset terminal device and connects to the wireless network according to the connection information.

[0063] As an optional implementation, the main host may obtain the connection information of the wireless network from a preset terminal device through NFC (Near Field Communication).

[0064] As an exemplary implementation, the main host may run a preset near field communication module and control the current network connection state to be a state to be configured.

[0065] Afterwards, the main host can establish a short-distance communication connection with the terminal device when determining that the current distance with the terminal device is less than a preset distance threshold, wherein the terminal device can run its own near-field communication module at this time.

[0066] Finally, when the connection information of the preset wireless network sent by the terminal device is received through the above short-distance communication connection, the above wireless network is connected according to the above connection information, and the current network connection state is updated to the configured network state. Among them, when the above terminal device determines to establish a short-distance communication connection with the main host, it can send the connection information of the above wireless network to the above main host. The above preset wireless network can be the wireless network that the terminal device is currently connected to.

[0067] For example, after the main host is turned on, it activates its NFC function and enters the network configuration state; the mobile phone App (terminal device) also activates the NFC function and is ready for network configuration.

[0068] Afterwards, the user brings the mobile phone close to the NFC sensing area of ​​the main host. When the mobile phone is close to the main host, the NFC module establishes a short-distance communication connection through radio waves.

[0069] After that, the mobile phone App stores the WiFi connection information (such as WiFi name (SSID) and password) in advance. When the mobile phone establishes communication with the main host through NFC, the App will package the connection information into a data packet and transmit the WiFi credentials (SSID and password) to the main host through NFC.

[0070] Finally, after the main host receives the WiFi credentials transmitted by the mobile phone, it will parse and verify them. If the WiFi credentials are valid (SSID and password are correct), the main host will try to connect to the specified WiFi network.

[0071] As another optional implementation, the main host may obtain the connection information of the wireless network from a preset terminal device via a Bluetooth connection.

[0072] As an exemplary implementation, the main host may run a preset Bluetooth module and control the current network connection state to be in a state to be configured.

[0073] Afterwards, the main host can establish a Bluetooth connection with the terminal device when receiving the Bluetooth connection request sent by the terminal device. After detecting the main host, the terminal device can send a Bluetooth connection request to the main host.

[0074] Finally, when the connection information of the preset wireless network sent by the terminal device is received through the above-mentioned Bluetooth connection, the above-mentioned wireless network is connected according to the above-mentioned connection information, and the current network connection state is updated to the configured network state. Among them, when the above-mentioned terminal device determines to establish a Bluetooth connection with the main host, it can send the connection information of the above-mentioned wireless network to the above-mentioned main host. The above-mentioned preset wireless network can be the wireless network that the terminal device is currently connected to.

[0075] As an optional implementation, the connection information may include a wireless name and a wireless password. Based on this, the main host may search for the wireless network according to the wireless name, and when the wireless network is found, connect to the wireless network according to the wireless password.

[0076] In one embodiment, after receiving the connection information, the main host may verify the connection information to determine the accuracy of the connection information.

[0077] As an optional implementation method, first, the format of the connection information can be verified to be correct or in compliance with a preset standard. Afterwards, after the format verification is passed, the built-in WiFi module can be used to try to connect to the corresponding wireless network. Optionally, if the main host can successfully connect to the wireless network, it means that the provided connection information is valid.

[0078] In addition, if the verification is successful and the main host is successfully connected to the wireless network, the main host can return a success message, indicating that the wireless network connection is successful; if the connection fails (such as incorrect password, invalid SSID, unreachable network, etc.), the main host will issue an error prompt, indicating that the credentials are invalid, requiring the user to re-pair or check the wireless network settings.

[0079] In one embodiment, after connecting to the wireless network according to the received connection information, the main host can obtain the IP (Internet Protocol) address of the wireless network through a preset configuration protocol. The above configuration protocol can be DHCP (Dynamic Host Configuration Protocol) or other protocols, which are not limited in the embodiment of the present application.

[0080] Afterwards, the target frequency band corresponding to the wireless network can be determined based on a preset network environment testing method.

[0081] As an optional implementation, the network environment test method may be a signal strength test, an interference test, etc. Based on this, the main host may automatically perform a network environment test when connecting to a wireless network for the first time or when the network quality is poor to determine the best frequency band, channel, and network configuration.

[0082] As an exemplary implementation, when performing a network environment test, a signal strength test, an interference condition test, and a bandwidth and delay test may be performed.

[0083] When performing a signal strength test, the main host may scan surrounding WiFi signals through its wireless network module and measure the strength of the currently connected WiFi signal, such as RSSI (Received Signal Strength Indication).

[0084] When conducting interference tests, the main unit will scan the channel usage of surrounding WiFi networks. For example, the radio frequency bands (2.4GHz and 5GHz) will be interfered with by surrounding devices, especially in high-density environments. Other devices (such as nearby routers, microwave ovens, etc.) may emit interference signals on the same frequency band.

[0085] When performing bandwidth and delay tests, the main host can measure the bandwidth and delay of the network by exchanging data packets with the router or gateway.

[0086] Finally, the current network configuration may be updated according to the aforementioned Internet protocols and target frequency bands.

[0087] Step 202: When a control terminal and / or a device host is detected, the connection information is sent to the control terminal and / or the device host, so that the control terminal and / or the device host connects to the wireless network according to the connection information.

[0088] Step 203: Communicate with the control terminal and / or device host based on the wireless network.

[0089] The following is a unified description of step 202 and step 203:

[0090] The above-mentioned control terminal refers to the control end in the current smart home system, which can be a central control screen, or an electronic device, etc., and the embodiments of the present application do not limit this.

[0091] The above-mentioned device host refers to a control host used to control multiple smart home devices in a smart home system.

[0092] In the embodiment of the present application, during the operation of the main host, when the control terminal and / or the device host is detected, the connection information of the connected wireless network can be sent to the control terminal and / or the device host, so that the control terminal and / or the device host can connect to the wireless network according to the above connection information.

[0093] As an optional implementation, the main host can send the connection information to the control terminal when the control terminal is detected. Based on this, after receiving the connection information, the control terminal can connect to the wireless network according to the connection information.

[0094] As an exemplary implementation, the connection information may include a wireless name and a wireless password. Based on this, the control terminal may search for the wireless network according to the wireless name, and when the wireless network is found, connect to the wireless network according to the wireless password.

[0095] As another optional implementation, the main host can send the connection information to the device host when the device host is detected. Based on this, after receiving the connection information, the device host can connect to the wireless network according to the connection information.

[0096] As an exemplary implementation, the connection information may include a wireless name and a wireless password. Based on this, the device host may search for the wireless network according to the wireless name, and when the wireless network is found, connect to the wireless network according to the wireless password.

[0097] As another optional implementation, when the main host detects the control terminal and the device host, the main host can send the connection information to the control terminal and the device host respectively. Based on this, after receiving the connection information, the control terminal and the device host can respectively connect to the wireless network according to the connection information.

[0098] As an exemplary implementation, the connection information may include a wireless name and a wireless password. Based on this, the control terminal and the device host may search for the wireless network according to the wireless name, and connect to the wireless network according to the wireless password when the wireless network is found.

[0099] The technical solution provided by the embodiment of the present application obtains the connection information of the wireless network from the preset terminal device, and connects to the wireless network according to the connection information. When the control terminal and / or the device host is detected, the connection information is sent to the control terminal and / or the device host, so that the control terminal and / or the device host connects to the wireless network according to the connection information, and communicates with the control terminal and / or the device host based on the wireless network. This technical solution first provides the connection information of the wireless network to the main host through the terminal device, and after the main host connects to the wireless network, the main host provides the connection information of the wireless network to the control terminal and the device host in the system, so that other devices in the system can simply and quickly connect to the same wireless network with the main host based on the main host, so that the main host, the control terminal, and the device host can communicate stably under the wireless network, and the network configuration of other devices in the smart home system can be completed through the main host, which simplifies the network configuration process of the devices in the smart home system and reduces human intervention, thereby improving the network configuration success rate of the devices in the smart home system and the stability of communication between devices, and improving the user experience.

[0100] See also Figure 3 , which is a flow chart of an embodiment of another device communication method provided in an embodiment of the present application. Figure 3 The process shown in Figure 2 Based on the process shown in FIG. 1 , it is described how to send the connection information to the control terminal and / or the device host when the control terminal and / or the device host is detected. Figure 3 As shown, the process may include the following steps:

[0101] Step 301: upon receiving a Bluetooth connection request from a control terminal and / or device host, establish a Bluetooth connection with the control terminal and / or device host, wherein the control terminal sends the Bluetooth connection request to the main host during initial operation and when the main host is scanned.

[0102] In an embodiment of the present application, when the control terminal and / or the device host needs a network configuration operation during initial operation, the Bluetooth function can be used to scan whether there is a main host currently, and when the main host is scanned, a Bluetooth connection request is sent to the main host.

[0103] As an optional implementation, the control terminal may send a first Bluetooth connection request to the main host when it is initially running and scans the main host. Based on this, the main host may establish a first Bluetooth connection with the control terminal when receiving the first Bluetooth connection request sent by the control terminal.

[0104] As another optional implementation, when the device host is initially running and scans the above-mentioned main host, it can send a second Bluetooth connection request to the main host. Based on this, when the main host receives the second Bluetooth connection request sent by the device host, it can establish a second Bluetooth connection with the above-mentioned device host.

[0105] As another optional implementation method, when the control terminal is initially running and scans the above-mentioned main host, it can send a first Bluetooth connection request to the main host, and when the device host is initially running and scans the above-mentioned main host, it can send a second Bluetooth connection request to the main host.

[0106] Based on this, when the main host receives the first Bluetooth connection request and the second Bluetooth connection request, it can establish the first Bluetooth connection with the control terminal and the second Bluetooth connection with the device host. The main host can first establish the first Bluetooth connection and then the second Bluetooth connection, or first establish the second Bluetooth connection and then the first Bluetooth connection, or simultaneously establish the first Bluetooth connection and the second Bluetooth connection, which is not limited in the present embodiment.

[0107] In addition, the main host can also send connection information to the above-mentioned control terminal and / or device host through near-field communication or a preset network protocol (such as DPP (Device Provisioning Protocol)), which is not limited in the embodiments of the present application.

[0108] Step 302: Send connection information to the control terminal and / or the device host through the Bluetooth connection, so that the control terminal and / or the device host connects to the wireless network according to the received connection information.

[0109] In an embodiment of the present application, after the main host establishes a Bluetooth connection with the control terminal and / or the device host, it can send the connection information of the currently connected wireless network to the control terminal and / or the device host through the Bluetooth connection, so that the control terminal and / or the device host can connect to the wireless network based on the received connection information.

[0110] As an optional implementation manner, when the main host establishes a first Bluetooth connection with the control terminal, the main host can send the connection information to the control terminal through the first Bluetooth connection.

[0111] As an optional implementation manner, when the main host establishes a second Bluetooth connection with the device host, the main host can send the above connection information to the device host through the second Bluetooth connection.

[0112] In addition, after receiving the connection information, the control terminal can connect to the wireless network according to the connection information, obtain the authentication information of the main host through the visual interface, and send the authentication information to the main host for authentication.

[0113] As an exemplary implementation, after connecting to the wireless network, the control terminal can obtain the QR code corresponding to the authentication information of the main host and output the QR code through a visual interface. Based on this, the user can scan the QR code through the terminal device to obtain the authentication information of the main host and send the authentication information to the control terminal. Afterwards, the control terminal can send the authentication information to the main host for authentication.

[0114] As another exemplary implementation, after connecting to the wireless network, the control terminal may obtain a pairing code input by a user through a visual interface, and send the pairing code as authentication information to the main host for authentication.

[0115] Based on this, the main host can authenticate the received authentication information and obtain an authentication result. Optionally, if the authentication result indicates that the authentication is passed, the control terminal can be bound.

[0116] In one embodiment, when the main host sends the connection information to the control terminal and / or the device host, the connection information may be encrypted by a preset dynamic encryption algorithm and a shared key to obtain a connection information ciphertext. The dynamic encryption algorithm and the shared key may be a preset dynamic encryption algorithm and a shared key, and the dynamic encryption algorithm may be an AES (Advanced Encryption Standard) encryption algorithm or other dynamic encryption algorithms, which are not limited in the embodiment of the present application. The shared key may be a key shared by the main host, the device host, and the control terminal.

[0117] Afterwards, the above-mentioned connection information ciphertext can be sent to the control terminal and / or device host, so that when the above-mentioned control terminal and / or device host receives the above-mentioned connection information ciphertext, it can decrypt the above-mentioned connection information ciphertext based on the above-mentioned dynamic encryption algorithm and shared key to obtain the above-mentioned connection information.

[0118] The technical solution provided by the embodiment of the present application is to establish a Bluetooth connection with the control terminal and / or device host upon receiving a Bluetooth connection request sent by the control terminal and / or device host, wherein the control terminal sends the Bluetooth connection request to the main host when it is initially running and scans the main host, and sends the connection information to the control terminal and / or device host through the Bluetooth connection, so that the control terminal and / or device host connects to the wireless network according to the received connection information. This technical solution can send the connection information to the control terminal and the device host through the Bluetooth connection when the main host is already connected to the wireless network, so that the control terminal and the device host can quickly obtain the connection information of the wireless network through the main host, thereby connecting to the wireless network, simplifying the network configuration process of the control terminal and the device host.

[0119] In one embodiment, when the main host, device host, and control terminal included in the smart home system are all connected to the same wireless network, when the main host communicates with the control terminal and / or device host based on the above wireless network, the user can remotely control the control terminal, device host, and smart home devices in the smart home system through the main host.

[0120] As an optional implementation method, the user can remotely send a preset control instruction to the cloud server connected to the main host through a mobile terminal (such as a mobile phone, tablet or other terminal device, or an application installed in the terminal device). Based on this, when the cloud server receives the above control instruction sent by the mobile terminal, it can encrypt the control instruction according to a preset first encryption algorithm to obtain a first instruction ciphertext, and send the first instruction ciphertext to the main host. The above first encryption algorithm can be a pre-set encryption algorithm, such as an AES encryption algorithm.

[0121] Based on this, when the main host receives the first instruction ciphertext sent by the corresponding cloud server, it can decrypt the first instruction ciphertext according to the preset first decryption algorithm to obtain the target control instruction. The first decryption algorithm can be a preset decryption algorithm corresponding to the first encryption algorithm.

[0122] Afterwards, the main host can encrypt the target control instruction according to a preset second encryption algorithm to obtain a second instruction ciphertext. The second encryption algorithm can be a preset encryption algorithm that is the same as or different from the first encryption algorithm, such as a TLS (Transport Layer Security) algorithm.

[0123] Finally, the main host can send the second instruction ciphertext to the control terminal and / or device host based on the above-mentioned wireless network, so that the control terminal and / or device host decrypts the received second instruction ciphertext according to the preset second decryption algorithm, obtains the above-mentioned target control instruction, and executes the target control instruction.

[0124] In this embodiment, the user can perform double-encrypted remote access to the smart home system through a mobile terminal, which ensures the security of data transmission when remotely controlling the smart home system by using a double encryption mechanism.

[0125] In one embodiment, when the main host communicates with the air terminal and the device host based on the wireless network, the main host can regularly update the application programs installed in the control terminal and / or the device host.

[0126] As an optional implementation, the main host can periodically obtain the version number of the preset program in the control terminal and / or the device host according to the preset time, and obtain the current version number of the preset program in the cloud server. The cloud server can pre-store the program packages and corresponding version numbers of the application programs in the control terminal and the device host.

[0127] Based on this, the main host can determine whether the above version number is consistent with the current version number saved in the cloud server.

[0128] Optionally, when it is determined that the above version number is inconsistent with the current version number, it means that the application version in the control terminal and / or the device host is lower and needs to be updated, so the upgrade package of the above preset program can be obtained from the above cloud server. The above upgrade package is the program package of the preset program currently stored in the cloud server.

[0129] Afterwards, the upgrade package may be sent to the control terminal and / or the device host, so that the control terminal and / or the device host upgrades the preset program according to the received upgrade package.

[0130] Optionally, when it is determined that the above version number is consistent with the current version number, it means that the application in the control terminal and / or device host is the latest version and does not need to be updated.

[0131] In this embodiment, the main host can regularly detect the program versions of the control terminals and device hosts, automatically download and install updates, and ensure system stability and security.

[0132] In one embodiment, there may be multiple device hosts. Based on this, when the main host communicates with the control terminal and / or device hosts based on a wireless network, it can perform scene-mode communication control on multiple device hosts.

[0133] As an optional implementation, the main host can send a prompt message to the control terminal for prompting the setting of the scene mode. Based on this, after receiving the prompt message, the control terminal can output a preset prompt box so that the user can set the scene mode according to the prompt box. The scene mode may include a linkage control mode of multiple device hosts, such as a music playback mode, which may include audio output device selection, volume setting, lighting linkage, etc.

[0134] Based on this, when the control terminal receives a setting operation for a scene mode based on the above prompt box, it can generate a linkage control instruction corresponding to the scene mode, wherein the linkage control instruction may include control instructions for multiple device hosts. Afterwards, the linkage control instruction and the scene identifier corresponding to the scene mode can be sent to the main host.

[0135] Afterwards, upon receiving the linkage control instruction and the scene identifier, the main host may save the scene identifier, the linkage control instruction, and the corresponding relationship between the two.

[0136] Based on this, when the main host subsequently receives the initial scene identifier sent by the control terminal, it can determine the target linkage control instruction corresponding to the initial scene identifier according to the above initial scene identifier and the above pre-stored corresponding relationship.

[0137] Afterwards, the target linkage control instruction may be parsed to determine a plurality of target device hosts corresponding to the target linkage control instruction.

[0138] Afterwards, the target linkage control instruction may be split to obtain sub-control instructions corresponding to each target device host, and each sub-control instruction may be sent to the corresponding target device host so that the target device host executes according to the received sub-control instruction.

[0139] In this embodiment, the main host can perform scenario-based control on multiple device hosts in the smart home system. By controlling multiple device hosts in linkage, users can control the operation of smart home devices corresponding to multiple device hosts with one click, reducing command transmission and user operations, and improving user experience.

[0140] In one embodiment, the smart home system may include multiple device hosts of the same type. For example, the smart home system includes multiple music hosts, which may be located in different areas or in the same area. The embodiment of the present application does not limit this. Based on this, the user can group multiple device hosts through the control terminal. When the control terminal receives the user's setting operation, it can generate a corresponding group setting instruction and send the group setting instruction to the main host. Among them, the above-mentioned group setting instruction is used to indicate that multiple device hosts are set as a group, which may also include a corresponding group identifier, and the group identifier is used to indicate a group composed of multiple device hosts. The group identifier may be input by the user, or it may be generated by processing the device identifiers of multiple device hosts according to a preset processing method.

[0141] Afterwards, when the main host receives the group setting instruction sent by the control terminal, it can classify the multiple device hosts included in the above group setting instruction into the same device host set, and identify the device host set according to the group identifier in the above group setting instruction.

[0142] Based on the device host group identified above, when the master host receives an operation instruction sent by the control terminal for the device host set, it can obtain the target group identifier contained in the operation instruction. The above operation instruction is generated by the control terminal according to the user operation when the user controls the control terminal.

[0143] Afterwards, the target device host set corresponding to the target group identifier may be determined according to the target group identifier.

[0144] Finally, the above-mentioned operation instruction may be directly sent to each device host in the target device host set, so that each device host in the target device host set operates according to the above-mentioned operation instruction.

[0145] In addition, before sending the run instruction to each device host in the target device host set, it can be determined whether the run instruction contains a sub-control instruction for a single device host. If so, the target device host corresponding to the sub-control instruction is determined and the sub-control instruction is sent to the above target device host.

[0146] In this embodiment, the user can group multiple device hosts on the control terminal, support multiple device hosts to form a device host group, and realize the simultaneous operation of device hosts in multiple different areas at one time.

[0147] Secondly, the device communication method provided by this application is explained from the perspective of the device host:

[0148] See also Figure 4 , is a flow chart of another embodiment of a device communication method provided in an embodiment of the present application. As an embodiment, Figure 4 The process shown can be applied to the device host in the smart home system, such as Figure 1 The device host 13 shown. Figure 4 As shown, the process may include the following steps:

[0149] Step 401: When a main host and / or control terminal is detected and connection information sent by the main host and / or control terminal is received, the corresponding wireless network is connected according to the above connection information, wherein the main host and / or control terminal sends the above connection information to the device host when a device host is detected.

[0150] The above-mentioned control terminal refers to the control end in the current smart home system, which can be a central control screen, or an electronic device, etc., and the embodiments of the present application do not limit this.

[0151] The above-mentioned main host refers to the control center in the smart home system, which can be a local server used to combine edge computing technology to perform data processing and decision-making locally, thereby reducing dependence on the cloud and reducing the delay in command transmission.

[0152] The above connection information refers to the information required for a device to connect to a wireless network, which may include but is not limited to: wireless network name, SSID (Service Set Identifier), connection password, etc.

[0153] In the embodiment of the present application, when the device host is performing network configuration, if it detects that there is a running main host and / or control terminal in the current smart home system, it can receive the connection information sent by the main host and / or control terminal, and connect to the corresponding wireless network according to the connection information. Wherein, when the main host and / or control terminal detects the device host, it can send the connection information of the wireless network to which it is connected to the device host.

[0154] As an optional implementation, the connection information may include a wireless name and a wireless password. Based on this, the device host may search for the wireless network according to the wireless name, and when the wireless network is found, connect to the wireless network according to the wireless password.

[0155] Step 402: Communicate with the main host based on the wireless network, wherein the main host communicates with the control terminal and / or the device host based on the wireless network.

[0156] In the embodiment of the present application, after the device host connects to the corresponding wireless network through the connection information, the connection information is obtained from the main host or the control terminal. Figure 2 As can be seen from the process shown, the control terminal obtains connection information from the main host and connects to the corresponding wireless network based on the connection information. Therefore, even if the device host obtains connection information from the control terminal, the device host is still connected to the same wireless network as the main host.

[0157] Based on this, the device host can communicate with the main host based on the current wireless network connected, and the main host can communicate with the control terminal and / or the main host based on the wireless network, and the control terminal can communicate with the main host based on the wireless network, thereby realizing the communication between the main host, the control terminal, and the device host through the same wireless network in the smart home system.

[0158] The technical solution provided by the embodiment of the present application is to connect to the corresponding wireless network according to the connection information when the main host and / or control terminal are detected and the connection information sent by the main host and / or control terminal is received, wherein the main host and / or control terminal sends the connection information to the device host when the device host is detected, and communicates with the main host based on the wireless network, wherein the main host communicates with the control terminal and / or device host based on the wireless network. This technical solution can obtain the corresponding connection information from the main host or control terminal in the current smart home system when the device host is networked, and connect to the corresponding wireless network based on the connection information. Since the connection information is obtained from the main host or control terminal, the device host can be connected to the same wireless network as the main host and control terminal, thereby improving the network configuration success rate of the device host in the smart home system and the stability of communication between devices, thereby improving the user experience.

[0159] See also Figure 5 , which is a flow chart of an embodiment of another device communication method provided in an embodiment of the present application. Figure 5 The process shown in Figure 4 Based on the process shown in FIG. 1 , it is described how to detect the main host and / or control terminal and receive the connection information sent by the main host and / or control terminal. Figure 5 As shown, the process may include the following steps:

[0160] Step 501: Run a preset Bluetooth module and perform scanning through the Bluetooth module.

[0161] Step 502: When the main host and / or control terminal is scanned by the Bluetooth module, a Bluetooth connection request is sent to the main host and / or control terminal.

[0162] Step 503: upon receiving the connection confirmation information sent by the main host and / or control terminal in response to the connection request, establish a Bluetooth connection with the main host and / or control terminal.

[0163] The following is a unified description of steps 501 to 503:

[0164] In an embodiment of the present application, when the device host is configuring the network, it can first run its own Bluetooth module and scan through the Bluetooth module to determine whether the current main host and control terminal are running.

[0165] Optionally, when a main host is scanned through the above-mentioned Bluetooth module, a Bluetooth connection request can be sent to the main host, and the Bluetooth connection request can be used to request to establish a Bluetooth connection with the main host.

[0166] Optionally, when a control terminal is scanned through the above-mentioned Bluetooth module, a Bluetooth connection request may be sent to the control terminal, and the Bluetooth connection request may be used to request to establish a Bluetooth connection with the control terminal.

[0167] Optionally, when the main host and the control terminal are scanned through the above-mentioned Bluetooth module, a Bluetooth connection request can be sent to the main host and the control terminal at the same time, and the Bluetooth connection request can be used to request to establish a Bluetooth connection with the device that receives the request.

[0168] Based on this, upon receiving the Bluetooth connection request and determining to establish a connection with the device host, the main host and / or control terminal may send a confirmation connection message to the device host. Upon receiving the Bluetooth connection request from the main host and / or control terminal, the device host may establish a Bluetooth connection with the main host and / or control terminal.

[0169] Step 504: When connection information sent by the main host and / or the control terminal is received via Bluetooth connection, the corresponding wireless network is connected according to the connection information.

[0170] In an embodiment of the present application, the main host and / or control terminal, when establishing a Bluetooth connection with the device host, can send connection information of the currently connected wireless network to the device host, so that when the device host receives the connection information sent by the main host and / or control terminal via the Bluetooth connection, it can connect to the corresponding wireless network according to the above connection information.

[0171] As an optional implementation method, when the main host establishes a Bluetooth connection with the device host, the connection information of the currently connected wireless network can be sent to the device host, so that when the device host receives the connection information sent by the main host via the Bluetooth connection, it can connect to the corresponding wireless network according to the above connection information.

[0172] As another optional implementation method, when the control terminal establishes a Bluetooth connection with the device host, the control terminal can send the connection information of the currently connected wireless network to the device host, so that when the device host receives the connection information sent by the control terminal via the Bluetooth connection, it can connect to the corresponding wireless network according to the above connection information.

[0173] As another optional implementation method, the main host and the control terminal, when establishing a Bluetooth connection with the device host, can send the connection information of the currently connected wireless network to the device host, so that when the device host receives the connection information sent by the main host and the control terminal through the Bluetooth connection, it can determine whether the connection information sent by the two is consistent.

[0174] Optionally, when it is determined that the connection information sent by both is consistent, the corresponding wireless network can be connected according to the above connection information.

[0175] Optionally, when it is determined that the connection information sent by the two is inconsistent, the connection information sent by the main host can be connected to the corresponding wireless network.

[0176] In addition, in addition to obtaining connection information from the main host and / or control terminal through Bluetooth connection, the device host can also obtain connection information corresponding to the wireless network from the above-mentioned control terminal and / or device host through near-field communication or a preset network protocol (such as DPP), and the embodiments of the present application are not limited to this.

[0177] Step 505: Communicate with the main host based on the wireless network.

[0178] In the embodiment of the present application, after the device host is connected to the above-mentioned wireless network, it can communicate with the main host based on the wireless network.

[0179] In one embodiment, the device host may broadcast the current device information to the main host via a preset multicast protocol (eg, mDNS (multicast DNS)), so that the main host registers the device host according to the received device information.

[0180] In one embodiment, the device host may be a music host, and the number may be multiple. Based on this, the main host may automatically calibrate the audio delay of the device host.

[0181] As an optional implementation, the main host may send an audio signal including a timestamp to the device host. Based on this, when the device host receives the audio signal sent by the main host, it can determine the current timestamp and obtain the sending timestamp corresponding to the audio signal.

[0182] Afterwards, the echo time difference corresponding to the audio signal may be determined according to the current timestamp and the sending timestamp, where the echo time difference refers to the time difference when the audio signal is transmitted between the main host and the device host.

[0183] Finally, the echo time difference can be sent to the main host, and after receiving the echo time difference, the main host can set the playback delay between multiple music hosts according to the echo time difference. Among them, by setting the playback delay, it can be ensured that multiple music hosts can play audio signals at the same time after receiving the audio signal from the main host, avoiding the situation of inconsistent playback time caused by the echo time difference.

[0184] As an optional implementation, the largest maximum echo time difference may be selected from a plurality of echo time differences corresponding to a plurality of music hosts, and the playback delay corresponding to each music host may be set to the maximum echo time difference.

[0185] In one embodiment, the device host may be a music host, which may perform audio detection on the current environment, so that the main host adjusts the EQ (equalizer) setting of the music host.

[0186] As an optional implementation method, the device host can obtain the acoustic characteristics of the current space through a preset sound detection module (such as a microphone). The above acoustic characteristics refer to the characteristics of the sound in the current space, which may include but are not limited to: reverberation, ambient noise, etc.

[0187] Afterwards, the above acoustic characteristics can be sent to the main host, so that the main host can update the configuration information of the music host according to the above acoustic characteristics, and the above configuration information refers to the configuration information of the EQ setting.

[0188] The technical solution provided by the embodiment of the present application runs a preset Bluetooth module and scans through the Bluetooth module. When the main host and / or control terminal are scanned through the above Bluetooth module, a Bluetooth connection request is sent to the main host and / or control terminal. When the confirmation connection information sent by the main host and / or control terminal for the above connection request is received, a Bluetooth connection is established with the above main host and / or control terminal. When the connection information sent by the main host and / or control terminal is received through the Bluetooth connection, the corresponding wireless network is connected according to the above connection information, and communication is performed with the main host based on the above wireless network. This technical solution can obtain connection information from the main host and / or control control through Bluetooth connection when the device host is configured, and connect to the wireless network connected to the main host and / or control terminal according to the connection information, so as to communicate with the main host based on the same wireless network, thereby realizing efficient and fast configuration of the device host.

[0189] Finally, the device communication method provided by this application is described from the perspective of the main host, the control terminal, and the device host interaction:

[0190] See also Figure 6 , is a flow chart of an embodiment of a device communication method provided in an embodiment of the present application. Figure 6 The process shown can be applied to the main host, control terminal, and device host, for example Figure 1 The main host 11, control terminal 12, and device host 13 are shown. Figure 6 As shown, the process may include the following steps:

[0191] Step 601: The main host obtains connection information of a wireless network from a preset terminal device, and connects to the wireless network according to the connection information.

[0192] Step 602: When the main host detects the control terminal and / or the device host, the main host sends the connection information to the control terminal and / or the device host.

[0193] Step 603: When the control terminal receives the connection information sent by the main host, it connects to the wireless network according to the connection information.

[0194] For a detailed description of steps 601 to 603 , reference may be made to the description of steps 201 to 203 .

[0195] Step 604: When the device host detects the main host and / or the control terminal and receives the connection information sent by the main host and / or the control terminal, it connects to the corresponding wireless network according to the connection information.

[0196] Step 605: The main host communicates with the control terminal and the device host based on the wireless network.

[0197] Step 606: The control terminal communicates with the main host based on the wireless network.

[0198] Step 607: The device host communicates with the main host based on the wireless network.

[0199] For detailed descriptions of steps 604 to 607 , reference may be made to the descriptions of steps 401 and 402 .

[0200] The technical solution provided in the embodiment of the present application first provides the connection information of the wireless network to the main host through the terminal device, and after the main host is connected to the above-mentioned wireless network, the main host provides the connection information of the wireless network to the control terminal and the device host in the system, so that other devices in the system can simply and quickly connect to the same wireless network with the main host based on the main host, so that the main host, the control terminal, and the device host can communicate stably under the wireless network, and the network configuration of other devices in the smart home system can be completed through the main host, which simplifies the network configuration process of the devices in the smart home system and reduces human intervention, thereby improving the success rate of network configuration of the devices and the stability of communication between devices, thereby improving the user experience.

[0201] See also Figure 7 , is a flow chart of an embodiment of a device communication method provided in an embodiment of the present application. Figure 7 The process shown is explained by taking the control terminal as the central control screen and the device host as the music host as an example. Figure 7 As shown, the process may include the following steps:

[0202] Step 701: Home host automation initialization and connection.

[0203] In the embodiment of the present application, the smart home system may include a central control screen, a home host, and a music host. The functions of the three are as follows:

[0204] (1) Central control screen: as a user interface device, used to display system status and user interaction;

[0205] (2) Home host: a central control unit that manages the network, device connections, and command distribution;

[0206] (3) Music host: responsible for audio playback, connecting to audio equipment and processing audio streams.

[0207] In the embodiment of the present application, the automatic initialization and connection of the home host may include the following steps:

[0208] (1) Intelligent connection identification: After the home host is plugged into a power source, the system automatically detects the existing home WiFi environment and establishes an initial connection with the user's mobile phone via NFC.

[0209] As an optional implementation method, NFC can be used for identification: the user can use the mobile phone app to approach the home host to perform NFC touch network configuration. The mobile phone transmits the WiFi credentials (such as SSID and password) to the home host through NFC technology, thus realizing convenient network configuration without manually entering the WiFi password.

[0210] (2) Near Field Communication Network Configuration: Users can use the mobile phone app to connect to the home host by NFC touch. The mobile phone will securely transmit the WiFi credentials to the home host, eliminating the need for manual input and improving convenience.

[0211] Among them, the detailed interaction process between the mobile phone and the home host:

[0212] ① After the home host is turned on, it activates its NFC function and enters the state of waiting for network configuration; the mobile phone app also activates the NFC function and is ready for network configuration;

[0213] ② The user brings the mobile phone close to the NFC sensing area of ​​the home host. When the mobile phone and the home host are close, the NFC module establishes a short-distance communication connection through radio waves;

[0214] ③ The mobile phone App stores the WiFi connection information (such as WiFi name (SSID) and password) in advance. When the mobile phone and the home host establish communication through NFC, the App will package this information into a data packet and transmit the WiFi credentials (SSID and password) to the home host through NFC;

[0215] ④After the home host receives the WiFi credentials transmitted by the mobile phone, it will parse and verify them. If the WiFi credentials are valid (SSID and password are correct), the home host will try to connect to the specified WiFi network.

[0216] (3) The home host will match the password with the received SSID and use the password for verification when connecting to the network, which may include the following steps:

[0217] ① The home host attempts to connect to the target WiFi network using the received SSID and password through its built-in WiFi module (wireless network card). If the home host can successfully connect to the WiFi network, it means that the provided WiFi credentials are valid and the verification is passed.

[0218] ②If the verification is successful and the home host successfully connects to the WiFi network, the home host will return a success message, indicating that the WiFi connection is successful; if the connection fails (such as incorrect password, invalid SSID, unreachable network, etc.), the home host will issue an error message, indicating that the credentials are invalid, and require the user to re-pair or check the WiFi settings.

[0219] Further, in the case of a successful connection: Once the home host is connected to the designated WiFi network, the device will obtain an assigned IP address (usually through DHCP) and prepare to enter normal working state and begin communicating with other devices. If the connection is successful, the home host will feedback the connection result to the mobile phone, confirming that the WiFi network connection has been successful.

[0220] (4) After the home host successfully connects to the WiFi network, it will obtain an IP address through a network protocol (such as DHCP) and perform other initial configurations. At this point, the network configuration process between the mobile phone and the home host is complete, and the mobile phone app can provide user feedback based on the connection status, informing the user whether the network configuration is successful or failed.

[0221] After the network configuration is completed, the home host establishes regular communication with the mobile phone via WiFi. The interaction between the mobile phone and the home host can be carried out through the WiFi network. The user can remotely control the home host or view status information through the mobile phone App.

[0222] (5) Automated IP allocation and network optimization: After the home host connects to WiFi, it automatically obtains an IP address through DHCP, performs network environment tests (such as signal strength and interference), and selects the best WiFi frequency band (2.4GHz / 5GHz).

[0223] 1. Trigger conditions: When connecting to WiFi for the first time or when the network quality is poor, the system will automatically perform a network environment test to determine the best frequency band, channel, and network configuration.

[0224] 2. Execution process of network environment test:

[0225] ①Signal strength test: The home host will scan the surrounding WiFi signals through its wireless network module and measure the signal strength of the currently connected WiFi (RSSI, i.e. received signal strength indication);

[0226] ②Interference test: The home host will scan the channel usage of the surrounding WiFi networks. The radio frequency bands (2.4GHz and 5GHz) will be interfered by surrounding devices, especially in high-density environments, where other devices (such as nearby routers, microwave ovens, etc.) may emit interference signals on the same frequency band;

[0227] ③Bandwidth and delay test: The home host can measure the bandwidth and delay of the network by exchanging data packets with the router or gateway.

[0228] Step 702: The central control screen quickly configures the network and synchronizes the connection.

[0229] In this step, the central control screen can achieve fast network configuration and synchronous connection through the following steps:

[0230] (1) Bluetooth assistance and WiFi access: When the central control screen is turned on, it automatically searches for the home host via Bluetooth and establishes a preliminary connection. After the Bluetooth connection, the central control screen obtains the network configuration information of the home host and automatically joins the same WiFi network;

[0231] 1. The central control screen is connected to the home host in order to pass the WiFi credentials to the home host through the mobile phone so that the home host can access the network; the central control screen and the home host are connected through Bluetooth so that the central control screen can automatically join the WiFi network where the home host is located, complete the synchronization and linkage between devices, and thus be able to carry out subsequent communication and data exchange with the home host.

[0232] 2. Steps to automatically join the same WIFI:

[0233] ① When the central control screen is turned on, it will scan nearby devices via Bluetooth to find and connect to the home host. After the Bluetooth connection is established, the central control screen will communicate with the home host for a short time to exchange necessary information.

[0234] ②After establishing the Bluetooth connection, the home host will share its WiFi SSID (network name) and password and other connection information with the central control screen;

[0235] ③ After obtaining the WiFi credentials (connection information), the central control screen can use these connection information to try to connect to the WiFi network where the home host is located through the wireless network module (WiFi module). The central control screen will connect to the router through the WiFi protocol and obtain a valid IP address (usually dynamically allocated through DHCP);

[0236] ④ When the central control screen successfully joins the same WiFi network, it can communicate with the home host via WiFi more quickly, and the data transmission will be more stable. At this time, the communication between the home host and the central control screen no longer relies on Bluetooth, but is carried out through a higher bandwidth WiFi network. The central control screen can receive audio and video streaming data from the home host via WiFi, or execute control commands, etc.

[0237] (2) QR code / digital pairing dual authentication: The user scans the QR code of the home host on the central control screen, or enters the pairing code for authentication and binding. This step simplifies the complexity of the initial connection while ensuring security;

[0238] After scanning the QR code of the central control screen or entering the pairing code with your mobile phone, the scanned authentication information can be transmitted to the home host via Bluetooth or WiFi. The home host will verify the transmitted authentication information to confirm whether the pairing request is legal. If the verification is successful, the connection between the home host and the central control screen is established, and the pairing is successful, which is to bind the central control screen and the home host again to ensure a secure connection.

[0239] (3) Automatic configuration synchronization: After the central control screen is successfully connected to the home host, it will automatically synchronize the home host's device configuration, audio settings, and list of connected music hosts (this process does not require manual intervention by the user).

[0240] Step 703: The music host quickly configures the network using multiple protocols.

[0241] In this step, the music host can quickly configure the network in the following ways:

[0242] (1) Adaptive multi-protocol support: The music host supports multiple network configuration methods, such as Bluetooth-assisted network configuration, WiFi EasyConnect (DPP protocol), etc. Users can choose the most convenient method based on device compatibility;

[0243] (2) Bluetooth-guided WiFi connection: Through the home host or central control screen, the music host can use Bluetooth to automatically obtain WiFi credentials and join the home network. The Bluetooth transmission process uses a dynamic encryption algorithm to ensure the security of the transmission;

[0244] (3) Automatic discovery and self-configuration of the LAN: After the music host is connected to WiFi, it automatically broadcasts its existence to the home host through the multicast DNS (mDNS) protocol and sends device information (such as device model, supported audio formats, etc.). The home host automatically receives and configures the music host to complete the registration.

[0245] Step 704: Remote control and data encryption synchronization.

[0246] In this step, the remote control and data encryption synchronization of the smart home system can be achieved through the following steps:

[0247] (1) Double encryption remote access: Users can connect to the cloud service of the home host through the mobile phone APP for remote management. To ensure data security, a double encryption mechanism (such as AES encryption + TLS transmission) is used to protect user data and device control instructions;

[0248] (2) Automatic firmware updates and network health checks: The home host regularly checks the firmware versions of the central control screen and music host, automatically downloads and installs updates to ensure system stability and security. Users can also check device status and network health through the APP to prevent possible failures in advance.

[0249] Step 705: Testing and calibration.

[0250] In this step, the smart home system can be tested and calibrated by the following steps:

[0251] (1) Automatic audio delay calibration: The home host automatically sends a synchronization signal to the music host, detects the echo time difference and automatically adjusts the audio playback delay to ensure that different music hosts play synchronously in a multi-room environment, reducing human intervention;

[0252] The specific detection and adjustment process is usually completed through the following steps:

[0253] 1. Synchronous signal transmission: The home host sends an audio signal with a known timestamp to each music host.

[0254] 2. Echo time difference detection: The music host detects the echo time difference between signal sending and receiving, reflecting the signal propagation delay.

[0255] 3. Delay compensation calculation: The home host calculates the delay based on the echo time difference and automatically adjusts the playback delay of each music host.

[0256] 4. Synchronization optimization: The home host adjusts the playback delay according to the echo time difference to ensure synchronous playback of audio in multiple rooms.

[0257] (2) Ambient audio detection and EQ self-adjustment: When the music host is used for the first time, it can detect the acoustic characteristics of the room (such as reverberation and ambient noise) through the built-in microphone and feed the data back to the home host. The home host automatically adjusts the EQ settings of the music host to optimize the sound quality.

[0258] Step 706: scenario-based configuration and multi-device linkage.

[0259] In this step, the linkage between scenario-based configuration and multiple devices may include the following methods:

[0260] (1) Scenario-based intelligent configuration: After the first connection, the home host can suggest users to configure preset usage scenarios (such as "home theater mode" and "music playback mode"). These scenario settings include audio output device selection, volume setting, lighting linkage, etc. Users can switch with one click;

[0261] (2) Multi-device linkage and group management: Users can group music hosts on the central control screen, supporting multiple music hosts to form an audio playback group and achieve synchronous playback in different areas. This function is set up through the management interface of the home host, completing device grouping and configuration in one go.

[0262] The technical solution provided in the embodiment of the present application automatically detects new devices (such as music hosts) in the local area network through WiFi, Bluetooth and NFC wireless communication technologies, and automatically prompts the user to pair and bind, so that the home host, central control screen and music host can achieve stable data exchange and control command transmission through the same WiFi network. Use multicast protocols (such as mDNS) to automatically discover and register devices in the local area network, so that devices can automatically recognize each other and communicate and pair. And through the binding of cloud accounts, users can manage and monitor the status of home hosts and music hosts through mobile devices outside the home, and perform remote control and adjustment.

[0263] See also Figure 8 , is a block diagram of an embodiment of a device communication device provided in an embodiment of the present application. The device can be applied to the main host in a smart home system, such as Figure 1 The main host 11 shown. Figure 8 As shown, the device may include:

[0264] A connection module 81 is used to obtain connection information of a wireless network from a preset terminal device, and connect to the wireless network according to the connection information;

[0265] A sending module 82 is used to send the connection information to the control terminal and / or the device host when the control terminal and / or the device host is detected, so that the control terminal and / or the device host connects to the wireless network according to the connection information;

[0266] The communication module 83 is used to communicate with the control terminal and / or the device host based on the wireless network.

[0267] See also Fig. 9 , is a block diagram of another embodiment of a device communication device provided in an embodiment of the present application. The device can be applied to a device host in a smart home system, such as Figure 1 The device host 13 shown. Fig. 9 As shown, the device may include:

[0268] The connection module 91 is used to connect to the corresponding wireless network according to the connection information when the main host and / or the control terminal are detected and the connection information sent by the main host and / or the control terminal is received; wherein the main host and / or the control terminal sends the connection information to the device host when the device host is detected;

[0269] The communication module 92 is used to communicate with the main host based on the wireless network; wherein the main host communicates with the control terminal and / or the device host based on the wireless network.

[0270] like Fig.10 As shown, the embodiment of the present application provides a total host device, including a processor 1001, a communication interface 1002, a memory 1003 and a communication bus 1004, wherein the processor 1001, the communication interface 1002, and the memory 1003 communicate with each other through the communication bus 1004.

[0271] Memory 1003, used for storing computer programs;

[0272] In one embodiment of the present application, the processor 1001 is used to execute the program stored in the memory 1003 to implement any of the above Figure 2 and Figure 3 The device communication method provided by any one of the method embodiments in the illustrated process includes:

[0273] Acquire connection information of a wireless network from a preset terminal device, and connect to the wireless network according to the connection information;

[0274] When the control terminal and / or the device host is detected, the connection information is sent to the control terminal and / or the device host, so that the control terminal and / or the device host connects to the wireless network according to the connection information;

[0275] Communicate with the control terminal and / or the device host based on the wireless network.

[0276] like Fig.11 As shown, the embodiment of the present application provides a device host device, including a processor 1101, a communication interface 1102, a memory 1103 and a communication bus 1104, wherein the processor 1101, the communication interface 1102, and the memory 1103 communicate with each other through the communication bus 1104.

[0277] Memory 1103, used for storing computer programs;

[0278] In one embodiment of the present application, the processor 1101 is used to execute the program stored in the memory 1103 to implement the above Figure 4 and Figure 5 The device communication method provided by any one of the method embodiments in the illustrated process includes:

[0279] When the main host and / or the control terminal are detected and the connection information sent by the main host and / or the control terminal is received, the corresponding wireless network is connected according to the connection information; wherein, when the main host and / or the control terminal detects the device host, the connection information is sent to the device host;

[0280] Communicate with the main host based on the wireless network; wherein the main host communicates with the control terminal and / or the device host based on the wireless network.

[0281] The embodiment of the present application also provides a device communication system, which may include a master host device, a control terminal, and a device host device;

[0282] The above-mentioned main host device can be Fig.10 Total host equipment shown;

[0283] The device host device may be Fig.11 The device host device shown;

[0284] The control terminal is used to generate a control instruction according to a user operation and send the control instruction to the main host;

[0285] The main host is used to send the received control instruction to the device host device;

[0286] The device host device is used to control multiple smart home devices according to the received control instructions.

[0287] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the device communication method provided in any of the aforementioned method embodiments are implemented.

[0288] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0289] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0290] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.

[0291] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A device communication method, characterized in that: A main host applied to a smart home system, the smart home system comprising a main host, a control terminal, and a device host, the method comprising: Acquire connection information of a wireless network from a preset terminal device, and connect to the wireless network according to the connection information; When the control terminal and / or the device host is detected, the connection information is sent to the control terminal and / or the device host, so that the control terminal and / or the device host connects to the wireless network according to the connection information; Communicate with the control terminal and / or the device host based on the wireless network.

2. The method according to claim 1, characterized in that The step of obtaining connection information of a wireless network from a preset terminal device and connecting to the wireless network according to the connection information includes: Run the preset near field communication module and control the current network connection state to be in the waiting network configuration state; When it is determined that the current distance to the terminal device is less than a preset distance threshold, establishing a short-distance communication connection with the terminal device; wherein the terminal device runs its own near field communication module at this time; When the connection information of the preset wireless network is received from the terminal device through the short-range communication connection, the wireless network is connected according to the connection information, and the current network connection status is updated to a configured network status; wherein, when the terminal device determines to establish a short-range communication connection with the main host, the terminal device sends the connection information of the wireless network to the main host.

3. The method according to claim 1, characterized in that After connecting to the wireless network according to the connection information, the method further includes: Obtaining the Internet Protocol address of the wireless network through a preset configuration protocol; Based on a preset network environment testing method, determining a target frequency band corresponding to the wireless network; The current network configuration is updated according to the Internet Protocol address and the target frequency band.

4. The method according to claim 1, characterized in that: The step of sending the connection information to the control terminal and / or the device host when the control terminal and / or the device host is detected includes: When receiving the first Bluetooth connection request sent by the control terminal, establishing a first Bluetooth connection with the control terminal; wherein, when the control terminal is initially running and scans the main host, the control terminal sends the first Bluetooth connection request to the main host; sending the connection information to the control terminal via the first Bluetooth connection; and / or, When receiving a second Bluetooth connection request sent by the device host, establishing a second Bluetooth connection with the device host; wherein the device host sends the second Bluetooth connection request to the main host when it is initially running and scans the main host; The connection information is sent to the control terminal through the second Bluetooth connection.

5. The method according to claim 4, characterized in that After sending the connection information to the control terminal through the first Bluetooth connection, the method further includes: Upon receiving the authentication information sent by the control terminal, authenticating the authentication information to obtain an authentication result; wherein, after the control terminal connects to the wireless network according to the received connection information, it obtains the authentication information of the main host through a visual interface and sends the authentication information to the main host; When the authentication result indicates that the authentication is passed, the control terminal is bound.

6. The method according to claim 1, characterized in that The sending of the connection information to the control terminal and / or the device host includes: The connection information is encrypted using a preset dynamic encryption algorithm and a shared key to obtain a ciphertext of the connection information; The connection information ciphertext is sent to the control terminal and / or the device host, so that when the control terminal and / or the device host receives the connection information ciphertext, they decrypt the connection information ciphertext based on the dynamic encryption algorithm and the shared key to obtain the connection information.

7. The method according to claim 1, characterized in that The communicating with the control terminal and / or the device host based on the wireless network includes: When receiving the first instruction ciphertext sent by the corresponding cloud server, the first instruction ciphertext is decrypted according to a preset first decryption algorithm to obtain a target control instruction; wherein, when the cloud server receives the control instruction sent by the mobile terminal, the control instruction is encrypted according to a preset first encryption algorithm to obtain a first instruction ciphertext, and the first instruction ciphertext is sent to the main host; Encrypting the target control instruction according to a preset second encryption algorithm to obtain a second instruction ciphertext; Based on the wireless network, the second instruction ciphertext is sent to the control terminal and / or the device host, so that the control terminal and / or the device host decrypts the second instruction ciphertext according to a preset second decryption algorithm, obtains the target control instruction, and executes the target control instruction.

8. The method according to claim 1, characterized in that The communicating with the control terminal and / or the device host based on the wireless network includes: Regularly obtaining the version number of the preset program in the control terminal and / or the device host according to the preset time; Obtain the current version number of the preset program in the cloud server; When it is determined that the version number is inconsistent with the current version number, obtaining an upgrade package of the preset program from the cloud server; The upgrade package is sent to the control terminal and / or the device host, so that the control terminal and / or the device host upgrades the preset program according to the received upgrade package.

9. The method according to claim 1, characterized in that: There are multiple device hosts, and the communication with the control terminal and / or the device host based on the wireless network includes: Sending prompt information for prompting the setting of the scene mode to the control terminal; the control terminal outputting a preset prompt box based on the prompt information, and generating a linkage control instruction corresponding to the scene mode when receiving a setting operation for the scene mode based on the prompt box; sending the linkage control instruction and the scene identifier corresponding to the scene mode to the main host; When receiving the linkage control instruction and the scene identifier, saving the scene identifier, the linkage control instruction, and the corresponding relationship between the two; In case of receiving the initial scene identifier sent by the control terminal, determining the target linkage control instruction corresponding to the initial scene identifier according to the initial scene identifier and the corresponding relationship; Determine a plurality of target device hosts corresponding to the target linkage control instruction; Splitting the target linkage control instruction to obtain sub-control instructions corresponding to each target device host; Each of the sub-control instructions is sent to the corresponding target device host, so that the target device host executes according to the received sub-control instruction.

10. The method according to claim 1, characterized in that The smart home system includes a plurality of device hosts of the same type, and the communication with the control terminal and / or the device host based on the wireless network includes: In case of receiving the group setting instruction sent by the control terminal, classifying the multiple device hosts included in the group setting instruction into the same device host set, and identifying the device host set according to the group identifier in the group setting instruction; When receiving an operation instruction sent by the control terminal for the device host set, obtaining a target group identifier included in the operation instruction; According to the target group identifier, determine a target device host set corresponding to the target group identifier; The operation instruction is sent to each device host in the target device host set, so that each device host in the target device host set runs according to the operation instruction.

11. A device communication method, characterized in that: A device host applied to a smart home system, wherein the smart home system includes a main host, a control terminal, and a device host, and the method includes: When the main host and / or the control terminal are detected and the connection information sent by the main host and / or the control terminal is received, the corresponding wireless network is connected according to the connection information; wherein, when the main host and / or the control terminal detects the device host, the connection information is sent to the device host; Communicate with the main host based on the wireless network; wherein the main host communicates with the control terminal and / or the device host based on the wireless network.

12. The method according to claim 11, characterized in that The method of, when the main host and / or the control terminal are detected and connection information sent by the main host and / or the control terminal is received, connecting to the corresponding wireless network according to the connection information includes: Running a preset Bluetooth module and scanning through the Bluetooth module; When the main host and / or the control terminal are scanned by the Bluetooth module, a Bluetooth connection request is sent to the main host and / or the control terminal; Upon receiving the connection confirmation information sent by the main host and / or the control terminal in response to the Bluetooth connection request, establishing a Bluetooth connection with the main host and / or the control terminal; When the connection information sent by the main host and / or the control terminal is received through the Bluetooth connection, the corresponding wireless network is connected according to the connection information.

13. The method according to claim 11, characterized in that The communicating with the main host based on the wireless network includes: The current device information is broadcast to the main host through a preset multicast protocol, so that the main host registers the device host according to the received device information.

14. The method according to claim 11, characterized in that The device host is a music host, the number of the music hosts is multiple, and the communication with the main host based on the wireless network includes: Upon receiving the audio signal sent by the main host, determining a current timestamp; Obtaining a sending timestamp corresponding to the audio signal; Determining an echo time difference corresponding to the audio signal according to the current timestamp and the sending timestamp; The echo time difference is sent to the main host, so that the main host sets the play delay of multiple music hosts according to the echo time difference.

15. The method according to claim 11, characterized in that The device host is a music host, and the communication with the main host based on the wireless network includes: Obtain the acoustic characteristics of the current space through the preset sound detection module; The acoustic features are sent to the main host so that the main host updates the configuration information of the music host according to the acoustic features.

16. A device communication apparatus, characterized in that: A main host used in a smart home system, the smart home system includes a main host, a control terminal, and a device host, and the device includes: A connection module, used to obtain connection information of a wireless network from a preset terminal device, and connect to the wireless network according to the connection information; a sending module, configured to send the connection information to the control terminal and / or the device host when the control terminal and / or the device host is detected, so that the control terminal and / or the device host connects to the wireless network according to the connection information; A communication module is used to communicate with the control terminal and / or the device host based on the wireless network.

17. A device communication apparatus, characterized in that: A device host used in a smart home system, wherein the smart home system includes a main host, a control terminal, and a device host, and the device includes: A connection module, configured to connect to a corresponding wireless network according to the connection information when the main host and / or the control terminal are detected and the connection information sent by the main host and / or the control terminal is received; wherein the main host and / or the control terminal sends the connection information to the device host when the device host is detected; A communication module is used to communicate with the main host based on the wireless network; wherein the main host communicates with the control terminal and / or the device host based on the wireless network.

18. A master host device, characterized in that: include: A processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; the memory is used to store a computer program; and the processor is used to implement the device communication method according to any one of claims 1 to 10 when executing the computer program.

19. A device host device, characterized in that: include: A processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; the memory is used to store a computer program; and the processor is used to implement the device communication method according to any one of claims 11 to 15 when executing the computer program.

20. A device communication system, characterized in that: Including main host equipment, control terminal, and equipment host equipment; The master host device is the master host device according to claim 18; The device host device is the device host device according to claim 19; The control terminal is used to generate a control instruction according to a user operation and send the control instruction to the main host; The main host is used to send the received control instruction to the device host device; The device host device is used to control multiple smart home devices according to the received control instructions.

21. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the device communication method described in any one of claims 1-10 or 11-15 is implemented.

Citation Information

Patent Citations

  • Intelligent household wireless ad-hoc network communication system, networking method and working method

    CN105024895A

  • Intelligent equipment control panel and control method thereof

    CN111650844A

  • Smart home networking method, device, equipment and medium

    CN115002684A

  • Data center access method and system, computer equipment and storage medium

    CN115396246A

  • Electronic equipment control method and device, equipment and storage medium

    CN115509137A

Cited By

  • Multi-room audio processing method and device based on mDNS, equipment and storage medium

    CN122348953A