Equipment control method and equipment

The server sends the information of the smart device to the gateway device, solving the problem of cumbersome Bluetooth pairing process, realizing direct Bluetooth connection between the smart device and the gateway device, and improving the user experience.

CN120264496APending Publication Date: 2025-07-04HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411297267.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-14
Publication Date
2025-07-04

AI Technical Summary

Technical Problem

The Bluetooth pairing process of existing smart devices is cumbersome and affects the user experience. Especially when remote control is required through the gateway device, it is necessary to cancel the Bluetooth pairing with the mobile phone and then pair with the gateway device.

Method used

The information of the smart device is sent to the gateway device through the server, so that the gateway device can directly establish a Bluetooth connection with the smart device, avoiding the cumbersome Bluetooth pairing process.

Benefits of technology

It simplifies user operations, improves user experience, realizes direct Bluetooth connection between smart devices and gateway devices, and reduces cumbersome pairing steps.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120264496A_ABST
    Figure CN120264496A_ABST
Patent Text Reader

Abstract

According to the equipment control method and equipment provided by the invention, the information of the intelligent equipment and the information of the gateway equipment are stored in the server side, and the server side sends the information of the intelligent equipment to the gateway equipment, so that the intelligent equipment can directly establish Bluetooth connection without Bluetooth pairing with the gateway equipment, and the user experience is improved. Therefore, tedious operation of the user can be reduced, and the user equipment can remotely control the intelligent equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of terminals, and in particular, to a device control method and a device. Background Art

[0002] With the rapid development of the Internet of Things technology, intelligent devices have become more and more popular. At the same time, the remote control function of intelligent devices has also brought a lot of convenience to users.

[0003] Currently, users can control intelligent devices with Bluetooth functions through Bluetooth connection or gateway remote control. When the intelligent device completes Bluetooth pairing with the mobile phone and establishes a Bluetooth connection, if you want to perform remote control through the gateway device, you need to first cancel the Bluetooth pairing between the intelligent device and the mobile phone, and then pair the intelligent device with the gateway device for Bluetooth connection. Among them, the intelligent device and the gateway device can be paired via Bluetooth in the following way: The mobile phone first makes a Wi-Fi connection with the gateway device, and then, on the interface of the mobile phone application (for example, the smart life application), the devices that can be paired scanned by the gateway device through the Bluetooth scanning function can be displayed. Then, the user can select the intelligent device from the scanned devices, and then, the gateway device and the intelligent device perform Bluetooth pairing. The above method is relatively cumbersome and affects the user experience. Summary of the Invention

[0004] This application provides a device control method and a device to reduce user operations and improve user experience.

[0005] In a first aspect, a device control method is provided. This method can be applied to a system including a user device, a gateway device, an intelligent device, and a server. Among them, the user device, the gateway device, and the intelligent device are devices with Bluetooth functions. Specifically, this method includes:

[0006] First, the server obtains the information of the intelligent device and the information of the gateway device; then, the server sends the information of the intelligent device to the gateway device, and the information of the intelligent device includes device information, secret key information, and registration information; after the gateway device receives the Bluetooth reconnection broadcast sent by the intelligent device, it establishes a Bluetooth connection with the intelligent device; then, the user device sends a control instruction for controlling the intelligent device; the server sends the control instruction to the gateway device; then, the gateway device sends the control instruction to the intelligent device; finally, the intelligent device performs corresponding operations according to the control instruction.

[0007] Through the above technical solution, the server can send the information of the intelligent device to the gateway device, so that the gateway device does not need to pair with the intelligent device via Bluetooth. It can directly establish a Bluetooth connection with the intelligent device through the Bluetooth reconnection broadcast, thus avoiding the cumbersome Bluetooth pairing process, with simple operation and better user experience.

[0008] In a possible implementation, the server sending the information of the intelligent device to the gateway device includes:

[0009] The user device receives a first operation from the user; in response to the first operation, the user device sends a message to the server, and the message is used to trigger the server to send the information of the intelligent device to the gateway device.

[0010] Through the above technical solution, the user can trigger the operation of sending the information of the intelligent device to the gateway device on the user device, so that the gateway device can directly establish a Bluetooth connection without the operation process of pairing with the intelligent device via Bluetooth, with simple operation.

[0011] In a possible implementation, before the gateway device establishes a Bluetooth connection with the intelligent device, the method further includes:

[0012] The intelligent device disconnects the Bluetooth connection with the user device; or the intelligent device disconnects the Bluetooth connection with other devices except the gateway device.

[0013] Through the above technical solution, the intelligent device can first disconnect the Bluetooth connection with other connected devices and then establish a Bluetooth connection with the gateway device, so as to avoid problems such as device switching errors caused by the intelligent device connecting to multiple devices simultaneously.

[0014] In a possible implementation, before the user device sends the information of the gateway device and the information of the intelligent device to the server, the method further includes:

[0015] The user device establishes a first communication connection with the intelligent device and a second communication connection with the gateway device.

[0016] Among them, the first communication connection can be a Bluetooth connection, and the second communication connection can be a Wi-Fi connection.

[0017] In a possible implementation, the server obtaining the information of the intelligent device and the information of the gateway device includes:

[0018] The user device sends the information of the gateway device and the information of the intelligent device to the server.

[0019] Through the above technical solution, the user equipment sends the information of the gateway equipment and the information of the intelligent equipment to the server, so that the server can send the information of the intelligent equipment to the corresponding gateway equipment for subsequent Bluetooth connection between the gateway equipment and the intelligent equipment.

[0020] In a second aspect, a device control method is provided, which is applied to a gateway device with Bluetooth function. The method includes:

[0021] The gateway device receives the information of the intelligent equipment sent by the server, and the information of the intelligent equipment includes device information, secret key information and registration information; after the gateway device receives the Bluetooth reconnection broadcast sent by the intelligent equipment, it establishes a Bluetooth connection with the intelligent equipment; the gateway device receives the control instruction sent by the server and sends the control instruction to the intelligent equipment.

[0022] Through the above technical solution, the gateway device can directly establish a Bluetooth connection with the intelligent equipment based on the information of the intelligent equipment sent by the server after receiving the Bluetooth reconnection broadcast of the intelligent equipment, without Bluetooth pairing, thus saving the cumbersome operation process of Bluetooth pairing.

[0023] In a possible implementation, the information of the intelligent equipment is sent by the user equipment to the server.

[0024] In a possible implementation, before the gateway device receives the Bluetooth reconnection broadcast of the intelligent equipment and establishes a Bluetooth connection with the intelligent equipment, the method further includes:

[0025] Determine that the intelligent equipment disconnects the Bluetooth connection with the user equipment; or determine that the intelligent equipment disconnects the Bluetooth connection with other equipment except the gateway equipment.

[0026] In a third aspect, a device control method is provided, which is applied to a user equipment. Specifically, the method includes:

[0027] The user equipment receives a first operation of the user, and the first operation is used to send the information of the intelligent equipment to the gateway equipment; in response to the first operation, the user equipment sends a message to the server, and the message is used to trigger the server to send the information of the intelligent equipment to the gateway equipment, and the information of the intelligent equipment includes device information, secret key information and registration information; the user equipment sends a control instruction, and the control instruction is used to control the intelligent equipment.

[0028] Through the above technical solution, the user can trigger the sending of the information of the intelligent equipment to the gateway equipment on the user equipment, and can send a control instruction through the user equipment, so as to realize the function of directly establishing a Bluetooth connection between the intelligent equipment and the gateway equipment without Bluetooth pairing and remotely controlling the intelligent equipment.

[0029] In a fourth aspect, a gateway device is provided. The gateway device includes a processor, a memory, and one or more programs. Wherein the one or more programs are stored in the one or more memories, and when the one or more programs are called and executed by the one or more processors, the gateway device is caused to execute the method according to the second aspect and any possible design of the second aspect.

[0030] In a fifth aspect, a gateway device is further provided. The gateway device includes modules / units for executing the method according to the second aspect or any possible design of the second aspect. These modules / units can be implemented by hardware or by hardware executing corresponding software.

[0031] In a sixth aspect, a user equipment is provided. The user equipment includes a processor, a memory, and one or more programs. Wherein the one or more programs are stored in the one or more memories, and when the one or more programs are called and executed by the one or more processors, the user equipment is caused to execute the method according to the third aspect and any possible design of the third aspect.

[0032] In a seventh aspect, a user equipment is further provided. The user equipment includes modules / units for executing the method according to the third aspect or any possible design of the third aspect. These modules / units can be implemented by hardware or by hardware executing corresponding software.

[0033] In an eighth aspect, a readable storage medium (which can also be referred to as a computer-readable storage medium) is provided. A program is stored in the readable storage medium, and when the program runs on the gateway device, the gateway device is caused to execute the method according to the second aspect and any possible design of the second aspect.

[0034] In a ninth aspect, a readable storage medium (which can also be referred to as a computer-readable storage medium) is further provided. A program is stored in the readable storage medium, and when the program runs on the user equipment, the user equipment is caused to execute the method according to the third aspect and any possible design of the first aspect.

[0035] In a tenth aspect, a program product (which can also be referred to as a computer program product) is further provided. When the program product runs on the gateway device, the gateway device is caused to execute the method according to the second aspect and any possible design of the second aspect.

[0036] In an eleventh aspect, the present application further provides a program product (which can also be referred to as a computer program product). When the program product runs on the user equipment, the user equipment is caused to execute the method according to the third aspect and any possible design of the third aspect.

[0037] For the technical effects that can be achieved by each of the aspects from the fourth aspect to the eleventh aspect above and each aspect, please refer to the technical effects that can be achieved by various possible solutions in the first aspect, the second aspect, and the third aspect above, and they will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application;

[0039] Figure 2A FIG. 2 is a schematic diagram of the hardware structure of a user device 10 provided by an embodiment of the present application;

[0040] Figure 2B FIG. 3 is a schematic diagram of the hardware structure of a gateway device 30 provided by an embodiment of the present application;

[0041] Figure 3 FIG. 4 is a schematic block diagram of a software structure provided by an embodiment of the present application;

[0042] Figure 4 FIG. 5 is a flowchart of a device control method provided by an embodiment of the present application;

[0043] Figure 5 FIG. 6 is a schematic diagram of a user interface provided by an embodiment of the present application;

[0044] Figure 6 FIG. 7 is a schematic diagram of the structure of a device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0045] The technical solutions in the embodiments of the present application will be described in detail below with reference to the accompanying drawings in the following embodiments of the present application.

[0046] First, the current control methods of intelligent devices with Bluetooth functions will be introduced. Specifically, they may include two control methods: gateway remote control and Bluetooth direct connection control.

[0047] 1. Gateway remote control

[0048] First, a smart device with Bluetooth function is Bluetooth-connected to a gateway device with Bluetooth function, and then the information of the smart device is registered with the server through a user device (such as a mobile phone). Among them, the registration process is as follows: The user device (such as a mobile phone) first makes a Wi-Fi connection with the gateway device. Then, on the interface of the application on the user device (such as a smart life application), the devices that can be paired scanned by the gateway device through the Bluetooth scanning function can be displayed. Next, the user can select the smart device from the scanned devices. Then, the gateway device makes a Bluetooth pairing with the smart device. After the pairing is completed, the user can enter the Wi-Fi password and verification code according to the prompt information on the interface to complete the addition of the smart device. In this way, the smart device can be added to the smart life application, and subsequently, the user can control the smart device on the corresponding interface in the smart life application.

[0049] When the user wants to control the smart device, the user can send a control instruction through the application program on the user device (such as a smart life application), and this control instruction can be sent by the server to the gateway device. Finally, the gateway device controls the smart device through the control instruction.

[0050] 2. Bluetooth direct connection control

[0051] The user device (such as a mobile phone) can be Bluetooth-connected to a smart device with Bluetooth function. Then, the user can operate the card of the smart device on the interface of the application on the user device (such as a smart life application), trigger the interface of the user device to enter the operation interface of the smart device, and then trigger the control instruction for the smart device on the operation interface of the smart device.

[0052] In the above two control methods, if the smart device has established a Bluetooth connection with the user device, it means that the smart device has been Bluetooth-paired with the user device. Then, the smart device cannot send a pairing broadcast, and the smart device cannot be Bluetooth-connected to the gateway device. Therefore, the user device cannot remotely control the smart device through the gateway device. If you want to control the smart device through the gateway remote control method, the smart device needs to be Bluetooth-connected to the gateway device through Bluetooth pairing, and the operation is cumbersome.

[0053] In view of this, an embodiment of the present application provides a device control method. The user device saves the information of the gateway device and the intelligent device to the server, and then the user operates the corresponding control or option on the corresponding interface of an application on the user device, thereby triggering the server to send the information of the intelligent device to the gateway device. In this way, the gateway device can receive the information of the intelligent device and establish a Bluetooth connection with the intelligent device after receiving the Bluetooth reconnection broadcast sent by the intelligent device. Then, the user can trigger an operation instruction for controlling the intelligent device on an application on the user device, and then the server sends the control instruction to the gateway device, and the gateway device sends the control instruction to the intelligent device. The intelligent device executes the corresponding operation according to the control instruction, thereby realizing the remote control of the intelligent device by the user device. Through the above method, on the premise that the intelligent device and the user device have already performed Bluetooth pairing, the intelligent device does not need to cancel the Bluetooth pairing with the user device, and the intelligent device can directly establish a Bluetooth connection with the gateway device, avoiding cumbersome pairing connection operations and reducing user operations.

[0054] Exemplarily, as Figure 1 shown, it is a schematic diagram of an application scenario provided by an embodiment of the present application. Refer to Figure 1 shown, this application scenario may include: a user device 10, an intelligent device 20, a gateway device 30, and a server 40. Among them, the user device 10, the intelligent device 20, and the gateway device 30 are all devices with Bluetooth functions.

[0055] The user device 10 can be a mobile phone, a laptop computer, a tablet computer, etc., which is not limited in the embodiment of the present application. The user device involved in the embodiment of the present application can be a foldable user device, such as a foldable mobile phone, a foldable tablet computer, etc., which is not limited in this application. Moreover, exemplary embodiments of the user device include but are not limited to those equipped with Harmony or other operating systems.

[0056] The intelligent device 20 can be an intelligent door lock, a Bluetooth headset, etc.; the gateway device 30 can be a routing device, such as a router, a CPE, etc.; the server 40 can be a single server or a server cluster. Moreover, the server 40 can also be a cloud server, etc., which is not limited in this application. It should be understood that the gateway device 30 in the embodiment of the present application is a device with a gateway function. When the gateway function is integrated on a router, the gateway device 30 can be a router; when the gateway function is integrated on a Bluetooth speaker, the gateway device 30 can be a Bluetooth speaker.

[0057] In some embodiments, the user device 10 and the smart device 20 can establish a connection via Bluetooth. Then, the user device 10 can register the information of the smart device 20 with the server 40. The user device 10 and the gateway device 30 establish a connection via Wi-Fi. Then, the user device 10 can register the information of the gateway device 30 with the server 40. The server 40 can send the information of the smart device 20 to the gateway device 30. At this time, the user device 10 can disconnect the Bluetooth connection with the smart device 20. In this way, the gateway device 30 can search for the smart device 20 via Bluetooth and then establish a Bluetooth connection with the smart device 20. Next, the user can trigger a control instruction by operating on a corresponding interface of an application on the user device 10. Then, the server 40 sends the control instruction to the gateway device 30. After receiving the control instruction, the gateway device 30 can send the control instruction to the smart device 20. Correspondingly, after receiving the control instruction, the smart device 20 can perform corresponding operations according to the control instruction.

[0058] It should be understood that the control instruction described in the embodiments of the present application is only an example. In other embodiments, the control instruction can also be referred to as a control message, a control packet, control information, a control command, a control request, etc.

[0059] It should be understood that the method of the embodiments of the present application can also be applied to the scenario where a smart device establishes a connection with a gateway device A and remotely controls the smart device through the gateway device A. When a new gateway device B is added to the home and it is desired to remotely control the smart device through the gateway device B.

[0060] The following introduces Figure 1 the hardware structure of the devices involved in the application scenario shown. Exemplarily, as Figure 2A shown, it is a schematic diagram of the hardware structure of a user device 10 provided by an embodiment of the present application.

[0061] As Figure 2A shown, the user device 10 may include a processor 110, an internal memory 120, an antenna 1, an antenna 2, a mobile communication module 130, a wireless communication module 140, a display screen 150, etc.

[0062] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors. Among them, the controller may be the nerve center and command center of the user equipment 10. The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions. A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can save the instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can directly call it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0063] The internal memory 120 can be used to store executable program codes, and the executable program codes include instructions. The processor 110 executes various functional applications and data processing of the user equipment 10 by running the instructions stored in the internal memory 120. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store the operating system and software codes of at least one application program, etc. The data storage area can store the data (such as images, etc.) generated during the use of the user equipment 10. In addition, the internal memory 120 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, etc.

[0064] The mobile communication module 130 can provide solutions for wireless communications such as 2G / 3G / 4G / 5G applied to the user equipment 10. The mobile communication module 130 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 130 can receive electromagnetic waves through the antenna 1, filter, amplify, and perform other processing on the received electromagnetic waves, and then transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 130 can also amplify the signal modulated by the modulation and demodulation processor and convert it into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least some functional modules of the mobile communication module 130 can be provided in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 130 and at least some modules of the processor 110 can be provided in the same device.

[0065] The wireless communication module 140 can provide solutions for wireless communications applied to the user equipment 10, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. The wireless communication module 140 can be one or more devices integrating at least one communication processing module.

[0066] The display screen 150 is used to display the display interface of the application, etc. The display screen 150 includes a display panel. In some embodiments, the user equipment 10 may include 1 or N display screens 150, where N is a positive integer greater than 1. In the embodiments of the present application, the display screen 150 can be used to display the application interface of application programs (such as smart life applications), etc.

[0067] It can be understood that Figure 2A the components shown do not specifically limit the user equipment 10. The user equipment 10 may also include more or fewer components than those shown, or combine certain components, or split certain components, or have different component arrangements.

[0068] Exemplarily, as Figure 2B shown, it is a schematic diagram of the hardware structure of a gateway device 30 provided by the embodiments of the present application. Refer to Figure 2B shown, as Figure 2BAs shown, the gateway device 30 may include a processor 210, a memory 220, a communication module 230, a control module 240, etc.

[0069] The processor 210 may include one or more processing units. For example, the processor 210 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors. Among them, the controller may be the nerve center and command center of the gateway device 30. The controller may generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions. A memory may also be provided in the processor 210 for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. This memory may store the instructions or data that the processor 210 has just used or recycled. If the processor 210 needs to use the instruction or data again, it can be directly called from the memory. This avoids repeated accesses, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.

[0070] The memory 220 may be used to store executable program codes, and the executable program codes include instructions. The processor 210 executes various functional applications and data processing of the gateway device 30 by running the instructions stored in the memory 220. The memory 220 may include a program storage area and a data storage area. Among them, the program storage area may store software codes of the operating system, etc. The data storage area may store the data generated during the use of the gateway device 30, etc. In addition, the memory 220 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, etc.

[0071] The communication module 230 may provide communication solutions applied to the gateway device 30, including WLAN (such as Wi-Fi network), BT, etc. In the embodiments of the present application, the gateway device 30 may communicate with the wireless communication module 140 of the user device 10 through the communication module 230. For example, the gateway device 30 may establish a Wi-Fi connection with the user device 10.

[0072] The control module 240 is used to send control instructions and control the intelligent device according to the control instructions.

[0073] It can be understood that Figure 2B The components shown do not constitute a specific limitation on the gateway device 30. The gateway device 30 may further include more or fewer components than shown, or combine certain components, or split certain components, or have different component arrangements.

[0074] Such as Figure 3 As shown, it is a software structure block diagram provided by an embodiment of the present application. Refer to Figure 3 As shown, the user device 10 includes a control module 301 and a communication module 302; the intelligent device 20 includes a communication module 303, which may specifically include a discovery module 303A, a pairing module 303B, and a connection module 303C; the gateway device 30 includes a device management module 304 and a communication module 305; the server 40 includes a communication module 306 and an information storage module 307. Among them, the communication module 302 of the user device 10 may include a discovery module 302A, a pairing module 302B, and a connection module 302C, and the communication module 305 of the gateway device 30 may include a discovery module 305A, a pairing module 305B, and a connection module 305C.

[0075] Specifically, the control module 301 of the user device 10 is used to query the corresponding device information from the server 40 and send the control instructions to the corresponding device through the server 40; the communication module 302 is used to communicate with the communication module 303 of the intelligent device 20 or communicate with the communication module 305 of the gateway device 30.

[0076] The discovery module 303A of the intelligent device 20 is used to search and discover devices with the Bluetooth function enabled within a set range of distances from the intelligent device 20, such as the user device 10. The pairing module 303B is used to pair with the pairing module 302B of the user device 10, and the connection module 303C is used to connect to the user device 10.

[0077] The device management module 304 of the gateway device 30 is used to manage the information of all Bluetooth devices included in the local area network, such as the device parameter information of Bluetooth devices; the communication module 305 is used to perform Bluetooth communication with the intelligent device 20 or establish a Wi-Fi connection communication with the user device 10.

[0078] The communication module 306 of the server 40 is used to send the control instructions triggered by the user on the user device 10 to the corresponding device, such as the gateway device 30; the information storage module 307 is used to store the relevant information of all devices in the local area network, such as the device parameter information of Bluetooth devices, Wi-Fi devices, and gateway devices.

[0079] It should be understood that the above software modules are only examples. In actual implementation, there may be more or fewer software modules, and the present application does not make any limitations in this regard.

[0080] As Figure 4 shown, it is a flowchart of a device control method provided by an embodiment of the present application. Referring to Figure 4 shown, the method may include the following steps:

[0081] Step 401, the user device 10 establishes a Bluetooth connection with the intelligent device 20.

[0082] In some embodiments, the user device 10 establishes a Bluetooth connection with the intelligent device 20. The process of establishing a Bluetooth connection may include the following steps:

[0083] Step 401a, the user device 10 searches for surrounding devices through Bluetooth scanning.

[0084] The user device 10 can turn on the Bluetooth search function and scan, in the Bluetooth search interface, for devices that have turned on the Bluetooth function within a set range of the distance from the user device 10. For example, at least one device can be scanned.

[0085] Step 401b, the user device 10 sends a Bluetooth connection establishment request to the intelligent device 20.

[0086] When the user device 10 searches for the intelligent device 20, the user selects the intelligent device 20 in the Bluetooth search interface. For example, the user can click on the identification information of the intelligent device 20, and the user device 10 initiates a Bluetooth connection establishment request to the intelligent device 20.

[0087] Step 401c, the intelligent device 20 sends a Bluetooth connection establishment response agreeing to establish a Bluetooth connection to the user device 10.

[0088] After receiving the Bluetooth connection establishment request initiated by the user device 10, the intelligent device 20 can send a Bluetooth connection establishment response to the user device 10, thereby completing the Bluetooth connection between the user device 10 and the intelligent device 20. Optionally, when the intelligent device 20 receives the Bluetooth connection request, it can be confirmed by the user. For example, after the user enters confirmation information on the intelligent device 20, the intelligent device 20 then sends a Bluetooth connection establishment response agreeing to establish a Bluetooth connection to the user device 10. Of course, it can also be without user confirmation, and the present application does not make specific limitations in this regard.

[0089] It should be understood that in the embodiment of the present application, step 401c is an optional step. That is to say, when the user selects the intelligent device 20 on the user device 10, the intelligent device 20 can automatically enter the pairing mode with the user device 10. After the pairing is completed, it can be considered that the intelligent device 20 and the user device 10 have completed the pairing connection.

[0090] Exemplarily, taking a mobile phone as the user device 10 and a Bluetooth headset as the smart device 20 as an example, the above Bluetooth connection process is introduced. For example, the user can operate the Bluetooth headset to make it enter the pairing mode, and then the user can turn on the Bluetooth search function of the mobile phone to search for devices near the mobile phone. When the search is completed, for example, when the Bluetooth headset is searched, the user can click on the identification information of the Bluetooth headset in the Bluetooth search result interface of the mobile phone. At this time, the mobile phone can send a pairing connection request to the Bluetooth headset. After waiting for a preset duration (for example, 3 seconds), the mobile phone completes the pairing connection with the Bluetooth headset.

[0091] In some embodiments, during the process of establishing a connection between the user device 10 and the smart device 20, the user device 10 and the smart device 20 can negotiate the key information for their Bluetooth connection. It should be understood that the key information can be a string, for example, it can be the hash value of the Universally Unique Identifier (UUID) of the user device 10 or the smart device 20.

[0092] Step 402, the user device 10 registers the information of the smart device 20 to the server 40.

[0093] After the user device 10 establishes a Bluetooth connection with the smart device 20, the user device 10 can register the information of the smart device 20 to the server 40 so that the server 40 can send the information of the smart device 20 to the gateway device 30 subsequently. Among them, the information of the smart device 20 includes at least one of identification information, device model information, version information, and manufacturer information.

[0094] It should be understood that the registration in the embodiments of the present application can also be referred to as: saving, binding, etc. This registration process can be understood as: adding the smart device to the application of the user device 10 (such as the smart life application) or binding it to the account logged in to the application, so that the user can control the smart device 20 in the application of the user device 10 subsequently. This process can refer to the introduction of the registration process in the gateway remote control part of the foregoing embodiments, and will not be repeated here.

[0095] In some embodiments, when the user device 10 registers the information of the smart device 20 to the server 40, the server 40 can generate registration information for the smart device 20, and the registration information includes the device model information of the smart device 20 registered to the server 40 and the unique identification information assigned by the server 40 to the smart device 20.

[0096] In some embodiments, the information of the smart device 20 can be obtained by the user device 10 from the configuration information of the smart device 20 during the process of establishing a Bluetooth connection between the user device 10 and the smart device 20, or can be sent by the smart device 20 to the user device 10. Among them, the configuration information of the smart device 20 may include the information of the smart device 20.

[0097] Step 403, the user device 10 establishes a Wi-Fi connection with the gateway device 30.

[0098] Taking the mobile phone as the user device 10 and the router as the gateway device 30 as an example, the mobile phone can establish a connection with the router through Wi-Fi, so that the mobile phone can register the information of the router with the server 40.

[0099] Step 404, the user device 10 registers the information of the gateway device 30 with the server 40.

[0100] After the user device 10 establishes a connection with the gateway device 30, the user device 10 can register the information of the gateway device 30 with the server 40 for subsequent sending of corresponding control instructions to the gateway device 30. Among them, the information of the gateway device 30 may include the identification information, device model information, and version information of the gateway device 30.

[0101] It should be understood that for a detailed introduction to the registration in step 404, reference can be made to the description in step 402, and no further introduction will be made here.

[0102] In some embodiments, when the user device 10 registers the information of the gateway device 30 with the server 40, the registration information may include the device model information of the gateway device 30 registered with the server 40 and the unique identification information assigned by the server 40 to the gateway device 30.

[0103] In some embodiments, the information of the gateway device 30 can be obtained by the user device 10 from the configuration information of the gateway device 30 during the process of establishing a Wi-Fi connection between the user device 10 and the gateway device 30, or can be sent by the gateway device 30 to the user device 10. Among them, the configuration information of the smart device 20 may include the information of the smart device 20.

[0104] It should be understood that the execution order of step 401, step 402, and step 403, step 404 is not limited in the embodiments of the present application. For example, step 403 can also be executed first and then step 401. That is to say, the user device 10 can first establish a Wi-Fi connection with the gateway device 30 and then establish a Bluetooth connection with the smart device 20, etc., which is not limited in the embodiments of the present application.

[0105] Step 405, the server 40 sends the relevant information of the smart device 20 to the gateway device 30.

[0106] After steps 401 to 404, the server 40 stores the information of the intelligent device 20 and the information of the gateway device 30. Then, the server 40 can send the relevant information of the intelligent device 20 to the gateway device 30. In this way, without additional configuration by the user, the gateway device 30 can obtain the information of the intelligent device 20, which can reduce the cumbersome configuration operations of the user and improve the user experience.

[0107] In the embodiment of the present application, the relevant information of the intelligent device 20 sent by the server 40 to the gateway device 30 may include the device information, key information, and registration information of the intelligent device 20. Among them, the registration information refers to the information generated by the server 40 for the intelligent device 20 when the intelligent device 20 registers with the server 40.

[0108] In some embodiments, the intelligent device 20 may include at least one device. When multiple devices are included, the server 40 may send the relevant information of multiple intelligent devices to the gateway device 30 at the same time, or may separately send the relevant information of each intelligent device to the gateway device 30.

[0109] In some embodiments, step 405 may be executed after the user performs corresponding operations on a corresponding interface of an application on the user device 10. That is to say, the user can operate corresponding controls or options on the corresponding interface of an application on the user device 10 to trigger the server 40 to send the relevant information of the intelligent device 20 to the gateway device 30. Exemplarily, taking the gateway device 30 as a router, the user can add a new router in the smart life application of the mobile phone and perform the registration process of the new router. For example, reference can be made to Figure 5 the interfaces 500, 510, 520, and 530 shown in the schematic diagrams (a) to (d) therein. After the user sets the name of the router, the user clicks the "Next" control in the interface shown in (d) of Figure 5 therein. The mobile phone can respond to this click operation and enter the interface shown in (e) of Figure 5 therein, such as interface 540. The interface 540 may include a prompt message 541, device information 542, a "Cancel" control 543, and an "Add" control 544. Among them, the prompt message 541 is, for example: It is detected that you have the following Bluetooth devices, which can be configured to the SparkLink router with one key. The user can select at least one device in the device information and then click the "Add" control 544 to register the selected device to the new router. If the user clicks the "Cancel" control 543, the mobile phone can respond to this click operation and display Figure 5The interface shown in (f), such as interface 550. When the user selects a device in the device information 542, the user can click the "Add" control 544, and then the mobile phone can detect this trigger operation and notify the server to send the information of the selected device to the gateway device.

[0110] It should be understood that Figure 5 The user interface shown is only illustrative. When the actual product is implemented, the prompt information, device information, etc. shown in interface 540 can also be displayed on interface 550. That is to say, the trigger interface for the server 40 to send the information of the smart device to the gateway device 30 is not limited to being triggered on interface 540.

[0111] Step 406, the user device 10 disconnects the Bluetooth connection with the smart device 20.

[0112] As a possible implementation, in the embodiment of the present application, step 406 can be an optional step. That is to say, before the gateway device 30 establishes a Bluetooth connection with the smart device 20, the user device 10 does not need to disconnect the Bluetooth connection with the smart device 20. As long as the smart device 20 can send a Bluetooth reconnection broadcast and the gateway device 30 can receive this broadcast, a Bluetooth connection can be established.

[0113] It should be understood that if the smart device 20 is connected to other devices (non-user device 10) via Bluetooth, in this step, it can be: the smart device 20 disconnects the Bluetooth connection with other devices except the gateway device 30.

[0114] Step 407, the gateway device 30 establishes a Bluetooth connection with the smart device 20.

[0115] In some embodiments, when the smart device 20 with Bluetooth function can only establish a Bluetooth connection with one device, it is necessary that after the user device 10 disconnects the Bluetooth connection with the smart device 20, the smart device 20 sends a Bluetooth reconnection broadcast so that the smart device 20 can establish a Bluetooth connection with the gateway device 30. Specifically, after the user device 10 disconnects the Bluetooth connection with the smart device 20, the smart device 20 can send a Bluetooth reconnection broadcast, so that the gateway device 30 can search for the smart device 20 and send a Bluetooth connection establishment request to the smart device 20, and then the gateway device 30 and the smart device 20 establish a Bluetooth connection.

[0116] In other embodiments, when the smart device 20 with Bluetooth function can establish Bluetooth connections with multiple devices simultaneously, it is not necessary for the user device 10 to disconnect the Bluetooth connection with the smart device 20. As long as the smart device 20 can send a Bluetooth reconnection broadcast, the gateway device 30 can establish a Bluetooth connection with the smart device 20.

[0117] It should be understood that in the embodiments of the present application, when the smart device 20 first establishes a Bluetooth connection with the user device 10, it can broadcast a first pairing broadcast to complete the Bluetooth pairing process; after the smart device 20 and the user device 10 have been paired via Bluetooth, the smart device 20 can send a reconnection broadcast.

[0118] In the embodiments of the present application, after the server 40 sends the relevant information of the smart device 20 to the gateway device 30, the gateway device 30 does not need to perform Bluetooth pairing with the smart device 20 through the user device 10. The gateway device 30 can directly establish a Bluetooth connection with the smart device 20 through the Bluetooth reconnection broadcast, thereby reducing the cumbersome Bluetooth pairing operation process.

[0119] Step 408, the user device 10 sends a control instruction for the smart device 20.

[0120] In some embodiments, the user can operate corresponding controls or options on the corresponding interface of the smart life application, such as the control interface of the smart device 20, to trigger a control instruction for the smart device 20. When the user device 10 detects the user's triggering operation, it can send a control instruction for the smart device 20.

[0121] Step 409, the server 40 sends the control instruction to the gateway device 30.

[0122] Step 410, the gateway device 30 sends the control instruction to the smart device 20.

[0123] After the user triggers a control instruction for the smart device 20, the server 40 can receive the control instruction and send the control instruction to the gateway device 30, and the gateway device 30 then sends the control instruction to the smart device 20.

[0124] Step 411: The smart device 20 performs corresponding operations according to the control instruction.

[0125] After receiving the control instruction, the smart device 20 can perform corresponding operations according to the control instruction, thereby realizing remote control of the smart device 20 by the user device 10.

[0126] Through the above embodiments, after the smart device 20 and the user device 10 have been paired via Bluetooth, if it is necessary to establish a Bluetooth connection between the smart device 20 and the gateway device 30, the server 40 sends the relevant information of the smart device 20 to the gateway device 30, so that the gateway device 30 does not need to perform Bluetooth pairing with the smart device 20, reducing the cumbersome Bluetooth pairing operation, and thus realizing remote control of the smart device by the user device.

[0127] It should be noted that all or part of the above-described embodiments provided in this application can be freely and arbitrarily combined with each other. The combined technical solutions are also within the protection scope of this application.

[0128] In the above embodiments provided in this application, the method provided in the embodiments of this application is introduced from the perspective of the slave device as the execution entity. To implement each function in the method provided in the above embodiments of this application, the device may include a hardware structure and / or software module, and implement the above functions in the form of a hardware structure, a software module, or a combination of a hardware structure and a software module. Whether a certain function among the above functions is executed in the form of a hardware structure, a software module, or a combination of a hardware structure and a software module depends on the specific application and design constraints of the technical solution.

[0129] As Figure 6 shown, some other embodiments of this application disclose a device. Exemplarily, the device may be the gateway device or the user equipment in the foregoing embodiments. Referring to Figure 6 shown, the device 600 includes: a transceiver 601; a processor 602; a memory 603; and one or more computer programs 604 (not shown in the figure), and the above components may be connected through one or more communication buses 605.

[0130] Among them, one or more programs are stored in the memory 603. When the one or more programs are called and executed by the processor 602, the device 600 is caused to execute the method steps in the above embodiments. Exemplarily, the transceiver 601 is used to obtain information of the intelligent device and information of the gateway device, and send the information of the intelligent device to the gateway device; it can also be used to send control instructions for the intelligent device. The processor 602 is used to establish a Bluetooth communication connection with the gateway device after the intelligent device disconnects the communication connection with other devices.

[0131] In the embodiments of this application, the processor 602 may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field-programmable gate array or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of this application can be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor. The software module may be located in the memory 603, and the processor 602 reads the program instructions in the memory 603 and combines its hardware to complete the steps of the above method.

[0132] In the embodiments of the present application, the memory 603 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or may also be a volatile memory, such as RAM. The memory may also be any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory in the embodiments of the present application may also be a circuit or any other device capable of implementing a storage function, for storing instructions and / or data.

[0133] Those skilled in the art can clearly understand that for the convenience and conciseness of description, the specific working processes of the above-described devices and units may refer to the corresponding processes in the foregoing method embodiments and will not be described herein again.

[0134] Based on the above embodiments, the present application also provides a readable storage medium (which may also be referred to as a computer-readable storage medium). A program is stored in the readable storage medium. When the program is executed by a gateway device, the gateway device is caused to execute the method steps executed by the gateway device in the device control method provided in the above embodiments.

[0135] Based on the above embodiments, the present application also provides a readable storage medium (which may also be referred to as a computer-readable storage medium). A program is stored in the readable storage medium. When the program is executed by a user device, the user device is caused to execute the method steps executed by the user device in the device control method provided in the above embodiments.

[0136] In the embodiments of the present application, a program product (which may also be referred to as a computer program product) is also provided, including instructions. When the instructions run on a gateway device, the gateway device is caused to execute the method steps executed by the gateway device in the device control method provided in the above embodiments.

[0137] In the embodiments of the present application, a program product (which may also be referred to as a computer program product) is also provided, including instructions. When the instructions run on a user device, the user device is caused to execute the method steps executed by the user device in the device control method provided in the above embodiments.

[0138] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowcharts and / or block diagrams, and the combination of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by instructions.

[0139] As described above, it is only the specific implementation manner of the embodiments of the present application. However, the protection scope of the embodiments of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the embodiments of the present application can easily think of changes or substitutions, which should all be covered within the protection scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.

Claims

1. A device control method, applied to a system including a user device, a gateway device, an intelligent device, and a server, characterized in that The user equipment, the gateway equipment, and the intelligent equipment are equipment with Bluetooth functions, and the method includes: The server obtains the information of the intelligent equipment and the information of the gateway equipment; The server sends the information of the intelligent equipment to the gateway equipment, and the information of the intelligent equipment includes device information, secret key information, and registration information; After receiving the Bluetooth reconnection broadcast sent by the intelligent equipment, the gateway equipment establishes a Bluetooth connection with the intelligent equipment; The user equipment sends a control instruction for controlling the intelligent equipment; The server sends the control instruction to the gateway equipment; The gateway equipment sends the control instruction to the intelligent equipment; The intelligent equipment performs corresponding operations according to the control instruction.

2. The method according to claim 1, characterized in that, The server sending the information of the intelligent equipment to the gateway equipment includes: The user equipment receives a first operation of the user; In response to the first operation, the user equipment sends a message to the server, and the message is used to trigger the server to send the information of the intelligent equipment to the gateway equipment.

3. The method according to claim 1 or 2, characterized in that, Before the gateway equipment establishes a Bluetooth connection with the intelligent equipment, the method further includes: The intelligent equipment disconnects the Bluetooth connection with the user equipment; or The intelligent equipment disconnects the Bluetooth connection with other equipment except the gateway equipment.

4. The method according to any one of claims 1 to 3, characterized in that The server obtaining the information of the intelligent equipment and the information of the gateway equipment includes: The user equipment sends the information of the gateway equipment and the information of the intelligent equipment to the server.

5. A device control method, which is applied to a gateway device with Bluetooth function, is characterized in that including: The gateway equipment receives the information of the intelligent equipment sent by the server, and the information of the intelligent equipment includes device information, secret key information, and registration information; After receiving the Bluetooth reconnection broadcast sent by the intelligent equipment, the gateway equipment establishes a Bluetooth connection with the intelligent equipment; The gateway equipment receives the control instruction sent by the server and sends the control instruction to the intelligent equipment.

6. The method according to claim 5, characterized in that, The information of the intelligent equipment is sent from the user equipment to the server.

7. The method according to claim 5 or 6, characterized in that, Before the gateway equipment establishes a Bluetooth connection with the intelligent equipment after receiving the Bluetooth reconnection broadcast of the intelligent equipment, the method further includes: Determining that the intelligent equipment disconnects the Bluetooth connection with the user equipment; or Determining that the intelligent equipment disconnects the Bluetooth connection with other equipment except the gateway equipment.

8. A device control method, applied to a user device, characterized in that including: The user equipment receives a first operation of the user, and the first operation is used to send the information of the intelligent equipment to the gateway equipment; In response to the first operation, the user equipment sends a message to the server, and the message is used to trigger the server to send the information of the intelligent equipment to the gateway equipment, and the information of the intelligent equipment includes device information, secret key information, and registration information; The user equipment sends a control instruction for controlling the intelligent equipment.

9. A gateway device, characterized in that, The gateway equipment includes one or more processors; one or more memories; and one or more programs; Wherein, the one or more programs are stored in the one or more memories, and when the one or more programs are called by the one or more processors, the gateway device is caused to execute the method performed by the gateway device according to any one of claims 5 to 7.

10. A user equipment, characterized in that, The user equipment includes one or more processors; one or more memories; and one or more programs; Wherein, the one or more programs are stored in the one or more memories, and when the one or more programs are called by the one or more processors, the user equipment is caused to execute the method performed by the user equipment according to claim 8.