Equipment binding method and device, electronic equipment and storage medium
By deploying NFC chips in the clothes drying scene of the clothes drying device, ensuring that the device is only bound to one user terminal at the same time, solving the security problems caused by the clothes drying device due to receiving multiple mutually exclusive control instructions, and achieving a higher user security experience.
Patent Information
- Application Number
- CN202311102021.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-29
- Publication Date
- 2025-02-28
AI Technical Summary
Existing clothes drying equipment continuously receives mutually exclusive control instructions issued by different user terminals in a short period of time, which may cause security problems, such as collision risks.
By deploying an NFC chip in the clothes drying scene, it is possible that there is only one associated device bound to the clothes drying device at the same time, thereby avoiding the continuous reception of control instructions from different user terminals.
It solves the security problems caused by the continuous execution of mutually exclusive control instructions in the clothes drying equipment, and improves the user's security experience.
Smart Images

Figure CN119544774A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of clothes drying equipment, and in particular to a device binding method, apparatus, electronic device and storage medium. Background Art
[0002] At present, clothes drying equipment (such as smart clothes drying machines) has become a necessity in people's lives, and with the improvement of people's living standards, people have more functional requirements for clothes drying equipment, such as requiring clothes drying equipment to have functions that can be controlled by user terminals such as mobile phones. Based on this, in the prior art, clothes drying equipment can communicate and interact with user terminals such as mobile phones through a WiFi network connected to a router, and execute corresponding actions according to control instructions issued by the user terminal, thereby realizing the function of controlling the clothes drying equipment through the user terminal.
[0003] However, in the prior art, the clothes drying device may continuously receive mutually exclusive control instructions issued by different user terminals in a short period of time, and executing the control instructions in this case may cause safety problems. For example, in response to the trigger operation of user A, user terminal A first sends control instruction A for controlling the height of the clothes drying device to the clothes drying device. During the execution of control instruction A by the clothes drying device, user A gradually approaches directly below the clothes drying device. At this time, user B, who is not in the clothes drying scene, triggers control instruction B for controlling the height of the clothes drying device in user terminal B. Then, when the clothes drying device executes the descending action corresponding to control instruction B, it may collide with user A, causing safety problems. Summary of the invention
[0004] The present application provides a device binding method, apparatus, electronic device and storage medium, which can solve the security problem caused by the continuous execution of mutually exclusive control instructions of the clothes drying device.
[0005] In order to achieve the above objectives, this application adopts the following technical solutions:
[0006] In a first aspect, the present application provides a device binding method, which can be applied to a server, and the method includes: when a touch instruction for an NFC chip initiated by a target user terminal is detected, determining whether a clothes drying device is bound to an associated device; the associated device is a user terminal that can currently communicate and interact with the clothes drying device; when it is determined that the clothes drying device is bound to an associated device, updating the associated device bound to the clothes drying device to the target user terminal; and feeding back a binding success message to the target user terminal, which is used to instruct the target user terminal to send a first control instruction to the clothes drying device in response to a trigger operation of the user, so that the clothes drying device performs an action corresponding to the first control instruction.
[0007] In the technical solution provided by the present application, users can pre-deploy NFC chips in the clothes drying scene according to usage requirements (for example, paste an electronic tag containing an NFC chip in the area where the clothes drying device is located). When the user wants to control the clothes drying device through the target user terminal, the target user terminal can be touched with the electronic tag first, triggering the target user terminal to initiate a touch command for the NFC chip to the server. When the server detects the touch command, it can determine whether the clothes drying device is bound to an associated device, that is, whether there are other user terminals that can communicate and interact with the clothes drying device. When it is determined that the clothes drying device is bound to an associated device, the associated device bound to the clothes drying device can be updated to the target user terminal. Afterwards, the server can feedback a binding success message to the target user terminal, which is used to indicate that the target user terminal sends a first control instruction to the clothes drying device in response to the user's trigger operation, so that the clothes drying device performs an action corresponding to the first control instruction. In this way, the target user terminal is bound to the clothes drying device, and the target user terminal can communicate and interact with the clothes drying device to achieve control of the clothes drying device. It can be seen that in the technical solution provided by the present application, when the user needs to control the clothes drying device through the user terminal, the user terminal must first be touched with the NFC chip to complete the binding of the user terminal and the clothes drying device. Since there is only one associated device bound to the clothes drying device at the same time, the clothes drying device cannot communicate and interact with multiple user terminals at the same time. Then, the clothes drying device will not continuously receive control instructions issued by different user terminals in a short period of time. Therefore, the security problem caused by the continuous execution of mutually exclusive control instructions of the clothes drying device can be solved.
[0008] In addition, in the technical solution provided by this application, the device that communicates and interacts with the clothes drying device is the user terminal that was most recently bound to the clothes drying device through the NFC chip. Since the NFC chip is deployed in the clothes drying scene, the device that communicates and interacts with the clothes drying device is also the user terminal that may be closest to the clothes drying scene. Therefore, the control instructions executed by the clothes drying device in this application are control instructions triggered by the user who may be closest to the clothes drying scene. In this way, it is closer to the actual needs of users using the clothes drying device, thereby improving the user experience.
[0009] Optionally, in a possible design, determining whether the clothes drying device is bound to an associated device includes: determining whether the status flag is a first preset flag; when determining that the status flag is the first preset flag, determining that the clothes drying device is bound to an associated device; when determining that the status flag is a second preset flag, determining that the clothes drying device is not bound to an associated device.
[0010] Optionally, in another possible design, updating the associated device bound to the clothes drying device to the target user terminal includes:
[0011] Determine whether the candidate device identification list includes the device identification of the target user terminal;
[0012] When it is determined that the candidate device identification list includes the device identification of the target user terminal, updating the associated device bound to the clothes drying device to the target user terminal;
[0013] When it is determined that the device identification of the target user terminal is not included in the candidate device identification list, a communication connection is created between the target user terminal and the clothes drying device, and the associated device bound to the clothes drying device is updated to the target user terminal, and the device identification of the target user terminal is added to the candidate device identification list.
[0014] Optionally, in another possible design, before feeding back a binding success message to the target user terminal, the device binding method provided in the present application may also include: sending a binding update message to the clothes drying device, to instruct the clothes drying device to update the association identifier to the device identifier of the target user terminal; wherein the association identifier is the device identifier of the associated device.
[0015] In the second aspect, the present application provides a device binding method, which can be applied to a clothes drying device, comprising: receiving a first control instruction sent by a target user terminal in response to a user's trigger operation; determining whether an action corresponding to a second control instruction sent by a remote control device is currently being executed; if it is determined that the action corresponding to the second control instruction is not currently being executed, executing the action corresponding to the first control instruction; if it is determined that the action corresponding to the second control instruction is currently being executed, continuing to execute the action corresponding to the second control instruction.
[0016] Since in actual applications, users may also control the clothes drying equipment through the remote control device that is fixedly configured when the clothes drying equipment leaves the factory, and the user's operation of the remote control device must be performed on site (i.e. within a certain range around the clothes drying equipment), in this application, the control priority of the remote control device can be set higher than the control priority of the user terminal. Based on this, in the technical solution provided by this application, after the clothes drying equipment receives the first control instruction sent by the target user terminal in response to the user's trigger operation, it can first determine whether the action corresponding to the second control instruction sent by the remote control device is being executed at this time. If the action corresponding to the second control instruction is not executed at this time, the action corresponding to the first control instruction can be executed normally; on the contrary, if the action corresponding to the second control instruction sent by the remote control device is being executed at this time, the action corresponding to the first control instruction may not be executed, but the action corresponding to the second control instruction may continue to be executed to ensure the control priority of the remote control device. Such a control method is closer to the actual needs of users using clothes drying equipment, thereby further improving the user experience.
[0017] Optionally, in a possible design method, the first control instruction carries the device identifier of the target user terminal, and executes an action corresponding to the first control instruction, including: determining whether the device identifier of the target user terminal is a locally stored association identifier; wherein the association identifier is the device identifier of an associated device currently bound to the clothes drying device, and the associated device is a user terminal that can currently communicate and interact with the clothes drying device; when it is determined that the device identifier of the target user terminal is an associated identifier, execute the action corresponding to the first control instruction.
[0018] In a third aspect, the present application provides a device binding apparatus, which is configured on a server and includes: a determination module, an update module, and a sending module;
[0019] Specifically, the determination module is used to determine whether the clothes drying device is bound to an associated device when a touch instruction for the NFC chip initiated by the target user terminal is detected; the associated device is a user terminal that can currently communicate and interact with the clothes drying device;
[0020] An updating module, configured to update the associated device bound to the clothes drying device to a target user terminal when the determining module determines that the clothes drying device has been bound to an associated device;
[0021] The sending module is used to feed back a binding success message to the target user terminal, and is used to instruct the target user terminal to send a first control instruction to the clothes drying device in response to the user's trigger operation, so that the clothes drying device executes an action corresponding to the first control instruction.
[0022] Optionally, in one possible design, the determination module is specifically used to: determine whether the status flag is a first preset flag; when it is determined that the status flag is the first preset flag, determine that the clothes drying device is bound to an associated device; when it is determined that the status flag is a second preset flag, determine that the clothes drying device is not bound to an associated device.
[0023] Optionally, in another possible design, the update module is specifically used for:
[0024] Determine whether the candidate device identification list includes the device identification of the target user terminal;
[0025] When it is determined that the candidate device identification list includes the device identification of the target user terminal, updating the associated device bound to the clothes drying device to the target user terminal;
[0026] When it is determined that the device identification of the target user terminal is not included in the candidate device identification list, a communication connection is created between the target user terminal and the clothes drying device, and the associated device bound to the clothes drying device is updated to the target user terminal, and the device identification of the target user terminal is added to the candidate device identification list.
[0027] Optionally, in another possible design, the sending module is also used to send a binding update message to the clothes drying device before feeding back a binding success message to the target user terminal, to instruct the clothes drying device to update the association identifier to the device identifier of the target user terminal; wherein the association identifier is the device identifier of the associated device.
[0028] In a fourth aspect, the present application provides a device binding apparatus, which is configured on a clothes drying device, and includes: a receiving module, a determining module, and an executing module;
[0029] A receiving module is used to receive a first control instruction sent by a target user terminal in response to a user's trigger operation; a determining module is used to determine whether an action corresponding to a second control instruction sent by a remote control device is currently being executed; an executing module is used to execute an action corresponding to the first control instruction when the determining module determines that the action corresponding to the second control instruction is not currently being executed; and the executing module is also used to continue to execute the action corresponding to the second control instruction when the determining module determines that the action corresponding to the second control instruction is currently being executed.
[0030] Optionally, in one possible design, the execution module is specifically used to: determine whether the device identifier of the target user terminal is a locally stored association identifier; wherein the association identifier is the device identifier of an association device currently bound to the clothes drying device, and the associated device is a user terminal that can currently communicate and interact with the clothes drying device; when it is determined that the device identifier of the target user terminal is an association identifier, execute an action corresponding to the first control instruction.
[0031] In a fifth aspect, the present application provides an electronic device, comprising a memory, a processor, a bus and a communication interface; the memory is used to store computer execution instructions, and the processor is connected to the memory through a bus; when the electronic device is running, the processor executes the computer execution instructions stored in the memory, so that the electronic device executes the device binding method provided in the first aspect or the second aspect above.
[0032] In a sixth aspect, the present application provides a computer-readable storage medium, in which instructions are stored. When a computer executes the instructions, the computer executes the device binding method provided in the first aspect or the second aspect.
[0033] In a seventh aspect, the present application provides a computer program product, which includes computer instructions. When the computer instructions are executed on a computer, the computer executes the device binding method provided in the first aspect or the second aspect.
[0034] In an eighth aspect, the present application provides a device binding system, including a server, a clothes drying device, an NFC chip, and multiple user terminals.
[0035] It should be noted that the above computer instructions may be stored in whole or in part on a computer-readable storage medium, wherein the computer-readable storage medium may be packaged together with the processor of the electronic device, or may be packaged separately from the processor of the electronic device, which is not limited in this application.
[0036] The descriptions of aspects 3 to 8 in this application may refer to the detailed descriptions of aspects 1 or 2; and the beneficial effects of the descriptions of aspects 3 to 8 may refer to the beneficial effect analysis of aspects 1 or 2, which will not be repeated here.
[0037] In this application, the names of the above-mentioned devices or functional modules are not limited. In actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of this application, they are within the scope of this application and its equivalent technologies.
[0038] These and other aspects of the present application will become more apparent from the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A schematic diagram of a device binding method provided in an embodiment of the present application;
[0040] Figure 2 A flowchart of another device binding method provided in an embodiment of the present application;
[0041] Figure 3 A flowchart of another device binding method provided in an embodiment of the present application;
[0042] Figure 4 A schematic diagram of the structure of a device binding apparatus provided in an embodiment of the present application;
[0043] Figure 5 A schematic diagram of the structure of another device binding apparatus provided in an embodiment of the present application;
[0044] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] The device binding method, apparatus, electronic device and storage medium provided in the embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0046] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0047] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.
[0048] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0049] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0050] In the description of the present application, unless otherwise specified, “plurality” means two or more.
[0051] In addition, the acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.
[0052] In the prior art, the clothes drying device may continuously receive mutually exclusive control instructions issued by different user terminals in a short period of time, and executing the control instructions in this case may cause safety problems. For example, in response to the trigger operation of user A, user terminal A first sends control instruction A for controlling the height of the clothes drying device to the clothes drying device. During the execution of control instruction A by the clothes drying device, user A gradually approaches directly below the clothes drying device. At this time, user B, who is not in the clothes drying scene, triggers control instruction B for controlling the height of the clothes drying device in user terminal B. Then, when the clothes drying device executes the descending action corresponding to control instruction B, it may collide with user A, causing safety problems.
[0053] In response to the problems existing in the above-mentioned prior art, an embodiment of the present application provides a device binding method. By deploying a near field communication (NFC) chip in the clothes drying scene, the method can ensure that there is only one associated device bound to the clothes drying device at the same time, thereby solving the security issues caused by the continuous execution of mutually exclusive control instructions of the clothes drying device.
[0054] The device binding method provided in the embodiment of the present application can be executed by the device binding apparatus provided in the embodiment of the present application. The apparatus can be implemented in software and / or hardware and integrated in the electronic device that executes the method.
[0055] Reference Figure 1 , the embodiment of the present application provides a flow chart of a device binding method, which can be applied to a server, that is, the electronic device executing the method can be a server. Exemplarily, the server can be a background server of a clothes drying device. Figure 1 As shown, the method includes S101-S103:
[0056] S101: When a touch instruction initiated by a target user terminal to an NFC chip is detected, determine whether a clothes drying device is bound to an associated device.
[0057] The associated device is a user terminal that can currently communicate and interact with the clothes drying device.
[0058] In the embodiment of the present application, an associated device can be set for the clothes drying device, and the clothes drying device cannot be set with two or more associated devices at the same time. The associated device is a user terminal that can communicate and interact with the clothes drying device, that is, the clothes drying device cannot communicate and interact with multiple user terminals at the same time. When the user wants to control the clothes drying device through the target user terminal, the clothes drying device may have been bound to a certain user terminal. Therefore, in order to avoid repeated binding, the target user terminal can initiate a touch instruction for the NFC chip to the server, so that the server determines whether the current clothes drying device is bound to an associated device.
[0059] The user terminal may be a mobile phone, tablet computer, handheld computer, netbook, personal digital assistant (PDA), wearable electronic device, virtual reality device, etc. For example, in the embodiment of the present application, the user terminal may be installed with an application software (Application, APP) for controlling the clothes drying device, and the user terminal may communicate and interact with the server or the clothes drying device based on the user's operation while the user is using the application software.
[0060] In one possible implementation, the embodiment of the present application can pre-configure the NFC chip. When the configured NFC chip detects a touch signal from the user terminal, it can trigger the user terminal to automatically enter the APP for controlling the clothes drying device, and at the same time, trigger the user terminal to initiate a touch command to the server.
[0061] For example, the user can deploy an NFC chip in a clothes-drying scene (such as a balcony with clothes-drying equipment) in advance. Specifically, an electronic tag including an NFC chip can be attached to a certain position in the clothes-drying scene that is convenient for the user to touch. When the user wants to control the clothes-drying equipment through the target user terminal, the target user terminal can be touched with the electronic tag. The NFC chip in the electronic tag will detect the touch signal, triggering the target user terminal to automatically enter the APP for controlling the clothes-drying equipment, and at the same time, triggering the target user terminal to initiate a touch command to the server.
[0062] In addition, since the user terminal may not have the APP for controlling the clothes drying device installed, there is a situation where the NFC chip fails to trigger the user terminal to start the APP. At this time, the NFC chip can initiate an installation request to the user terminal to instruct the user terminal to install the APP for controlling the clothes drying device.
[0063] Optionally, determining whether the clothes drying device is bound to an associated device includes: determining whether the status flag is a first preset flag; when determining that the status flag is the first preset flag, determining that the clothes drying device is bound to an associated device; when determining that the status flag is a second preset flag, determining that the clothes drying device is not bound to an associated device.
[0064] The first preset flag bit and the second preset flag bit may be predetermined status flag bits. For example, the first preset flag bit may be 1, and the second preset flag bit may be 0.
[0065] The status flag can be used to characterize the binding status of the clothes drying device. After the server completes the binding between the user terminal and the clothes drying device, it can modify the status flag to the first preset flag. After the server completes the unbinding between the user terminal and the clothes drying device, it can modify the status flag to the second preset flag. In one possible implementation, the server can synchronize the status flag to the clothes drying device, and the clothes drying device presents the binding status of the clothes drying device to the user by lighting the icon, so that the user can operate on the APP more accurately.
[0066] S102: When it is determined that the clothes drying device has been bound to an associated device, the associated device bound to the clothes drying device is updated to a target user terminal.
[0067] In an embodiment of the present application, when the server determines that the clothes drying device has been bound to an associated device, it can unbind the current associated device from the clothes drying device, and then bind the target user terminal to the clothes drying device. Exemplarily, when the user terminal sends a touch command to the server, it carries the device identification of the user terminal, and the server can complete the binding of the user terminal to the clothes drying device by setting the device identification of the associated device to the device identification of the user terminal. And, when it is necessary to unbind the user terminal from the clothes drying device, the unbinding can be completed by initializing the device identification of the associated device.
[0068] In a possible implementation, while unbinding the current associated device from the clothes drying device, the communication connection between the current associated device and the clothes drying device can be disconnected. Also, while binding the target user terminal to the clothes drying device, a communication connection between the target user terminal and the clothes drying device can be established.
[0069] Optionally, updating the associated device bound to the clothes drying device to the target user terminal includes: determining whether the device identification of the target user terminal is included in the candidate device identification list; if it is determined that the device identification of the target user terminal is included in the candidate device identification list, updating the associated device bound to the clothes drying device to the target user terminal; if it is determined that the device identification of the target user terminal is not included in the candidate device identification list, creating a communication connection between the target user terminal and the clothes drying device, updating the associated device bound to the clothes drying device to the target user terminal, and adding the device identification of the target user terminal to the candidate device identification list.
[0070] The candidate device identification list includes user terminals that have established a communication connection with the clothes drying device.
[0071] In an embodiment of the present application, after the user terminal initiates a touch command to the server for the first time, the server can create a communication connection between the user terminal and the clothes drying device, and then the communication connection relationship is maintained. Although the communication connection relationship is maintained, the clothes drying device can refuse to process the control command sent by the user terminal. Specifically, only when the user terminal is an associated device, the clothes drying device will normally process the control command sent by the user terminal; when the user terminal is not an associated device, the clothes drying device does not process the control command sent by the user terminal. In this way, there is no need to create a communication connection with the clothes drying device every time the user terminal triggers a touch command, which can reduce the time required to update the binding status, thereby further improving the user experience.
[0072] S103: Feedback a binding success message to the target user terminal, which is used to instruct the target user terminal to send a first control instruction to the clothes drying device in response to the user's triggering operation, so that the clothes drying device executes an action corresponding to the first control instruction.
[0073] The user's triggering operation may be a triggering operation such as a click, a long press, or a slide performed by the user on the application interface of an APP installed on the target user terminal for controlling the clothes drying device.
[0074] Exemplarily, the application interface of the APP used to control the clothes drying device includes a rising control. After the user triggers the rising control, the target user terminal can initiate a first control instruction to the clothes drying device for controlling the rising height of the clothes drying device. After receiving the first control instruction, the clothes drying device can execute the rising height action.
[0075] In the embodiment of the present application, the user only needs to perform a simple touch operation between the user terminal and the NFC chip, and the server can complete a series of binding update processes in the background without the user's perception, so that only one user terminal can be bound to the clothes drying device at the same time, thereby solving the security problem caused by the continuous execution of mutually exclusive control instructions of the clothes drying device.
[0076] Optionally, before feeding back a binding success message to the target user terminal, the device binding method provided in the embodiment of the present application also includes: sending a binding update message to the clothes drying device, used to instruct the clothes drying device to update the association identifier to the device identifier of the target user terminal; wherein the association identifier is the device identifier of the associated device.
[0077] In the device binding method provided in the embodiment of the present application, the user can pre-deploy the NFC chip in the clothes drying scene according to the use requirements (for example, paste the electronic tag containing the NFC chip in the area where the clothes drying device is located). When the user wants to control the clothes drying device through the target user terminal, the target user terminal can be touched with the electronic tag first, triggering the target user terminal to initiate a touch instruction for the NFC chip to the server. When the server detects the touch instruction, it can determine whether the clothes drying device is bound to an associated device, that is, whether there are other user terminals that can communicate and interact with the clothes drying device. When it is determined that the clothes drying device is bound to an associated device, the associated device bound to the clothes drying device can be updated to the target user terminal. Afterwards, the server can feedback a binding success message to the target user terminal, which is used to indicate that the target user terminal sends a first control instruction to the clothes drying device in response to the user's trigger operation, so that the clothes drying device performs an action corresponding to the first control instruction. In this way, the target user terminal is bound to the clothes drying device, and the target user terminal can communicate and interact with the clothes drying device to achieve control of the clothes drying device. It can be seen that in the embodiment of the present application, when the user needs to control the clothes drying device through the user terminal, it is necessary to first touch the user terminal with the NFC chip to complete the binding of the user terminal and the clothes drying device. Since there is only one associated device bound to the clothes drying device at the same time, the clothes drying device cannot communicate and interact with multiple user terminals at the same time. Then, the clothes drying device will not continuously receive control instructions issued by different user terminals in a short period of time. Therefore, the security problem caused by the continuous execution of mutually exclusive control instructions of the clothes drying device can be solved.
[0078] In addition, in the embodiment of the present application, the device that communicates and interacts with the clothes drying device is the user terminal that was most recently bound to the clothes drying device through the NFC chip. Since the NFC chip is deployed in the clothes drying scene, the device that communicates and interacts with the clothes drying device is also the user terminal that may be closest to the clothes drying scene. Therefore, the control instructions executed by the clothes drying device in the embodiment of the present application are the control instructions triggered by the user who may be closest to the clothes drying scene. In this way, it is closer to the actual needs of users using the clothes drying device, thereby improving the user experience.
[0079] Reference Figure 2 , the embodiment of the present application also provides a flow chart of another device binding method, which can be applied to a clothes drying device, that is, the electronic device executing the method can be a clothes drying device. Figure 2 As shown, the method includes S201-S203:
[0080] S201: Receive a first control instruction sent by a target user terminal in response to a trigger operation of a user.
[0081] S202: Determine whether an action corresponding to a second control instruction sent by the remote control device is currently being executed.
[0082] S203: If it is determined that the action corresponding to the second control instruction is not currently being executed, execute the action corresponding to the first control instruction; if it is determined that the action corresponding to the second control instruction is currently being executed, continue to execute the action corresponding to the second control instruction.
[0083] Optionally, the first control instruction carries the device identifier of the target user terminal, and executes an action corresponding to the first control instruction, including: determining whether the device identifier of the target user terminal is a locally stored association identifier; when determining that the device identifier of the target user terminal is an association identifier, executing an action corresponding to the first control instruction.
[0084] The associated identifier is a device identifier of an associated device currently bound to the clothes drying device, and the associated device is a user terminal that can currently communicate and interact with the clothes drying device.
[0085] In an embodiment of the present application, after the user terminal initiates a touch command to the server for the first time, the server can create a communication connection between the user terminal and the clothes drying device, and then the communication connection relationship is maintained. Although the communication connection relationship is maintained, the clothes drying device can refuse to process the control command sent by the user terminal. Specifically, only when the user terminal is an associated device, the clothes drying device can normally process the control command sent by the user terminal; when the user terminal is not an associated device, the clothes drying device does not process the control command sent by the user terminal. In order to ensure that the clothes drying device can accurately execute the control command of the associated device, in an embodiment of the present application, before executing the control command each time, the clothes drying device can first compare the device identification of the user terminal that initiated the control command with the device identification of the associated device, and execute the command after the comparison is successful.
[0086] In the device binding method provided in the embodiment of the present application, since in actual application, the user may also control the clothes drying device through the remote control device that is fixedly configured when the clothes drying device leaves the factory, and the user's operation of the remote control device must be performed on site (i.e., within a certain range around the clothes drying device), in the embodiment of the present application, the control priority of the remote control device can be set higher than the control priority of the user terminal. Based on this, in the device binding method provided in the embodiment of the present application, after the clothes drying device receives the first control instruction sent by the target user terminal in response to the user's trigger operation, it can first determine whether the action corresponding to the second control instruction sent by the remote control device is being executed at this time. If the action corresponding to the second control instruction is not executed at this time, the action corresponding to the first control instruction can be normally executed; on the contrary, if the action corresponding to the second control instruction sent by the remote control device is being executed at this time, the action corresponding to the first control instruction may not be executed, but the action corresponding to the second control instruction may continue to be executed to ensure that the control priority of the remote control device is guaranteed. Such a control method is closer to the actual needs of users using clothes drying devices, thereby further improving the user experience.
[0087] Reference Figure 3 , the present application embodiment provides a flow chart of another device binding method, which can be applied to a device binding system. Specifically, the device binding system may include a server, a clothes drying device, an NFC chip, and multiple user terminals. Figure 3 As shown, the method includes S301-S307:
[0088] S301: In response to a touch signal with the NFC chip, the target user terminal initiates a touch instruction for the NFC chip to the server.
[0089] The target user terminal may be any user terminal among multiple user terminals of the device binding system.
[0090] S302: When the server detects a touch instruction initiated by the target user terminal to the NFC chip, it determines whether the clothes drying device is bound to an associated device.
[0091] S303: When determining that the clothes drying device has been bound to an associated device, the server updates the associated device bound to the clothes drying device to the target user terminal.
[0092] S304. The server feeds back a binding success message to the target user terminal, which is used to instruct the target user terminal to send a first control instruction to the clothes drying device in response to the user's triggering operation, so that the clothes drying device executes an action corresponding to the first control instruction.
[0093] S305: The target user terminal initiates a first control instruction to the clothes drying device in response to a triggering operation of the user.
[0094] S306: The clothes drying device determines whether it is currently executing an action corresponding to the second control instruction sent by the remote control device.
[0095] S307. When the clothes drying device determines that the action corresponding to the second control instruction is not currently being executed, the clothes drying device executes the action corresponding to the first control instruction; when the clothes drying device determines that the action corresponding to the second control instruction is currently being executed, the clothes drying device continues to execute the action corresponding to the second control instruction.
[0096] like Figure 4 As shown, an embodiment of the present application further provides a device binding apparatus, which can be configured on a server, and includes: a determination module 11, an update module 12 and a sending module 13.
[0097] The determining module 11 executes S101 in the above method embodiment, the updating module 12 executes S102 in the above method embodiment, and the sending module 13 executes S103 in the above method embodiment.
[0098] Specifically, the determination module 11 is used to determine whether the clothes drying device is bound to an associated device when a touch instruction for the NFC chip initiated by the target user terminal is detected; the associated device is a user terminal that can currently communicate and interact with the clothes drying device;
[0099] An updating module 12 is configured to update the associated device bound to the clothes drying device to a target user terminal when the determining module 11 determines that the clothes drying device has been bound to an associated device;
[0100] The sending module 13 is used to feed back a binding success message to the target user terminal, and to instruct the target user terminal to send a first control instruction to the clothes drying device in response to the user's triggering operation, so that the clothes drying device executes an action corresponding to the first control instruction.
[0101] Optionally, in a possible design, the determination module 11 is specifically used to: determine whether the status flag is a first preset flag; when it is determined that the status flag is the first preset flag, determine that the clothes drying device is bound to an associated device; when it is determined that the status flag is a second preset flag, determine that the clothes drying device is not bound to an associated device.
[0102] Optionally, in another possible design, the updating module 12 is specifically used for:
[0103] Determine whether the candidate device identification list includes the device identification of the target user terminal;
[0104] When it is determined that the candidate device identification list includes the device identification of the target user terminal, updating the associated device bound to the clothes drying device to the target user terminal;
[0105] When it is determined that the device identification of the target user terminal is not included in the candidate device identification list, a communication connection is created between the target user terminal and the clothes drying device, and the associated device bound to the clothes drying device is updated to the target user terminal, and the device identification of the target user terminal is added to the candidate device identification list.
[0106] Optionally, in another possible design, the sending module 13 is also used to send a binding update message to the clothes drying device before feeding back a binding success message to the target user terminal, to instruct the clothes drying device to update the association identifier to the device identifier of the target user terminal; wherein the association identifier is the device identifier of the associated device.
[0107] Optionally, the device binding apparatus may further include a storage module, and the storage module is used to store program codes of the device binding apparatus, etc.
[0108] like Figure 5 As shown, an embodiment of the present application further provides another device binding apparatus, which can be configured on a clothes drying device, including: a receiving module 21, a determining module 22 and an executing module 23.
[0109] The receiving module 21 executes S201 in the above method embodiment, the determining module 22 executes S202 in the above method embodiment, and the executing module 23 executes S203 in the above method embodiment.
[0110] Specifically, the receiving module 21 is used to receive a first control instruction sent by the target user terminal in response to a user's trigger operation; the determining module 22 is used to determine whether an action corresponding to a second control instruction sent by the remote control device is currently being executed; the executing module 23 is used to execute an action corresponding to the first control instruction when the determining module 22 determines that the action corresponding to the second control instruction is not currently being executed; the executing module 23 is also used to continue executing the action corresponding to the second control instruction when the determining module 22 determines that the action corresponding to the second control instruction is currently being executed.
[0111] Optionally, in a possible design, the execution module 23 is specifically used to: determine whether the device identifier of the target user terminal is a locally stored association identifier; wherein the association identifier is the device identifier of an associated device currently bound to the clothes drying device, and the associated device is a user terminal that can currently communicate and interact with the clothes drying device; when it is determined that the device identifier of the target user terminal is an association identifier, execute an action corresponding to the first control instruction.
[0112] Optionally, the device binding apparatus may further include a storage module, and the storage module is used to store program codes of the device binding apparatus, etc.
[0113] like Figure 6 As shown, the embodiment of the present application also provides an electronic device, which can be a clothes drying device or a server, and the electronic device can include a memory 41, a processor (such as Figure 6 42-1 and 42-2), a bus 43 and a communication interface 44; the memory 41 is used to store computer execution instructions, and the processor is connected to the memory 41 through the bus 43; when the electronic device is running, the processor executes the computer execution instructions stored in the memory 41, so that the electronic device executes the device binding method provided in the above embodiment.
[0114] In a specific implementation, as an embodiment, the processor may include one or more central processing units (CPUs), such as Figure 6 As an embodiment, the electronic device may include multiple processors, such as CPU0 and CPU1. Figure 6 4 and 5. The processors 42-1 and 42-2 shown in FIG. Each of these processors may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). The processor here may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0115] The memory 41 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 41 may exist independently and be connected to the processor via a bus 43. The memory 41 may also be integrated with the processor.
[0116] In a specific implementation, the memory 41 is used to store the data in this application and the computer execution instructions corresponding to the software program for executing this application. The processor can run or execute the software program stored in the memory 41, and call the data stored in the memory 41, and various functions of the electronic device.
[0117] The communication interface 44 uses any transceiver-like device for communicating with other devices or communication networks, such as a control system, a radio access network (RAN), a wireless local area network (WLAN), etc. The communication interface 44 may include a receiving unit to implement a receiving function, and a sending unit to implement a sending function.
[0118] The bus 43 may be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, or an extended industry standard architecture (EISA) bus. The bus 43 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0119] As an example, combining Figure 4 , the functions implemented by the sending module in the device binding device are similar to Figure 6 The functions implemented by the sending unit in the device binding device are the same as those implemented by the update module in the device binding device. Figure 6 When the device binding device includes a storage module, the function implemented by the storage module is the same as Figure 6 The memory in implements the same function.
[0120] The explanation of the relevant contents in this embodiment can refer to the above method embodiment, which will not be repeated here.
[0121] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0122] An embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When a computer executes the instructions, the computer executes the device binding method provided in the above embodiment.
[0123] Among them, the computer-readable storage medium, for example, can be but is not limited to an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, RAM, ROM, an erasable programmable read only memory (EPROM), a register, a hard disk, an optical fiber, a CD-ROM, an optical storage device, a magnetic storage device, or any suitable combination of the above, or any other form of computer-readable storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application-specific integrated circuit (ASIC). In an embodiment of the present application, the computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, device or device.
[0124] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A device binding method, characterized in that: Applied to a server, the method comprises: In the case of detecting a touch instruction initiated by a target user terminal to a near field communication NFC chip, determining whether the clothes drying device is bound to an associated device; the associated device is a user terminal that can currently communicate and interact with the clothes drying device; When it is determined that the clothes drying device has been bound to the associated device, updating the associated device bound to the clothes drying device to the target user terminal; A binding success message is fed back to the target user terminal, which is used to instruct the target user terminal to send a first control instruction to the clothes drying device in response to a trigger operation of the user, so that the clothes drying device performs an action corresponding to the first control instruction.
2. The device binding method according to claim 1, characterized in that: The step of determining whether the clothes drying device is bound to an associated device includes: Determine whether the status flag is a first preset flag; When it is determined that the status flag is the first preset flag, it is determined that the clothes drying device is bound to the associated device; when it is determined that the status flag is the second preset flag, it is determined that the clothes drying device is not bound to the associated device.
3. The device binding method according to claim 1, characterized in that: The updating of the associated device bound to the clothes drying device to the target user terminal includes: Determining whether the candidate device identification list includes the device identification of the target user terminal; When it is determined that the candidate device identification list includes the device identification of the target user terminal, updating the associated device bound to the clothes drying device to the target user terminal; When it is determined that the device identification of the target user terminal is not included in the candidate device identification list, a communication connection is established between the target user terminal and the clothes drying device, and the associated device bound to the clothes drying device is updated to the target user terminal, and the device identification of the target user terminal is added to the candidate device identification list.
4. The device binding method according to claim 3, characterized in that: Before feeding back a binding success message to the target user terminal, the method further includes: A binding update message is sent to the clothes drying device to instruct the clothes drying device to update the association identifier to the device identifier of the target user terminal; wherein the association identifier is the device identifier of the associated device.
5. A device binding method, characterized in that: Applied to clothes drying equipment, the method comprises: Receiving a first control instruction sent by a target user terminal in response to a trigger operation of a user; determining whether an action corresponding to a second control instruction sent by the remote control device is currently being executed; If it is determined that the action corresponding to the second control instruction is not currently being executed, the action corresponding to the first control instruction is executed; if it is determined that the action corresponding to the second control instruction is currently being executed, the action corresponding to the second control instruction continues to be executed.
6. The device binding method according to claim 5, characterized in that: The first control instruction carries the device identification of the target user terminal, and the executing the action corresponding to the first control instruction includes: Determine whether the device identifier of the target user terminal is a locally stored association identifier; wherein the association identifier is the device identifier of an association device currently bound to the clothes drying device, and the association device is a user terminal that can currently communicate and interact with the clothes drying device; In a case where it is determined that the device identifier of the target user terminal is the association identifier, an action corresponding to the first control instruction is executed.
7. A device binding apparatus, characterized in that: Configured on a server, the device includes: A determination module, configured to determine whether the clothes drying device is bound to an associated device when a touch instruction for the NFC chip initiated by a target user terminal is detected; the associated device is a user terminal that can currently communicate and interact with the clothes drying device; An updating module, configured to update the associated device bound to the clothes drying device to the target user terminal if the determining module determines that the clothes drying device has been bound to the associated device; The sending module is used to feed back a binding success message to the target user terminal, and is used to instruct the target user terminal to send a first control instruction to the clothes drying device in response to a user's trigger operation, so that the clothes drying device performs an action corresponding to the first control instruction.
8. A device binding apparatus, characterized in that: Configured in a clothes drying device, the device comprises: A receiving module, configured to receive a first control instruction sent by a target user terminal in response to a trigger operation of a user; A determination module, used to determine whether an action corresponding to a second control instruction sent by the remote control device is currently being executed; an execution module, configured to execute the action corresponding to the first control instruction if the determination module determines that the action corresponding to the second control instruction is not currently executed; The execution module is further used to continue executing the action corresponding to the second control instruction when the determination module determines that the action corresponding to the second control instruction is currently being executed.
9. An electronic device, characterized in that: It includes a memory, a processor, a bus and a communication interface; the memory is used to store computer-executable instructions, and the processor is connected to the memory via the bus; When the electronic device is running, the processor executes the computer-executable instructions stored in the memory, so that the electronic device executes the device binding method as described in any one of claims 1 to 4, or executes the device binding method as described in claim 5 or 6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when a computer executes the instructions, the computer executes the device binding method according to any one of claims 1 to 4, or executes the device binding method according to claim 5 or 6.