A device management system, method and master device
By sending connection commands and displaying connection status information through the main control device, the problem of controlling the connection relationship between smart home devices is solved, improving user experience and device management efficiency, and realizing the management of smart home devices in multiple locations and rooms.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2021-08-17
- Publication Date
- 2026-07-31
AI Technical Summary
In existing technologies, the main control device cannot control the connection between two smart home devices in a smart home network, resulting in a poor user experience.
A device management system and method are provided, which sends connection commands to a first device and a second device through a master control device to establish a wireless connection and display connection status information. The system supports management logic for multiple locations and rooms, and realizes the classification and control of smart home devices.
It simplifies the connection process between smart home devices, improves the user experience, enhances device management efficiency and communication quality, and supports smart home device management in multiple locations and rooms.
Smart Images

Figure CN115708390B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a device management system, method and master control device. Background Technology
[0002] Currently, in smart home scenarios, various smart electronic devices (such as mobile phones, televisions, speakers, refrigerators, air conditioners, robot vacuum cleaners, lights, etc.) can be connected together through Internet of Things (IoT) technology to form a smart home network.
[0003] In a smart home network, the device that acts as the master controller is called the master device, and the other devices are called smart home devices. The master device can intelligently manage and control each smart home device, such as controlling the TV to turn on / off, controlling speakers to play music, controlling the air conditioner to turn on / off, and controlling the robot vacuum cleaner to work. However, the master device can only control the smart home devices directly connected to it, and cannot control the connection between two smart home devices in the smart home network, resulting in a poor user experience. Summary of the Invention
[0004] This application provides a device management system, method, and master control device to solve the problem in the prior art that the master control device cannot control the connection relationship between two smart home devices in a smart home network.
[0005] To achieve the above objectives, this application adopts the following technical solution:
[0006] In a first aspect, embodiments of this application provide a device management system, including a master control device and a first device and a second device wirelessly connected to the master control device. The master control device is configured to, upon receiving a first user operation, send a connection instruction to the first device and / or the second device if the first device and the second device are not connected. The connection instruction is used to instruct the first device and the second device to establish a wireless connection. The first device and the second device are configured to establish a wireless connection according to the connection instruction.
[0007] In the system provided in this application embodiment, the master control device can establish connections between smart home devices in the local smart home network, which is easy to operate and has a good user experience.
[0008] In some embodiments, the first device and / or the second device are further configured to send a connection success notification to the master device after the wireless connection is successfully established. The master device is also configured to display connection status information of the first device and the second device, which includes the connection status of the first device and the second device, and at least one of device icon, device name, and device category.
[0009] In the system provided in this application embodiment, users can quickly understand the interconnected smart home devices in the smart home network through connection status information, which facilitates the management and use of smart home devices.
[0010] In some embodiments, the master control device displays a first icon for a first device and a second icon for a second device. The first user operation includes: operating a connection control, which is used to control the establishment of a wireless connection between the first device and the second device; or connecting the first icon and the second icon with a connection cable; or controlling the overlap of the first icon and the second icon; or clicking the first icon and the second icon sequentially. The first user operation provided in this embodiment is simple to execute and helps to improve the user experience.
[0011] In some embodiments, the master control device is configured to, after receiving a first user operation, send a connection instruction to the first device and / or the second device when the first device and the second device are not connected, including: after receiving the first user operation, when the first device and the second device are not connected, sending a first connection instruction to the first device and a second connection instruction to the second device according to the first user operation; wherein the target connection device indicated by the first connection instruction is the second device, and the target connection address carried is the address of the second device; the target connection device indicated by the second connection instruction is the first device, and the target connection address carried is the address of the first device.
[0012] The first device and the second device are configured to establish a wireless connection according to a connection instruction, including: establishing a wireless connection according to a first connection instruction and a second connection instruction.
[0013] In some embodiments, the first connection instruction further includes a connection mode of the first device; the second connection instruction further includes a connection mode of the second device; the connection modes of the first device and the second device are different. The connection mode is either a sending mode or a receiving mode. When the first device is in sending mode, it sends a connection request during the connection process with the second device. When the first device is in receiving mode, it receives the connection request during the connection process with the second device.
[0014] In some embodiments, when the first device is in a transmitting mode and the second device is in a receiving mode, the first connection instruction further includes a transmission delay T1 for the connection request, which indicates that the first device sends the connection request to the second device after receiving the first connection instruction T1 for a period of time; the second connection instruction further includes a reception delay T2 for the connection request, which indicates that the second device starts scanning the connection request after receiving the second connection instruction T2 for a period of time.
[0015] In this embodiment, the first device and the second device do not need to negotiate the connection mode during the connection establishment process. Furthermore, this method avoids connection conflicts or failures caused by both devices sending connection requests to each other or waiting to receive connection requests from the other, thus improving connection efficiency.
[0016] In some embodiments, the first connection instruction further includes at least one of the following: the strength of a signal transmitted from the first device to the second device, a frequency modulation / coding format level, and a beam direction; the second connection instruction further includes at least one of the following: the strength of a signal transmitted from the second device to the first device, a frequency modulation / coding format level, and a beam direction. The system provided in this embodiment can improve the communication quality between the first device and the second device, and increase the connection rate.
[0017] In some embodiments, the master control device is configured to, after receiving a first user operation, send a connection command to the first device and / or the second device when the first device and the second device are not connected, further comprising: after receiving the first user operation, determining a first signal strength and a second signal strength when the first device and the second device are not connected; and sending a connection command to the first device and / or the second device when both the first signal strength and the second signal strength are greater than or equal to a signal strength threshold. Wherein, the first signal strength is the strength of the detection signal emitted by the first device when it is received by the second device; and the second signal strength is the strength of the detection signal emitted by the second device when it is received by the first device.
[0018] In some embodiments, the master device is further configured to send a disconnect command to the first device and / or the second device after receiving a second user operation. The disconnect command instructs the disconnection of the wireless connection between the first device and the second device. The first device and the second device are configured to disconnect the wireless connection according to the disconnect command.
[0019] In the system provided in this application embodiment, the master control device can disconnect between smart home devices in the local smart home network, which is simple to operate and has a good user experience.
[0020] In some embodiments, the first device and / or the second device are further configured to send a disconnection notification to the master device after the wireless connection is lost. The master device is also configured to cancel the display of connection status information of the first device and the second device, including canceling the display immediately or canceling the display after a preset time.
[0021] In some embodiments, the second user operation includes: operating a disconnect control, which controls the disconnection of the wireless connection between the first device and the second device; or, cutting the connection line between the first icon of the first device and the second icon of the second device; or, moving the first icon and the second icon from an overlapping state to a separated state. The second user operation provided in this embodiment is easy to execute and helps improve the user experience.
[0022] Secondly, embodiments of this application provide a device management method applied to a master control device, which is connected to a first device and a second device respectively. The method includes: after obtaining a first user operation, if the first device and the second device are not connected, sending a connection instruction to the first device and / or the second device, wherein the connection instruction is used to instruct the first device and the second device to establish a wireless connection.
[0023] In some embodiments, after sending a connection instruction to the first device and / or the second device, the method further includes: receiving a connection success notification from the first device and / or the second device; and displaying connection status information of the first device and the second device, the connection status information including the connection status of the first device and the second device, and at least one of device icon, device name and device category.
[0024] In some embodiments, the master control device displays a first icon of a first device and a second icon of a second device. The first user operation includes: operating a connection control, which is used to control the establishment of a wireless connection between the first device and the second device; or; connecting the first icon and the second icon with a connection cable; or; controlling the first icon and the second icon to overlap; or; clicking the first icon and the second icon in sequence.
[0025] In some embodiments, sending a connection instruction to a first device and / or a second device according to the first user operation includes: sending a first connection instruction to the first device and a second connection instruction to the second device according to the first user operation. The first connection instruction indicates that the target connection device is the second device, and the target connection address it carries is the address of the second device; the second connection instruction indicates that the target connection device is the first device, and the target connection address it carries is the address of the first device.
[0026] In some embodiments, the first connection instruction further includes a connection mode of the first device; the second connection instruction further includes a connection mode of the second device; the connection modes of the first device and the second device are different. The connection mode is either a sending mode or a receiving mode. When the first device is in sending mode, it sends a connection request during the connection process with the second device; when the first device is in receiving mode, it receives the connection request during the connection process with the second device.
[0027] In some embodiments, when the first device is in transmit mode and the second device is in receive mode, the first connection instruction further includes a transmit delay T1 for the connection request, which indicates that the first device sends the connection request to the second device after receiving the first connection instruction for a period of time T1. The second connection instruction further includes a receive delay T2 for the connection request, which indicates that the second device begins scanning for the connection request after receiving the second connection instruction for a period of time T2.
[0028] In some embodiments, the first connection instruction further includes at least one of the following: the strength of a signal transmitted from the first device to the second device, a frequency modulation / coding format level, and a beam direction. The second connection instruction further includes at least one of the following: the strength of a signal transmitted from the second device to the first device, a frequency modulation / coding format level, and a beam direction.
[0029] In some embodiments, sending a connection command to a first device and / or a second device includes: determining a first signal strength and a second signal strength; and sending the connection command to the first device and / or the second device when both the first signal strength and the second signal strength are greater than or equal to a signal strength threshold. The first signal strength is the strength of the detection signal emitted by the first device when it is received by the second device; the second signal strength is the strength of the detection signal emitted by the second device when it is received by the first device.
[0030] In some embodiments, the method further includes: after receiving a second user operation, sending a disconnect command to a first device and / or a second device, the disconnect command being used to indicate disconnection of the wireless connection between the first device and the second device.
[0031] In some embodiments, after sending a disconnect command to the first device and / or the second device, the method further includes: receiving a disconnect notification sent by the first device and / or the second device; and canceling the display of connection status information of the first device and the second device.
[0032] In some embodiments, the second user operation includes: operating a disconnect control, the disconnect control being used to control the disconnection of the wireless connection between the first device and the second device; or, cutting off the connection line between the first icon of the first device and the second icon of the second device; or, moving the first icon and the second icon from an overlapping state to a separated state.
[0033] Thirdly, embodiments of this application provide a device management method applied to a master control device. The method includes: obtaining classification information of all smart home devices associated with the master control device, the classification information including the residence and room to which the smart home device belongs; and displaying device information of the smart home devices corresponding to each room in different rooms of the house structure diagram of the residence according to the classification information.
[0034] In the method provided in this embodiment, the main control device classifies and displays smart home devices in the smart home network according to the hierarchical relationship of multi-location and multi-room management logic: residence, house structure diagram of residence, room equipment set and smart home devices, which has a high user experience.
[0035] In some embodiments, in response to a user selecting a target room in the house layout diagram, a device set for that target room is displayed, which includes device information for all smart home devices within the target room. Using the method provided in this embodiment, users can quickly view device information for smart home devices in a target room (such as a bedroom).
[0036] In some embodiments, the device information includes at least one of the following: device name, device icon, and connection status with the host device.
[0037] In some embodiments, the method further includes: determining that a target device among the smart home devices associated with the master control device has moved from a first room to a second room; and updating the classification information of the target device to the second room.
[0038] In some embodiments, determining that the target device has moved from a first room to a second room includes:
[0039] The system detects that the icon of the target device moves from the area of the first room in the house structure diagram to the area of the second room. Alternatively, it detects that the icon of the target device moves from the category list of the first room to the category list of the second room. Alternatively, it detects that a first average value changes from being greater than a first threshold to being less than a second threshold, and a second average value changes from being less than the second threshold to being greater than the first threshold. Here, the first average value is the average strength of the detection signals received by each smart home device in the first room, and the second average value is the average strength of the detection signals received by each smart home device in the second room; the detection signals are sent by the target device. Alternatively, it detects that a third average value changes from being greater than the first threshold to being less than the second threshold, and a fourth average value changes from being less than the second threshold to being greater than the first threshold. Here, the third average value is the average strength of the detection signals sent by each smart home device in the first room when received by the target device; the fourth average value is the average strength of the detection signals sent by the smart home devices in the second room when received by the target device.
[0040] In some embodiments, the method further includes: establishing a wireless connection with a third device; determining a third room where a smart home device with the best communication quality with the third device is located; and identifying the third room as one of the classification information of the third device. The method provided in this embodiment can automatically determine the room where the third device is located.
[0041] In some embodiments, the method further includes: establishing a wireless connection with a third device; displaying a category selection box that includes all rooms set by the main control device; and, in response to a user's selection of a third room among all rooms, the main control device identifying the third room as one of the category information of the third device.
[0042] Fourthly, embodiments of this application provide a master control device configured to execute the device management method shown in the second aspect above.
[0043] Fifthly, embodiments of this application provide a master control device configured to execute the device management method shown in the third aspect above.
[0044] In a sixth aspect, embodiments of this application provide a chip system including a processor that executes a computer program stored in a memory to implement the device management method shown in the second aspect above.
[0045] In a seventh aspect, embodiments of this application provide a chip system including a processor that executes a computer program stored in a memory to implement the device management method shown in the third aspect above.
[0046] Eighthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the device management method shown in the second aspect above.
[0047] Ninthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the device management method shown in the third aspect above.
[0048] In a tenth aspect, embodiments of this application provide a computer program product comprising a program that, when executed by an electronic device, causes the electronic device to perform the device management method as described in the second aspect above.
[0049] Eleventhly, embodiments of this application provide a computer program product, the program product including a program that, when run by an electronic device, causes the electronic device to perform the device management method shown in the third aspect above.
[0050] It is understood that the beneficial effects of aspects two, four, six, eight, and ten above can be found in the relevant descriptions in aspect one above, and will not be repeated here. The beneficial effects of aspects five, seven, nine, and twelfth above can be found in the relevant descriptions in aspect three above, and will not be repeated here. Attached Figure Description
[0051] Figure 1 This is a schematic diagram of the structure of a smart home network provided in an embodiment of this application;
[0052] Figure 2 This is a schematic diagram of a multi-location, multi-room management logic provided in an embodiment of this application;
[0053] Figure 3A This is a schematic diagram of the management interface of a smart home network provided in one embodiment of this application;
[0054] Figure 3B This is a schematic diagram of the management interface of a smart home network provided in another embodiment of this application;
[0055] Figure 4 This is a schematic diagram showing the room equipment set provided in an embodiment of this application;
[0056] Figure 5A This is a schematic diagram of the process of adding smart home devices provided in the embodiments of this application. Figure 1 ;
[0057] Figure 5B This is a schematic diagram of the process of adding smart home devices provided in the embodiments of this application. Figure 2 ;
[0058] Figure 6A This is a schematic diagram of the classification and modification process of smart home devices provided in the embodiments of this application. Figure 1 ;
[0059] Figure 6B This is a schematic diagram of the classification and modification process of smart home devices provided in the embodiments of this application. Figure 2 ;
[0060] Figure 6C This is a schematic diagram (3) illustrating the classification and modification process of smart home devices provided in this application embodiment;
[0061] Figure 6D This is a schematic diagram of the classification and modification process of smart home devices provided in the embodiments of this application. Figure 4 ;
[0062] Figure 7 This is a flowchart illustrating the process of adding smart home devices according to an embodiment of this application;
[0063] Figure 8 This is a flowchart of a device management method provided in one embodiment of this application;
[0064] Figure 9A This is a schematic diagram illustrating the connection process between the first device and the second device according to an embodiment of this application;
[0065] Figure 9B This is a schematic diagram illustrating the connection process between the first device and the second device according to another embodiment of this application;
[0066] Figure 10 This is a flowchart of a device management method provided in another embodiment of this application;
[0067] Figure 11A This is a schematic diagram illustrating the disconnection process of the first and second devices provided in one embodiment of this application;
[0068] Figure 11B This is a schematic diagram of the disconnection process of the first device and the second device provided in another embodiment of this application;
[0069] Figure 12 This is a schematic diagram of the management interface provided in one embodiment of this application;
[0070] Figure 13 This is a schematic diagram showing the location of a smart home device provided in an embodiment of this application;
[0071] Figure 14 This is a flowchart of a device management method provided in another embodiment of this application;
[0072] Figure 15This is a schematic diagram of the query information provided in one embodiment of this application;
[0073] Figure 16 This is a flowchart of a device management method provided in another embodiment of this application;
[0074] Figure 17 This is a schematic structural diagram of a chip provided in one embodiment of this application. Detailed Implementation
[0075] The technical solutions provided in the embodiments of this application will be described below with reference to the accompanying drawings.
[0076] It should be understood that in the description of the embodiments of this application, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. The "and / or" in this document is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone.
[0077] In this embodiment, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this embodiment, unless otherwise stated, "a plurality of" means two or more.
[0078] With the development of computer technology, smart homes are being used more and more widely in people's lives. In a smart home scenario, various smart electronic devices can be connected together through Internet of Things (IoT) technology to form a smart home network.
[0079] Figure 1 This is a schematic diagram of a smart home network structure provided in an embodiment of this application. See also... Figure 1 As shown, electronic devices in a smart home network include a main control device and smart home devices. The main control device is typically a portable electronic device with a screen, such as a mobile phone or tablet, on which a smart home management application (e.g., a smart living application) is installed. The main control device plays a management and control role in the smart home network. Smart home devices are the objects managed and controlled by the main control device, such as televisions, speakers, headphones, air purifiers, refrigerators, air conditioners, robot vacuum cleaners, lights, cameras, routers, power strips, table lamps, humidifiers, sockets, smart door locks, water purifiers, treadmills, etc. This embodiment does not limit the specific types of main control devices and smart home devices.
[0080] In a smart home network, the main control device connects to each smart home device in a point-to-point manner, while the individual smart home devices may or may not connect to each other. The main control device can intelligently manage and control each smart home device, such as managing the addition and removal of smart home devices, and managing the classification information of smart home devices, such as the residence or room they belong to. In addition, the main control device can also control the working status of smart home devices, such as controlling the TV to turn on / off, controlling the air conditioner to turn on / off, controlling the speaker to play music, controlling the robot vacuum cleaner to work, and controlling the smart door lock to unlock.
[0081] In this embodiment, see Figure 2 As shown, the main control device supports multi-location, multi-room management logic, sequentially classifying and displaying smart home devices within the smart home network according to the following hierarchical relationships: residence, residence structure diagram, room device set, and smart home devices. Residence can include homes located in different geographical locations, such as residence 1 in city A, residence 2 in city B, and offices. The residence room structure diagram displays the spatial relationships between rooms in the residence, such as the master bedroom, living room, and kitchen. Each room corresponds to a room device set, which includes all smart home devices located within that room.
[0082] The following description uses a smart living application as an example to illustrate the management interface of the smart home network provided in this application embodiment.
[0083] Figure 3A This is a schematic diagram of the management interface of a smart home network provided in one embodiment of this application, which involves the main control device classifying and displaying smart home devices according to the management logic of multiple locations and multiple rooms.
[0084] See Figure 3A As shown in (a), after detecting user interaction with the smart home application, the main control device enters the smart home network management interface. This management interface includes a residence switching control and different options such as "All," "Category," and "Frequently Used." The residence switching control is used to display smart home devices in different residences within the management interface based on user instructions. The different options such as "All," "Category," and "Frequently Used" are used to display smart home devices in different ways, as detailed below.
[0085] See Figure 3AAs shown in (b), when the user selects Residence 1 using the residence switching control, the management interface of the main control device only displays the smart home devices within Residence 1. For example, the smart home devices within Residence 1 could be a robot vacuum cleaner, an air conditioner, and a router. Furthermore, the management interface also displays the smart home devices of Residence 1 under the "All," "Category," and "Frequently Used" options.
[0086] It should be noted that, in this embodiment, the main control device displaying smart home devices refers to displaying the device information of the smart home devices. This device information includes icons, names, network connection status (such as "online," "offline," etc.), and category information (such as "living room," etc.). For example, in this embodiment, "online|living room" in the air conditioner's device information indicates that the air conditioner is connected to the Internet normally and is located in the living room.
[0087] See Figure 3A As shown in (c), the main control device displays a residential management list in response to the user's operation of the residential switching control. This residential management list includes all of the user's residential properties, such as Residential 1, Residential 2, and Residential 3.
[0088] Optionally, the residential management list may also include a residential addition control, which is used to add new residential properties according to user instructions, such as adding residential property 4.
[0089] Optionally, in the residential management list, each residential unit corresponds to a management control. This control is used to manage the name of the corresponding residential unit, the creation, deletion, and naming of rooms within the unit, and the classification information of various smart home devices within the unit (such as the room they belong to). For example, after entering the interface corresponding to this management control, the main control device can move the room to which the robot vacuum cleaner belongs from "living room" to "master bedroom" based on user operation.
[0090] In response to the user's selection of the target residence, the main control device switches all smart home devices displayed in the management interface to the electronic devices in the target residence.
[0091] See Figure 3A As shown in (d), in response to the user's selection of "Residential 2" in the residential management list, the main control device displays the smart home devices within Residential 2 in the management interface. Under the "All" option in the management interface, the main control device displays all smart home devices within Residential 2. For example, the smart home devices within Residential 2 include speakers, a television, a router, and a projector.
[0092] See Figure 3AAs shown in (e), in response to the user's action on the "Category" option under Residence 2, the main control device displays smart home devices in conjunction with the house structure diagram of Residence 2, so that the user can understand the spatial relationships between the various rooms in the residence, as well as the correspondence between smart home devices and rooms. Based on this, the main control device can display the speakers, router, and projector belonging to the living room in the living room area of the house structure diagram, and the TV belonging to the master bedroom in the master bedroom area of the house structure diagram. In addition, when displaying the house structure diagram, the main control device can also adjust the size of the house structure diagram according to user commands for easier viewing.
[0093] It should be noted that, in this embodiment, the house structure diagram can be obtained by scanning with a robotic vacuum cleaner, generated by the main control device based on a floor plan image input by the user, or edited and determined by the user on the main control device. The house structure diagram can be a two-dimensional or three-dimensional diagram; this embodiment does not limit the method or form of determining the house structure diagram.
[0094] For example, when a user edits a house structure diagram on the main control device, the device can generate N zones according to the number N rooms in the residence, with each zone representing one room. The user can adjust the size and relative position of each zone to edit the house structure diagram.
[0095] See Figure 3A As shown in (f), in response to the user's operation of the "Frequently Used" option under Residence 2, the main control device displays the smart home devices that the user frequently uses in Residence 2, such as the projector located in the living room.
[0096] It should be noted that, in various embodiments of this application, user operations on a control, icon, or option include single-clicking, double-clicking, long-pressing, pressing with gravity, clicking with a mouse, etc.
[0097] In this embodiment, the main control device displays only one smart home device in a residence on the same management interface according to the management logic of multiple locations and multiple rooms. This makes it easier for users to manage smart home devices in different residences, improves device management efficiency, and enhances user experience.
[0098] Figure 3B This is a schematic diagram of the management interface of a smart home network provided in another embodiment of this application, which involves the main control device classifying and displaying smart home devices according to the management logic of multiple locations and multiple rooms.
[0099] See Figure 3BAs shown in (a), after detecting user interaction with the smart home application, the main control device enters the smart home network management interface. This management interface has different options such as "All," "Category," and "Frequently Used" to display smart home devices in different ways. See below for details.
[0100] See Figure 3B As shown in (b), under the "All" option in the management interface, the main control device displays all smart home devices in all of the user's residences. For example, the robot vacuum cleaner, air conditioner, and router in the living room of residence 1, and the speaker, router, TV, and projector in residence 2.
[0101] For example, the "Online|Living Room|Residential 2" in the device information of the television indicates that the television is connected to the Internet normally and is located in the living room of Residential 2.
[0102] See Figure 3B As shown in (c), under the "Category" option in the management interface, the main control device can categorize smart home devices according to the residence they belong to. For smart home devices belonging to the same residence, the main control device can further categorize them based on the house structure diagram. Taking residence 1 as an example, if residence 1 includes a robot vacuum cleaner and a router located in the living room, and an air conditioner located in the master bedroom, the main control device can display the names and / or icons of the robot vacuum cleaner and router in the living room area of the house structure diagram, and the name and / or icon of the air conditioner in the master bedroom area of the house structure diagram. In addition, it can also display information such as whether the smart home devices are online.
[0103] It should be noted that, in this embodiment, the specific method and form of determining the house structure diagram can be found in the preceding description, and will not be repeated here.
[0104] See Figure 3B As shown in (d) of the diagram, under the "Category" option in the management interface, the main control device can also switch the display of smart home devices in Residence 2 according to user commands. For example, if Residence 2 includes speakers, a router, and a projector in the living room, and a television in the master bedroom, the main control device can display the names and / or icons of the speakers, router, and projector in the living room area of the house plan, and the name and / or icon of the television in the master bedroom area of the house plan. Furthermore, it can also display information such as whether the smart home devices are online.
[0105] See Figure 3BAs shown in (e), under the "Frequently Used" option in the management interface, the main control device can display the smart home devices that the user has recently used in Residence 2 (hereinafter referred to as frequently used devices). These frequently used devices can be those in Residence 1 or those in Residence 2. The number of these frequently used devices can be one or more, depending on the pre-configuration of the main control device.
[0106] In addition, regarding Figure 3A and Figure 3B The house structure diagram shown in the diagram, in response to user selection operations on rooms (such as single-click, double-click, long-press, etc. on a blank area or room name, this embodiment does not limit this), allows the main control device to display the device set for that room on the management interface. This device set includes all smart home devices in the room. Figure 4 Taking (a)-(b) as an example, in response to a user's double-click operation on a blank area of the living room in the house structure diagram of Residential 2, the main control device displays the device set of the living room. The device set includes a projector, a router, and speakers.
[0107] In this embodiment, the main control device classifies the smart home devices of each residence displayed on the same management interface according to their respective residences and rooms, based on the management logic of multiple locations and multiple rooms. This makes it easier for users to manage smart home devices in different residences, improves device management efficiency, and enhances user experience.
[0108] The following is an exemplary description of the process of adding smart home devices to a smart home network.
[0109] Figure 5A This is a schematic diagram illustrating the process of adding smart home devices according to an embodiment of this application, involving the main control device in... Figure 3A The process of adding smart home devices to a target residence (such as residence 2) according to user instructions is shown in the management interface of the smart home network.
[0110] See Figure 5AAs shown in (a)-(f), taking the addition of smart home devices to residence 2 as an example, when the management interface of the main control device is the management interface of residence 2, the main control device displays an option list in response to the user's operation of adding controls. For example, this option list includes options such as "Add Device," "Create Scene," "Share Device," and "Connect to Third-Party Platform." In response to the user's operation of the "Add Device" option, the main control device searches for nearby smart home devices. Taking the smart home device found by the main control device as a television as an example, the main control device displays the television's icon, name, and controls such as "Connect," "Rescan," "Manual Add," and "Add by Scan." In response to the user's operation of the "Connect" control, the main control device connects to the television. After a successful connection, the main control device displays the television's device information on the management interface of residence 2.
[0111] In some embodiments, newly added devices in a residence are typically classified as belonging to the living room by default, and users can change the device classification in the current residence's management interface according to their own needs.
[0112] In other embodiments, see Figure 5B As shown in (a), after the main control device establishes a connection with the newly added smart home device (hereinafter referred to as the new device), it can display a category selection box for the user to select the category of the new device. This category selection box includes all category options within Residence 2, such as "Living Room," "Master Bedroom," and "Secondary Bedroom," as well as a "Confirm" control. See also Figure 5B As shown in (b), in response to the user selecting "Living Room" on the main control device and performing an operation on the "Confirm" control, the main control device will classify the newly added device as "Living Room" within Residential 2.
[0113] Optionally, before displaying the category selection box, the main control device can also control the newly added device to scan and report the signal strength of other added smart home devices (hereinafter referred to as existing devices) within Residence 2. It should be understood that, generally, the closer the new device is to an existing device, the stronger the signal strength detected from that existing device. Based on this, the main control device can determine the average signal strength of existing devices in each room according to these signal strengths, and display the names of each room from top to bottom in the category selection box, in descending order of this average value, for the user to select.
[0114] It should be noted that after the main control device determines the category of the newly added device, it needs to send its category information (i.e., the room identifier) to the target device.
[0115] Similarly, when the management interface of the main control device is as follows: Figure 3A When showing the management interface of Residential 1, the main control device can also be found... Figure 5AThe device addition process shown describes how smart home devices are added to residence 1 according to user instructions. This embodiment will not be described in detail here.
[0116] In addition, when the main control device is in such Figure 3B When adding smart home devices to the smart home network in the management interface shown, the main control device can also refer to... Figure 5A and 5B The illustrated process adds a new smart home device. However, unlike the device addition process shown above, because this management interface manages electronic devices in all of the user's residences simultaneously, newly added smart home devices on the main control device are typically in a default location (e.g., in the living room of residence 1). Users can change the device's category in the management interface as needed, for example, moving the device from the living room of residence 1 to the master bedroom of residence 2.
[0117] In some embodiments, after connecting a new device, the master control device can request the new device to report device identifiers in its surrounding environment and determine the residence where the new device is located based on the device identifiers. For example, if the new device detects device identifiers of surrounding devices that match the device identifier of the projector in residence 2, it indicates that the smart home device is located in residence 2. After adding the smart home device, the master control device will identify it as a device in residence 2.
[0118] In other embodiments, the master device may assign a motion control to each smart home device to change the category of that smart home device. For example, see... Figure 6A As shown in (a)-(b), in response to a user's action on the device icon of a target mobile device (e.g., a TV in the living room), the electronic device can display a device movement box containing a prompt, selectable room categories, and a confirmation control. Taking the target mobile device as the TV in the living room as an example, the prompt could be: Move the "TV" icon from the living room to the desired location; the selectable room categories could be: Master Bedroom and Secondary Bedroom. In response to the user's action on the "Confirm" control when the master bedroom is selected on the main control device, the main control device updates the category of the newly added device to "Master Bedroom".
[0119] In some other embodiments, see Figure 6B As shown in (a)-(b) of the diagram, in a house layout diagram, a user can drag a target device from the current room to another room by dragging the device icon, thereby changing the room category of the target device. For example, after the main control device detects that the user has dragged the speaker icon located in the living room to the master bedroom, it updates the speaker's category from "living room" to "master bedroom".
[0120] In some other embodiments, see Figure 6CAs shown in (a)-(d), the main control device displays a residential management list in response to user actions on the management controls. This list includes options such as "Residential Name," "Category Management," and "Family Groups." In response to user actions on the "Category Management" option, the main control device displays a category list, including categories such as "Living Room," "Master Bedroom," and "Kitchen." Each category displays the number of smart home devices and their icons. In response to the user dragging the icon of a target device (such as a speaker) from the category 1 area to the category 2 area in the category list, the main control device changes the target device's category from category 1 to category 2. For example, in response to the user dragging the speaker icon from the living room area to the master bedroom area in the category list, the main control device changes the target device's category from living room to master bedroom.
[0121] In some other embodiments, see Figure 6D As shown in (a)-(e), in the category list, in response to a user's action on the target device (e.g., a long press), the main control device displays a cut control. In response to the user's action on the cut control, the main control device cuts the target device's icon into the clipboard. In response to a user's action on a blank area of the target category (e.g., a long press), the main control device displays a paste control. In response to the user's action on the paste control, the main control device moves the target device's category to that target category (e.g., the master bedroom) and displays the target device's icon under the master bedroom category. Optionally, in Figure 6D In section (d), the cut control and delete control may not be included in the control list.
[0122] It should be noted that in various embodiments of this application, after the master control device changes the classification of the target device according to the user's instructions, it needs to send the new classification information to the target device.
[0123] Figure 7 This is a flowchart illustrating the process of adding smart home devices according to an embodiment of this application, involving the process of the main control device actively scanning and adding smart home devices. Specifically, it includes the following steps.
[0124] S701, basic information broadcast by smart home devices.
[0125] In some embodiments, smart home devices (such as televisions) can periodically broadcast their basic information via Bluetooth or a local area network after being powered on. In other embodiments, smart home devices broadcast their basic information only under preset conditions; for example, some Bluetooth headsets only broadcast their basic information after the headset is opened or removed from its case.
[0126] In response to a device addition operation, the S702 master device scans the basic information of the smart home device.
[0127] In this embodiment, the device addition operation can be Figure 5A The operation of adding a control shown in (a) can be a voice control command issued by the user (such as the voice "scan device") or a control gesture. This embodiment does not limit the specific form of the device addition operation.
[0128] Basic information about smart home devices includes device identification (ID) and device address. Optionally, this basic information may also include connectivity auxiliary information, such as device type (e.g., TV, air conditioner, robot vacuum cleaner), encryption method, frequency hopping mode, time and frequency information, command reception period T, supported wireless connection types, connection mode, device input / output status, and power connection status. The command reception period T refers to the time interval at which the smart home device scans and receives new control commands from the master control device.
[0129] The wireless connection types supported by the device may include at least one of the following technologies: Bluetooth (BT) connection, wireless fidelity (WiFi) connection, ultra-wide band (UWB) connection, or near field communication (NFC) connection.
[0130] Smart home devices have two connection modes: a sending mode and a receiving mode. In sending mode, the smart home device actively sends connection requests when establishing a connection with other smart home devices. In receiving mode, the smart home device waits to receive connection requests during the connection establishment process, without actively sending connection requests to other devices.
[0131] Input / output status refers to whether the smart home device supports inputting information via devices such as a mouse, keyboard, or screen, and whether it supports outputting information via devices such as a screen or speaker.
[0132] Power connection status refers to whether the smart home device is currently connected to a power source.
[0133] It should be noted that in this embodiment, S701 can be executed first, followed by S702; or S702 can be executed first, followed by S701. This embodiment does not impose any restrictions on this.
[0134] S703: The main control device displays the device scan results based on the basic information of the smart home devices.
[0135] In this embodiment, taking a television as an example, the scan result can be as follows: Figure 5AAs shown in (d), the scan results include the icons, names, and "connect" controls for smart home devices. Optionally, the scan results may also include the model numbers of the smart home devices.
[0136] S704: In response to a user-triggered connection to a smart home device, the main control device broadcasts a connection command to the smart home device.
[0137] For example, see Figure 5A As shown in (d), the operation of connecting smart home devices can be a user action on the "Connect" control. This connection instruction is used to notify the smart home devices to establish a connection with the host device. For example, the connection instruction includes at least the host device's identification information, such as an Internet Protocol (IP) address or a Media Access Control (MAC) address.
[0138] S705: Smart home devices establish a connection with the main control device.
[0139] S706: After a smart home device successfully connects to the main control device, it sends a connection success notification to the main control device.
[0140] It should be noted that the connection assistance information of smart home devices may not be included in the basic information shown in S701. Instead, the smart home device may send the connection success notification to the main control device after the smart home device has successfully connected to the main control device, or it may be sent to the main control device separately.
[0141] Optionally, smart home devices may also send a portion of the connection assistance information (such as device type) to the master device in the basic information shown in S701; and after the smart home device successfully connects to the master device, it may send the remaining portion of the connection assistance information to the master device in a connection success notification, or send it to the master device separately.
[0142] After receiving a successful connection notification, the S707 main control device displays the device information of the smart home device on the management interface.
[0143] For example, taking a television as an example of a smart home device connected to the main control device, see [link to relevant documentation]. Figure 5A As shown in (f), the main control device displays the TV's device information in the smart home network management interface. Taking the added smart home device as a TV as an example, the device information includes the TV's icon, name, network connection status "online", and category "living room".
[0144] In summary, through the S701-S707 process, the main control device can add smart home devices to the smart home network, making the operation simple and quick for users.
[0145] In other embodiments, smart home devices (such as Bluetooth headsets) can also proactively request to connect to a host device (such as a mobile phone) through proximity discovery or other methods. After establishing a connection with the smart home device, the host device can automatically add it to the smart home network.
[0146] In a smart home network, the master control device can manage and control the smart home device management device. However, the master control device only supports controlling the smart home devices directly connected to it, and cannot control the connection relationship between two smart home devices in the smart home network. For example, in... Figure 1 In the smart home network shown, the mobile phone can only control the TV and speaker individually, but cannot control the connection between the TV and speaker, resulting in a poor user experience.
[0147] Therefore, this application provides a device management method that enables a master control device to manage the connection relationships between multiple smart home devices in a smart home network.
[0148] Figure 8 This is a flowchart of a device management method provided in one embodiment of this application, involving the process of a master control device controlling a first smart home device (hereinafter referred to as the first device or device 1) to establish a connection with a second smart home device (hereinafter referred to as the second device or device 2). The following description uses a speaker as the first device and a television as an example to illustrate the device management method provided in this embodiment. The first device and the second device have already established connections with the master control device, but no connection has been established between the first device and the second device.
[0149] S801, the main control device obtains the first user operation.
[0150] In this embodiment, the first user operation is used to control the connection between the first device and the second device. This first user operation can take many forms, and this embodiment does not limit it.
[0151] In some embodiments, see Figure 9A As shown in (a), under the "Category" option in the management interface, the main control device displays the icons of smart TV devices in their respective rooms based on the house structure diagram. This can include a first icon for a first device and a second icon for a second device. Therefore, the first user operation can be the user dragging the first icon so that it overlaps with the second icon.
[0152] In other embodiments, in the management interface, after the main control device detects that the user has clicked the first icon and the second icon consecutively, it confirms that the user has entered the first user operation. Optionally, the user's operation of clicking the first icon and the second icon consecutively needs to be completed within a preset time (e.g., within 1 second).
[0153] In some other embodiments, in the management interface, after the main control device detects that the user has connected the first icon and the second icon together via a connecting cable, it confirms that the user has entered a first user operation. Optionally, in this embodiment, the user can long-press the first icon or the second icon to trigger the main control device to start displaying the connecting cable according to the user's touch trajectory during this touch process.
[0154] In other embodiments, see Figure 9B As shown in (a), under the "Category" option in the management interface, the main control device also displays a device connection control box. This device connection control box includes a first selection control, a second selection control, and a confirm control. For example, a user can drag a first icon to the area containing the first selection control to select the first device as the device to be connected. Similarly, a user can drag a second icon to the area containing the second selection control to select the second device as the device to be connected. The confirm control is used to reconfirm the user's selection of the first and second devices. Therefore, the first user action could be the user clicking the confirm control after selecting the first and second devices.
[0155] Furthermore, smart home devices come in different types; some devices support connectivity with each other, while others do not. For example, speakers and TVs typically support connectivity, as do speakers and projectors, but robot vacuums and refrigerators may not. Therefore, optionally, after detecting the first user input, the main control device can first detect the device types between the first and second devices to determine whether connectivity is supported. If connectivity is not supported, a prompt message, such as "Device does not support connectivity," is displayed. If connectivity is supported, the process continues to the next step, S802.
[0156] S802, the master control device sends the first connection command to the first device.
[0157] S803, the master control device sends a second connection command to the second device.
[0158] The master control device typically controls the establishment of a connection between the first and second devices when no connection has been established between them. Therefore, before sending the first connection command to the first device and the second connection command to the second device, the master control device can first determine the connection relationship between the first and second devices.
[0159] In one possible implementation, the master control device can send a query notification to the first device to query the device information of the electronic devices connected to the first device. If the information includes the device information of the second device, it indicates that a connection has been established between the first device and the second device, and the master control device skips S802-S806 and directly executes S807. If the device information does not include the device information of the second device, it indicates that a connection has not been established between the first device and the second device, and the master control device continues to execute S802-S807.
[0160] Alternatively, the master control device can send a query notification to the second device to query the device information of the electronic device connected to the second device. If the information includes the device information of the first device, it indicates that a connection has been established between the first and second devices, and the master control device skips S802-S806 and directly executes S807. If the device information does not include the device information of the first device, it indicates that a connection has not been established between the first and second devices, and the master control device continues to execute S802-S807.
[0161] In this embodiment, the first connection instruction is used to instruct the first device to establish a connection with the second device, including the device ID, address, and connection method (e.g., Bluetooth connection or WiFi connection) of the second device. The second connection instruction is used to instruct the second device to establish a connection with the first device, including the device ID, address, and connection method (e.g., Bluetooth connection or WiFi connection) of the first device. Since the master control device has already established connections with the first device and the second device respectively, the master control device can directly send the first connection instruction and the second connection instruction based on the existing connections.
[0162] Optionally, when both the first device and the second device support cellular communication technology, the master control device can send a first connection command to the first device through a network device (e.g., a base station) to which the first device is connected. The master control device can also send a second connection command to the second device through a network device (e.g., a base station) to which the second device is connected, in order to remotely control the connection relationship between the first device and the second device.
[0163] Optionally, when the first device and the second device support multiple communication technologies, the main control device can detect the signal strength of the first device and the second device under various communication methods, and select a communication technology to communicate with the first device and the second device based on the signal strength.
[0164] This embodiment does not restrict the execution order of S802 and S803. That is, the main control device can execute S802 first and then S803, or it can execute S803 first and then S802.
[0165] Optionally, the first connection instruction also includes the connection mode of the first device, that is, whether the first device acts as the transmitter or receiver of the connection request during the connection establishment process between the first device and the second device. The second connection instruction also includes the connection mode of the second device, that is, whether the second device acts as the transmitter or receiver of the connection request during the connection establishment process between the second device and the first device. It should be understood that if the connection mode of the first device is transmitter mode, then the connection mode of the second device is receiver mode.
[0166] In this embodiment, the master control device can determine the connection mode reported by the first device as the connection mode in the first connection command, and determine the connection mode reported by the second device as the connection mode in the second connection command. However, when the connection modes reported by the first device and the second device are the same, connection failure or connection conflict may occur.
[0167] Therefore, in one possible implementation, the main control device can set the smart home device with higher priority among the first and second devices to transmit mode according to a preset priority. For example, this priority can decrease sequentially as follows: mobile phone, tablet, large-screen device, watch / band, headphones / speaker, and other devices without input / output capabilities. In one example, when the first device is a speaker and the second device is a television, the main control device can set the television's connection mode to transmit mode and the speaker's connection mode to receive mode.
[0168] Optionally, when the first device and the second device have the same priority, the master control device can determine the connection mode of the device with higher battery level or the device connected to a power source as the transmission mode. For example, when the master control device controls smartwatch 1 to connect to smartwatch 2, if smartwatch 1 has a higher battery level than smartwatch 2, the master control device will determine the connection mode of smartwatch 1 as the transmission mode.
[0169] The master control device can also configure the transmission delay T1 and reception delay T2 of the connection request to specify the sending and receiving times of the connection request. Taking the first device's connection mode as transmission mode and the second device's connection mode as reception mode as an example, the master control device can configure the transmission delay T1 of the connection request in the first connection command and the reception delay T2 of the connection request in the second connection command. For example, when T1 = 1 second, the first device sends a connection request to the second device 1 second after receiving the first connection command. When T2 = 500 milliseconds, the first device begins scanning for connection requests sent by the second device 500 milliseconds after receiving the first connection command.
[0170] The method provided in this embodiment eliminates the need for the first device and the second device to negotiate the connection mode during the connection establishment process. Furthermore, this method avoids connection conflicts or failures caused by both devices sending connection requests to each other or waiting to receive connection requests from the other, thus improving connection efficiency.
[0171] Optionally, after detecting the first user's operation, the main control device can determine the number of walls between the first and second devices based on the building structure diagram. If the number of walls between the first and second devices is greater than or equal to a preset value (e.g., 2), the main control device can display a query message to ask the user whether to connect the first and second devices. Taking a speaker as the first device and a television as an example, the query message could be: "The speaker you selected is far from the television. Do you want to confirm the connection?" After detecting the user's confirmation of the connection, the main control device will then execute steps S802 and S803.
[0172] Optionally, after detecting the first user operation, the master control device can control the first and second devices to emit detection signals of the same specification (e.g., 20 dBm), and detect the strength of the detection signal received locally from the other party. In this embodiment, the strength of the detection signal received by the first device from the second device is referred to as the second signal strength; the strength of the detection signal received by the second device from the first device is referred to as the first signal strength.
[0173] When both the first and second signal strengths are greater than or equal to the signal strength threshold, the main control device continues to execute S802 and S803. When either the first or second signal strength is less than the signal quality threshold, the main control device can display an inquiry message to ask the user whether to connect the first and second devices. Taking a speaker as the first device and a television as an example, the inquiry message could be: "The signal quality between the speaker and the television is poor. Confirm connection?" After detecting the user's confirmation of connection, the main control device executes S802 and S803 again.
[0174] Optionally, the main control device can also guide the first and second devices in signal transmission specifications during communication, such as signal strength, frequency, modulation / coding format level, and signal beam direction, based on the first signal strength and the second signal strength, through the first connection command and the second connection command, combined with the detection signal, so as to improve the communication quality of the first and second devices.
[0175] The detection signal will experience loss during transmission. In this embodiment, the link through which the first device sends data to the second device is called the first link, and the loss of the detection signal during transmission through the first link is called the first link loss. The link through which the second device sends data to the first device is called the second link, and the loss of the detection signal during transmission through the second link is called the second link loss. It should be noted that this link loss includes not only the loss of the detection signal during transmission but also the loss caused by the antenna during reception at the receiving end.
[0176] For example, if the strength of the detection signals emitted by the first device and the second device is both 20 dBm, but the strength of the first signal is -103 dBm with a direction angle of 60 degrees, and the strength of the second signal is -100 dBm with a direction angle of -120 degrees, then the first link loss is 3 dBm greater than the second link loss, indicating an imbalance in the bidirectional link between the first and second devices. This may cause the first device to receive messages sent by the second device normally during the link establishment process, while the second device may need to increase its power to retry the connection due to the greater second link loss and its signal strength falling below the decoding threshold, resulting in a link establishment delay. Here, the direction angle refers to the angle at which the detection signal is strongest.
[0177] Therefore, the master control device can control the first device to increase its signal transmission strength through the first connection command. For example, the master control mobile phone can instruct the first device to transmit at a power of 20dBm in a -120-degree direction, while commanding the second device to transmit at a power of 23dBm in a 60-degree direction, ensuring that the transmitted radio waves of both parties are aligned and that the signal strength received by both parties is consistent, thus enabling successful link establishment on the first attempt.
[0178] In this embodiment, the first device and the second device may also report their cellular signal strength and WiFi signal strength to the master control device at preset time intervals (e.g., 3 seconds). The master control device comprehensively determines the wireless connection method between the master control device and the first device or the second device based on the cellular signal strength and WiFi signal strength of the first device and the second device, as well as the cellular signal strength and WiFi signal strength of the master control device.
[0179] Optionally, the first and second connection instructions may also include the wireless connection method between the first and second devices, such as WiFi connection or Bluetooth connection. When the first and second devices simultaneously support multiple wireless connection technologies, such as simultaneously supporting WiFi connection and Bluetooth connection, the master control device can control the first and second devices to detect each other's WiFi signal strength and Bluetooth signal strength. The master control device can select the wireless connection method with better communication quality based on the signal detection results.
[0180] Optionally, when both WiFi and Bluetooth connections are supported between the first device and the second device, the active device can define in the first and second connection instructions that the first device and the second device can quickly establish a connection via Bluetooth and quickly transmit service data via WiFi. The method provided in this embodiment improves both the connection efficiency of the first device and the second device and the transmission rate of service data between them.
[0181] Optionally, the first connection command and the second connection command may also include first indication information. This first indication information is used to instruct the first device and the second device to report their own status information, such as battery level, temperature, signal strength, etc., to the master control device at preset intervals (e.g., 5 seconds) so that the user can view it.
[0182] Optionally, the first connection instruction and the second connection instruction may also include a number of retry connection attempts, which refers to the number of times the first device and the second device attempt to connect again after the first connection fails, such as 3 times.
[0183] Optionally, the first and second connection instructions may also include retry connection methods, such as whether to establish a connection via WiFi after the first and second devices have connected via Bluetooth, or whether to establish a connection via Bluetooth after WiFi connection fails.
[0184] It should be noted that in some other embodiments, when the wireless connection function of the second device is enabled (e.g., Bluetooth or WiFi is enabled), the main control device may only execute S802 and not S803. Based on this, after receiving the first connection command, the first device, as the transmitter, sends a connection request to the second device according to the first connection command, and negotiates with the second device to establish a wireless connection.
[0185] Alternatively, if the wireless connectivity of the first device is enabled (e.g., Bluetooth or WiFi is on), the main control device can execute only S803 without executing S802. Based on this, after receiving the second connection command, the second device, as the transmitter, sends a connection request to the first device according to the second connection command, and negotiates with the first device to establish a wireless connection.
[0186] S804, the first device and the second device establish a wireless connection.
[0187] After receiving the first connection instruction and the second connection instruction respectively, the first device and the second device establish a wireless connection according to the information indicated by the first connection instruction and the second connection instruction.
[0188] See Figure 9A (b) or Figure 9BAs shown in (b), during the connection establishment process between the first and second devices, the master control device can highlight the device information of the first and second devices (such as icons, names, assigned rooms, etc.) and display the connection status as "Connecting," so that the user can understand the connection progress. For example, the master control device can display the device information of the first and second devices at the top of the management interface. In addition, the master control device can also display a cancel control to control the cancellation of the connection being established between the first and second devices.
[0189] S805, the first device sends a first connection success notification to the master control device.
[0190] S806, the second device sends a second connection success notification to the master device.
[0191] Both the first connection success notification and the second connection success notification are used to indicate that the wireless connection between the first device and the second device has been successfully established. In this embodiment, both the first device and the second device can notify the master device that the connection has been successfully established; therefore, this embodiment does not restrict the execution order of S805 and S806.
[0192] Of course, either the first device or the second device can notify the master device of a successful connection. For example, the master device can also send a second indication message to either the first or the second device, which instructs the receiving device to send a connection success notification to the master device. For instance, if the master device sends a second connection command to the second device while simultaneously sending the second indication message, then the second device will subsequently send a second connection success notification to the master device.
[0193] S807, the main control device displays the connection status information of the first and second devices.
[0194] After receiving the first connection success notification and the second connection success notification respectively, the master control device considers the first device and the second device to be successfully connected. Subsequently, the master control device displays the connection status information of the first device and the second device on the management interface.
[0195] For example, see Figure 9A (c) or Figure 9B As shown in (c), the connection status information indicates the current connection status between the first device and the second device, including device information of the first device and the second device, as well as icons for the first and second devices and a connecting line between them. The connection status information may also include a disconnect control for controlling the disconnection of the connection between the first and second devices.
[0196] When the first and second devices are successfully connected, the main control device highlights the connection line between the first and second devices, for example, by highlighting it, or by displaying characters or patterns indicating a successful connection on the connection line.
[0197] Optionally, after the first and second devices establish a connection, the master device can record and display the duration of this connection in the connection status information to improve user experience. When the connection is lost, the duration statistics automatically end.
[0198] Optionally, after the first device and the second device establish a connection, the main control device can also display the connection method between the first device and the second device, such as Bluetooth connection or WiFi connection.
[0199] In summary, the method provided in this embodiment enables the main control device to establish connections between smart home devices in a local smart home network, which is simple to operate and provides a good user experience.
[0200] When a wireless connection exists between the first and second devices, the master control device can also control the disconnection of that connection. The following section combines... Figure 10 Let's explain it in detail. It's worth noting that... Figure 10 In the illustrated embodiment, a wireless connection exists between the first device and the second device, which can be a reference connection between the master control device and the second device. Figure 8 The wireless connection is established in the manner shown, but of course, it can also be established in other ways, and this application does not limit this.
[0201] Figure 10 This is a flowchart of a device management method provided in another embodiment of this application, which involves the process of a master control device controlling a first device to disconnect from a second device.
[0202] S1001, the main control device determines to disconnect the wireless connection between the first device and the second device.
[0203] For example, S1001 can be implemented as follows: if the master control device detects a second user operation, it determines to disconnect the wireless connection between the first device and the second device. In this embodiment, the second user operation is used to control the disconnection of the current wireless connection between the first device and the second device.
[0204] In some embodiments, see Figure 11A As shown, the second user operation can be the user's operation of the disconnect control in the connection status information of the management interface. That is, by operating this disconnect control, the user can control the disconnection of the current wireless connection between the TV and the speakers.
[0205] In other embodiments, see Figure 11BAs shown, the second user operation can be a user's action to disconnect the connection line between the first and second devices in the connection status information. That is, when the main control device detects that the user's touch trajectory intersects with the connection line between the first and second devices, it determines that it has obtained the second user operation.
[0206] In some other embodiments, the first user operation corresponds to controlling the first icon of the first device to overlap with the second icon of the second device, and the second user operation may be controlling the first icon and the second icon to separate.
[0207] S1002, the main control device sends the first disconnect command to the first device.
[0208] S1003, the main control device sends a second disconnect command to the second device.
[0209] In this embodiment, both the first disconnect command and the second disconnect command are used to instruct the disconnection of the wireless connection between the first device and the second device. The master control device may execute S1002 first and then S1003; or it may execute S1003 first and then S1002; or it may execute only one of S1002 and S1003. This embodiment does not impose any restrictions on this.
[0210] S1004, the first and second devices disconnected wirelessly.
[0211] S1005, the first device sends a first disconnection notification to the main control device.
[0212] S1006, the second device sends a second disconnection notification to the main control device.
[0213] In this embodiment, both the first disconnect notification and the second disconnect notification are used to notify the master control device that the connection between the first device and the second device has been disconnected. This embodiment does not restrict the order in which S1005 and S1006 are executed; that is, S1005 can be executed first, followed by S1006, or vice versa. It is worth noting that if the master control device executes S1002, the first device sends the first disconnect notification to the master control device. If the master control device executes S1003, the second device sends the second disconnect notification to the master control device. Of course, if the master control device executes S1002 and S1003, it can also send a third indication message to either the first device or the second device. This third indication message instructs the receiving device to send a disconnect notification to the master control device. For example, if the master control device sends the second disconnect instruction to the second device while simultaneously sending the third indication message, then the second device will subsequently send the second disconnect notification to the master control device. In this case, the process of the first device sending a second disconnection notification to the master device is eliminated.
[0214] Of course, in this embodiment, besides receiving the first disconnection notification / second disconnection notification, the master control device can also determine that the connection between the first device and the second device has been disconnected through other means. For example, if the active device does not receive feedback from the first device within a preset time after sending the first disconnection command, it determines that the connection between the first device and the second device has been disconnected. In this implementation, the master control device, the first device, and the second device can negotiate that if either the first device or the second device does not respond within a preset time after receiving the disconnection command, the connection between the first device and the second device is considered to have been disconnected.
[0215] It should be understood that the master control device can determine that the connection between the first device and the second device has been broken upon receiving either the first disconnection notification or the second disconnection notification.
[0216] S1007, the main control device cancels the display of connection status information.
[0217] Optionally, after the connection between the first device and the second device is broken, the main control device may immediately cancel the display of the connection status information, or it may cancel the display of the connection status information after a preset time (e.g., 10 minutes). During this preset time, the connection status information will show the connection status between the first device and the second device as "disconnected".
[0218] After the connection between the first and second devices is broken, see Figure 12 As shown in (a) and (b) in the management interface, the master control device can display it as a "common" option under "common connections" and configure a connection control next to the common connection. The connection control is used to control the reconnection of the first device and the second device.
[0219] The device management method provided in this embodiment allows the main control device to control the disconnection between two interconnected smart home devices locally, which is simple to operate and provides a good user experience.
[0220] In a smart home network, smart home devices may move, for example, a speaker in the living room might be moved to the master bedroom, or headphones might be moved from the living room to the master bedroom. In this embodiment, when the location of a smart home device changes within the residence, the main control device can automatically update the device's category. For example, when headphones are moved from the living room to the master bedroom, the main control device can display the headphone icon in the master bedroom area on the house layout diagram, changing the headphone's room category from "living room" to "master bedroom".
[0221] In some embodiments, the master control device can control the target device to broadcast a detection signal and control other smart home devices to detect and report the strength of the received detection signal. Based on the strength of the detection signal reported by the smart home devices, the master control device can determine the average strength of the detection signal received by the smart home devices in each room of the smart home network. This average value includes a first average strength of the detection signal received by the smart home devices in the first room and a first average strength of the detection signal received by the smart home devices in the second room. When the first average value changes from being greater than a first threshold to being less than a second threshold, and the second average value changes from being less than the second threshold to being greater than the first threshold, it is determined that the target device has moved from the first room to the second room, wherein the first threshold is greater than the second threshold. Subsequently, the master control device updates the classification of the target device to the second room. The following is in conjunction with... Figure 13 The diagram showing the location of smart home devices illustrates the method provided in the embodiments of this application.
[0222] Figure 13 This is a schematic diagram showing the location of a smart home device according to an embodiment of this application. See also... Figure 13 As shown, the smart home devices in this residence include a first device (such as a speaker), a second device (such as a television), and a target device (such as headphones). The first device and the target device belong to the first room (such as the living room), and the second device belongs to the second room (such as the master bedroom). The first device, the second device, and the target device are all connected to a main control device.
[0223] The following example illustrates the process of changing the classification (i.e., the room category) of a smart home device by taking the example of the target device's location being moved.
[0224] Figure 14 This is a flowchart of a device management method provided in another embodiment of this application, which involves the process of updating the room category to which the target device belongs by the master control device.
[0225] S1401, the target device broadcasts a detection signal.
[0226] In this embodiment, the specifications of the detection signal are preset, and the target device broadcasts the detection signal according to the preset specifications at preset time intervals. In one example, the specifications of the signal may be: signal strength: 20 dBm, modulation / coding scheme (MSC): MSC1.
[0227] S1402, the first device receives the detection signal and determines its third signal strength.
[0228] The third signal strength is used to represent the strength of the detection signal broadcast by the target device received by the first device. It should be understood that since the specifications of the detection signal emitted by the target device are fixed, the third signal strength detected by the first device is usually constantly changing as the target device moves.
[0229] S1403, the second device receives the detection signal and determines its fourth signal strength.
[0230] The fourth signal strength is used to represent the strength of the detection signal broadcast by the target device received by the second device. It should be understood that since the specifications of the detection signal emitted by the target device are fixed, the fourth signal strength detected by the second device usually changes continuously as the target device moves.
[0231] It should be noted that, to ensure the accuracy of the third and fourth signal strengths, in this embodiment, the first and second devices are typically fixed home appliances, such as televisions, refrigerators, washing machines, and speakers. It should be understood that mobile home appliances, when stationary (e.g., a robot vacuum cleaner during charging), can also be used as either the first or second device.
[0232] S1404, the first device reports the third signal strength to the main control device in real time.
[0233] S1405, the second device reports the fourth signal strength to the main control device in real time.
[0234] It should be understood that since both the first and second devices are connected to the master control device, the first and second devices can send the third and fourth signal strengths to the master control device through existing links (such as WiFi links or Bluetooth links).
[0235] S1406, the main control device updates the classification of the target device based on the third signal strength and the fourth signal strength.
[0236] In one possible implementation, when the strength of the third signal is less than the first threshold (e.g., -110 dBm) and the strength of the fourth signal is greater than the second threshold (e.g., -120 dBm), it indicates that the first device is far from the target device and may not be in the same room of the residence; while the second device is closer to the target device and is usually in the same area of the residence. Therefore, the master control device updates the classification of the target device to the same classification as the second device.
[0237] Optionally, the first threshold and the second threshold can be preset values in the main control device, or values detected by the main control device based on user operation.
[0238] Regarding the detection methods for the first and second thresholds, in one possible implementation, firstly, the main control device can scan the signal strength of multiple smart home devices in the vicinity and determine the room where the smart home device with the highest signal strength is located is the room where the main control device is located, such as the first room. Secondly, the main control device controls each smart home device in the residence to periodically (e.g., every 500ms) broadcast a detection signal. Subsequently, the user carries the main control device from the first room to the second room, and the main control device continuously detects the signal strength of the detection signals of each smart home device during the movement. It should be understood that during the movement, due to the obstruction of the wall between the first and second rooms, the signal strength of each smart home device detected by the mobile phone will experience a sharp drop (e.g., from -70dBm to -90dBm) or a sharp rise (e.g., from -100dBm to -80dBm). Specifically, during the process of the main control device moving from the first room to the second room, the signal strength of the smart home devices in the first room usually experiences a sharp drop; while the signal strength of the smart home devices in the second room usually experiences a sharp rise. Finally, the main control device determines the average signal strength of each smart home device in the first room after a sharp drop as the second threshold; and determines the average signal strength of the remaining smart home devices after a sharp rise as the first threshold.
[0239] by Figure 13 For example, when the speaker detects that the third signal strength of the headphones is less than the first threshold, and the TV detects that the fourth signal strength of the headphones is greater than the second threshold, it means that the headphones have been moved from the living room to the master bedroom by the user. Therefore, the main control device updates the headphone classification from living room to master bedroom.
[0240] In another possible implementation, see Figure 13 As shown, when the target device moves from the living room to the master bedroom, there is usually a process where the third signal strength gradually decreases, while the fourth signal strength gradually increases. Based on this, the main control device can detect the changing trends of the third and fourth signal strengths within a preset time (e.g., within 5 seconds). When the third signal strength gradually decreases and the fourth signal strength gradually increases, and when the third signal strength is less than the fourth signal strength, the main control device determines that the target device has moved from the first room to the second room.
[0241] Optionally, based on the gradual decrease of the third signal strength and the gradual increase of the fourth signal strength, and the fact that the third signal strength is less than the fourth signal strength, when the main control device detects that the third signal strength is lower than the first threshold and the fourth signal strength is higher than the second threshold, it determines that the target device has moved from the first room to the second room.
[0242] Optional, see Figure 15As shown, before updating the category of the target device, the main control device can display a prompt message, an "Ignore" option, and a "Change" option. The prompt message asks the user whether they confirm updating the target device's category. For example, the prompt message could be: "We detected that your 'Headphones' have moved from the living room to the bedroom. Do you want to update the 'Headphones' category?" After detecting the user's action on the "Ignore" option, the main control device cancels the update of the target device's category. After detecting the user's action on the "Update" option, the main control device updates the target device's category from "Living Room" to "Master Bedroom".
[0243] In other embodiments, the master control device can control all smart home devices in the smart home network other than the target device to broadcast detection signals, control the target device to detect the strength of the received detection signals, and send the strength to the master control device. Based on the strength of the detection signals, the master control device can determine the average value of the detection signal strength of the smart home devices in each room. This average value includes a third average value and a fourth average value. The third average value is the average value of the detection signal strength received by the target device from the smart home devices in the first room, and the fourth average value is the average value of the detection signal strength received by the target device from the smart home devices in the second room. When the third average value changes from being greater than a first threshold to being less than a second threshold, and the fourth average value changes from being less than the second threshold to being greater than the first threshold, it is determined that the target device has moved from the first room to the second room, where the first threshold is greater than the second threshold. Subsequently, the master control device updates the classification of the target device to the second room. The following continues in conjunction with... Figure 13 The schematic diagram showing the location of the smart home device illustrates the method provided in the embodiments of this application.
[0244] Figure 16 This is a flowchart of a device management method provided in another embodiment of this application, which involves the process of updating the room category to which the target device belongs by the master control device.
[0245] S1601, the first device broadcasts a detection signal.
[0246] S1602, the second device broadcasts a detection signal.
[0247] Optionally, the first and second devices can broadcast detection signals periodically, or they can broadcast detection signals according to control commands from the master control device. For example, after the master control device detects that the target device has moved, it controls the first and second devices to broadcast detection signals.
[0248] In one possible implementation, the master control device can control fixed home devices (such as televisions) within the smart home network to detect the signal strength of the target device and send that signal strength to the master control device. If the change in signal strength exceeds a threshold, the master control device determines that the target device has moved.
[0249] S1603, the target device continuously receives the detection signal from the first device and determines the fifth signal strength of the detection signal; and continuously receives the detection signal sent by the second device and determines the sixth signal strength of the detection signal.
[0250] S1604, the target device sends the fifth signal strength and the sixth signal strength to the master control device.
[0251] S1605, the main control device updates the classification of the target device based on the strength of the fifth signal and the strength of the sixth signal.
[0252] In one possible implementation, when the strength of the fifth signal is less than the first threshold (e.g., -110 dBm) and the strength of the sixth signal is greater than the second threshold (e.g., -120 dBm), it indicates that the first device is far from the target device and may not be in the same area of the residence, while the second device is closer to the target device and is usually in the same area of the residence. Therefore, the master control device updates the classification of the target device to be the same as that of the second device.
[0253] by Figure 13 For example, when the headphones detect that the fifth signal strength of the speaker is less than the first threshold and the sixth signal strength of the TV is greater than the second threshold, it means that the headphones have been moved from the living room to the master bedroom by the user. Therefore, the main control device updates the headphone's classification from living room to master bedroom.
[0254] Optionally, electronic devices can carry their own classification information (i.e., the residence and room they belong to) during interaction with other devices, so that devices can understand each other's location in the smart home network, allowing other family members to manage the smart home network through other master devices. Therefore, after updating the classification of a target device, the master device can send the updated classification information to the target device. For example, when the master device updates the classification of headphones to "Master Bedroom," it sends the updated instruction classification information (Master Bedroom) to the headphones.
[0255] In another possible implementation, see Figure 13As shown, when the target device moves from the living room to the master bedroom, the fifth signal strength typically decreases while the sixth signal strength gradually increases. Based on this, the main control device can detect the changing trends of the fifth and sixth signal strengths within a preset time period (e.g., within 5 seconds). When the fifth signal strength gradually decreases and the sixth signal strength gradually increases, and the fifth signal strength is less than the sixth signal strength, the main control device determines that the target device has moved from the first room to the second room.
[0256] Optionally, based on the premise that the strength of the fifth signal gradually decreases and the strength of the sixth signal gradually increases, and the strength of the fifth signal is less than the strength of the sixth signal, when the main control device detects that the strength of the fifth signal is lower than the first threshold and the strength of the sixth signal is higher than the second threshold, it determines that the target device has moved from the first room to the second room.
[0257] In summary, the method provided in this application embodiment enables the main control device to automatically update the classification of smart home devices, resulting in a better user experience.
[0258] It should be noted that the device management method provided in this application is applicable not only to controlling the connection between two smart home devices, but also to controlling the connection between three or more smart home devices. For example, the main control device can control the establishment of a connection between the TV, speaker 1, and speaker 2, so that the TV can present stereo sound through speaker 1 and speaker 2 during audio and video playback. Please refer to the preceding text for related details; this implementation will not repeat them here.
[0259] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0260] Based on the device management methods provided in the above embodiments, this application also provides the following technical solutions.
[0261] This application also provides a device management system, which includes a main control device, a first device, and a second device. The main control device is interconnected with both the first device and the second device, but the first device and the second device are not connected to each other. In response to a first user operation input by the user, the main control device controls the first device and the second device to establish a connection.
[0262] This application also provides a master control device configured to execute the device management method performed by the master control device in the above embodiments.
[0263] This application also provides a smart home device configured to execute the device management method executed by the first device or the second device in each embodiment.
[0264] This application also provides a device management apparatus for use in a main control device. The apparatus includes a first acquisition module and a first transmission module, as detailed below.
[0265] The first acquisition module is used to acquire the first user operation.
[0266] The first management module is used to control the first sending module to send connection instructions to the first device and / or the second device when the first device and the second device are not connected.
[0267] The first transmitting module is used to send a connection command to the first device and / or the second device, the connection command being used to instruct the first device and the second device to establish a wireless connection.
[0268] Optionally, the device management apparatus provided in this embodiment further includes: a first receiving module, configured to receive a connection success notification sent by the first device and / or the second device. The first management module is further configured to control the master device to display connection status information of the first device and the second device, the connection status information including the connection status of the first device and the second device, and at least one of device icon, device name, and device category.
[0269] Optionally, when the main control device displays a first icon of the first device and a second icon of the second device, the first user operation includes: operating a connection control, which is used to control the establishment of a wireless connection between the first device and the second device; or; connecting the first icon and the second icon with a connection cable; or; controlling the first icon and the second icon to overlap; or; clicking the first icon and the second icon in sequence.
[0270] Optionally, the first sending module is configured to send connection instructions to the first device and / or the second device, including: sending a first connection instruction to the first device and sending a second connection instruction to the second device. The first connection instruction indicates that the target connection device is the second device, and the target connection address it carries is the address of the second device; the second connection instruction indicates that the target connection device is the first device, and the target connection address it carries is the address of the first device.
[0271] Optionally, the first connection instruction further includes a connection mode of the first device; the second connection instruction further includes a connection mode of the second device; the connection modes of the first device and the second device are different. The connection mode is either a sending mode or a receiving mode. When the first device is in sending mode, it sends a connection request during the connection process with the second device; when the first device is in receiving mode, it receives the connection request during the connection process with the second device.
[0272] Optionally, when the first device is in transmit mode and the second device is in receive mode, the first connection instruction further includes a transmit delay T1 for the connection request. This transmit delay indicates that the first device sends the connection request to the second device after receiving the first connection instruction for a period of time T1. The second connection instruction further includes a receive delay T2 for the connection request. This receive delay indicates that the second device begins scanning for the connection request after receiving the second connection instruction for a period of time T2.
[0273] Optionally, the first connection instruction further includes at least one of the following: the strength of the signal transmitted from the first device to the second device, the frequency modulation / coding format level, and the beam direction. The second connection instruction further includes at least one of the following: the strength of the signal transmitted from the second device to the first device, the frequency modulation / coding format level, and the beam direction.
[0274] Optionally, the first management module is further configured to determine a first signal strength and a second signal strength. The first signal strength is the strength of the detection signal emitted by the first device when it is received by the second device; the second signal strength is the strength of the detection signal emitted by the second device when it is received by the first device. The first transmitting module is further configured to send the connection command to the first device and / or the second device when both the first signal strength and the second signal strength are greater than or equal to a signal strength threshold.
[0275] Optionally, the first acquisition module is further configured to acquire a second user operation. The first management module is further configured to, based on the second user operation, control the first transmission module to send a disconnect command to the first device and / or the second device. The first transmission module is further configured to send a disconnect command to the first device and / or the second device, the disconnect command being used to indicate the disconnection of the wireless connection between the first device and the second device.
[0276] Optionally, the first receiving module is further configured to receive disconnection notifications sent by the first device and / or the second device. The first management module is further configured to control the master device to cancel the display of connection status information of the first device and the second device.
[0277] Optionally, the second user operation includes: operating a disconnect control, which is used to control the disconnection of the wireless connection between the first device and the second device; or, cutting the connection line between the first icon of the first device and the second icon of the second device; or, moving the first icon and the second icon from an overlapping state to a separated state.
[0278] This application also provides a device management apparatus for use in a main control device, the apparatus including a second acquisition module and a second management module.
[0279] The second acquisition module is used to acquire classification information of all smart home devices associated with the main control device, including the residence and room to which the smart home device belongs.
[0280] The second management module is used to control the main control device to display the device information of the smart home devices corresponding to each room in the different rooms of the house structure diagram of the residence, based on the classification information.
[0281] Optionally, the second management module is also used to control the main control device to display the device set of the target room in response to the user's operation of selecting the target room in the house structure diagram. The device set includes device information of all smart home devices in the target room.
[0282] Optionally, the device information may include at least one of the following: device name, device icon, and connection status with the main control device.
[0283] Optionally, the second management module is also used to determine that a target device among the smart home devices associated with the main control device has moved from the first room to the second room; and to update the classification information of the target device to the second room.
[0284] Optionally, determining that the target device has moved from the first room to the second room includes: detecting that the icon of the target device has moved from the area of the first room in the house structure diagram to the area of the second room. Alternatively, detecting that the icon of the target device has moved from the category list of the first room to the category list of the second room. Alternatively, detecting that a first average value changes from being greater than a first threshold to being less than a second threshold, and a second average value changes from being less than the second threshold to being greater than the first threshold. Wherein, the first average value is the average strength of the detection signals received by each smart home device in the first room, and the second average value is the average strength of the detection signals received by each smart home device in the second room; the detection signals are sent by the target device. Alternatively, detecting that a third average value changes from being greater than the first threshold to being less than the second threshold, and a fourth average value changes from being less than the second threshold to being greater than the first threshold. Wherein, the third average value is the average strength of the detection signals sent by each smart home device in the first room when received by the target device; the fourth average value is the average strength of the detection signals sent by the smart home devices in the second room when received by the target device.
[0285] Optionally, the device management device further includes a connection control module for establishing a wireless connection with the third device. The second management module is also used to determine the third room where the smart home device with the best communication quality with the third device is located, and to identify that third room as one of the classification information for the third device.
[0286] Optionally, the device management apparatus further includes a connection control module for establishing a wireless connection with a third device. The second management module is also configured to control the main control device to display a category selection box, which includes all rooms set by the main control device; and, in response to a user's selection of a third room from among all rooms, to identify that third room as one of the category information of the third device.
[0287] This application also provides a chip system, see [link to relevant documentation] Figure 17 As shown, the chip system includes a processor that executes computer programs stored in a memory to implement the device management methods executed by the master control device in the above embodiments.
[0288] This application also provides a chip system including a processor that executes a computer program stored in a memory to implement the device management method executed by the first device or the second device in the above embodiments.
[0289] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the device management method performed by the master control device in the above embodiments.
[0290] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the device management method performed by the first or second device in the above embodiments.
[0291] This application also provides a computer program product, which includes a program that, when run by an electronic device, causes the electronic device to execute the device management method executed by the main control device in the above embodiments.
[0292] This application also provides a computer program product, which includes a program that, when run by an electronic device, causes the electronic device to execute the device management method executed by the first device or the second device in the above embodiments.
[0293] It should be understood that the processor mentioned in the embodiments of this application can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.
[0294] It should also be understood that the memory mentioned in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).
[0295] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0296] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0297] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A device management system, characterized by comprising: It includes a main control device, and a first device and a second device that are wirelessly connected to the main control device, respectively; The main control device is configured to, after receiving a first user operation, determine a first signal strength and a second signal strength when the first device and the second device are not connected; wherein, the first signal strength is the strength of the detection signal emitted by the first device when it is received by the second device; the second signal strength is the strength of the detection signal emitted by the second device when it is received by the first device, and the strengths of the detection signals emitted by the first device and the second device are the same; Based on the first signal strength and the second signal strength, the link loss difference between the first link and the second link is determined; wherein, the first link is the link through which the first device sends data to the second device, and the second link is the link through which the second device sends data to the first device; Based on the link loss difference, a first connection command is sent to the first device, and a second connection command is sent to the second device. The first connection command includes first connection parameters of the first device, which include a first transmission strength and a first beam direction of the signal transmitted from the first device to the second device. The second connection command indicates second connection parameters of the second device, which include a second transmission strength and a second beam direction of the signal transmitted from the second device to the first device. The link loss of the first link is greater than that of the second link, the first transmission strength is greater than that of the second transmission strength, and the difference between the first transmission strength and the second transmission strength is equal to the link loss difference. The first beam direction and the second beam direction are used to align the first device and the second device in the signal transmission direction. The first device is configured to establish a wireless connection with the second device according to the first connection command; The second device is configured to establish a wireless connection with the first device according to the second connection command.
2. The system according to claim 1, characterized in that, The first device and / or the second device are further configured to send a connection success notification to the master control device after the wireless connection is successfully established; The main control device is also configured to display connection status information of the first device and the second device, the connection status information including the connection status of the first device and the second device, and at least one of device icon, device name and device category.
3. The system of claim 1 or 2, wherein, The main control device displays a first icon of the first device and a second icon of the second device. The first user operation includes: Operations on the connection control, which is used to control the establishment of a wireless connection between the first device and the second device; or; The operation of connecting the first icon and the second icon with a connecting line; or... Control the overlap between the first icon and the second icon; or... Click the first icon and then the second icon in sequence.
4. The system according to claim 1, characterized in that, The first connection parameter further comprises a transmission delay of a connection request , the transmission delay being used to indicate that the first device transmits the connection request to the second device after a time length after receiving the first connection instruction ; the connection request is used to request to establish a connection with the second device. The second connection parameter further comprises a receiving time delay of the connection request The receiving time delay is used to indicate that the second device starts to scan the connection request after receiving the second connection instruction for a time length.
5. The system according to any one of claims 1, 2, and 4, characterized in that, The first connection parameters also include the frequency modulation / coding format level of the signal sent by the first device to the second device; The second connection parameter also includes the frequency modulation / coding format level of the signal sent by the second device to the first device.
6. The system according to any of claims 1, 2 and 4, characterized in that, The step of sending a first connection command to the first device and a second connection command to the second device further includes: When both the first signal strength and the second signal strength are greater than or equal to the signal strength threshold, a first connection command is sent to the first device, and a second connection command is sent to the second device.
7. The system according to any one of claims 1, 2, and 4, characterized in that, The master control device is also configured to send a disconnect command to the first device and / or the second device after receiving the second user operation, the disconnect command being used to indicate the disconnection of the wireless connection between the first device and the second device; The first device and the second device are configured to disconnect the wireless connection between the first device and the second device in accordance with the disconnect command.
8. The system according to claim 7, characterized in that, The first device and / or the second device are further configured to send a disconnection notification to the master device after the wireless connection is disconnected; The main control device is also configured to disable the display of connection status information between the first device and the second device.
9. The system of claim 7, wherein, The second user operation includes: The disconnect control is used to control the disconnection of the wireless connection between the first device and the second device; or, The operation to cut the connecting line between the first icon of the first device and the second icon of the second device; or... The operation of moving the first icon and the second icon from an overlapping state to a separated state.
10. A device management method characterized by, Applied to a main control device, wherein the main control device is connected to a first device and a second device respectively, the method includes: After receiving the first user operation, and in the absence of a connection between the first device and the second device, a first signal strength and a second signal strength are determined; wherein, the first signal strength is the strength of the detection signal emitted by the first device when it is received by the second device; the second signal strength is the strength of the detection signal emitted by the second device when it is received by the first device, and the strengths of the detection signals emitted by the first device and the second device are the same; Based on the first signal strength and the second signal strength, the link loss difference between the first link and the second link is determined; wherein, the first link is the link through which the first device sends data to the second device, and the second link is the link through which the second device sends data to the first device; Based on the link loss difference, a first connection command is sent to the first device, and a second connection command is sent to the second device; Wherein, the first connection instruction is used to instruct the first device to send a connection request to connect to the second device, and includes a first connection parameter of the first device, the first connection parameter including a first transmission strength and a first beam direction of the signal sent by the first device to the second device; the second connection instruction is used to instruct the second device to receive the connection request to connect to the first device, and includes a second connection parameter of the second device, the second connection parameter including a second transmission strength and a second beam direction of the signal sent by the second device to the first device, wherein the link loss of the first link is greater than that of the second link, the first transmission strength is greater than that of the second transmission strength, and the difference between the first transmission strength and the second transmission strength is equal to the difference in link loss; the first beam direction and the second beam direction are used for the first device and the second device to align the signal transmission direction.
11. The method of claim 10, wherein, After sending a first connection command to the first device and a second connection command to the second device, the method further includes: Receive a connection success notification from the first device and / or the second device; Displays connection status information for the first device and the second device, including the connection status of the first device and the second device, and at least one of the following: device icon, device name, and device category.
12. The method according to claim 10 or 11, characterized in that, The main control device displays a first icon for the first device and a second icon for the second device. The first user operation includes: The operation of connecting the first icon and the second icon with a connecting line; or... Control the overlap between the first icon and the second icon; or... Click the first icon and then the second icon in sequence.
13. The method according to claim 10, characterized in that, The first connection parameter further comprises a transmission delay of a connection request , the transmission delay being used to indicate that the first device transmits the connection request to the second device after a time length after receiving the first connection instruction ; the connection request is used to request to establish a connection with the second device. The second connection parameter further comprises a receiving time delay of the connection request The receiving time delay is used to indicate that the second device starts to scan the connection request after receiving the second connection instruction for a time length.
14. The method according to any one of claims 10-11 and 13, characterized in that, The first connection parameters also include the frequency modulation / coding format level of the signal sent by the first device to the second device; The second connection parameter also includes the frequency modulation / coding format level of the signal sent by the second device to the first device.
15. The method of any one of claims 10-11 and 13, wherein, Sending a first connection command to the first device and a second connection command to the second device includes: When both the first signal strength and the second signal strength are greater than or equal to the signal strength threshold, a first connection command is sent to the first device, and a second connection command is sent to the second device.
16. The method of any one of claims 10-11 and 13, wherein, The method further includes: After receiving a second user action, a disconnect command is sent to the first device and / or the second device, the disconnect command being used to instruct the wireless connection between the first device and the second device to be disconnected.
17. The method of claim 16, wherein, After sending a disconnect command to the first device and / or the second device, the method further includes: Receive a disconnection notification sent by the first device and / or the second device; Cancel the display of connection status information for the first and second devices.
18. The method of claim 16, wherein, The second user operation includes: The disconnect control is used to control the disconnection of the wireless connection between the first device and the second device; or, The operation to cut the connecting line between the first icon of the first device and the second icon of the second device; or... The operation of moving the first icon and the second icon from an overlapping state to a separated state.
19. A master device, comprising: It includes a memory and a processor, the processor executing a computer program stored in the memory to cause the processor to perform the device management method according to any one of claims 10 to 18.
20. A chip, characterized by The device includes a processor that executes a computer program stored in a memory to implement the device management method as described in any one of claims 10 to 18.
21. A computer-readable storage medium, the computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the device management method as described in any one of claims 10 to 18.
22. A computer program product, the program product comprising a program, characterised in that, When the program is run by the electronic device, the electronic device implements the device management method as described in any one of claims 10 to 18.