Control method, device, equipment and storage medium of smart home equipment
By determining the signal angle between the smart home device and the user device and sending an indication message to directly control the smart home device, the problems of complexity and inefficiency in the prior art are solved, and more efficient control of the smart home device is achieved.
Patent Information
- Application Number
- CN202080093436.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-31
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2040-03-31
AI Technical Summary
The control process of existing smart home devices is complicated, resulting in low control efficiency and requires operation in user equipment through home control applications.
By receiving wireless signals between smart home devices and user devices, determining the signal angle, and sending instructions messages to control smart home devices according to meeting specific conditions, communication between user devices and smart home devices is avoided through home control applications Perform.
It improves the control efficiency of smart home devices, simplifies the operation process, and reduces the complexity of user operations.
Smart Images

Figure CN114981734B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a control method, device, equipment and storage medium for smart home devices. Background Art
[0002] At present, with the development of the Internet of Things (IoT), smart home devices have been widely used. Generally, in the process of using smart home devices, users can install home control applications corresponding to the smart home devices in user devices to control the smart home devices based on the home control applications.
[0003] However, currently, it is necessary to install a home control application in the user device and operate on the operation page of the home control application to control the smart home device. In this way, the operation process of controlling the smart home device through the home control application is often complicated, resulting in low control efficiency of the smart home device. Summary of the invention
[0004] The embodiments of the present application provide a control method, device, equipment and storage medium for smart home devices, which can be used to solve the problem of realizing the control of smart home devices. The technical solution is as follows:
[0005] In one aspect, a method for controlling a smart home device is provided, the method comprising:
[0006] Receive a first message, where the first message is a message of a wireless signal sent by a smart home device;
[0007] Determining the signal angle based on the first message;
[0008] If the signal angle satisfies a first condition, a first indication message is sent, where the first indication message is used to instruct the smart home device to perform an operation corresponding to the first condition, where the first condition refers to a condition corresponding to an operation mode of the smart home device.
[0009] On the other hand, a method for controlling a smart home device is provided, the method comprising:
[0010] receiving a second message, where the second message is a message of a wireless signal sent by a user equipment;
[0011] Determining the signal angle based on the second message;
[0012] If the signal angle satisfies a third condition, an operation corresponding to the third condition is performed, where the third condition refers to a condition corresponding to an operation mode of the smart home device.
[0013] In one aspect, a control device for a smart home device is provided, the device comprising:
[0014] A first receiving module, configured to receive a first message, where the first message is a message of a wireless signal sent by a smart home device;
[0015] A first determining module, configured to determine the signal angle based on the first message;
[0016] The first sending module is used to send a first indication message if the signal angle meets a first condition, wherein the first indication message is used to instruct the smart home device to perform an operation corresponding to the first condition, and the first condition refers to a condition corresponding to an operation mode of the smart home device.
[0017] In another aspect, a control device for a smart home device is provided, the device comprising:
[0018] A second receiving module, configured to receive a second message, where the second message is a message of a wireless signal sent by a user equipment;
[0019] A second determining module, configured to determine the signal angle based on the second message;
[0020] An execution module is used to execute an operation corresponding to a third condition if the signal angle satisfies the third condition, wherein the third condition refers to a condition corresponding to an operation mode of the smart home device.
[0021] On the one hand, a device is provided, comprising a processor and a memory, wherein the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement any of the methods described in the above-mentioned one aspect, or the at least one instruction is used to be executed by the processor to implement any of the methods described in the above-mentioned other aspect.
[0022] On the one hand, a computer-readable storage medium is provided, on which instructions are stored, and when the instructions are executed by a processor, any of the methods described in the above-mentioned one aspect is implemented, or when the instructions are executed by a processor, any of the methods described in the above-mentioned other aspect is implemented.
[0023] In one aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute any of the methods described in the first aspect, or enables the computer to execute any of the methods described in the other aspect.
[0024] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0025] The user device can receive the first message sent by the smart home device, so that the signal angle of the wireless signal corresponding to the first message can be determined based on the received first message. If the user device determines that the signal angle meets the first condition, it means that the user device and the smart home device are in a certain position relationship. Under this position relationship, the user may need the smart home device to perform certain operations. Therefore, the user device sends a first indication message to instruct the smart home device to perform the operation corresponding to the first condition. Since the user does not need to control the smart home device through the home control application, the first indication message can be sent directly from the user device to the smart home device, thereby improving the control efficiency of the smart home device. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0027] Figure 1 is a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application;
[0028] Figure 2 is a flow chart of a method for controlling a smart home device provided by an exemplary embodiment of the present application;
[0029] Figure 3 is a schematic diagram of a signal angle provided by an exemplary embodiment of the present application;
[0030] Figure 4 is a flow chart of a method for controlling a smart home device provided by an exemplary embodiment of the present application;
[0031] Figure 5 is a schematic diagram of a signal angle provided by an exemplary embodiment of the present application;
[0032] Figure 6 is a flow chart of a method for controlling a smart home device provided by an exemplary embodiment of the present application;
[0033] Figure 7 is a schematic diagram of the structure of a control device for a smart home device provided by an exemplary embodiment of the present application;
[0034] Figure 8 is a structural schematic diagram of a control device for a smart home device provided by another exemplary embodiment of the present application;
[0035] Fig. 9It is a schematic diagram of the structure of a device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0036] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0037] Before introducing in detail the control method of the smart home device provided in the embodiment of the present application, a brief introduction to the implementation environment involved in the embodiment of the present application is first given.
[0038] Please refer to Figure 1 , Figure 1 is a schematic diagram of an implementation environment involved in an embodiment of the present application. The implementation environment may include a user device 110 and a smart home device 120, and a communication connection may be established between the user device 110 and the smart home device 120.
[0039] Exemplarily, the user device 110 may be a mobile phone, a wearable device, etc., which is not limited in this embodiment. The wearable device may be a smart watch, smart glasses, smart headphones, etc., which is not limited in this embodiment. The number of the user device 110 may be one, or the number of the user device 110 may be multiple, which is not limited in this embodiment.
[0040] Exemplarily, the smart home device 120 may be a smart TV, a smart air conditioner, a smart refrigerator, a smart speaker, etc., which is not limited in the embodiments of the present application.
[0041] After introducing the implementation environment involved in the embodiments of the present application, the control method of the smart home device provided in the embodiments of the present application will be described in detail with reference to the accompanying drawings.
[0042] Please refer to Figure 2 ,Should Figure 2 The present invention is a flow chart of a method for controlling a smart home device according to an exemplary embodiment. The method for controlling a smart home device can be applied to a user device. The method for controlling a smart home device can include at least part of the following contents:
[0043] Step 201: Receive a first message, where the first message is a wireless signal message sent by a smart home device.
[0044] Exemplarily, the user equipment may send a message request message to the smart home device to request the smart home device to send a message of a wireless signal. Thus, if the smart home device receives the message request message, it may send the first message to the user equipment.
[0045] Exemplarily, as shown in Table 1, the first message may include a preamble, an access address, a header, a length, data, and a checksum, etc.
[0046] Table 1
[0047]
[0048] Step 202: Determine a signal angle based on the first message.
[0049] That is, the smart home device can send a first message to the user device. When the user device receives the first message, the user device can determine the signal angle of the wireless signal based on the received first message, that is, determine the angle between the smart home device and the user device.
[0050] As an example, the signal angle is an angle of arrival (Angle of Arrival, AoA), or the signal angle is an angle of departure (Angle of Departure, AoD).
[0051] Exemplarily, the arrival angle refers to the angle at which the wireless signal arrives at the user device, and the departure angle refers to the angle at which the wireless signal leaves the smart home device.
[0052] For example, Figure 3 As shown, when the user device is a smart pair of glasses and the smart home device is a smart lamp, the arrival angle can be determined to be θ1 and the departure angle can be determined to be θ2.
[0053] That is, the user device may determine the angle at which the wireless signal arrives at the user device, or the user device may determine the angle at which the wireless signal leaves the smart home device.
[0054] As an example, the first message includes message extension data, and the message extension data is used to determine the signal angle of the wireless signal.
[0055] That is, when the first message includes message extension data, the user equipment can determine the signal angle of the wireless signal based on the message extension data, that is, determine the angle between the smart home device and the user equipment.
[0056] As an example, the wireless signal may be a Bluetooth signal, and the message extension data may be CTE (Constant Tone Extension) data.
[0057] That is, the smart home device can send a Bluetooth signal message to the user device. In this case, the Bluetooth signal message can include CTE data, so that the user device can determine the signal angle of the Bluetooth signal based on the received CTE data.
[0058] As an example, the signal angle is determined based on a target angle measurement method, where the target angle measurement method includes an arrival angle measurement method or a departure angle measurement method.
[0059] Among them, the arrival angle measurement method refers to a method used to measure the angle at which a wireless signal arrives at a user device, and the departure angle measurement method refers to a method used to measure the angle at which a wireless signal leaves a smart home device.
[0060] That is, the user equipment may determine the angle at which the wireless signal arrives at the user equipment based on the arrival angle measurement method, or the user equipment may determine the angle at which the wireless signal leaves the smart home device based on the departure angle measurement method.
[0061] Exemplarily, if the target angle measurement method is an arrival angle measurement method, and the user equipment is configured with an antenna array, the user equipment can determine the arrival angle of the wireless signal based on the wavelength of the wireless signal, the phase difference of the wireless signal, and the distance between any two antennas in the antenna array through the following formula (1):
[0062]
[0063] Among them, θ1 is the arrival angle of the wireless signal, ψ is the phase difference of the wireless signal, λ is the wavelength of the wireless signal, and d is the distance between any two antennas in the antenna array.
[0064] Exemplarily, since there is a certain distance between any two antennas in the antenna array, the phases of the first message received by any two different antennas in the antenna array are different. In this way, the user equipment can determine the phase difference between the first message received by any two different antennas in the antenna array based on the phases of the first message respectively received by any two different antennas in the antenna array, thereby determining the phase difference between the first message received by any two different antennas in the antenna array as the phase difference of the wireless signal.
[0065] Exemplarily, if the target angle measurement method is a departure angle measurement method, and the user equipment is configured with an antenna array, the user equipment can determine the departure angle of the wireless signal based on the wavelength of the wireless signal, the phase difference of the wireless signal, and the distance between any two antennas in the antenna array through the following formula (2):
[0066]
[0067] Among them, θ2 is the departure angle of the wireless signal, ψ is the phase difference of the wireless signal, λ is the wavelength of the wireless signal, and d is the distance between any two antennas in the antenna array.
[0068] It should be noted that if a single antenna is configured in the user equipment, the user equipment supports being a transmitter in the angle of arrival measurement mode, or the user equipment supports being a receiver in the angle of departure measurement mode. If an antenna array is configured in the user equipment, the user equipment supports being a transmitter in the angle of arrival measurement mode, or the user equipment supports being a receiver in the angle of arrival measurement mode, or the user equipment supports being a transmitter in the angle of departure measurement mode, or the user equipment supports being a receiver in the angle of departure measurement mode.
[0069] Step 203: If the signal angle satisfies the first condition, a first indication message is sent, where the first indication message is used to instruct the smart home device to perform an operation corresponding to the first condition, where the first condition refers to a condition corresponding to an operation mode of the smart home device.
[0070] The first condition may be set based on actual conditions. For example, if the smart home device is a smart TV, the first condition may be a condition corresponding to a shutdown operation, the first condition may be a condition corresponding to a startup operation, the first condition may be a condition corresponding to a channel switching operation, etc., which is not limited in this embodiment. It should be noted that the first condition may be stored in the user device.
[0071] Exemplarily, the first indication message may include a smart home control command, or the first indication message may include the signal angle. If the first indication message includes a smart home control command, the user device may control the smart home device to perform an operation corresponding to the first condition based on the smart home control command. If the first indication message includes a signal angle, the smart home device may perform an operation corresponding to the first condition based on the signal angle.
[0072] That is, if the signal angle satisfies the first condition, it means that the user device and the smart home device are in a certain positional relationship. Under this positional relationship, it usually means that the user needs the smart home device to perform certain operations. In this way, the user device can send a first indication message to instruct the smart home device to perform the operation corresponding to the first condition.
[0073] In an embodiment of the present application, a user device can receive a first message sent by a smart home device, and thus can determine the signal angle of a wireless signal corresponding to the first message based on the received first message. If the user device determines that the signal angle satisfies the first condition, it means that the user device and the smart home device are in a certain position relationship. Under this position relationship, the user may need the smart home device to perform certain operations. Therefore, the user device sends a first indication message to instruct the smart home device to perform the operation corresponding to the first condition. Since the user does not need to control the smart home device through a home control application, the user device can directly send the first indication message to the smart home device, thereby improving the control efficiency of the smart home device.
[0074] Please refer to Figure 4 ,Should Figure 4 is a flow chart of a method for controlling a smart home device according to an exemplary embodiment. The method for controlling a smart home device can be applied to the above user device. The method for controlling a smart home device can include at least part of the following contents:
[0075] Step 401: Receive a first message, where the first message is a wireless signal message sent by a smart home device.
[0076] The specific implementation method can be found in Figure 2 Step 201 in the embodiment will not be repeated here.
[0077] As an example, the first message includes home device information of the smart home device and / or the type of communication protocol supported by the smart home device. The home device information includes a home device communication address and / or a home device identifier.
[0078] Among them, home device information can be used by user devices to identify smart home devices.
[0079] Exemplarily, the communication address of the home device may be a Bluetooth address, an IP (Internet Protocol) address, etc. of the smart home device, which is not limited in this embodiment.
[0080] Exemplarily, the home device identifier may be an ID (Identity) of a smart home device.
[0081] Exemplarily, the communication protocol type supported by the smart home device may be an OCF (Open Connectivity Foundation) protocol type, a BLE Mesh (Bluetooth Low Energy Mesh) protocol type, a ZigBee (ZigBee protocol type), etc., which is not limited in this embodiment. When the communication protocol types supported by the smart home device are different, the way in which the user device communicates with the smart home device will be different.
[0082] Exemplarily, the first message may include only home device information, the first message may include only the communication protocol type supported by the smart home device, or the first message may include both home device information and the communication protocol type supported by the smart home device. This embodiment does not limit this.
[0083] Exemplarily, the home appliance information may include only the home appliance communication address, the home appliance information may include only the home appliance identification, or the home appliance information may include both the home appliance communication address and the home appliance identification, which is not limited in this embodiment.
[0084] Step 402: Determine a signal angle based on the first message.
[0085] The specific implementation method can be found in Figure 2 Step 202 in the embodiment will not be repeated here.
[0086] As an example, the signal angle is determined based on a target angle measurement method, where the target angle measurement method includes an arrival angle measurement method or a departure angle measurement method.
[0087] That is, the user equipment may determine the angle at which the wireless signal arrives at the user equipment based on the arrival angle measurement method, or the user equipment may determine the angle at which the wireless signal leaves the smart home device based on the departure angle measurement method.
[0088] In a possible implementation manner, the target angle measurement manner is determined by negotiation between the user device and the smart home device.
[0089] For example, the user device may support one angle measurement method or multiple angle measurement methods. Similarly, the smart home device may support one angle measurement method or multiple angle measurement methods. In this case, the user device and the smart home device may determine the target angle measurement method through negotiation, so that the user device can determine the signal angle based on the target angle measurement method.
[0090] As an example, the target angle measurement method is determined through negotiation in the following method: sending the angle measurement method supported by the user device, receiving the angle measurement method supported by the smart home device, and determining the target angle measurement method based on the angle measurement method supported by the user device and the angle measurement method supported by the smart home device.
[0091] That is, the user device may send the angle measurement method supported by the user device to the smart home device, and the smart home device may send the angle measurement method supported by the smart home device to the user device. When the user device receives the angle measurement method supported by the smart home device, the user device may determine that the angle measurement method supported by both the user device and the smart home device is the target angle measurement method.
[0092] For example, if the angle measurement method supported by the user device includes a departure angle measurement method, and the angle measurement method supported by the smart home device includes a departure angle measurement method, the departure angle measurement method can be determined as the target angle measurement method. If the angle measurement method supported by the user device includes an arrival angle measurement method, and the angle measurement method supported by the smart home device includes an arrival angle measurement method, the arrival angle measurement method can be determined as the target angle measurement method.
[0093] For example, if the angle measurement methods supported by the user device include an arrival angle measurement method, and the angle measurement methods supported by the smart home device include an arrival angle measurement method and a departure angle measurement method, the arrival angle measurement method may be determined as the target angle measurement method. If the angle measurement methods supported by the user device include a departure angle measurement method, and the angle measurement methods supported by the smart home device include an arrival angle measurement method and a departure angle measurement method, the departure angle measurement method may be determined as the target angle measurement method.
[0094] For example, if the angle measurement methods supported by the user device include an arrival angle measurement method and a departure angle measurement method, and the angle measurement methods supported by the smart home device include an arrival angle measurement method, the arrival angle measurement method can be determined as the target angle measurement method. If the angle measurement methods supported by the user device include an arrival angle measurement method and a departure angle measurement method, and the angle measurement methods supported by the smart home device include a departure angle measurement method, the departure angle measurement method can be determined as the target angle measurement method.
[0095] Exemplarily, if the angle measurement methods supported by the user device include an arrival angle measurement method and a departure angle measurement method, and the angle measurement methods supported by the smart home device include an arrival angle measurement method and a departure angle measurement method. Based on the angle measurement methods supported by the user device and the angle measurement methods supported by the smart home device, the implementation method for determining the target angle measurement method may be: determining a second condition, where the second condition is a condition for selecting the arrival angle measurement method or the departure angle measurement method. Based on the angle measurement methods supported by the user device, the angle measurement methods supported by the smart home device, and the second condition, the target angle measurement method is determined.
[0096] The second condition may be set based on actual conditions. For example, the second condition may be set to give priority to the angle of arrival measurement mode, or the second condition may be set to give priority to the angle of departure measurement mode, which is not limited in this embodiment. It should be noted that the second condition may be stored in the user equipment.
[0097] That is, if the user equipment and the smart home device support both the arrival angle measurement mode and the departure angle measurement mode, the user equipment can select an angle measurement mode from the arrival angle measurement mode and the departure angle measurement mode as the target angle measurement mode based on the second condition.
[0098] For example, if the second condition is to give priority to the arrival angle measurement method, then when the user equipment and the smart home device support both the arrival angle measurement method and the departure angle measurement method, the user equipment can determine that the arrival angle measurement method is the target angle measurement method.
[0099] As an example, the target angle measurement mode is determined through negotiation in the following method: receiving the angle measurement mode supported by the smart home device, and determining the target angle measurement mode based on the angle measurement mode supported by the user device and the angle measurement mode supported by the smart home device.
[0100] That is, the smart home device may send the angle measurement method supported by the smart home device to the user device. When the user device receives the angle measurement method supported by the smart home device, the user device may determine that the angle measurement method supported by both the user device and the smart home device is the target angle measurement method.
[0101] As an example, the user equipment may also send a first request message, where the first request message is used to request the smart home device to send an angle measurement method supported by the smart home device.
[0102] That is, when the user device needs to negotiate with the smart home device to determine the target angle measurement method, the user device can send a first request message to the smart home device to request the smart home device to send the angle measurement method supported by the smart home device. In this way, when the smart home device receives the first request message, it can send the angle measurement method supported by the smart home device to the user device.
[0103] Exemplarily, if the angle measurement methods supported by the user device include an arrival angle measurement method and a departure angle measurement method, and the angle measurement methods supported by the smart home device include an arrival angle measurement method and a departure angle measurement method. Based on the angle measurement methods supported by the user device and the angle measurement methods supported by the smart home device, the implementation method for determining the target angle measurement method may be: determining a second condition, where the second condition is a condition for selecting the arrival angle measurement method or the departure angle measurement method. Based on the angle measurement methods supported by the user device, the angle measurement methods supported by the smart home device, and the second condition, the target angle measurement method is determined.
[0104] That is, if the user equipment and the smart home device support both the arrival angle measurement mode and the departure angle measurement mode, the user equipment can select an angle measurement mode from the arrival angle measurement mode and the departure angle measurement mode as the target angle measurement mode based on the second condition.
[0105] For example, if the second condition is to give priority to the arrival angle measurement method, then when the user equipment and the smart home device support both the arrival angle measurement method and the departure angle measurement method, the user equipment can determine that the arrival angle measurement method is the target angle measurement method.
[0106] As an example, the target angle measurement method is determined through negotiation in the following method: a second request message is received, and the second request message carries the angle measurement method indicated by the smart home device. If the angle measurement methods supported by the user device include the angle measurement method carried by the second request message, the angle measurement method carried by the second request message is determined as the target angle measurement method.
[0107] That is, the smart home device may send a second request message to the user device to request the user device to use the angle measurement method indicated by the smart home device as the target angle measurement method. When the user device receives the second request message, if the angle measurement methods supported by the user device include the angle measurement method indicated by the smart home device, the user device may determine the angle measurement method indicated by the smart home device as the target angle measurement method.
[0108] For example, if the angle measurement method indicated by the smart home device is the arrival angle measurement method, and the angle measurement methods supported by the user equipment include the arrival angle measurement method and the departure angle measurement method, the user equipment can determine the arrival angle measurement method as the target angle measurement method.
[0109] As an example, the user device and the smart home device may negotiate the target angle measurement method through unicast, or the user device and the smart home device may negotiate the target angle measurement method through broadcast, which is not limited in this embodiment.
[0110] It should be noted that the target angle measurement methods between the user device and different smart home devices may be different. For example, the target angle measurement method between the user device and the smart TV may be an arrival angle measurement method, and the target angle measurement method between the user device and the smart lamp may be a departure angle measurement method.
[0111] Step 403: If the signal angle satisfies the first condition, a first indication message is sent, where the first indication message is used to instruct the smart home device to perform an operation corresponding to the first condition, where the first condition refers to a condition corresponding to an operation mode of the smart home device.
[0112] The specific implementation method can be found in Figure 2 Step 202 in the embodiment will not be repeated here.
[0113] As an example, the signal angle satisfies the first condition including one of the following: the signal angle is a first specified signal angle. Or, the signal angle is within a first specified signal angle range. Or, a change value of the signal angle complies with a specified change rule.
[0114] Among them, the first designated signal angle, the first designated signal angle range and the designated change rule can all be set according to actual conditions, and this embodiment does not limit this.
[0115] That is, when the user equipment determines that the signal angle is the first specified signal angle, it can be determined that the signal angle satisfies the first condition. Alternatively, when the user equipment determines that the signal angle is within the first specified signal angle range, it can be determined that the signal angle satisfies the first condition. Alternatively, when the user equipment determines that the change value of the signal angle meets the specified change rule, it can be determined that the signal angle satisfies the first condition.
[0116] For example, the first designated signal angle may be set to 0 degrees. If the smart home device is a smart TV and the user device is smart glasses, the first condition is a condition for starting the corresponding operation. Figure 5As shown, the signal angle of the wireless signal sent by the smart TV is 0 degrees, and the user equipment can determine that the signal angle meets the first condition. In this case, the smart glasses can send a first instruction message to the smart TV to instruct the smart TV to perform a startup operation.
[0117] For example, the first designated signal angle range may be set to 0 to 30 degrees. If the smart home device is a smart TV and the user device is smart glasses, the first condition is a condition for starting the corresponding operation. Figure 5 As shown, the signal angle of the wireless signal sent by the smart TV is 0 degrees, and the user equipment can determine that the signal angle meets the first condition. In this case, the smart glasses can send a first instruction message to the smart TV to instruct the smart TV to perform a startup operation.
[0118] Exemplarily, the specified change rule may be set as the signal angle changes from 0 degrees to 10 degrees within a first time period. If the smart home device is a smart TV and the user device is smart glasses, the first condition is a condition corresponding to the start operation. If the signal angle of the wireless signal sent by the smart TV changes from 0 degrees to 10 degrees within the first time period, the user device may determine that the signal angle satisfies the first condition. In this case, the smart glasses may send a first indication message to the smart TV to instruct the smart TV to perform the start operation.
[0119] In a possible implementation manner, the user equipment may further perform the following operation: when the signal angle satisfies the first condition, if it is detected that a specified additional condition is currently met, a first indication message is sent.
[0120] The specified additional condition may be set according to actual conditions, which is not limited in this embodiment. The specified additional condition may be stored in the user equipment.
[0121] That is, when the signal angle satisfies the first condition, that is, when the user device and the smart home device are in a certain positional relationship, the current user may need the smart home device to perform the operation corresponding to the first condition. The current user may also be in this positional relationship by chance but does not need the smart home device to perform the operation corresponding to the third condition. In order to determine whether the user needs the smart home device to perform the operation corresponding to the first condition, the user device may also detect whether the specified additional condition is currently met. If it is detected that the specified additional condition is currently met, it can be determined that the user needs the smart home device to perform the operation corresponding to the first condition. In this case, the user device can send a first indication message to the smart home device. If it is not detected that the specified additional condition is currently met, it can be determined that the user does not need the smart home device to perform the operation corresponding to the first condition. In this case, the user device does not need to send the first indication message to the smart home device.
[0122] As an example, detecting that the specified additional condition is currently satisfied includes at least one of the following: detecting that a user performs a specified operation; detecting that the distance between the smart home device and the user device is less than a specified distance threshold; detecting that the moving direction of the user device is a specified direction.
[0123] The specified operation, the specified distance threshold, and the specified direction may be set according to actual conditions, and this embodiment does not limit this.
[0124] That is, the user device may determine that the specified additional condition is currently satisfied when it detects that the user performs a specified operation, the distance between the smart home device and the user device is less than the specified distance threshold, and the moving direction of the user device is a specified direction. Alternatively, the user device may determine that the specified additional condition is currently satisfied when it detects that the user performs a specified operation, the distance between the smart home device and the user device is less than the specified distance threshold, and the moving direction of the user device is a specified direction.
[0125] Exemplarily, the user device may determine that the specified additional condition is currently satisfied when detecting that the user performs a specified operation.
[0126] For example, the designated operation can be set to the direction in which the user is looking at is the direction in which the smart home device is located. When the smart home device is a smart TV, the user device is smart glasses, and the smart glasses have a sensor for detecting the direction in which the user is looking at, if the smart glasses determine that the signal angle meets the first condition, the smart glasses can detect the direction in which the user is looking. If it is detected that the user's gaze direction is the direction in which the smart TV is located, it can be determined that the specified additional condition is currently met, and the smart glasses can send a first indication message to the smart TV.
[0127] For example, the designated operation can be set to making an "OK" gesture. When the smart home device is a smart TV, the user device is smart glasses, and the smart glasses have a sensor for detecting the user's gestures, if the smart glasses determine that the signal angle meets the first condition, the smart glasses can detect the user's gesture. If it is detected that the user makes an "OK" gesture, it can be determined that the specified additional condition is currently met, and the smart glasses can send a first indication message to the smart TV.
[0128] For example, the designated operation can be set to pressing a designated button. When the smart home device is a smart TV, the user device is smart glasses, and the smart glasses have a designated button, if the smart glasses determine that the signal angle meets the first condition, the smart glasses can detect the pressing of the designated button. If it is detected that the designated button is pressed, it can be determined that the specified additional condition is currently met, and the smart glasses can send a first indication message to the smart TV.
[0129] For example, the designated operation can be set to nodding. When the smart home device is a smart TV, the user device is smart glasses, and the smart glasses have a sensor for detecting the user's head movements, if the smart glasses determine that the signal angle meets the first condition, the smart glasses can detect the user's head movements. If the user nods, it can be determined that the specified additional conditions are currently met, and the smart glasses can send a first indication message to the smart TV.
[0130] Exemplarily, the user device may determine that the specified additional condition is currently met when detecting that the distance between the smart home device and the user device is less than a specified distance threshold.
[0131] For example, the specified distance threshold can be set to 2m. When the smart home device is a smart TV and the user device is smart glasses, if the smart glasses determine that the signal angle meets the first condition, the smart glasses can detect the distance between the smart home device and the user device. If the distance between the smart home device and the user device is detected to be 1m, since 1m<2m, it can be determined that the specified additional condition is currently met, and the smart glasses can send a first indication message to the smart TV.
[0132] It should be noted that the user device can determine the distance between the smart home device and the user device based on Bluetooth positioning, or the user device can have a ranging sensor, so as to determine the distance between the smart home device and the user device based on the ranging sensor. This embodiment does not limit the method for determining the distance between the user device and the smart home device.
[0133] Exemplarily, the user equipment may determine that the specified additional condition is currently satisfied when detecting that the moving direction of the user equipment is a specified direction.
[0134] For example, the specified direction can be set to the direction toward the smart home device. When the smart home device is a smart TV and the user device is smart glasses, if the smart glasses determine that the signal angle meets the first condition, the smart glasses can detect the moving direction of the smart glasses. If it is detected that the moving direction of the smart glasses is toward the smart TV, it can be determined that the specified additional condition is currently met, and the smart glasses can send a first indication message to the smart TV.
[0135] In a possible implementation, the user equipment may further perform the following operation: when the first message includes the communication protocol type supported by the smart home device, if the communication protocol type supported by the smart home device is a target communication protocol type, a communication connection with the smart home device is established. The target communication protocol type refers to a communication protocol type for which a communication connection needs to be established for transmitting the first indication message.
[0136] That is, the user device can determine whether to establish a communication connection with the smart home device before sending the first indication message based on the communication protocol type supported by the smart home device. If the communication protocol type supported by the smart home device is the target communication protocol type, the user device needs to establish a communication connection with the smart home device.
[0137] Exemplarily, the target communication protocol type may be an OCF protocol type. Thus, when the communication protocol type supported by the smart home device is the OCF protocol type, the user device needs to send the first indication message to the smart home device after establishing a communication connection with the smart home device.
[0138] Of course, if the communication protocol type supported by the smart home device is not the target communication protocol type, the user device does not need to establish a communication connection with the smart home device. Exemplarily, if the communication protocol type supported by the smart home device is the BLE Mesh protocol type, the user device does not need to establish a connection with the smart home device, but can directly send the first indication message to the smart home device.
[0139] As an example, the communication connection between the user device and the smart home device is established based on the home device identification.
[0140] That is, when the communication protocol type supported by the smart home device is the target communication protocol type, the user device can determine the target communication protocol address corresponding to the smart home device based on the home device identifier, and thus establish a communication connection with the smart home device based on the target communication protocol address.
[0141] As an example, when the home appliance information does not include the home appliance identifier and the home appliance information includes the home appliance communication address, the home appliance identifier is determined based on the first association relationship and the home appliance communication address, wherein the first association relationship is used to record the association relationship between the home appliance communication address and the home appliance identifier.
[0142] The first association relationship may be predetermined and stored in the user equipment.
[0143] Since the home device communication address is unique, that is, one smart home device corresponds to one home device communication address, and the home device identifier is also unique, that is, one smart home device corresponds to one home device identifier, the home device communication address and the home device identifier can be associated to obtain a first association relationship. In this way, when the home device communication address is determined, the user device can determine the home device identifier based on the first association relationship.
[0144] That is, if the user device cannot obtain the home device identifier in the home device information, and the home device information includes the home device communication address, the user device can read the first association relationship in the stored data, and thereby determine the home device identifier based on the first association relationship and the home device communication address.
[0145] As an example, when the home device information does not include the home device identifier and the first message includes the communication protocol type supported by the smart home device, the home device identifier is determined based on the second association relationship and the communication protocol type supported by the smart home device. The second association relationship is used to record the association relationship between the home device identifier and the communication protocol type supported by the smart home device.
[0146] The second association relationship may be predetermined and stored in the user equipment.
[0147] For example, if only one smart home device supports a certain communication protocol type among all smart home devices, the home device identifier of the smart home device can be associated with the communication protocol type to obtain a second association relationship. In this way, when it is determined that the communication protocol type supported by the smart home device is the communication protocol type, the user device can determine the home device identifier based on the second association relationship.
[0148] That is, if the user device cannot obtain the home device identifier in the home device information, and the first message includes the communication protocol type supported by the smart home device, the user device can read the second association relationship in the stored data, and thereby determine the home device identifier based on the second association relationship and the communication protocol type supported by the smart home device.
[0149] Exemplarily, if only the smart air conditioner supports the OCF communication protocol type among all smart home devices, the home device identifier of the smart air conditioner can be associated with the OCF communication protocol type to obtain a second association relationship. In this way, when the user device determines that the communication protocol type supported by the smart air conditioner is the OCF communication protocol type, the home device identifier of the smart air conditioner can be determined based on the second association relationship and the OCF communication protocol type.
[0150] As an example, when the home device information does not include the home device identifier, the user device may send an identifier acquisition request to the smart home device to request the smart home device to send the home device identifier.
[0151] That is, when the home device information does not include the home device identifier, if the user device needs to determine the home device identifier, the user device can send an identifier acquisition request to the smart home device. When the smart home device receives the identifier acquisition request, the smart home device can send the home device identifier to the user device.
[0152] In an embodiment of the present application, a user device can receive a first message sent by a smart home device, and thus can determine the signal angle of a wireless signal corresponding to the first message based on the received first message. If the user device determines that the signal angle satisfies the first condition, it means that the user device and the smart home device are in a certain position relationship. Under this position relationship, the user may need the smart home device to perform certain operations. Therefore, the user device sends a first indication message to instruct the smart home device to perform the operation corresponding to the first condition. Since the user does not need to control the smart home device through a home control application, the user device can directly send the first indication message to the smart home device, thereby improving the control efficiency of the smart home device.
[0153] Please refer to Figure 6 ,Should Figure 6 is a flow chart of a control method of a smart home device according to an exemplary embodiment. The control method of the smart home device can be applied to the above-mentioned smart home device. The control method of the smart home device may include at least part of the following contents:
[0154] Step 601: Receive a second message, where the second message is a message of a wireless signal sent by a user equipment.
[0155] Exemplarily, the smart home device may send a message request message to the user device to request the user device to send a message of a wireless signal. Thus, if the user device receives the message request message, it may send the second message to the smart home device.
[0156] As an example, the second message includes user equipment information of the user equipment and / or the type of communication protocol supported by the user equipment. The user equipment information includes a user equipment communication address and / or a user equipment identifier.
[0157] Among them, the user device information can be used by smart home devices to identify the user device.
[0158] Exemplarily, the communication address of the user equipment may be a Bluetooth address, an IP address, etc. of the user equipment, which is not limited in this embodiment.
[0159] Exemplarily, the user equipment identifier may be an ID of the user equipment.
[0160] Exemplarily, the communication protocol type supported by the user equipment may be an OCF protocol type, a BLE Mesh protocol type, a ZigBee protocol type, etc., which is not limited in this embodiment.
[0161] Exemplarily, the second message may include only user equipment information, the second message may include only the communication protocol type supported by the user equipment, or the second message may include both user equipment information and the communication protocol type supported by the user equipment, which is not limited in this embodiment.
[0162] Exemplarily, the user equipment information may include a user equipment communication address, the user equipment information may also include only a user equipment identifier, or the user equipment information may include both a user equipment communication address and a user equipment identifier, which is not limited in this embodiment.
[0163] Step 602: Determine a signal angle based on the second message.
[0164] That is, the user device can send a second message to the smart home device. When the smart home device receives the second message, the smart home device can determine the signal angle of the wireless signal according to the second message, that is, determine the angle between the smart home device and the user device.
[0165] As an example, the signal angle is an arrival angle, or the signal angle is a departure angle.
[0166] Exemplarily, the arrival angle refers to the angle at which the wireless signal arrives at the smart home device, and the departure angle refers to the angle at which the wireless signal leaves the user device.
[0167] That is, the smart home device can determine the angle at which the wireless signal arrives at the smart home device, or the smart home device can determine the angle at which the wireless signal leaves the user device.
[0168] As an example, the second message includes message extension data, and the message extension data is used to determine the signal angle of the wireless signal.
[0169] That is, when the second message includes message extension data, the smart home device can determine the signal angle of the wireless signal based on the message extension data, that is, determine the angle between the smart home device and the user device.
[0170] As an example, the wireless signal is a Bluetooth signal, and the message extension data is CTE data.
[0171] That is, the user device can send a Bluetooth signal message to the smart home device. In this case, the Bluetooth signal message can include CTE data, so that the smart home device can determine the signal angle of the Bluetooth signal based on the received CTE data.
[0172] As an example, the signal angle is determined based on a target angle measurement method, where the target angle measurement method includes an arrival angle measurement method or a departure angle measurement method.
[0173] That is, the smart home device can determine the angle at which the wireless signal arrives at the smart home device based on the arrival angle measurement method, or the smart home device can determine the angle at which the wireless signal leaves the user device based on the departure angle measurement method.
[0174] It should be noted that if a single antenna is configured in the smart home device, the smart home device supports being used as a transmitter in the arrival angle measurement mode, or the smart home device supports being used as a receiver in the departure angle measurement mode. If an antenna array is configured in the smart home device, the smart home device supports being used as a transmitter in the arrival angle measurement mode, or the smart home device supports being used as a receiver in the arrival angle measurement mode, or the smart home device supports being used as a transmitter in the departure angle measurement mode, or the smart home device supports being used as a receiver in the departure angle measurement mode.
[0175] In a possible implementation manner, the target angle measurement manner is determined by negotiation between the user device and the smart home device.
[0176] For example, the user device may support one angle measurement method or multiple angle measurement methods. Similarly, the smart home device may support one angle measurement method or multiple angle measurement methods. In this case, the user device and the smart home device may determine the target angle measurement method through negotiation, so that the smart home device can determine the signal angle based on the target angle measurement method.
[0177] As an example, the target angle measurement method is determined through negotiation in the following method: sending the angle measurement methods supported by the smart home device, receiving the angle measurement methods supported by the user device, and determining the target angle measurement method based on the angle measurement methods supported by the user device and the angle measurement methods supported by the smart home device.
[0178] That is, the user device may send the angle measurement method supported by the user device to the smart home device, and the smart home device may send the angle measurement method supported by the smart home device to the user device. When the smart home device receives the angle measurement method supported by the user device, the smart home device may determine that the angle measurement method supported by both the user device and the smart home device is the target angle measurement method.
[0179] Exemplarily, if the angle measurement methods supported by the user device include an arrival angle measurement method and a departure angle measurement method, and the angle measurement methods supported by the smart home device include an arrival angle measurement method and a departure angle measurement method. Based on the angle measurement methods supported by the user device and the angle measurement methods supported by the smart home device, the implementation method for determining the target angle measurement method may be: determining a fourth condition, where the fourth condition is a condition for selecting the arrival angle measurement method or the departure angle measurement method. Based on the angle measurement methods supported by the user device, the angle measurement methods supported by the smart home device, and the fourth condition, the target angle measurement method is determined.
[0180] The fourth condition may be set based on actual conditions. For example, the fourth condition may be set to give priority to the angle of arrival measurement mode, or the fourth condition may be set to give priority to the angle of departure measurement mode, which is not limited in this embodiment. It should be noted that the fourth condition may be stored in the smart home device.
[0181] That is, if the user device and the smart home device support both the arrival angle measurement mode and the departure angle measurement mode, the smart home device can select an angle measurement mode from the arrival angle measurement mode and the departure angle measurement mode as the target angle measurement mode based on the fourth condition.
[0182] As an example, the target angle measurement mode is determined through negotiation in the following method: receiving the angle measurement mode supported by the user equipment, and determining the target angle measurement mode based on the angle measurement mode supported by the user equipment and the angle measurement mode supported by the smart home device.
[0183] That is, the user equipment may send the angle measurement method supported by the user equipment to the smart home device. When the smart home device receives the angle measurement method supported by the user equipment, the smart home device may determine that the angle measurement method supported by both the user equipment and the smart home device is the target angle measurement method.
[0184] As an example, the smart home device may also send a third request message, where the third request message is used to request the user equipment to send an angle measurement method supported by the user equipment.
[0185] That is, when the smart home device needs to negotiate with the user device to determine the target angle measurement method, the smart home device can send a third request message to the user device to request the user device to send the angle measurement method supported by the smart home device. In this way, when the user device receives the first request message, the angle measurement method supported by the user device can be sent to the smart home device.
[0186] Exemplarily, if the angle measurement methods supported by the user device include an arrival angle measurement method and a departure angle measurement method, and the angle measurement methods supported by the smart home device include an arrival angle measurement method and a departure angle measurement method. Based on the angle measurement methods supported by the user device and the angle measurement methods supported by the smart home device, the implementation method for determining the target angle measurement method may be: determining a fourth condition, where the fourth condition is a condition for selecting the arrival angle measurement method or the departure angle measurement method. Based on the angle measurement methods supported by the user device, the angle measurement methods supported by the smart home device, and the fourth condition, the target angle measurement method is determined.
[0187] That is, if the user device and the smart home device support both the arrival angle measurement mode and the departure angle measurement mode, the smart home device can select an angle measurement mode from the arrival angle measurement mode and the departure angle measurement mode as the target angle measurement mode based on the fourth condition.
[0188] As an example, the target angle measurement method is determined through negotiation in the following method: a fourth request message is received, and the fourth request message carries angle measurement method information indicated by the user equipment. If the angle measurement methods supported by the smart home device include the angle measurement method carried by the fourth request message, the angle measurement method carried by the fourth request message is determined as the target angle measurement method.
[0189] That is, the user device may send a fourth request message to the smart home device to request the smart home device to use the angle measurement method indicated by the user device as the target angle measurement method. When the smart home device receives the fourth request message, if the angle measurement methods supported by the smart home device include the angle measurement method indicated by the user device, the smart home device may determine the angle measurement method indicated by the user device as the target angle measurement method.
[0190] As an example, the user device and the smart home device may negotiate the target angle measurement method through unicast, or the user device and the smart home device may negotiate the target angle measurement method through broadcast, which is not limited in this embodiment.
[0191] It should be noted that the target angle measurement methods between the smart home device and different user devices may be different. For example, the target angle measurement method between the smart home device and smart glasses may be an arrival angle measurement method, and the target angle measurement method between the smart home device and a smart watch may be a departure angle measurement method.
[0192] Step 603: If the signal angle satisfies the third condition, an operation corresponding to the third condition is performed, where the third condition refers to a condition corresponding to an operation mode of a smart home device.
[0193] The third condition may be set based on actual conditions. For example, if the smart home device is a smart TV, the third condition may be a condition corresponding to a shutdown operation, the third condition may be a condition corresponding to a startup operation, the third condition may be a condition corresponding to a channel switching operation, etc., which is not limited in this embodiment. It should be noted that the third condition may be stored in the smart home device.
[0194] That is, if the signal angle satisfies the third condition, it means that the user device and the smart home device are in a certain positional relationship. Under this positional relationship, it can usually be said that the user needs the smart home device to perform certain operations. In this way, the smart home device can perform the operation corresponding to the third condition.
[0195] As an example, the signal angle satisfies the third condition including one of the following: the signal angle is a second specified signal angle. Or, the signal angle is within a second specified signal angle range. Or, the change value of the signal angle complies with a specified change rule.
[0196] The second designated signal angle, the second designated signal angle range, and the designated change rule may be set according to actual conditions, and this embodiment does not limit this.
[0197] That is, when the smart home device determines that the signal angle is the second specified signal angle, it can be determined that the signal angle satisfies the third condition. Alternatively, when the smart home device determines that the signal angle is within the second specified signal angle range, it can be determined that the signal angle satisfies the third condition. Alternatively, when the smart home device determines that the change value of the signal angle meets the specified change rule, it can be determined that the signal angle satisfies the third condition.
[0198] In a possible implementation, the smart home device may also perform the following operation: when the signal angle satisfies the third condition, if it is detected that the specified additional condition is currently met, the operation corresponding to the third condition is executed.
[0199] The specified additional condition may be set according to actual conditions, which is not limited in this embodiment. The specified additional condition may be stored in the smart home device.
[0200] That is, when the signal angle satisfies the third condition, that is, when the user device and the smart home device are in a certain positional relationship, the current user may need the smart home device to perform the operation corresponding to the third condition. The current user may also be in this positional relationship by chance but does not need the smart home device to perform the operation corresponding to the third condition. In order to determine whether the user needs the smart home device to perform the operation corresponding to the third condition, the smart home device can also detect whether the specified additional condition is currently met. If it is detected that the specified additional condition is currently met, it can be determined that the user needs the smart home device to perform the operation corresponding to the third condition. In this case, the smart home device can perform the operation corresponding to the third condition. If it is not detected that the specified additional condition is currently met, it can be determined that the user does not need the smart home device to perform the operation corresponding to the third condition. In this case, the smart home device does not need to perform the operation corresponding to the third condition.
[0201] As an example, detecting that the specified additional condition is currently satisfied includes at least one of the following: detecting that a user performs a specified operation; detecting that the distance between the user device and the smart home device is less than a specified distance threshold; and detecting that the moving direction of the user device is a specified direction.
[0202] The specified operation, the specified distance threshold, and the specified direction may be set according to actual conditions, and this embodiment does not limit this.
[0203] That is, the smart home device may determine that the specified additional condition is currently satisfied when it detects that the user performs a specified operation, the distance between the smart home device and the user device is less than the specified distance threshold, and the moving direction of the user device is a specified direction. Alternatively, the smart home device may determine that the specified additional condition is currently satisfied when it detects that the user performs a specified operation, the distance between the smart home device and the user device is less than the specified distance threshold, and the moving direction of the user device is a specified direction.
[0204] In a possible implementation, the smart home device may perform the operation corresponding to the third condition by: determining the user device identifier, and if the user device is verified based on the user device identifier, performing the operation corresponding to the third condition.
[0205] That is, the smart home device can verify the user device according to the user device identifier, that is, determine whether the user device is a user device bound to the smart home device. If the user device verification passes, it means that the user device is a user device bound to the smart home device, and the smart home device can perform the operation corresponding to the third condition. If the user device verification fails, it means that the user device is not a user device bound to the smart home device, and the smart home device does not need to perform the operation corresponding to the third condition.
[0206] As an example, the implementation manner of determining the user equipment identifier may be: when the user equipment information includes the user equipment identifier, determining the user equipment identifier from the user equipment information.
[0207] That is, if the user device information includes the user device identifier, the smart home device can directly obtain the user device identifier from the user device information.
[0208] As an example, the method for determining the user equipment identifier may be: when the user equipment information does not include the user equipment identifier and the user equipment information includes the user equipment communication address, the user equipment identifier is determined based on the third association relationship and the user equipment communication address. The third association relationship is used to record the association relationship between the user equipment communication address and the user equipment identifier.
[0209] The third association relationship may be predetermined and stored in the smart home device.
[0210] Since the user device communication address is unique, that is, one user device corresponds to one user device communication address, and the user device identifier is also unique, that is, one user device corresponds to one user device identifier, the user device communication address and the user device identifier can be associated to obtain a third association relationship. In this way, when the user device communication address is determined, the smart home device can determine the user device identifier based on the third association relationship.
[0211] That is, if the smart home device cannot obtain the user device identifier in the user device information, and the user device information includes the user device communication address, the smart home device can read the third association relationship in the stored data, and thereby determine the user device identifier based on the third association relationship and the user device communication address.
[0212] As an example, the method for determining the user equipment identifier may be: when the user equipment information does not include the user equipment identifier and the second message includes the communication protocol type supported by the user equipment, the user equipment identifier is determined based on the fourth association relationship and the communication protocol type supported by the user equipment. The fourth association relationship is used to record the association relationship between the user equipment identifier and the communication protocol type supported by the user equipment.
[0213] The fourth association relationship may be predetermined and stored in the smart home device.
[0214] For example, if only one user device among all user devices supports a certain communication protocol type, the user device identifier of the user device can be associated with the communication protocol type to obtain a fourth association relationship. In this way, when it is determined that the communication protocol type supported by the user device is the communication protocol type, the smart home device can determine the user device identifier based on the fourth association relationship.
[0215] That is, if the smart home device cannot obtain the user device identifier in the user device information, and the second message includes the communication protocol type supported by the user device, the smart home device can read the fourth association relationship in the stored data, and thereby determine the user device identifier based on the fourth association relationship and the communication protocol type supported by the user device.
[0216] Exemplarily, if only the smart watch supports the OCF communication protocol type among all user devices, the user device identifier of the smart watch can be associated with the OCF communication protocol type to obtain a fourth association relationship. In this way, when the smart home device determines that the communication protocol type supported by the smart watch is the OCF communication protocol type, the user device identifier of the smart watch can be determined based on the fourth association relationship and the OCF communication protocol type.
[0217] As an example, when the user device information does not include a user device identifier, the smart home device may send an identifier acquisition request to the user device to request the user device to send the user device identifier.
[0218] That is, when the user device identifier does not include the user device identifier, if the smart home device needs to determine the user device identifier, the smart home device can send an identifier acquisition request to the smart home device, and when the user device receives the identifier acquisition request, the user device can send the user device identifier to the smart home device.
[0219] In an embodiment of the present application, the smart home device can receive the second message sent by the user device, so that the signal angle of the wireless signal corresponding to the second message can be determined based on the received second message. If the smart home device determines that the signal angle satisfies the third condition, it means that the user device and the smart home device are in a certain position relationship. Under this position relationship, the user may need the smart home device to perform certain operations. Therefore, the smart home device performs the operation corresponding to the third condition. Since the user does not need to control the smart home device through the home control application, but the operation corresponding to the third condition can be directly performed by the smart home device, the control efficiency of the smart home device can be improved.
[0220] Please refer to Figure 7 ,Should Figure 7 : is a structural diagram of a control device for a smart home device according to an exemplary embodiment. The device may be configured in a user device, and the device may include:
[0221] A first receiving module 710 is used to receive a first message, where the first message is a message of a wireless signal sent by a smart home device;
[0222] A first determining module 720, configured to determine the signal angle based on the first message;
[0223] The first sending module 730 is used to send a first indication message if the signal angle meets a first condition, wherein the first indication message is used to instruct the smart home device to perform an operation corresponding to the first condition, wherein the first condition refers to a condition corresponding to an operation mode of the smart home device.
[0224] In a possible implementation of the present application, the first message includes message extension data, and the message extension data is used to determine the signal angle of the wireless signal.
[0225] In a possible implementation of the present application, the first message includes the home device information of the smart home device and / or the type of communication protocol supported by the smart home device; the home device information includes the home device communication address and / or the home device identifier.
[0226] In a possible implementation of the present application, the signal angle is determined based on a target angle measurement method, and the target angle measurement method includes an arrival angle measurement method or a departure angle measurement method.
[0227] In a possible implementation of the present application, the target angle measurement method is determined by negotiation between the user device and the smart home device.
[0228] In a possible implementation of the present application, the first sending module 730 is used to send the angle measurement method supported by the user device; the first receiving module 710 is used to receive the angle measurement method supported by the smart home device; the first determination module 720 is used to determine the target angle measurement method based on the angle measurement method supported by the user device and the angle measurement method supported by the smart home device.
[0229] In a possible implementation of the present application, the first receiving module 710 is used to receive the angle measurement method supported by the smart home device; the first determination module 720 is used to determine the target angle measurement method based on the angle measurement method supported by the user device and the angle measurement method supported by the smart home device.
[0230] In a possible implementation of the present application, the first sending module 730 is further used to: send a first request message, where the first request message is used to request the smart home device to send an angle measurement method supported by the smart home device.
[0231] In a possible implementation of the present application, the angle measurement methods supported by the user device include the arrival angle measurement method and the departure angle measurement method, and the angle measurement methods supported by the smart home device include the arrival angle measurement method and the departure angle measurement method; the first determination module 720 is also used to: determine a second condition, where the second condition is a condition for selecting the arrival angle measurement method or the departure angle measurement method; based on the angle measurement methods supported by the user device, the angle measurement methods supported by the smart home device and the second condition, determine the target angle measurement method.
[0232] In a possible implementation of the present application, the first receiving module 710 is used to receive a second request message, where the second request message carries the angle measurement method indicated by the smart home device; the first determination module 720 is used to determine the angle measurement method carried by the second request message as the target angle measurement method if the angle measurement method supported by the user device includes the angle measurement method carried by the second request message.
[0233] In a possible implementation of the present application, the signal angle satisfies the first condition, including one of the following: the signal angle is a first specified signal angle; or, the signal angle is within a first specified signal angle range; or, the change value of the signal angle complies with a specified change rule.
[0234] In a possible implementation of the present application, the first sending module 730 is further used for: when the signal angle satisfies the first condition, if it is detected that a specified additional condition is currently met, sending the first indication message.
[0235] In a possible implementation of the present application, the detection that the specified additional condition is currently satisfied includes at least one of the following: detecting that a user performs a specified operation; detecting that the distance between the smart home device and the user device is less than a specified distance threshold; detecting that the moving direction of the user device is a specified direction.
[0236] In a possible implementation of the present application, the device also includes: a connection establishment module 740, which is used to establish a communication connection with the smart home device if the first message includes the communication protocol type supported by the smart home device and the communication protocol type supported by the smart home device is a target communication protocol type; the target communication protocol type refers to a communication protocol type that needs to establish a communication connection for transmitting the first indication message.
[0237] In a possible implementation of the present application, the communication connection between the user equipment and the smart home device is established based on the home device identifier.
[0238] In a possible implementation of the present application, when the household device information does not include the household device identification and the household device information includes the household device communication address, the household device identification is determined based on a first association relationship and the household device communication address; wherein the first association relationship is used to record the association relationship between the household device communication address and the household device identification.
[0239] In a possible implementation of the present application, when the home device information does not include the home device identifier and the first message includes the communication protocol type supported by the smart home device, the home device identifier is determined based on a second association relationship and the communication protocol type supported by the smart home device; wherein the second association relationship is used to record the association relationship between the home device identifier and the communication protocol type supported by the smart home device.
[0240] In a possible implementation of the present application, the signal angle is an arrival angle, or the signal angle is a departure angle.
[0241] In a possible implementation of the present application, the wireless signal is a Bluetooth signal, and the message extension data is fixed frequency extended CTE data.
[0242] In an embodiment of the present application, a user device can receive a first message sent by a smart home device, and thus can determine the signal angle of a wireless signal corresponding to the first message based on the received first message. If the user device determines that the signal angle satisfies the first condition, it means that the user device and the smart home device are in a certain position relationship. Under this position relationship, the user may need the smart home device to perform certain operations. Therefore, the user device sends a first indication message to instruct the smart home device to perform the operation corresponding to the first condition. Since the user does not need to control the smart home device through a home control application, the user device can directly send the first indication message to the smart home device, thereby improving the control efficiency of the smart home device.
[0243] Please refer to Figure 8 ,Should Figure 8 : is a structural diagram of a control device for a smart home device according to an exemplary embodiment. The device may be configured in the smart home device, and the device may include:
[0244] A second receiving module 810 is configured to receive a second message, where the second message is a message of a wireless signal sent by a user equipment;
[0245] A second determination module 820, configured to determine the signal angle based on the second message;
[0246] The execution module 830 is used to execute the operation corresponding to the third condition if the signal angle satisfies the third condition, and the third condition refers to a condition corresponding to the operation mode of the smart home device.
[0247] In a possible implementation of the present application, the second message includes message extension data, and the message extension data is used to determine the signal angle of the wireless signal.
[0248] In a possible implementation of the present application, the second message includes user equipment information of the user equipment and / or a communication protocol type supported by the user equipment; the user equipment information includes a user equipment communication address and / or a user equipment identifier.
[0249] In a possible implementation of the present application, the signal angle is determined based on a target angle measurement method, and the target angle measurement method includes an arrival angle measurement method or a departure angle measurement method.
[0250] In a possible implementation of the present application, the target angle measurement method is determined by negotiation between the user device and the smart home device.
[0251] In a possible implementation of the present application, the second sending module 840 is used to send the angle measurement method supported by the smart home device; the second receiving module 810 is used to receive the angle measurement method supported by the user device; the second determination module 820 is used to determine the target angle measurement method based on the angle measurement method supported by the user device and the angle measurement method supported by the smart home device.
[0252] In a possible implementation of the present application, the second receiving module 810 is used to receive the angle measurement method supported by the user device; the second determination module 820 is used to determine the target angle measurement method based on the angle measurement method supported by the user device and the angle measurement method supported by the smart home device.
[0253] In a possible implementation of the present application, the second sending module 840 is further used to: send a third request message, where the third request message is used to request the user equipment to send an angle measurement method supported by the user equipment.
[0254] In a possible implementation of the present application, the angle measurement methods supported by the user device include the arrival angle measurement method and the departure angle measurement method, and the angle measurement methods supported by the smart home device include the arrival angle measurement method and the departure angle measurement method; the second determination module 820 is also used to: determine a fourth condition, the fourth condition being a condition for selecting the arrival angle measurement method or the departure angle measurement method; based on the angle measurement methods supported by the user device, the angle measurement methods supported by the smart home device and the fourth condition, determine the target angle measurement method.
[0255] In a possible implementation of the present application, the second receiving module 810 is used to receive a fourth request message, where the fourth request message carries the angle measurement method information indicated by the user device; the second determination module 820 is used to determine the angle measurement method carried by the fourth request message as the target angle measurement method if the angle measurement method supported by the smart home device includes the angle measurement method carried by the fourth request message.
[0256] In a possible implementation of the present application, the signal angle satisfies the third condition, including one of the following: the signal angle is a second specified signal angle; or, the signal angle is within a second specified signal angle range; or, the change value of the signal angle complies with a specified change rule.
[0257] In a possible implementation of the present application, the execution module 830 is further used for: when the signal angle satisfies the third condition, if it is detected that a specified additional condition is currently met, executing an operation corresponding to the third condition.
[0258] In a possible implementation of the present application, the detection that the specified additional condition is currently satisfied includes at least one of the following: detecting that a user performs a specified operation; detecting that the distance between the user device and the smart home device is less than a specified distance threshold; detecting that the moving direction of the user device is a specified direction.
[0259] In a possible implementation of the present application, the execution module 830 is further used to: determine the user equipment identifier; if the user equipment is verified based on the user equipment identifier, execute the operation corresponding to the third condition.
[0260] In a possible implementation manner of the present application, the execution module 830 is further configured to: when the user equipment information includes the user equipment identifier, determine the user equipment identifier from the user equipment information.
[0261] In a possible implementation of the present application, the execution module 830 is also used to: when the user device information does not include the user device identifier and the user device information includes the user device communication address, determine the user device identifier based on a third association relationship and the user device communication address; wherein the third association relationship is used to record the association relationship between the user device communication address and the user device identifier.
[0262] In a possible implementation of the present application, the execution module 830 is also used to: when the user equipment information does not include the user equipment identifier and the second message includes the communication protocol type supported by the user equipment, determine the user equipment identifier based on a fourth association relationship and the communication protocol type supported by the user equipment; wherein the fourth association relationship is used to record the association relationship between the user equipment identifier and the communication protocol type supported by the user equipment.
[0263] In a possible implementation of the present application, the signal angle is an arrival angle, or the signal angle is a departure angle.
[0264] In a possible implementation of the present application, the wireless signal is a Bluetooth signal, and the message extension data is fixed frequency extended CTE data.
[0265] In an embodiment of the present application, the smart home device can receive the second message sent by the user device, so that the signal angle of the wireless signal corresponding to the second message can be determined based on the received second message. If the smart home device determines that the signal angle satisfies the third condition, it means that the user device and the smart home device are in a certain position relationship. Under this position relationship, the user may need the smart home device to perform certain operations. Therefore, the smart home device performs the operation corresponding to the third condition. Since the user does not need to control the smart home device through the home control application, but the operation corresponding to the third condition can be directly performed by the smart home device, the control efficiency of the smart home device can be improved.
[0266] Please refer to Fig. 9 , which shows a schematic diagram of the structure of a device provided by an exemplary embodiment of the present application, the device includes: a processor 901, a receiver 902, a transmitter 903, a memory 904 and a bus 905.
[0267] The processor 901 includes one or more processing cores. The processor 901 executes various functional applications and information processing by running software programs and modules.
[0268] The receiver 902 and the transmitter 903 may be implemented as a communication component, which may be a communication chip.
[0269] The memory 904 is connected to the processor 901 via a bus 905 .
[0270] The memory 904 may be used to store at least one instruction, and the processor 901 may be used to execute the at least one instruction to implement each step performed by the first IAB base station in each of the above method embodiments.
[0271] In addition, the memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof. The volatile or non-volatile storage device includes but is not limited to: a magnetic disk or an optical disk, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM (Erasable Programmable Read-Only Memory), a SRAM (Static Random Access Memory), a ROM (Read Only Memory), a magnetic storage device, a flash memory, and a PROM (Programmable Read-Only Memory).
[0272] The present application provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is loaded and executed by the processor to implement the control method of the smart home device provided by the above-mentioned various method embodiments.
[0273] The present application also provides a computer program product. When the computer program product is run on a computer, the computer executes the control method of the smart home device provided by each of the above method embodiments.
[0274] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.
[0275] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A control method for a smart home device, characterized in that: Applied in a user equipment, the method comprises: Receive a first message, where the first message is a message of a wireless signal sent by a smart home device; Determining a signal angle based on the first message; If the signal angle satisfies the first condition, a first indication message is sent; if the signal angle satisfies the fifth condition and it is detected that a specified additional condition is currently met, the first indication message is sent; The first indication message is used to instruct the smart home device to perform an operation corresponding to the first condition or the fifth condition, the first condition refers to a condition corresponding to an operation mode of the smart home device, and the fifth condition refers to a condition corresponding to an operation mode of the smart home device; The signal angle satisfies the first condition, which includes: the change value of the signal angle complies with a specified change rule; The signal angle satisfies the fifth condition including: the signal angle is a first specified signal angle; or the signal angle is within a first specified signal angle range; The detecting that the specified additional condition is currently satisfied includes at least one of the following: Detecting that the user performs a specified operation; It is detected that the moving direction of the user equipment is a specified direction.
2. The method according to claim 1, characterized in that The first message includes message extension data, and the message extension data is used to determine the signal angle of the wireless signal.
3. The method according to claim 1, characterized in that The first message includes home device information of the smart home device and / or a communication protocol type supported by the smart home device; The household device information includes a household device communication address and / or a household device identification.
4. The method according to claim 1, characterized in that The signal angle is determined based on a target angle measurement method, and the target angle measurement method includes an arrival angle measurement method or a departure angle measurement method.
5. The method according to claim 4, characterized in that The target angle measurement method is determined by negotiation between the user device and the smart home device.
6. The method according to claim 5, characterized in that The target angle measurement method is determined by negotiation through the following method: Sending an angle measurement method supported by the user equipment; Receiving an angle measurement method supported by the smart home device; The target angle measurement method is determined based on the angle measurement method supported by the user equipment and the angle measurement method supported by the smart home device.
7. The method according to claim 5, characterized in that The target angle measurement method is determined by negotiation through the following method: Receiving an angle measurement method supported by the smart home device; The target angle measurement method is determined based on the angle measurement method supported by the user equipment and the angle measurement method supported by the smart home device.
8. The method according to claim 7, characterized in that The method further comprises: A first request message is sent, where the first request message is used to request the smart home device to send an angle measurement method supported by the smart home device.
9. The method according to any one of claims 6 to 8, characterized in that The angle measurement modes supported by the user equipment include the arrival angle measurement mode and the departure angle measurement mode, and the angle measurement modes supported by the smart home device include the arrival angle measurement mode and the departure angle measurement mode; The determining the target angle measurement method based on the angle measurement method supported by the user equipment and the angle measurement method supported by the smart home device includes: determining a second condition, where the second condition is a condition for selecting the arrival angle measurement mode or the departure angle measurement mode; The target angle measurement method is determined based on the angle measurement method supported by the user equipment, the angle measurement method supported by the smart home device, and the second condition.
10. The method according to claim 5, characterized in that The target angle measurement method is determined by negotiation through the following method: receiving a second request message, where the second request message carries the angle measurement method indicated by the smart home device; If the angle measurement mode supported by the user equipment includes the angle measurement mode carried by the second request message, the angle measurement mode carried by the second request message is determined as the target angle measurement mode.
11. The method according to claim 3, characterized in that The method further comprises: In a case where the first message includes the communication protocol type supported by the smart home device, if the communication protocol type supported by the smart home device is a target communication protocol type, establishing a communication connection with the smart home device; The target communication protocol type refers to the communication protocol type that needs to establish a communication connection for transmitting the first indication message.
12. The method according to claim 11, characterized in that The communication connection between the user equipment and the smart home device is established based on the home device identifier.
13. The method according to claim 12, characterized in that In a case where the household device information does not include the household device identifier and the household device information includes the household device communication address, the household device identifier is determined based on the first association relationship and the household device communication address; The first association relationship is used to record the association relationship between the home device communication address and the home device identifier.
14. The method according to claim 12, characterized in that When the home device information does not include the home device identifier and the first message includes the type of communication protocol supported by the smart home device, the home device identifier is determined based on the second association relationship and the type of communication protocol supported by the smart home device; The second association relationship is used to record the association relationship between the home device identifier and the communication protocol type supported by the smart home device.
15. The method according to any one of claims 1 to 8, characterized in that The signal angle is an arrival angle, or the signal angle is a departure angle.
16. The method according to claim 2, characterized in that The wireless signal is a Bluetooth signal, and the message extension data is fixed frequency extension CTE data.
17. A method for controlling a smart home device, characterized in that: Applied to smart home devices, the method includes: receiving a second message, where the second message is a message of a wireless signal sent by a user equipment; Determining a signal angle based on the second message; If the signal angle satisfies the third condition, the operation corresponding to the third condition is performed; if the signal angle satisfies the sixth condition and it is detected that the specified additional condition is currently met, the operation corresponding to the sixth condition is performed; The third condition refers to a condition corresponding to the operation mode of the smart home device, and the sixth condition refers to a condition corresponding to the operation mode of the smart home device; The signal angle satisfies the third condition, which includes: the change value of the signal angle complies with a specified change rule; The signal angle satisfies the sixth condition including: the signal angle is a second specified signal angle; or the signal angle is within a second specified signal angle range; The detecting that the specified additional condition is currently satisfied includes at least one of the following: Detecting that the user performs a specified operation; It is detected that the moving direction of the user equipment is a specified direction.
18. The method according to claim 17, characterized in that The second message includes message extension data, and the message extension data is used to determine the signal angle of the wireless signal.
19. The method according to claim 17, characterized in that The second message includes user equipment information of the user equipment and / or a communication protocol type supported by the user equipment; The user equipment information includes a user equipment communication address and / or a user equipment identifier.
20. The method of claim 17, wherein: The signal angle is determined based on a target angle measurement method, and the target angle measurement method includes an arrival angle measurement method or a departure angle measurement method.
21. The method of claim 20, wherein: The target angle measurement method is determined by negotiation between the user device and the smart home device.
22. The method according to claim 21, characterized in that The target angle measurement method is determined by negotiation through the following method: Sending the angle measurement method supported by the smart home device; Receiving an angle measurement method supported by the user equipment; The target angle measurement method is determined based on the angle measurement method supported by the user equipment and the angle measurement method supported by the smart home device.
23. The method of claim 21, wherein: The target angle measurement method is determined by negotiation through the following method: Receiving an angle measurement method supported by the user equipment; The target angle measurement method is determined based on the angle measurement method supported by the user equipment and the angle measurement method supported by the smart home device.
24. The method of claim 23, wherein: The method further comprises: Send a third request message, where the third request message is used to request the user equipment to send an angle measurement method supported by the user equipment.
25. The method according to any one of claims 22 to 24, characterized in that The angle measurement modes supported by the user equipment include the arrival angle measurement mode and the departure angle measurement mode, and the angle measurement modes supported by the smart home device include the arrival angle measurement mode and the departure angle measurement mode; The determining the target angle measurement method based on the angle measurement method supported by the user equipment and the angle measurement method supported by the smart home device includes: determining a fourth condition, wherein the fourth condition is a condition for selecting the arrival angle measurement mode or the departure angle measurement mode; The target angle measurement method is determined based on the angle measurement method supported by the user equipment, the angle measurement method supported by the smart home device, and the fourth condition.
26. The method of claim 21, wherein: The target angle measurement method is determined by negotiation through the following method: receiving a fourth request message, where the fourth request message carries angle measurement mode information indicated by the user equipment; If the angle measurement methods supported by the smart home device include the angle measurement method carried by the fourth request message, the angle measurement method carried by the fourth request message is determined as the target angle measurement method.
27. The method of claim 17, wherein: The performing of the operation corresponding to the third condition or the sixth condition includes: Determining the user equipment identifier; If the user equipment is verified based on the user equipment identifier, an operation corresponding to the third condition or the sixth condition is performed.
28. The method of claim 27, wherein: The determining the user equipment identifier includes: In a case where the user equipment information includes the user equipment identifier, the user equipment identifier is determined from the user equipment information.
29. The method of claim 27, wherein: The determining the user equipment identifier includes: In a case where the user equipment information does not include the user equipment identifier and the user equipment information includes the user equipment communication address, determining the user equipment identifier based on a third association relationship and the user equipment communication address; The third association relationship is used to record the association relationship between the user equipment communication address and the user equipment identifier.
30. The method of claim 27, wherein: The determining the user equipment identifier includes: When the user equipment information does not include the user equipment identifier and the second message includes the type of communication protocol supported by the user equipment, determining the user equipment identifier based on the fourth association relationship and the type of communication protocol supported by the user equipment; The fourth association relationship is used to record the association relationship between the user equipment identifier and the communication protocol type supported by the user equipment.
31. The method according to any one of claims 17 to 24, characterized in that The signal angle is an arrival angle, or the signal angle is a departure angle.
32. The method of claim 18, wherein: The wireless signal is a Bluetooth signal, and the message extension data is fixed frequency extension CTE data.
33. A control device for a smart home device, characterized in that: Configured in a user equipment, the device includes: A first receiving module, configured to receive a first message, where the first message is a message of a wireless signal sent by a smart home device; A first determination module, configured to determine a signal angle based on the first message; A first sending module, configured to send a first indication message if the signal angle satisfies a first condition, and to send the first indication message if the signal angle satisfies a fifth condition and it is detected that a specified additional condition is currently met; The first indication message is used to instruct the smart home device to perform an operation corresponding to the first condition or the fifth condition, the first condition refers to a condition corresponding to an operation mode of the smart home device, and the fifth condition refers to a condition corresponding to an operation mode of the smart home device; The signal angle satisfies the first condition, which includes: the change value of the signal angle complies with a specified change rule; The signal angle satisfies the fifth condition including: the signal angle is a first specified signal angle; or the signal angle is within a first specified signal angle range; The detecting that the specified additional condition is currently satisfied includes at least one of the following: Detecting that the user performs a specified operation; It is detected that the moving direction of the user equipment is a specified direction.
34. The device according to claim 33, characterized in that The first message includes message extension data, and the message extension data is used to determine the signal angle of the wireless signal.
35. The device according to claim 33, characterized in that The first message includes home device information of the smart home device and / or a communication protocol type supported by the smart home device; The household device information includes a household device communication address and / or a household device identification.
36. The device according to claim 33, characterized in that The signal angle is determined based on a target angle measurement method, and the target angle measurement method includes an arrival angle measurement method or a departure angle measurement method.
37. The device according to claim 36, characterized in that The target angle measurement method is determined by negotiation between the user device and the smart home device.
38. The device according to claim 37, characterized in that The first sending module is used to send the angle measurement method supported by the user equipment; The first receiving module is used to receive the angle measurement method supported by the smart home device; The first determination module is used to determine the target angle measurement method based on the angle measurement method supported by the user equipment and the angle measurement method supported by the smart home device.
39. The device according to claim 37, characterized in that The first receiving module is used to receive the angle measurement method supported by the smart home device; The first determination module is used to determine the target angle measurement method based on the angle measurement method supported by the user equipment and the angle measurement method supported by the smart home device.
40. The device according to claim 39, characterized in that The first sending module is further used for: A first request message is sent, where the first request message is used to request the smart home device to send an angle measurement method supported by the smart home device.
41. The device according to any one of claims 38 to 40, characterized in that The angle measurement modes supported by the user equipment include the arrival angle measurement mode and the departure angle measurement mode, and the angle measurement modes supported by the smart home device include the arrival angle measurement mode and the departure angle measurement mode; The first determining module is further used for: determining a second condition, where the second condition is a condition for selecting the arrival angle measurement mode or the departure angle measurement mode; The target angle measurement method is determined based on the angle measurement method supported by the user equipment, the angle measurement method supported by the smart home device, and the second condition.
42. The device according to claim 37, characterized in that The first receiving module is configured to receive a second request message, where the second request message carries the angle measurement method indicated by the smart home device; The first determining module is configured to determine the angle measurement mode carried by the second request message as the target angle measurement mode if the angle measurement mode supported by the user equipment includes the angle measurement mode carried by the second request message.
43. The device according to claim 35, characterized in that The device also includes: a connection establishing module, configured to establish a communication connection with the smart home device if the first message includes the communication protocol type supported by the smart home device and if the communication protocol type supported by the smart home device is a target communication protocol type; The target communication protocol type refers to the communication protocol type that needs to establish a communication connection for transmitting the first indication message.
44. The device according to claim 43, characterized in that The communication connection between the user equipment and the smart home device is established based on the home device identifier.
45. The device according to claim 44, characterized in that In a case where the household device information does not include the household device identifier and the household device information includes the household device communication address, the household device identifier is determined based on the first association relationship and the household device communication address; The first association relationship is used to record the association relationship between the home device communication address and the home device identifier.
46. The device according to claim 44, characterized in that When the home device information does not include the home device identifier and the first message includes the type of communication protocol supported by the smart home device, the home device identifier is determined based on the second association relationship and the type of communication protocol supported by the smart home device; The second association relationship is used to record the association relationship between the home device identifier and the communication protocol type supported by the smart home device.
47. The device according to any one of claims 33 to 40, characterized in that The signal angle is an arrival angle, or the signal angle is a departure angle.
48. The device of claim 34, wherein: The wireless signal is a Bluetooth signal, and the message extension data is fixed frequency extension CTE data.
49. A control device for a smart home device, characterized in that: Configured in a smart home device, the device includes: A second receiving module, configured to receive a second message, where the second message is a message of a wireless signal sent by a user equipment; A second determination module, used to determine a signal angle based on the second message; An execution module, configured to execute an operation corresponding to the third condition if the signal angle satisfies a third condition, and to execute an operation corresponding to the sixth condition if the signal angle satisfies a sixth condition and it is detected that a specified additional condition is currently satisfied; The third condition refers to a condition corresponding to the operation mode of the smart home device, and the sixth condition refers to a condition corresponding to the operation mode of the smart home device; The signal angle satisfies the third condition, which includes: the change value of the signal angle complies with a specified change rule; The signal angle satisfies the sixth condition including: the signal angle is a second specified signal angle; or the signal angle is within a second specified signal angle range; The detecting that the specified additional condition is currently satisfied includes at least one of the following: Detecting that the user performs a specified operation; It is detected that the moving direction of the user equipment is a specified direction.
50. The device according to claim 49, characterized in that The second message includes message extension data, and the message extension data is used to determine the signal angle of the wireless signal.
51. The device of claim 49, wherein: The second message includes user equipment information of the user equipment and / or a communication protocol type supported by the user equipment; The user equipment information includes a user equipment communication address and / or a user equipment identifier.
52. The device of claim 49, wherein: The signal angle is determined based on a target angle measurement method, and the target angle measurement method includes an arrival angle measurement method or a departure angle measurement method.
53. The device according to claim 52, characterized in that The target angle measurement method is determined by negotiation between the user device and the smart home device.
54. The device according to claim 53, characterized in that Also includes: The second sending module is used to send the angle measurement method supported by the smart home device; wherein, The second receiving module is used to receive an angle measurement method supported by the user equipment; The second determination module is used to determine the target angle measurement method based on the angle measurement method supported by the user equipment and the angle measurement method supported by the smart home device.
55. The device according to claim 53, characterized in that The second receiving module is used to receive an angle measurement method supported by the user equipment; The second determination module is used to determine the target angle measurement method based on the angle measurement method supported by the user equipment and the angle measurement method supported by the smart home device.
56. The device of claim 54, wherein: The second sending module is also used for: Send a third request message, where the third request message is used to request the user equipment to send an angle measurement method supported by the user equipment.
57. The device according to any one of claims 54 to 56, characterized in that The angle measurement modes supported by the user equipment include the arrival angle measurement mode and the departure angle measurement mode, and the angle measurement modes supported by the smart home device include the arrival angle measurement mode and the departure angle measurement mode; The second determining module is further used for: determining a fourth condition, wherein the fourth condition is a condition for selecting the arrival angle measurement mode or the departure angle measurement mode; The target angle measurement method is determined based on the angle measurement method supported by the user equipment, the angle measurement method supported by the smart home device, and the fourth condition.
58. The device of claim 53, wherein: The second receiving module is configured to receive a fourth request message, where the fourth request message carries angle measurement mode information indicated by the user equipment; The second determining module is configured to determine the angle measurement method carried by the fourth request message as the target angle measurement method if the angle measurement method supported by the smart home device includes the angle measurement method carried by the fourth request message.
59. The device of claim 49, wherein: The execution module is also used for: Determining the user equipment identifier; If the user equipment is verified based on the user equipment identifier, an operation corresponding to the third condition or the sixth condition is performed.
60. The device according to claim 59, characterized in that The execution module is also used for: In a case where the user equipment information includes the user equipment identifier, the user equipment identifier is determined from the user equipment information.
61. The device of claim 59, wherein: The execution module is also used for: In a case where the user equipment information does not include the user equipment identifier and the user equipment information includes the user equipment communication address, determining the user equipment identifier based on a third association relationship and the user equipment communication address; The third association relationship is used to record the association relationship between the user equipment communication address and the user equipment identifier.
62. The device of claim 59, wherein: The execution module is also used for: When the user equipment information does not include the user equipment identifier and the second message includes the type of communication protocol supported by the user equipment, determining the user equipment identifier based on the fourth association relationship and the type of communication protocol supported by the user equipment; The fourth association relationship is used to record the association relationship between the user equipment identifier and the communication protocol type supported by the user equipment.
63. The device according to any one of claims 49 to 56, characterized in that The signal angle is an arrival angle, or the signal angle is a departure angle.
64. The device of claim 50, wherein: The wireless signal is a Bluetooth signal, and the message extension data is fixed frequency extension CTE data.
65. A control device, characterized in that: The control device includes a processor and a memory, wherein the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement the steps of any one of the methods of claims 1-16, or to implement the steps of any one of the methods of claims 17-32.
66. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by a processor, the steps of any method of claims 1-19 are implemented, or the steps of any method of claims 20-38 are implemented.
