A matching method, wireless control system, electric appliance, medium and product
By reading the NFC tag data of the target device, the device information and response parameters are determined, which solves the problem of inaccurate pairing of wireless control devices, achieves accurate pairing, and improves the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- WUHU MATY AIR CONDITIONING EQUIP CO LTD
- Filing Date
- 2024-11-28
- Publication Date
- 2026-05-29
AI Technical Summary
The existing pairing method between wireless control devices and the devices to be controlled is inaccurate and is prone to mispairing with nearby devices, resulting in a poor user experience.
By reading data from the NFC tag of the target device, the device information and response parameters are determined, and a communication connection is established with the target device based on preset rules to achieve accurate pairing.
It enables precise pairing between the wireless control device and the target device, improving the user experience.
Smart Images

Figure CN122113967A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of electrical equipment, and particularly relates to a matching method, a wireless control system, electrical equipment, media, and products. Background Technology
[0002] With the continuous development of science and technology, smart home appliances are becoming increasingly widespread. Currently, many smart home devices have wireless control capabilities, enabling control via wireless control devices such as wireless remotes and wireless controllers. Before use, wireless control devices need to be paired with the device to be controlled. In related technologies, wireless control devices, such as wireless remotes, typically pair with the device to be controlled based on signal strength, selecting the device with the strongest signal. This pairing method is inaccurate and easily results in pairing with other nearby devices, such as those in a neighbor's home, leading to a poor user experience. Summary of the Invention
[0003] In view of the above-mentioned technical problems in related technologies, embodiments of the present invention provide a matching method, a wireless control system, an electrical device, a medium, and a product.
[0004] In a first aspect, embodiments of the present invention provide a matching method applied in a wireless control device for pairing with a target device, the method comprising:
[0005] If the wireless control device is in pairing mode, it determines the first device information and first response parameters of the device to which the NFC tag belongs by reading data from the detected NFC tag.
[0006] If a communication connection is established with the target device based on the first device information, the first response parameter is sent to the target device according to a preset rule, so that the target device can respond to the first response parameter based on the pre-stored data, wherein the pre-stored data of the target device is consistent with the data in the NFC tag of the target device;
[0007] If the target device receives target feedback information indicating a successful response from the target device, it is determined that the wireless control device and the target device have been successfully paired.
[0008] In some implementations, the NFC tag contains device encryption information of the device to which it belongs, a first encryption parameter, and a first response parameter. Determining the first device information and the first response parameter of the device to which the NFC tag belongs includes:
[0009] By reading the data in the NFC tag, the device encryption information, the first encryption parameter, and the first response parameter can be obtained;
[0010] The encrypted information of the device is decrypted based on the first encryption parameter to obtain the first device information.
[0011] In some embodiments, the method further includes:
[0012] The first device information is broadcast to the device receiving the broadcast so that the device matching the first device information with the second device information pre-stored in the device.
[0013] If a response message is received from the target device in response to the data broadcast, a communication connection is established with the target device, wherein the response message is sent when the second device information pre-stored in the target device successfully matches the first device information.
[0014] In some implementations, after obtaining the device encryption information, the first encryption parameter, and the first response parameter, the method further includes: generating a first key based on the first encryption parameter;
[0015] The step of sending the first response parameter to the target device according to a preset rule, so that the target device can perform response processing on the first response parameter based on pre-stored data, includes:
[0016] Based on the first key and the preset rules, the data to be encrypted, including the first response parameter, is encrypted, and the encrypted data is sent to the target device, so that when the target device receives the first response parameter and successfully matches the second response parameter stored in the target device, it sends the target feedback information.
[0017] In some implementations, the first device information includes device identification information and device model information of the device to which the NFC tag belongs.
[0018] Secondly, embodiments of the present invention provide a matching method applied to a target device for pairing with a wireless control device, wherein the target device is provided with an NFC tag, and the method includes:
[0019] When the target device is in a scanning mode for broadcast data, a communication connection is established with the wireless control device based on the scanned broadcast data, wherein the first device information broadcast by the wireless control device matches the second device information pre-stored in the target device;
[0020] If a first response parameter is received from the wireless control device according to a preset rule, the first response parameter is matched with a pre-stored second response parameter. The first device information and the first response parameter are both obtained by the wireless control device after reading data from the NFC tag of the target device.
[0021] If the first response parameter matches the second response parameter, target feedback information indicating a successful response is sent to the wireless control device to pair the wireless control device with the target device.
[0022] In some implementations, establishing a communication connection with the wireless control device based on the scanned broadcast data includes:
[0023] Based on the device information in each received broadcast data and the second device information, the target broadcast data is determined from the received broadcast data, wherein the first device information in the target broadcast data is the same as the second device information;
[0024] The system sends a response message to the wireless control device that sent the target broadcast data in order to establish a communication connection with the wireless control device.
[0025] In some implementations, the step of matching the first response parameter with a pre-stored second response parameter if the first response parameter sent by the wireless control device according to a preset rule is received includes:
[0026] If encrypted data containing a first response parameter is received from the wireless control device, a second key is generated based on the second encryption parameter pre-stored in the target device. The encrypted data is obtained by encrypting the first key generated based on the first encryption parameter in the NFC tag, and the first key and the second key are generated in the same way.
[0027] The encrypted data is decrypted based on the second key to obtain the first response parameter, and the first response parameter is matched with the second response parameter.
[0028] In some implementations, the data pre-stored in the target device is the same as the data written in the NFC tag.
[0029] In some embodiments, the method further includes:
[0030] If a data write-back instruction for the NFC tag is received from a user terminal, the pre-stored information in the target device is updated based on the update data contained in the data write-back instruction.
[0031] Thirdly, embodiments of the present invention provide a wireless control system, the wireless control system comprising: a wireless control device and a target device, wherein the target device is provided with an NFC tag, and the target device pre-stores the data written to the NFC tag.
[0032] The wireless control device is used to determine the first device information and first response parameters of the NFC tag by reading data from the detected NFC tag when in the matching mode, and broadcast the first device information.
[0033] The target device is used to establish a communication connection with the wireless control device based on the scanned broadcast data in a scanning mode for broadcast data, wherein the first device information in the broadcast data of the wireless control device matches the second device information pre-stored in the target device;
[0034] The wireless control device is used to send the first response parameters to the target device according to a preset rule;
[0035] The target device is configured to match the first response parameter with a pre-stored second response parameter, and if the first response parameter and the second response parameter are successfully matched, send target feedback information to the wireless control device to indicate a successful response, so as to pair the wireless control device with the target device.
[0036] Fourthly, embodiments of the present invention provide an electrical device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the matching methods described in the first and second aspects.
[0037] Fifthly, embodiments of the present invention provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the matching methods provided in the first and second aspects.
[0038] In a sixth aspect, embodiments of the present invention provide a computer program product, the computer program product comprising a computer program, which, when executed by a processor, is used to load and execute the steps of the matching methods provided in the first and second aspects.
[0039] The embodiments of the present invention provide one or more technical solutions that achieve at least the following technical effects or advantages:
[0040] The matching method provided in this specification is applied to a wireless control device for pairing with a target device. When the wireless control device is in a pairing state, it reads data from a detected NFC tag to determine the first device information and first response parameters of the device associated with the NFC tag. Based on the first device information, it establishes a communication connection with the target device and sends the first response parameters to the target device according to a preset rule, enabling the target device to respond based on the first response parameters. The pre-stored data in the target device is consistent with the data in the NFC tag of the target device. If a target feedback message indicating a successful response is received from the target device, it is determined that the wireless control device and the target device have successfully paired. In this solution, the wireless control device determines the first device information and the first response parameters by reading data from the NFC tag. Since the target device also has pre-stored pairing data consistent with the data in the NFC tag, the first device information and the first response parameters enable pairing between the wireless control device and the target device to which the NFC tag belongs, achieving accurate pairing and improving the user experience. Attached Figure Description
[0041] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0042] Figure 1 A schematic diagram illustrating a matching method applied in a wireless control device, as provided in an embodiment of this specification;
[0043] Figure 2 A schematic diagram illustrating a matching method applied to a target device, as provided in an embodiment of this specification;
[0044] Figure 3 A schematic diagram illustrating the pairing interaction between a kitchen air conditioner and a wireless controller, provided as an embodiment of this specification;
[0045] Figure 4 A schematic diagram of a wireless control system provided in the embodiments of this specification;
[0046] Figure 5 This is a schematic diagram of an electrical device provided as an embodiment of this specification. Detailed Implementation
[0047] This specification provides a matching method, a wireless control system, an electrical device, a medium, and a product. The method is applied in a wireless control device for pairing with a target device. The method includes: if the wireless control device is in a matching mode, reading data from a detected NFC tag to determine first device information and first response parameters of the device to which the NFC tag belongs; if a communication connection is established with the target device based on the first device information, sending the first response parameters to the target device according to a preset rule, so that the target device responds to the first response parameters based on pre-stored data, wherein the pre-stored data of the target device is consistent with the data in the NFC tag of the target device; if target feedback information indicating successful response is received from the target device, it is determined that the wireless control device and the target device have been successfully paired.
[0048] In the embodiments of this specification, the wireless control device determines the first device information and the first response parameters by reading the data in the NFC tag. Since the target device also has pre-stored pairing data that is consistent with the data in the NFC tag, the wireless control device can be paired with the target device to which the NFC tag belongs through the first device information and the first response parameters. This achieves accurate pairing between the wireless control device and the target device and improves the user experience.
[0049] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this invention, and not all of them. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.
[0050] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0051] like Figure 1The diagram shown is a flowchart of a matching method provided in an embodiment of this specification. This method is applied in a wireless control device for pairing with a target device. The method includes the following steps:
[0052] Step S101: If the wireless control device is in matching mode, it determines the first device information and first response parameters of the device to which the NFC tag belongs by reading data from the detected NFC tag.
[0053] Step S102: If a communication connection is established with the target device based on the first device information, the first response parameter is sent to the target device according to a preset rule, so that the target device responds to the first response parameter based on the pre-stored data, wherein the pre-stored data of the target device is consistent with the data in the NFC tag of the target device;
[0054] Step S103: If the target device sends target feedback information indicating a successful response, it is determined that the wireless control device and the target device have been successfully paired.
[0055] The method provided in the embodiments of this specification is applied to a wireless control device, which can be a wireless wired controller, remote control, etc., used to pair with a target device to control the operation of the target device. The target device can be an air conditioner in a certain space, such as a kitchen air conditioner, a bedroom air conditioner, etc., or it can be a fresh air unit, dehumidifier, etc., without limitation. For ease of explanation, the method provided in the embodiments of this specification will be described below using a kitchen air conditioner as an example of the target device.
[0056] In the embodiments described in this specification, in order to achieve rapid pairing between the device and the wireless control device, an NFC tag is set for the target device, and data for pairing with the target device is written into the NFC tag. At the same time, the same data is also stored in the target device.
[0057] Taking a kitchen air conditioner as an example, each air conditioner has its own unique identifier, such as a SN code (Serial Number). An infrared scanner is used to scan this unique identifier. In some embodiments, the model information of the air conditioner can also be scanned. The host computer then accesses the MES (Manufacturing Execution System) to obtain the NFC tag writing data corresponding to the air conditioner's unique identifier and model information. It should be noted that the MES system can store the correspondence between the air conditioner's unique identifier, model information, and NFC tag writing data. After obtaining the air conditioner's unique identifier and model information, the data written to the air conditioner's NFC tag can be obtained by looking up this correspondence. After obtaining the data written to the air conditioner's NFC tag, an NFC programmer can be used to write the data into the NFC tag. Simultaneously, the NFC tag's written data is stored inside the air conditioner, such as in the air conditioner's control board.
[0058] In the embodiments of this specification, the data written to the NFC tag can be set according to actual needs. For example, the data written to the NFC tag may include device information, encryption parameters, response parameters, etc., wherein the encryption parameters may be random numbers, and the response parameters may be machine response codes, which are not limited here.
[0059] Before controlling the target device via the wireless control device, the wireless control device needs to be paired with the target device. In step S101, during pairing, the wireless control device can first enter a pairing mode. Entering pairing mode can be achieved in various ways. In some embodiments, the wireless control device can have a button for entering pairing mode; pressing the button triggers the wireless control device to enter pairing mode. In other embodiments, the wireless control device can enter pairing mode through voice interaction.
[0060] The wireless control device has NFC functionality. After entering pairing mode, it can read data from NFC tags within its detection range. In the embodiments described in this specification, if the NFC tag of the target device is located on the target device's body, and pairing the wireless control device with the target device is required, the wireless control device can be brought close to the target device after entering pairing mode to read the data from the target device's NFC tag.
[0061] In some embodiments, if the NFC tag contains device information and response parameters of the device to which it belongs, the wireless control device can directly use the read device information and response parameters as the first device information and the first response parameters.
[0062] In other embodiments, to ensure that device data is not leaked, the NFC tag can be written with the device encryption information, the first encryption parameter, and the first response parameter of the device. Then step S101 can be implemented by the following steps: by reading the data in the NFC tag, the device encryption information, the first encryption parameter, and the first response parameter are obtained; the device encryption information is decrypted based on the first encryption parameter to obtain the first device information.
[0063] In the embodiments of this specification, the device encryption information can be information obtained by encrypting the device information of the device to which the NFC tag belongs, and the first encryption parameter can decrypt the device encryption information. In some embodiments, the first encryption parameter can be a random number, which can be used to decrypt the device encryption information. The decryption rule can be set according to actual needs. For example, the device encryption information can be calculated by using a random number according to a preset method to obtain the device information and use it as the first device information.
[0064] In the embodiments of this specification, the information included in the first device information can be set according to actual needs. In some embodiments, the first device information can be the device identification information of the device to which the NFC tag belongs, such as the SN code. In other embodiments, the first device information can include the device identification information of the device to which the NFC tag belongs and the device model information.
[0065] In step S102, establishing a communication connection with the target device based on the first device information can be achieved through methods such as establishing a Bluetooth connection or a WiFi connection. In some embodiments, the process of establishing a communication connection between the first device information and the target device can be as follows: broadcasting the first device information to the device receiving the broadcast, so that the device matching the first device information with second device information pre-stored in the device; if a response from the target device to the broadcast is received, establishing a communication connection with the target device, wherein the response information is sent when the second device information pre-stored in the target device successfully matches the first device information.
[0066] In the embodiments of this specification, the wireless control device broadcasts data, which may be via Bluetooth or other forms of data broadcasting; no limitation is made here. The wireless control device broadcasts the first device information directly, or it may broadcast part of the first device information or encrypted part of the first device information; no limitation is made here.
[0067] In some embodiments, if the wireless control device directly broadcasts the first device information, the target device, when in data scanning mode, can receive the broadcast sent by the wireless control device. Of course, the target device can also receive broadcasts sent by other devices. To address computational resource constraints, the received data broadcasts can be filtered using the target device's device information. In the embodiments of this specification, the target device pre-stores its second device information. The target device can match the device information contained in the received data broadcast with the second device information. If they match, a communication connection is established with the device that sent the data broadcast.
[0068] If the wireless control device reads data from the NFC tag of the target device, then the first device information obtained by the wireless control device is the device information of the target device. When the target device receives the first device information, since it is the same as the second device information stored in its own memory, it can send a response message to the wireless control device. After receiving the response message, the wireless control device establishes a communication connection with the target device.
[0069] In step S102, if the wireless control device establishes a connection with the target device, it sends the first response parameter to the target device according to a preset rule, so that the target device can respond to the first response parameter based on the pre-stored data.
[0070] The preset rules can be set according to actual needs. For example, the preset rules can be to send the first response parameter directly to the target device, or to encrypt the first response parameter before sending it to the target device. In some embodiments, if the wireless control device reads the first encrypted parameter from the NFC tag, the first response parameter can be sent in the following way: based on the first encrypted parameter, a first key is generated; based on the first key and the preset rules, the data to be encrypted, including the first response parameter, is encrypted, and the encrypted data is sent to the target device, so that when the received first response parameter successfully matches the second response parameter pre-stored by the target device, the target device sends the target feedback information.
[0071] In the embodiments described in this specification, the first encryption parameter can be a random number. A first key is generated by performing calculations on the first encryption parameter according to a preset encryption rule. The preset encryption rule can be set according to actual needs and is not limited here. In some embodiments, after generating the first key, it can be stored in the eFuse (electronic fuse) area of the wireless control device. It should be noted that the eFuse area is a non-volatile memory, typically used to store configuration information and security data. The eFuse area is usually programmable only once, meaning that once data is written, it cannot be changed or erased. This characteristic makes it very suitable for storing important information such as keys.
[0072] The wireless control device encrypts the data to be encrypted, including the first response parameter, using a generated first key. The data to be encrypted can be selected according to actual needs; for example, it may include some information from the first device information and the first response parameter. The encryption method for the data to be encrypted can also be set according to actual needs and is not limited here. Further, the wireless control device sends the encrypted data to the target device. After receiving the encrypted data, the target device can select a decryption method that matches the encryption method on the wireless control device side to decrypt the encrypted data and obtain the first response parameter. Since the target device pre-stores information from its own NFC tag, it also pre-stores the response parameter from the NFC tag, i.e., the second response parameter. The second response parameter is then matched with the first response parameter.
[0073] In step S103, after the target device matches its pre-stored second response parameter with the first response parameter, if they match, the target device can send a successful response feedback message to the wireless control device. If the wireless control device receives the feedback message, it indicates that the wireless control device and the target device have successfully paired. If the wireless control device does not receive feedback information, or if the feedback information indicates pairing failure, then the pairing between the wireless control device and the target device has failed.
[0074] In addition, once the target device and the wireless control device are successfully paired, the wireless control device can use the first key to conduct encrypted communication with the target device in subsequent communication processes.
[0075] like Figure 2 The diagram shows a flowchart of a matching method applied to a target device according to an embodiment of this specification. This matching method is used for pairing with a wireless control device. The target device is equipped with an NFC tag. The method includes the following steps:
[0076] Step S201: When the target device is in a scanning mode for broadcast data, a communication connection is established with the wireless control device based on the scanned broadcast data, wherein the first device information broadcast by the wireless control device matches the second device information pre-stored in the target device;
[0077] Step S202: If the first response parameter sent by the wireless control device according to the preset rules is received, the first response parameter is matched with the pre-stored second response parameter, wherein the first device information and the first response parameter are obtained by the wireless control device after reading data from the NFC tag of the target device;
[0078] Step S203: If the first response parameter and the second response parameter are successfully matched, send target feedback information to the wireless control device to indicate the success of the response, so as to pair the wireless control device with the target device.
[0079] In the embodiments described in this specification, to achieve rapid pairing between the device and the wireless control device, an NFC tag is provided for the target device, and pairing data for the target device is written into the NFC tag. Simultaneously, the same data is stored in the target device. That is, the data pre-stored in the target device can be the same as the data written into the NFC tag. It should be noted that the NFC tag can be placed on the target device itself, or it can be placed independently of the target device, such as a stand-up displaying the NFC tag placed near the target device; this is not a limitation.
[0080] In some embodiments, both the NFC tag and the target device store device information and response information for the target device. The device information can be encrypted device information or unencrypted device information, such as the target device's serial number (SN) and model information. In other embodiments, the NFC tag and the target device may also store encryption parameters for encrypting, decrypting, and verifying data when communicating with other devices. These encryption parameters may be random numbers.
[0081] In step S201, the target device can enter scanning mode in multiple ways. Taking a kitchen air conditioner as an example, the target can enter scanning mode by pressing the scan button on the air conditioner or by using voice control. When in scanning mode, the target device can scan for data broadcasts sent by other devices and apparatuses.
[0082] As described above, after reading the data from surrounding NFC tags, the wireless control device obtains the first device information of the device to which the NFC tag belongs and broadcasts this first device information. Since the target device can scan the data broadcasts sent by various devices, in order to save computing resources and achieve rapid pairing with the wireless control device, the target device can filter the broadcast data according to the pre-stored device information to establish a communication connection with the wireless control device.
[0083] In some embodiments, step S201 can be implemented by the following steps: determining target broadcast data from the received broadcast data based on device information in each received broadcast data and the second device information, wherein the first device information in the target broadcast data is the same as the second device information; and feeding back response information for the target broadcast data to the wireless control device that sent the target broadcast data to establish a communication connection with the wireless control device.
[0084] Specifically, for each broadcast data received by the target device, it can first be determined whether it contains device information. If it does, the device information is matched with its own stored second device information. If they match, the broadcast data can be used as the target broadcast data, and the device that sent the target broadcast data can be used as the communication target. In the embodiments of this specification, if the NFC tag read by the wireless control device is the NFC tag of the target device, then the first device information broadcast by the wireless control device is the same as the second device information pre-stored by the target device. Therefore, the broadcast sent by the wireless control device is the target broadcast data. Furthermore, the target device can send a response message to the wireless control device for the target broadcast data. After receiving the response message, the wireless control device completes the communication connection with the target device. The communication connection can be a Bluetooth connection or other forms of connection, which are not limited here.
[0085] In step S202, after the target device establishes a connection with the wireless control device, the wireless control device can send encrypted data containing a first response parameter to the target device. As mentioned above, the first response parameter is obtained by the wireless control device reading the NFC tag of the target device. In addition, the wireless control device can also obtain the first encryption parameter by reading the NFC tag of the target device. Through the above explanation, the wireless control device can generate a first key using the first encryption parameter, and then use the first key to encrypt the data to be encrypted, including the first response parameter, to obtain encrypted data, and then send the encrypted data to the target device.
[0086] After receiving encrypted data, the target device can perform the following steps: if it receives encrypted data containing a first response parameter sent by the wireless control device, it generates a second key based on the second encryption parameter pre-stored in the target device, wherein the encrypted data is encrypted using a first key generated based on the first encryption parameter in the NFC tag, and the first key and the second key are generated in the same way; it decrypts the encrypted data based on the second key to obtain the first response parameter, and matches the first response parameter with the second response parameter.
[0087] Specifically, if the second encryption parameter is the same as the encryption parameter written in the NFC tag, then the second encryption parameter is also the same as the first encryption parameter read by the wireless control device. Since the wireless control device sends encrypted data, the target device can generate a second key based on the second encryption parameter. The generation method of the second key matches the generation method of the first key, thus ensuring that the encrypted data can be decrypted using the second key. In some embodiments, the generation methods of the first and second keys can be pre-configured.
[0088] After the target device decrypts the received encrypted data using the second key, it obtains the first response parameter and matches it with its stored second response parameter. Since the second response parameter stored by the target device is consistent with the response data written in its NFC tag, if the wireless control device reads data from the target device's NFC tag, the first and second response parameters should be identical. Therefore, in step S203, if the first and second response parameters are the same, it indicates a successful match, and the target device can send target feedback information to the wireless control device to indicate a successful response, thus completing the pairing between the wireless control device and the target device. If the first and second response parameters are different, the match fails, and the target device can send feedback information to the wireless control device to indicate a failed response, or choose not to send feedback information.
[0089] In the embodiments of this specification, during the communication process between the target device and the wireless control device, each device can carry its own encryption parameters. Specifically, when the wireless control device sends information to the target device, it carries a first encryption parameter; when the target device sends information to the wireless control device, it carries a second encryption parameter. The first and second encryption parameters can be used to verify the transmitted information. For example, when the target device receives information from the wireless control device, it matches the carried first encryption parameter with its own second encryption parameter. If the match is successful, it continues with the corresponding processing; if the match fails, it can exit the current pairing process. Similarly, when the wireless control device receives information from the target device, it matches the carried second encryption parameter with its own first encryption parameter. If the match is successful, it continues with the corresponding processing; if the match fails, it can exit the current pairing process.
[0090] In this embodiment of the specification, considering that the NFC tag of the target device may malfunction or be abnormal, in order to facilitate the repair of the NFC tag, the following steps can be performed: if a data write-back instruction for the NFC tag is received from the user terminal, the pre-stored information in the target device is updated based on the update data contained in the data write-back instruction.
[0091] The user terminal can be a user's mobile phone, tablet, or other device. In some embodiments, to avoid accidental triggering of NFC tag data updates, the user terminal can be limited to the terminal device of the device's after-sales personnel. After an NFC tag malfunctions, the NFC tag's write data can be updated again in the MES system. The user can access the MES system through the terminal to obtain the updated NFC tag's write data. The type of the updated write data can be the same as the original write type. For example, the updated write data still includes device encrypted data, encryption parameters, and response parameters.
[0092] The user terminal uses the NFC reverse write function to write the updated data of the acquired NCF tag into the NFC tag. At the same time, in order to ensure that the data pre-stored in the target device is consistent with the NFC tag data, the user terminal can also send the updated data of the NFC tag to the target device, and the target device updates the pre-stored NFC tag data.
[0093] For a better explanation of the matching method provided in the embodiments of this specification, please refer to... Figure 3Taking a kitchen air conditioner as the target device and a wireless controller as the wireless remote as an example, the pairing process between the kitchen air conditioner and the wireless remote is described. The kitchen air conditioner has an NFC tag on its body. The process includes: the wireless remote entering pairing mode; the wireless remote approaching the NFC tag on the kitchen air conditioner's body and reading the device's encrypted data, random number, and model response code; the random number being stored in the wireless remote's internal space; the encrypted data being decrypted using the random number; the decrypted device identification information and model information being saved; an encryption key being generated based on the random number and saved to the wireless remote's eFuse area; a data broadcast (including device identification information, model information, and machine response code) being initiated using the encryption key in the eFuse area; the kitchen air conditioner actively scanning for Bluetooth broadcast data; the kitchen air conditioner filtering the Bluetooth broadcast data using its own device identification information and model information; the kitchen air conditioner receiving the machine response code sent by the wireless remote; the kitchen air conditioner responding based on the received machine response code; and successful response completing the pairing process.
[0094] In summary, the solution of this embodiment allows the wireless control device to determine the first device information and the first response parameters by reading the data in the NFC tag. Since the target device also has pre-stored pairing data that is consistent with the data in the NFC tag, the wireless control device can be paired with the target device to which the NFC tag belongs through the first device information and the first response parameters. This achieves accurate pairing between the wireless control device and the target device and improves the user experience.
[0095] This invention provides a wireless control system, such as... Figure 4The diagram illustrates a wireless control system according to an embodiment of the present invention. The system includes a wireless control device 410 and a target device 420. The target device 420 has an NFC tag and pre-stores data written to the NFC tag. The wireless control device 410, in a matching mode, reads data from a detected NFC tag to determine first device information and a first response parameter, and broadcasts the first device information. The target device 420, in a scanning mode for broadcast data, establishes a communication connection with the wireless control device 410 based on the scanned broadcast data, wherein the first device information in the broadcast data matches second device information pre-stored in the target device 420. The wireless control device 410 sends the first response parameter to the target device 420 according to a preset rule. The target device 420 matches the first response parameter with the pre-stored second response parameter, and if the first response parameter matches the second response parameter successfully, sends target feedback information to the wireless control device 410 to indicate a successful response, thus pairing the wireless control device 410 and the target device 420.
[0096] Regarding the above system, the specific functions of each device have been described in detail in the embodiments of the matching method provided in this specification, and will not be elaborated here.
[0097] Based on the same inventive concept, embodiments of the present invention provide an electrical device, see reference. Figure 5 As shown, it includes a memory 504, a processor 502, and a computer program stored in the memory 504 and executable on the processor 502. When the processor 502 executes the program, it implements any step of the matching method described above. If the electrical device is a wireless control device, the matching method applied to the wireless control device is executed; if the electrical device is a target device, the matching method applied to the target device is executed.
[0098] Among them, Figure 5In this document, a bus architecture (represented by bus 500) is used. Bus 500 may include any number of interconnected buses and bridges, linking various circuits including one or more processors represented by processor 502 and memory represented by memory 504. Bus 500 may also link various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. Bus interface 505 provides an interface between bus 500 and receiver 501 and transmitter 503. Receiver 501 and transmitter 503 may be the same element, i.e., a transceiver, providing a unit for communicating with various other devices over a transmission medium. Processor 502 is responsible for managing bus 500 and general processing, while memory 504 can be used to store data used by processor 502 during operation.
[0099] Based on the same inventive concept, embodiments of this specification provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described matching method.
[0100] Based on the same inventive concept, embodiments of this specification provide a computer program product, which includes a computer program that, when executed by a processor, is used to load and execute the steps of the above-described matching method.
[0101] The functions described herein can be implemented in hardware, software executed by a processor, firmware, or any combination thereof. If implemented in software executed by a processor, the functions can be stored as one or more instructions or codes on or transmitted via a computer-readable medium. Other examples and embodiments are within the scope and spirit of this invention and the appended claims. For example, due to the nature of software, the functions described above can be implemented using software executed by a processor, hardware, firmware, hardwired, or any combination thereof. Furthermore, the functional units can be integrated into a single processing unit, or each unit can exist physically separately, or two or more units can be integrated into a single unit.
[0102] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.
[0103] The units described as separate components may or may not be physically separate. Similarly, the components of the control device may or may not be physical units; they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0104] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0105] The above description is merely an embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of the claims of the present invention.
Claims
1. A matching method, characterized in that, The method, applied in a wireless control device for pairing with a target device, includes: If the wireless control device is in pairing mode, it determines the first device information and first response parameters of the device to which the NFC tag belongs by reading data from the detected NFC tag. If a communication connection is established with the target device based on the first device information, the first response parameter is sent to the target device according to a preset rule, so that the target device can respond to the first response parameter based on the pre-stored data, wherein the pre-stored data of the target device is consistent with the data in the NFC tag of the target device; If the target device receives target feedback information indicating a successful response from the target device, it is determined that the wireless control device and the target device have been successfully paired.
2. The method as described in claim 1, characterized in that, The NFC tag contains device encryption information of the device to which it belongs, a first encryption parameter, and a first response parameter. Determining the first device information and the first response parameter of the device to which the NFC tag belongs includes: By reading the data in the NFC tag, the device encryption information, the first encryption parameter, and the first response parameter can be obtained; The encrypted information of the device is decrypted based on the first encryption parameter to obtain the first device information.
3. The method as described in claim 1 or 2, characterized in that, The method further includes: The first device information is broadcast to the device receiving the broadcast so that the device matching the first device information with the second device information pre-stored in the device. If a response message is received from the target device in response to the data broadcast, a communication connection is established with the target device, wherein the response message is sent when the second device information pre-stored in the target device successfully matches the first device information.
4. The method as described in claim 2, characterized in that, After obtaining the device encryption information, the first encryption parameter, and the first response parameter, the method further includes: generating a first key based on the first encryption parameter; The step of sending the first response parameter to the target device according to a preset rule, so that the target device can perform response processing on the first response parameter based on pre-stored data, includes: Based on the first key and the preset rules, the data to be encrypted, including the first response parameter, is encrypted, and the encrypted data is sent to the target device, so that when the target device receives the first response parameter and successfully matches the second response parameter stored in the target device, it sends the target feedback information.
5. The method as described in claim 1, characterized in that, The first device information includes the device identification information and device model information of the device to which the NFC tag belongs.
6. A matching method, characterized in that, The method, applied in a target device for pairing with a wireless control device, wherein the target device is equipped with an NFC tag and pre-stores the data written to the NFC tag, includes: When the target device is in a scanning mode for broadcast data, a communication connection is established with the wireless control device based on the scanned broadcast data, wherein the first device information broadcast by the wireless control device matches the second device information pre-stored in the target device; If a first response parameter is received from the wireless control device according to a preset rule, the first response parameter is matched with a pre-stored second response parameter. The first device information and the first response parameter are both obtained by the wireless control device after reading data from the NFC tag of the target device. If the first response parameter matches the second response parameter, target feedback information indicating a successful response is sent to the wireless control device to pair the wireless control device with the target device.
7. The method as described in claim 6, characterized in that, The establishment of a communication connection with the wireless control device based on the scanned broadcast data includes: Based on the device information in each received broadcast data and the second device information, the target broadcast data is determined from the received broadcast data, wherein the first device information in the target broadcast data is the same as the second device information; The system sends a response message to the wireless control device that sent the target broadcast data in order to establish a communication connection with the wireless control device.
8. The method as described in claim 6, characterized in that, If a first response parameter is received from the wireless control device according to a preset rule, matching the first response parameter with a pre-stored second response parameter includes: If encrypted data containing a first response parameter is received from the wireless control device, a second key is generated based on the second encryption parameter pre-stored in the target device. The encrypted data is obtained by encrypting the first key generated based on the first encryption parameter in the NFC tag, and the first key and the second key are generated in the same way. The encrypted data is decrypted based on the second key to obtain the first response parameter, and the first response parameter is matched with the second response parameter.
9. The method as described in claim 6, characterized in that, The method further includes: If a data write-back instruction for the NFC tag is received from a user terminal, the pre-stored information in the target device is updated based on the update data contained in the data write-back instruction.
10. A wireless control system, characterized in that, The wireless control system includes a wireless control device and a target device, wherein the target device is equipped with an NFC tag, and the target device pre-stores the data written to the NFC tag. The wireless control device is used to determine the first device information and first response parameters of the NFC tag by reading data from the detected NFC tag when in the matching mode, and broadcast the first device information. The target device is used to establish a communication connection with the wireless control device based on the scanned broadcast data in a scanning mode for broadcast data, wherein the first device information in the broadcast data of the wireless control device matches the second device information pre-stored in the target device; The wireless control device is used to send the first response parameters to the target device according to a preset rule; The target device is configured to match the first response parameter with a pre-stored second response parameter, and if the first response parameter and the second response parameter are successfully matched, send target feedback information to the wireless control device to indicate a successful response, so as to pair the wireless control device with the target device.
11. An electrical appliance, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, implements the method as described in any one of claims 1-9.
12. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed by a processor, implements the steps of the method according to any one of claims 1-9.
13. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, is used to load and perform the method as described in any one of claims 1-9.