Communication method, apparatus and system

By dividing the operating frequency range into multiple frequency bands in the power station and communicating in different frequency bands, the problems of low communication efficiency and reliability of PLC are solved, and efficient and reliable power line carrier signal transmission is achieved.

WO2024234460A1PCT designated stage expired Publication Date: 2024-11-21SUNGROW (SHANGHAI) CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/105492
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-05-18
Filing Date
2023-07-03
Publication Date
2024-11-21

AI Technical Summary

Technical Problem

In a power station, when PLC communicates, the communication efficiency is low due to bus blocking communication between the master node and the slave node, and the system reliability is reduced when noise is disturbed, which may lead to system crash.

Method used

By dividing the operating frequency range into multiple frequency bands, the master node communicates with different slave nodes in different frequency bands, and uses broadcast, serial broadcast, unicast or heartbeat broadcast communication methods to ensure that multiple slave nodes communicate at the same time without interfering with each other. .

Benefits of technology

It improves the efficiency and reliability of PLC communication, avoids bus blockage, and enhances the transmission reliability and robustness of power line carrier signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023105492_21112024_PF_FP_ABST
    Figure CN2023105492_21112024_PF_FP_ABST
Patent Text Reader

Abstract

The present invention provides a communication method, apparatus and system, applied to a master node. The method comprises: dividing a preset operating frequency range into multiple frequency bands; determining a slave node for communication corresponding to each frequency band; and according to a preset communication mode, communicating with the slave node corresponding to each frequency band. An operating frequency range can be divided into multiple frequency bands, communication with different slave nodes is performed in different frequency bands, and mutual influence is avoided, thereby improving the communication efficiency and reliability.
Need to check novelty before this filing date? Find Prior Art

Description

Communication method, device and system

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on May 18, 2023, with application number 202310566479.4 and invention name “Communication Method, Device and System”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present invention relates to the field of communication technologies, and in particular to a communication method, device and system. Background Art

[0003] In a power plant, multiple devices communicate over a fixed frequency range when performing PLC (Power Line Communication) communication. PLC communication uses power lines as a transmission channel, transmitting analog or digital signals at high speed via carrier waves. Although PLC communication between devices is highly reliable, when a master device communicates with other slave devices, only one slave node can communicate with the master node at a time, a typical bus-style blocking communication scenario. Other slave nodes are unable to communicate, significantly reducing the efficiency of single-master, multi-slave communication. Even if a communication failure occurs between the master and slave nodes, or if the PLC bus experiences significant noise interference, the PLC bus remains occupied, preventing other nodes from communicating on the bus. This reduces the reliability of power line communication and, in severe cases, can lead to system crashes and significant losses.

[0004] Summary of the Invention

[0005] In view of this, the present invention provides a communication method that can divide the operating frequency range into multiple frequency bands, communicate with different slave nodes in different frequency bands without affecting each other, and increase communication efficiency and reliability.

[0006] A communication method, the method being applied to a communication system, the communication system comprising at least one master node and at least one slave node, the method comprising:

[0007] The master node divides a preset operating frequency range into a plurality of frequency bands, wherein the operating frequency range is a frequency range that allows the master node to communicate with the slave node;

[0008] The master node determines at least one slave node for communication corresponding to each of the frequency bands;

[0009] The master node communicates with the slave node corresponding to each of the frequency bands according to a preset communication method; wherein, the master node communicates with multiple slave nodes simultaneously through multiple frequency bands during the communication process.

[0010] Optionally, in the above method, dividing the preset operating frequency range into multiple frequency bands includes:

[0011] Determine the number of slave nodes;

[0012] The operating frequency range is divided into multiple frequency bands according to the number of slave nodes.

[0013] Optionally, in the above method, determining the slave node corresponding to each frequency band for communication includes:

[0014] Determine a node code corresponding to each slave node, wherein the node code is a unique identification code of the slave node;

[0015] Determining an arrangement order of the slave nodes based on a node code corresponding to each slave node;

[0016] Based on the arrangement order of the slave nodes, the slave node corresponding to each frequency band is determined.

[0017] The above method may optionally further include:

[0018] At least one frequency band in each of the frequency bands is set as a broadcast frequency band, and the broadcast frequency band is a communication frequency band for the master node to communicate with all the slave nodes.

[0019] Optionally, the method described above, communicating with the slave node corresponding to each of the frequency bands in a preset communication manner, includes:

[0020] Generate a request message corresponding to each of the slave nodes;

[0021] When the operating frequency of the power line carrier belongs to the target frequency band, at least one target slave node corresponding to the target frequency band is determined, and a corresponding request message is sent to the target slave node according to a preset communication method.

[0022] The above method may optionally include, for each slave node, generating a request message corresponding to the slave node, including:

[0023] Acquire data content of the master node, where the data content includes at least a machine code, a register start address, and a register data amount of the master node;

[0024] A request message of the slave node is generated based on the data content and the node code of the slave node.

[0025] In the above method, optionally, the communication mode includes at least one of broadcast, serial broadcast, unicast and heartbeat broadcast.

[0026] In the above method, optionally, the sending of the corresponding request message to the target slave node according to a preset communication mode includes at least one of the following:

[0027] When the communication mode is broadcast, broadcasting the request message corresponding to the target slave node to the target slave node based on the machine code of the master node, wherein the machine code is used to determine that the master node and the target slave node belong to the same network;

[0028] In the case where the communication mode is broadcast, based on the machine code of the master node and the serial number in the node code of the target slave node, the request message corresponding to the target slave node is broadcasted to the target slave node, and the serial number is used to determine whether at least one target slave node to receive the message request belongs to the same Boost group string;

[0029] In the case where the communication mode is unicast, based on the machine code of the master node and the node code of the target slave node, unicasting the request message corresponding to the target slave node to the target slave node;

[0030] In the case where the communication mode is heartbeat broadcast, the request message corresponding to the target slave node is broadcast to the target slave node according to a preset heartbeat time interval.

[0031] The above method may optionally further include:

[0032] A communication result between the master node and the slave node is obtained, where the communication result is communication success or communication failure.

[0033] In the above method, optionally, obtaining the communication result between the master node and each of the slave nodes includes:

[0034] If the communication mode between the master node and the slave node is broadcast or serial broadcast, reading the node information of the slave node to determine the communication result of the slave node based on the node information;

[0035] If the communication mode between the master node and the slave node is unicast or heartbeat broadcast, a response message fed back by the slave node based on the request message corresponding to the slave node is received to determine the communication result of the slave node based on the response message.

[0036] A communication device, applied to a communication system, wherein the communication system includes at least one master node and at least one slave node, and the device includes:

[0037] a dividing unit, configured to divide a preset operating frequency range into a plurality of frequency bands, wherein the operating frequency range is a frequency range allowing the master node to communicate with the slave node;

[0038] a determining unit, configured to determine a slave node for communication corresponding to each of the frequency bands;

[0039] A communication unit is used to communicate with the slave nodes corresponding to each of the frequency bands according to a preset communication method; wherein, the master node communicates with multiple slave nodes simultaneously through multiple frequency bands during the communication process.

[0040] In the above device, optionally, the dividing unit includes:

[0041] A first determining subunit, configured to determine the number of slave nodes;

[0042] The division subunit is used to divide the operating frequency range into multiple frequency bands according to the number of slave nodes.

[0043] In the above device, optionally, the determining unit includes:

[0044] A first acquiring subunit is configured to acquire a node code corresponding to each slave node, where the node code is a unique identification code of the slave node;

[0045] A second determining subunit is configured to determine an arrangement order of the slave nodes based on a node code corresponding to each of the slave nodes;

[0046] The third determining subunit is configured to determine the slave node for communication corresponding to each of the frequency bands based on the arrangement order of the slave nodes.

[0047] In the above device, optionally, the communication unit sends a corresponding request message to the target slave node according to a preset communication method, specifically configured to perform at least one of the following:

[0048] When the communication mode is broadcast, broadcasting the request message corresponding to the target slave node to the target slave node based on the machine code of the master node, wherein the machine code is used to determine that the master node and the target slave node belong to the same network;

[0049] In the case where the communication mode is broadcast, based on the machine code of the master node and the serial number in the node code of the target slave node, the request message corresponding to the target slave node is broadcasted to the target slave node, and the serial number is used to determine whether at least one target slave node to receive the message request belongs to the same Boost group string;

[0050] In the case where the communication mode is unicast, based on the machine code of the master node and the node code of the target slave node, unicasting the request message corresponding to the target slave node to the target slave node;

[0051] In the case where the communication mode is heartbeat broadcast, the request message corresponding to the target slave node is broadcast to the target slave node according to a preset heartbeat time interval.

[0052] A communication system comprising:

[0053] At least one master node and at least one slave node;

[0054] The master node is configured to communicate with the at least one slave node and execute the communication method described above;

[0055] The slave node is configured to receive a request message sent by the master node during communication with the master node.

[0056] In the above communication system, optionally, the master node is an inverter; and the slave node is an optimizer.

[0057] Compared with the prior art, the present invention has the following advantages:

[0058] The present invention provides a communication method, applied to a master node, comprising: dividing a preset operating frequency range into multiple frequency bands; determining a slave node corresponding to each frequency band; and communicating with each slave node corresponding to each frequency band according to a preset communication method. The operating frequency range can be divided into multiple frequency bands, and communication with different slave nodes in different frequency bands can be performed without interfering with each other, thereby increasing communication efficiency and reliability. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0060] FIG1 is a flow chart of a communication method provided by an embodiment of the present invention;

[0061] FIG2 is an exemplary diagram of a communication method provided by an embodiment of the present invention;

[0062] FIG3 is another method flow chart of a communication method provided by an embodiment of the present invention;

[0063] FIG4 is a device structure diagram of a communication device provided by an embodiment of the present invention;

[0064] FIG5 is a system structure diagram of a communication system provided by an embodiment of the present invention;

[0065] FIG6 is another system structure diagram of a communication system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0066] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0067] In this application, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. The terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or apparatus comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or apparatus comprising the element.

[0068] The present invention can be used in a variety of general-purpose or special-purpose computing device environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multi-processor devices, and distributed computing environments including any of the above.

[0069] The present invention provides a communication method that can be applied to a communication system comprising at least one master node and at least one slave node. The master node can be an inverter in a power system, specifically a controller in the inverter, and the slave node can be an optimizer in the power system. A flow chart of the communication method is shown in FIG1 , specifically comprising:

[0070] S101: Divide a preset operating frequency range into multiple frequency bands.

[0071] The operating frequency range is a frequency range that allows the master node to communicate with the slave node, and the operating frequency range is also the operating frequency range required for the power line carrier to operate.

[0072] Specifically, the power line carrier operates at a frequency of 80 to 490 kHz.

[0073] In the present invention, the implementation method of dividing the operating frequency range into multiple frequency bands may be:

[0074] Determine the number of slave nodes;

[0075] The operating frequency range is divided into multiple frequency bands according to the number of slave nodes.

[0076] It is understandable that the number of slave nodes that need to communicate with the master node is determined, and the operating frequency range is evenly divided into multiple frequency bands according to the number of slave nodes, and the number of each frequency band obtained is consistent with the number of slave nodes.

[0077] For example, if the operating frequency range is 80-490 kHz and there are 15 slave nodes, the operating frequency can be divided into 15 frequency bands (f = 80 + k * 30 kHz, k = 0, ..., 14), each of which corresponds to a channel for communicating with the slave nodes. Each frequency band is separated by 30 kHz.

[0078] It should be noted that the master node divides its operating frequency range into multiple frequency bands, each of which serves as a communication channel with slave nodes. The master node can communicate with different slave nodes through different channels. That is, when the master node needs to communicate with a slave node, it must communicate through the channel corresponding to that slave node.

[0079] S102: Determine at least one slave node for communication corresponding to each frequency band.

[0080] Based on the content of step S101 above, the slave node corresponding to each frequency band is determined.

[0081] In the present invention, the implementation method of determining the slave node corresponding to each frequency band for communication may be:

[0082] Obtain the node code corresponding to each slave node. The node code is the unique identification code of the slave node;

[0083] Determine the arrangement order of each slave node based on the node code corresponding to each slave node;

[0084] Based on the arrangement order of each slave node, the slave node corresponding to each frequency band is determined.

[0085] It should be noted that the node code of a slave node consists of a group string index number and a slave node sequence number. The group string index number of each slave node communicating with the same master node is consistent, and the slave node sequence numbers of the slave nodes in a group string are inconsistent. Each slave node communicating with the same master node corresponds to at least one frequency band in ascending order of node sequence number. After obtaining each frequency band, each frequency band is associated with each slave node one-to-one based on its frequency range. Besides the initial association, slave nodes can also be associated with other frequency bands. That is, the master node communicates with the slave node via the frequency band associated with the slave node.

[0086] Specifically, for the inverter circuit, which contains multiple Boost strings, each string corresponds to an index number (i.e., string code), and the string contains multiple optimizers as slave nodes, and each slave node also has a corresponding index number in the string to which it belongs. Multiple optimizers in a string communicate with an inverter, which is the master node. For example: the node code 1.14 of the slave node represents the 14th optimizer under Boost1. If the operating frequency range is 80~490KHz and the number of slave nodes is 15, then according to the frequency band division, the operating frequency band for the slave node with the node code 1.14 to communicate with the master node is 490KHZ.

[0087] In the present invention, for the inverter circuit in the power system, the inverter PLC master node controller can communicate with the optimizer PLC slave nodes and feedback information in different frequency bands. Each optimizer has its own serial number, thus achieving networked management. The photovoltaic power station distribution system adopts a multi-branch linear structure, and the node codes of the optimizers on each branch are arranged in ascending order, as shown in Figure 2. Each optimizer PLC slave node determines the operating frequency band for communication with the inverter PLC master node based on its own node code.

[0088] S103: Communicate with the slave nodes corresponding to each frequency band according to a preset communication method.

[0089] The master node communicates with multiple slave nodes simultaneously through multiple frequency bands during the communication process.

[0090] It is understandable that when the master node needs to communicate with multiple slave nodes, it communicates with different slave nodes simultaneously through different frequency bands.

[0091] It should be noted that the communication mode includes at least one of broadcast, serial broadcast, unicast and heartbeat broadcast. Each frequency band can communicate with the slave node using a different communication mode, or all frequency bands can communicate with the slave node using the same communication mode.

[0092] In the method provided by an embodiment of the present invention, the operating frequency range of the power line carrier is divided into multiple frequency bands, each frequency band corresponds to at least one slave node, and the master node communicates with different slave nodes in different frequency bands. In the process of communicating with multiple slave nodes through multiple frequency bands, the slave nodes do not affect each other, thereby increasing communication efficiency and reliability and avoiding congestion of the PLC bus caused by communication between the master node and the slave node.

[0093] In the embodiment of the present invention, after the operating frequency range is divided into multiple frequency bands, at least one frequency band in each frequency band can be set as a broadcast frequency band, and the other frequency bands can be set as data frequency bands. The broadcast frequency band is a communication frequency band for the master node to communicate with all slave nodes.

[0094] It can be understood that in the broadcast frequency band, the master node can communicate with all slave nodes, or specify to communicate with any slave node, while the data frequency band only corresponds to one slave node. In this data frequency band, the master node only communicates with the slave node corresponding to this frequency band.

[0095] In the method provided by the embodiment of the present invention, based on the content of S103 above, the process of communicating with the slave node corresponding to each of the frequency bands according to the preset communication mode is shown in FIG3 , and may specifically include:

[0096] S301: Generate a request message corresponding to each slave node.

[0097] The process of generating the request message corresponding to the slave node is as follows:

[0098] Obtaining the data content of the master node, the data content at least includes the machine code of the master node, the register starting address, and the register data amount;

[0099] Generate a request message from the slave node based on the data content and the node code of the slave node.

[0100] Specifically, the request message contains data content and a node code. In addition, the request message data content may include a function code, synchronization information, data length, register address, register quantity, register data, and a checksum. It should be noted that this request message supports full broadcast, serial broadcast, and unicast. The request message data content consists of three bytes: the register starting address and register data quantity. The specific content is defined according to the application layer protocol table.

[0101] S302: When the operating frequency of the power line carrier belongs to the target frequency band, determine the target slave node corresponding to the target frequency band, and send the corresponding request message to the target slave node according to a preset communication method.

[0102] It is understandable that when the power line carrier operates in a certain frequency band, the frequency band is the target frequency band, and the slave node corresponding to the target frequency band is the target slave node. A request message corresponding to the target slave node is sent to the target slave node according to the communication method.

[0103] The target frequency band may correspond to multiple slave nodes, and according to the node code in the request message, the slave node corresponding to the node code may be determined as the target slave node.

[0104] It should be noted that the slave node contains the machine code of the master node and the node code of the slave node. When the master node needs to send a request message to the slave node, the request message can carry the node code of the slave node and the machine code of the master node. After receiving the request message, the slave node determines whether the request message is the message designated to be sent to the slave node based on the node code in the request message, and can also verify the request message based on the machine code of the master node.

[0105] For example, the master node needs to send a request message to slave node 1 through the broadcast frequency band. The request message carries the node code "1.1" of slave node 1. The master node sends the request message to all slave nodes through the broadcast frequency band. Other slave nodes directly ignore the request message after receiving it. After receiving the request message, slave node 1 can process or respond to the request message.

[0106] It should also be noted that the master node can communicate with each slave node in different Boost strings respectively, and each slave node in the same Boost string can also receive requests from different master nodes and communicate with the master node.

[0107] Specifically, the communication mode includes at least one of broadcast, serial broadcast, unicast, and heartbeat broadcast. When a request message corresponding to the target slave node needs to be sent to the target slave node according to the communication mode, for each communication mode, the process of sending the request message includes at least one of the following:

[0108] When the communication mode is broadcast, the request message corresponding to the target slave node is broadcast to the target slave node based on the machine code of the master node. When sending the request message via broadcast, it is necessary to determine whether the master node and the slave node are on the same network based on the machine code of the master node. If they are on the same network, the request message is broadcast to the slave node.

[0109] In the case where the communication mode is broadcast, based on the machine code of the master node and the node code of the target slave node, the request message corresponding to the target slave node is broadcast to the target slave node.

[0110] It should be noted that within the same network, a master node can communicate with multiple slave nodes, each of which can belong to a different Boost string. If the master node needs to communicate with a slave node via serial broadcast, it must determine whether each slave node in serial broadcast with the master node belongs to the same Boost string based on the serial number in the slave node's node code. If so, serial broadcast communication will proceed.

[0111] In the case where the communication mode is unicast, the request message corresponding to the target slave node is unicast to the target slave node based on the node code and node sequence number of the target slave node.

[0112] It should be noted that the specific slave node that needs unicast can be locked through the slave node sequence number in the node code.

[0113] In the case where the communication method is heartbeat broadcast, the request message corresponding to the target slave node is broadcast to the target slave node according to the preset heartbeat time interval. Among them, the master node periodically sends request messages on each broadcast channel. The heartbeat time interval between each two groups of request messages consists of a fixed interval and a random delay, wherein the fixed interval value range can be 20 milliseconds to 10 seconds, with a step size of 1 millisecond, and the random delay is a pseudo-random value with a value range of 0 to 10 milliseconds, which is automatically generated by the system and added to the broadcast interval. This is mainly used to reduce the probability of signal conflict between multiple master nodes and improve the reliability of the connection. Heartbeat broadcast can be used to determine whether the master node and the slave node determine each other's status. Although the broadcast interval has a wide range of values, most devices follow the following broadcast interval value guidelines:

[0114] (1) Less than 100 milliseconds: Suitable for aggressive devices.

[0115] (2) 100-500 milliseconds: Commonly used fast broadcast, suitable for most devices.

[0116] (3) 1000-2000 milliseconds: Suitable for devices that connect to the gateway and have low latency requirements.

[0117] In the present invention, during the process of dividing multiple frequency bands, the channel corresponding to one frequency band is fixed as the broadcast channel, and the channels corresponding to the remaining frequency bands are fixed as data channels. Specifically, one frequency band is selected from each frequency band as the broadcast frequency band. The broadcast frequency band indicates that the communication mode between the slave node and the master node corresponding to the frequency band is broadcast communication.

[0118] It should be noted that only the master node can actively perform broadcast, serial broadcast, unicast, and heartbeat broadcast communications. Slave nodes can only passively receive broadcast, serial broadcast, unicast, and heartbeat broadcast communications.

[0119] In the embodiment of the present invention, the master node can communicate with the slave node through different communication modes to ensure the flexibility and reliability of the communication process.

[0120] In an embodiment of the present invention, after a master node sends a request message to a slave node, the slave node may respond based on the request message and establish a data connection with the master node. However, a slave node may fail to establish a connection with the master node due to an abnormal response. Therefore, after the master node actively sends a request message to a slave node, it is further configured to obtain a communication result between the master node and each slave node, where the communication result indicates either success or failure. If communication is successful, the master node establishes a connection with the slave node; if communication fails, no connection can be established.

[0121] In the present invention, the process of obtaining the communication result between the master node and each slave node may specifically include:

[0122] If the communication mode between the master node and the slave node is broadcast or serial broadcast, the node information of the slave node is read to determine the communication result of the slave node based on the node information.

[0123] It is understood that if the master node communicates with the slave node via broadcast or serial broadcast, the slave node will not actively reply to the message sent by the master node. If the master node needs to determine whether communication with the slave node is successful, it can obtain the communication structure by reading the node information of the slave node to determine whether the node information contains communication data for establishing communication with the master node.

[0124] If the communication mode between the master node and the slave node is unicast or heartbeat broadcast, a response message fed back by the slave node based on the request message corresponding to the slave node is received to determine the communication result of the slave node based on the response message.

[0125] It is understood that if the master node communicates with the slave node via unicast or heartbeat broadcast, the slave node will respond to the request message sent by the master node and feed back a response message to the master node. The response message fed back by the slave node can be a success response message or a failure response message.

[0126] A successful response message may include the machine code, node code, function code, synchronization content, data length, register address, and checksum. A failed response message may also include the machine code, node code, function code, synchronization content, data length, error code, and checksum. A successful response message indicates successful communication between the master and slave nodes, while a failed response message indicates failed communication. The error code in a failed response message can be "0x00" or a custom error code.

[0127] The method provided by the embodiment of the present invention can be applied to a photovoltaic power station monitoring system. The power line carrier of the photovoltaic power station system is divided into multiple frequency bands within a frequency range of 80 to 490 kHz, including broadcast frequency bands and general communication frequency bands. This allows the inverter PLC master node to communicate with multiple optimizer PLC slave nodes simultaneously in different frequency bands, and can simultaneously broadcast data to the optimizer slave nodes without interfering with each other's communications. This greatly enhances the efficiency of PLC communication. This makes the transmission of the current power line carrier signal on the power line more reliable, robust, and effective. Engineering applications have proven that the system has high communication efficiency and low bit error rate.

[0128] Corresponding to the method described in FIG1 , an embodiment of the present invention further provides a communication device, which is applied to a communication system, wherein the communication system includes at least one master node and at least one slave node. The communication device is used to implement the method in FIG1 , and its structural schematic diagram is shown in FIG4 , specifically including:

[0129] A division unit 401 is configured to divide a preset operating frequency range into a plurality of frequency bands, wherein the operating frequency range is a frequency range that allows the master node to communicate with the slave node;

[0130] A determining unit 402 is configured to determine a slave node for communication corresponding to each of the frequency bands;

[0131] The communication unit 403 is configured to communicate with the slave node corresponding to each of the frequency bands in accordance with a preset communication method; wherein the master node communicates with multiple slave nodes simultaneously via multiple frequency bands during the communication process.

[0132] In the device provided by the embodiment of the present invention, the operating frequency range of the power line carrier is divided into multiple frequency bands, each frequency band corresponds to a slave node, and the master node communicates with different slave nodes in different frequency bands. The slave nodes do not affect each other, thereby increasing communication efficiency and reliability and avoiding congestion of the PLC bus caused by communication between the master node and the slave node.

[0133] In the apparatus provided in the embodiment of the present invention, the dividing unit 401 includes:

[0134] A first determining subunit, configured to determine the number of slave nodes;

[0135] The division subunit is used to divide the operating frequency range into multiple frequency bands according to the number of slave nodes.

[0136] In the apparatus provided by the embodiment of the present invention, the determining unit 402 includes:

[0137] A first acquiring subunit is configured to acquire a node code corresponding to each slave node;

[0138] A second determining subunit is configured to determine an arrangement order of the slave nodes based on a node code corresponding to each of the slave nodes;

[0139] The third determining subunit is configured to determine the slave node for communication corresponding to each of the frequency bands based on the arrangement order of the slave nodes.

[0140] The device provided in the embodiment of the present invention further includes:

[0141] The setting unit is configured to set at least one frequency band in each of the frequency bands as a broadcast frequency band, where the broadcast frequency band is a communication frequency band for the master node to communicate with all the slave nodes.

[0142] In the apparatus provided by the embodiment of the present invention, the communication unit 403 includes:

[0143] A first generating subunit, configured to generate a request message corresponding to each of the slave nodes;

[0144] The sending subunit is used to determine the target slave node corresponding to the target frequency band when the operating frequency of the power line carrier belongs to the target frequency band, and send its corresponding request message to the target slave node according to a preset communication method.

[0145] In the apparatus provided in an embodiment of the present invention, the first generating subunit includes:

[0146] A second acquisition subunit is configured to acquire data content of the master node, wherein the data content includes at least a machine code, a register start address, and a register data amount of the master node;

[0147] The second generating subunit is configured to generate a request message of the slave node based on the data content and the node code of the slave node.

[0148] In the device provided by the embodiment of the present invention, the communication mode includes: at least one of broadcast, serial broadcast, unicast and heartbeat broadcast.

[0149] In the device provided by an embodiment of the present invention, the communication unit sends its corresponding request message to the target slave node according to a preset communication mode, specifically configured to perform at least one of the following:

[0150] Based on the machine code of the master node, broadcasting the request message corresponding to the target slave node to the target slave node;

[0151] Based on the machine code of the master node and the node code of the target slave node, broadcasting the request message corresponding to the target slave node to the target slave node;

[0152] Based on the node code of the target slave node and the device number of the master node, unicasting the request message corresponding to the target slave node to the target slave node;

[0153] According to the preset heartbeat time interval, the request message corresponding to the target slave node is broadcast to the target slave node.

[0154] The device provided in the embodiment of the present invention further includes:

[0155] The result determining unit is configured to obtain a communication result between the master node and the slave node, wherein the communication result is a communication success or a communication failure.

[0156] In the apparatus provided by an embodiment of the present invention, the result determination unit includes:

[0157] a reading subunit, configured to read node information of the slave node if the communication mode between the master node and the slave node is broadcast or serial broadcast, so as to determine a communication result of the slave node based on the node information;

[0158] A receiving subunit is used to receive a response message fed back by the slave node based on the request message corresponding to the slave node if the communication mode between the master node and the slave node is unicast or heartbeat broadcast, so as to determine the communication result of the slave node based on the response message.

[0159] For the specific working process of each unit and sub-unit in the communication device disclosed in the above embodiment of the present invention, reference can be made to the corresponding content in the communication method disclosed in the above embodiment of the present invention, and no further details will be given here.

[0160] Based on the communication method provided in the above embodiment, the present invention further provides a communication system, the system structure diagram of which is shown in FIG5 , specifically comprising:

[0161] At least one master node 501 and at least one slave node 502;

[0162] The master node 501 is configured to communicate with the at least one slave node 502 and perform the following process:

[0163] Dividing a preset operating frequency range into a plurality of frequency bands, wherein the operating frequency range is a frequency range that allows the master node to communicate with the slave node;

[0164] Determining a slave node for communication corresponding to each of the frequency bands;

[0165] Communicate with the slave nodes corresponding to each of the frequency bands according to a preset communication method; wherein, the master node communicates with multiple slave nodes simultaneously through multiple frequency bands during the communication process.

[0166] In an embodiment of the present invention, dividing the preset operating frequency range into multiple frequency bands includes:

[0167] Determine the number of slave nodes;

[0168] The operating frequency range is divided into multiple frequency bands according to the number of slave nodes.

[0169] In the embodiment of the present invention, determining the slave node corresponding to each frequency band for communication includes:

[0170] Obtaining a node code corresponding to each slave node, wherein the node code is a unique identification code of the slave node;

[0171] Determining an arrangement order of the slave nodes based on a node code corresponding to each slave node;

[0172] Based on the arrangement order of the slave nodes, the slave node corresponding to each frequency band is determined.

[0173] In an embodiment of the present invention, the following further comprises:

[0174] At least one frequency band in each of the frequency bands is set as a broadcast frequency band, and the broadcast frequency band is a communication frequency band for the master node to communicate with all the slave nodes.

[0175] In the embodiment of the present invention, communicating with the slave node corresponding to each of the frequency bands according to a preset communication method includes:

[0176] Generate a request message corresponding to each of the slave nodes;

[0177] When the operating frequency of the power line carrier belongs to the target frequency band, the target slave node corresponding to the target frequency band is determined, and the corresponding request message is sent to the target slave node according to a preset communication method.

[0178] In the embodiment of the present invention, for each slave node, generating a request message corresponding to the slave node includes:

[0179] Acquire data content of the master node, where the data content includes at least a machine code, a register start address, and a register data amount of the master node;

[0180] A request message of the slave node is generated based on the data content and the node code of the slave node.

[0181] In the embodiment of the present invention, the communication mode includes at least one of broadcast, serial broadcast, unicast and heartbeat broadcast.

[0182] In the embodiment of the present invention, the sending of the corresponding request message to the target slave node according to the preset communication mode includes at least one of the following:

[0183] Based on the machine code of the master node, broadcasting the request message corresponding to the target slave node to the target slave node;

[0184] Based on the machine code of the master node and the node code of the target slave node, broadcasting the request message corresponding to the target slave node to the target slave node;

[0185] Based on the node code and node sequence number of the target slave node, unicasting the request message corresponding to the target slave node to the target slave node;

[0186] According to the preset heartbeat time interval, the request message corresponding to the target slave node is broadcast to the target slave node.

[0187] In an embodiment of the present invention, the following further comprises:

[0188] A communication result between the master node and the slave node is obtained, where the communication result is communication success or communication failure.

[0189] In the embodiment of the present invention, obtaining the communication result between the master node and each of the slave nodes includes:

[0190] If the communication mode between the master node and the slave node is broadcast or serial broadcast, reading the node information of the slave node to determine the communication result of the slave node based on the node information;

[0191] If the communication mode between the master node and the slave node is unicast or heartbeat broadcast, a response message fed back by the slave node based on the request message corresponding to the slave node is received to determine the communication result of the slave node based on the response message.

[0192] The at least one slave node is configured to receive a request message sent by the master node during communication with the master node.

[0193] It should be noted that, in a communication system, a master node can communicate with at least one slave node, and a slave node can receive request messages, messages, data, etc. sent by at least one master node.

[0194] In the present invention, as shown in FIG6 , the communication system may specifically be a photovoltaic power generation system, wherein the master node may be an inverter and the slave node may be an optimizer.

[0195] Each embodiment in this specification is described in a progressive manner. The same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, for system or system embodiments, since they are basically similar to method embodiments, the description is relatively simple. For relevant parts, refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without expending creative work.

[0196] Those skilled in the art may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein may be implemented by electronic hardware, computer software, or a combination of both.

[0197] To clearly illustrate the interchangeability of hardware and software, the above descriptions have generally described the components and steps of each example by function. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Professionals may use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of the present invention.

[0198] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention is not limited to the embodiments shown herein but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A communication method, characterized in that: The method is applied to a communication system, the communication system comprising at least one master node and at least one slave node, and the method comprises: The master node divides a preset working frequency range into a plurality of frequency bands, wherein the working frequency range is a frequency range that allows the master node to communicate with the slave node; The master node determines at least one slave node for communication corresponding to each of the frequency bands; The master node communicates with the slave nodes corresponding to each of the frequency bands according to a preset communication method; wherein, the master node communicates with multiple slave nodes simultaneously through multiple frequency bands during the communication process.

2. The method according to claim 1, characterized in that The step of dividing the preset operating frequency range into a plurality of frequency bands includes: Determine the number of slave nodes; The operating frequency range is divided into a plurality of frequency bands according to the number of slave nodes.

3. The method according to claim 1, characterized in that The determining of the slave node corresponding to each frequency band for communication includes: Determine a node code corresponding to each of the slave nodes, wherein the node code is a unique identification code of the slave node; Determine the arrangement order of each of the slave nodes based on the node code corresponding to each of the slave nodes; Based on the arrangement order of each of the slave nodes, a slave node for communication corresponding to each of the frequency bands is determined.

4. The method according to any one of claims 1 to 3, characterized in that: Also includes: At least one frequency band is set as a broadcast frequency band in each of the frequency bands. The broadcast frequency band is a communication frequency band for the master node to communicate with all the slave nodes.

5. The method according to claim 1, characterized in that The communicating with the slave node corresponding to each of the frequency bands according to a preset communication mode includes: Generate a request message corresponding to each slave node; When the operating frequency of the power line carrier belongs to the target frequency band, at least one target slave node corresponding to the target frequency band is determined, and a corresponding request message is sent to the target slave node according to a preset communication mode.

6. The method according to claim 5, characterized in that For each of the slave nodes, generating a request message corresponding to the slave node includes: Acquire data content of the master node, wherein the data content at least includes a machine code, a register start address, and a register data amount of the master node; A request message of the slave node is generated based on the data content and the node code of the slave node.

7. The method according to claim 5, characterized in that The communication mode includes: at least one of broadcast, serial broadcast, unicast and heartbeat broadcast.

8. The method according to claim 7, characterized in that The sending of the corresponding request message to the target slave node according to the preset communication mode includes at least one of the following: In the case where the communication mode is broadcast, based on the machine code of the master node, broadcasting the request message corresponding to the target slave node to the target slave node, the machine code being used to determine that the master node and the target slave node belong to the same network; In the case where the communication mode is serial broadcast, based on the machine code of the master node and the serial number in the node code of the target slave node, the request message corresponding to the target slave node is serially broadcast to the target slave node, and the serial number is used to determine that at least one target slave node to be received belongs to the same Boost group string; In the case where the communication mode is unicast, based on the machine code of the master node and the node code of the target slave node, unicasting the request message corresponding to the target slave node to the target slave node; In the case where the communication mode is heartbeat broadcast, the request message corresponding to the target slave node is broadcast to the target slave node according to a preset heartbeat time interval.

9. The method according to any one of claims 5 to 8, characterized in that: Also includes: A communication result between the master node and the slave node is obtained, where the communication result is communication success or communication failure.

10. The method according to claim 9, characterized in that The obtaining of the communication result between the master node and each of the slave nodes comprises: If the communication mode between the master node and the slave node is broadcast or serial broadcast, reading the node information of the slave node to determine the communication result of the slave node based on the node information; If the communication mode between the master node and the slave node is unicast or heartbeat broadcast, a response message fed back by the slave node based on the request message corresponding to the slave node is received to determine the communication result of the slave node based on the response message.

11. A communication device, characterized in that: The device is applied to a communication system, the communication system includes at least one master node and at least one slave node, and the device includes: A division unit, used to divide a preset working frequency range into a plurality of frequency bands, wherein the working frequency range is a frequency range that allows the master node to communicate with the slave node; A determination unit, used to determine a slave node corresponding to each of the frequency bands for communication; A communication unit is used to communicate with the slave nodes corresponding to each of the frequency bands according to a preset communication method; wherein the master node communicates with multiple slave nodes simultaneously through multiple frequency bands during the communication process.

12. The device according to claim 11, characterized in that The division unit comprises: A first determining subunit, used to determine the number of slave nodes; The division subunit is used to divide the operating frequency range into multiple frequency bands according to the number of slave nodes.

13. The device according to claim 11, characterized in that The second determining unit includes: A first acquisition subunit is used to acquire a node code corresponding to each slave node, wherein the node code is a unique identification code of the slave node; A second determining subunit, configured to determine an arrangement order of each of the slave nodes based on a node code corresponding to each of the slave nodes; The third determining subunit is used to determine the slave node corresponding to each of the frequency bands for communication based on the arrangement order of each of the slave nodes.

14. The device according to claim 11, characterized in that The communication unit sends a corresponding request message to the target slave node according to a preset communication mode, specifically for performing at least one of the following: In the case where the communication mode is broadcast, based on the machine code of the master node, broadcasting the request message corresponding to the target slave node to the target slave node, the machine code being used to determine that the master node and the target slave node belong to the same network; In the case where the communication mode is serial broadcast, based on the machine code of the master node and the serial number in the node code of the target slave node, the request message corresponding to the target slave node is serially broadcast to the target slave node, and the serial number is used to determine that at least one target slave node to be received belongs to the same Boost group string; In the case where the communication mode is unicast, based on the machine code of the master node and the node code of the target slave node, unicasting the request message corresponding to the target slave node to the target slave node; In the case where the communication mode is heartbeat broadcast, the request message corresponding to the target slave node is broadcast to the target slave node according to a preset heartbeat time interval.

15. A communication system, characterized in that: include: at least one master node and at least one slave node; The master node is used to communicate with the at least one slave node and execute the communication method according to any one of claims 1 to 10 above; The slave node is used to receive a request message sent by the master node during the communication process with the master node.

16. The communication system according to claim 15, characterized in that: The master node is an inverter; the slave node is an optimizer.

Citation Information

Patent Citations

  • Communication method, device and system

    CN116566437A

  • Access control method, device, equipment and medium

    CN113395742A

  • Networking method and device of power internet of things, storage medium and node

    CN113766520A

  • Marketing and distribution isolation method applied to power line high-speed carrier communication

    CN115865134A

  • Photovoltaic system and communication method

    CN115912956A