Wireless pairing method and device and storage medium
Information used to identify the transmitting device and receiving device is displayed and generated by the terminal, and pairing is completed using auxiliary communication devices, which solves the problem of inconvenience in the prior art, and realizes automated and efficient device pairing.
Patent Information
- Application Number
- CN202510572251.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-17
- Publication Date
- 2025-07-04
AI Technical Summary
In the prior art, the pairing process of transmitting and receiving devices cannot meet the user's flexibility and convenience needs, and a specific triggering operation is usually required to trigger each set of transmitters and receivers to enter the learning mode.
Information for identifying the transmitting device and the receiving device is received and displayed through the terminal, third information is generated in response to the user's selection operation, and sent to the receiving device through the auxiliary communication device to complete the pairing.
It realizes automatic pairing of transmitting equipment and receiving equipment without performing specific triggering operations, improves pairing efficiency, reduces the probability of configuration errors, is suitable for batch installation and construction debugging, and simplifies construction steps.
Smart Images

Figure CN120264498A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technologies, and in particular, to a wireless pairing method, apparatus, and storage medium. Background Art
[0002] In the field of communication technologies, a transmitting device needs to form a pair with a receiving device before it can control the receiving device by transmitting wireless signals.
[0003] In the related art, the pairing process between a transmitting device and a receiving device usually triggers each set of transmitters and receivers to enter a learning mode by performing specific triggering operations on the transmitting device and the receiving device to be paired, which cannot meet the flexible and convenient pairing needs of users. Summary of the Invention
[0004] To overcome the technical problem that the existing pairing method for a transmitting device and a receiving device cannot meet the flexible and convenient pairing needs of users, the present disclosure provides a wireless pairing method, apparatus, and storage medium.
[0005] According to a first aspect of an embodiment of the present invention, there is provided a wireless pairing method, which is applied to a terminal that can communicate with an auxiliary communication device, and the auxiliary communication device can communicate with at least one receiving device; the method includes:
[0006] The terminal receives a first piece of information and a second piece of information; the first piece of information includes information for identifying a transmitting device, and the second piece of information includes information for identifying the receiving device;
[0007] The terminal displays the information for identifying the transmitting device and the information for identifying the receiving device;
[0008] In response to a selection operation on the displayed information for identifying the transmitting device and the information for identifying the receiving device, the terminal generates a third piece of information, which includes the information for identifying the transmitting device and the information for identifying the receiving device;
[0009] The terminal sends the third piece of information to the auxiliary communication device, so that: the auxiliary communication device sends the third piece of information outward, and the receiving device receives the third piece of information.
[0010] According to a second aspect of an embodiment of the present invention, there is provided a wireless pairing method, which is applied to a terminal that can communicate with at least one receiving device; the method includes:
[0011] The terminal receives a first piece of information and a second piece of information; the first piece of information includes information for identifying a transmitting device, and the second piece of information includes information for identifying the receiving device;
[0012] The terminal displays information for identifying the transmitting device and information for identifying the receiving device;
[0013] In response to a selection operation on the displayed information for identifying the transmitting device and the information for identifying the receiving device, the terminal generates third information, which includes the information for identifying the transmitting device and the information for identifying the receiving device;
[0014] The terminal sends the third information outward so that: the receiving device receives the third information.
[0015] According to a third aspect of an embodiment of the present invention, a wireless pairing method is provided, which is applied to a receiving device. The receiving device can communicate with a terminal through an auxiliary communication device, and the auxiliary communication device can communicate with at least one transmitting device; the method includes:
[0016] The receiving device sends second information to the auxiliary communication device. The second information includes information for identifying the receiving device, so that the auxiliary communication device forwards the second information to the terminal, so that: the terminal generates third information based on the received selection operation on the information for identifying the receiving device and the selection operation on the information for identifying the transmitting device;
[0017] The receiving device receives the third information sent by the auxiliary communication device; wherein, the third information is sent by the terminal to the auxiliary communication device, and the third information includes the information for identifying the transmitting device and the information for identifying the receiving device.
[0018] According to a fourth aspect of an embodiment of the present invention, a wireless pairing method is provided, which is applied to an auxiliary communication device. The auxiliary communication device can communicate with the terminal, and the auxiliary communication device can also communicate with at least one transmitting device and at least one receiving device; the method includes:
[0019] The auxiliary communication device receives first information sent by the transmitting device. The first information includes information for identifying the transmitting device; the auxiliary communication device receives second information sent by the receiving device. The second information includes information for identifying the receiving device;
[0020] The auxiliary communication device sends the first information and the second information to the terminal, so that: the terminal displays the information for identifying the transmitting device and the information for identifying the receiving device;
[0021] After the terminal generates third information in response to a selection operation on the displayed information for identifying the transmitting device and the information for identifying the receiving device, the auxiliary communication device receives the third information sent by the terminal; the third information includes the information for identifying the transmitting device and the information for identifying the receiving device.
[0022] The auxiliary communication device sends the third information outwards so that: the receiving device receives the third information.
[0023] According to the fifth aspect of the embodiments of the present invention, there is provided a wireless pairing device applied to a terminal. The terminal can be connected to an auxiliary communication device, and the auxiliary communication device can communicate with at least one receiving device; the wireless pairing device includes:
[0024] A first receiving module, configured to receive first information and second information; the first information includes information for identifying a transmitting device, and the second information includes information for identifying the receiving device.
[0025] A first display module, configured to display the information for identifying the transmitting device and the information for identifying the receiving device.
[0026] A first generating module, configured to generate third information in response to a selection operation on the displayed information for identifying the transmitting device and the information for identifying the receiving device. The third information includes the information for identifying the transmitting device and the information for identifying the receiving device.
[0027] A first sending module, configured to send the third information to the auxiliary communication device so that: the auxiliary communication device sends the third information outwards, and the receiving device receives the third information.
[0028] According to the sixth aspect of the embodiments of the present invention, there is provided a wireless pairing device applied to a terminal. The terminal can communicate with at least one receiving device; the wireless pairing device includes:
[0029] A second receiving module, configured to receive first information and second information; the first information includes information for identifying a transmitting device, and the second information includes information for identifying the receiving device.
[0030] A second display module, configured to display the information for identifying the transmitting device and the information for identifying the receiving device.
[0031] A second generation module, configured to generate third information in response to a selection operation on the information for identifying the transmitting device and the information for identifying the receiving device that are displayed, where the third information includes the information for identifying the transmitting device and the information for identifying the receiving device;
[0032] A second sending module, configured to send the third information outward, so that: the receiving device receives the third information.
[0033] According to a seventh aspect of an embodiment of the present invention, there is provided a wireless pairing device, which is applied to a receiving device. The receiving device can communicate with a terminal through an auxiliary communication device, and the auxiliary communication device can communicate with at least one transmitting device; the wireless pairing device includes:
[0034] A third sending module, configured to send second information to the auxiliary communication device, where the second information includes the information for identifying the receiving device, so that the auxiliary communication device forwards the second information to the terminal, so that: the terminal generates third information based on a selection operation on the information for identifying the receiving device and a selection operation on the information for identifying the transmitting device received;
[0035] A third receiving module, configured to receive the third information sent by the auxiliary communication device; where the third information is sent by the terminal to the auxiliary communication device, and the third information includes the information for identifying the transmitting device and the information for identifying the receiving device.
[0036] According to an eighth aspect of an embodiment of the present invention, there is provided a wireless pairing device, which is applied to an auxiliary communication device. The auxiliary communication device can communicate with the terminal, and the auxiliary communication device can also communicate with at least one transmitting device and at least one receiving device; the wireless pairing device includes:
[0037] A fourth receiving module, configured to receive first information sent by the transmitting device, where the first information includes the information for identifying the transmitting device; the auxiliary communication device receives second information sent by the receiving device, where the second information includes the information for identifying the receiving device;
[0038] A fourth sending module, configured to send the first information and the second information to the terminal, so that: the terminal displays the information for identifying the transmitting device and the information for identifying the receiving device;
[0039] A fifth receiving module, configured to receive third information sent by the terminal after the terminal generates the third information in response to a selection operation on the displayed information for identifying the transmitting device and the information for identifying the receiving device; the third information includes the information for identifying the transmitting device and the information for identifying the receiving device.
[0040] A fifth transmitting module, configured to transmit the third information outward, so that: the receiving device receives the third information.
[0041] According to a ninth aspect of an embodiment of the present invention, there is provided a wireless pairing device, including:
[0042] A processor;
[0043] A memory configured to store processor-executable instructions;
[0044] Wherein, the processor is configured to: when executed, implement the steps in the above-mentioned wireless pairing method.
[0045] According to a tenth aspect of an embodiment of the present invention, there is provided a non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a wireless pairing device, enabling the device to execute the steps in the above-mentioned wireless pairing method.
[0046] The beneficial effects of the present invention are:
[0047] In the present invention, by displaying on the terminal the information for identifying the transmitting device and the information for identifying the receiving device, in response to a selection operation on the displayed information, a third information including the information for identifying the transmitting device and the information for identifying the receiving device is generated, and the third information is sent to the receiving device through an auxiliary communication device, and the receiving device receives the third information to complete pairing. Since the information of the transmitting device and the receiving device to be paired can be displayed on the terminal, and the pairing of the transmitting device and the receiving device can be automatically completed after responding to the selection operation on the displayed information, there is no need to perform a specific triggering operation to trigger each group of transmitters and receivers to be paired into the learning mode, which can conveniently and quickly implement the pairing work of multiple transmitting devices and receiving devices, save the configuration time, reduce the probability of configuration errors, make it easier to batch-install corresponding devices in the home, promote the batch application of such devices, especially make it more convenient for the construction party to debug such devices, solve the problem that the receiver must be physically contacted during the debugging and configuration of the device, enable construction to be carried out first and then configuration during construction, greatly simplify the construction steps, and enable the installation and debugging configuration during construction to be separated and not affect the project progress.
[0048] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and do not limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The accompanying drawings herein are incorporated into and constitute a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.
[0050] Figure 1 is a schematic diagram of the structure of a wireless pairing system in an embodiment of the present invention Figure 1 .
[0051] Figure 2 is a schematic diagram of the structure of a wireless pairing system in an embodiment of the present invention Figure 2 .
[0052] Figure 3 is a schematic flow chart of a wireless pairing method in an embodiment of the present invention Figure 1 .
[0053] Figure 4a is a schematic diagram of a terminal display interface in an embodiment of the present invention.
[0054] Figure 4b is a schematic diagram of a terminal display interface in an embodiment of the present invention.
[0055] Figure 5 is a schematic flow chart of a wireless pairing method in an embodiment of the present invention Figure 2 .
[0056] Figure 6 is a schematic flow chart of a wireless pairing method in an embodiment of the present invention Figure 3 .
[0057] Figure 7 is the fourth schematic flow chart of a wireless pairing method in an embodiment of the present invention.
[0058] Figure 8a is a schematic diagram of a trigger element in an embodiment of the present invention Figure 1 .
[0059] Figure 8b is a schematic diagram of a trigger element in an embodiment of the present invention Figure 2 .
[0060] Figure 9a is a schematic diagram of the structure of a self-powered switch in an embodiment of the present invention Figure 1 .
[0061] Figure 9b is a schematic diagram of the structure of a self-powered switch in an embodiment of the present invention Figure 2 .
[0062] Figure 10 is a wireless pairing device frame shown in an embodiment of the present invention Figure 1 .
[0063] Figure 11 is a wireless pairing device frame shown in an embodiment of the present invention Figure 2 .
[0064] Figure 12 is a wireless pairing device frame shown in an embodiment of the present invention Figure 3 .
[0065] Figure 13 is a block diagram four of a wireless pairing device shown in an embodiment of the present invention
[0066] Figure 14 is a schematic structural diagram of an electronic device in an embodiment of the present invention Detailed implementation manners
[0067] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention
[0068] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above accompanying drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present invention described here can be implemented in an order different from those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units does not necessarily have to be limited to those clearly listed steps or units, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices
[0069] Next, the technical solutions of the present invention will be described in detail with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments
[0070] Refer to Figure 1 、 Figure 2 , Figure 1 is a schematic structure of a wireless pairing system in an embodiment of the present invention Figure 1 ; Figure 2Schematic structure of a wireless pairing system in an embodiment of the present invention Figure 2 。
[0071] The transmitting device 1 (which can also be referred to as a transmitter) herein can be a device capable of generating and sending commands and having wireless transmission capabilities. For example, it can refer to a device used to generate and send control, management, etc. commands and having wireless transmission capabilities such as radio frequency wireless transceiver, infrared transceiver, Bluetooth transceiver, WiFi transceiver, etc. The transmitting device 1 can include devices such as a self-powered switch, a battery switch, a sensor, a doorbell transmitter, etc.
[0072] The receiving device 2 (which can also be referred to as a receiver) herein can be a device capable of receiving and executing commands and having wireless transmission capabilities. For example, it can refer to a device used to receive and execute control, management, etc. commands and having wireless transmission capabilities such as radio frequency wireless transceiver, infrared transceiver, Bluetooth transceiver, WiFi transceiver, etc. In some embodiments, the receiving device 2 can include devices such as a wall switch, a single-channel actuator, a multi-channel actuator, an electric curtain, a lamp, a television, an air conditioner, etc. After the transmitting device 1 completes pairing with the receiving device 2, it can send corresponding commands to instruct the receiving device 2 to perform a conversion of the working state, etc. For example: after the lamp receives the off command of the wireless switch, it switches the lamp from the lit state to the off state. There is a corresponding relationship between the transmitting device and the receiving device. For example: one transmitting device can correspond to one receiving device, one transmitting device can also correspond to multiple receiving devices, and multiple transmitting devices can also correspond to one receiving device, etc.
[0073] The auxiliary communication device 3 can be any device or combination of devices capable of implementing wireless transceiver functions. The auxiliary communication device 3 is provided with circuits such as a wireless communication module with wireless communication capabilities, and the auxiliary communication device 3 can also be provided with circuits such as a processing module with data processing capabilities, etc. The wireless communication module of the auxiliary communication device 3 can include communication modules such as radio frequency, Bluetooth, Wifi, mobile network, etc., and can also include modules supporting specific communication protocols. The auxiliary communication device 3 can refer to a relay device, etc. used to perform processing such as matching, filtering, or clipping on the transmitted information during the wireless transmission process between the transmitting device 1 and the receiving device 2. In a possible implementation manner, the auxiliary communication device 3 can also refer to a module or chip, etc. with intelligent control functions, which can be components embedded in other devices. The present disclosure does not specifically limit the representation form of the auxiliary communication device 3. For example: the auxiliary communication device 3 can refer to a module or unit in the transmitting device 1, or the auxiliary communication device 3 can refer to a module or unit in the receiving device 2, that is, the transmitting device 1 or the receiving device 2 can include the functions of the auxiliary communication device 3.
[0074] The terminal 4 therein can be any device or combination of devices with data processing capabilities and external communication capabilities. For example, it can be a mobile phone, a computer, a tablet computer, a computer, a car-mounted computer, etc.
[0075] The numbers of the transmitting device 1, the receiving device 2, the auxiliary communication device 3, and the terminal 4 are not limited to those shown in the figure and can be any number specifically.
[0076] Reference Figure 1 、 Figure 3 , Figure 3 is a schematic flow chart of a wireless pairing method in an embodiment of the present invention. Figure 1 This embodiment discloses a wireless pairing method applied to a terminal. The terminal can communicate with an auxiliary communication device, and the auxiliary communication device can communicate with at least one receiving device. The method includes:
[0077] Step S301, the terminal receives a first piece of information and a second piece of information. The first piece of information includes information for identifying a transmitting device, and the second piece of information includes information for identifying the receiving device.
[0078] Step S302, the terminal displays the information for identifying the transmitting device and the information for identifying the receiving device.
[0079] Step S303, in response to a selection operation on the displayed information for identifying the transmitting device and the information for identifying the receiving device, the terminal generates a third piece of information. The third piece of information includes the information for identifying the transmitting device and the information for identifying the receiving device.
[0080] Step S304, the terminal sends the third piece of information to the auxiliary communication device so that: the auxiliary communication device sends the third piece of information outward, and the receiving device receives the third piece of information.
[0081] In the field of the Internet of Things, there are standard protocols for wireless data transmission in the Internet of Things, such as Wi-Fi, Zigbee, and Bluetooth. However, since Wi-Fi, Bluetooth, etc. are designed for a large amount of data transmission, the power consumption is too high. Therefore, in some ultra-low-power application scenarios, a radio frequency communication protocol, such as but not limited to the radio frequency 433 protocol or a custom specific communication protocol, may be used for communication between the transmitting device and the receiving device. When some terminals, such as mobile phones, do not have the hardware to support radio frequency communication protocols, such as the radio frequency 433 protocol or a custom specific communication protocol, the terminal cannot communicate with the transmitting device or the receiving device. In this embodiment, an auxiliary communication device is proposed. The wireless communication module of the auxiliary communication device can support radio frequency communication protocols, such as the radio frequency 433 protocol or a custom specific communication protocol. The terminal can communicate with the auxiliary communication device, and further realize data interaction between the terminal and the transmitting device or the receiving device through the auxiliary communication device. The auxiliary communication device may include an interface module, and the connection with the terminal is realized through the interface module. For example, the auxiliary communication device can be USB-connected to the terminal through the interface module, or the auxiliary communication device can be wirelessly connected to the terminal through Wi-Fi, Bluetooth, etc. This embodiment does not limit the connection method between the auxiliary communication device and the terminal. By wirelessly connecting the auxiliary communication device to the terminal, the auxiliary communication device can be applicable to terminals with different interfaces, and has a wider applicability.
[0082] In this embodiment, the terminal in step S301 can receive the first information and / or the second information through the auxiliary communication device; the first information includes information for identifying the transmitting device, and the second information includes information for identifying the receiving device. For example, the transmitting device can send out a message regularly, when powered on, or when a preset trigger condition is met. The message can be a control message or a message for indicating the status information of the transmitting device, etc., and the type of the message is not limited. The receiving device can send out a message regularly, when powered on, when receiving a query instruction from the auxiliary communication device, or when answering, and the type of the message is not limited.
[0083] After receiving the message sent by the transmitting device or the receiving device, the auxiliary communication device can directly send the message to the terminal as the first information or the second information, or can preprocess all or part of the information in the message, such as signing, encrypting, etc., and then generate the first information or the second information and send it to the terminal. It can also parse the message, extract the information used to identify the transmitting device in the message sent by the transmitting device, and then generate the first information and send it to the terminal, or extract the information used to identify the receiving device in the message sent by the receiving device, and then generate the second information and send it to the terminal. That is, the first information or the second information can be the complete message, or a certain part of the message, or other format files processed by the auxiliary communication device. The information format of the message sent by the transmitting device or the receiving device received by the auxiliary communication device can be the same as or different from the information format sent by the auxiliary communication device to the terminal. The information content of the message sent by the transmitting device or the receiving device received by the auxiliary communication device can be the same as or different from the information content sent by the auxiliary communication device to the terminal. As long as the information sent by the transmitting device received by the auxiliary communication device and the information sent by the auxiliary communication device to the terminal both contain the information used to identify the transmitting device, or the information sent by the receiving device received by the auxiliary communication device and the information sent by the auxiliary communication device to the terminal both contain the information used to identify the receiving device, it does not deviate from the protection scope of this embodiment.
[0084] Among them, the information used to identify the transmitting device in the first information and the information used to identify the receiving device in the second information at least include identification information, such as but not limited to address identification, Internet protocol address, device unique number (a number with a specific number of bits), etc. The identification information can be unique. In this embodiment, the auxiliary communication device can perform various conversions on the identification information when interacting with the terminal. For example, when the identification information included in the message sent by the transmitting device received by the auxiliary communication device is an Internet protocol address, it can be converted into the corresponding device unique number and then sent to the terminal. Of course, it can also directly send the Internet protocol address to the terminal, which is not limited here.
[0085] The information for identifying the transmitting device in the first information and the information for identifying the receiving device in the second information may further include information such as device type, key value, receiver channel, etc. For example, the type of the transmitting device can be determined by factors such as the shape of the transmitting device or the number of individual switches. The transmitting device may include: single-switch self-powered switch, double-switch self-powered switch, triple-switch self-powered switch, quadruple-switch self-powered switch, round single-button switch, round double-button switch, round triple-button switch, passive transmitter, and various other types of transmitting devices. For example, the type of the receiving device can be determined by factors such as the number of channels of the receiving device or the working purpose. The receiving device may include: receivers with 1 channel, receivers with 2 channels,..., receivers with 8 channels, etc.; wall switches with 1 channel (with gesture sensing function), wall switches with 2 channels (with gesture sensing function), etc.; wall switches with 1 channel (without gesture sensing function), wall switches with 2 channels (without gesture sensing function), etc.; single-wire wall switches with 1 channel (without gesture sensing function), doorbells, dimmable devices, curtain motors, curtain motor controllers with dual outputs, dimming control boards, and various other types of receiving devices.
[0086] In an alternative embodiment, the terminal in step S301 may further receive the input first information and / or second information. For example, a manual input function button is displayed on the terminal display interface. In response to the trigger instruction for this manual input function button, an input box is displayed, and the terminal receives the information for identifying the transmitting device or the information for identifying the receiving device input by the user through the displayed input box, such as the identification information of the transmitting device or the receiving device. In addition, two-dimensional codes for identifying their own information may be set on the transmitting device and the receiving device. A code scanning and entry function button is displayed on the terminal display interface. In response to the trigger instruction for this code scanning and entry function button, the terminal receives the information for identifying the transmitting device or the information for identifying the receiving device obtained by scanning the two-dimensional code, such as the identification information of the transmitting device or the receiving device obtained by code scanning. In this embodiment, by directly receiving the input first information and / or second information through the terminal interface, there is no need to receive the messages sent by the transmitting device or the receiving device through an auxiliary communication device, providing the user with a function of directly entering the devices to be paired.
[0087] In step S302, the terminal displays information for identifying the transmitting device and information for identifying the receiving device. Among them, the terminal may directly display the information for identifying the transmitting device in the received first information and / or the information for identifying the receiving device in the second information, or may convert the information for identifying the transmitting device in the received first information into other forms of identification for display, and convert the information for identifying the receiving device in the received second information into other forms of identification for display. That is, the information for identifying the transmitting device and the information for identifying the receiving device displayed by the terminal may be the same as or different from the information for identifying the transmitting device in the first information and the information for identifying the receiving device in the second information. As long as the information displayed by the terminal is the information for identifying the transmitting device or the information for identifying the receiving device, it does not depart from the protection scope of this embodiment.
[0088] Reference Figure 4a , Figure 4aIt is a schematic diagram of the terminal display interface in an embodiment of the present invention. In an alternative embodiment, the display interface of the terminal includes a first display area and a second display area: at least one first identifier is displayed in the first display area, and the first identifier is used to identify the transmitting device; at least one second identifier is displayed in the second display area, and the second identifier is used to identify the receiving device. The first identifier and the second identifier can directly display the identifier information in the received first information or second information, such as the address identifier of the transmitting device or the receiving device. In addition, in a scenario where a large number of pairings are performed, such as pairing multiple transmitting devices and multiple receiving devices in an entire house, if the address identifiers of multiple transmitting devices and multiple receiving devices are directly displayed, the user cannot distinguish the transmitting device or receiving device to be paired, which is likely to cause confusion. Therefore, in this embodiment, the input first identifier and the second identifier can be received. For example, a third identifier such as an address identifier used to identify the transmitting device in the first information can be displayed on the terminal interface. After receiving the trigger instruction of the user for the third identifier, an input box can be popped up to receive the first identifier input by the user through the input box. The first identifier can include information such as the name and location of the transmitting device, and the terminal establishes an association relationship between the first identifier and the third identifier. A fourth identifier such as an address identifier used to identify the receiving device in the second information can also be displayed on the terminal interface. After receiving the trigger instruction of the user for the fourth identifier, an input box can be popped up to receive the second identifier input by the user through the input box. The second identifier can include information such as the name and location of the receiving device, and the terminal establishes an association relationship between the second identifier and the fourth identifier. In this way, by receiving and inputting information such as the name and location of the transmitting device or the receiving device for identification and display, and establishing an association relationship between the identifier and the address identifier, it enables the user to easily distinguish and select pairings according to actual needs when performing batch pairing of multiple transmitting devices and multiple receiving devices, realizing flexible and accurate pairing.
[0089] In step S303, the terminal's response to the selection operation of the information for identifying the transmitting device and the information for identifying the receiving device shown may include a response to the selection operation of the third identifier and the fourth identifier shown, or may also include a response to the selection operation of the first identifier and the second identifier shown. In response to the selection operation, third information is generated, and the third information includes the information for identifying the transmitting device and the information for identifying the receiving device; for example, it may include the address identifier, Internet protocol address, device unique number (a number with a specific number of bits), etc. of the transmitting device and the receiving device. It should be noted that since the association relationship between the first identifier and the third identifier, and the association relationship between the second identifier and the fourth identifier have been established previously, in response to the selection operation of the first identifier and the second identifier shown, the third identifier and the fourth identifier, that is, the information such as the address identifier for identifying the transmitting device and the information such as the address identifier for identifying the receiving device can be obtained according to the established association relationship, and then the third information is generated.
[0090] In an alternative embodiment, the display interface of the terminal includes a third display area and a fourth display area; the terminal's response to the selection operation of the information for identifying the transmitting device and the information for identifying the receiving device shown includes: displaying at least one of the first identifiers subjected to the selection operation in the third display area; and displaying at least one of the second identifiers subjected to the selection operation in the fourth display area. After the terminal responds to the selection operation, the third information can be automatically generated. A pairing function button may also be displayed on the terminal interface, and the third information is generated after receiving the trigger instruction from the user for this pairing function button.
[0091] Furthermore, since the transmitting device may include a self-powered switch with multiple buttons, and the receiving device may include a receiver with multiple channels, in an alternative embodiment, the first identifier shown on the terminal may further include the button information of the transmitting device, and the second identifier shown may further include the channel information of the receiving device. The terminal may generate the third information in response to the selection operation of the button information and the channel information shown, and then the information for identifying the transmitting device in the third information may further include the button information of the transmitting device, and the information for identifying the receiving device in the third information may further include the channel information of the receiving device. In this way, flexible pairing between the buttons of the transmitting device and the channels of the receiving device can be achieved on the terminal display interface, without the user performing specific operations such as triggering buttons and powering on for each button of the transmitting device and each channel of the receiving device for pairing.
[0092] Further, in an optional implementation, the display interface of the terminal includes a fifth display area that displays at least one type of control action, and the type of control action is used to characterize the type of control action of the transmitting device on the receiving device. Since users have different control requirements for the receiving device through the transmitting device in different application scenarios, in this embodiment, different preset types of control actions can also be displayed on the terminal display interface, so that on the basis of selecting the paired transmitting device and receiving device, the user can further select the paired type of control action, improving the diversity of pairing selection and making the pairing more flexible and accurate.
[0093] For example, the type of control action may include a first type of control action, which is used to characterize that the transmitting device controls the receiving device to perform a flipping operation so that the receiving device switches between a first state and a second state. For example, when the transmitting device is a switch, after the matching is completed, each time the switch is pressed and the receiving device receives a flipping type of message, a flipping operation is performed.
[0094] The type of control action may also include a second type of control action, which is used to characterize that the transmitting device controls the receiving device to perform a fixed operation. Among them, the fixed operation may include various types of operations. For example, when the receiving device is a wall switch, the fixed operation may be a fixed on or off operation to control the wall switch to perform a fixed turn-on or turn-off operation. When the receiving device is a controlled device, the fixed operation may be a fixed adjustment operation on the function of the controlled device. Taking the controlled device as an air conditioner as an example, the fixed operation may be a fixed operation of increasing or decreasing the temperature, etc.
[0095] The type of control action may also include a third type of control action, which is used to characterize that the transmitting device controls the receiving device to perform a delay operation. For example, the transmitting device controls the receiving device to perform a delayed flipping operation or the transmitting device controls the receiving device to perform a delayed fixed operation. For example, after the matching is completed, the receiving device performs the corresponding flipping operation or fixed operation 10 minutes after receiving the control message sent by the transmitting device.
[0096] The terminal receives a selection operation on at least one type of control action displayed in the fifth display area, and then generates third information. In addition to the information for identifying the transmitting device and the information for identifying the receiving device, the third information may further include: the control action type information corresponding to the type of control action subjected to the selection operation.
[0097] In step S304, the terminal sends the third information to the auxiliary communication device so that: the auxiliary communication device sends the third information externally, and the receiving device receives the third information. In this embodiment, if the information is transmitted between the auxiliary communication device and the receiving device according to the first communication protocol, such as but not limited to the radio frequency 433 protocol or a customized specific communication protocol, the terminal may encapsulate the generated third information according to the first communication protocol to generate a first message. The terminal sends the first message to the auxiliary communication device so that the auxiliary communication device can directly forward the first message. The terminal may also directly send the third information to the auxiliary communication device, and the auxiliary communication device performs corresponding data processing, encryption, encapsulation, etc. on the third information and then sends it outwards. The terminal may also perform preliminary data processing, integration, encryption, etc. on the third information and then send it to the auxiliary communication device in the form of information in any format, and the auxiliary communication device encapsulates it into a message and then sends it outwards. The format of the third information sent by the terminal to the auxiliary communication device and the third information sent by the auxiliary communication device outwards may be the same or different, and the content may be the same or different. As long as both contain the information for identifying the transmitting device and the information for identifying the receiving device, it does not depart from the protection scope of this embodiment. After receiving the information for identifying the transmitting device and the information for identifying the receiving device in the third information, the receiving device can complete the pairing of the transmitting device and the receiving device.
[0098] In this embodiment, by displaying the information for identifying the transmitting device and the information for identifying the receiving device on the terminal, in response to the selection operation of the displayed information, the third information including the information for identifying the transmitting device and the information for identifying the receiving device is generated, and the third information is sent to the receiving device through the auxiliary communication device. The receiving device receives the third information to complete the pairing. Since the information of the transmitting device and the receiving device to be paired can be displayed on the terminal, the pairing of the transmitting device and the receiving device can be automatically completed after responding to the selection operation of the displayed information, without performing a specific trigger operation to trigger each group of transmitters and receivers to be paired into the learning mode, realizing flexible and convenient pairing.
[0099] In some application scenarios, for example, the existing way to trigger a receiving device to enter the learning mode is usually to trigger a button on the receiving device. When the installer and the subsequent debugger are not the same group of people, when the debugger performs pairing, the receiving device may have been installed in a position that is not easily accessible, such as on the ceiling. In this case, it is not convenient to operate the button of the receiving device to perform the learning mode pairing. Compared with the prior art, in this embodiment, the terminal can display the information for identifying the transmitting device and the information for identifying the receiving device by various means, such as receiving the input first information and second information, or obtaining various types of first information and second information through the auxiliary communication device. After responding to the user's pairing selection operation, the pairing is automatically completed. There is no need to operate the button of the receiving device to perform the learning mode pairing, which solves the problem of inconvenient operation for the debugger during debugging and pairing. In addition, when multiple transmitting devices and receiving devices need to be paired, such as batch pairing all the transmitting devices and receiving devices in an entire house, compared with the prior art where the user needs to continuously perform specific trigger operations on the transmitting devices and receiving devices to be paired to trigger each group of transmitters and receivers to enter the learning mode for pairing. In this embodiment, the user only needs to perform a selection operation on the terminal interface to complete the pairing, which meets the user's flexible and convenient pairing needs and can effectively improve the pairing efficiency. That is, in this embodiment, the pairing of multiple transmitting devices and receiving devices can be conveniently and quickly realized, saving the configuration time and reducing the probability of configuration errors, making it easier to batch install the corresponding devices in the home, promoting the batch application of such devices, especially making it more convenient for the construction party to debug such devices, solving the problem that the debugger must physically contact the receiver when configuring the device, enabling construction to be carried out first and then configuration during construction, greatly simplifying the construction steps, and making the installation and debugging configuration during construction independent of each other without affecting the project progress.
[0100] Reference Figure 4b , Figure 4b is a schematic diagram of the terminal display interface in an embodiment of the present invention.
[0101] In an alternative embodiment, the method further includes:
[0102] The terminal receives a first trigger operation acting on the second identifier, such as the receiving device name. The first trigger operation may include clicking, continuous clicking, long pressing, etc. The terminal responds to the first trigger operation and displays a sixth display area, and the sixth display area displays at least one first function component. The types of the first function components include at least one of a controlled switch type, a relay type, a default output type, or a heartbeat type.
[0103] The terminal receives a second trigger operation acting on the first functional component, such as clicking, continuous clicking, long pressing, etc. The terminal responds to the second trigger operation, generates and sends a fourth piece of information to the auxiliary communication device, so that: the auxiliary communication device sends the fourth piece of information outward, and the receiving device receives the fourth piece of information. Wherein, the fourth piece of information includes information for identifying the receiving device and type information corresponding to the first functional component to which the second trigger operation is applied. The receiving device responds to the fourth piece of information and turns on or off the corresponding function according to the type information corresponding to the first functional component in the fourth piece of information.
[0104] In this embodiment, after receiving the trigger operation of the user on the displayed receiving device, the terminal interface can display a plurality of first functional components. According to the user's selection trigger operation on the functional components, the on or off control of the function items corresponding to the first functional component type on the receiving device can be realized through the terminal interface. For example, the first functional component type may include a controlled switch type, which represents the on or off control of the receiving device. Then, after the terminal receives the trigger operation acting on the functional component of the controlled switch type, it generates a fourth piece of information, which includes information for identifying the receiving device, such as the address identifier of the receiving device, and control information, which is used to control the receiving device to turn on or off. The terminal sends the fourth piece of information to the receiving device through the auxiliary communication device, and the receiving device responds to the control information in the fourth piece of information and performs the on or off operation.
[0105] The first functional component type may also include a relay type, which represents the on or off control of the relay function of the receiving device. Then, after the terminal receives the trigger operation acting on the functional component of the relay type, it generates a fourth piece of information, which includes information for identifying the receiving device, such as the address identifier of the receiving device, and control information, which is used to control the on or off of the relay function of the receiving device. The terminal sends the fourth piece of information to the receiving device through the auxiliary communication device, and the receiving device responds to the control information in the fourth piece of information and turns on or off the relay function of the receiving device. After the receiving device turns on the relay function, when it receives a message, it can forward the received message to other receiving devices to realize message relay, so as to extend the transmission distance of the message and improve the control distance of the transmitting device over the receiving device.
[0106] The first functional component type may further include a default output type, which represents the on or off control of the default output state when the receiving device is powered on. After the terminal receives a trigger operation on the functional component of the default output type, the terminal generates fourth information, which includes information for identifying the receiving device, such as the address identifier of the receiving device, and control information for controlling the receiving device to turn on or off the default output state when powered on. The terminal sends the fourth information to the receiving device through the auxiliary communication device, and the receiving device responds to the control information in the fourth information to turn on or off the default output state when the receiving device is powered on.
[0107] The first functional component type may further include a heartbeat type, which represents the on or off control of the heartbeat function of the receiving device. After the terminal receives a trigger operation on the controlled switch type functional component, the terminal generates fourth information, which includes information for identifying the receiving device, such as the address identifier of the receiving device, and control information for controlling the receiving device to turn on or off the heartbeat function. The terminal sends the fourth information to the receiving device through the auxiliary communication device, and the receiving device responds to the control information in the fourth information to turn on or off the heartbeat function of the receiving device. After the receiving device turns on the heartbeat function, within a preset time unit, it sends its own status information at a preset time interval, and the status information may include status information such as the address identifier, power, and brightness of the receiving device.
[0108] In this embodiment, by displaying multiple first functional components of the receiving device on the terminal and responding to the trigger operation on the displayed first functional components, the corresponding functions of the first functional components on the receiving device can be automatically controlled to be turned on or off, without the need to perform various complex control operations on the buttons on the transmitting device or the receiving device to turn on or off the corresponding functions on the receiving device. This embodiment is more intuitive and convenient, and can quickly and conveniently control functions such as turning on or off the receiving device, turning on or off the relay, default output, or heartbeat.
[0109] Further, in an alternative embodiment, since the generated third information may include a third identifier for identifying the transmitting device, such as an address identifier, a fourth identifier for identifying the receiving device, such as an address identifier, and corresponding control action type information. The first identifier, such as the name of the transmitting device, is associated with the third identifier, and the second identifier, such as the name of the receiving device, is associated with the fourth identifier. Therefore, at least one set of the first identifier, the second identifier, and the control action type information in the corresponding third information can be generated into a list and then exported as a preset format file, such as but not limited to a csv format file. The preset format file includes the association relationship between the first identifier, the second identifier, and the control action type information in the corresponding third information. The generated preset format file is exported for use by the terminal when performing pairing.
[0110] In an application scenario, after completing the pairing of all the transmitting devices and receiving devices in the current room to generate the third information and exporting the generated preset format file, if there is a pairing requirement for the transmitting devices and receiving devices in another set of rooms that is the same as that in the current room, then the quick pairing of the other set of rooms can be achieved based on the generated preset format file. For example, the other set of rooms includes at least one transmitting device to be paired and at least one receiving device to be paired, and the auxiliary communication device can communicate with at least one receiving device to be paired.
[0111] When the terminal performs quick pairing for another set of rooms, it can import a preset format file and display the first identifier in the preset format file. The terminal receives the fifth identifier input by the user according to each displayed first identifier, such as the name of the transmitting device, for identifying the to-be-paired transmitting device. The information for which the fifth identifier is used to identify the to-be-paired transmitting device at least includes identification information, such as but not limited to address identification, Internet protocol address, device unique number (a number with a specific number of bits), etc., and the identification information can be unique. An association relationship is established between the first identifier and the fifth identifier. The second identifier in the preset format file is displayed. The terminal receives the fifth identifier input by the user according to each displayed second identifier, such as the name of the receiving device, for identifying the to-be-paired receiving device. The information for which the fifth identifier is used to identify the to-be-paired receiving device at least includes identification information, such as but not limited to address identification, Internet protocol address, device unique number (a number with a specific number of bits), etc., and the identification information can be unique. An association relationship is established between the second identifier and the sixth identifier. In this way, the identification information entry of all the to-be-paired transmitting devices and to-be-paired receiving devices in the to-be-paired rooms can be realized. Moreover, since the preset format file includes the association relationship between the first identifier, the second identifier, and the control action type information in the corresponding third information, by establishing the association relationship between the first identifier and the fifth identifier, and the second identifier and the sixth identifier, the association relationship between the fifth identifier, the sixth identifier, and the control action type information in the corresponding third information can be obtained.
[0112] In an alternative embodiment, a second functional component is displayed on the display interface of the terminal, and the second functional component is used to indicate the execution of pairing. A third trigger operation, such as a click operation, acting on the second functional component is received, and in response to the third trigger operation, fifth information is generated. The fifth information may include the fifth identifier and the sixth identifier, and the fifth information may also include the control action type information in the third information corresponding to the first identifier and the second identifier. The terminal sends the fifth information to the to-be-paired receiving device through the auxiliary communication device, and the to-be-paired receiving device receives the fifth information to complete the quick pairing between the to-be-paired transmitting device and the to-be-paired receiving device.
[0113] In this embodiment, the preset format file generated after successful pairing can be used to achieve batch and rapid pairing between multiple transmitting devices and receiving devices in the same scenario. For example, when there are multiple suites with the same layout, and the number, location, and pairing relationship of the transmitting and receiving devices in each suite are roughly the same, after completing the pairing between the multiple transmitting and receiving devices in the first suite and generating and exporting the preset format file, when performing pairing in subsequent suites, the preset format file can be imported on the terminal. After receiving the identification information of the transmitting and receiving devices in other suites input based on this preset format file, the rapid pairing between the transmitting and receiving devices in other suites can be automatically completed. In this embodiment, the pairing relationship replication in the same scenario can be achieved, improving the pairing efficiency, saving the pairing time, and reducing the probability of pairing errors.
[0114] Reference Figure 2 、 Figure 5 , Figure 5 is a schematic flowchart of a wireless pairing method in an embodiment of the present invention Figure 2 。This embodiment discloses a wireless pairing method applied to a terminal. Among them, an auxiliary communication device can be integrated in the terminal as a module or unit, so that the terminal can include the functions of the auxiliary communication device, that is, the terminal can support radio frequency communication protocols such as radio frequency 433 protocol or custom specific communication protocols, etc., and the terminal can communicate with a transmitting device and a receiving device. The method includes:
[0115] Step S501, the terminal receives the first information and the second information; the first information includes information for identifying the transmitting device, and the second information includes information for identifying the receiving device;
[0116] Step S502, the terminal displays the information for identifying the transmitting device and the information for identifying the receiving device;
[0117] Step S503, in response to a selection operation on the displayed information for identifying the transmitting device and the information for identifying the receiving device, the terminal generates the third information, and the third information includes the information for identifying the transmitting device and the information for identifying the receiving device;
[0118] Step S504, the terminal sends the third information outward so that: the receiving device receives the third information.
[0119] The technical terms, technical features, optional implementation manners, and technical effects involved above can be understood with reference to the relevant descriptions of the embodiments of the wireless pairing method applied to the terminal. For repeated content, it will not be repeated here.
[0120] In this embodiment, information for identifying a transmitting device and information for identifying a receiving device are displayed on a terminal. In response to a selection operation on the displayed information, third information including the information for identifying the transmitting device and the information for identifying the receiving device is generated and sent to the receiving device, and the receiving device receives the third information to complete pairing. Since the information of the transmitting device and the receiving device to be paired can be displayed on the terminal, the pairing of the transmitting device and the receiving device can be automatically completed after responding to the selection operation on the displayed information, without performing a specific triggering operation to trigger each group of transmitters and receivers to be paired into the learning mode, realizing flexible and convenient pairing.
[0121] In addition, after the transmitting device and the receiving device are matched, the terminal receives a first type of data frame sent by the transmitting device; the first type of data frame is determined by the transmitting device according to the device information of the transmitting device and the control information generated by the transmitting device; wherein, the first type of data frame includes an address field and a payload part, the first part of the device information constitutes the address field of the first type of data frame, and the second part of the device information and the control information together constitute the payload part of the first type of data frame.
[0122] The generation process of the first type of data frame includes: generating a first type of data frame according to the source identifier of the transmitting device, the device type of the transmitting device, and control parameters; wherein, the source identifier is used to determine the address field of the first type of data frame; in an optional implementation manner, the terminal determines the device type of the receiving device; the terminal determines the type of command for controlling the receiving device according to the device type of the receiving device and the control parameters; the terminal generates a second type of data frame according to the device type of the receiving device and the type of the command; the terminal sends the second type of data frame to the receiving device so that the receiving device executes the corresponding command. In another optional implementation manner, the second type of data frame can be generated by the transmitting device. For example, after pairing is completed, the transmitting device determines the type of command for controlling the receiving device according to the device type of the receiving device and the control parameters, generates a second type of data frame, and directly sends the second type of data frame to the receiving device by the transmitting device so that the receiving device executes the corresponding command.
[0123] Among them, the device information of the transmitting device may include at least one of the following: the device type of the transmitting device, the power, the unique device identifier, the device network address, or the installation location. The control information generated by the transmitting device may include at least one of the following: the operation information of the user detected by the transmitting device, the device type of the receiving device, and the working state of the receiving device, etc. For example, if the transmitting device includes a pressure sensor and the user presses the transmitting device, then the control information may refer to the magnitude of the pressing force detected by the pressure sensor, etc.
[0124] The data frame may refer to the protocol data unit of the data link layer and may at least include three parts: the frame header, the data part, the frame tail, etc. The first type of data frame at least includes an address field and a payload part. The first part of the device information constitutes the address field of the first type of data frame, and the second part of the device information and the control information together constitute the payload part of the first type of data frame. The content of the first part and the second part may overlap or may not overlap, and the present disclosure does not make specific limitations. For example, the address field of the first type of data frame may carry the network address of the transmitting device. For example, the network address may be 192.168.101.1.1, or an 18-bit or 32-bit address bit as agreed by the protocol, which belongs to the device information (i.e., the first part). The payload part of the first type of data frame may carry the device information and control information of the receiving device. For example, the device information may be a three-way self-generating switch, and the control information may be the on or off of a certain switch, etc.
[0125] In the embodiments of the present disclosure, the device information of the transmitting device and the control information generated by the transmitting device can be obtained; according to the device information and the control information, a first type of data frame is generated; wherein, the first type of data frame includes an address field and a payload part, the first part of the device information constitutes the address field of the first type of data frame, and the second part of the device information and the control information together constitute the payload part of the first type of data frame. By setting the data format of the data frame during the wireless transmission between the transmitting device and the controlled device, and the wireless transmission method between the transmitting device and the controlled device, and inserting the device information and the control information into the data frame, the device information and the control information of the transmitting device can be directly carried to the receiving device during the transmission of the data frame. Compared with establishing an additional data channel for data transmission, the transmission efficiency and accuracy of the data frame can be improved, and at the same time, the transmission power consumption of the data frame can be reduced, and the standby time can be increased, etc.
[0126] In some embodiments, the device information includes: the source identifier of the transmitting device, the device type of the transmitting device, and the control information includes: control parameters;
[0127] Generating a first type of data frame according to the device information and the control information includes:
[0128] Generating a first type of data frame according to the source identifier of the transmitting device, the device type of the transmitting device, and the control parameters; wherein, the source identifier is used to determine the address field of the first type of data frame; the method further includes:
[0129] Determining the device type of the receiving device;
[0130] Determining the type of command for controlling the receiving device according to the device type of the receiving device and the control parameters;
[0131] Generating a second type of data frame according to the device type of the receiving device and the type of the command;
[0132] Wherein, the data types carried by the preset bits in the frame control fields of the first type of data frame and the second type of data frame are different; the target identifier of the receiving device is used to determine the address field of the second type of data frame.
[0133] In the embodiments of the present disclosure, the device information may at least include the source identifier of the transmitting device and the device type of the transmitting device, and the control information may at least include control parameters. The source identifier (Source ID) may refer to the identifier corresponding to the transmitting device (such as, but not limited to, Internet protocol address, device unique number, etc.), and the source identifier may be unique. The present disclosure may determine the corresponding transmitting device according to the source identifier, or may determine the device type of the receiving device by pre-customizing the device type of the receiving device, etc., and the specific determination method is not limited. The device type may refer to types such as a single-opening self-powered switch, a double-opening self-powered switch, a receiver with 1 channel, a receiver with 2 channels, etc. The transmitting device may receive the device type uploaded by the user and then store it in the preset storage unit, and read the device type from the preset storage unit when generating the first type of data frame.
[0134] The control parameters may be determined according to the operations of the user detected by the transmitting device. For example: if the transmitting device is a single-opening switch and the user converts the single-opening switch from the off state to the on state, then the control parameter may change from 0 to 1, etc.; if the transmitting device is a pressure sensor and the user performs a pressing operation on the pressure sensor, then the control parameter may be generated according to the pressing force magnitude detected by the pressure sensor.
[0135] Embodiments of the present disclosure can generate a first type of data frame according to the source identifier of the transmitting device, the device type of the transmitting device, and control parameters. For example, the source identifier is used to determine the address field of the first type of data frame, and the device type and control parameters of the transmitting device can jointly determine the payload part of the first type of data frame, etc. The types of commands for controlling the receiving device can include: commands for data processing, or commands for control (also referred to as device control commands), or commands for management (also referred to as device management commands), etc. For example: device control commands such as status query, switch control, brightness control, ring control, travel control, etc.; device management commands such as configuring the gesture sensing function and indicator light of a wall switch, reading the gesture sensing function and indicator light configuration of a wall switch, etc.
[0136] The present disclosure can determine the type of command for controlling the receiving device according to the device type of the receiving device and the control parameters. Then, the electronic device can generate a second type of data frame by determining the device type of the receiving device and then according to the device type of the receiving device and the type of the command. For example, the device type of the receiving device and the type of the command can jointly determine the payload part of the second type of data frame, etc.
[0137] The data types of the data carried by the preset bits in the frame control fields of the first type of data frame and the second type of data frame are different. The data carried by the preset bits can refer to data of any length or at any position in the data frame, and the type of the data frame is not limited and can be customized according to actual usage requirements. For example: for the first type of data frame, it can refer to a data frame with the value of 00001 for the lower 5 bits (b0, b1,... b4 bits) in the frame control field; for the second type of data frame, it can refer to a data frame with the value of 00002 for the lower 5 bits in the frame control field. In a possible embodiment, the first type of data frame can refer to a data frame sent from the node end of the transmitting device to the gateway end, and the second type of data frame can refer to a data frame sent from the gateway end to the node end, etc., where the gateway end can refer to an intelligent control center.
[0138] In embodiments of the present disclosure, a second type of data frame can be generated according to the device type of the receiving device and the type of the command, which can accurately determine the data structure of different types of data frames, refine the data frame types, and reduce the workload of developers, etc.
[0139] In the embodiments of the present disclosure, a data frame may be composed of parts such as a header, a payload (which may also be referred to as a data part, etc.), and a footer. The header may be composed of parts such as a frame control field, a sequence number, and addressing fields. The frame control field contains basic frame information and has a length of 16 bits. The sequence number is used to distinguish successively transmitted data frames, and the addressing field is used to determine the transmission direction of the data frame, etc.; the length of the payload part is variable, and the specific content is determined by the frame type; the footer may be a 16-bit cyclic redundancy check (CRC) value of the header and the payload data, etc.
[0140] In the embodiments of the present disclosure, the addressing field of the first type of data frame may be determined by the source identifier, and the addressing field of the second type of data frame may be determined by the destination identifier. For example: If the electronic device determines that the data frame is of the first type, then it can be determined that the source identifier 192.168.102.7 or a number with a specific number of bits is written in the addressing field of the data frame. If it is determined that the data frame is of the second type, then it can be determined that the destination identifier 192.168.202.7 or a number with a specific number of bits is written in the addressing field of the data frame, etc. The intelligent device can simply and quickly determine the type or transmission direction of the data frame through the addressing field, which helps to improve the transmission efficiency. The payload part of the first type of data frame may be jointly composed of the device type and control parameters of the transmitting device. For example: If the transmitting device determines that its own device type is a circular double-button switch (which can be marked with a corresponding number D2, etc.) and the control parameter is 01 (that is, the a key is off and the b key is on, etc.), then the transmitting device can write the device type D2 and the control parameter 01 into the payload part of the data frame, etc.
[0141] In the embodiments of the present disclosure, the source identifier can be used to determine the addressing field of the first type of data frame, the destination identifier can be used to determine the addressing field of the second type of data frame, and the device type and control parameters of the transmitting device jointly constitute the payload part of the first type of data frame, which can accurately set the data structure of different types of data frames, refine the data frame types, and reduce the workload of developers, etc.
[0142] In some embodiments, the second type of data frame is jointly composed of the addressing field of the second type of data frame and the payload part of the second type of data frame.
[0143] In the embodiments of the present disclosure, the second type of data frame is at least jointly composed of the address field of the second type of data frame and the payload part of the second type of data frame. For example, the device type of the receiving device is a single-channel receiver, the first type is a basic status query, the first command content is empty, etc., and they are written into the payload part in sequence. After the electronic device determines the address field and the payload part of the second type of data frame, it inserts other parts such as a frame header or a frame tail according to a preset rule to generate a complete second type of data frame. By adopting the above method, the present disclosure can accurately set the data structure of different types of data frames, clarify various information such as the transmission direction and the type of command, improve the transmission efficiency, and save the operating power consumption, etc.
[0144] In some embodiments, the byte length corresponding to the payload part of the second type of data frame is determined by the type of the command.
[0145] In the embodiments of the present disclosure, the byte length corresponding to the payload part of the second type of data frame can be variable, and the byte length can be determined by the type of the command. For example: if the command is a command for data processing, then the byte length corresponding to the payload part of the second type of data frame can be 5 bytes, the byte length corresponding to the device control command can be 7 bytes, the byte length corresponding to the device management command can be 9 bytes, etc. Through the payload parts of the second type of data frames with different byte lengths, the present disclosure can save transmission resources and quickly determine the type of command, etc.
[0146] In some embodiments, when the command is of the first type, the payload part of the second type of data frame is determined by the device type of the receiving device, the first type, and the first command content;
[0147] The first command content is determined by the type of the command.
[0148] In the embodiments of the present disclosure, the first type may refer to a device control command. After obtaining a data frame, it is possible to first determine whether the address field of the data frame is a source identifier or a destination identifier to obtain a determination result, and then determine the corresponding data frame type according to the determination result. By presetting the data type of the data carried by the preset bit in the frame control field of the data frame to determine that the command carried in the data frame is of the first type (i.e., the device control command), and then the first command content (Cmd Date) corresponding to the command of the first type can be determined according to the type (Cmd Type) of the command. When the electronic device determines that the type of the command is a device control command, then the corresponding command content can be determined only depending on the type of the command. For example, the corresponding command content for the basic status query is empty, and for the basic switch control, the corresponding command content is that the first byte represents channel information and the second byte represents switching information, etc. (such as but not limited to Byte 1: Channel, Byte 2: Switch). Then, the electronic device can determine the payload part (Frame Payload) of the second type of data frame according to the device type (Device Type) of the receiving device, the first type (Cmd Type, 1Byte), and the first command content (CmdDate). By setting the first command content to be determined by the type of the command, the present disclosure can accurately determine the corresponding command content, etc.
[0149] In some embodiments, when the command is of the first type and the control parameter of the transmitting device is empty, the payload part of the second type of data frame is determined by the device type of the receiving device and the first type.
[0150] In the embodiments of the present disclosure, when the command is of the first type and the control parameter of the transmitting device is empty, the payload part of the second type of data frame may only need to be determined by the device type of the receiving device and the first type. For example, if the device type of the receiving device is a curtain motor and the first type is a basic status query, then the payload part of the second type of data frame can be jointly determined based on the device type being a curtain motor and the first type being a basic status query. By adopting the above method, the present disclosure can save transmission resources and improve transmission efficiency, etc.
[0151] In some embodiments, when the command is of the second type and the command of the second type has a first attribute, the payload part of the second type of data frame is determined by the device type of the receiving device, the second type, and the second command content;
[0152] The second command content is determined by the type of the command.
[0153] The attributes of a command can refer to the indispensable properties that the command has. For example: encryption attribute and non-encryption attribute, public attribute and private attribute, common attribute and uncommon attribute, etc. In the embodiments of the present disclosure, for commands with different attributes, the determination method of the payload part of the data frame can be different.
[0154] In the embodiments of the present disclosure, the second type can refer to a device management command, which can include: configuring the gesture sensing function and indicator light of a wall switch, or reading the gesture sensing function and indicator light configuration of a wall switch, etc. The first attribute can refer to a public attribute, and the public attribute can be understood as a finite enumeration of general management commands for receiving devices (such as but not limited to switch status, etc.). When the electronic device determines that the device management command has a public attribute, the second command content (Cmd Date) can be determined only by the type of the command (Cmd Type). For example: when the command type is a device management command and has a public attribute, the second command content can be turning on or off the indicator light, etc.
[0155] Then, the electronic device can determine the payload part (Frame Payload) of the second type of data frame according to the device type (Device Type) of the receiving device, the second type (Management Cmd Type), and the second command content (Cmd Data) of the receiving device. For example: the device type of the receiving device is a 3-way wall switch with a gesture sensing function, the second type is to configure the gesture sensing function and indicator light of the wall switch, and the second command content is to turn on the indicator light, etc., and write them into the payload part in sequence. After the electronic device determines the address field and the payload part of the second type of data frame, it inserts other parts such as the frame header or frame tail according to the preset rules to generate a complete second type of data frame.
[0156] In the embodiments of the present disclosure, when the command is of the second type and the command of the second type has the first attribute, the second command content corresponding to the command of the second type can be determined, the payload part of the second type of data frame can be determined according to the device type of the receiving device, the second type, and the second command content, and the second type of data frame can be generated according to the address field and the payload part of the second type of data frame. By adopting the above method, the present disclosure can accurately set the data structure of different types of data frames, clarify various information such as the transmission direction and the type of the command, improve the transmission efficiency, and save the operating power consumption, etc.
[0157] In some embodiments, when the command is of the second type and the command of the second type has the second attribute, the payload part of the second type of data frame is determined by the device type of the receiving device, the second type, and the third command content;
[0158] The third command content is jointly determined by the device type of the receiving device and the type of the command.
[0159] In the embodiments of the present disclosure, the second type may refer to a device management command, which may include: configuring the gesture sensing function and the indicator light of the wall switch, or reading the gesture sensing function and the indicator light configuration of the wall switch, etc. The second attribute may refer to a private attribute, and the private attribute can be understood as a command specific to a certain type of receiving device (such as but not limited to detecting human facial expressions, etc.). When the electronic device determines that the device management command is a private attribute, the third command content (Cmd Date) needs to be jointly determined by the device type (Device Type) of the receiving device and the type of the command (Cmd Type). For example, when the command type is a device management command and has a private attribute, the second command content corresponding to the A device type can all be the sensing distance, and the third command content corresponding to the B device type can all be gesture sensing control, etc.
[0160] Then, the electronic device can determine the payload part (Frame Payload) of the second type of data frame according to the device type (Device Type) of the receiving device, the second type (Management Cmd Type), and the third command content (Cmd Data). For example: when the device type of the receiving device is a dimmable device with a gesture sensing function, the second type is to read the gesture sensing function detected by the dimmable device, and the third command content is to turn on the indicator light, etc., the dimmable device with a gesture sensing function, reading the gesture sensing function detected by the dimmable device, and turning on the indicator light can be written into the payload part in sequence. After the electronic device determines the address field and the payload part of the second type of data frame, it inserts other parts such as the frame header or the frame tail according to a preset rule to generate a complete second type of data frame.
[0161] In the embodiments of the present disclosure, when the command is of the second type and the command of the second type has a second attribute, the third command content corresponding to the command of the second type can be determined according to the device type of the receiving device, the payload part of the second type of data frame can be determined according to the device type of the receiving device, the second type, and the third command content, and the second type of data frame can be generated according to the address field of the second type of data frame and the payload part of the second type of data frame. By adopting the above method, the present disclosure can accurately set the data structure of different types of data frames, clarify various information such as the transmission direction and the type of the command, improve the transmission efficiency, and save the operating power consumption, etc.
[0162] In some embodiments, the method further includes:
[0163] Determine a third type of data frame according to the second type of data frame; wherein, the data types carried by the preset bits in the frame control fields of the third type of data frame, the first type of data frame, and the second type of data frame are different; the third type of data frame includes: an address field and a payload part, and the address field of the third type of data frame is determined by the source identifier; the payload part of the third type of data frame is determined by the device type of the receiving device, the type of the command, and the fourth command content;
[0164] The fourth command content is determined by the device type of the receiving device, or by the type of the command, or jointly by the type of the command and the device type of the receiving device.
[0165] In an embodiment of the present disclosure, an electronic device may determine a third type of data frame according to the second type of data frame. The third type of data frame may carry information such as the external environment detected by the receiving device and the current operating state. The third type of data frame may at least include: an address field and a payload part. The address field of the third type of data frame is determined by the source identifier and can be used to determine the corresponding transmitting device. The payload part of the third type of data frame is determined by the device type of the receiving device, the type of the command, and the fourth command content. The third type of data frame corresponding to the second type of data frame generated in different ways may also be different. For example, when the type of the command is a device control command, the corresponding third type of data frame may be the first type; when the type of the command is a device management command, the corresponding third type of data frame may be the second type; when the device management command has a public attribute, the second type of third type of data frame also has a corresponding public attribute, and when the device management command has a private attribute, the second type of third type of data frame also has a corresponding private attribute, etc.
[0166] For the first type of third type of data frame, the fourth command content may be determined only by the device type of the receiving device; for the second type of third type of data frame with a public attribute, the fourth command content may be determined only by the type of the command; for the second type of third type of data frame with a private attribute, the fourth command content needs to be jointly determined by the type of the command and the device type of the receiving device.
[0167] By adopting the above method, the present disclosure can accurately and timely determine the data transmission status of the clear transmitting device and receiving device, and save the operating power consumption of the electronic device, etc.
[0168] In some embodiments, the frame control field of the second type of data frame carries forwarding information;
[0169] Wherein, the forwarding information is used to trigger the function of the receiving device to forward data to other receiving devices.
[0170] In the embodiments of the present disclosure, the forwarding information may include information such as the number of forwards and the forwarding time interval. The receiving device may have the function of forwarding data, so as to increase the transmission distance of the data frame. For example: The electronic device sends the second type of data frame to the receiving device A at the first position, then the receiving device A may send the second type of data frame to the receiving device B at the second position, and then the receiving device B may send the second type of data frame to the receiving device C at the third position, etc. In the process of forwarding data, receiving devices such as A, B, and C may both execute the corresponding command content and forward, or may only forward without executing the corresponding command content, etc. Receiving devices such as A, B, and C may also perform processing such as filtering the second type of data frame or inserting new information, and then forward, etc., which is not specifically limited in the present disclosure.
[0171] In the process of forwarding, if forwarding is performed infinitely, it will cause the forwarding to not stop or occupy too much frequency band, which will instead affect the transmission performance of the wireless transmission system. Therefore, a definite forwarding stop rule can be set. The electronic device can set ways such as writing the number of forwards into the frame header (FRAME Header) of the data frame. When a certain number of forwards (for example, greater than 2 times) is reached, the forwarding stops. For example: Set the forwarding to stop when it is greater than 2 times. When the receiving device receives the second type of data frame for forwarding, but reads the number of forwards as 3, it stops forwarding to other receiving devices outside, and the receiving device terminates the forwarding process, etc. The receiving device A can update the current number of forwards (Repeater Counter, RC) in the second type of data frame received from the intelligent control center from 0 to 1, and then the receiving device B can update the current number of forwards in the second type of data frame received from the receiving device A from 1 to 2, etc., until the preset number of forwards of 3 times is reached, etc. By adopting the above method, the present disclosure can improve the transmission distance of the data frame, etc.
[0172] In some embodiments, the payload part of the second type of data frame carries channel information;
[0173] wherein, the channel information is used to determine different transmission channels corresponding to different data frames.
[0174] In the embodiments of the present disclosure, the payload part of the second type of data frame carries channel information, and the channel information is used to determine different transmission channels corresponding to different data frames. The electronic device sends the second type of data frame to the receiving device, including: determining a target transmission channel corresponding to the device type according to the device type and a preset mapping relationship; wherein, the mapping relationship is used to represent the association relationship between the device and the transmission channel; sending the second type of data frame to the receiving device through the target transmission channel. For example: if the device type of the transmitting device is a square single-button switch, then the electronic device can transmit the data frame related to the transmitting device through Channel 1; if the device type of the transmitting device is a circular three-button switch, then the electronic device can transmit the data frame related to the transmitting device through Channel 2. By adopting the above method, the present disclosure helps the electronic device to transmit data frames quickly and accurately, avoids the situation of disordered data frame transmission, and improves the transmission efficiency, etc.
[0175] In some embodiments, the data frame carries check information;
[0176] The check information is used for: dividing the data frame into a first part and a second part from a preset position, performing a check on the first part to obtain a first check result corresponding to the first part; performing a check on the second part to obtain a second check result corresponding to the second part, or performing a check on the first part, the first check result, and the second part to obtain the second check result.
[0177] In the embodiments of the present disclosure, a data frame can be verified twice. The verification can refer to Cyclic Redundancy Check (CRC), also known as cyclic code, which is a verification method with error detection and correction capabilities. The verification information can include information such as a verification code. The verification information is used to: divide the data frame into a first part and a second part from a preset position, verify the first part to obtain a first verification result corresponding to the first part; verify the second part to obtain a second verification result corresponding to the second part, or verify the first part, the first verification result, and the second part to obtain the second verification result. For example: if the length of the data frame is 5 bytes, then the electronic device can insert verification information A (verification code A) and verification information B (verification code B) after the 1st byte and the 5th byte respectively. The electronic device can perform the first verification on the 1st byte according to verification information A to obtain a verification result a. The electronic device can perform the second verification on the 2nd - 5th bytes according to verification information B to obtain a verification result b, or the electronic device can perform the second verification on the 1st byte, the 2nd - 5th bytes, and the verification result a together according to verification information B to obtain a verification result b, etc. By adopting the above method, the present disclosure helps to improve the verification efficiency and accuracy, etc.
[0178] In some embodiments, the data frame includes a frame header part, and the frame header part is determined by protocol version information, and the protocol version information is used to determine the data protocol type for data processing.
[0179] In the embodiments of the present disclosure, the second type of data frame includes a frame header part, and the frame header part can be determined by protocol version information, and the protocol version information is used to determine the data protocol type for data processing. For example: the frame header part corresponding to the 433 protocol is 0001, and the frame header part corresponding to the 2.4G protocol is 0010, etc. The information contained in the payload part, etc. of data frames of different protocols can be exchanged with each other. By adopting the above method, the present disclosure helps to improve the generation efficiency of data frames between different protocols, etc.
[0180] In the embodiments of the present disclosure, the device information of the transmitting device and the control information generated by the transmitting device can be obtained; according to the device information and the control information, a first type of data frame is generated; wherein, the first type of data frame includes an address field and a payload part, the first part of the device information constitutes the address field of the first type of data frame, and the second part of the device information and the control information together constitute the payload part of the first type of data frame. By setting the data format of the data frame during the wireless transmission process between the transmitting device and the receiving device, as well as the wireless transmission method between the transmitting device and the receiving device, the present disclosure can improve the transmission efficiency and accuracy of the data frame, and at the same time can reduce the transmission power consumption of the data frame and increase the standby time, etc.
[0181] Reference Figure 6 , Figure 6 is a schematic flowchart of a wireless pairing method in an embodiment of the present invention Figure 3 . This embodiment discloses a wireless pairing method, which is applied to a receiving device. The receiving device can communicate with a terminal through an auxiliary communication device, and the auxiliary communication device can communicate with at least one transmitting device. The method includes:
[0182] Step S601, the receiving device sends second information to the auxiliary communication device. The second information includes information for identifying the receiving device, so that the auxiliary communication device forwards the second information to the terminal, so that: the terminal generates third information based on a selection operation acting on the information for identifying the receiving device and a selection operation acting on the information for identifying the transmitting device;
[0183] Step S602, the receiving device receives the third information sent by the auxiliary communication device; wherein, the third information is sent by the terminal to the auxiliary communication device, and the third information includes information for identifying the transmitting device and information for identifying the receiving device.
[0184] The sending of the second information from the receiving device to the auxiliary communication device in step S601 may include:
[0185] Sending the second information to the auxiliary communication device at a first time interval within a preset time unit.
[0186] In this embodiment, the receiving device may send multiple pieces of second information to the auxiliary communication device at a preset time interval within a preset time unit. The preset time unit may include the power-on moment, or the moment of triggering a preset button, etc. In a possible implementation manner, the receiving device may send the second information to the auxiliary communication device within the preset time unit. To avoid an air collision when multiple receiving devices send the second information, the first time interval may be a random number. For example: using the target identifier of the receiving device itself as the source of the random number, since the target identifiers of each receiving device are different, different time intervals can be generated. It is also possible to use a different identifier burned into the receiving device during program burning as the source of the random number, or to use the data read by an analog-to-digital converter without any input as the random number, etc.
[0187] In another alternative embodiment, in order to ensure that the auxiliary communication device accurately receives the second information, the receiving device may transmit the second information repeatedly for multiple times, such as transmitting the second information repeatedly 3 - 5 times, etc. Each time the receiving device transmits the repeated second information, it may use a preset time interval or a random number. And the generation of this random number may be the same as the generation algorithm of the aforementioned random number, or different calculation methods may be adopted in the program design of the receiving device to ensure that the two generated random numbers are different, so as to better avoid air collisions of data frames, etc. By adopting the above - mentioned method in this embodiment, the diversity of the receiving device transmitting its own second information can be improved, and the matching efficiency can be improved, etc.
[0188] In some embodiments, the sending of the second information of the receiving device to the auxiliary communication device includes:
[0189] Within a preset duration starting from the power - on moment of the receiving device, the second information is sent to the auxiliary communication device at a second time interval.
[0190] In this embodiment, within the preset duration (such as within a seconds) after the receiving device is powered on, the second information is sent to the auxiliary communication device, and the second time interval (such as c seconds) for sending the second information, and the number of the second information repeated within c seconds is d.
[0191] In another embodiment, after the receiving device is powered on, it can be delayed, such as randomly delaying for a preset delay duration (such as b seconds). After reaching b seconds, the number of the second information repeated within c seconds is d. Among them, the second time interval for the receiving device to repeat sending the second information can also be a random number, and the specific random method is not specifically limited. For example: within 60 seconds after the receiving device is powered on, it is randomly delayed for a certain time, and a response data frame is sent for 4 seconds, and 5 repeated second information are sent within 4 seconds, etc. By adopting the above - mentioned method in this embodiment, the diversity of the receiving device transmitting its own second information can be improved, and the matching efficiency can be improved, etc.
[0192] In some embodiments, the sending of the second information of the receiving device to the auxiliary communication device includes:
[0193] When it is detected that the receiving device meets a preset trigger condition, the second information is sent to the auxiliary communication device at a third time interval.
[0194] In this embodiment, the preset trigger condition may include that various function keys on the receiving device are detected to be selected, etc. When the receiving device determines that a certain function key is selected, the second information is sent to the auxiliary communication device at the third time interval. For example, the third time interval for sending the second information is f seconds, and the number of the second information repeated within f seconds is g.
[0195] In another embodiment, after the receiving device determines that a certain function key is selected, a delay can be performed, for example, a random delay of e seconds, and the time length of sending the second information is f seconds, and the number of second information repeatedly sent within f seconds is g. The time interval for the receiving device to repeatedly send the second information can also be a random number, and the specific random method is not specifically limited. For example: within 30 seconds after the receiving device is powered on, a random delay is performed for a certain time, a response data frame of 5 seconds is sent, and 10 repeated second information are repeatedly sent within 5 seconds, etc. By adopting the above method in this embodiment, the diversity of the second information sent by the receiving device itself can be improved, and the matching efficiency can be improved, etc.
[0196] In some embodiments, the sending of the second information of the receiving device to the auxiliary communication device includes:
[0197] When the communication connection between the transmitting device and the receiving device is in a disconnected state, receiving a first trigger instruction sent by the transmitting device; the transmitting device is a transmitting device that has established a connection with the receiving device, or a transmitting device that has not established a connection with the receiving device, or a transmitting device with a preset address;
[0198] In response to the first trigger instruction, sending the second information of the receiving device to the auxiliary communication device at a fourth time interval.
[0199] In this embodiment, for a receiving device that has been paired with a transmitting device, each time it receives a data frame signal from the transmitting device, it sends a corresponding data frame to the auxiliary communication device, and each time m are repeatedly sent, and the time interval for repeated sending is a random number or a preset interval time. When the communication connection between the transmitting device and the receiving device is in a disconnected state, that is, a receiving device that has not been paired with the transmitting device, it can also directly receive the first trigger instruction sent by the transmitting device, and then in response to the first trigger instruction, send the second information of the receiving device to the auxiliary communication device at a preset time interval for matching with the transmitting device. The transmitting device can be a transmitting device that has established a connection with the receiving device, or can be a transmitting device that has not established a connection with the receiving device, or can be a transmitting device with a preset address (that is, a transmitting device with a special address pre-determined), etc. By adopting the above method in this embodiment, the diversity of the second information sent by the receiving device itself can be improved, and the matching efficiency can be improved, etc.
[0200] In some embodiments, the sending of the second information of the receiving device to the auxiliary communication device includes:
[0201] Receiving a query instruction from the auxiliary communication device;
[0202] In response to the query instruction, the second information of the receiving device is sent to the auxiliary communication device at a fifth time interval.
[0203] In this embodiment, the receiving device can receive a query instruction from the auxiliary communication device. In response to the query instruction, the second information of the receiving device is sent to the auxiliary communication device at a preset time interval for matching with the transmitting device, etc. The query instruction can be an instruction for the receiving device to indicate the receiving device to send the second information. By adopting the above method in this embodiment, the diversity of the method for the receiving device to send its own second information can be improved, and the matching efficiency can be improved, etc.
[0204] After the receiving device in step S602 receives the third information sent by the auxiliary communication device, the specific information in the third information can also be stored. For example, a preset data structure can be used to store some or all of the information in the third information, and the data structure can be, for example, a certain list or a part of a list. The third information can include information for identifying the transmitting device and information for identifying the receiving device. The receiving device can only store the identification information of the transmitting device, such as the address identification. The receiving device can also store the identification information of the transmitting device corresponding to the identification information of the receiving device. For example, the key information of the transmitting device is stored corresponding to the channel information of the receiving device to complete the pairing of the transmitting device and the receiving device. In this way, after the pairing of the transmitting device and the receiving device is completed, the subsequent transmitting device can send control information to control the receiving device accordingly.
[0205] In addition, the third information may further include: control action type information; the control action type information is generated by the terminal in response to a selection operation of at least one control action type displayed, and the control action type is used to characterize the control action type of the transmitting device on the receiving device. For example, the control action type may include a first control action type, and the first control action type is used to characterize that the transmitting device controls the receiving device to perform a flipping operation so that the receiving device switches between a first state and a second state. The control action type may further include a second control action type, and the second control action type is used to characterize that the transmitting device controls the receiving device to perform a fixing operation. Among them, the fixing operation may include various types of operations. For example, when the receiving device is a wall switch, the fixing operation may be a fixed on or off operation to control the wall switch to perform a fixed turn-on or turn-off operation. When the receiving device is a controlled device, the fixing operation may be a fixed adjustment operation on the functions of the controlled device; taking the controlled device as an air conditioner as an example, the fixing operation may be a fixed operation of raising or lowering the temperature, etc. For example, subsequently, the receiving device receives the sixth information sent by the transmitting device, and the sixth information includes the identification information of the transmitting device, the identification information of the receiving device, and control information; the receiving device matches the identification information of the transmitting device, the identification information of the receiving device with the information for identifying the transmitting device and the information for identifying the receiving device in the third information; if they match, the receiving device performs the operation pointed to by the control information according to the control action type information in the third information. If they do not match, the information is not processed.
[0206] In an alternative embodiment, the receiving device receives the fourth information sent by the auxiliary communication device, and the fourth information includes the information for identifying the receiving device and the type information of the first functional component that is subjected to a second trigger operation on the terminal; the receiving device responds to the fourth information and turns on or off the corresponding function according to the type information of the first functional component corresponding in the fourth information. Among them, the type of the first functional component includes at least one of a controlled switch type, a relay type, a default output type, or a heartbeat type. Taking the relay type as an example for illustration, the receiving device responds to the relay type information in the fourth information and turns on or off the relay function. When the receiving device turns on the relay function, it forwards the sixth information to other receiving devices. Thus, information relay is realized to extend the transmission distance of the message and improve the control distance of the transmitting device on the receiving device.
[0207] In this embodiment, the receiving device sends second information to the terminal through the auxiliary communication device, and the second information includes information for identifying the receiving device. By displaying the information for identifying the transmitting device and the information for identifying the receiving device on the terminal, in response to a selection operation on the displayed information, third information including the information for identifying the transmitting device and the information for identifying the receiving device is generated, and the third information is sent to the receiving device through the auxiliary communication device, and the receiving device receives the third information to complete pairing. Since the information of the transmitting device and the receiving device to be paired can be displayed on the terminal, the pairing of the transmitting device and the receiving device can be automatically completed after responding to the selection operation on the displayed information, without performing a specific triggering operation to trigger each group of transmitters and receivers to be paired into the learning mode, realizing flexible and convenient pairing.
[0208] Reference Figure 7 , Figure 7 FIG. 4 is a schematic flowchart of a wireless pairing method according to an embodiment of the present invention. This embodiment discloses a wireless pairing method applied to an auxiliary communication device, which can communicate with the terminal, and the auxiliary communication device can also communicate with at least one transmitting device and at least one receiving device; the method includes:
[0209] Step S701, the auxiliary communication device receives first information sent by the transmitting device, and the first information includes information for identifying the transmitting device; the auxiliary communication device receives second information sent by the receiving device, and the second information includes information for identifying the receiving device;
[0210] Step S702, the auxiliary communication device sends the first information and the second information to the terminal, so that: the terminal displays the information for identifying the transmitting device and the information for identifying the receiving device;
[0211] Step S703, after the terminal generates third information in response to a selection operation on the displayed information for identifying the transmitting device and the information for identifying the receiving device, the auxiliary communication device receives the third information sent by the terminal; the third information includes the information for identifying the transmitting device and the information for identifying the receiving device;
[0212] Step S704, the auxiliary communication device sends the third information outward, so that: the receiving device receives the third information.
[0213] In this embodiment, after receiving the message sent by the transmitting device or the receiving device, the auxiliary communication device can directly send the message to the terminal as the first information or the second information, or can preprocess all or part of the information in the message, such as signature, encryption, etc., and then generate the first information or the second information and send it to the terminal. It can also parse the message, extract the information used to identify the transmitting device in the message sent by the transmitting device, and then generate the first information and send it to the terminal, or extract the information used to identify the receiving device in the message sent by the receiving device, and then generate the second information and send it to the terminal. That is, the first information or the second information can be the complete message, or a certain part of the message, or other formatted files processed by the auxiliary communication device. The information format of the message sent by the transmitting device or the receiving device received by the auxiliary communication device can be the same as or different from the information format sent by the auxiliary communication device to the terminal. The information content of the message sent by the transmitting device or the receiving device received by the auxiliary communication device can be the same as or different from the information content sent by the auxiliary communication device to the terminal. As long as the information sent by the transmitting device received by the auxiliary communication device and the information sent by the auxiliary communication device to the terminal both contain the information used to identify the transmitting device, or the information sent by the receiving device received by the auxiliary communication device and the information sent by the auxiliary communication device to the terminal both contain the information used to identify the receiving device, it does not depart from the protection scope of this embodiment.
[0214] After the auxiliary communication device receives the third information sent by the terminal, if the auxiliary communication device and the receiving device transmit information according to the first communication protocol, such as but not limited to the RF 433 protocol or a custom specific communication protocol, in one implementation, the terminal can encapsulate the generated third information according to the first communication protocol to generate a first message. The terminal sends the first message to the auxiliary communication device, and the auxiliary communication device can directly forward the first message without any processing by the auxiliary communication device, that is, the auxiliary communication device performs transparent transmission, reducing the processing resources required to be configured by the auxiliary communication device. In another implementation, the auxiliary communication device can receive the third information sent by the terminal, and the auxiliary communication device performs corresponding data processing, encryption, and encapsulation on the third information into a message conforming to the first communication protocol format and then sends it outwards. Then, in this embodiment, the auxiliary communication device can be used to expand the applicable protocol types of the terminal, enabling the terminal to support multiple custom protocols, such as but not limited to the RF 433 protocol. The auxiliary communication device can also be used to preprocess the information that the terminal needs to receive and send, encapsulate messages, etc., reducing the burden on the terminal and improving the running fluency of the terminal.
[0215] In this embodiment, the third information sent by the terminal to the auxiliary communication device and the third information sent by the auxiliary communication device outward can be the same or different in format and the same or different in content. As long as both contain information for identifying the transmitting device and information for identifying the receiving device, it does not depart from the protection scope of this embodiment. After the receiving device receives the information for identifying the transmitting device and the information for identifying the receiving device in the third information, the pairing of the transmitting device and the receiving device can be completed.
[0216] In an alternative embodiment, the auxiliary communication device includes a wireless communication module, a processing module, and an interface conversion module. The wireless communication module may include a radio frequency chip, at least two antennas, and corresponding peripheral circuits. The wireless communication module can simultaneously meet the functions of sending and receiving radio frequency signals. For example, it can receive the first information sent by the transmitting device based on the radio frequency 433 protocol, the second information sent by the receiving device based on the radio frequency 433 protocol, and can also send the third information generated on the terminal to the receiving device based on the radio frequency 433 protocol. The processing module can preprocess and encapsulate the information received by the auxiliary communication device. For example, it can perform data processing, encryption, and encapsulation of the third information sent by the terminal into a message and then send the message outward by the wireless communication module. Among them, the processing module can use a single-chip microcomputer, such as the STM8S003F3 chip. The interface conversion module is used for interface protocol conversion to make the auxiliary communication device suitable for the terminal interface and realize the communication between the auxiliary communication device and the terminal, such as realizing the data interaction of the first information, the second information, and the third information between the auxiliary communication device and the terminal through the interface conversion module. For example, when the terminal, such as a mobile phone, has a TYPE-C interface, in order to make the auxiliary communication device suitable for the terminal interface, the interface conversion module of the auxiliary communication device may include a USB-to-serial chip CH340 and a TYPE-C interface module.
[0217] In this embodiment, the auxiliary communication device sends the first information and the second information to the terminal. By displaying the information for identifying the transmitting device and the information for identifying the receiving device on the terminal, in response to the selection operation of the displayed information, a third information including the information for identifying the transmitting device and the information for identifying the receiving device is generated, and the third information is sent to the receiving device through the auxiliary communication device, and the receiving device receives the third information to complete the pairing. Since the information of the transmitting device and the receiving device to be paired can be displayed on the terminal, and the pairing of the transmitting device and the receiving device can be automatically completed after responding to the selection operation of the displayed information, there is no need to perform a specific trigger operation to trigger each group of transmitters and receivers to be paired into the learning mode, realizing flexible and convenient pairing.
[0218] The first information received by the auxiliary communication device described in step S701 includes:
[0219] The auxiliary communication device receives the first information sent by the transmitting device when detecting a preset trigger operation. For example, it can receive the first information sent by the transmitting device at regular intervals, when powered on, or when triggering a preset button. The first information can include messages in different formats and with different contents. As long as the first information includes information for identifying the transmitting device, it is not outside the protection scope of this embodiment.
[0220] In an alternative embodiment, the transmitting device may include at least three trigger elements. The at least three trigger elements include at least two combinations of trigger elements. At least one of the trigger elements in any two combinations of trigger elements is different; any one combination of trigger elements corresponds to an output signal; when all the trigger elements in any one combination of trigger elements are triggered and at least one of the remaining combinations of trigger elements is not triggered, the transmitting device outputs the output signal corresponding to the combination of trigger elements where all the trigger elements are pressed.
[0221] In an example, as Figure 8a shown, Figure 8a is a schematic diagram of trigger elements in an embodiment of the present invention Figure 1 . The transmitting device can be a battery switch or a self - generating switch. The transmitting device includes three trigger elements A1, A2, and A3, and includes at least two combinations of trigger elements such as A1A2, A1A3, and may also include the A2A3 trigger element combination. At least one of the trigger elements in the A1A2, A1A3, and A2A3 trigger element combinations is different. It is preset that when the A1A2 trigger element combination is triggered, the first signal is output; when the A1A3 trigger element combination is triggered, the second signal is output; when the A2A3 trigger element combination is triggered, the third signal is output. When it is detected that both trigger elements A1 and A2 in the A1A2 trigger element combination are triggered and trigger element A3 is not triggered, the transmitting device outputs the first signal. When it is detected that both trigger elements A1 and A3 in the A1A3 trigger element combination are triggered and trigger element A2 is not triggered, the transmitting device outputs the second signal. When it is detected that both trigger elements A2 and A3 in the A2A3 trigger element combination are triggered and trigger element A1 is not triggered, the transmitting device outputs the third signal.
[0222] In this embodiment, different signals can be output in response to the control operations of different combinations of trigger elements on the transmitting device, which can enrich the types of output signals of the transmitting device. For example, different first information can be output in response to the control operations of different combinations of trigger elements on the transmitting device and sent to the auxiliary communication device.
[0223] In another example, as Figure 8b shown, Figure 8b is a schematic diagram of a trigger element in an embodiment of the present invention Figure 2 . The transmitting device includes four trigger elements B1, B2, B3, and B4 that are symmetrically arranged; since when a single trigger element is triggered to output a signal, it is easy for the trigger element adjacent to the triggered trigger element to be pressed down by force and be mis-triggered, resulting in a situation of signal output confusion. In this embodiment, among the trigger elements B1, B2, B3, and B4, at least two trigger element combinations are included. For example, two trigger elements can form a trigger element combination, or three trigger elements can form a trigger element combination. Here, the number of trigger elements in the trigger element combination is not limited. In an optional implementation manner, among the trigger elements B1, B2, B3, and B4, two adjacent trigger elements form a trigger element combination, and any one of the trigger element combinations corresponds to an output signal; for example, the trigger elements B1B2 form a trigger element combination, corresponding to the output of the first signal; the trigger elements B2B3 form a trigger element combination, corresponding to the output of the second signal; the trigger elements B3B4 form a trigger element combination, corresponding to the output of the third signal; the trigger elements B4B1 form a trigger element combination, corresponding to the output of the fourth signal. For example, when it is detected that both the trigger elements B1 and B2 in the trigger element combination B1B2 are triggered and the trigger elements B3 and B4 are not triggered, the transmitting device outputs the first signal. When it is detected that both the trigger elements B2 and B3 in the trigger element combination B2B3 are triggered and the trigger elements B1 and B4 are not triggered, the transmitting device outputs the second signal. When it is detected that both the trigger elements B3 and B4 in the trigger element combination B3B4 are triggered and the trigger elements B1 and B2 are not triggered, the transmitting device outputs the third signal. When it is detected that both the trigger elements B4 and B1 in the trigger element combination B4B1 are triggered and the trigger elements B2 and B3 are not triggered, the transmitting device outputs the fourth signal.
[0224] In this embodiment, when all the trigger elements in any one of the trigger combinations are triggered and at least one of the remaining trigger combinations includes an untriggered trigger element, the transmitting device will output the output signal corresponding to the trigger combination, which can effectively avoid the situation of signal output confusion caused by misoperation of the trigger element.
[0225] For a specific implementation manner in the above example, the description is as follows:
[0226] As Figure 9a , Figure 9b shown, Figure 9a is a schematic diagram of the structure of a self-powered switch in an embodiment of the present inventionFigure 1 , Figure 9b is a schematic structure of a self - generating switch in an embodiment of the present invention Figure 2 .
[0227] The transmitting device is a self - generating switch, including:
[0228] A housing 91, which has an accommodation space inside and includes a top cover 92; the top cover 92 is arranged to be adapted to displace in response to an external manipulation;
[0229] A generator 93, which is arranged in the accommodation space and is arranged to convert mechanical energy into electrical energy at least once in response to the displacement;
[0230] A circuit board 94, which is arranged in the accommodation space, is electrically connected to the generator 93, and is arranged to receive the electrical energy and then power on to enter the working state.
[0231] Wherein, a trigger element is arranged on the circuit board 94; in combination with the above example, the trigger element may include four, such as B1, B2, B3, B4, and the positional distribution relationship of the four trigger elements can refer to the above example. In a specific embodiment, the trigger element is implemented as a micro - switch.
[0232] Further, the housing 91 includes a bottom case 911; the bottom case 911 has a concave cavity with an upward opening, and the top cover 92 is movably and detachably disposed on the opening side of the bottom case 911, so as to form the accommodating space between the bottom case 911 and the top cover 92. In an example, the top cover 92 and the bottom case 911 are movably connected by a buckle, and the top cover 92 can move up and down along the direction of the buckle on the bottom case 911. A first operation part 921 is disposed on one side of the top cover 92 facing the concave cavity, and the number and position of the first operation part 921 correspond to those of the trigger element. In use, the first operation part 921 can move up and down along the direction of the buckle on the bottom case 911 in response to an external manipulation force of an operating body, so that the top cover 92 moves from a first position to a second position under the action of external manipulation; when the top cover 92 is in the second position state, the first operation part 921 disposed on the top cover 92 can trigger the corresponding trigger element, so that the triggered operation element generates a trigger signal and transmits it to the circuit board 94. A communication circuit for processing and transmitting signals is disposed on the circuit board 94, and the communication circuit generates a message according to the trigger signal according to a preset communication protocol, and then transmits the message. Wherein, the first position is the position where the top cover 92 is not pressed, or in other words, it is the original position of the top cover 92. The generator 93 includes an elastic flap (not shown in the figure), and the elastic flap can be driven to trigger the generator 93 to generate electric energy; the transmitting device further includes a reset member 95, and the reset member 95 is disposed between the elastic flap and the bottom case 911; a second operation part 922 is disposed on one side of the top cover 92 facing the concave cavity, and the position of the second operation part is adapted to the position of the elastic flap. When the top cover 92 is in the second position state, the second operation part 922 can trigger the generator 93 to generate electric energy by pressing the elastic flap; the reset member 95 can generate a reset acting force on the elastic flap when the manipulation force pressing the top cover 92 is removed, so as to drive the top cover 92 to reset from the second position to the first position state.
[0233] Referring to Figure 10 , Figure 10 is a wireless pairing device frame shown in an embodiment of the present invention Figure 1 . The wireless pairing device 10 is applied to a terminal, and the terminal can be connected to an auxiliary communication device, and the auxiliary communication device can communicate with at least one receiving device; the wireless pairing device includes:
[0234] A first receiving module 101, configured to receive first information and second information; the first information includes information for identifying a transmitting device, and the second information includes information for identifying the receiving device;
[0235] The first display module 102 is configured to display information for identifying the transmitting device and information for identifying the receiving device;
[0236] The first generation module 103 is configured to generate third information in response to a selection operation on the displayed information for identifying the transmitting device and the information for identifying the receiving device, where the third information includes the information for identifying the transmitting device and the information for identifying the receiving device;
[0237] The first sending module 104 is configured to send the third information to the auxiliary communication device, so that: the auxiliary communication device sends the third information outward, and the receiving device receives the third information.
[0238] Refer to Figure 11 , Figure 11 is a block diagram of a wireless pairing device shown in an embodiment of the present invention Figure 2 . The wireless pairing device 11 is applied to a terminal, and the terminal can communicate with at least one receiving device; the wireless pairing device includes:
[0239] The second receiving module 111 is configured to receive first information and second information; the first information includes information for identifying a transmitting device, and the second information includes information for identifying the receiving device;
[0240] The second display module 112 is configured to display information for identifying the transmitting device and information for identifying the receiving device;
[0241] The second generation module 113 is configured to generate third information in response to a selection operation on the displayed information for identifying the transmitting device and the information for identifying the receiving device, where the third information includes the information for identifying the transmitting device and the information for identifying the receiving device;
[0242] The second sending module 114 is configured to send the third information outward, so that: the receiving device receives the third information.
[0243] Refer to Figure 12 , Figure 12 is a block diagram of a wireless pairing device shown in an embodiment of the present invention Figure 3 . The wireless pairing device 12 is applied to a receiving device, and the receiving device can communicate with the terminal through an auxiliary communication device, and the auxiliary communication device can communicate with at least one transmitting device; the wireless pairing device includes:
[0244] A third sending module 121, configured to send second information to the auxiliary communication device, where the second information includes information for identifying the receiving device, so that the auxiliary communication device forwards the second information to the terminal, so that: the terminal generates third information based on a selection operation acting on the information for identifying the receiving device and a selection operation acting on the information for identifying the transmitting device;
[0245] A third receiving module 122, configured to receive the third information sent by the auxiliary communication device; where the third information is sent by the terminal to the auxiliary communication device, and the third information includes information for identifying the transmitting device and information for identifying the receiving device.
[0246] Refer to Figure 13 , Figure 13 FIG. is a block diagram IV of a wireless pairing device shown in an embodiment of the present invention. The wireless pairing device 13 is applied to an auxiliary communication device, the auxiliary communication device can communicate with the terminal, and the auxiliary communication device can also communicate with at least one transmitting device and at least one receiving device; the wireless pairing device includes:
[0247] A fourth receiving module 131, configured to receive first information sent by the transmitting device, where the first information includes information for identifying the transmitting device; the auxiliary communication device receives second information sent by the receiving device, where the second information includes information for identifying the receiving device;
[0248] A fourth sending module 132, configured to send the first information and the second information to the terminal, so that: the terminal displays the information for identifying the transmitting device and the information for identifying the receiving device;
[0249] A fifth receiving module 133, configured to receive the third information sent by the terminal after the terminal generates the third information in response to a selection operation on the displayed information for identifying the transmitting device and the information for identifying the receiving device; the third information includes information for identifying the transmitting device and information for identifying the receiving device;
[0250] A fifth sending module 134, configured to send the third information outward, so that: the receiving device receives the third information.
[0251] The functions or operation steps realized when the above program modules are executed are substantially the same as those in the above embodiments, and will not be described in detail here.
[0252] Please refer to Figure 14 , Figure 14It is a schematic structural diagram of an electronic device in an embodiment of the present invention. This embodiment provides an electronic device 14 (i.e., a wireless pairing device), including:
[0253] a processor 141; and,
[0254] a memory 142 for storing programs of the processor;
[0255] wherein, the processor 141 is configured to execute the steps of the methods involved above by executing the programs.
[0256] The processor 142 can communicate with the memory 142 through a bus 143.
[0257] This embodiment also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the methods involved above are implemented.
[0258] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above method embodiments; and the foregoing storage medium includes: various media such as ROM, RAM, magnetic disks, or optical discs that can store program codes.
[0259] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A wireless pairing method, applied to a receiving device, characterized in that, The receiving device can communicate with the terminal through an auxiliary communication device, and the auxiliary communication device can communicate with at least one transmitting device; the method includes: The receiving device sends second information to the auxiliary communication device, and the second information includes information for identifying the receiving device, so that the auxiliary communication device forwards the second information to the terminal, so that: the terminal generates third information based on a selection operation acting on the information for identifying the receiving device and a selection operation acting on the information for identifying the transmitting device; The receiving device receives the third information sent by the auxiliary communication device; wherein, the third information is sent by the terminal to the auxiliary communication device, and the third information includes information for identifying the transmitting device and information for identifying the receiving device.
2. The wireless pairing method according to claim 1, wherein The receiving device sending the second information to the auxiliary communication device includes: Within a preset time unit, sending the second information to the auxiliary communication device at a first time interval; Within a preset duration starting from the power-on moment of the receiving device, sending the second information to the auxiliary communication device at a second time interval; or, When it is detected that the receiving device meets a preset trigger condition, sending the second information to the auxiliary communication device at a third time interval.
3. The wireless pairing method according to claim 1, wherein The receiving device sending the second information to the auxiliary communication device includes: When the communication connection between the transmitting device and the receiving device is in a disconnected state, receiving a first trigger instruction sent by the transmitting device; the transmitting device is a transmitting device that has established a connection with the receiving device, or a transmitting device that has not established a connection with the receiving device, or a transmitting device with a preset address; In response to the first trigger instruction, sending the second information of the receiving device to the auxiliary communication device at a fourth time interval.
4. The wireless pairing method according to claim 1, wherein The receiving device sending the second information to the auxiliary communication device includes: Receiving a query instruction from the auxiliary communication device; In response to the query instruction, sending the second information of the receiving device to the auxiliary communication device at a fifth time interval.
5. A wireless pairing method, applied to an auxiliary communication device, characterized in that, The auxiliary communication device can communicate with the terminal, and the auxiliary communication device can also communicate with at least one transmitting device and at least one receiving device; the method includes: The auxiliary communication device receives first information sent by the transmitting device, and the first information includes information for identifying the transmitting device; the auxiliary communication device receives second information sent by the receiving device, and the second information includes information for identifying the receiving device; The auxiliary communication device sends the first information and the second information to the terminal, so that: the terminal displays the information for identifying the transmitting device and the information for identifying the receiving device; After the terminal generates third information in response to a selection operation on the displayed information for identifying the transmitting device and the information for identifying the receiving device, the auxiliary communication device receives the third information sent by the terminal; the third information includes the information for identifying the transmitting device and the information for identifying the receiving device. The auxiliary communication device transmits the third information outward so that: the receiving device receives the third information.
6. The wireless pairing method according to claim 5, wherein The third information further includes: control action type information; the control action type information is generated by the terminal in response to a selection operation on at least one displayed control action type, and the control action type is used to characterize the control action type of the transmitting device on the receiving device.
7. The wireless pairing method according to claim 5 or 6, characterized in that, The method further includes: The auxiliary communication device encapsulates the third information according to a first communication protocol to generate a first message. The auxiliary communication device sending the third information to the receiving device includes: the auxiliary communication device sending the first message to the receiving device. Wherein, information is transmitted between the auxiliary communication device and the receiving device according to the first communication protocol.
8. The wireless pairing method according to claim 5, wherein The auxiliary communication device receiving the first information sent by the transmitting device includes: The auxiliary communication device receives the first information sent by the transmitting device when detecting a preset trigger operation.
9. The wireless pairing method according to claim 5, wherein The transmitting device includes at least three trigger elements, the at least three trigger elements include at least two trigger element combinations, and at least one different trigger element is included in any two trigger element combinations; any one trigger element combination corresponds to an output signal. When all the trigger elements in any one trigger element combination are triggered and at least one of the remaining trigger element combinations includes at least one untriggered trigger element, the transmitting device outputs the output signal corresponding to the trigger element combination in which all the trigger elements are triggered.
10. A wireless pairing device, characterized in that, Includes: A processor; A memory configured to store processor-executable instructions; Wherein, the processor is configured to: when executed, implement the steps in any one of the wireless pairing methods in claims 1 to 9 above.