Smart home device control method, electronic device, chip system and storage medium

By receiving and analyzing the signal strength values ​​and voice commands of smart home devices, the server can accurately control the smart home devices without the user providing the room name, solving the problem that users in the prior art find it difficult for users to accurately provide the room name, and improving the control performance and user experience of smart home devices.

CN118869382BActive Publication Date: 2025-02-28HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411328433.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-24
Publication Date
2025-02-28
Estimated Expiration
2044-09-24

AI Technical Summary

Technical Problem

When existing smart home devices are controlled by voice, it is difficult for users to accurately provide room names, resulting in low control performance.

Method used

By receiving signal strength values ​​and voice commands sent by smart home devices, the server determines the target smart home device, and even accurately controls the device in the room without providing the room name.

Benefits of technology

Improves the intelligent control performance of smart home devices, enhances the user experience, and allows users to effectively control smart home devices without providing room names.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

The present application provides a smart home device control method, electronic device, chip system and storage medium. In the method, the server can receive Q first signal strength values ​​from Q second electronic devices in advance, and the server can receive the second signal strength value at the same time as receiving the first voice command. Then, even if the first voice command does not include the first identifier of the subspace where the target smart home device is located, that is, the room name, and the number of second electronic devices of the same type as the target smart home device among the Q second electronic devices is not 1, the target smart home device can be determined and controlled by the difference / similarity of the signal strength values ​​between the first electronic device and the Q second electronic devices. Therefore, the present application can realize that the first voice command does not need to include the room name, and can still control the smart home device in the room.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and specifically to a smart home device control method, electronic device, chip system and storage medium. Background Art

[0002] With the development of smart homes, there are more and more types of smart home devices, which brings great convenience to users' lives.

[0003] Currently, when a smart home is voice-controlled through electronic devices such as mobile phones, users need to provide the exact room name (for example, to turn on the light in bedroom B, bedroom B is the room name); however, in actual smart home voice control, users may not be able to accurately give the room name, resulting in low voice control performance of the smart home. Summary of the invention

[0004] The present application provides a smart home device control method, electronic device, chip system and storage medium, which can maximize the intelligent control performance of the smart home and improve the user experience.

[0005] In a first aspect, the present application provides a smart home device control method, which is applied to a server, the server is respectively connected to a first electronic device and Q second electronic devices, the first electronic device is used to receive a first voice command and send the first voice command to the server, the Q second electronic devices are all smart home devices, the first electronic device is connected to the Q second electronic devices, the Q second electronic devices are all located in a target space, the target space includes multiple subspaces, any second electronic device among the Q second electronic devices is located in a corresponding subspace of the multiple subspaces, the method includes:

[0006] Receive Q first signal strength values ​​respectively sent by Q second electronic devices, where the first signal strength value is used to indicate the wireless signal strength between the second electronic device and the first router; receive a first voice instruction and a second signal strength value sent by the first electronic device, where the first voice instruction is used to control a target smart home device in a subspace where the first electronic device is located, and the second signal strength value is used to indicate the wireless signal strength between the first electronic device and the first router; if the first voice instruction does not include a first identifier (room name) of the subspace where the target smart home device is located, and the number of second electronic devices of the same type as the target smart home device among the Q second electronic devices is not 1, determine the target smart home device according to the Q first signal strength values ​​and the second signal strength values, where the first voice instruction includes control information and the type of the target smart home device; send a control instruction corresponding to the control information to the target smart home device, where the control instruction is used to control the target smart home device.

[0007] In some embodiments, the target space is a home space, the multiple subspaces are multiple rooms in the home space, and the first identifier includes room name information of the room where the target smart home device is located.

[0008] It should be understood that the magnitudes of the Q first signal strength values ​​are related to the distance between each second electronic device and the first router; and the magnitude of the second signal strength value is related to the distance between the first electronic device and the first router.

[0009] In the above method, Q second electronic devices can send Q first signal strength values ​​to the server, and the first electronic device can send a second signal strength value to the server. In this way, when the server receives the first voice command, it can determine the type of target smart home device and the target smart home device closest to the first electronic device through the difference / similarity of the signal strength values ​​between the first electronic device and the Q second electronic devices, thereby controlling the target smart home device. In this way, when the user forgets the room name or does not know the room name, the smart home device in the room can still be controlled, thereby ensuring the user's experience of using the smart home device.

[0010] Based on this, the above method can be implemented: a user carries a mobile phone (a first electronic device) and is in bedroom B. User B says to the mobile phone in the bedroom: Turn on the light. The electronic device then notifies the server, and the server can send a control instruction to the light in bedroom B. The light in bedroom B can be turned on without entering into multiple rounds of conversations to ask the user which light needs to be turned on.

[0011] In combination with the first aspect, in some implementations of the first aspect, determining a target smart home device according to the Q first signal strength values ​​and the second signal strength values ​​includes:

[0012] When it is determined that the first voice command does not include the first identifier, and the number of second electronic devices of the same type as the target smart home device among the Q second electronic devices is not one, Q first difference values ​​are obtained according to the Q first signal strength values ​​and the second signal strength values, and the first difference value is used to indicate the distance between the second electronic device and the first electronic device through the difference in wireless signal strength; based on the Q first difference values, the target smart home device is determined, and the target smart home device is the second electronic device corresponding to the difference value among the Q first difference values ​​that is less than the first threshold value among the second electronic devices of the same type as the target smart home device.

[0013] In the above method, the differences between the Q first signal strength values ​​and the second signal strength values ​​can be calculated respectively, and the differences / similarity of the signal strength values ​​between the first electronic device and the Q second electronic devices can be represented by the differences, so as to determine the target smart home device.

[0014] In combination with the first aspect, in some implementations of the first aspect, receiving Q first signal strength values ​​respectively sent by Q second electronic devices includes:

[0015] Receiving Q groups of third signal strength values ​​respectively sent by Q second electronic devices, each group of the Q groups of third signal strength values ​​includes one Q first signal strength value, any group of first signal strength values ​​includes a signal strength value received by any second electronic device from P routers, the P routers include routers corresponding to wireless signal signal strength values ​​greater than a second threshold, the P routers include a first router, the second signal strength values ​​are P, and the P second signal strength values ​​include signal strength values ​​received by the first electronic device from the P routers respectively; obtaining Q first difference values ​​according to the Q first signal strength values ​​and the second signal strength values, including: according to P third signal strength values ​​corresponding to each second electronic device in Q second electronic devices and P second signal strength values ​​corresponding to the first electronic device obtain Q first distance values, and the Q first distance values ​​are respectively used to represent the distances between the Q second electronic devices and the first electronic device; according to the Q first difference values, the target smart home device is determined, including: determining a first number, the first number is the number of second electronic devices corresponding to the first distance values ​​less than the first threshold in the Q first distance values ​​among the second electronic devices of the same type as the target smart home device; when the first number is 1, the second electronic device corresponding to the first number is determined as the target smart home device.

[0016] Among them, the Q groups of third signal strength values ​​are obtained and sent to the server when the Q second electronic devices switch from an unconnected state to a connected state with the first router; the P second signal strength values ​​are obtained when the first electronic device receives the first voice command, and the first voice command and the second signal strength value are sent to the server by the first electronic device after obtaining the second signal strength value.

[0017] For example, if the number of routers is 5 and the number of second electronic devices is 3, then Q groups of third signal strength values ​​are 3 groups of third signal strength values, each group of third signal strength values ​​includes 5 third signal strength values, and 1 of the 5 third signal strength values ​​is the first signal strength value.

[0018] The first distance value is obtained by using the Euclidean distance calculation formula.

[0019] In the above method, calculation can be performed based on the signal strength values ​​of the P routers corresponding to each second electronic device and the signal strength values ​​of the P routers corresponding to the first electronic device to obtain Q first distance values. The signals of the P routers can better reflect the signal strength of the wireless signal received by each second electronic device and the first electronic device, thereby better reflecting the position of the Q second electronic devices and the first electronic device, as well as the distance between the Q second electronic devices and the first electronic device. Therefore, according to the Q first distance values, the distance between the Q second electronic devices and the first electronic device can be more accurately represented by the strength of the wireless signal, thereby better determining the target smart home device through the difference / similarity of the wireless signal strength.

[0020] In combination with the first aspect, in some implementations of the first aspect, the method further includes:

[0021] A first channel state information matrix sent by a first electronic device is received, where the first channel state information matrix is ​​used to indicate changes in channel characteristics of a first pilot signal during transmission from each antenna of a first router to each antenna of the first electronic device; Q second channel state information matrices sent by Q second electronic devices are received, where each second channel state information matrix in the Q second channel state information matrices is used to indicate changes in channel characteristics of a second pilot signal during transmission from each antenna of the first router to each antenna of each second electronic device; when the first number is not 1, Q second distance values ​​are obtained according to the Q second channel state information matrices and the first channel state information matrix, where the Q second distance values ​​are respectively used to indicate the distances between the Q second electronic devices and the first electronic device through differences in channel characteristics; and a target smart home device is determined according to the Q second distance values, where the target smart home device is a second electronic device corresponding to the smallest second distance value among the Q second distance values ​​among second electronic devices of the same type as the target smart home device.

[0022] Among them, the first pilot signal is sent by the first router to the first electronic device when the first electronic device and the first router switch from an unconnected state to a connected state, and the first channel state information matrix is ​​obtained by the first electronic device performing channel estimation on the first pilot signal and sent to the server; the second pilot signal is sent by the first router to each second electronic device when each second electronic device and the first router switch from an unconnected state to a connected state, and the Q second channel state information matrices are obtained by the Q second electronic devices performing channel estimation on the second pilot signal and sent to the server.

[0023] It should be understood that each CSI can represent the change in channel characteristics of the pilot signal during transmission from the router to the electronic device, and the CSI includes the value of the channel gain and the value of the channel phase. The value of the channel gain is used to represent the amplitude change of the pilot signal caused by the influence of the channel during the transmission process. The channel gain can reflect the attenuation degree of the pilot signal. The larger the value of the channel gain, the smaller the attenuation of the pilot signal in the channel and the stronger the signal strength. The value of the channel phase is used to represent the phase change of the pilot signal caused by the influence of the channel during the transmission process.

[0024] The second distance value is obtained by using the Euclidean distance calculation formula.

[0025] In the above method, Q second channel state information matrices sent by Q second electronic devices respectively can be received, and the first channel state information matrix sent by the first electronic device can be received. In this way, the differences between the Q second channel state information matrices and the first channel state information matrix can be calculated respectively, and the differences / similarity of the channel characteristics between the first electronic device and the Q second electronic devices can be represented by the differences, thereby determining the target smart home device.

[0026] In combination with the first aspect, in some implementations of the first aspect, the first channel state information matrix includes N*M first channel state information, N is the number of antennas of the first electronic device, M is the number of antennas of the first router, each second channel state information matrix includes R*M second channel state information, R is the number of antennas of the second electronic device, and according to the Q second channel state information matrices and the first channel state information matrix, Q second distance values ​​are obtained, including:

[0027] Determine the first polar coordinates of each of the N*M first channel state information, the N*M first channel state information corresponds to the N*M first polar coordinates, each of the first channel state information includes a value of a first channel gain and a value of a first channel phase, and the first polar coordinates are determined according to the value of the first channel gain and the value of the first channel phase; perform coordinate conversion processing on the N*M first polar coordinates through a first conversion relationship to obtain N*M first complex plane coordinates, and the first conversion relationship is used to convert the polar coordinates into complex plane coordinates; obtain a first complex plane matrix according to the N*M first complex plane coordinates; determine R*M second channel state information. The second polar coordinates of each second channel state information in the state information, R*M second channel state information correspond to R*M second polar coordinates, each second channel state information includes the value of the second channel gain and the value of the second channel phase, and the second polar coordinates are determined according to the value of the second channel gain and the value of the second channel phase; through the first conversion relationship, the R*M first polar coordinates are subjected to coordinate conversion processing to obtain Q second complex plane coordinates; according to the R*M second complex plane coordinates of each second channel state information matrix, Q second complex plane matrices are obtained; according to the Q second complex plane matrices and the first complex plane matrix, Q second distance values ​​are obtained.

[0028] In the above method, the polar coordinates of each channel state information in the channel state matrix can be first converted into complex plane coordinates to obtain Q second complex plane matrices and a first complex plane matrix, and then the distance value is calculated based on the Q second complex plane matrices and the first complex plane matrix.

[0029] In combination with the first aspect, in some implementations of the first aspect, the method further includes:

[0030] Receive association information sent by the first electronic device; wherein the association information includes the name of the first device, the user identifier and the second identifier of the subspace where the first device is located, the name of the first device is associated with the user identifier and the second identifier respectively, the first device is any one of the Q second electronic devices, and the association information is sent to the server by the first electronic device when it determines that the first device and the first router are switched from an unconnected state to a connected state.

[0031] In the above method, the server can also receive associated information, so that when a voice command is received, the second electronic device associated with the subspace corresponding to the first identifier can be found in the voice command through the first identifier in the voice command, and the second electronic device of the same type as the target smart home device in the first voice command can be determined through the name of each second electronic device, thereby determining the target smart home device.

[0032] In combination with the first aspect, in some implementations of the first aspect, the first voice instruction includes a user identifier, the Q second electronic devices are all smart home devices associated with the user identifier, and after receiving the first voice instruction and the second signal strength value sent by the first electronic device, the method further includes:

[0033] Determine whether the first voice instruction includes the first identifier; when the first voice instruction includes the first identifier, determine the target smart home device according to the first identifier, and the target smart home device is a second electronic device among Q second electronic devices that is associated with the first identifier and is of the same type as the target smart home device.

[0034] In the above method, if the first voice instruction includes a first identifier, then the target smart home device can be determined directly based on the first identifier.

[0035] In combination with the first aspect, in some implementations of the first aspect, the method further includes:

[0036] When the first voice instruction does not include the first identifier, the number of second electronic devices of the same type as the target smart home device among the Q second electronic devices is determined; when the number of second electronic devices of the same type as the target smart home device among the Q second electronic devices is 1, the second electronic device of the same type as the target smart home device among the Q second electronic devices is determined as the target smart home device.

[0037] In the above method, even if the first voice command does not include the first identifier, when the number of second electronic devices of the same type as the target smart home device among the Q second electronic devices is 1, it can be determined that the second electronic device corresponding to the number 1 is the target smart home device.

[0038] In combination with the first aspect, in some implementations of the first aspect, the control information includes control information related to activation or control information related to deactivation.

[0039] For example, the control information includes: close.

[0040] In a second aspect, the present application provides an electronic device, the electronic device comprising: one or more processors, and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code comprises computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute the method in the first aspect and any possible implementation of the first aspect.

[0041] In a third aspect, the present application provides a chip system, which is applied to an electronic device. The chip system includes one or more processors, and the one or more processors are used to call computer instructions to enable the electronic device to execute the method in the first aspect and any possible implementation of the first aspect.

[0042] In a fourth aspect, the present application provides a computer-readable storage medium, which includes instructions. When the instructions are executed on an electronic device, the electronic device executes the method in the first aspect and any possible implementation of the first aspect.

[0043] In a fifth aspect, the present application provides a computer program product. When the computer program product runs on a computer, it enables the computer to execute the method in the first aspect and any possible implementation manner of the first aspect.

[0044] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 A schematic diagram of a usage scenario of a map provided in one embodiment of the present application;

[0046] Figure 2 A schematic diagram of a usage scenario of a map provided in one embodiment of the present application;

[0047] Figure 3 A schematic diagram of a usage scenario of a map provided in one embodiment of the present application;

[0048] Figure 4 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application;

[0049] Figure 5 A schematic diagram of a software architecture of an electronic device provided in one embodiment of the present application;

[0050] Figure 6 A flowchart of a smart home device control method provided by an embodiment of the present application;

[0051] Figure 7 A flowchart of a smart home device control method provided by an embodiment of the present application;

[0052] Figure 8 A diagram of a human-computer interaction interface provided in one embodiment of the present application;

[0053] Fig. 9 A diagram of a human-computer interaction interface provided in one embodiment of the present application;

[0054] Fig.10A flowchart of a smart home device control method provided by an embodiment of the present application;

[0055] Fig.11 A flowchart of a smart home device control method provided by an embodiment of the present application;

[0056] Fig.12 A flowchart of a smart home device control method provided in one embodiment of the present application. DETAILED DESCRIPTION

[0057] In this application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the first conversion relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c alone can represent: a, b, c, a and b, a and c, b and c, or a, b, and c, where a, b, and c can be single or multiple. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.

[0058] To facilitate understanding, some of the examples given are provided for reference to the description of concepts related to the embodiments of the present application.

[0059] 1. RSSI

[0060] The received signal strength indicator (RSSI) is a single-dimensional measurement that indicates the signal strength of a wireless signal at the receiving end. RSSI does not contain detailed information about the signal.

[0061] RSSI is usually expressed in decibels (dBm), which is a negative value that indicates the received signal power relative to 1 milliwatt (mW). The larger the RSSI value, the stronger the received signal strength.

[0062] 2. CSI

[0063] Channel state information (CSI) is a multi-dimensional measurement used to provide more detailed information about the channel state. CSI includes information such as amplitude, phase, delay, and angle. CSI can be obtained by sending a known reference signal (such as a pilot signal) and observing its response at the receiving end.

[0064] CSI is described by a channel matrix, which contains the attenuation factor of the signal on each transmission path, namely the channel gain matrix. Each element in this matrix represents the attenuation of the signal on a specific path, including information such as signal scattering, environmental attenuation, and distance attenuation. In addition, CSI also contains channel amplitude and phase information on different subcarriers, which can distinguish multipath characteristics.

[0065] 3. Polar coordinates

[0066] Polar coordinates are a two-dimensional coordinate system that uses two parameters to describe the location of a point: radius (r) and angle (θ).

[0067] Polar coordinates are usually expressed as (r, θ), where r ≥ 0 and θ is in an appropriate range (e.g., 0 ≤ θ < 2π). Radius: The distance of a line from the origin to a point. Angle: The counterclockwise angle from the positive x-axis (usually the horizontal axis in a polar coordinate system) to the line connecting the previous line (a radial line), usually expressed in radians or degrees.

[0068] 4. Complex plane coordinates

[0069] The complex plane (also called the Forrest Gump diagram) is a two-dimensional plane used to represent complex numbers. The complex plane coordinate system is a plane used to represent complex numbers, where each point corresponds to a complex number. A complex number consists of a real part and an imaginary part. The real part is the projection of the complex number on the real axis; the imaginary part is the projection of the complex number on the imaginary axis.

[0070] Complex numbers are usually expressed as a+bi, where a is the real part, b is the imaginary part, and i is the imaginary unit (i 2 =-1). In the complex plane, the real part corresponds to the horizontal axis (x-axis) and the imaginary part corresponds to the vertical axis (y-axis). Therefore, the complex number a+bi can be represented as a point (a, b) in the complex plane.

[0071] Smart home devices are home devices that can be connected to the internet to be remotely controlled, automated, or work in conjunction with other devices. Remote control can include voice control.

[0072] With the development of smart homes, there are more and more types of smart home devices, which brings great convenience to users' lives.

[0073] Currently, when smart homes are controlled by voice through electronic devices such as mobile phones, users need to provide the exact room name (for example, to turn on the light in bedroom B, bedroom B is the room name).

[0074] The room name is set by the user when adding a smart home device to the electronic device. For example, in the light of bedroom A, bedroom A is the room name set when adding a smart home device to the electronic device.

[0075] However, in actual smart home voice control, users may not be able to give the room name accurately, resulting in poor voice control performance of smart home devices.

[0076] For example, the smart home devices added to the electronic device include: the light in bedroom A, the light in bedroom B, and the light in the lounge; when the user holds the electronic device in bedroom B and wants to control the light in bedroom B to turn on, if the user forgets the name of bedroom B, or remembers the name of bedroom B incorrectly, or does not know the set name of bedroom B, then the voice control command cannot be accurately issued.

[0077] In view of the above problems, the present application can provide a smart home device control method, an electronic device, a chip system, a computer-readable storage medium and a computer program product. After the electronic device receives a voice command and sends the voice command to a server, if it is determined that the voice command does not carry room information, and the name of the home device type in the voice command corresponds to more than one smart home device, the server can determine the smart home device closest to the electronic device through the RSSI value of the electronic device and the RSSI value of the router, thereby controlling the smart home device. In this way, even if the user forgets the room name or does not know the room name, the smart home device in the room can still be controlled, thereby ensuring the user experience of the smart home device.

[0078] The electronic device mentioned above may be an electronic device with a wireless fidelity (Wi-Fi) function.

[0079] For example, the electronic device may be a mobile phone, a tablet computer, a vehicle-mounted device, a laptop computer, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a smart car, a smart TV, a robot, etc. This application does not limit the type of electronic device.

[0080] It should be noted that, in some possible implementations, the electronic device may also be referred to as a terminal device (station), a user equipment (UE), etc., which is not limited in the embodiments of the present application.

[0081] Among them, the above-mentioned smart home device can be a device with Wi-Fi function and connected to the same router as the above-mentioned electronic device.

[0082] For example, the above-mentioned smart home devices can be lamps, air conditioners, fans, air conditioners, water heaters, smart door locks, smart cameras, smart refrigerators, smart washing machines, smart ovens, smart speakers, smart curtains, etc. This application does not limit the types of smart home devices.

[0083] See also Figure 1 and Figure 2 , Figure 1 and Figure 2 A scenario diagram of a smart home device control method provided in an embodiment of the present application is shown.

[0084] The smart home device control method of the present application is applied to a target space, which includes multiple subspaces. The target space usually has two situations:

[0085] Case 1: There is only one smart home device of one type in multiple subspaces, for example, there is one lamp in multiple subspaces.

[0086] Case 2: There are at least two smart home devices of one type in multiple subspaces, for example, multiple lights are distributed in multiple subspaces.

[0087] Among them, the smart home device can be connected to the router through the operation on the electronic device, and the smart home device can also be connected to the server; the smart home device can communicate with the router and the server respectively. The electronic device can communicate with the router and the server respectively; the electronic device can communicate with the router and the server respectively.

[0088] Below, we take the target space as the home space, the multiple subspaces as the multiple rooms in the home space, and the type of smart home device as a lamp as an example to specifically explain situation 2:

[0089] like Figure 1 and Figure 2As shown, the room may include bedroom A, bedroom B and lounge, and the smart home devices may include the lamp of bedroom A, the lamp of bedroom B and the lamp of bedroom C. Bedroom A is the room information (room name) set when the lamp of bedroom A is connected to the router through the electronic device, bedroom B is the room information set when the lamp of bedroom B is connected to the router through the electronic device, and lounge is the room information set when the lamp of lounge is connected to the router through the electronic device.

[0090] Taking the case where two smart home devices of the same type coexist in multiple subspaces as an example, the two smart home devices may be located in two subspaces that are far away from each other, such as Figure 1 The scenario shown in Figure 2; two smart home devices may be located in two subspaces that are close to each other, such as Figure 2 The scene shown.

[0091] Figure 1 In the example, both bedroom B and the lounge have lights, bedroom B and the lounge are far apart, the lights in bedroom B and the lounge are far apart, the user and the electronic device are both in bedroom B, and the voice command is issued in bedroom B.

[0092] Figure 2 In the figure, both bedroom A and bedroom B have lights. Bedroom A and bedroom B are close to each other and are separated by only a wall. The lights in bedroom A and bedroom B are close to each other. The user and the electronic device are both in bedroom B, and the voice command is issued in bedroom B.

[0093] In addition, the user and the electronic device are in the same subspace, and the user wants to turn on the light in the subspace through voice commands. The user's voice commands usually have three scenarios, such as Figure 3 As shown:

[0094] Scenario 1: The voice command carries room information. The voice command includes control information, room information, and the name of the home device type. Figure 1 and Figure 2 For example, the control information includes: turn on, the room information is: bedroom B, the name of the home appliance type is: light, and the voice command is: turn on the light in bedroom B.

[0095] For scenario 1, after the electronic device sends the voice command to the server, the server can directly control the smart home devices that belong to the home device type among the smart home devices corresponding to the room information according to the voice command.

[0096] Scenario 2: The voice command does not carry room information. The voice command includes control information and the name of the home device type. There is a smart home device belonging to the home device type in the home space. For example, the control information includes: turn on, the name of the home device type is: light, the voice command is: turn on the light, and the home space includes a light.

[0097] For scenario 2, after the electronic device sends the voice command to the server, if it is determined that the voice command does not carry room information, the server determines whether there is one smart home device of the type of home device in the voice command in the home space. If there is one, the server can directly control the smart home device.

[0098] Scenario 3: The voice command does not carry room information. The voice command includes control information and the name of the home device type. There are multiple smart home devices belonging to the home device type in the home space; for example, the control information includes: turn on, the name of the home device type is: light, the voice command is: turn on the light, and the home space includes multiple lights.

[0099] For scenarios 1 and 2, the server can make a unique judgment based on spatial information and a single device to determine the device the user wants to control. However, in scenario 3, the user's intention is ambiguous, so it is necessary to determine which smart home device the user intends to control, so as to issue control instructions to the smart home device.

[0100] For scenario 3, after the electronic device sends the voice command to the server, if it is determined that the voice command does not carry room information, the server determines whether there is one smart home device of the home device type. If not, the server can determine the smart home device closest to the electronic device through RSSI and CSI signals and control the smart home device.

[0101] Among them, if two smart home devices of the same home device type are far apart, the distance and attenuation of the router's signal to the two smart home devices are quite different. In addition, each smart home device can perceive different routers in scanning mode. The two smart home devices can be distinguished by RSSI. In other words, RSSI can be used to distinguish situations with large spatial separations, such as Figure 1 The situation shown.

[0102] When two smart home devices are separated by only one wall, the signal strength similarity is relatively high. It is difficult to rely on RSSI to determine which smart home device is in the room where the electronic device is located. A more accurate method of calculating and matching indoor location information is needed, such as using the CSI matrix to distinguish the two smart home devices. In other words, the CSI matrix can distinguish situations where the spatial interval difference is small, such as Figure 2 The situation shown.

[0103] Specifically, the server can determine the smart home device corresponding to the type name of the home device that is closer to the electronic device through the RSSI value of the electronic device and the RSSI value of the router; if there is more than one smart home device that is closer to the electronic device according to the RSSI value, then the smart home device closest to the electronic device can be determined through the CSI matrix of the electronic device and the CSI matrix of the router, thereby controlling the smart home device.

[0104] In this way, it can be achieved that, for example, user B says to the electronic device (mobile phone) in the bedroom: Turn on the light. The electronic device will then notify the server, and the server can send a control command to the light in bedroom B without entering into multiple rounds of conversations to ask the user which light to turn on.

[0105] By obtaining the indoor location information of the electronic devices carried by users, it can be used for more smart scene applications. For example, it can be combined with devices such as motion sensors to determine the location of users moving in the home, so that the lights behind the users can be automatically turned off after the users pass by, which can be more intelligent; or combined with the directional optimization of the router, it can identify the user's location and strengthen the signal in that direction.

[0106] It should be understood that the above is an example of a scenario and does not limit the scenario of the present application.

[0107] For ease of explanation, Figure 4 In the description, the electronic device 100 is taken as a mobile phone as an example.

[0108] like Figure 4 As shown, in some embodiments, the electronic device 100 may include a processor 101, a communication module 102, a display screen 103, a camera 104, a sensor 105, an internal memory 106, a USB interface 107, an external memory interface 108, a charging management module 109, a power management module 110, and a battery 111, etc.

[0109] The processor 101 may include one or more processing units, for example, the processor 101 may include an application processor (AP), a modem processor, a graphics processor, an image signal processor (ISP), a controller, a memory, a video stream codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors 101.

[0110] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0111] The processor 101 may also be provided with a memory for storing instructions and data.

[0112] The communication module 102 may include antenna 1 and antenna 2, a mobile communication module, and / or a wireless communication module.

[0113] Optionally, the electronic device 100 may further include peripheral devices, such as a mouse, buttons, indicator lights, a keyboard, a speaker, a microphone, etc.

[0114] It can be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100 .

[0115] In other embodiments, the electronic device 100 may include more or fewer components than shown, or combine some components, or separate some components, or arrange the components differently. The components shown may be implemented in hardware, software, or a combination of software and hardware.

[0116] Please refer to Figure 5 , is a schematic diagram of the software architecture of an electronic device provided in an embodiment of the present application. The smart home device control method provided in an embodiment of the present application is applied to Figure 4 When the electronic device 100 is shown, the software in the electronic device 100 can be divided into the following Figure 5 The illustrated application layer 201 , application framework layer (framework, FWK) 202 , hardware abstraction layer (hardware abstraction layer, HAL) 203 and driver layer 204 .

[0117] A plurality of applications may be installed in the application layer 201 .

[0118] Among them, the application layer 201 may include a voice assistant application and a smart home application. For example, the smart home application is a smart space application.

[0119] The voice assistant application can be connected to the smart home application, and the electronic device 100 can be connected to the server through the smart home application.

[0120] The application framework layer 202 provides a set of basic functions and services for the application layer 201 to call and use.

[0121] The hardware abstraction layer 203 is a software located between the operating system kernel and the hardware circuit, and is usually used to abstract the hardware to achieve the interaction between the operating system and the hardware circuit at the logic layer.

[0122] The driver layer 204 may be installed with multiple drivers for driving the hardware.

[0123] It should be noted that the application layer 201, the application framework layer 202, the hardware abstraction layer 203 and the driver layer 204 may also include other contents, which are not specifically limited here.

[0124] Based on the above description, the smart home device control method provided in the embodiment of the present application is elaborated in detail below in combination with the accompanying drawings and application scenarios.

[0125] See also Figure 6 , Figure 6 A flow chart of a smart home device control method provided in an embodiment of the present application is shown.

[0126] like Figure 6 As shown, the smart home device control method provided by the present application may include:

[0127] S11. The electronic device is connected to the router.

[0128] Among them, the router is a home router that can provide a Wi-Fi network. The electronic device can search for the Wi-Fi network that can be connected to the surrounding area through the Wi-Fi function, and connect to the router corresponding to the aforementioned Wi-Fi network.

[0129] In some embodiments, the electronic device includes a drop-down interface, which may include a Wi-Fi icon. When an operation is received on the Wi-Fi icon, a Wi-Fi interface may be displayed, which may display a list of routers corresponding to Wi-Fi networks that can be connected. When an operation is received on a router account in the router list, a password input interface may be displayed, which includes a password input box. When it is determined that the password entered in the password input box is correct, the electronic device may connect to the router corresponding to the aforementioned router account.

[0130] S12. The router sends a pilot signal 1 to the electronic device.

[0131] The pilot signal 1 is used to enable the electronic device to estimate channel characteristics.

[0132] The router includes M antennas, and when the electronic device is connected to the router, each antenna of the router can send a pilot signal 1 to the electronic device. For example, if the router has 4 antennas, the router can send the pilot signal 1 to the electronic device through the 4 antennas respectively.

[0133] S13. The electronic device sends a channel state information (CSI) matrix 1 to the cloud server.

[0134] The electronic device includes N antennas, and each antenna can receive the pilot signal 1 from the router. For example, if the electronic device has two antennas 2, the electronic device can receive the pilot signal 1 from the router through the two antennas 2 respectively.

[0135] That is, when the router includes M antennas, the electronic device can receive N*M pilot signals 1 from the router, where N is the number of antennas of the electronic device and M is the number of antennas of the router.

[0136] When receiving each pilot signal, the electronic device can perform channel characteristic estimation according to the pilot signal 1 to obtain the CSI. The channel characteristic estimation is used to estimate the change of the pilot signal 1 during the transmission process from the router to the electronic device.

[0137] Based on this, if the electronic device receives N*M pilot signals 1 from the router, then the electronic device can obtain a CSI matrix 1 according to the N*M pilot signals 1, and the CSI matrix 1 includes N*M CSIs.

[0138] It should be understood that in wireless communications, the transmission of the pilot signal from the transmitter to the receiver is affected by various factors, such as multipath effects, fading, interference, etc. These factors may cause the channel gain and phase of the pilot signal 1 received by the electronic device from the router to change.

[0139] In a multiple-input multiple-output (MIMO) system, each CSI in the CSI matrix 1 is used to represent the change in channel characteristics of the pilot signal 1 during transmission from the router to the electronic device, and the CSI includes a channel gain value and a channel phase value. The channel gain value is used to represent the amplitude change of the pilot signal caused by the influence of the channel during the transmission process. The channel gain value can reflect the attenuation degree of the pilot signal, that is, the weakening of the signal strength during the transmission process. The larger the channel gain value, the smaller the attenuation of the pilot signal in the channel and the stronger the signal strength; conversely, the smaller the channel gain value, the greater the signal attenuation and the smaller the signal strength. The channel phase value is used to represent the phase change of the pilot signal caused by the influence of the channel during the transmission process. The channel phase value can reflect the phase offset of the pilot signal during the transmission process.

[0140] For example, a router may be referred to as an access point (AP). Assuming that the electronic device includes four antennas and the router includes four antennas, the CSI matrix 1 may be as shown in Table 1:

[0141] Table 1-CSI Matrix 1

[0142]

[0143] in, Indicates the CSI corresponding to the pilot signal received by the first antenna of the electronic device from the first antenna of the AP.

[0144] Indicates the CSI corresponding to the pilot signal received by the first antenna of the electronic device from the second antenna of the AP.

[0145] Indicates the CSI corresponding to the pilot signal received by the second antenna of the electronic device from the first antenna of the AP.

[0146] Indicates the CSI corresponding to the pilot signal received by the third antenna of the electronic device from the first antenna of the AP.

[0147] And so on. Indicates the CSI corresponding to the pilot signal received by the 4th antenna of the electronic device from the 4th antenna of the AP.

[0148] S14. Smart home devices are connected to the router.

[0149] Among them, the router is a home router that can provide a Wi-Fi network. The smart home devices can search for the Wi-Fi networks that can be connected nearby through the Wi-Fi function, and connect to the router corresponding to the aforementioned Wi-Fi network. In this way, electronic devices and multiple smart home devices in the home can form a home local area network (LAN), and electronic devices can control multiple smart home devices.

[0150] In some embodiments, the smart home device can be connected to the router through an electronic device; the electronic device may include a smart home application (APP), the smart home APP includes a home page interface, and the home page interface includes an add control. When an operation to the add control is received, the electronic device approaches the smart home device of the router to be connected, and searches (can be searched through the Bluetooth function) for devices that can be connected, and displays a scanning interface. When the smart home device is searched, the electronic device can display an account and password input interface. Through the account and password input interface, the account and password of the router connected to the electronic device can be sent to the smart home device, and the smart home device can connect to the same router with the electronic device through the aforementioned account and password.

[0151] For example, the home page interface can be seen Figure 8 For the interface shown in (a), you can refer to Figure 8 The control 1001 in the interface shown in (a) of FIG. 1001; the scanning interface can be seen in FIG. Figure 8 The interface shown in (b) in the figure; the account and password input interface can be found in Fig. 9 The interface shown in (a).

[0152] S15. The smart home device sends a pilot signal 2 to the router.

[0153] Among them, the pilot signal 2 is used to enable the smart home device to estimate the channel characteristics.

[0154] The router includes M antennas, and when the smart home device is connected to the router, each antenna of the router can send a pilot signal 2 to the smart home device. For example, if the router has 4 antennas, the router can send the pilot signal 2 to the smart home device through the 4 antennas respectively.

[0155] S16. The smart home device sends a channel state information (CSI) matrix 2 to the cloud server.

[0156] The smart home device includes N antennas, and each antenna can receive the pilot signal 2 from the router. For example, if the smart home device has two antennas, the smart home device can receive the pilot signal 2 from the router through the two antennas respectively.

[0157] That is, when the router includes M antennas, the smart home device can receive R*M pilot signals 2 from the router, where R is the number of antennas of the smart home device, and M is the number of antennas of the router.

[0158] When receiving each pilot signal 2, the smart home device can estimate the channel characteristics according to the pilot signal 2 to obtain the CSI. The channel characteristic estimation is used to estimate the change of the pilot signal 2 during the transmission process from the router to the smart home device.

[0159] Based on this, if the smart home device receives N*M pilot signals 2 from the router, then the smart home device can obtain a CSI matrix 2 according to the N*M pilot signals 2, and the CSI matrix 2 includes N*M CSIs.

[0160] It should be understood that in wireless communication, the transmission of pilot signal 2 from the transmitting end to the receiving end will be affected by various factors, such as multipath effect, fading, interference, etc. These factors will cause the channel gain and phase of pilot signal 2 received by the smart home device from the router to change.

[0161] Among them, in the MIMO system, each CSI is used to indicate the change in the channel characteristics of the pilot signal 2 during the transmission from the router to the smart home device, and the CSI includes the value of the channel gain and the value of the channel phase. The value of the channel gain is used to indicate the amplitude change of the pilot signal caused by the influence of the channel during the transmission process. The value of the channel gain can reflect the attenuation degree of the pilot signal, that is, the weakening of the signal strength during the transmission process. The larger the value of the channel gain, the smaller the attenuation of the pilot signal in the channel and the stronger the signal strength; conversely, the smaller the value of the channel gain, the greater the signal attenuation and the smaller the signal strength. The value of the channel phase is used to indicate the phase change of the pilot signal caused by the influence of the channel during the transmission process. The value of the channel phase can reflect the phase offset of the pilot signal during the transmission process.

[0162] Based on this, each smart home device can connect to the router with a password, and the router can send a pilot signal 2 to each smart home device. Each smart home device can obtain a CSI matrix 2 according to the pilot signal 2 and send the CSI matrix 2 to the cloud server, or each smart home device can send the obtained CSI matrix 2 to the router, and the router sends it to the cloud server, such as Figure 7 As shown, through the CSI matrix 2 of each smart home device, the cloud server can determine the channel performance of the router's pilot signal relative to each smart home device (each room).

[0163] For example, assuming that there are 3 smart home devices, each of which includes 2 antennas, and the router includes 4 antennas, the CSI matrix 1 can be shown in Table 2:

[0164] Table 2 - CSI Matrix

[0165]

[0166] Among them, A11 represents the CSI corresponding to the pilot signal received by the first antenna of the smart home device 1 from the first antenna of the AP.

[0167] A12 represents the CSI corresponding to the pilot signal received by the first antenna of the smart home device 1 from the second antenna of the AP.

[0168] By analogy, C24 represents the CSI corresponding to the pilot signal received by the second antenna of the smart home device 3 from the fourth antenna of the AP.

[0169] S17. The smart home device sends related information to the cloud server.

[0170] The associated information includes the name of the smart home device, room information and user identification (ID); any two parameters in the associated information correspond one to one, that is, any one parameter in the associated information is associated with the remaining parameters in the associated information.

[0171] In some embodiments, the spatial information is a room name.

[0172] In some embodiments, the user identification includes an account of a smart home APP, and the account of the smart home APP includes but is not limited to at least one parameter of an identity ID, a mobile phone number, a user name, an email address, etc.

[0173] During the process of connecting the smart home device to the router through the electronic device, after the electronic device sends the account and password of the router connected to the electronic device to the smart home device, the electronic device can also display a name setting interface. Through operations on the name setting interface, the electronic device can set the smart home device name and room information, and send the smart home device name, room information and user ID to the cloud server.

[0174] Alternatively, after the electronic device sets the smart home device name and room information, the electronic device can send the smart home device name, room information and user ID to the smart home device, so that the smart home device can send the smart home device name, room information and user ID to the cloud server.

[0175] The name setting interface can be found in Fig. 9 The interface shown in (b) will not be described in detail here.

[0176] Based on this, the cloud server can receive the associated information of multiple smart home devices. The cloud server can establish a smart home device table with a user ID, which includes multiple room information and multiple smart home devices corresponding to each room information.

[0177] For example, when the user ID is user ID-1, the multiple room information is 3 room information, and the 3 room information is 3 room names, namely bedroom A, bedroom B and lounge, as shown in Table 3:

[0178] Table 3- Table of smart home devices corresponding to a user

[0179]

[0180] Among them, in the above table, user ID-1 is associated with 3 room names, namely bedroom A, bedroom B and lounge. The smart home devices in bedroom A include lights, fans, air conditioners and TVs, the smart home devices in bedroom B include lights and air conditioners, and the smart home devices in the lounge include lights.

[0181] S18. The smart home device obtains multiple received signal strength indicator (RSSI) values ​​1.

[0182] Among them, each received signal strength indicator value 1 is used to represent the signal strength of the wireless signal received by the smart home device from each router.

[0183] The larger the received signal strength indicator value 1 is, the higher the signal strength of the wireless signal received by the smart home device from the router is; the smaller the received signal strength indicator value 1 is, the lower the signal strength of the wireless signal received by the smart home device from the router is.

[0184] After the router is connected to the smart home device, the smart home device can scan (detect) the wireless signals of multiple surrounding routers (routers corresponding to received signal strength indication values ​​greater than a preset strength threshold) at preset time intervals, and obtain the received signal strength indication value 1 corresponding to each router.

[0185] It should be noted that the number of smart home devices here may be multiple, all of which are smart home devices connected to a router connected to an electronic device. After each smart home device is connected to the router, it can scan the wireless signals of multiple routers around it at preset time intervals to obtain multiple received signal strength indication values ​​1 of each smart home device relative to the multiple routers.

[0186] Through the multiple received signal strength indication values ​​1 of each smart home device, the cloud server can determine the signal strength distribution of the wireless signals of the multiple routers acquired by each smart home device in the multiple smart home devices.

[0187] For example, when the number of routers (APs) is 5 and the number of smart home devices is 3, the received signal strength indicator value 1 obtained by the three smart home devices may be as shown in the following Table 4:

[0188] Table 4-3 Received signal strength indicator values ​​of 5 APs scanned by 3 smart home devices 1

[0189]

[0190] In the above table, the value in each cross cell is the RSSI value of the wireless signal received by the smart home device from the router.

[0191] The -20dB in the second row indicates that the RSSI value of the wireless signal received by smart home device 1 from AP1 is -20dB.

[0192] The -35dB in the second row indicates that the RSSI value of the wireless signal received by the smart home device 1 from the AP2 is -35dB.

[0193] The -35dB in the second row indicates that the RSSI value of the wireless signal received by the smart home device 1 from the AP3 is -35dB.

[0194] The -21dB in the third row indicates that the RSSI value of the wireless signal received by the smart home device 2 from the AP1 is -21dB.

[0195] The -35dB in the third row indicates that the RSSI value of the wireless signal received by the smart home device 2 from the AP2 is -35dB.

[0196] The -36dB in the third row indicates that the RSSI value of the wireless signal received by the smart home device 2 from the AP 3 is -36dB.

[0197] The -60dB in the fourth row indicates that the RSSI value of the wireless signal received by the smart home device 3 from the AP1 is -60dB.

[0198] The -70dB in the fourth row indicates that the RSSI value of the wireless signal received by the smart home device 3 from the AP 4 is -70dB.

[0199] The -90dB in the fourth row indicates that the RSSI value of the wireless signal received by the smart home device 3 from the AP 5 is -90dB.

[0200] The blank part in Table 3 indicates that the smart home device cannot scan the AP.

[0201] The intersection of the smart home device 1 and AP4 in the second row is blank, indicating that the smart home device 1 cannot scan the wireless signal of AP3.

[0202] The intersection of the smart home device 1 and AP5 in the second row is blank, indicating that the smart home device 1 cannot scan the wireless signal of AP3.

[0203] The intersection of the smart home device 2 and AP4 in the third row is blank, indicating that the smart home device 1 cannot scan the wireless signal of AP3.

[0204] The intersection of the smart home device 2 and AP5 in the third row is blank, indicating that the smart home device 1 cannot scan the wireless signal of AP3.

[0205] The intersection of the smart home device 3 and AP2 in the fourth row is blank, indicating that the smart home device 1 cannot scan the wireless signal of AP2.

[0206] The intersection of the smart home device 3 and AP3 in the fourth row is blank, indicating that the smart home device 1 cannot scan the wireless signal of AP3.

[0207] S19. The smart home device sends multiple received signal strength indication values ​​1 to the cloud server.

[0208] After obtaining multiple received signal strength indication values ​​1, each smart home device can send multiple received signal strength indication values ​​1 to the cloud server, so that the cloud server can receive multiple received signal strength indication values ​​1 of each smart home device.

[0209] S20: The electronic device receives a first voice command.

[0210] The first voice command is used to control a smart home device in the room where the electronic device is located.

[0211] The first voice command may include control information, room information and the name of the home appliance type; for example, the control information is: turn on, the room information is: bedroom B, the name of the home appliance type is: light, and the first voice command is: turn on the light in bedroom B.

[0212] The first voice command may include control information and the name of the home appliance type; for example, the control information is: turn on, the name of the home appliance type is: light, and the first voice command is: turn on the light.

[0213] The electronic device includes a voice assistant application. Based on a wake-up word, the voice assistant application can receive a first voice command after being woken up by a user.

[0214] For example, the first voice command is: turn on the light; the voice assistant application may be YOYO, and after receiving the user voice input "Hello, YOYO", YOYO can be woken up, so that YOYO can receive the voice instruction "turn on the light" input by the user.

[0215] S21. The electronic device obtains a plurality of received signal strength indication values ​​2.

[0216] Each received signal strength indicator value 2 is used to indicate the signal strength of the wireless signal received by the electronic device from each router.

[0217] After the voice assistant application receives the first voice command, the first voice command may be sent to the smart home application.

[0218] Thus, when receiving the first voice command, the smart home application can obtain multiple received signal strength indication values ​​2.

[0219] The larger the received signal strength indication value 2 is, the higher the signal strength of the wireless signal received by the electronic device from the router is; the smaller the received signal strength indication value 2 is, the lower the signal strength of the wireless signal received by the electronic device from the router is.

[0220] After receiving the first voice command, the electronic device can scan the wireless signals of multiple routers around it and obtain the received signal strength indicator value 1 corresponding to each router.

[0221] For example, if the number of routers is 5, then the number of received signal strength indicator values ​​2 is 5.

[0222] For example, when the number of routers is 5, the received signal strength indicator value 2 obtained by the electronic device may be as shown in the following Table 5:

[0223] Table 5-Received signal strength indicator values ​​2 of the five APs scanned by the electronic device

[0224]

[0225] In the above table, the value in each cross cell is the RSSI value of the wireless signal received by the electronic device from the router.

[0226] The -60dB in the second row indicates that the RSSI value of the wireless signal received by the electronic device from AP1 is -60dB.

[0227] The -70 dB in the second row indicates that the RSSI value of the wireless signal received by the electronic device from AP4 is -70 dB.

[0228] The -91dB in the second row indicates that the RSSI value of the wireless signal received by the electronic device from AP5 is -91dB.

[0229] The blank space in the intersection of the electronic device and AP2 in the second row indicates that the electronic device cannot scan the wireless signal of AP2.

[0230] The blank space in the intersection of the electronic device and AP3 in the second row indicates that the electronic device cannot scan the wireless signal of AP3.

[0231] S22. The electronic device sends a first voice command, multiple received signal strength indications 2 and a user ID to the cloud server.

[0232] After obtaining the first voice command and the signal strength indication 2 , the smart home application may send the first voice command and the signal strength indication 2 to the cloud server.

[0233] In addition, the smart home application may send a user ID to the cloud server while sending the first voice command and the signal strength indication 2 to the cloud server.

[0234] Among them, the specific implementation method of the user ID can refer to the relevant description of the user ID in S17, which will not be repeated here.

[0235] S23. The cloud server determines whether the first voice command carries room information.

[0236] When receiving the first voice command, the cloud server can parse the first voice command. If it is determined that the first voice command includes control information and the name of the home appliance type, the cloud server can determine that the first voice command does not carry room information.

[0237] If it is determined that the first voice command includes control information, room information and the name of the home device type, the cloud server can determine that the first voice command carries the room information. In this way, the cloud server can determine the user ID in the cloud server that is the same as the user ID in the first voice command, and determine the room information corresponding to the user ID that is the same as the room information in the first voice command, and determine the smart home device of the home device type associated with the room information.

[0238] Combined with Table 3, for example, the user ID is user ID-1, the room information is: bedroom B, the name of the home device type is: light, and the first voice command is: turn on the light in bedroom B. Then, the cloud server can determine the room information bedroom B associated with user ID-1 from the cloud server, and determine the smart home device of the home device type associated with bedroom B.

[0239] When the first voice command does not carry room information, the cloud server can execute S24; when the first voice command carries room information, the cloud server can directly control the target smart home device of the home device type associated with the room information, and the cloud server can execute S29.

[0240] S24. The cloud server determines whether there is one smart home device belonging to the home device type.

[0241] When the first voice command does not carry room information, the cloud server can determine the user ID in the cloud server that is the same as the user ID in the first voice command, and determine multiple smart home devices corresponding to the user ID, that is, multiple smart home devices belonging to the home space, and determine whether there is one smart home device belonging to the home device type.

[0242] Combined with Table 3, for example, the user ID is user ID-1, and all the smart home devices corresponding to the user ID include: 3 lamps, 1 fan, 2 air conditioners and 1 TV. If the home device type is lamp, then there is not 1 smart home device belonging to the home device type. If the home device type is TV, then there is 1 smart home device belonging to the home device type.

[0243] When there is less than one smart home device belonging to the home device type among the multiple smart home devices corresponding to the user ID, the cloud server can execute S25; when there is one smart home device belonging to the home device type among the multiple smart home devices corresponding to the user ID, the cloud server can directly control the target smart home device belonging to the home device type, and the cloud server can execute S29.

[0244] S25. The cloud server determines a plurality of distance values ​​1 between a plurality of received signal strength indication values ​​1 and a plurality of received signal strength indication values ​​2 respectively.

[0245] Based on the above description, there may be multiple smart home devices in the home space, all of which are smart home devices connected to a router connected to the electronic device. After each smart home device is connected to the router, it can scan the wireless signals of multiple routers around it at a preset time interval, obtain the received signal strength indication value 1 corresponding to each router, and send multiple received signal strength indication values ​​1 to the cloud server; when the electronic device receives the first voice command, it can obtain multiple received signal strength indication values ​​2, and the cloud server sends multiple received signal strength indication values ​​2.

[0246] In this way, the cloud server can receive multiple received signal strength indication values ​​1 at preset time intervals. If multiple received signal strength indication values ​​2 are received, the cloud server can calculate the distance (Euclidean distance) values ​​between the multiple received signal strength indication values ​​1 received before the current moment and the received signal strength indication value 2, thereby obtaining multiple distance values ​​1.

[0247] Among them, each distance value 1 (absolute value of the distance value) is used to indicate the relative distance between the electronic device and each smart home device, and is also used to indicate the difference / similarity between the received signal strength indication value 2 obtained by the electronic device and the received signal strength indication value 1 obtained by each smart home device. The smaller the distance value 1 is, the closer the distance between the electronic device and the smart home device is; the larger the distance value 1 is, the farther the distance between the electronic device and the smart home device is.

[0248] Through RSSI value 2 and RSSI value 1, a sparse matrix about the router can be formed, so that the fingerprint similarity between the electronic device and multiple smart home devices can be determined, that is, the distance between the electronic device and the multiple smart home devices.

[0249] For example, when the number of routers (APs) is 5 and the number of smart home devices is 3, the relationship between all received signal strength indication values ​​1 obtained by the three smart home devices and the multiple received signal strength indication values ​​2 obtained by the electronic device can be shown in the following Table 6:

[0250] Table 6-3 Received signal strength indicator values ​​of smart home devices and electronic devices

[0251]

[0252] Based on the above table, the cloud server can calculate the distance values ​​between the multiple received signal strength indication values ​​2 of the electronic device and the multiple received signal strength indication values ​​1 of each smart home device.

[0253] In the above table, for the cross grids where the electronic device does not obtain the received signal strength indicator value 2 of the AP, it is filled with the signal-to-noise boundary -120dB; for the cross grids where the smart home device does not obtain the received signal strength indicator value 2 of the AP, it is filled with the signal-to-noise boundary -120dB.

[0254] In some embodiments, the formula for calculating the plurality of distance values ​​1 is as follows:

[0255] .

[0256] in, Indicates electronic equipment, Indicates Smart home devices, Indicates Received the first The received signal strength indicator value of each AP, Indicates that the electronic device has received The received signal strength indicator value of each AP.

[0257] S26. The cloud server determines whether, among the smart home devices belonging to the home device type, the number of smart home devices corresponding to the distance value 1 less than the threshold 1 among multiple distance values ​​1 is 1.

[0258] When the number of smart home devices corresponding to the distance value 1 less than the threshold 1 among multiple distance values ​​1 of the smart home devices belonging to the home device type is not 1, it indicates that there may be two or more smart home devices that are close to the electronic device, for example, Figure 2 In the case shown, two lights are distributed on both sides of the wall, and one of the lights is located in the same room as the electronic device. The cloud server can determine that there are two or more distance values ​​1 that are less than the threshold 1. The number of distance values ​​1 can be expressed by the following formula:

[0259] .

[0260] Among the smart home devices belonging to the home device type, when there is one smart home device corresponding to the distance value 1 less than the threshold 1 among multiple distance values ​​1, it means that there may be only one smart home device that is close to the electronic device. For example, Figure 1 In the case shown, one lamp and the electronic device are located in the same room, and the other lamp is far away from the electronic device. The cloud server can determine that there is a distance value 1 that is less than the threshold value 1. The number of distance values ​​1 can be expressed by the following formula:

[0261] .

[0262] Based on this, among the smart home devices belonging to the home device type, the number of smart home devices corresponding to the distance value 1 less than the threshold 1 among the multiple distance values ​​1 is not 1, and the cloud server can execute S27; among the smart home devices belonging to the home device type, when the number of smart home devices corresponding to the distance value 1 less than the threshold 1 among the multiple distance values ​​1 is 1, the cloud server can directly control the target smart home device corresponding to the distance value 1 less than the threshold 1 among the smart home devices belonging to the home device type, and the cloud server can execute S29.

[0263] S27. Determine multiple distance values ​​2 between multiple CSI matrices 2 and CSI matrix 1 respectively.

[0264] Based on the above description, after the electronic device is connected to the router, CSI matrix 1 can be obtained and sent to the cloud server; after the smart home device is connected to the router, CSI matrix 2 can be obtained and sent to the cloud server.

[0265] In this way, the cloud server can receive CSI matrix 1. The number of smart home devices may be multiple, and the cloud server can receive multiple CSI matrices 2. If a first voice command is received, the cloud server can calculate the distance values ​​2 between multiple CSI matrices 2 and CSI matrix 1 respectively, thereby obtaining multiple distance values ​​2.

[0266] Each distance value 2 is used to indicate the difference in channel characteristics between the electronic device and each smart home device, and is also used to indicate the relative distance between the electronic device and the smart home device. The larger the distance value 2, the greater the difference in channel characteristics between the electronic device and the smart home device, and the farther the distance between the electronic device and the smart home device; the smaller the distance value 2, the greater the similarity in channel characteristics between the electronic device and the smart home device, and the closer the distance between the electronic device and the smart home device.

[0267] For example, when the number of routers (APs) is 5 and the number of smart home devices is 3, the relationship between the three CSI matrices 2 of the three smart home devices and the CSI matrix 1 of the electronic device can be shown in the following Table 7:

[0268] Table 7-3 CSI matrix of smart home devices and electronic devices

[0269]

[0270] Based on the above table, the cloud server can calculate the distance value 2 between the CSI matrix 1 of the electronic device and the CSI matrix 2 of each smart home device.

[0271] In some embodiments, taking CSI matrix 2 as an example, the CSI matrix 2 Indicates the AP Antennas for smart home devices The channel gain and phase change of the antenna are Let’s explain on behalf of the device:

[0272] .

[0273] in, is the value of the channel gain, is the value of the channel phase, is an imaginary unit. In order to more intuitively feedback the physical characteristics of the channel, the CSI matrix 2 The polar coordinates of can be expressed as:

[0274] .

[0275] The complex number is represented as:

[0276] .

[0277] Simply expressed as: , the complex plane coordinates are .

[0278] in, .

[0279] For example, the polar coordinates are , then it means , the complex plane coordinates are (3, 4).

[0280] Through the above formula, the cloud server can convert each CSI in a CSI matrix into complex plane coordinates, and then, the CSI matrix 1 of the device electronic device and the CSI matrix 2 of the smart home device can be converted into complex plane matrices, and the cloud server can calculate multiple distance values ​​2 based on the complex plane coordinates.

[0281] In some embodiments, assuming that a router (AP) includes q antennas, a smart home device d includes r antennas, and an electronic device includes m antennas, a CSI matrix 2 of the smart home device d to the AP is:

[0282] .

[0283] The CSI matrix 1 of the electronic device to the AP is:

[0284] .

[0285] Since the number of antennas of the smart home device d and the number of antennas of the electronic device may be different, that is, r≠m, the two CSI matrices mentioned above may be dimensionally transformed before calculating the multiple distance values ​​2, that is:

[0286] .

[0287] .

[0288] but and The similarity can be used: Euclidean distance, which represents the difference in channel gain and phase.

[0289] .

[0290] S28. Determine, among the smart home devices belonging to the home device type, a smart home device corresponding to the smallest distance value 2 among multiple distance values ​​2.

[0291] Based on the above description, it can be known that for smart home devices belonging to the home device type, the smart home device corresponding to the smallest distance value 2 among multiple distance values ​​2 can be determined to be the closest to the electronic device and located in the same room. During voice control, the smart home device can be determined as the target smart home device for control.

[0292] Based on the above description, and Fig.10 It can be seen that the cloud server can collect the RSSI value 1 of each smart home device and the RSSI value 2 of the electronic device, as well as the CSI matrix 2 of each smart home device and the CSI matrix 1 of the electronic device.

[0293] Thus, when the first voice command does not carry room information, and there is not one smart home device belonging to the home device type among multiple smart home devices, the cloud server can determine multiple distance values ​​1 between the RSSI value 2 of the electronic device and the RSSI value 1 of the multiple smart home devices received most recently, that is, RSSI similarity gap solution, and determine whether there is one smart home device corresponding to a distance value 1 less than threshold 1 among multiple distance values ​​1 among the smart home devices belonging to the home device type, that is, similarity gap threshold voting. When the cloud server determines that there is one smart home device corresponding to a distance value 1 less than threshold 1 among multiple distance values ​​1, the cloud server can take the smart home device belonging to the smart home device type and corresponding to the distance value 1 less than threshold 1 as the target smart home device. That is to say, when the voting result is not greater than 1, the cloud server can take the smart home device belonging to the smart home device type and corresponding to the smallest similarity gap as the target smart home device.

[0294] When the cloud server determines that there is not 1 smart home device corresponding to the distance value 1 less than the threshold 1 among multiple distance values ​​1, it continues to determine the target smart home device through the CSI judgment method. That is to say, when the voting result is greater than 1, the cloud server can continue to determine the target smart home device through the CSI judgment method.

[0295] Among them, RSSI value 1 and RSSI value 2 in the above collected data are benchmark data, and CSI matrix 1 and CSI matrix 2 are mobile comparison data.

[0296] Combination Fig.11, taking the collection of RSSI values ​​1 of multiple smart home devices and CSI matrices 2 of multiple smart home devices as an example for explanation: after each smart home device is connected to the router, the CSI matrix 2 can be obtained through the router (AP) connected to each smart home device; after each smart home device is connected to the router, the room information of the room where the smart home device is located and the name of the smart home device can be set, and the wireless signals of the surrounding routers can be scanned to obtain the RSSI value 1, and upload it to the cloud server, wherein the room information and the name of the smart home device are associated with the RSSI value 1, that is, the relationship between the room information and the name of the smart home device and the RSSI value 1 can be constructed.

[0297] S29. The cloud server sends a control instruction to the target smart home device.

[0298] The control instruction is determined according to the control information in the first voice instruction and is used to control the target smart home device.

[0299] For example, if the control information in the first voice command is to turn on, the control command is used to request the target smart home device to turn on.

[0300] For another example, if the control information in the first voice command is to turn off, the control command is used to request the target smart home device to turn off.

[0301] Based on S23, if the first voice command carries room information, the cloud server can determine the smart home device belonging to the home device type associated with the room information among all smart home devices corresponding to the user ID as the target smart home device, and send a control command to the target smart home device.

[0302] Based on S24, if the first voice command does not carry room information, and there is one smart home device of the home device type among all the smart home devices corresponding to the user ID, the cloud server determines the one smart home device of the home device type among all the smart home devices corresponding to the user ID as the target smart home device, and sends a control command to the target smart home device.

[0303] Based on S25-S26, if among all the smart home devices corresponding to the user ID, there is not one smart home device belonging to the home device type, and among the smart home devices belonging to the home device type, there is one smart home device corresponding to a distance value 1 among multiple distance values ​​1 that is less than threshold 1, then the cloud server can determine the smart home device corresponding to a distance value 1 among multiple distance values ​​1 that is less than threshold 1 among the smart home devices belonging to the home device type as the target home device, and send a control instruction to the target smart home device.

[0304] Based on S28, if among the smart home devices belonging to the home device type, there is more than one smart home device corresponding to a distance value 1 less than threshold 1 among multiple distance values ​​1, the cloud server can determine the smart home device corresponding to the smallest distance value 2 among multiple distance values ​​2 among the smart home devices belonging to the home device type as the target home device, and send a control instruction to the target smart home device.

[0305] The smart home device control method of the present application, since each smart home device is associated with room information, when the first voice command carries the room information, the cloud server can directly determine the smart home device to be controlled based on the room information. In this way, the cloud server can determine the smart home device associated with the room information among all the smart home devices corresponding to the user ID as the target smart home device, and send a control instruction to the target smart home device. In this way, when the first voice command carries the room information, the target smart home device of the home device type associated with the room information among all the smart home devices corresponding to the user ID can be directly controlled.

[0306] When the first voice command does not carry room information, it can be determined based on the name of the home device type in the first voice command whether there is one smart home device of the home device type among the smart home devices corresponding to the user ID. If there is one, the cloud server can directly determine the smart home device of the home device type among the smart home devices corresponding to the user ID as the target smart home device, and send a control instruction to the target smart home device. In this way, when the first voice command does not carry room information and there is one smart home device of the home device type among the smart home devices corresponding to the user ID, the target smart home device of the home device type among the smart home devices corresponding to the user ID can be directly controlled.

[0307] If the first voice command does not carry room information, and there is more than one smart home device of the home device type among the smart home devices corresponding to the user ID:

[0308] After each smart home device is connected to the router, it can periodically send RSSI value 1 to the cloud server. When the electronic device receives the first voice command, it can send RSSI value 2 to the cloud server. In this way, the cloud server can determine the RSSI value 2 of the electronic device and multiple distance values ​​1 of the RSSI values ​​1 of multiple smart home devices received most recently when the first voice command does not carry room information and there is more than one smart home device belonging to the home device type among multiple smart home devices. In this way, if the cloud server determines that there is one smart home device corresponding to the distance value 1 less than the threshold 1 among multiple distance values ​​1 among the smart home devices belonging to the home device type, it can be determined that the smart home device corresponding to the distance value 1 less than the threshold 1 is closest to the electronic device. The cloud server can determine the smart home device corresponding to the distance value 1 less than the threshold 1 as the target home device, and send a control instruction to the target smart home device. In this way, when the first voice command does not carry room information, the target smart home device belonging to the home device type and the closest to the electronic device can be determined by the RSSI value 2 of the electronic device and the multiple RSSI values ​​1 of multiple smart home devices, and the target smart home device can be controlled.

[0309] After the electronic device is connected to the router, it can send CSI matrix 1 to the cloud server. After each smart home device is connected to the router, it can send CSI matrix 2 to the cloud server. In this way, among the smart home devices belonging to the home device type, when the number of smart home devices corresponding to the distance value 1 less than the threshold 1 in multiple distance values ​​1 is not 1, the cloud server can determine the multiple CSI matrices 2 corresponding to the multiple smart home devices and the multiple distance values ​​2 of the CSI matrix 1 of the electronic device, and determine the smart home device corresponding to the smallest distance value 2 in the multiple distance values ​​2 among the smart home devices belonging to the home device type as the target smart home device. In this way, it can prevent the situation where the RSSI wall attenuation is not sufficient to reflect the distance between the electronic device and each smart home device. It can be achieved that when the first voice command does not carry room information, belongs to the home device type, and the number of smart home devices close to the electronic device is greater than 1, the target smart home device closest to the electronic device can be determined through the CSI matrix 1 of the electronic device and the multiple CSI matrices 2 of the multiple smart home devices, and the target smart home device can be controlled.

[0310] Based on this, when the first voice command does not carry room information and the number of smart home devices belonging to the home device type among the multiple smart home devices corresponding to the user ID is not 1, the cloud server can determine the smart home device closest to the electronic device through RSSI and CSI, avoiding the problem that the difference in signal strength is small in indoor scenarios and precise positioning cannot be performed. Through the process of connecting the electronic device and the smart home device to the home Wi-Fi, the position of the signal complex plane in the space where the smart home device is located is characterized, thereby guiding the problem of smart home device control in the voice control scenario even when the user inputs less voice information, thereby avoiding excessive voice information from the user.

[0311] Based on some of the aforementioned embodiments, the smart home device control method provided by the present application is introduced below.

[0312] Exemplarily, the present application provides a method for controlling a smart home device.

[0313] The method is applied to a server, which is respectively connected to a first electronic device and Q second electronic devices, the first electronic device is used to receive a first voice command and send the first voice command to the server, the Q second electronic devices are all smart home devices, the first electronic device is connected to the Q second electronic devices, the Q second electronic devices are all located in a target space, the target space includes multiple subspaces, and any one of the Q second electronic devices is located in a corresponding one of the multiple subspaces.

[0314] The specific implementation of the first electronic device can be found in Figure 4 The structure of the electronic device 100, and Figure 5 The software architecture of the electronic device 100 will not be described in detail here.

[0315] In some embodiments, the target space is a home space, the multiple subspaces are multiple rooms in the home space, and the first identifier includes room name information of the room where the target smart home device is located.

[0316] See also Fig.12 , Fig.12 A flow chart of a smart home device control method provided in an embodiment of the present application is shown.

[0317] like Fig.12 As shown, the smart home device control method provided by the present application may include:

[0318] S301. Receive Q first signal strength values ​​respectively sent by Q second electronic devices, where the first signal strength value is used to indicate the strength of a wireless signal between the second electronic device and a first router.

[0319] The specific implementation of the Q second electronic devices can be found in Figure 6 Related descriptions of multiple smart home devices in.

[0320] For a specific implementation of the first signal strength value, see Figure 6 Related description of the first received signal strength value in S19.

[0321] For the specific implementation of S301, please refer to Figure 6 The relevant description of S19 in will not be repeated here.

[0322] S302, receiving a first voice command and a second signal strength value sent by a first electronic device, where the first voice command is used to control a target smart home device in a subspace where the first electronic device is located, and the second signal strength value is used to indicate a wireless signal strength between the first electronic device and a first router.

[0323] For the specific implementation of the first voice command, please refer to Figure 6 Related description of the first voice instruction in S22.

[0324] The specific implementation method of the second signal strength value can be found in Figure 6 Related description of the received signal strength value 2 in S22.

[0325] For the specific implementation of S302, please refer to Figure 6 The relevant description of S22 in will not be repeated here.

[0326] S303. If the first voice command does not include the first identifier of the subspace where the target smart home device is located, and the number of second electronic devices of the same type as the target smart home device among the Q second electronic devices is not one, the target smart home device is determined according to the Q first signal strength values ​​and the second signal strength values, and the first voice command includes control information and the type of the target smart home device.

[0327] For the specific implementation of the first identifier, please refer to Figure 6 Related description of the room information in S22-S23.

[0328] For specific implementation methods of the target smart home device type, please refer to Figure 6 Relevant description of the target types in S22 and S24 in.

[0329] For the specific implementation of S303, please refer to Figure 6 The relevant description of S24 in will not be repeated here.

[0330] S304: Send a control instruction corresponding to the control information to the target smart home device, where the control instruction is used to control the target smart home device.

[0331] For the specific implementation of control instructions, please refer to Figure 6 Related description of the control instructions in S29 in.

[0332] For the specific implementation of S304, please refer to Figure 6 The relevant description of S29 in will not be repeated here.

[0333] In the present application, Q second electronic devices can send Q first signal strength values ​​to the server, and the first electronic device can send a second signal strength value to the server. In this way, when the server receives the first voice command, it can determine the type of target smart home device and the target smart home device closest to the first electronic device through the difference / similarity of the signal strength values ​​between the first electronic device and the Q second electronic devices, thereby controlling the target smart home device. In this way, even if the user forgets the room name or does not know the room name, the smart home device in the room can still be controlled, thereby ensuring the user's experience of using the smart home device.

[0334] In some embodiments, the smart home device control method provided by the present application may include:

[0335] When it is determined that the first voice command does not include the first identifier, and the number of second electronic devices of the same type as the target smart home device among the Q second electronic devices is not one, Q first difference values ​​are obtained according to the Q first signal strength values ​​and the second signal strength values, and the first difference value is used to indicate the distance between the second electronic device and the first electronic device through the difference in wireless signal strength; based on the Q first difference values, the target smart home device is determined, and the target smart home device is the second electronic device corresponding to the difference value among the Q first difference values ​​that is less than the first threshold value among the second electronic devices of the same type as the target smart home device.

[0336] In the above steps, the Q first signal strength values ​​are signal strength values ​​of the Q second electronic devices relative to the first router, and the first router is a router connected to the first electronic device and the Q second electronic devices respectively. Therefore, the difference / similarity of the signal strength values ​​between the Q second electronic devices and the first electronic device can be determined by the difference between the Q first signal strength values ​​and the second signal strength values, so that the target smart home device can be determined according to the difference.

[0337] The specific implementation of the above steps can be found in Figure 6 The relevant description of S25 in will not be repeated here.

[0338] In some embodiments, the smart home device control method provided by the present application may include:

[0339] Receiving Q groups of third signal strength values ​​respectively sent by Q second electronic devices, each group of the Q groups of third signal strength values ​​includes one Q first signal strength value, any group of first signal strength values ​​includes a signal strength value received by any second electronic device from P routers, the P routers include routers corresponding to wireless signal signal strength values ​​greater than a second threshold, the P routers include a first router, the second signal strength values ​​are P, and the P second signal strength values ​​include signal strength values ​​received by the first electronic device from the P routers respectively; obtaining Q first difference values ​​according to the Q first signal strength values ​​and the second signal strength values, including: according to P third signal strength values ​​corresponding to each second electronic device in Q second electronic devices and P second signal strength values ​​corresponding to the first electronic device obtain Q first distance values, and the Q first distance values ​​are respectively used to represent the distances between the Q second electronic devices and the first electronic device; according to the Q first difference values, the target smart home device is determined, including: determining a first number, the first number is the number of second electronic devices corresponding to the first distance values ​​less than the first threshold in the Q first distance values ​​among the second electronic devices of the same type as the target smart home device; when the first number is 1, the second electronic device corresponding to the first number is determined as the target smart home device.

[0340] In some embodiments, the Q groups of third signal strength values ​​are obtained and sent to the server when the Q second electronic devices switch from an unconnected state to a connected state with the first router; the P second signal strength values ​​are obtained when the first electronic device receives the first voice command, and the first voice command and the second signal strength value are sent to the server by the first electronic device after obtaining the second signal strength value.

[0341] The specific implementation of P routers can be found in Figure 6 Related descriptions of multiple routers in .

[0342] The specific implementation method of the P third signal strength values ​​in each group of the Q groups of third signal strength values ​​can be found in Figure 6 Related description of multiple received signal strength indication values ​​1 in.

[0343] The specific implementation of the Q first distance values ​​can be found in Figure 6 Related description of multiple distance values ​​1 in .

[0344] For the specific implementation of the first quantity, please refer to Figure 6 In S26 , among the smart home devices belonging to the home device type, a description is provided of the number of smart home devices corresponding to distance values ​​1 less than threshold 1 among multiple distance values ​​1 .

[0345] The specific implementation of the above steps can be found in Figure 6 The relevant description of S25-S26 in will not be repeated here.

[0346] In some embodiments, the smart home device control method provided by the present application may include:

[0347] A first channel state information matrix sent by a first electronic device is received, where the first channel state information matrix is ​​used to indicate changes in channel characteristics of a first pilot signal during transmission from each antenna of a first router to each antenna of the first electronic device; Q second channel state information matrices sent by Q second electronic devices are received, where each second channel state information matrix in the Q second channel state information matrices is used to indicate changes in channel characteristics of a second pilot signal during transmission from each antenna of the first router to each antenna of each second electronic device; when the first number is not 1, Q second distance values ​​are obtained according to the Q second channel state information matrices and the first channel state information matrix, where the Q second distance values ​​are respectively used to indicate the distances between the Q second electronic devices and the first electronic device through differences in channel characteristics; and a target smart home device is determined according to the Q second distance values, where the target smart home device is a second electronic device corresponding to the smallest second distance value among the Q second distance values ​​among second electronic devices of the same type as the target smart home device.

[0348] In some embodiments, the first pilot signal is sent by the first router to the first electronic device when the first electronic device and the first router switch from an unconnected state to a connected state, and the first channel state information matrix is ​​obtained by the first electronic device performing channel estimation on the first pilot signal and sent to the server; the second pilot signal is sent by the first router to each second electronic device when each second electronic device and the first router switch from an unconnected state to a connected state, and the Q second channel state information matrices are obtained by the Q second electronic devices performing channel estimation on the second pilot signal and sent to the server.

[0349] The specific implementation of the first channel state information matrix can be found in Figure 6 Related description of the channel state information matrix 1 in S13.

[0350] The specific implementation of the Q second channel state information matrices can be found in Figure 6 Related description of multiple channel state information matrices 2 in S16.

[0351] For a specific implementation of the first pilot signal, see Figure 6 Related description of pilot signal 1 of S12.

[0352] The specific implementation of the second pilot signal can be found in Figure 6 Related description of pilot signal 2 in S15.

[0353] The specific implementation of the Q second distance values ​​can be found in Figure 6 Related description of multiple distance values ​​2 of S27.

[0354] The specific implementation of the above steps can be found in Figure 6 The descriptions of S13, S16, and S27-S28 are not repeated here.

[0355] In some embodiments, the first channel state information matrix includes N*M first channel state information, N is the number of antennas of the first electronic device, M is the number of antennas of the first router, each second channel state information matrix includes R*M second channel state information, R is the number of antennas of the second electronic device, and the smart home device control method provided by the present application may include:

[0356] Determine the first polar coordinates of each of the N*M first channel state information, the N*M first channel state information corresponds to the N*M first polar coordinates, each of the first channel state information includes a value of a first channel gain and a value of a first channel phase, and the first polar coordinates are determined according to the value of the first channel gain and the value of the first channel phase; perform coordinate conversion processing on the N*M first polar coordinates through a first conversion relationship to obtain N*M first complex plane coordinates, and the first conversion relationship is used to convert the polar coordinates into complex plane coordinates; obtain a first complex plane matrix according to the N*M first complex plane coordinates; determine R*M second channel state information. The second polar coordinates of each second channel state information in the state information, R*M second channel state information correspond to R*M second polar coordinates, each second channel state information includes the value of the second channel gain and the value of the second channel phase, and the second polar coordinates are determined according to the value of the second channel gain and the value of the second channel phase; through the first conversion relationship, the R*M first polar coordinates are subjected to coordinate conversion processing to obtain Q second complex plane coordinates; according to the R*M second complex plane coordinates of each second channel state information matrix, Q second complex plane matrices are obtained; according to the Q second complex plane matrices and the first complex plane matrix, Q second distance values ​​are obtained.

[0357] The specific implementation of the above steps can be found in Figure 6 The description of converting polar coordinates into complex plane coordinates in S27 will not be repeated here.

[0358] In some embodiments, the smart home device control method provided by the present application may include:

[0359] Receive association information sent by the first electronic device; wherein the association information includes the name of the first device, the user identifier and the second identifier of the subspace where the first device is located, the name of the first device is associated with the user identifier and the second identifier respectively, the first device is any one of the Q second electronic devices, and the association information is sent to the server by the first electronic device when it determines that the first device and the first router are switched from an unconnected state to a connected state.

[0360] The specific implementation of the associated information can be found in Figure 6 Description of the associated information of S17.

[0361] For the specific implementation of each parameter in the association information, please refer to Figure 6 The relevant description of each parameter in the association information in S17.

[0362] The specific implementation of the above steps can be found in Figure 6 The relevant description of S17 in the specification will not be repeated here.

[0363] In some embodiments, the first voice command includes a user identifier, and the Q second electronic devices are all smart home devices associated with the user identifier. The smart home device control method provided by the present application may include:

[0364] Determine whether the first voice instruction includes the first identifier; when the first voice instruction includes the first identifier, determine the target smart home device according to the first identifier, and the target smart home device is a second electronic device among Q second electronic devices that is associated with the first identifier and is of the same type as the target smart home device.

[0365] The specific implementation of the above steps can be found in Figure 6 The relevant description of S23 will not be repeated here.

[0366] In some embodiments, the smart home device control method provided by the present application may include:

[0367] When the first voice instruction does not include the first identifier, the number of second electronic devices of the same type as the target smart home device among the Q second electronic devices is determined; when the number of second electronic devices of the same type as the target smart home device among the Q second electronic devices is 1, the second electronic device of the same type as the target smart home device among the Q second electronic devices is determined as the target smart home device.

[0368] The specific implementation of the above steps can be found in Figure 6 The relevant description of S24 in FIG. 1 is not repeated here.

[0369] In some embodiments, the control information includes control information related to turning on or control information related to turning off.

[0370] For example, the control information includes: close.

[0371] Exemplarily, the present application provides an electronic device, comprising a processor; when the processor executes computer code or instructions in the memory, the electronic device executes the smart home device control method in the foregoing embodiment.

[0372] Exemplarily, the present application provides an electronic device, comprising: a memory and a processor; the memory is coupled to the processor, and the memory is used to store program codes or instructions; the processor is used to call the program codes or instructions in the memory so that the electronic device executes the smart home device control method in the previous embodiment.

[0373] Exemplarily, the present application provides a chip system, which is applied to an electronic device including a memory, a display screen and a sensor; the chip system includes: one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through lines; the interface circuit is used to receive signals from the memory and send signals to the processor, and the signals include computer codes or instructions stored in the memory; when the processor executes the computer code or instructions, the electronic device executes the smart home device control method in the previous embodiment.

[0374] Exemplarily, the present application provides a computer-readable storage medium, in which codes or instructions are stored. When the codes or instructions are run on an electronic device, the electronic device implements the smart home device control method in the foregoing embodiment when executing.

[0375] Exemplarily, the present application provides a computer program product, which, when executed on a computer, enables an electronic device to implement the smart home device control method in the foregoing embodiments.

[0376] In the above embodiments, all or part of the functions can be implemented by software, hardware, or a combination of software and hardware. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer codes or instructions. When the computer program code or instructions are loaded and executed on the computer, the process or function according to the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer code or instructions can be stored in a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be accessed by the computer or a data storage device such as a server or a data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.

[0377] A person skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by a computer program to instruct the relevant hardware, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned method embodiments. The aforementioned storage medium includes: a read-only memory (ROM) or a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

Claims

1. A smart home device control method, characterized in that: The method is applied to a server, the server is connected to a first electronic device and Q second electronic devices respectively, the first electronic device is used to receive a first voice command and send the first voice command to the server, the Q second electronic devices are all smart home devices, the first electronic device is connected to the Q second electronic devices, the Q second electronic devices are all located in a target space, the target space includes multiple subspaces, any second electronic device among the Q second electronic devices is located in a corresponding subspace of the multiple subspaces, and the method includes: receiving a first channel state information matrix sent by the first electronic device, where the first channel state information matrix is ​​used to indicate a change in a channel characteristic of a first pilot signal during a process of being transmitted from each antenna of the first router to each antenna of the first electronic device; receiving Q second channel state information matrices respectively sent by the Q second electronic devices, each of the Q second channel state information matrices being used to represent a change in channel characteristics of a second pilot signal during a process of being transmitted from each antenna of the first router to each antenna of each second electronic device; receiving Q first signal strength values ​​respectively sent by the Q second electronic devices, where the first signal strength values ​​are used to indicate the wireless signal strength between the second electronic devices and the first router; receiving a first voice command and a second signal strength value sent by the first electronic device, wherein the first voice command is used to control a target smart home device in the subspace where the first electronic device is located, and the second signal strength value is used to indicate a wireless signal strength between the first electronic device and the first router; If the first voice instruction does not include the first identifier of the subspace where the target smart home device is located, and the number of second electronic devices of the same type as the target smart home device among the Q second electronic devices is not 1, then according to the Q first signal strength values ​​and the second signal strength values, Q first difference values ​​are obtained, and the first difference values ​​are used to indicate the distance between the second electronic device and the first electronic device through the difference in wireless signal strength, and the first voice instruction includes control information and the type of the target smart home device; If the first number is not 1, obtaining Q second distance values ​​according to the Q second channel state information matrices and the first channel state information matrix, wherein the first number is the number of second electronic devices corresponding to the first difference value less than the first threshold value among the Q first difference values, among second electronic devices of the same type as the target smart home device, and the Q second distance values ​​are respectively used to represent the distances between the Q second electronic devices and the first electronic device through differences in channel characteristics; Determine the target smart home device according to the Q second distance values, where the target smart home device is a second electronic device of the same type as the target smart home device and corresponds to the smallest second distance value among the Q second distance values; A control instruction corresponding to the control information is sent to the target smart home device, where the control instruction is used to control the target smart home device.

2. The method according to claim 1, characterized in that The receiving Q first signal strength values ​​respectively sent by the Q second electronic devices includes: receiving Q groups of third signal strength values ​​respectively sent by the Q second electronic devices, each group of the Q groups of third signal strength values ​​including a first signal strength value, any group of the third signal strength values ​​including a signal strength value received by any second electronic device from P routers, the P routers including routers corresponding to wireless signal strength values ​​greater than a second threshold, the P routers including the first router, the second signal strength values ​​being P, and the P second signal strength values ​​including signal strength values ​​respectively received by the first electronic device from the P routers; The obtaining Q first difference values ​​according to the Q first signal strength values ​​and the second signal strength values ​​includes: Obtaining Q first distance values ​​according to the P third signal strength values ​​corresponding to each of the Q second electronic devices and the P second signal strength values ​​corresponding to the first electronic device, wherein the Q first distance values ​​are respectively used to represent the distances between the Q second electronic devices and the first electronic device; The method further comprises: If the first number is 1, the second electronic devices corresponding to the first number are determined as the target smart home devices.

3. The method according to claim 2, characterized in that The Q group of third signal strength values ​​are acquired and sent to the server when the Q second electronic devices switch from a non-connected state to a connected state with the first router; The P second signal strength values ​​are acquired by the first electronic device when receiving the first voice instruction, and the first voice instruction and the second signal strength value are sent to the server by the first electronic device after acquiring the second signal strength value.

4. The method according to claim 1, characterized in that: The first channel state information matrix includes N*M first channel state information, N is the number of antennas of the first electronic device, M is the number of antennas of the first router, each of the second channel state information matrices includes R*M second channel state information, R is the number of antennas of the second electronic device, and the Q second distance values ​​are obtained according to the Q second channel state information matrices and the first channel state information matrix, including: Determine a first polar coordinate of each of the N*M first channel state information, the N*M first channel state information corresponding to N*M first polar coordinates, each of the first channel state information includes a value of a first channel gain and a value of a first channel phase, and the first polar coordinate is determined according to the value of the first channel gain and the value of the first channel phase; The N*M first polar coordinates are subjected to coordinate conversion processing through a first conversion relationship to obtain N*M first complex plane coordinates, wherein the first conversion relationship is used to convert the polar coordinates into complex plane coordinates; Obtaining a first complex plane matrix according to the N*M first complex plane coordinates; Determine a second polar coordinate of each second channel state information of the R*M second channel state information, the R*M second channel state information corresponds to R*M second polar coordinates, each second channel state information includes a value of a second channel gain and a value of a second channel phase, and the second polar coordinate is determined according to the value of the second channel gain and the value of the second channel phase; Performing coordinate transformation processing on the R*M second polar coordinates through the first transformation relationship to obtain R*M second complex plane coordinates; Obtain Q second complex plane matrices according to the R*M second complex plane coordinates of each second channel state information matrix; The Q second distance values ​​are obtained according to the Q second complex plane matrices and the first complex plane matrix.

5. The method according to claim 4, characterized in that The first pilot signal is sent by the first router to the first electronic device when the first electronic device and the first router switch from an unconnected state to a connected state, and the first channel state information matrix is ​​obtained by the first electronic device performing channel estimation on the first pilot signal and sent to the server; The second pilot signal is sent by the first router to each second electronic device when the state between each second electronic device and the first router is switched from an unconnected state to a connected state, and the Q second channel state information matrices are obtained by the Q second electronic devices performing channel estimation on the second pilot signal and sent to the server.

6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: receiving the associated information sent by the first electronic device; The association information includes the name of the first device, the user identifier, and the second identifier of the subspace in which the first device is located, the name of the first device is associated with the user identifier and the second identifier respectively, the first device is any one of the Q second electronic devices, and the association information is sent to the server by the first electronic device when it determines that the first device and the first router are switched from an unconnected state to a connected state.

7. The method according to claim 6, characterized in that The first voice instruction includes a user identifier, and the Q second electronic devices are all smart home devices associated with the user identifier. After receiving the first voice instruction and the second signal strength value sent by the first electronic device, the method further includes: Determining whether the first voice instruction includes the first identifier; When the first voice instruction includes the first identifier, the target smart home device is determined according to the first identifier, and the target smart home device is a second electronic device among the Q second electronic devices that is associated with the first identifier and is of the same type as the target smart home device.

8. The method according to claim 7, characterized in that The method further comprises: When the first voice instruction does not include the first identifier, determining the number of second electronic devices of the same type as the target smart home device among the Q second electronic devices; When the number of second electronic devices of the same type as the target smart home device among the Q second electronic devices is one, the second electronic device of the same type as the target smart home device among the Q second electronic devices is determined as the target smart home device.

9. The method according to any one of claims 1 to 5, characterized in that The control information includes control information related to opening or control information related to closing.

10. The method according to any one of claims 1 to 5, characterized in that The target space is a home space, the multiple subspaces are multiple rooms in the home space, and the first identifier includes room name information of the room where the target smart home device is located.

11. An electronic device, characterized in that: The electronic device comprises: one or more processors, and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code comprises computer instructions, and the one or more processors call the computer instructions so that the electronic device executes the method as described in any one of claims 1 to 10.

12. A chip system, characterized in that: The chip system is applied to an electronic device, and the chip system includes one or more processors, and the one or more processors are used to call computer instructions so that the electronic device executes the method as described in any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises instructions, and when the instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Voice response equipment determination method and device, storage medium and electronic device

    CN116567807A

  • Voice control method and electronic equipment

    CN116935841A