CN114430289A - Automatic pairing method and system for power line carrier communication - Google Patents

Automatic pairing method and system for power line carrier communication Download PDF

Info

Publication number
CN114430289A
CN114430289A CN202111613940.4A CN202111613940A CN114430289A CN 114430289 A CN114430289 A CN 114430289A CN 202111613940 A CN202111613940 A CN 202111613940A CN 114430289 A CN114430289 A CN 114430289A
Authority
CN
China
Prior art keywords
pairing
plc
slave
master
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111613940.4A
Other languages
Chinese (zh)
Other versions
CN114430289B (en
Inventor
齐斌
陈申
朱选才
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wanbang Digital Energy Co Ltd
Wanbang Star Charge Technology Co Ltd
Original Assignee
Wanbang Digital Energy Co Ltd
Wanbang Star Charge Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wanbang Digital Energy Co Ltd, Wanbang Star Charge Technology Co Ltd filed Critical Wanbang Digital Energy Co Ltd
Priority to CN202111613940.4A priority Critical patent/CN114430289B/en
Publication of CN114430289A publication Critical patent/CN114430289A/en
Application granted granted Critical
Publication of CN114430289B publication Critical patent/CN114430289B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/54Systems for transmission via power distribution lines
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast

Abstract

The invention provides an automatic pairing method and system for power line carrier communication, wherein the method comprises the following steps: the mobile terminal acquires the unique identification code of the slave device and sends the unique identification code to the master device, wherein the slave device comprises a PLC slave module, and the master device comprises a PLC master module; after receiving the unique identification code, the master equipment sends a pairing request frame to the slave equipment; the slave equipment stores the communication address of the PLC master module and replies a pairing response frame; the master device stores the communication address of the PLC slave module and sends a pairing success request frame to the slave device; the slave equipment updates a local pairing success result and replies a pairing success response frame to the master equipment; the master device updates the local pairing success result. Therefore, the PLC communication addresses of the opposite sides can be obtained by the main equipment and the auxiliary equipment through the mobile terminal, automatic pairing of power carrier communication between the main equipment and the auxiliary equipment is achieved, unicast communication is supported, and the implementation scheme is simple and reliable.

Description

Automatic pairing method and system for power line carrier communication
Technical Field
The invention relates to the technical field of communication, in particular to an automatic pairing method and an automatic pairing system for power carrier communication.
Background
PLC (Power line Communication) Communication between a master device and a slave device is generally divided into two modes, i.e., unicast and broadcast. In consideration of communication efficiency, the unicast communication is adopted in actual use.
In the related art, the communication address of the PLC of the communication counterpart needs to be known in advance by using the unicast mode, and in some occasions, for example, when the household photovoltaic energy storage system is shipped and installed, the master device and the slave device do not know the communication address of the PLC of the counterpart. Therefore, it is very important to provide a simple and reliable PLC communication pairing scheme.
Disclosure of Invention
In order to solve one of the above technical problems, the present invention proposes the following technical solutions.
An embodiment of a first aspect of the present invention provides an automatic pairing method for power line carrier communication, including:
s1, the mobile terminal acquires a unique identification code of a slave device and sends the unique identification code to a master device, wherein the slave device comprises a PLC slave module, and the master device comprises a PLC master module;
s2, after receiving the unique identifier, the master device sends a pairing request frame to the slave device through the PLC master module in a broadcast manner, where the pairing request includes the unique identifier and a communication address of the PLC master module;
s3, after receiving the pairing request frame through the PLC slave module, the slave device verifies the unique identifier in the pairing request frame, and when the unique identifier passes the verification, stores the communication address of the PLC master module, and replies a pairing response frame to the master device in a broadcast manner, where the pairing response frame includes the communication address of the PLC slave module;
s4, after receiving the pairing response frame, the master device stores the communication address of the PLC slave module, and sends a pairing success request frame to the slave device through the PLC master module in a unicast manner;
s5, after receiving the pairing success request frame, the slave device updates a local pairing success result, and replies a pairing success response frame to the master device in a unicast manner;
and S6, after receiving the pairing success response frame, the master device updates the local pairing success result.
In addition, the automatic pairing method for power carrier communication according to the above embodiment of the present invention may further have the following additional technical features.
According to one embodiment of the invention, the mobile terminal obtains the unique identification code of the slave device by scanning the two-dimensional code of the slave device.
According to one embodiment of the invention, the mobile terminal and the main device are in wireless communication, and the mobile terminal sends the unique identification code to the main device through the wireless communication.
According to an embodiment of the present invention, the method for automatic pairing of power carrier communication further includes: and accessing the PLC slave module and the PLC master module to the same power line network so as to enable the master device and the slave device to carry out PLC communication through the power line network.
According to one embodiment of the present invention, the slave device verifying the unique identification code in the pairing request frame includes:
acquiring a local unique identification code;
comparing the local unique identification code with the unique identification code in the pairing request;
when the local unique identification code is matched with the unique identification code in the pairing request, determining that the verification is passed;
determining that authentication failed when the local unique identification code does not match a unique identification code in the pairing request.
According to an embodiment of the present invention, the method for automatic pairing of power carrier communication further includes: after receiving the pairing success response frame, the main device sends a pairing success message to the mobile terminal; and after receiving the pairing success message, the mobile terminal prompts that the pairing is successful.
According to an embodiment of the present invention, the method for automatic pairing of power carrier communication further includes: when the master device is powered on, whether the master device and the slave device are successfully paired is detected: if the pairing is successful, setting the PLC communication mode as a unicast mode, and entering a normal working mode; if the pairing is not successful, wait until the pairing is successful.
According to an embodiment of the present invention, the method for automatic pairing of power carrier communication further includes: when the slave device is powered on, whether pairing with the master device is successful is detected: if the pairing is successful, setting the PLC communication mode as a unicast mode, and entering a normal working mode; if the pairing is not successful, wait until the pairing is successful.
According to one embodiment of the invention, the master device is an energy storage converter in a household photovoltaic energy storage system, and the slave device is a microgrid interconnection device, an automatic turn-off device or a DCDC device in the household photovoltaic energy storage system.
The embodiment of the second aspect of the present invention provides an automatic pairing system for power line carrier communication, including:
the system comprises a mobile terminal, a master device and a slave device, wherein the mobile terminal is in wireless communication with the master device, the slave device comprises a PLC slave module, the master device comprises a PLC master module, and the PLC slave module and the PLC master module are accessed to the same power line network;
the mobile terminal is used for acquiring the unique identification code of the slave equipment and sending the unique identification code to the master equipment;
the master device is configured to: after receiving the unique identification code, sending a pairing request frame to the slave device through a PLC master module in a broadcast mode, wherein the pairing request frame comprises the unique identification code and a communication address of the PLC master module; after receiving the pairing response frame, storing the communication address of the PLC slave module, and sending a pairing success request frame to the slave equipment through the PLC master module in a unicast mode; after receiving the pairing success response frame, updating a local pairing success result;
the slave device to: after the pairing request frame is received by the PLC slave module, verifying the unique identification code in the pairing request frame, storing the communication address of the PLC master module when the unique identification code passes the verification, and replying the pairing response frame to the master device in a broadcasting mode, wherein the pairing response frame comprises the communication address of the PLC slave module; and after receiving the pairing success request frame, updating a local pairing success result, and replying the pairing success response frame to the main equipment in a unicast mode.
According to the technical scheme of the embodiment of the invention, the main equipment and the slave equipment can obtain the PLC communication address of the opposite side through the mobile terminal, so that the automatic pairing of power carrier communication between the main equipment and the slave equipment is realized to support unicast communication, and the realization scheme is simple and reliable.
Drawings
Fig. 1 is a flowchart of an automatic pairing method for power line carrier communication according to an embodiment of the present invention.
Fig. 2 is a flowchart of a master device powering up according to an embodiment of the present invention.
Fig. 3 is a flow chart of the slave device when powering on according to an embodiment of the present invention.
Fig. 4 is a schematic diagram of wireless communication between an energy storage converter and a microgrid interconnection apparatus according to an example of the present invention.
Fig. 5 is a schematic diagram of a mobile phone in wireless communication with an energy storage converter according to an example of the present invention.
Fig. 6 is a flowchart illustrating an automatic pairing between an energy storage converter and a microgrid interconnection apparatus according to an example of the present invention.
Fig. 7 is a block diagram illustrating an automatic pairing system for power carrier communication according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of an automatic pairing method for power line carrier communication according to an embodiment of the present invention.
The application scenario of the embodiment of the present invention may be a scenario in which PLC communication needs to be performed between a master device and a slave device that include a PLC module, for example, in a household photovoltaic energy storage system, a power line carrier communication module (PLC module) is frequently applied in the household photovoltaic energy storage system, for example, a PLC master module is provided at a master device end, a PLC slave module is provided at a slave device end, and point-to-point communication needs to be achieved between the master device and the slave device in a unicast manner.
As shown in fig. 1, the auto-pairing method for power carrier communication includes the following steps S1 to S6.
And S1, the mobile terminal acquires the unique identification code of the slave device, and sends the unique identification code to the master device, wherein the slave device comprises a PLC slave module, and the master device comprises a PLC master module.
In the embodiment of the present invention, the PLC module in the master device is referred to as a PLC master module, and the PLC module in the slave device is referred to as a PLC slave module.
The number of the master devices can be one, the number of the slave devices is at least one, the master devices and the slave devices do not have wired communication, and the master devices and the slave devices can only communicate with each other through the PLC master module and the PLC slave module.
The unique identification code may be a unique identification code that distinguishes a certain device from other devices, and its existence has uniqueness and invariance with the device.
Specifically, when PLC pairing is required, a user may initiate a PLC pairing request at the mobile terminal, and the mobile terminal may further obtain the unique identification code of the slave device in response to the PLC pairing request, and send the unique identification code to the master device.
And S2, after receiving the unique identification code, the master device sends a pairing request frame to the slave device through the PLC master module in a broadcasting mode, wherein the pairing request comprises the unique identification code and the communication address of the PLC master module.
It is understood that the broadcast mode refers to one-to-many communication without a PLC communication address of the other party. The corresponding unicast method is communication requiring a PLC communication address of the other party, and may also be referred to as point-to-point communication.
Specifically, after receiving the unique identification code, the master device sends a pairing request frame to the PLC slave modules of the slave devices through its own PLC master module in a broadcast manner, to indicate that the master device requests communication pairing with the slave devices at this time, where the pairing request frame includes a frame header, a function code, the unique identification code of the slave device, a communication address of its own PLC master module, and a Cyclic Redundancy Check (CRC) Check code.
And S3, after the slave device receives the pairing request frame through the PLC slave module, verifying the unique identification code in the pairing request frame, storing the communication address of the PLC master module when the unique identification code passes the verification, and replying a pairing response frame to the master device in a broadcasting mode, wherein the pairing response frame comprises the communication address of the PLC slave module.
Specifically, after receiving a pairing request frame sent by a PLC master module, a PLC slave module of a slave device compares unique identification codes in the pairing request frame to determine whether the unique identification codes are correct, when the unique identification codes are correct, it indicates that verification is passed, and when verification is passed, a communication address of the PLC master module in the pairing request frame is retained, and meanwhile, a pairing response frame is replied to the master device in a broadcast manner, where the pairing response frame includes a frame header, a function code, a communication address of a PLC slave module, and a CRC check code to reply to the pairing request frame, which indicates that the slave device can perform communication pairing with the master device at this time, and sends a communication address of its own PLC module to the PLC master module of the master device.
It should be noted that, if the comparison fails, that is, the verification fails, the slave device does not respond to the pairing request frame sent by the master device, and in this case, the process may return to step S1.
And S4, after receiving the pairing response frame, the master device stores the communication address of the PLC slave module, and sends a pairing success request frame to the slave device through the PLC master module in a unicast mode.
Specifically, after receiving a pairing response frame sent by a PLC slave module through a PLC master module of the master device, the master device stores a communication address of the PLC slave module in the pairing response frame, at this time, power carrier communication between the master device and the slave device, that is, initial pairing success of PLC communication, in order to further determine that pairing is successful and to determine that subsequent point-to-point communication can be reliably and accurately performed, the master device sends a pairing success request frame to a PLC slave module of the slave device in a unicast manner, and the pairing success request frame includes a function code for indicating which function is specifically implemented.
It should be noted that, the success of the preliminary pairing is determined based on the broadcast communication between the master device and the slave device, and at this time, the mispairing may occur, and in order to avoid the mispairing, in the embodiment of the present invention, it is determined that the success of the preliminary pairing is not a final pairing result between the master device and the slave device after step S4 is executed, and then, the final pairing needs to be implemented in a unicast manner.
And S5, after receiving the pairing success request frame, the slave device updates the local pairing success result and replies a pairing success response frame to the master device in a unicast mode.
The pairing success result may be a result of whether pairing between the master device and the slave device is successful and reliable, and the result may be represented by a flag bit, for example, the pairing success result may be 1 or 0.
And S6, after receiving the pairing success response frame, the master device updates the local pairing success result.
Specifically, when receiving the pairing success request frame, the PLC module of the slave device determines that the slave device end is finally paired successfully, and then the slave device locally updates the pairing success result, stores the updated pairing success result, and responds in a unicast manner, that is, replies a pairing success response frame to the PLC main module of the master device. After the PLC main module of the master device receives the pairing success response frame, the fact that the master device end is finally paired successfully is determined, then the pairing success result is updated locally, and the updated pairing success result is stored, so that the fact that the PLC of the master device part and the PLC of the slave device part are successfully paired is shown, and reliable pairing is achieved.
That is to say, in the embodiment of the present invention, the third-party mobile terminal triggers pairing between the master device and the slave device, the master device triggers PLC pairing between itself and the slave device after receiving the unique identification code sent by the mobile terminal, and the master device and the slave device realize final pairing in a unicast manner after the primary pairing is successful. The automatic pairing between the PLC modules of the master equipment and the slave equipment can be realized through the communication between the mobile terminal, such as a mobile phone, and the master equipment, and the realization scheme is simple and reliable; the hardware cost is not required to be increased, extra factory inspection steps are not required to be added, and the system cost can be reduced.
Therefore, according to the automatic pairing method for power carrier communication provided by the embodiment of the invention, the main device and the slave device can obtain the PLC communication address of the opposite party through the mobile terminal, so that the automatic pairing of the power carrier communication between the main device and the slave device is realized to support unicast communication, and the realization scheme is simple and reliable.
In one embodiment of the present invention, when the mobile terminal in the step S1 acquires the unique identifier of the slave device, the mobile terminal acquires the unique identifier of the slave device by scanning the two-dimensional code of the slave device.
Further, wireless communication is carried out between the mobile terminal and the main device, so that the mobile terminal sends the unique identification code to the main device through wireless communication.
Specifically, the mobile terminal and the host device perform wireless communication, for example, in a WiFi or bluetooth manner. The mobile terminal supports a two-dimensional code scanning function, acquires the unique identification code of the slave device by scanning the two-dimensional code of the slave device, and then sends the unique identification code to the master device through wireless communication.
In an embodiment of the present invention, the method for automatic pairing of power carrier communication may further include: and the PLC slave module and the PLC master module are connected to the same power line network, so that PLC communication is carried out between the master device and the slave device through the power line network.
Specifically, there is no line communication between the master device and the slave device, the PLC master module of the master device and the PLC slave module of the slave device are both connected to the same power line network, and the master device and the slave device communicate with each other through the connected PLC modules of the same power line network. For example, in step S2, the master device transmits the pairing request frame to the power line network through the PLC master module in a broadcast manner, and each slave device on the power line network receives the pairing request frame from the power line network through its own PLC module.
In an embodiment of the present invention, the verifying the unique identifier in the pairing request frame by the slave device in the step S3 includes:
acquiring a local unique identification code; comparing the local unique identification code with the unique identification code in the pairing request; when the local unique identification code is matched with the unique identification code in the pairing request, determining that the verification is passed; when the local unique identification code does not match the unique identification code in the pairing request, it is determined that the authentication failed.
It should be noted that the local unique identifier may refer to a unique identifier of a slave device that exists locally and not via streaming in the slave device, and the unique identifier in the pairing request frame is obtained by the mobile terminal slave device and then sent to the master device, which in turn sends the unique identifier to the slave device.
Specifically, after receiving the pairing request frame, the slave device acquires a local unique identification code, and when judging that the received unique identification code is the same as the acquired local unique identification code, the slave device passes the verification; when the received unique identification code is different from the acquired local unique identification code, the verification is failed.
And when the verification is passed, replying a pairing response frame to the main equipment in a broadcasting mode, and when the verification is not passed, not responding.
In an embodiment of the present invention, the method for automatic pairing of power carrier communication may further include: after receiving the pairing success response frame, the main equipment sends a pairing success message to the mobile terminal; and after receiving the pairing success message, the mobile terminal prompts that the pairing is successful.
Specifically, after the pairing is successful, that is, the local pairing success result is updated, the master device sends a pairing success message to the mobile terminal to inform the mobile terminal that the master device and the slave device are paired automatically by using the PLC, so that the mobile terminal prompts that the current pairing is successful, and the user experience is improved.
After the pairing is successful, before the unicast communication is subsequently carried out, whether the pairing is successful or not can be judged, and when the pairing is successful, a normal working mode is entered.
That is, in an embodiment of the present invention, as shown in fig. 2, the method for automatic pairing of power carrier communication may further include: when the master device is powered on, whether pairing with the slave device is successful is detected: if the pairing is successful, setting the PLC communication mode as a unicast mode, and entering a normal working mode; if the pairing is not successful, wait until the pairing is successful.
Specifically, when the master device is powered on, whether the local pairing success result is paired with the slave device can be judged by detecting the local pairing success result, for example, when the pairing success result is 1, it indicates that the pairing is successful, the PLC communication mode is set to be a unicast mode, and a normal working mode is entered, for example, data is transmitted and received between the master device and the slave device; if the pairing success result is 0, the pairing is not successful, and the pairing is waited until the pairing is successful.
In an embodiment of the present invention, as shown in fig. 3, the method for automatic pairing of power carrier communication may further include: when the slave device is powered on, whether pairing with the master device is successful is detected: if the pairing is successful, setting the PLC communication mode as a unicast mode, and entering a normal working mode; if the pairing is not successful, wait until the pairing is successful.
Specifically, when the slave device is powered on, whether the slave device and the slave device are successfully paired can be judged by detecting a local pairing success result, for example, when the pairing success result is 1, it indicates that the pairing is successful, a PLC communication mode is set to be a unicast mode, and a normal working mode is entered, for example, data is transmitted and received between the master device and the PLC communication mode; if the pairing success result is 0, the pairing is not successful, and the pairing is waited until the pairing is successful.
The automatic pairing method for electronic carrier communication of the embodiment of the invention is applied to a user photovoltaic energy storage system for explanation:
in one example, the master Device is a Power Conversion System (PCS) in a photovoltaic energy storage System, and the slave Device is a Micro-grid Interconnection Device (MID), an automatic shutdown Device or a DCDC Device in the photovoltaic energy storage System.
As shown in fig. 4, when the master device is an energy storage converter and the slave devices are microgrid interconnection devices, a plurality of microgrid interconnection devices (three microgrid interconnection devices are shown in the figure) exist on the power line network, the energy storage converter serves as a host to send pairing request frames in a broadcast manner, and all the microgrid interconnection devices on the power line network can receive the pairing request frames. If the PLC communication addresses of the microgrid interconnection devices to be paired are known in advance, the energy storage converter can carry the other PLC communication addresses in a unicast mode to send data, and the data can be received only by the microgrid interconnection devices to be paired, so that point-to-point communication between the energy storage converter and the microgrid interconnection devices is realized. By the automatic pairing method, the energy storage converter and the microgrid interconnection device can know the PLC communication address of the opposite side in advance, and reliable and accurate pairing between the energy storage converter and the microgrid interconnection device can be realized.
As shown in fig. 5, when the mobile terminal is a mobile phone, the mobile phone and the energy storage converter communicate with each other in a wireless manner, which may be WiFi, bluetooth, or the like. The energy storage converter and the microgrid interconnection device are not in wired communication, and can only communicate with each other through the PLC modules connected to the same power line network. Automatic pairing between the energy storage converter and the microgrid interconnection device is achieved through a mobile phone, and the pairing process is shown in fig. 6.
Referring to fig. 6, firstly, a mobile phone is wirelessly connected to an energy storage converter, a user turns on an APP (application) on the mobile phone and clicks a pairing function, the mobile phone scans a two-dimensional code of a to-be-paired microgrid interconnection device, then the APP obtains a unique identification code of the microgrid interconnection device, the mobile phone sends the unique identification code to the energy storage converter, the energy storage converter sends a pairing request frame to a power line network through a PLC module (i.e. a PLC main module) of the energy storage converter in a broadcasting manner, wherein the pairing request frame comprises a frame header, a function code, the unique identification code of the to-be-paired interconnection device, a communication address of the PLC module of the energy storage converter and a CRC check code, then the microgrid interconnection device receives the pairing request frame from the power line network, then, the microgrid interconnection device compares the unique identification codes, when the pairing response frame passes the comparison, when the pairing response frame does not pass the comparison, the microgrid interconnection device does not respond, wherein the pairing response frame comprises a frame header, a function code, a communication address of a PLC module of the microgrid interconnection device to be paired and a CRC check code, the communication address of the PLC module of the microgrid interconnection device to be paired is stored, the energy storage converter receives the pairing response frame, stores the communication address of the PLC module of the microgrid interconnection device, and sends a pairing success request frame to the microgrid interconnection device through the PLC main module in a unicast mode, after receiving the pairing success request frame, the microgrid interconnection device replies the pairing success response frame through the PLC slave module in the unicast mode, and stores a pairing success result, after receiving the pairing success response frame, the energy storage converter sends a pairing success message to the mobile phone APP and stores the pairing success result, and then the APP displays that the pairing is successful, so as to prompt that the power carrier communication between the master device and the slave device of a user is successfully paired.
In summary, when the technical scheme of the embodiment of the invention is used for automatic pairing of the PLC, the energy storage converter and the PLC module of the microgrid interconnection device can be automatically paired through communication between the mobile phone APP and the energy storage converter, the implementation scheme is simple and reliable, and unicast communication of quality inspection of the energy storage converter and the microgrid interconnection device can be realized; and the hardware cost is not required to be increased, an extra factory inspection step is not required to be added, and the system cost can be reduced.
Corresponding to the automatic pairing method for power line carrier communication in the above embodiment, the invention also provides an automatic pairing system for power line carrier communication.
Fig. 7 is a block diagram illustrating an automatic pairing system for power carrier communication according to an embodiment of the present invention.
As shown in fig. 7, the automatic pairing system for power carrier communication includes: a mobile terminal 10, a master device 20 and a slave device 30. The mobile terminal 10 and the master device 20 perform wireless communication, the slave device 30 includes a PLC slave module, the master device 20 includes a PLC master module, and the PLC slave module and the PLC master module are connected to the same power line network.
The mobile terminal 10 is configured to acquire the unique identification code of the slave device and transmit the unique identification code to the master device.
The master device 20 is configured to: after receiving the unique identification code, sending a pairing request frame to the slave equipment through the PLC main module in a broadcasting mode, wherein the pairing request frame comprises the unique identification code and a communication address of the PLC main module; after receiving the pairing response frame, storing the communication address of the PLC slave module, and sending a pairing success request frame to the slave equipment through the PLC master module in a unicast mode; and after receiving the pairing success response frame, updating the local pairing success result.
The slave device 30 is used to: after receiving the pairing request frame through the PLC slave module, verifying the unique identification code in the pairing request frame, storing the communication address of the PLC master module when the unique identification code passes the verification, and replying a pairing response frame to the master device in a broadcasting mode, wherein the pairing response frame comprises the communication address of the PLC slave module; and after receiving the pairing success request frame, updating a local pairing success result, and replying a pairing success response frame to the main equipment in a unicast mode.
It should be noted that, for a specific implementation of the automatic pairing system for power carrier communication, reference may be made to the specific implementation of the automatic pairing method for power carrier communication, and details are not described here for avoiding redundancy.
According to the automatic pairing system for power carrier communication, the main device and the slave device can obtain the PLC communication address of the opposite party through the mobile terminal, automatic pairing of the power carrier communication between the main device and the slave device is achieved, unicast communication is supported, and the achieving scheme is simple and reliable.
In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. The meaning of "plurality" is two or more unless specifically limited otherwise.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. An automatic pairing method for power carrier communication is characterized by comprising the following steps:
s1, the mobile terminal acquires a unique identification code of a slave device and sends the unique identification code to a master device, wherein the slave device comprises a PLC slave module, and the master device comprises a PLC master module;
s2, after receiving the unique identifier, the master device sends a pairing request frame to the slave device through the PLC master module in a broadcast manner, where the pairing request includes the unique identifier and a communication address of the PLC master module;
s3, after receiving the pairing request frame through the PLC slave module, the slave device verifies the unique identifier in the pairing request frame, and when the unique identifier passes the verification, stores the communication address of the PLC master module, and replies a pairing response frame to the master device in a broadcast manner, where the pairing response frame includes the communication address of the PLC slave module;
s4, after receiving the pairing response frame, the master device stores the communication address of the PLC slave module, and sends a pairing success request frame to the slave device through the PLC master module in a unicast manner;
s5, after receiving the pairing success request frame, the slave device updates a local pairing success result, and replies a pairing success response frame to the master device in a unicast manner;
and S6, after receiving the pairing success response frame, the master device updates the local pairing success result.
2. The method of automatic pairing for power carrier communication according to claim 1,
and the mobile terminal obtains the unique identification code of the slave equipment by scanning the two-dimensional code of the slave equipment.
3. The method of claim 2, wherein the mobile terminal is in wireless communication with the host device, and wherein the mobile terminal transmits the unique identifier to the host device via the wireless communication.
4. The method of claim 3, further comprising: and accessing the PLC slave module and the PLC master module to the same power line network so as to enable the master device and the slave device to carry out PLC communication through the power line network.
5. The method of claim 1, wherein verifying the unique identifier in the pairing request frame from the device comprises:
acquiring a local unique identification code;
comparing the local unique identification code with the unique identification code in the pairing request;
when the local unique identification code is matched with the unique identification code in the pairing request, determining that the verification is passed;
determining that authentication failed when the local unique identification code does not match a unique identification code in the pairing request.
6. The method of automatic pairing for power carrier communication according to claim 1, further comprising:
after receiving the pairing success response frame, the main device sends a pairing success message to the mobile terminal;
and after receiving the pairing success message, the mobile terminal prompts that the pairing is successful.
7. The method of automatic pairing for power carrier communication according to claim 1, further comprising:
when the master device is powered on, whether the master device and the slave device are successfully paired is detected:
if the pairing is successful, setting the PLC communication mode as a unicast mode, and entering a normal working mode;
if the pairing is not successful, wait until the pairing is successful.
8. The method of automatic pairing for power carrier communication according to claim 1, further comprising:
when the slave device is powered on, whether pairing with the master device is successful is detected:
if the pairing is successful, setting the PLC communication mode as a unicast mode, and entering a normal working mode;
if the pairing is not successful, wait until the pairing is successful.
9. The method according to claim 1, wherein the master device is an energy storage converter in a household photovoltaic energy storage system, and the slave device is a microgrid interconnection device, an automatic turn-off device or a DCDC device in the household photovoltaic energy storage system.
10. An automatic pairing system for power carrier communication, comprising:
the system comprises a mobile terminal, a master device and a slave device, wherein the mobile terminal is in wireless communication with the master device, the slave device comprises a PLC slave module, the master device comprises a PLC master module, and the PLC slave module and the PLC master module are accessed to the same power line network;
the mobile terminal is used for acquiring the unique identification code of the slave equipment and sending the unique identification code to the master equipment;
the master device is configured to: after receiving the unique identification code, sending a pairing request frame to the slave device through a PLC master module in a broadcast mode, wherein the pairing request frame comprises the unique identification code and a communication address of the PLC master module; after receiving the pairing response frame, storing the communication address of the PLC slave module, and sending a pairing success request frame to the slave equipment through the PLC master module in a unicast mode; after receiving the pairing success response frame, updating a local pairing success result;
the slave device to: after the pairing request frame is received by the PLC slave module, verifying the unique identification code in the pairing request frame, storing the communication address of the PLC master module when the unique identification code passes the verification, and replying the pairing response frame to the master device in a broadcasting mode, wherein the pairing response frame comprises the communication address of the PLC slave module; and after receiving the pairing success request frame, updating a local pairing success result, and replying the pairing success response frame to the main equipment in a unicast mode.
CN202111613940.4A 2021-12-27 2021-12-27 Automatic pairing method and system for power line carrier communication Active CN114430289B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111613940.4A CN114430289B (en) 2021-12-27 2021-12-27 Automatic pairing method and system for power line carrier communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111613940.4A CN114430289B (en) 2021-12-27 2021-12-27 Automatic pairing method and system for power line carrier communication

Publications (2)

Publication Number Publication Date
CN114430289A true CN114430289A (en) 2022-05-03
CN114430289B CN114430289B (en) 2023-08-15

Family

ID=81311756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111613940.4A Active CN114430289B (en) 2021-12-27 2021-12-27 Automatic pairing method and system for power line carrier communication

Country Status (1)

Country Link
CN (1) CN114430289B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016080798A1 (en) * 2014-11-20 2016-05-26 엘지전자(주) Method for performing pairing between devices in wireless communication system supporting bluetooth communication and apparatus therefor
CN107346980A (en) * 2017-06-20 2017-11-14 重庆渝丰鑫新线缆科技有限公司 A kind of group-net communication method of more slave station cable anti-theft monitoring systems
CN108924907A (en) * 2018-06-22 2018-11-30 四川斐讯信息技术有限公司 A kind of fast access method of wireless network, system and for net equipment
CN109525939A (en) * 2018-10-11 2019-03-26 广州市九安智能技术股份有限公司 A kind of NVR and IPC automatic matching method and wireless video monitoring automatic network-building system
CN109688555A (en) * 2018-12-28 2019-04-26 南京华讯方舟通信设备有限公司 A kind of real-time acquisition and communication system and method for signal data
CN112165733A (en) * 2020-09-25 2021-01-01 杭州涂鸦信息技术有限公司 Method and system for building point-to-point multichannel network of private protocol

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016080798A1 (en) * 2014-11-20 2016-05-26 엘지전자(주) Method for performing pairing between devices in wireless communication system supporting bluetooth communication and apparatus therefor
CN107346980A (en) * 2017-06-20 2017-11-14 重庆渝丰鑫新线缆科技有限公司 A kind of group-net communication method of more slave station cable anti-theft monitoring systems
CN108924907A (en) * 2018-06-22 2018-11-30 四川斐讯信息技术有限公司 A kind of fast access method of wireless network, system and for net equipment
CN109525939A (en) * 2018-10-11 2019-03-26 广州市九安智能技术股份有限公司 A kind of NVR and IPC automatic matching method and wireless video monitoring automatic network-building system
CN109688555A (en) * 2018-12-28 2019-04-26 南京华讯方舟通信设备有限公司 A kind of real-time acquisition and communication system and method for signal data
CN112165733A (en) * 2020-09-25 2021-01-01 杭州涂鸦信息技术有限公司 Method and system for building point-to-point multichannel network of private protocol

Also Published As

Publication number Publication date
CN114430289B (en) 2023-08-15

Similar Documents

Publication Publication Date Title
CN106102184B (en) System and method for managing binding connection of Bluetooth equipment
US8116249B2 (en) Wireless communication system and wireless communication device
CN103493397A (en) Method of associating a client with an access point in a wireless local area network
US20230040580A1 (en) Binding method and system for device network configuration, and mobile terminal and storage medium
CN113490218B (en) Pairing method, pairing device, bluetooth remote controller, intelligent device and storage medium
CN108667699B (en) Method and device for interconnecting terminal equipment and gateway equipment
US20180124691A1 (en) Method and apparatus for accessing wireless network with smart device
US20100157964A1 (en) Server to guide reconnection in mobile internet, method for guiding server reconnection, and server reconnection method
CN106681774B (en) Software upgrading method of Bluetooth loudspeaker and intelligent terminal
CN105959968B (en) wifi configuration method and device
US9686639B2 (en) Transmission system using bluetooth low energy technique
KR20120025114A (en) Apparatus and method for determining validity of wifi connection in wireless communication system
US20230179903A1 (en) Communication method between earphones and charging box, charging box, earphones and readable storage medium
US10924986B2 (en) Method and device for connecting to access point in wireless network
CN104704447A (en) Using Bluetooth low energy
CN111372300A (en) Method and device for connecting network
CN107370632B (en) ZIGBEE-based offline networking method and system
CN115474107A (en) Intelligent electric energy meter communication method and device, equipment and storage medium
CN113595839B (en) Device binding method, terminal device and storage medium
CN114430289A (en) Automatic pairing method and system for power line carrier communication
CN106028326B (en) WiFi configuration method and device of smart watch
CN112448845A (en) Internet of things network distribution method based on IGRS standard, intelligent terminal and storage medium
CN113132929A (en) Equipment network access method, device, computer equipment and storage medium
CN116546660A (en) Bluetooth testing method and device, upper computer equipment and storage medium
CN104185168A (en) Method of acquiring own number, system and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant