Home appliance control method, device, electronic device and storage medium
Through Bluetooth signal strength threshold and key verification, the home appliance control problem without router or network is solved, and the reliable control of home appliances by terminal devices is achieved, improving user experience and security.
Patent Information
- Application Number
- CN202111399468.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-19
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2041-11-19
AI Technical Summary
Without a router or network, the prior art cannot control home appliances through terminal devices, resulting in limited intelligence level.
Through Bluetooth signal strength threshold comparison and key verification, we ensure the distance and identity verification between the terminal device and the home appliance device, and realize home appliance control in a network-free environment.
It realizes that without a router or network, the terminal device can control home appliances through Bluetooth, improving the user experience and security of home appliances and preventing misoperation.
Smart Images

Figure CN114222275B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of household appliances, and in particular to a household appliance control method, device, electronic device and storage medium. Background Art
[0002] Home appliances are essential for people's daily lives. With the rapid development of technology, there are more and more types of home appliances, such as refrigerators, air conditioners, washing machines, televisions, rice cookers, etc., and the level of intelligence of home appliances is constantly improving.
[0003] Currently, home appliances are primarily controlled through home panels, remote controls, or mobile phones. These controls are not highly intelligent and have limitations. Controlling home appliances through mobile phones requires network configuration—that is, a successful connection to a router—before they can be controlled. However, without a router or internet connection, network configuration is impossible, and thus, home appliance control via mobile phones is impossible.
[0004] To sum up, how to control home appliances through the user's terminal device in the absence of a router or network is a problem that needs to be solved urgently. Summary of the Invention
[0005] The present invention provides a home appliance control method, device, electronic device and storage medium to solve the defect in the prior art that home appliances cannot be controlled through terminal devices in the absence of a router or a network, and realize intelligent home appliance control that does not rely on the network.
[0006] The present invention provides a home appliance control method, which is applied to a home appliance device, wherein the home appliance device includes Bluetooth, and the home appliance device and a terminal device communicate with each other via the Bluetooth. The method includes:
[0007] After receiving the authentication request sent by the terminal device, obtaining the Bluetooth signal strength of the terminal device;
[0008] Comparing the Bluetooth signal strength with a signal strength threshold of the home appliance;
[0009] If the Bluetooth signal strength is greater than the signal strength threshold, a first authentication key is sent to the terminal device, so that the terminal device controls the home appliance based on the first authentication key.
[0010] According to a home appliance control method provided by the present invention, if the Bluetooth signal strength is greater than the signal strength threshold, sending a first authentication key to the terminal device includes:
[0011] If the Bluetooth signal strength is greater than the signal strength threshold, a confirmation result indicating successful authentication is sent to the terminal device, so that the terminal device returns password information for password verification;
[0012] Receiving password information sent by the terminal device;
[0013] If the password information is successfully verified, a first authentication key of the home appliance is obtained and the first authentication key is sent to the terminal device.
[0014] According to a home appliance control method provided by the present invention, obtaining the Bluetooth signal strength of the terminal device includes:
[0015] Based on a preset sampling frequency and a preset sampling period, collecting the signal strength of Bluetooth in the terminal device to obtain a Bluetooth signal strength set;
[0016] Perform mean calculation on the Bluetooth signal strength set to obtain the Bluetooth signal strength of the terminal device.
[0017] According to a household appliance control method provided by the present invention, after comparing the Bluetooth signal strength with the signal strength threshold of the household appliance, the method further includes:
[0018] If the Bluetooth signal strength is less than or equal to the signal strength threshold, sending an unsuccessful confirmation result to the terminal device, so that the terminal device generates a prompt message of approaching the home appliance based on the unsuccessful confirmation result;
[0019] Return to the step of obtaining the Bluetooth signal strength of the terminal device until the Bluetooth signal strength is greater than the signal strength threshold.
[0020] According to a home appliance control method provided by the present invention, after receiving the authentication request sent by the terminal device and before obtaining the Bluetooth signal strength of the terminal device, the method further includes:
[0021] Receiving the second authentication key sent by the terminal device and verifying the second authentication key;
[0022] If the verification of the second authentication key is invalid, sending an invalid verification result to the terminal device, so that the terminal device sends the authentication request to the home appliance;
[0023] If the second authentication key is verified to be valid, a verification result indicating that the second authentication key is valid is sent to the terminal device, so that the terminal device has the authority to control the home appliance.
[0024] The present invention also provides a home appliance control method, which is applied to a terminal device, wherein the terminal device includes Bluetooth, and the terminal device and the home appliance communicate with each other via the Bluetooth. The method includes:
[0025] Sending an authentication request to the home appliance so that the home appliance authenticates the terminal device;
[0026] Receive a first authentication key sent by the home appliance to control the home appliance based on the first authentication key.
[0027] According to a home appliance control method provided by the present invention, after sending the authentication request to the home appliance so that the home appliance authenticates the terminal device, the method further includes:
[0028] After receiving the successful authentication result sent by the home appliance, password information is sent to the home appliance so that the home appliance performs password verification on the password information. The verification result of the password verification is used to determine whether the home appliance sends the first authentication key to the terminal device.
[0029] According to a home appliance control method provided by the present invention, after sending the authentication request to the home appliance so that the home appliance authenticates the terminal device, the method further includes:
[0030] After receiving the unsuccessful confirmation result of the ownership confirmation sent by the home appliance, a prompt message is generated close to the home appliance based on the unsuccessful confirmation result of the ownership confirmation.
[0031] According to a home appliance control method provided by the present invention, before sending the authentication request to the home appliance so that the home appliance authenticates the terminal device, the method further includes:
[0032] Sending a second authentication key to the home appliance so that the home appliance verifies the second authentication key;
[0033] If an invalid verification result is received from the home appliance, generating the authentication request;
[0034] If a valid verification result sent by the home appliance is received, it is determined that the terminal device has the authority to control the home appliance.
[0035] The present invention further provides a home appliance control device, which is deployed in a home appliance device, wherein the home appliance device includes Bluetooth, and the home appliance device and a terminal device communicate with each other via the Bluetooth. The device includes:
[0036] An acquisition module, configured to acquire the Bluetooth signal strength of the terminal device after receiving the authentication request sent by the terminal device;
[0037] a comparison module, configured to compare the Bluetooth signal strength with a signal strength threshold of the home appliance;
[0038] A sending module is used to send a first authentication key to the terminal device if the Bluetooth signal strength is greater than the signal strength threshold, so that the terminal device controls the home appliance based on the first authentication key.
[0039] The present invention further provides a home appliance control device, which is deployed in a terminal device, wherein the terminal device includes Bluetooth, and the terminal device and the home appliance communicate with each other via the Bluetooth. The device includes:
[0040] A sending module, configured to send an authentication request to the home appliance, so that the home appliance authenticates the terminal device;
[0041] The receiving module is configured to receive a first authentication key sent by the home appliance, so as to control the home appliance based on the first authentication key.
[0042] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-described home appliance control methods are implemented.
[0043] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which implements the steps of any of the above-mentioned home appliance control methods when executed by a processor.
[0044] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of any of the above-mentioned home appliance control methods are implemented.
[0045] The present invention provides a method, device, electronic device and storage medium for controlling home appliances. The method is applied to home appliances, which include Bluetooth. The home appliances and terminal devices communicate with each other via Bluetooth, so that the terminal device can control the home appliances via Bluetooth. This allows home appliances to be controlled through the user's terminal device in the absence of a router or a network, thereby realizing intelligent home appliance control that does not rely on the network, and ultimately improving the user experience of the home appliances. At the same time, after receiving the authorization request sent by the terminal device, the Bluetooth signal strength of the terminal device is obtained; the Bluetooth signal strength is compared with the signal strength threshold of the home appliance; if the Bluetooth signal strength is greater than the signal strength threshold, the first authorization key is sent to the terminal device, so that the terminal device controls the home appliance based on the first authorization key. The present invention can ensure that the first authorization key is returned to the terminal device only after the Bluetooth signal strength of the terminal device reaches the signal strength threshold, that is, it ensures that the authorization is successful and the first authorization key is returned to the terminal device only after the distance between the home appliance and the terminal device meets the requirement, thereby preventing any terminal device connected to Bluetooth from controlling the home appliance, that is, avoiding user misoperation, and further ensuring that the authorization is successful and the terminal device that obtains the first authorization key can control the home appliance, thereby ensuring the feasibility of home appliance control based on Bluetooth. In summary, after ensuring the feasibility of home appliance control based on Bluetooth, the terminal device can control the home appliance through Bluetooth, realizing home appliance control through the user's terminal device in the absence of a router or network, thereby realizing intelligent home appliance control that does not rely on the network, and ultimately improving the user experience of the home appliance. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the present invention or the prior art, a brief introduction is given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0047] Figure 1 This is a flow chart of the household appliance control method provided by the present invention;
[0048] Figure 2 This is a second flow chart of the household appliance control method provided by the present invention;
[0049] Figure 3 This is a third flow chart of the household appliance control method provided by the present invention;
[0050] Figure 4 This is a fourth flow chart of the household appliance control method provided by the present invention;
[0051] Figure 5A detailed flowchart provided for an embodiment of the present invention;
[0052] Figure 6 This is a structural diagram of a home appliance control device provided by an embodiment of the present invention;
[0053] Figure 7 The second structural diagram of the home appliance control device provided by an embodiment of the present invention;
[0054] Figure 8 This is a schematic structural diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0055] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.
[0056] The home appliance control method, device, electronic device and storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
[0057] An embodiment of the present invention provides a home appliance control method, which is applied to a home appliance device. The home appliance device includes Bluetooth, and the home appliance device and a terminal device communicate with each other via the Bluetooth.
[0058] The home appliance is the executing subject of the home appliance control method according to the embodiment of the present invention, the home appliance is the subject to be controlled, and the terminal device is the subject that controls the home appliance.
[0059] The household appliances may be refrigerators, air conditioners, washing machines, televisions, rice cookers, etc., without limitation here.
[0060] The Bluetooth may be BLE (Bluetooth Low Energy), traditional Bluetooth, high-speed Bluetooth, etc., which is not limited here.
[0061] The terminal device may be a mobile phone, a tablet computer, a test machine of a service person (such as a service soldier), etc. In this embodiment and the following embodiments, a mobile phone is used as an example for description.
[0062] It should be noted that both the home appliance and the terminal device include Bluetooth modules, and the two can interact via Bluetooth, so that the terminal device can control the home appliance via Bluetooth.
[0063] In one embodiment, the home appliance and the SDK (software development kit) of the terminal device communicate with each other via Bluetooth, so that the home appliance is controlled by the SDK of the terminal device.
[0064] Figure 1 This is one of the flow charts of the household appliance control method provided by the present invention, such as Figure 1 As shown, the home appliance control method provided by the present invention includes the following steps 110-130:
[0065] Step 110: After receiving the authentication request sent by the terminal device, obtain the Bluetooth signal strength of the terminal device;
[0066] In this embodiment, the authentication request is initiated by the terminal device and sent to the home appliance, so that the home appliance authenticates the terminal device.
[0067] In one embodiment, after receiving the authentication request sent by the SDK of the terminal device, the Bluetooth signal strength of the terminal device is obtained.
[0068] The Bluetooth signal strength may be the signal strength obtained by collecting the Bluetooth signal of the terminal device from the home appliance.
[0069] It is understandable that the farther the home appliance is from the terminal device, the weaker the Bluetooth signal strength is; the closer the home appliance is to the terminal device, the stronger the Bluetooth signal strength is. Of course, Bluetooth signal strength is also affected by other environmental factors, which will not be detailed here.
[0070] To more accurately obtain the Bluetooth signal strength of the terminal device, multiple Bluetooth signal strengths can be collected and the average value can be calculated as the final Bluetooth signal strength.
[0071] Specifically, in the above step 110, obtaining the Bluetooth signal strength of the terminal device includes the following steps 111-112:
[0072] Step 111: Based on a preset sampling frequency and a preset sampling period, collect the signal strength of Bluetooth in the terminal device to obtain a Bluetooth signal strength set;
[0073] The preset sampling frequency and the preset sampling period can be set according to actual needs. For example, the preset sampling frequency is 50ms, the preset sampling period is 300ms, and 6 Bluetooth signal strengths are sampled in one sampling period.
[0074] It should be noted that the Bluetooth signal strength set includes multiple Bluetooth signal strengths, some of which may be abnormal. Therefore, it is necessary to remove abnormal values in the Bluetooth signal strength set.
[0075] Specifically, after step 111, the home appliance control method further includes:
[0076] Outliers in the Bluetooth signal strength set are removed to obtain a Bluetooth signal strength set after the outliers are removed.
[0077] It is understandable that if there are too many abnormal values in the Bluetooth signal strength concentration, it means that the signal strength sampled in the current sampling period is invalid. Based on this, it is necessary to resample the Bluetooth signal strength in the terminal device.
[0078] Furthermore, after step 111, the home appliance control method further includes:
[0079] Determine the abnormal number of abnormal values in the Bluetooth signal strength set; if the abnormal number is greater than the preset number, return to the step of collecting the signal strength of Bluetooth in the terminal device based on the preset sampling frequency and the preset sampling period to obtain the Bluetooth signal strength set until the abnormal number is greater than the preset number.
[0080] The preset number can be set according to actual needs. For example, if the Bluetooth signal strength set includes 6 sampling values, the preset number is 3.
[0081] Step 112: perform mean calculation on the Bluetooth signal strength set to obtain the Bluetooth signal strength of the terminal device.
[0082] In this embodiment, the mean calculation result of the Bluetooth signal strength set is used as the Bluetooth signal strength of the terminal device, thereby obtaining a more accurate Bluetooth signal strength, making the right confirmation process more accurate, and thus improving the performance of home appliance control.
[0083] It should be noted that after the home appliance and the terminal device are connected to each other via Bluetooth, the home appliance needs to confirm the rights of the terminal device before the terminal device controls the home appliance. Based on this, the terminal device generates a confirmation request and sends the confirmation request to the home appliance so that the home appliance receives the confirmation request.
[0084] In another embodiment, a terminal device that passes the initial authentication can control the home appliance without requiring a second authentication. Therefore, before step 110, the authentication key sent by the terminal device is verified. If the verification is invalid, step 110 is then executed. The specific execution process can be referred to in the third embodiment below and will not be detailed here.
[0085] In addition, it should be noted that before the terminal device is authenticated, the home appliance device needs to enable Bluetooth broadcasting and establish a secure channel between the home appliance device and the terminal device so that information exchange can be carried out based on the secure channel.
[0086] In some embodiments, before step 110, the home appliance control method further includes:
[0087] The Bluetooth broadcast in the home appliance is turned on to allow the Bluetooth in the home appliance to connect with the Bluetooth in the terminal device.
[0088] Furthermore, after the step of enabling Bluetooth broadcasting in the home appliance, the home appliance control method further includes:
[0089] If the Bluetooth in the home appliance device is successfully connected to the Bluetooth in the terminal device, the connection status is broadcast through the Bluetooth in the home appliance device; if the Bluetooth in the home appliance device is not successfully connected to the Bluetooth in the terminal device, the reason for the failure to connect is broadcast through the Bluetooth in the home appliance device, so that the terminal device can receive the reason for the failure to connect.
[0090] It is understandable that after the terminal device receives the reason for the failure to connect, it can perform further operations based on the reason for the failure to connect, thereby preventing the existence of operational blind spots and improving the user experience of the home appliance.
[0091] Specifically, the method for connecting the Bluetooth in the home appliance device and the Bluetooth in the terminal device includes:
[0092] Receive the session key sent by the terminal device; verify the session key; if the session key is successfully verified, the Bluetooth in the home appliance device and the Bluetooth in the terminal device are successfully connected.
[0093] In addition, a session key can be used to establish a secure channel for home appliances and terminal devices to exchange information through the secure channel.
[0094] In some embodiments, before step 110, the home appliance control method further includes:
[0095] When receiving the device query request sent by the terminal device, the device information of the home appliance is returned to the terminal device.
[0096] Among them, the device information is used to enable the terminal device to determine the home appliance object to be controlled.
[0097] Step 120: Compare the Bluetooth signal strength with the signal strength threshold of the home appliance;
[0098] It should be noted that due to the different structures of home appliances and the different deployment environments of home appliances, the signal strength thresholds of different home appliances are different.
[0099] Among them, the signal strength threshold is a threshold obtained by calculation and screening of a large amount of data and different environments.
[0100] In one implementation scenario, the terminal device collects Bluetooth signal strength in both directions at a distance of 2 meters from the home appliance, and then obtains the signal strength threshold of the home appliance through a large number of experiments, analysis, and calculations.
[0101] In one embodiment, after step 120, the home appliance control method further includes the following steps 140-150:
[0102] Step 140: If the Bluetooth signal strength is less than or equal to the signal strength threshold, sending a confirmation result indicating unsuccessful confirmation to the terminal device, so that the terminal device generates a prompt message indicating that the terminal device is close to the home appliance based on the confirmation result indicating unsuccessful confirmation.
[0103] Step 150: Return to the step of obtaining the Bluetooth signal strength of the terminal device until the Bluetooth signal strength is greater than the signal strength threshold.
[0104] Among them, the prompt information can be a sound message or a text message, and its content can be set according to actual needs, such as "Please move closer to the home appliance" to prompt the user to bring the terminal device closer to the home appliance to enhance the Bluetooth signal strength collected by the home appliance.
[0105] It should be noted that when the terminal device generates a prompt message that it is close to the home appliance, it returns to the above step 110 to obtain the Bluetooth signal strength of the terminal device, so as to continuously obtain the Bluetooth signal strength of the terminal device until the Bluetooth signal strength is greater than the signal strength threshold, thereby ensuring that the terminal device is successfully confirmed.
[0106] In another embodiment, after step 120, the home appliance control method further includes:
[0107] If the Bluetooth signal strength is less than or equal to the signal strength threshold, a prompt message is generated indicating that the device is close to the home appliance; and the process returns to the step of obtaining the Bluetooth signal strength of the terminal device until the Bluetooth signal strength is greater than the signal strength threshold.
[0108] It should be noted that the household appliance in this embodiment includes a sound playing device, which is used to play prompt information.
[0109] The content of the prompt information can be set according to actual needs, such as "Please move closer to the home appliance" to prompt the user to bring the terminal device closer to the home appliance to enhance the Bluetooth signal strength collected by the home appliance.
[0110] It is understandable that the home appliance plays a prompt message about approaching the home appliance, which allows the user to carry the terminal device closer to the home appliance according to the location of the sound source until the Bluetooth signal strength is greater than the signal strength threshold, thereby ensuring successful confirmation of the terminal device.
[0111] In one embodiment, step 120 includes:
[0112] Obtain a signal strength threshold carried in the authentication request, and compare the Bluetooth signal strength with the signal strength threshold, where the signal strength threshold corresponds to the home appliance.
[0113] It should be noted that the authorization request sent by the terminal device carries a signal strength threshold, which is determined by the terminal device based on the device information of the home appliance.
[0114] In one aspect, the terminal device may obtain the signal strength threshold corresponding to the home appliance stored in the platform through the network, wherein the platform stores the signal strength threshold corresponding to each home appliance.
[0115] It is understandable that the signal strength threshold is pre-stored in the platform and is set specifically for each home appliance.
[0116] Of course, the signal strength threshold stored in the platform can be changed. Specifically, due to the influence of environmental factors, the signal strength threshold corresponding to each home appliance can be changed.
[0117] In another embodiment, the step 120 includes:
[0118] Obtain a signal strength threshold stored in the home appliance, and compare the Bluetooth signal strength with the signal strength threshold.
[0119] The signal strength threshold is pre-stored in the home appliance and is set specifically according to the home appliance.
[0120] Of course, the signal strength threshold stored in the household appliance can be changed. Specifically, the stored signal strength threshold can be changed due to the influence of environmental factors.
[0121] Step 130: If the Bluetooth signal strength is greater than the signal strength threshold, a first authentication key is sent to the terminal device, so that the terminal device controls the home appliance based on the first authentication key.
[0122] The first authentication key is a first authentication key, which represents the authority of the terminal device to control the home appliance.
[0123] It should be noted that the terminal device can obtain the authority to control the home appliance based on the first authentication key.
[0124] Specifically, the first authentication key sent by the terminal device is received and the first authentication key is verified; if the verification of the first authentication key is valid, the verification result is sent to the terminal device, so that the terminal device has the authority to control the home appliance.
[0125] It can be understood that the terminal device that has passed the authentication this time already has the first authentication key, and there is no need to authenticate the authentication again in the future. The terminal device can directly obtain control over the home appliance based on the first authentication key, thereby achieving control over the home appliance.
[0126] To enable the terminal device to control the home appliance, after step 130, the home appliance control method further includes:
[0127] Receive a control request sent by the terminal device; determine a control command based on the control request and execute the control command; obtain a control result after execution and return response information of the control result to the terminal device.
[0128] According to an embodiment of the present invention, the home appliance control method is applied to a home appliance device, and the home appliance device includes Bluetooth. The home appliance device and the terminal device communicate with each other via Bluetooth, so that the terminal device can control the home appliance device via Bluetooth, thereby realizing home appliance control through the user's terminal device in the absence of a router or a network, thereby realizing intelligent home appliance control that does not rely on the network, and ultimately improving the user experience of the home appliance device. At the same time, after receiving the authorization request sent by the terminal device, the Bluetooth signal strength of the terminal device is obtained; the Bluetooth signal strength is compared with the signal strength threshold of the home appliance; if the Bluetooth signal strength is greater than the signal strength threshold, the first authorization key is sent to the terminal device, so that the terminal device controls the home appliance based on the first authorization key. The embodiment of the present invention can ensure that the first authorization key is returned to the terminal device only after the Bluetooth signal strength of the terminal device reaches the signal strength threshold, that is, it is ensured that the authorization is successful and the first authorization key is returned to the terminal device only after the distance between the home appliance and the terminal device meets the requirement, thereby preventing any terminal device connected to Bluetooth from controlling the home appliance, that is, avoiding user misoperation, and further ensuring that the authorization is successful and the terminal device that obtains the first authorization key can control the home appliance, thereby ensuring the feasibility of home appliance control based on Bluetooth. In summary, after ensuring the feasibility of home appliance control based on Bluetooth, the terminal device can control the home appliance through Bluetooth, realizing home appliance control through the user's terminal device in the absence of a router or network, thereby realizing intelligent home appliance control that does not rely on the network, and ultimately improving the user experience of the home appliance.
[0129] Furthermore, based on the above-mentioned first embodiment, a second embodiment of the home appliance control method according to the present invention is proposed. Figure 2 This is a second flow chart of the household appliance control method provided by the present invention, as shown in FIG. Figure 2 As shown, in this embodiment, the above step 130 includes the following steps 131-133:
[0130] Step 131: If the Bluetooth signal strength is greater than the signal strength threshold, a confirmation result indicating successful authentication is sent to the terminal device, so that the terminal device returns password information for password verification;
[0131] In this embodiment, not only does the Bluetooth signal strength need to reach the signal strength threshold, but the user also needs to enter the correct password through the terminal device before the first authentication key can be returned to the terminal device. In other words, authentication is not only based on the distance between the home appliance and the terminal device, but also based on the password.
[0132] It should be noted that the home appliance sends the confirmation result of successful confirmation to the terminal device, indicating that the first-level confirmation of the terminal device is successful. After the first-level confirmation is successful, the second-level confirmation based on the password is required.
[0133] Among them, after receiving the successful confirmation result sent by the home appliance, the terminal device sends password information to the home appliance.
[0134] Step 132: receiving password information sent by the terminal device;
[0135] The password information may be a 6-digit password, which may support letters (case sensitive), numbers, regular symbols, and the like.
[0136] Step 133: If the password information is successfully verified, a first authentication key of the home appliance is obtained and the first authentication key is sent to the terminal device.
[0137] In this embodiment, the password information is compared with the preset password. If the comparison result is consistent, the password information is successfully verified; if the comparison result is inconsistent, the password information is unsuccessful.
[0138] It should be noted that the pre-set password can be set by the first terminal device that successfully confirms the authentication.
[0139] In one embodiment, after step 120, the home appliance control method further includes:
[0140] If the Bluetooth signal strength is greater than the signal strength threshold, a password activation notification is sent to the terminal device so that the terminal device returns the password information for password setting; the password information sent by the terminal device is received; if a password setting request is received from the terminal device, the password information is saved for password verification.
[0141] The password information may be a 6-digit password, which may support letters (case sensitive), numbers, regular symbols, and the like.
[0142] Furthermore, after the step of saving the password information if a password setting request sent by the terminal device is received, the home appliance control method further includes:
[0143] Return a response message indicating that the password setting is successful to the terminal device.
[0144] The first authentication key may have been generated in a previous authentication process. In this case, it is only necessary to obtain the previously generated first authentication key and send it to the terminal device. If the first authentication key does not exist in the home appliance, the first authentication key is generated based on a preset generation algorithm.
[0145] Specifically, obtaining the first authentication key of the home appliance includes:
[0146] If the authentication key does not exist in the home appliance, random processing is performed based on the MAC address of the home appliance to obtain a first authentication key for the home appliance.
[0147] In one embodiment, the first authentication key is obtained by converting the MAC address of the home appliance into ASCII and then adding a hardware random number. The first authentication key can be 16 bytes.
[0148] It should be noted that after the first authentication key is generated, it can be persistently stored on the home appliance so that the first authentication key can be directly obtained later.
[0149] In this embodiment, after the first-level authentication based on the Bluetooth signal strength, the second-level authentication is also performed based on the password, thereby ensuring that the user can control the home appliance only after entering the correct password through the terminal device, thereby improving the security of home appliance control and further improving the user experience of the home appliance.
[0150] Furthermore, based on the above-mentioned first embodiment, a third embodiment of the home appliance control method of the present invention is proposed. Figure 3 The third flow chart of the household appliance control method provided by the present invention is as follows: Figure 3 As shown, in this embodiment, before the above step 110, the home appliance control method further includes the following steps 310-330:
[0151] Step 310: Receive the second authentication key sent by the terminal device and verify the second authentication key;
[0152] Among them, the second authentication key is the second authentication key.
[0153] It should be noted that before the terminal device controls the home appliance, it needs to send the second authentication key to the home appliance so that the home appliance can verify the second authentication key.
[0154] In a specific embodiment, the second authentication key can be compared with the authentication key stored in the home appliance. If the comparison is consistent, the second authentication key verification is valid; if the comparison is inconsistent, the second authentication key verification is invalid.
[0155] Step 320: If the verification of the second authentication key is invalid, a verification result indicating invalidity is sent to the terminal device, so that the terminal device sends the authentication request to the home appliance;
[0156] In this embodiment, if the second authentication key is not verified to be valid, the process proceeds to step 110 to perform authentication based on the Bluetooth signal strength, thereby obtaining an accurate first authentication key.
[0157] Step 330: If the second authentication key is verified to be valid, a verification result indicating that the second authentication key is valid is sent to the terminal device, so that the terminal device has the authority to control the home appliance.
[0158] In this embodiment, if the second authentication key is verified to be valid, it means that the terminal device is a device that has been successfully authenticated, and at this time, the home appliance can be controlled without a second authentication.
[0159] In this embodiment, a terminal device that passes the first authentication can control the home appliance without the need for a second authentication, thereby further improving the user experience of the home appliance.
[0160] An embodiment of the present invention provides a home appliance control method, which is applied to a terminal device. The terminal device includes Bluetooth, and the terminal device and the home appliance communicate with each other via the Bluetooth.
[0161] Among them, the terminal device is the execution subject of the home appliance control method of the embodiment of the present invention, the terminal device is the subject that controls the home appliance, and the home appliance is the subject that needs to be controlled.
[0162] The terminal device may be a mobile phone, a tablet computer, a test machine of a service person (such as a service soldier), etc. In this embodiment and the following embodiments, a mobile phone is used as an example for description.
[0163] The Bluetooth may be BLE (Bluetooth Low Energy), traditional Bluetooth, high-speed Bluetooth, etc., which is not limited here.
[0164] The household appliances may be refrigerators, air conditioners, washing machines, televisions, rice cookers, etc., without limitation here.
[0165] For the specific execution process of the home appliance, reference may be made to the first to third embodiments described above, and no detailed description will be given in this embodiment and the following embodiments.
[0166] It should be noted that both the terminal device and the home appliance device include a Bluetooth module, and the two can interact via Bluetooth, so that the terminal device can control the home appliance device via Bluetooth.
[0167] In one embodiment, the SDK of the terminal device and the home appliance communicate with each other via Bluetooth, so that the home appliance is controlled by the SDK of the terminal device.
[0168] Figure 4 This is a fourth flow chart of the household appliance control method provided by the present invention, as shown in FIG. Figure 4 As shown, the home appliance control method provided by the present invention includes the following steps 410-420:
[0169] Step 410: Sending a request for authentication to the home appliance so that the home appliance authenticates the terminal device;
[0170] It should be noted that after the terminal device and the home appliance are connected to each other via Bluetooth, the home appliance needs to authenticate the terminal device before the terminal device controls the home appliance. Based on this, the terminal device generates an authentication request and sends the authentication request to the home appliance so that the home appliance receives the authentication request and authenticates the terminal device.
[0171] In another embodiment, a terminal device that passes the initial authentication can control the home appliance without requiring a second authentication. Therefore, before step 410, the authentication key is sent to the home appliance. If the authentication fails, step 410 is not performed. The specific execution process can be found in the sixth embodiment below and will not be detailed here.
[0172] In addition, it should be noted that before the home appliance confirms the ownership of the terminal device, the home appliance needs to turn on Bluetooth broadcasting and establish a secure channel between the terminal device and the home appliance so that information exchange can be carried out based on the secure channel.
[0173] Specifically, the method for connecting the Bluetooth in the terminal device and the Bluetooth in the home appliance device includes:
[0174] The session key is sent to the home appliance so that the home appliance verifies the session key.
[0175] After the home appliance successfully verifies the session key, the Bluetooth in the terminal device and the Bluetooth in the home appliance are successfully connected.
[0176] In addition, a session key can be used to establish a secure channel for the terminal device and home appliance to exchange information through the secure channel.
[0177] In some embodiments, before step 410, the home appliance control method further includes:
[0178] Sending a device query request to the home appliance; and receiving device information sent by the home appliance.
[0179] Among them, the device information is used to enable the terminal device to determine the home appliance object to be controlled.
[0180] In one embodiment, after step 410, the home appliance control method further includes the following step 430:
[0181] Step 430: After receiving the unsuccessful confirmation result of the ownership confirmation sent by the home appliance, generate a prompt message close to the home appliance based on the unsuccessful confirmation result of the ownership confirmation.
[0182] The prompt information may be a sound message or a text message, and its content may be set according to actual needs, such as "Please move closer to the home appliance" to prompt the user to bring the terminal device closer to the home appliance.
[0183] It should be noted that when the terminal device generates a prompt message to approach the home appliance, the user carries the terminal device closer to the home appliance to ensure that the home appliance successfully confirms the ownership of the terminal device, thereby enabling the terminal device to have the authority to control the home appliance.
[0184] In one embodiment, the terminal device may obtain the signal strength threshold corresponding to the home appliance stored in the platform through the network, and then bind the signal strength threshold to the ownership confirmation request.
[0185] The platform stores the signal strength threshold corresponding to each home appliance.
[0186] It is understandable that the signal strength threshold is pre-stored in the platform and is set specifically for each home appliance.
[0187] Of course, the signal strength threshold stored in the platform can be changed. Specifically, due to the influence of environmental factors, the signal strength threshold corresponding to each home appliance can be changed.
[0188] Step 420: Receive a first authentication key sent by the home appliance to control the home appliance based on the first authentication key.
[0189] The first authentication key is a first authentication key, which represents the authority of the terminal device to control the home appliance.
[0190] It should be noted that the terminal device can obtain the authority to control the home appliance based on the first authentication key.
[0191] Specifically, a first authentication key is sent to the home appliance so that the home appliance verifies the first authentication key; if a valid verification result is received from the home appliance, it is determined that the terminal device has the authority to control the home appliance.
[0192] It can be understood that the terminal device that has passed the authentication this time already has the first authentication key, and there is no need to authenticate the authentication again in the future. The terminal device can directly obtain control over the home appliance based on the first authentication key, thereby achieving control over the home appliance.
[0193] To enable the terminal device to control the home appliance, after step 420, the home appliance control method further includes:
[0194] Sending a control request to the home appliance so that the home appliance executes the control command corresponding to the control request and returns response information of the control result after execution to the terminal device; receiving the response information sent by the home appliance.
[0195] According to the home appliance control method of the embodiment of the present invention, it is applied to a terminal device, and the terminal device includes Bluetooth. The terminal device and the home appliance device communicate with each other via Bluetooth, so that the terminal device can control the home appliance device via Bluetooth, and realize the control of the home appliance through the user's terminal device in the absence of a router or network, thereby realizing intelligent home appliance control that does not rely on the network, and ultimately improving the user experience of the home appliance device. At the same time, by sending a confirmation request to the home appliance device, so that the home appliance device confirms the terminal device; receiving the first confirmation key sent by the home appliance device, and controlling the home appliance device based on the first confirmation key, the embodiment of the present invention can ensure that the terminal device receives the first confirmation key only after the confirmation is successful, thereby preventing any terminal device connected to Bluetooth from controlling the home appliance device, that is, avoiding user misoperation, and then ensuring that the terminal device can control the home appliance device after the confirmation is successful and the first confirmation key is obtained, thereby ensuring the feasibility of home appliance control based on Bluetooth. To sum up, after ensuring the feasibility of Bluetooth-based home appliance control, terminal devices can control home appliances via Bluetooth, realizing home appliance control through the user's terminal device without a router or network, thereby realizing intelligent home appliance control that does not rely on the network, and ultimately improving the user experience of home appliances.
[0196] Furthermore, based on the fourth embodiment, a fifth embodiment of the home appliance control method according to the present invention is proposed. In this embodiment, after the above step 410, the home appliance control method further includes the following step 440:
[0197] Step 440: After receiving the successful authentication result sent by the home appliance, password information is sent to the home appliance so that the home appliance performs password verification on the password information. The result of the password verification is used to determine whether the home appliance sends the first authentication key to the terminal device.
[0198] In this embodiment, after the first level authentication is performed, the user needs to enter the correct password through the terminal device before the home appliance can return the first authentication key to the terminal device. That is, authentication based on the password is also required.
[0199] It should be noted that when the terminal device receives the successful confirmation result sent by the home appliance, it means that the terminal device has successfully completed the first-level confirmation. After the first-level confirmation is successful, the second-level confirmation is still required based on the password.
[0200] The password information may be a 6-digit password, which may support letters (case sensitive), numbers, regular symbols, and the like.
[0201] In one embodiment, after step 410, the home appliance control method further includes:
[0202] When receiving the password activation notification sent by the home appliance, password information and a password setting request are sent to the home appliance, so that the home appliance sets the password.
[0203] Furthermore, after the step of sending the password information and the password setting request to the home appliance, the home appliance control method further includes:
[0204] Receive a response message from the home appliance indicating that the password setting is successful.
[0205] In this embodiment, after the first-level authorization is performed on the terminal device, a second-level authorization is performed based on the password, thereby ensuring that the user can control the home appliance only after entering the correct password through the terminal device, thereby improving the security of home appliance control and further improving the user experience of the home appliance.
[0206] Furthermore, based on the fourth embodiment, a sixth embodiment of the home appliance control method of the present invention is proposed. In this embodiment, before the above step 410, the home appliance control method further includes the following steps 450-470:
[0207] Step 450: Send the second authentication key to the home appliance so that the home appliance verifies the second authentication key.
[0208] Among them, the second authentication key is the second authentication key.
[0209] It should be noted that before the terminal device controls the home appliance, it needs to send the second authentication key to the home appliance so that the home appliance can verify the second authentication key.
[0210] Step 460: If an invalid verification result is received from the home appliance, the authentication request is generated;
[0211] In this embodiment, if an invalid verification result is received from the home appliance, the process proceeds to step 410 to perform authentication based on the Bluetooth signal strength, thereby obtaining an accurate first authentication key.
[0212] Step 470: If a valid verification result is received from the home appliance, it is determined that the terminal device has the authority to control the home appliance.
[0213] In this embodiment, if a valid verification result is received from the home appliance, it means that the terminal device is a device that has been successfully authenticated, and at this time, the home appliance can be controlled without a second authentication.
[0214] In this embodiment, a terminal device that passes the first authentication can control the home appliance without the need for a second authentication, thereby further improving the user experience of the home appliance.
[0215] The home appliance control system provided by the present invention is described below. The home appliance control system described below and the home appliance control method described above can be referenced to each other.
[0216] In this embodiment, the home appliance control system includes home appliances and terminal devices;
[0217] The home appliance includes a first Bluetooth, and the home appliance and the terminal device communicate with each other via the first Bluetooth;
[0218] The terminal device includes a second Bluetooth, and the terminal device and the home appliance communicate with each other via the second Bluetooth;
[0219] The home appliance device is capable of executing the home appliance control method provided by each of the above methods, the method comprising: after receiving the authentication request sent by the terminal device, obtaining the Bluetooth signal strength of the terminal device; comparing the Bluetooth signal strength with a signal strength threshold of the home appliance device; if the Bluetooth signal strength is greater than the signal strength threshold, sending a first authentication key to the terminal device, so that the terminal device controls the home appliance device based on the first authentication key;
[0220] The terminal device is capable of executing the home appliance control method provided by the above methods, which includes: sending an authorization request to the home appliance device so that the home appliance device can authenticate the terminal device; receiving a first authorization key sent by the home appliance device to control the home appliance device based on the first authorization key.
[0221] This article takes the mobile phone as the terminal device, the BLE as the home appliance, and the interaction between the mobile phone and the home appliance through the SDK as an example. Figure 5 As shown, Figure 5 A detailed flowchart provided for an embodiment of the present invention.
[0222] like Figure 5 As shown, in this case, the specific implementation process is:
[0223] 1. The appliance starts broadcasting via BLE. 2. The mobile SDK uses the session key to establish a secure channel. 3. The appliance verifies the session. key; 4. The appliance returns a BLE connection success to the mobile SDK; 5. The mobile SDK queries the device information; 6. The appliance returns the device information to the mobile SDK; 7. The mobile SDK sends the authentication key to the appliance; 8. The appliance verifies the authentication key; 9. The appliance returns the verification result "valid" or "invalid"; 10. The mobile SDK sends an authentication request to the appliance, carrying the signal strength threshold; 11. The appliance starts authentication; 12. The appliance sends a password activation notification to the mobile SDK; 13. Enter the password to the mobile SDK; 14. The mobile SDK sends a password setting request to the appliance; 15. The appliance saves the password; 16. The appliance responds with a successful setting; 17. Enter the password to the mobile SDK; 18. The mobile SDK sends a password unlocking request; 19. The appliance verifies the password; 20. The appliance returns an unlocking response to the mobile SDK; 21. If there is no authentication key in the appliance, it generates an authentication key; 22. The appliance returns the authentication result, carrying the authentication key; 23. The mobile SDK is based on the session The key sends a control request to the home appliance; 24. The home appliance executes the control command; 25. The home appliance responds with the control result.
[0224] The home appliance control device provided by the present invention is described below. The home appliance control device described below and the home appliance control method described above can be referenced to each other.
[0225] An embodiment of the present invention further provides a home appliance control device, which is deployed in a home appliance device. The home appliance device includes Bluetooth, and the home appliance device and a terminal device communicate with each other via the Bluetooth.
[0226] like Figure 6 As shown, the home appliance control device includes:
[0227] An acquisition module 610 is configured to acquire the Bluetooth signal strength of the terminal device after receiving the authentication request sent by the terminal device;
[0228] a comparison module 620, configured to compare the Bluetooth signal strength with a signal strength threshold of the home appliance;
[0229] The sending module 630 is configured to send a first authentication key to the terminal device if the Bluetooth signal strength is greater than the signal strength threshold, so that the terminal device controls the home appliance based on the first authentication key.
[0230] Furthermore, the sending module 630 is also used to send a successful authentication result to the terminal device if the Bluetooth signal strength is greater than the signal strength threshold, so that the terminal device returns password information for password verification; receive the password information sent by the terminal device; if the password information is successfully verified, obtain the first authentication key of the home appliance device, and send the first authentication key to the terminal device.
[0231] Furthermore, the acquisition module 610 is also used to collect the Bluetooth signal strength in the terminal device based on a preset sampling frequency and a preset sampling period to obtain a Bluetooth signal strength set; and perform mean calculation on the Bluetooth signal strength set to obtain the Bluetooth signal strength of the terminal device.
[0232] Furthermore, the home appliance control device further includes:
[0233] a right confirmation sending module, configured to send a right confirmation result indicating unsuccessful right confirmation to the terminal device if the Bluetooth signal strength is less than or equal to the signal strength threshold, so that the terminal device generates a prompt message indicating that the terminal device is close to the home appliance based on the right confirmation result;
[0234] The step return module is used to return to the step of obtaining the Bluetooth signal strength of the terminal device until the Bluetooth signal strength is greater than the signal strength threshold.
[0235] Furthermore, the home appliance control device further includes:
[0236] A key receiving module, configured to receive the second authentication key sent by the terminal device and verify the second authentication key;
[0237] A result sending module is configured to send a verification result indicating that the verification is invalid to the terminal device if the verification of the second authentication key is invalid, so that the terminal device sends the authentication request to the home appliance;
[0238] The result sending module is further configured to send a valid verification result to the terminal device if the second authentication key is verified to be valid, so that the terminal device has the authority to control the home appliance.
[0239] An embodiment of the present invention further provides a home appliance control device, which is deployed in a terminal device. The terminal device includes Bluetooth, and the terminal device and the home appliance communicate with each other via the Bluetooth.
[0240] like Figure 7 As shown, the home appliance control device includes:
[0241] The sending module 710 is configured to send an authentication request to the home appliance so that the home appliance authenticates the terminal device;
[0242] The receiving module 720 is configured to receive a first authentication key sent by the home appliance, so as to control the home appliance based on the first authentication key.
[0243] Furthermore, the home appliance control device further includes:
[0244] A password sending module is used to send password information to the home appliance after receiving the successful authentication result sent by the home appliance, so that the home appliance can perform password verification on the password information. The verification result of the password verification is used to determine whether the home appliance sends the first authentication key to the terminal device.
[0245] Furthermore, the home appliance control device further includes:
[0246] The prompt generation module is used to generate prompt information close to the home appliance based on the unsuccessful confirmation result after receiving the unsuccessful confirmation result sent by the home appliance.
[0247] Furthermore, the home appliance control device further includes:
[0248] a key sending module, configured to send a second authentication key to the home appliance, so that the home appliance verifies the second authentication key;
[0249] a request generating module, configured to generate the authentication request upon receiving an invalid authentication result sent by the home appliance;
[0250] The authority determination module is used to determine whether the terminal device has the authority to control the home appliance if a valid verification result sent by the home appliance is received.
[0251] Figure 8 An example of a physical structure diagram of an electronic device is shown below. Figure 8As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820, and the memory 830 communicate with each other via the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute a home appliance control method, the method comprising: after receiving an authentication request sent by the terminal device, obtaining the Bluetooth signal strength of the terminal device; comparing the Bluetooth signal strength with the signal strength threshold of the home appliance; if the Bluetooth signal strength is greater than the signal strength threshold, sending a first authentication key to the terminal device so that the terminal device controls the home appliance based on the first authentication key. Alternatively, the method comprises: sending an authentication request to the home appliance so that the home appliance authenticates the terminal device; receiving the first authentication key sent by the home appliance so that the home appliance controls the home appliance based on the first authentication key.
[0252] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0253] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the home appliance control method provided by the above methods, the method comprising: after receiving the authentication request sent by the terminal device, obtaining the Bluetooth signal strength of the terminal device; comparing the Bluetooth signal strength with the signal strength threshold of the home appliance; if the Bluetooth signal strength is greater than the signal strength threshold, sending a first authentication key to the terminal device, so that the terminal device controls the home appliance based on the first authentication key. Alternatively, the method comprises: sending an authentication request to the home appliance so that the home appliance authenticates the terminal device; receiving the first authentication key sent by the home appliance, so as to control the home appliance based on the first authentication key.
[0254] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the home appliance control method provided by the above methods, the method comprising: after receiving an authentication request sent by the terminal device, obtaining the Bluetooth signal strength of the terminal device; comparing the Bluetooth signal strength with a signal strength threshold of the home appliance; if the Bluetooth signal strength is greater than the signal strength threshold, sending a first authentication key to the terminal device, so that the terminal device controls the home appliance based on the first authentication key. Alternatively, the method comprises: sending an authentication request to the home appliance so that the home appliance authenticates the terminal device; receiving the first authentication key sent by the home appliance, so that the home appliance controls the home appliance based on the first authentication key.
[0255] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.
[0256] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.
[0257] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A household appliance control method, characterized in that: Applied to a home appliance, the home appliance includes Bluetooth, the home appliance and a terminal device communicate with each other via the Bluetooth, the method comprising: After receiving the authentication request sent by the terminal device, obtaining the Bluetooth signal strength of the terminal device; Comparing the Bluetooth signal strength with a signal strength threshold of the home appliance; If the Bluetooth signal strength is greater than the signal strength threshold, a first authentication key is sent to the terminal device, so that the terminal device controls the home appliance based on the first authentication key; the first authentication key is an indication of the terminal device's authority to control the home appliance; wherein the home appliance receives the first authentication key sent by the terminal device and verifies the first authentication key. If the verification of the first authentication key is valid, a verification result of the verification is sent to the terminal device, so that the terminal device has the authority to control the home appliance; After receiving the authentication request sent by the terminal device and before obtaining the Bluetooth signal strength of the terminal device, the home appliance control method further includes: When receiving the device query request sent by the terminal device, the device information of the home appliance is returned to the terminal device.
2. The home appliance control method according to claim 1, characterized in that: If the Bluetooth signal strength is greater than the signal strength threshold, sending the first authentication key to the terminal device includes: If the Bluetooth signal strength is greater than the signal strength threshold, a confirmation result indicating successful authentication is sent to the terminal device, so that the terminal device returns password information for password verification; Receiving password information sent by the terminal device; If the password information is successfully verified, a first authentication key of the home appliance is obtained and the first authentication key is sent to the terminal device.
3. The home appliance control method according to claim 1, wherein: The obtaining of the Bluetooth signal strength of the terminal device includes: Based on a preset sampling frequency and a preset sampling period, collecting the signal strength of Bluetooth in the terminal device to obtain a Bluetooth signal strength set; Perform mean calculation on the Bluetooth signal strength set to obtain the Bluetooth signal strength of the terminal device.
4. The home appliance control method according to claim 1, characterized in that: After comparing the Bluetooth signal strength with the signal strength threshold of the home appliance, the method further includes: If the Bluetooth signal strength is less than or equal to the signal strength threshold, sending an unsuccessful confirmation result to the terminal device, so that the terminal device generates a prompt message of approaching the home appliance based on the unsuccessful confirmation result; Return to the step of obtaining the Bluetooth signal strength of the terminal device until the Bluetooth signal strength is greater than the signal strength threshold.
5. The home appliance control method according to any one of claims 1 to 4, characterized in that: After receiving the authentication request sent by the terminal device, and before obtaining the Bluetooth signal strength of the terminal device, the method further includes: Receiving the second authentication key sent by the terminal device and verifying the second authentication key; If the verification of the second authentication key is invalid, sending an invalid verification result to the terminal device, so that the terminal device sends the authentication request to the home appliance; If the second authentication key is verified to be valid, a verification result indicating that the second authentication key is valid is sent to the terminal device, so that the terminal device has the authority to control the home appliance.
6. A method for controlling a home appliance, characterized in that: Applied to a terminal device, the terminal device includes Bluetooth, the terminal device and a home appliance communicate with each other via the Bluetooth, the method comprising: Sending an authentication request to the home appliance so that the home appliance authenticates the terminal device; receiving a first authorization key sent by the home appliance to control the home appliance based on the first authorization key; the first authorization key represents the authority of the terminal device to control the home appliance; wherein the home appliance compares the Bluetooth signal strength of the terminal device with a signal strength threshold of the home appliance; if the Bluetooth signal strength is greater than the signal strength threshold, sending the first authorization key to the terminal device so that the terminal device controls the home appliance based on the first authorization key; receiving the first authorization key sent by the terminal device, and verifying the first authorization key; if the verification of the first authorization key is valid, sending a verification result of the verification to the terminal device so that the terminal device has the authority to control the home appliance; Before sending the authentication request to the home appliance so that the home appliance authenticates the terminal device, the home appliance control method further includes: Sending a device query request to the home appliance; Receive device information sent by the home appliance.
7. The home appliance control method according to claim 6, characterized in that: After sending the authentication request to the home appliance so that the home appliance authenticates the terminal device, the method further includes: After receiving the successful authentication result sent by the home appliance, password information is sent to the home appliance so that the home appliance performs password verification on the password information. The verification result of the password verification is used to determine whether the home appliance sends the first authentication key to the terminal device.
8. The home appliance control method according to claim 6, characterized in that: After sending the authentication request to the home appliance so that the home appliance authenticates the terminal device, the method further includes: After receiving the unsuccessful confirmation result of the ownership confirmation sent by the home appliance, a prompt message is generated close to the home appliance based on the unsuccessful confirmation result of the ownership confirmation.
9. The home appliance control method according to any one of claims 6 to 8, characterized in that: Before sending the authentication request to the home appliance so that the home appliance authenticates the terminal device, the method further includes: Sending a second authentication key to the home appliance so that the home appliance verifies the second authentication key; If an invalid verification result is received from the home appliance, generating the authentication request; If a valid verification result sent by the home appliance is received, it is determined that the terminal device has the authority to control the home appliance.
10. A home appliance control device, characterized in that: Deployed on a home appliance, the home appliance includes Bluetooth, the home appliance and the terminal device communicate with each other via the Bluetooth, and the device includes: An acquisition module, configured to acquire the Bluetooth signal strength of the terminal device after receiving the authentication request sent by the terminal device; a comparison module, configured to compare the Bluetooth signal strength with a signal strength threshold of the home appliance; a sending module, configured to send a first authentication key to the terminal device if the Bluetooth signal strength is greater than the signal strength threshold, so that the terminal device controls the home appliance based on the first authentication key; the first authentication key is an indication of the terminal device's authority to control the home appliance; wherein the home appliance receives the first authentication key sent by the terminal device and verifies the first authentication key; if the verification of the first authentication key is valid, sending a verification result of the validity to the terminal device, so that the terminal device has the authority to control the home appliance; Among them, after receiving the authentication request sent by the terminal device and before obtaining the Bluetooth signal strength of the terminal device, when receiving the device query request sent by the terminal device, the device information of the home appliance is returned to the terminal device.
11. A home appliance control device, characterized in that: Deployed on a terminal device, the terminal device includes Bluetooth, the terminal device and the home appliance communicate with each other via the Bluetooth, the device includes: A sending module, configured to send an authentication request to the home appliance, so that the home appliance authenticates the terminal device; a receiving module, configured to receive a first authorization key sent by the home appliance, so as to control the home appliance based on the first authorization key; the first authorization key represents the authority of the terminal device to control the home appliance; wherein the home appliance compares the Bluetooth signal strength of the terminal device with a signal strength threshold of the home appliance; if the Bluetooth signal strength is greater than the signal strength threshold, the first authorization key is sent to the terminal device, so that the terminal device controls the home appliance based on the first authorization key; receive the first authorization key sent by the terminal device, and verify the first authorization key; if the verification of the first authorization key is valid, the verification result of the validity is sent to the terminal device, so that the terminal device has the authority to control the home appliance; Before sending the authentication request to the home appliance so that the home appliance authenticates the terminal device, a device query request is sent to the home appliance; and device information sent by the home appliance is received.
12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the home appliance control method according to any one of claims 1 to 9 are implemented.
13. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the home appliance control method according to any one of claims 1 to 9 are implemented.
Citation Information
Patent Citations
Mobile terminal unlocking method, mobile terminal and intelligent lock
CN104867215A
Electronic device control method and apparatus thereof
CN105608861A
Device connection method and device
CN105828281A
Intelligent lock control method and device, equipment and storage medium
CN111862410A