Green energy equipment pairing method and device, equipment and program product

By using NFC modules and smart devices to read pairing information in green energy equipment, the time-consuming and labor-intensive pairing process in the existing technology is solved, and the effect of simplifying pairing and improving user experience is achieved.

CN120018318APending Publication Date: 2025-05-16SHENZHEN SUNRICHER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510117261.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-23
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

The pairing process of green energy equipment in the prior art is time-consuming and laborious, reducing the user experience.

Method used

By configuring the first NFC module in the green energy device, the intelligent device can read and send pairing information to the green energy receiving device, so that it simulates the pairing process and completes the pairing of the device.

Benefits of technology

Simplifies the pairing process, saves time and effort, improves user experience, and eliminates the need to manually switch Zigbee channels.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120018318A_ABST
    Figure CN120018318A_ABST
Patent Text Reader

Abstract

The invention relates to the field of Internet of Things communication, in particular to a green energy equipment pairing method and device, equipment and a program product. The green energy device comprises a first NFC module, pairing information of the green energy device is stored in the first NFC module, and the method comprises the steps that the intelligent device reads the pairing information in the first NFC module; and the intelligent device sends the pairing information to the green energy receiving device, so that the green energy receiving device simulates a pairing process according to the pairing information, and pairing of the green energy receiving device and the green energy device is completed. According to the method, in the green energy equipment pairing process, pairing can be completed without manually switching a Zigbee channel, time and labor are saved, the pairing convenience is greatly improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet of Things communications, and in particular to a pairing method, device, equipment and program product for green energy devices. Background Art

[0002] Zigbee Green Power is an open technology standard that aims to achieve ultra-low power or battery-free IoT communications. This technology standard compresses IoT communication data and uses the reliable transmission capabilities of the Zigbee mesh network to transmit data to the target device, and the transmission distance can even far exceed the coverage of ultra-low power devices or passive devices themselves. Green Power devices (Green Power Device in English, GPD in English, and Green Energy Device in Chinese) can be switch-type devices used to control devices such as lights. GPD only requires a very small amount of energy to complete message transmission. This energy can come from batteries or be obtained in other ways, such as through energy capture (when the user presses the switch button, mechanical energy is converted into electrical energy). Therefore, GPD is also called a "mechanical energy switch", and this type of GPD can operate stably for a long time without batteries.

[0003] Since the technical standard of Zigbee Green Power is mainly designed for ultra-low power devices, GPD usually does not have a battery and can only send data but not receive data. Before using GPD (Green Power sending device, such as a switch), it needs to be paired with Green Power Sink Device (GPS in English, green energy receiving device in Chinese, including devices such as lights and Zigbee gateways). The pairing process usually requires operating the GPD according to the instructions of the device manufacturer, such as pressing and holding two buttons for 10 seconds to send a data frame called "Commissioning" to a channel on the Zigbee network. If the Zigbee channel used by the GPS is consistent with the channel on which the GPD currently sends data frames, the GPS device can receive the data frame and save the information of the GPD device, thereby completing the pairing of the GPS and GPD.

[0004] However, the Zigbee network has a total of 16 channels (channels 11 to 26), and one of the channels needs to be specified when creating a network. GPD can usually only send data and cannot predict the channel of the Zigbee network. Therefore, when GPD sends the Commissioning data frame, it will send it to a default channel. If the GPS does not receive the Commissioning data frame of the GPD device, the user needs to manually operate the GPD to switch to the next channel according to the manufacturer's instructions, and then try to send the data packet again until the pairing is successful, making the pairing process time-consuming and labor-intensive, greatly reducing the user experience and bringing many inconveniences to actual use. Summary of the invention

[0005] In view of this, the embodiments of the present application provide a pairing method, apparatus, device and program product for green energy devices to solve the problem that pairing in the prior art is time-consuming and labor-intensive, which greatly reduces the user experience.

[0006] A first aspect of an embodiment of the present application provides a pairing method for a green energy device, wherein the green energy device includes a first NFC module, and the pairing information of the green energy device is stored in the first NFC module. The method includes:

[0007] The smart device reads the pairing information in the first NFC module;

[0008] The smart device sends the pairing information to the green energy receiving device, so that the green energy receiving device simulates a pairing process according to the pairing information to complete the pairing of the green energy receiving device with the green energy device.

[0009] In combination with the first aspect, in a first possible implementation manner of the first aspect, the green energy receiving device is a Zigbee terminal device, the Zigbee terminal device includes a second NFC module, and the pairing information includes a first channel currently used by the green energy device, a MAC address of the green energy device, a key of the green energy device, and an output count value of the green energy device;

[0010] The smart device sends the pairing information to the green energy receiving device, so that the green energy receiving device simulates the pairing process according to the pairing information to complete the pairing of the green energy receiving device and the green energy device, including:

[0011] The smart device writes the pairing information into the second NFC module and reinitializes the Zigbee terminal device, so that the Zigbee terminal device obtains the pairing information from the second NFC module, configures the Zigbee terminal device to receive data through the first channel, and simulates the pairing process according to the MAC address of the green energy device, the key of the green energy device and the output count value of the green energy device to complete the pairing of the green energy receiving device and the green energy device.

[0012] In combination with the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, before the smart device reads the pairing information in the first NFC module, the method further includes:

[0013] The green energy device writes the currently used first channel, the MAC address of the green energy device, the key of the green energy device and the output count value of the green energy device into the first NFC module, and monitors the change information of the output count value of the green energy device. When the output count value of the green energy device changes, the output count value is updated to the first NFC module.

[0014] In combination with the first aspect, in a third possible implementation manner of the first aspect, the green energy receiving device includes a Zigbee gateway device;

[0015] Before the smart device reads the pairing information in the first NFC module, the method further includes:

[0016] The smart device reads a second channel currently used by the Zigbee gateway device from the Zigbee gateway device;

[0017] The smart device writes the second channel into the first NFC module, so that the green energy device sends a command according to the second channel stored in the first NFC module.

[0018] In combination with the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the smart device reading the pairing information in the first NFC module includes:

[0019] The smart device reads the MAC address of the green energy device, the key of the green energy device, and the output count value of the green energy device included in the first NFC module;

[0020] The smart device sends the pairing information to the green energy receiving device, so that the green energy receiving device simulates a pairing process according to the pairing information to complete the pairing of the green energy receiving device and the green energy device, including:

[0021] The smart device sends the MAC address of the green energy device, the key of the green energy device and the output count value of the green energy device to the Zigbee gateway device, so that the Zigbee gateway device simulates the pairing process according to the MAC address of the green energy device, the key of the green energy device and the output count value of the green energy device to complete the pairing of the green energy receiving device with the green energy device.

[0022] In combination with the first possible implementation manner or the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, simulating a pairing process according to a MAC address of the green energy device, a key of the green energy device, and an output count value of the green energy device to complete pairing of the green energy receiving device with the green energy device includes:

[0023] The green energy receiving device encapsulates the MAC address of the green energy device, the key of the green energy device and the output count value of the green energy device into a predetermined structure;

[0024] The structure is paired and debugged through a predetermined pairing function, and after the pairing and debugging is completed, the pairing of the green energy receiving device and the green energy device is completed.

[0025] In combination with any one of the first aspect to the fourth possible implementation manner of the first aspect, in a sixth possible implementation manner of the first aspect, after the smart device sends the pairing information to the green energy receiving device, the method further includes:

[0026] After detecting that the green energy receiving device completes the simulated pairing process, the pairing information is sent to the green energy proxy device.

[0027] A second aspect of an embodiment of the present application provides a pairing device for a green energy device, wherein the green energy device includes a first NFC module, and the pairing information of the green energy device is stored in the first NFC module. The device includes:

[0028] A pairing information reading unit, configured to read the pairing information in the first NFC module by a smart device;

[0029] The pairing simulation unit is used for the smart device to send the pairing information to the green energy receiving device, so that the green energy receiving device simulates the pairing process according to the pairing information to complete the pairing of the green energy receiving device and the green energy device.

[0030] A third aspect of an embodiment of the present application provides a pairing device for a green energy device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the pairing device for the green energy device implements a method as described in any one of the first aspects.

[0031] A fourth aspect of the embodiments of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the method in the first aspect or its various implementations.

[0032] A fifth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in any one of the first aspects are implemented.

[0033] The sixth aspect of the embodiment of the present application provides a chip for implementing the methods in each implementation of the first aspect. Specifically, the chip includes: a processor for calling and running a computer program from a memory, so that a device equipped with the chip executes the method in the first aspect or its implementation.

[0034] Compared with the prior art, the beneficial effect of the embodiment of the present application is as follows: by configuring the first NFC module in the green energy device to be paired, the embodiment of the present application can read the pairing information pre-stored in the first NFC module in the green energy device through the smart device, and send the pairing information to the green energy receiving device, so that the green energy receiving device can complete the pairing of the green energy device and the green energy receiving device based on the pairing process of the pairing information module, so that during the pairing process of the green energy device, the pairing can be completed without manually switching the Zigbee channel, which saves time and effort, greatly improves the convenience of pairing, and is conducive to improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0036] Figure 1It is a schematic diagram of an implementation scenario of a green energy device pairing method provided in an embodiment of the present application;

[0037] Figure 2 It is a schematic diagram of the implementation process of a green energy device pairing method provided in an embodiment of the present application;

[0038] Figure 3 This is a schematic diagram of a pairing implementation scenario of a green energy device and a Zigbee terminal device provided in an embodiment of the present application;

[0039] Figure 4 This is a schematic diagram of a pairing implementation scenario of a green energy device and a Zigbee gateway device provided in an embodiment of the present application;

[0040] Figure 5 This is a schematic diagram of a pairing process between a green energy device and a Zigbee gateway device provided in an embodiment of the present application;

[0041] Figure 6 This is a schematic diagram of a pairing process between a green energy device and a Zigbee terminal device provided in an embodiment of the present application;

[0042] Figure 7 is a schematic diagram of a pairing device for green energy equipment provided in an embodiment of the present application;

[0043] Figure 8 It is a schematic diagram of a pairing device of a green energy device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0044] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0045] In order to illustrate the technical solution described in this application, a specific embodiment is provided below for illustration.

[0046] The following is an introduction to the relevant concepts involved in the embodiments of the present application.

[0047] GPD: The full name in English is Green Power Device, and the full name in Chinese is Green Energy Device. GPD is a low-power device for collecting information (such as a light switch). GPD can be used to send the collected information to GPS through Green Power data.

[0048] GPP: The full name in English is Green Power Proxy, and the full name in Chinese is Green Power Proxy Device. GPP is a Green Power proxy device that supports both Zigbee3.0 standard network functions and Green Power data frames. GPP can forward the Green Power data of GPD to the target device.

[0049] GPS: The full name in English is Green Power Sink, and the full name in Chinese is Green Energy Receiving Device or GreenPower Receiving Device, including devices such as lights. GPS has the ability to receive, process and send all Green Power data, and also has the network function of Zigbee standard.

[0050] When the GPD and GPS are paired and communicating, the GPD needs to send a data frame called "Commissioning" to a Zigbee channel of the Zigbee network. If the Zigbee channel used by the GPS device is consistent with the channel that the GPD device currently sends data frames, the GPS device can receive the data frame and save the information of the GPD device, thereby completing the pairing of the GPD and GPS.

[0051] However, if the Zigbee channel used by the GPS device is inconsistent with the channel that the GPD device currently sends data frames, the channel currently used by the GPD needs to be adjusted. Since GPD usually does not have signal feedback devices such as indicator lights or screens, users can only try repeatedly by switching channels, which makes the pairing process more troublesome and is not conducive to improving pairing efficiency.

[0052] To solve the above problems, the present application proposes a pairing method for green energy devices. Figure 1 This is a schematic diagram of an implementation scenario of the method, which includes a green energy device GPD, a smart device and a green energy receiving device GPS, wherein a first NFC module is provided in the green energy device GPD.

[0053] The green energy device GPD can be a switch or other device, the green energy receiving device GPS can be a lamp or other electrical device, and the green energy receiving device GPS can also be a Zigbee gateway device, etc. The Zigbee gateway device includes a Zigbee coordinator, etc.

[0054] During the pairing process, the smart device can read the pairing information through the first NFC module and send the read pairing information to the green energy receiving device GPS, so that the green energy receiving device GPS can execute the module pairing process based on the pairing information to complete the pairing of GPD and GPS.

[0055] Figure 2A schematic diagram of a green energy device pairing method provided in an embodiment of the present application is described in detail as follows:

[0056] In S201, the smart device reads pairing information in the first NFC module.

[0057] The smart device in the embodiment of the present application may include devices such as smart phones, tablet computers, etc. An application for pairing green energy devices may be installed in the smart device, so that staff or users can conveniently use the smart device to pair the green energy device GPD with the green energy receiving device GPS, including pairing switches and lights.

[0058] When using a smart device to read the pairing information in the first NFC module, the smart device can be brought close to the green energy device GPD, so that the NFC module in the smart device can read the pairing information stored in the first NFC module in the green energy device GPD through near field communication.

[0059] Depending on the type of the green energy receiving device GPS that is paired with the green energy device GPD, the pairing information may also be different. Figure 3 In the pairing scenario diagram shown, when the green energy receiving device GPS is a Zigbee terminal device, the Zigbee terminal device includes a second NFC module. The pairing information may include the first channel currently used by the green energy device, the MAC address of the green energy device, the key of the green energy device, and the output count value of the green energy device. The Zigbee terminal device includes, for example, a lamp controlled by the Zigbee communication protocol.

[0060] The MAC address of the green energy device is used to uniquely identify the green energy device GPD.

[0061] The key of the green energy device (GPD Key) is used to ensure the secure connection and communication of the device. The key can be used to perform security verification on the green energy device. Only after the key security verification is passed can the pairing with the green energy device GPD be completed to receive the Zigbee data of the green energy device GPD.

[0062] The output count value (GPD Outgoing Conter) of the green energy device is a data verification identifier added to ensure communication security. Every time the GPD sends a command packet, the output count value GPD Outgoing Conter will be increased by 1. When the Zigbee network receives a command packet from the GPD, it will check the value of GPD Outgoing Conter in the command packet. If the currently received output count value is lower than the value of the previous command packet, the currently received command packet will be discarded and not processed. GPDOutgoing Conter can be a 4-byte unsigned integer, starting from 0 by default, so it can be ensured that there will be no duplication throughout the service life of the GPD device.

[0063] When the green energy device leaves the factory, the key of the green energy device, the channel currently used by the green energy device, the output count value of the green energy device and the MAC address of the green energy device can be stored in the first NFC module, which can facilitate the smart device to read the pairing information.

[0064] After the green energy device is used, if it is monitored that the currently used channel and the output count value of the green energy device have changed, the changed currently used channel and the output count value of the green energy device will be automatically updated to the first NFC module, so that the pairing information can be accurately read by the smart device during the pairing process, and the read pairing information is written into the second NFC module in the Zigbee terminal device, thereby effectively completing the pairing of the green energy device.

[0065] When the green energy receiving device GPS is a Zigbee gateway device, such as Figure 4 In the pairing scenario diagram shown, the pairing information may include a MAC address of the green energy device, a key of the green energy device, and an output count value of the green energy device.

[0066] In the embodiment of the present application, each green energy device GPD can be paired with one or more green energy receiving devices GPS, and each green energy receiving device can be paired with one or more green energy devices GPD.

[0067] When the green energy device GPD is paired with the Zigbee gateway device, the second channel currently used by the Zigbee gateway device is fixed, and the channel used by the green energy device GPD can be adjusted. In this case, the smart device can first read the second channel currently used by the Zigbee gateway device from the Zigbee gateway device. The smart device writes the second channel read from the Zigbee gateway device into the first NFC module. After the second channel is written into the first NFC module, the green energy device GPD can send commands according to the second channel stored in the first NFC module, that is, send commands on the second channel.

[0068] In S202, the smart device sends the pairing information to the green energy receiving device, so that the green energy receiving device simulates a pairing process according to the pairing information to complete the pairing of the green energy receiving device with the green energy device.

[0069] In general, during the pairing process between the green energy device GPD and the green energy receiving device GPS, the GPD sends commissioning data to the green energy receiving device GPS for pairing. The embodiment of the present application changes the data format of the pairing and forwards the pairing information through the smart device, including forwarding the MAC address of the green energy device, the key of the green energy device, and the output count value of the green energy device (GPS is a Zigbee gateway device), or forwarding the first channel currently used by the green energy device, the MAC address of the green energy device, the key of the green energy device, and the output count value of the green energy device (GPS is a Zigbee terminal device).

[0070] When the green energy receiving device includes a Zigbee gateway device, since the smart device has written the second channel currently used by the Zigbee gateway device into the first NFC module in the green energy device, and the green energy device GPD sends commands according to the second channel of the first NFC module, the pairing information forwarded by the smart device may not require the second channel currently used by the smart device, so that the green energy device GPD and the Zigbee gateway device can communicate using the same channel.

[0071] After the Zigbee gateway device receives the pairing information, it can encapsulate the MAC address of the green energy device, the key of the green energy device, and the output count value of the green energy device into a predetermined structure, and call a predetermined function for pairing debugging, such as calling the doGPDParing function for pairing debugging to simulate the pairing process of the Zigbee gateway device. When the Zigbee gateway device outputs the pairing completion information, it can send a pairing completion prompt to the smart device. At this time, the staff can test whether the green energy device GPD can normally control the Zigbee terminal device in the Zigbee network according to the prompt information (pairing completion prompt information).

[0072] When the green energy receiving device is a Zigbee terminal device, the smart device can write the pairing information such as the first channel currently used by the green energy device GPD, the MAC address of the green energy device, the key of the green energy device and the output count value of the green energy device into the second NFC module in the Zigbee terminal device by approaching the Zigbee terminal device, so that the Zigbee terminal device can configure the Zigbee terminal device to use the first channel for command reception according to the first channel in the pairing information in the second NFC module.

[0073] For example, the Zigbee terminal device can read the pairing information from the second NFC module through reinitialization, including power-off restart, and receive commands according to the first channel in the pairing information, and simulate the pairing process according to the pairing information.

[0074] Similar to the way the Zigbee gateway device performs the model pairing process, the Zigbee terminal device can also encapsulate the received pairing information, including the MAC address of the green energy device, the key of the green energy device, and the output count value of the green energy device into a predetermined structure, and call a predetermined function for pairing debugging, such as calling the doGPDParing function for pairing debugging to simulate the pairing process of the Zigbee terminal device. When the Zigbee terminal device outputs the pairing completion information, the pairing completion flag can be updated to the second NFC module, so that the smart device can obtain the pairing prompt information by reading the information in the second NFC module. At this time, the staff can test whether the green energy device GPD can control the Zigbee terminal device normally according to the prompt information (pairing completion prompt information).

[0075] In the embodiment of the present application, during the communication between GPD and GPS, it is usually necessary to forward data frames with the help of GPP. When GPD needs to be paired, it will send a commissioning data frame to a certain channel of Zigbee, and the GPP on the Zigbee channel will forward it to GPS. After GPS receives it, it will save the information, and GPP will also save the information, completing the entire pairing process. In order to complete the pairing of GPP, the embodiment of the present application can also detect through the smart device that the green energy receiving device completes the simulated pairing process, and then send the pairing information to the green energy proxy device, so that the green energy proxy device GPP saves the pairing information and completes the entire pairing process.

[0076] Figure 5 A schematic diagram of the implementation process of pairing a green energy device with a Zigbee gateway device provided in an embodiment of the present application is described in detail as follows:

[0077] 1. Connect the smart device to the Zigbee gateway device.

[0078] 2. The smart device reads the second channel currently used by the Zigbee gateway device from the Zigbee gateway device;

[0079] 3. The smart device approaches the green energy device and writes the second channel currently used by the Zigbee gateway device into the first NFC module of the green energy device. At this time, the green energy device may be in an unpowered state.

[0080] 4. Read the pairing information of the green energy device GPD, such as the MAC address, GPD Key and output count value, from the first NFC module of the green energy device.

[0081] 5. Through the communication interface between the smart device and the Zigbee gateway device, the pairing information such as the GPD MAC address, GPD Key and output count value is sent to the Zigbee gateway device.

[0082] 6. The Zigbee gateway device receives the MAC address, GPD Key and output count value of the GPD, simulates the pairing process, and completes the pairing with the Green Power device.

[0083] Subsequently, whenever the green energy device sends a green energy data frame, it will read the second channel value (i.e., the channel currently being used by the Zigbee gateway device) from the first NFC module, and send the data frame to the second channel to achieve communication between the green energy device and the Zigbee gateway device.

[0084] Figure 6A schematic diagram of the implementation process of pairing a green energy device with a Zigbee terminal device provided in an embodiment of the present application is described in detail as follows:

[0085] 1. The smart device is close to the green energy device and reads the Zigbee channel currently being used by the green energy device, the MAC address of the GPD, the GPD Key and the output count value from the first NFC module of the green energy device.

[0086] 2. When the smart device is close to the Zigbee terminal device (the Zigbee terminal device in the embodiment of the present application is provided with a second NFC module), the smart device reads the Zigbee channel, the MAC address of the GPD, the Key and the output count value from the first NFC module of the green energy device and writes them into the second NFC module of the Zigbee terminal device. When the smart device writes the read pairing information into the second NFC module, the Zigbee terminal device may be in an unpowered state.

[0087] 3. When the Zigbee terminal device is reinitialized, such as powering off and restarting, the Zigbee terminal device will obtain the Zigbee channel, GPD MAC address, GDP Key and output count value of the paired green energy device from its second NFC module, and the Zigbee terminal device will work on the Zigbee channel (first channel) (make sure that the Zigbee terminal device and the green energy device work on the same Zigbee channel, otherwise the data frame from the green energy device cannot be received).

[0088] 4. Simulate the pairing process to complete the pairing of Zigbee terminal devices and green energy devices.

[0089] The embodiment of the present application uses a smart device to assist in the channel exchange between the green energy device GPD and the green energy receiving device GPS, skipping the process of sending the "Commissioning" data frame during the standard pairing process of the green energy device, so that the GPD can be paired with the green energy receiving device, greatly simplifying the pairing process.

[0090] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0091] Figure 7 A schematic diagram of a pairing device for a green energy device provided in an embodiment of the present application, wherein the green energy device includes a first NFC module, wherein the pairing information of the green energy device is stored in the first NFC module, and the device includes:

[0092] A pairing information reading unit 701, configured to read the pairing information in the first NFC module by a smart device;

[0093] The pairing simulation unit 702 is used for the smart device to send the pairing information to the green energy receiving device, so that the green energy receiving device simulates the pairing process according to the pairing information to complete the pairing of the green energy receiving device and the green energy device.

[0094] Figure 7 The green energy device shown is paired with Figure 2 The pairing method of the green energy device shown corresponds to this.

[0095] Figure 8 Schematic diagram of a pairing device for a green energy device provided in an embodiment of the present application. Figure 8 As shown, the pairing device 8 of the green energy device of this embodiment includes: a processor 80, a memory 81, and a computer program 82 stored in the memory 81 and executable on the processor 80, such as a pairing program of the green energy device. When the processor 80 executes the computer program 82, the steps in the pairing method embodiments of the above-mentioned green energy devices are implemented. Alternatively, when the processor 80 executes the computer program 82, the functions of each module / unit in the above-mentioned device embodiments are implemented.

[0096] Exemplarily, the computer program 82 may be divided into one or more modules / units, which are stored in the memory 81 and executed by the processor 80 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 82 in the pairing device 8 of the green energy device.

[0097] The pairing device 8 of the green energy device can be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The pairing device of the green energy device can include, but is not limited to, a processor 80 and a memory 81. Those skilled in the art can understand that Figure 8 It is only an example of a pairing device 8 of a green energy device and does not constitute a limitation on the pairing device 8 of the green energy device. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the pairing device of the green energy device may also include input and output devices, network access devices, buses, etc.

[0098] The processor 80 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0099] The memory 81 may be an internal storage unit of the pairing device 8 of the green energy device, such as a hard disk or memory of the pairing device 8 of the green energy device. The memory 81 may also be an external storage device of the pairing device 8 of the green energy device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the pairing device 8 of the green energy device. Further, the memory 81 may also include both an internal storage unit and an external storage device of the pairing device 8 of the green energy device. The memory 81 is used to store the computer program and other programs and data required by the pairing device of the green energy device. The memory 81 may also be used to temporarily store data that has been output or is to be output.

[0100] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0101] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0102] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0103] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0104] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0105] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0106] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the process in the above-mentioned embodiment method, and can also be completed by hardware related to computer program instructions. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0107] In addition, an embodiment of the present application also provides a computer program product, which, when executed on a computer, enables the computer to execute the methods in the above-mentioned implementation modes.

[0108] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A green energy device pairing method, characterized in that: The green energy device includes a first NFC module, the first NFC module stores pairing information of the green energy device, and the method includes: The smart device reads the pairing information in the first NFC module; The smart device sends the pairing information to the green energy receiving device, so that the green energy receiving device simulates a pairing process according to the pairing information to complete the pairing of the green energy receiving device with the green energy device.

2. The method according to claim 1, characterized in that The green energy receiving device is a Zigbee terminal device, the Zigbee terminal device includes a second NFC module, and the pairing information includes a first channel currently used by the green energy device, a MAC address of the green energy device, a key of the green energy device, and an output count value of the green energy device; The smart device sends the pairing information to the green energy receiving device, so that the green energy receiving device simulates the pairing process according to the pairing information to complete the pairing of the green energy receiving device and the green energy device, including: The smart device writes the pairing information into the second NFC module and reinitializes the Zigbee terminal device, so that the Zigbee terminal device obtains the pairing information from the second NFC module, configures the Zigbee terminal device to receive data through the first channel, and simulates the pairing process according to the MAC address of the green energy device, the key of the green energy device and the output count value of the green energy device to complete the pairing of the green energy receiving device and the green energy device.

3. The method according to claim 2, characterized in that Before the smart device reads the pairing information in the first NFC module, the method further includes: The green energy device writes the currently used first channel, the MAC address of the green energy device, the key of the green energy device and the output count value of the green energy device into the first NFC module, and monitors the change information of the output count value of the green energy device. When the output count value of the green energy device changes, the output count value is updated to the first NFC module.

4. The method according to claim 1, characterized in that: The green energy receiving device includes a Zigbee gateway device; Before the smart device reads the pairing information in the first NFC module, the method further includes: The smart device reads a second channel currently used by the Zigbee gateway device from the Zigbee gateway device; The smart device writes the second channel into the first NFC module, so that the green energy device sends a command according to the second channel stored in the first NFC module.

5. The method according to claim 4, characterized in that The smart device reads the pairing information in the first NFC module, including: The smart device reads the MAC address of the green energy device, the key of the green energy device, and the output count value of the green energy device included in the first NFC module; The smart device sends the pairing information to the green energy receiving device, so that the green energy receiving device simulates a pairing process according to the pairing information to complete the pairing of the green energy receiving device and the green energy device, including: The smart device sends the MAC address of the green energy device, the key of the green energy device and the output count value of the green energy device to the Zigbee gateway device, so that the Zigbee gateway device simulates the pairing process according to the MAC address of the green energy device, the key of the green energy device and the output count value of the green energy device to complete the pairing of the green energy receiving device with the green energy device.

6. The method according to claim 2 or 5, characterized in that: Simulating a pairing process according to the MAC address of the green energy device, the key of the green energy device and the output count value of the green energy device to complete pairing of the green energy receiving device with the green energy device, including: The green energy receiving device encapsulates the MAC address of the green energy device, the key of the green energy device and the output count value of the green energy device into a predetermined structure; The structure is paired and debugged through a predetermined pairing function, and after the pairing and debugging is completed, the pairing of the green energy receiving device and the green energy device is completed.

7. The method according to any one of claims 1 to 5, characterized in that: After the smart device sends the pairing information to the green energy receiving device, the method further includes: After detecting that the green energy receiving device completes the simulated pairing process, the pairing information is sent to the green energy proxy device.

8. A pairing device for green energy equipment, characterized in that: The green energy device comprises a first NFC module, wherein the pairing information of the green energy device is stored in the first NFC module, and the apparatus comprises: A pairing information reading unit, configured to read the pairing information in the first NFC module by a smart device; The pairing simulation unit is used for the smart device to send the pairing information to the green energy receiving device, so that the green energy receiving device simulates the pairing process according to the pairing information to complete the pairing of the green energy receiving device and the green energy device.

9. A pairing device for a green energy device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the paired device of the green energy device implements the method according to any one of claims 1 to 7.

10. A computer program product comprising computer program instructions, characterized in that When the computer program is executed, the method according to any one of claims 1 to 7 is performed.