WO2025112183A1 - 通信控制方法、装置、主机设备、从机设备和光伏系统 - Google Patents

通信控制方法、装置、主机设备、从机设备和光伏系统 Download PDF

Info

Publication number
WO2025112183A1
WO2025112183A1 PCT/CN2024/073411 CN2024073411W WO2025112183A1 WO 2025112183 A1 WO2025112183 A1 WO 2025112183A1 CN 2024073411 W CN2024073411 W CN 2024073411W WO 2025112183 A1 WO2025112183 A1 WO 2025112183A1
Authority
WO
WIPO (PCT)
Prior art keywords
frequency band
communication
host device
slave
host
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.)
Pending
Application number
PCT/CN2024/073411
Other languages
English (en)
French (fr)
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.)
Sungrow Power Supply Co Ltd
Original Assignee
Sungrow Power Supply 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 Sungrow Power Supply Co Ltd filed Critical Sungrow Power Supply Co Ltd
Publication of WO2025112183A1 publication Critical patent/WO2025112183A1/zh
Anticipated expiration legal-status Critical
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/02Details
    • H04B3/04Control of transmission; Equalising
    • H04B3/06Control of transmission; Equalising by the transmitted signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/005Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission adapting radio receivers, transmitters andtransceivers for operation on two or more bands, i.e. frequency ranges
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/74Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission for increasing reliability, e.g. using redundant or spare channels or apparatus
    • 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
    • H04L12/1863Arrangements for providing special services to substations for broadcast or conference, e.g. multicast comprising mechanisms for improved reliability, e.g. status reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • H04L12/40045Details regarding the feeding of energy to the node from the bus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40169Flexible bus arrangements
    • H04L12/40176Flexible bus arrangements involving redundancy
    • H04L12/40195Flexible bus arrangements involving redundancy by using a plurality of nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss

Definitions

  • the present invention relates to the field of electric power technology, and in particular to a communication control method, device, host equipment, slave equipment and photovoltaic system.
  • the communication medium of PLC Power Line Communication
  • PLC Power Line Communication
  • noise in the power cable, which will cause loss of communication signal.
  • the type and material of the power cable will also affect the communication signal. If the distance between the two ends of the communication is far, the length of the power cable is long, and the attenuation of the PLC communication signal is large, resulting in high packet loss rate and unstable communication quality.
  • an object of the present invention is to provide a communication control method, apparatus, host device, slave device and photovoltaic system to reduce the packet loss rate of communication and improve the stability of communication quality.
  • an embodiment of the present invention provides a communication control method, which is applied to a photovoltaic system; in the photovoltaic system, a host device and a slave device are connected via a power cable; the method comprises: the host device communicates with the slave device using a first frequency band, and statistics the communication packet loss rate of the slave device within a specified historical time period; if the communication packet loss rate of the slave device is greater than a preset packet loss rate threshold, the host device controls the communication frequency band of the slave device to be switched to a second frequency band; wherein the frequency band value of the second frequency band is lower than the frequency band value of the first frequency band.
  • the above-mentioned slave devices include multiple ones; if the communication packet loss rate of the slave device is greater than the preset packet loss rate threshold, the host device controls the step of switching the communication frequency band of the first device to the second frequency band, including: if the communication packet loss rate of the first device among the slave devices is greater than the preset packet loss rate threshold, the host device controls the communication frequency band of the first device to be switched to the second frequency band, and the communication frequency band of the slave devices other than the first device remains at the first frequency band.
  • the host device controls the communication frequency band of the first device to be switched to the second frequency band, and the communication frequency band of the slave devices other than the first device remains at the first frequency band, the above method also includes: the host device uses the second frequency band to communicate with the first device, and uses the first frequency band to communicate with the slave devices other than the first device.
  • the step of the host device using the first frequency band to communicate with the slave device includes: the host device uses the first frequency band to send a communication message to the slave device and starts timing; within a preset timing period, the host device waits to receive a reply message from the slave device to the communication message.
  • the above-mentioned step of counting the communication packet loss rate of the slave device within the specified historical time period includes: the host device obtains the communication message volume of the communication messages sent to the slave device within the specified historical time period, and the reply message volume of the reply messages received in response to the communication messages; based on the ratio of the reply message volume to the communication message volume, the communication packet loss rate of the slave device is determined.
  • the above-mentioned host device controls the step of switching the communication frequency band of the first device to the second frequency band, including: the host device sends a frequency band setting instruction to the first device; the first device receives the frequency band setting instruction and switches the communication frequency band of the first device to the second frequency band; the host device saves the correspondence between the device address associated with the first device and the second frequency band.
  • the method further includes: the host device generates a correspondence between the device address associated with the slave device and the communication frequency band; wherein, in the initial state, the communication frequency bands in the correspondence are all the first frequency band; the step of the host device saving the correspondence between the device address associated with the first device and the second frequency band includes: the host device updates the communication frequency band corresponding to the device address associated with the first device to the second frequency band in the correspondence.
  • the above-mentioned step of using the second frequency band to communicate with the first device, and the host device using the first frequency band to communicate with slave devices other than the first device includes: the host device obtains a message to be sent
  • the invention relates to a method for extracting a target device address from a message to be sent; determining a target communication frequency band corresponding to the target device address from a correspondence between a device address associated with a slave device and a communication frequency band; wherein, in the correspondence, a device address associated with a first device corresponds to and stores a second frequency band, and a device address associated with a slave device other than the first device corresponds to and stores a first frequency band; if the target communication frequency band is the first frequency band, the host device uses the first frequency band to send the message to be sent to the slave device associated with the target device address; if the target communication frequency band is the second frequency band, the host device uses the second frequency band to send the message to be sent to the first device associated with the target device address.
  • the above-mentioned step in which if the target communication frequency band is the first frequency band, the host device uses the first frequency band to send the message to be sent to the slave device associated with the target device address includes: if the target communication frequency band is the first frequency band, the host device obtains the communication frequency band of the host device; if the communication frequency band is the second frequency band, the host device switches the communication frequency band to the first frequency band, and uses the first frequency band to send the message to be sent to the slave device associated with the target device address.
  • the above-mentioned step of using the second frequency band to send the message to be sent to the first device associated with the target device address if the target communication frequency band is the second frequency band includes: if the target communication frequency band is the second frequency band, the host device obtains the communication frequency band of the host device; if the communication frequency band is the first frequency band, the host device switches the communication frequency band to the second frequency band, and uses the second frequency band to send the message to be sent to the first device associated with the target device address.
  • the host device is also connected to the host computer for communication; the method further includes: the host device receives a relationship setting instruction issued by the host computer, and obtains the device to be set and the frequency band to be set from the relationship setting instruction; in the corresponding relationship, the communication frequency band corresponding to the device address associated with the device to be set is updated to the frequency band to be set.
  • the above-mentioned host device is also communicatively connected with the data collector in the photovoltaic system; the above-mentioned method also includes: the host device obtains the broadcast message sent by the data collector, and broadcasts the broadcast message using the first frequency band; the slave device using the first frequency band receives the broadcast message; the host device switches the communication frequency band from the first frequency band to the second frequency band, and broadcasts the broadcast message using the second frequency band; the slave device using the second frequency band receives the broadcast message.
  • an embodiment of the present invention provides a communication control device, which is arranged in a photovoltaic system; in the photovoltaic system, a host device and a slave device are connected via a power cable; the device comprises: a first communication module, which is used for the host device to communicate with the slave device using a first frequency band, and a statistical indicator The communication packet loss rate of the slave device in a certain historical time period; a first control module, used for controlling the host device to switch the communication frequency band of the slave device to a second frequency band if the communication packet loss rate of the slave device is greater than a preset packet loss rate threshold; wherein the frequency band value of the second frequency band is lower than the frequency band value of the first frequency band.
  • an embodiment of the present invention provides a host device, the host device includes a processor and a memory, the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement any communication control method of the first aspect.
  • an embodiment of the present invention provides a slave device, comprising a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor; the slave device is connected to the host device of the third aspect via a power cable.
  • an embodiment of the present invention provides a photovoltaic system, comprising a host device of the third aspect, and a slave device of the fourth aspect; the host device uses a first frequency band to communicate with the slave device, and counts the communication packet loss rate of the slave device within a specified historical time period; if the communication packet loss rate of the slave device is greater than a preset packet loss rate threshold, the host device controls the communication frequency band of the slave device to be switched to a second frequency band; wherein the frequency band value of the second frequency band is lower than the frequency band value of the first frequency band.
  • the above host device is connected to the data collector; the slave device is connected to the inverter.
  • the above-mentioned slave devices include multiple ones; if the communication packet loss rate of the first device among the slave devices is greater than the preset packet loss rate threshold, the host device controls the communication frequency band of the first device to be switched to the second frequency band, and the communication frequency band of the slave devices other than the first device remains at the first frequency band.
  • the host device uses the second frequency band to communicate with the first device, and uses the first frequency band to communicate with slave devices other than the first device.
  • the host device sends a communication message to the slave device using the first frequency band and starts timing; within a preset timing period, the host device waits to receive a reply message from the slave device to the communication message.
  • the host device obtains the communication message volume of the communication messages sent to the slave device and the reply message volume of the reply messages received in response to the communication messages within a specified historical time period; and determines the communication packet loss rate of the slave device based on the ratio of the reply message volume to the communication message volume.
  • the host device sends a frequency band setting instruction to the first device; the first device receives the frequency band setting instruction and switches the communication frequency band of the first device to the second frequency band; the host device saves the corresponding relationship between the device address associated with the first device and the second frequency band.
  • the above-mentioned host device generates a correspondence between the device address associated with the slave device and the communication frequency band; wherein, in the initial state, the communication frequency bands in the correspondence are all the first frequency bands; after the host device sends a frequency band setting instruction to the first device, the host device updates the communication frequency band corresponding to the device address associated with the first device to the second frequency band in the correspondence.
  • the above-mentioned host device obtains the message to be sent, extracts the target device address from the message to be sent; determines the target communication frequency band corresponding to the target device address from the correspondence between the device address associated with the slave device and the communication frequency band; wherein, in the correspondence, the device address associated with the first device corresponds to the second frequency band, and the device addresses associated with the slave devices other than the first device correspond to the first frequency band; if the target communication frequency band is the first frequency band, the host device uses the first frequency band to send the message to be sent to the slave device associated with the target device address; if the target communication frequency band is the second frequency band, the host device uses the second frequency band to send the message to be sent to the first device associated with the target device address.
  • the host device obtains the communication frequency band of the host device; if the communication frequency band is the second frequency band, the host device switches the communication frequency band to the first frequency band, and uses the first frequency band to send the message to be sent to the slave device associated with the target device address.
  • the host device obtains the communication frequency band of the host device; if the communication frequency band is the first frequency band, the host device switches the communication frequency band to the second frequency band, and uses the second frequency band to send the message to be sent to the first device associated with the target device address.
  • the host device is also connected to the host computer for communication; the host device receives the relationship setting instruction issued by the host computer, obtains the device to be set and the frequency band to be set from the relationship setting instruction; in the corresponding relationship, updates the communication frequency band corresponding to the device address associated with the device to be set to the frequency band to be set.
  • the above-mentioned host device is also communicatively connected with the data collector in the photovoltaic system; the host device obtains the broadcast message sent by the data collector, and broadcasts the broadcast message using the first frequency band; the slave device using the first frequency band receives the broadcast message; the host device switches the communication frequency band from the first frequency band to the second frequency band, and broadcasts the broadcast message using the second frequency band; the slave device using the second frequency band receives the broadcast message.
  • the communication control method, device, host device, slave device and photovoltaic system wherein the method is applied to a photovoltaic system; in the photovoltaic system, the host device and the slave device are connected via a power cable.
  • the method includes: the host device uses a first frequency band to communicate with a slave device, and counts the communication packet loss rate of the slave device in a specified historical time period; if the communication packet loss rate of the slave device is greater than a preset packet loss rate threshold, the host device controls the communication frequency band of the slave device to be switched to a second frequency band; wherein the frequency band value of the second frequency band is lower than the frequency band value of the first frequency band.
  • the host device when the host device communicates with the slave device, if the communication packet loss rate of the slave device is high, the communication frequency band of the slave device is automatically switched to a low-frequency band.
  • the host device uses the low-frequency band to communicate with the slave device, thereby reducing the communication packet loss rate and improving the stability of the communication quality.
  • FIG1 is a schematic diagram of a type of power cable provided by an embodiment of the present invention.
  • FIG2 is a schematic diagram of an intra-array communication network provided by an embodiment of the present invention.
  • FIG3 is a flow chart of a communication control method provided by an embodiment of the present invention.
  • FIG4 is a schematic diagram of a connection method between a host device and a slave device provided by an embodiment of the present invention
  • FIG5 is a schematic diagram of a correspondence between a device address and a communication frequency band provided by an embodiment of the present invention.
  • FIG. 6 is a flow chart of establishing a corresponding relationship according to packet loss rate feedback provided by an embodiment of the present invention.
  • FIG. 7 is a flow chart of a host device sending a communication message according to an embodiment of the present invention.
  • FIG8 is a schematic diagram of the structure of a communication control device provided by an embodiment of the present invention.
  • FIG9 is a schematic diagram of a host device provided by an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of the structure of a photovoltaic system provided in an embodiment of the present invention.
  • PLC Power Line Communication
  • inverter RS485 communication method has gradually replaced the traditional inverter RS485 communication method and become the mainstream communication method for photovoltaic inverters in the field station because it can save the cost of laying communication cables and manpower separately.
  • PLC network has a variety of frequency bands to choose from, which are mainly divided into two types according to the frequency range: high frequency (such as 2-6MHz) and low frequency (such as 0.3-2Mhz).
  • PLC brings convenience to communication, but it also brings instability to communication.
  • Power cables can generally be divided into: single-core copper, single-core aluminum, multi-core copper, and multi-core aluminum. As shown in Figure 1, since multi-core cables are bundled together, the PLC signal loss is small; since the three wires ABC of the single-core cable are completely separated, if the bundling is not standardized, it will cause a large PLC signal loss at some inverter nodes.
  • the communication network within an array consists of a data logger and multiple inverters.
  • the PLC host device is built into the Logger, and the PLC
  • the slave device is built into the inverter, and the inverter INV2 is too far away from the logger, causing excessive attenuation of the PLC.
  • the PLC frequency band in the network is usually reduced to a low frequency to obtain a greater transmission signal strength, but this will also cause crosstalk problems.
  • this embodiment provides a communication control method, apparatus, host device, slave device and photovoltaic system, which can be applied to power line carrier communication.
  • FIG3 is a flow chart of a communication control method according to an embodiment of the present invention.
  • the present invention discloses a communication control method, which is applied to a host device of power line carrier communication, wherein the host device is connected to a slave device via a power cable.
  • the host device may be one or more, and the slave device may also be one or more.
  • the host device and the slave device as shown in FIG4 are connected to each other via a three-phase power line.
  • the method includes:
  • the host device communicates with the slave device using the first frequency band, and counts the communication packet loss rate of the slave device in a specified historical time period;
  • the first frequency band is usually set to a high frequency band.
  • the specified historical time period is the time period after the power equipment is powered on; wherein, power on refers to the process of turning on the power supply to power on the equipment.
  • the communication packet loss rate can be obtained by the ratio of the lost part of the data packet to the total number of transmitted data packets. Under normal circumstances, the communication packet loss rate should be controlled within a certain range.
  • the host device uses the first frequency band to communicate with the slave device. After the power device is powered on, the communication packet loss rate of the slave device is counted every 30 minutes. When the statistical time point is reached, the communication packet loss rate of each slave device in the past 30 minutes from the time point is counted.
  • the host device controls the communication frequency band of the slave device to be switched to a second frequency band; wherein the frequency band value of the second frequency band is lower than the frequency band value of the first frequency band;
  • Each inverter device corresponds to a slave device.
  • the preset packet loss rate threshold is a preset percentage.
  • the second frequency band is usually set to a low frequency band.
  • the slave device is controlled to switch the communication frequency band, and the communication frequency band of the slave device is switched from the first frequency band to the second frequency band whose frequency band value is lower than the first frequency band.
  • the communication packet loss rate of the slave device when the communication packet loss rate of the slave device is higher than the standard value of 5%, it is generally considered that the communication signal attenuation is large and the packet loss is serious; at this time, if the communication frequency band of the slave device is a high frequency band, the slave device is controlled to switch the high frequency band to a low frequency band.
  • the above-mentioned communication control method is applied to a photovoltaic system, where a host device and a slave device are connected via a power cable, and includes: the host device uses a first frequency band to communicate with the slave device, and counts the communication packet loss rate of the slave device within a specified historical time period; if the communication packet loss rate of the slave device is greater than a preset packet loss rate threshold, the host device controls the communication frequency band of the slave device to be switched to a second frequency band; wherein the frequency band value of the second frequency band is lower than the frequency band value of the first frequency band.
  • the host device when the host device communicates with the slave device, if the communication packet loss rate of the slave device is high, the communication frequency band of the slave device is automatically switched to a low-frequency band.
  • the host device uses the low-frequency band to communicate with the slave device, thereby reducing the communication packet loss rate and improving the stability of the communication quality.
  • the slave devices include multiple slave devices; when switching the communication frequency band of the slave devices, if the communication packet loss rate of the first device in the slave devices is greater than a preset packet loss rate threshold, the host device controls the communication frequency band of the first device to be switched to the second frequency band, and the communication frequency band of the slave devices other than the first device remains at the first frequency band.
  • the host device controls the first device to switch the communication frequency band, and switches the communication frequency band of the first device from the first frequency band to the second frequency band whose frequency band value is lower than the first frequency band, and the communication frequency band of the slave devices other than the first device still remains the first frequency band.
  • the communication packet loss rate of the first device when the communication packet loss rate of the first device is higher than the standard value of 5%, it is generally considered that the communication signal attenuation is large and the packet loss is serious; at this time, if the communication frequency band of the first device is a high-frequency band, the first device is controlled to switch the high-frequency band to a low-frequency band, and the communication frequency band of the slave devices other than the first device remains in the high-frequency band.
  • the host device uses the second frequency band to communicate with the first device, and uses the first frequency band to communicate with slave devices other than the first device.
  • the host device controls the communication frequency band of the first device to be switched to the second frequency band, and the host device uses the second frequency band to communicate with the first device.
  • the host device uses the first frequency band to communicate with slave devices among the slave devices except the first device.
  • the host device controls the communication frequency band of the first device to be switched to a low-frequency band, and then the host device uses the low-frequency band to communicate with the first device, and uses the high-frequency band to communicate with the slave devices among the slave devices except the first device.
  • the host device sends a communication message to the slave device using a first frequency band and starts timing; within a preset timing period, the host device waits to receive a reply message from the slave device to the communication message.
  • the above communication messages are usually Modbus messages, which is an application layer message transmission protocol.
  • the host device and the slave device are connected to the same communication link, and when the host device sends a communication message to the slave device using the first frequency band, the timing starts. Then, within the preset timing duration, the host device waits to receive a reply message from the slave device for the communication message; if the host device does not receive the reply message within the preset timing duration, it is considered that the packet is lost, that is, the data packet is lost.
  • a timing period of 2 seconds begins. During the 2 seconds, the host device is always in the high frequency band, waiting for a reply message from the slave device to the communication message.
  • the communication frequency band in which the host device sends communication messages and receives reply messages is consistent with the communication frequency band in which the slave device receives communication messages and sends reply messages.
  • the host device obtains the communication message volume of the communication messages sent to the slave device within a specified historical time period, and the reply message volume of the reply messages received in response to the communication messages; based on the ratio of the reply message volume to the communication message volume, the communication packet loss rate of the slave device is determined.
  • the above-mentioned communication message volume and reply message volume are the number of communication messages and the number of reply messages.
  • the host device obtains the communication message volume tx of the communication messages sent to the slave device, and the reply message volume rx of the reply messages received in response to the communication messages, calculates the ratio of the reply message volume rx to the communication message volume tx, and then subtracts 1 from the ratio to obtain the communication packet loss rate of the slave device.
  • the host device sends a frequency band setting instruction to the first device, and the first device receives the frequency band setting instruction and switches the communication frequency band of the first device to the second frequency band; the host device saves the corresponding relationship between the device address associated with the first device and the second frequency band.
  • the frequency band setting instruction is a special instruction sent by the host device to the first device, which is used to control the first device to change the communication frequency band.
  • the device address is the communication address of the inverter device corresponding to the first device.
  • the first device receives the frequency band setting instruction and switches the first device from the current communication frequency band to the second frequency band.
  • the host device records and saves the corresponding relationship between the device address associated with the first device and the second frequency band; wherein the corresponding relationship is a topological relationship, which refers to the spatial interconnection and adjacency relationship between the device address and the communication frequency band.
  • the device address associated with the slave device is the first address of the communication message, that is, the number corresponding to each inverter device.
  • the host device sends a frequency band setting instruction to the slave device corresponding to inverter device No. 2, and the first device receives the frequency band setting instruction and switches the communication frequency band of the slave device corresponding to inverter device No. 2 from the high-frequency band to the low-frequency band as shown in FIG. 5.
  • the host device saves the corresponding relationship between the device address associated with inverter device No.
  • the power-off memory function enables the various operating states of the power equipment to be instantly memorized and locked after a sudden power outage, so that the equipment can still operate according to the set state after power is restored.
  • the host device before the host device sends a frequency band setting instruction, the host device generates a correspondence between the device address associated with the slave device and the communication frequency band; wherein, in an initial state, the communication frequency bands in the correspondence are all first frequency bands; when the host device establishes a correspondence between the device address and the communication frequency band, the host device updates the communication frequency band corresponding to the device address associated with the first device to the second frequency band in the correspondence.
  • the host device pre-generates a correspondence between a device address associated with the slave device and a communication frequency band.
  • the communication frequency bands corresponding to the device addresses associated with the slave devices are all first frequency bands, for example, the communication frequency bands in the corresponding relationship are all high frequency bands.
  • the host device saves the correspondence between the device address associated with the first device and the second frequency band; at this time, the host device can search for the device address associated with the first device in the correspondence, and then update the communication frequency band corresponding to the device address associated with the first device to the second frequency band.
  • the host device can search for the device address No. 2 associated with the first device in the correspondence, and then set the communication frequency band corresponding to the device address No. 2 associated with the first device to the low frequency band.
  • a flow chart of establishing a corresponding relationship according to packet loss rate feedback is shown in Figure 6. The steps of the flow chart are described below.
  • the packet loss rate is higher than the standard value of 5%, it is considered that the signal attenuation is large and the packet loss is serious, and the communication frequency band of this inverter needs to be switched to a low frequency.
  • the host device changes the PLC frequency band of the inverter to a low frequency through the frequency band setting instruction, and records the address and frequency band and stores them in the flash.
  • the host device obtains a message to be sent and extracts a target device address from the message to be sent; from the correspondence between the device address associated with the slave device and the communication frequency band, the target communication frequency band corresponding to the target device address is determined; wherein, in the correspondence, the device address associated with the first device corresponds to the second frequency band, and the device addresses associated with the slave devices other than the first device correspond to the first frequency band; if the target communication frequency band is the first frequency band, the host device uses the first frequency band to send the message to be sent to the slave device associated with the target device address; if the target communication frequency band is the second frequency band, the host device uses the second frequency band to send the message to be sent to the first device associated with the target device address.
  • the target device address is the device address of the target inverter device.
  • the target communication frequency band is the communication frequency band that needs to be set when the host device sends a message to be sent to the slave device.
  • the host device obtains the message to be sent and extracts the target device address from the message to be sent.
  • the host device receives all Modbus messages sent from the data collector, and extracts the first address from the message to be sent.
  • the host device determines the target communication frequency band corresponding to the target device address in the correspondence between the device address associated with the slave device and the communication frequency band; in this correspondence, the device address associated with the first device corresponds to the second frequency band, and the device addresses associated with the slave devices other than the first device correspond to the first frequency band.
  • the correspondence between the device address associated with the slave device and the communication frequency band is shown in FIG5 , and the host device determines from the correspondence whether the target communication frequency band is a high frequency band or a low frequency band. Assuming that the slave device corresponding to the inverter device No. 2 is the first device, the device address associated with the inverter device No. 2 stores the low frequency band, and the slave devices corresponding to the inverters No. 1, 3 to 5 except the inverter device No. 2 store the high frequency band.
  • the host device sends the message to be sent to the slave device according to the target communication frequency band. If the target communication frequency band is the first frequency band, the message to be sent is sent to the slave device associated with the target device address using the first frequency band; if the target communication frequency band is the second frequency band, the message to be sent is sent to the first device associated with the target device address using the second frequency band.
  • the host device uses the high-frequency band to send the message to be sent to the slave device associated with the inverter device address No. 1, No. 3, No. 4 or No. 5; if the target communication frequency band is a low-frequency band, the host device uses the low-frequency band to send the message to be sent to the slave device associated with the inverter device address No. 2.
  • the host device obtains the communication frequency band of the host device; if the communication frequency band is the second frequency band, the host device switches the communication frequency band to the first frequency band, and uses the first frequency band to send the message to be sent to the slave device associated with the target device address.
  • the host device obtains the current communication frequency band of the host device; then, if the current communication frequency band is the second frequency band, the host device switches the second frequency band to the first frequency band, and the host device uses the first frequency band to send the message to be sent to the slave device associated with the target device address.
  • the host device when the communication frequency band corresponding to the first address extracted in the message to be sent is a high-frequency frequency band, the host device first obtains the current communication frequency band of the host device. If the current communication frequency band of the host device is a low-frequency frequency band, the host device switches the low-frequency frequency band to the high-frequency frequency band, and uses the high-frequency frequency band to send the message to be sent to the slave device associated with the first address.
  • the host device obtains the communication frequency band of the host device; if the communication frequency band is the first frequency band, the host device switches the communication frequency band to the second frequency band, and uses the second frequency band to send the message to be sent to the first device associated with the target device address.
  • the host device obtains the current communication frequency band of the host device; then, if the current communication frequency band is the first frequency band, the host device switches the first frequency band to the second frequency band, and the host device uses the second frequency band to send the message to be sent to the slave device associated with the target device address.
  • the host device when the communication frequency band corresponding to the first address extracted from the message to be sent is a low frequency band, the host device first obtains the current communication frequency band of the host device. If the current communication frequency band of the host device is If the frequency band is high, the host device switches the high frequency band to the low frequency band, and uses the low frequency band to send the message to be sent to the slave device associated with the first address.
  • the corresponding relationship between the device address and the communication frequency band can not only be automatically established through the feedback of the above-mentioned communication packet loss rate, but also can be established by manually sending a relationship setting instruction.
  • the host device is also connected to the host computer for communication; the host device receives the relationship setting instruction issued by the host computer, obtains the device to be set and the frequency band to be set from the relationship setting instruction; in the corresponding relationship, updates the communication frequency band corresponding to the device address associated with the device to be set to the frequency band to be set.
  • the above relationship setting instructions are set manually.
  • the staff can use the USB to RS485 serial port driver to simulate the traditional serial port through the USB interface of the terminal, realize the connection and communication between the programming cable and the power line carrier communication device, and configure the parameters of the relationship setting instructions.
  • the host device receives the relationship setting instruction sent by the upper computer, and obtains the device to be set and the frequency band to be set from the relationship setting instruction; then, in the corresponding relationship between the device address and the communication frequency band, the host device updates the communication frequency band corresponding to the device address associated with the device to be set to the frequency band to be set.
  • the host device can also be connected to the data collector, and the staff can access the data collector through the network to configure the parameters of the relationship setting instruction. That is, the host device receives the relationship setting instruction sent through the network human-machine interface of the data collector, obtains the device to be set and the frequency band to be set; then, in the corresponding relationship between the device address and the communication frequency band, the host device updates the communication frequency band corresponding to the device address associated with the device to be set to the frequency band to be set.
  • the correspondence between the device address and the communication frequency band can be stored in the host device or sent to the host device through the data collector.
  • a flow chart of the host device sending a communication message is shown in Figure 7. The steps of the flow chart are described below.
  • the PLC host device needs to switch the communication frequency band for sending the message to a low-frequency band. After the switching is completed, the data packet is sent to the physical layer and sent to the power line by radio frequency processing;
  • the PLC slave device at the inverter position demodulates the corresponding low-frequency signal when it receives it. After the demodulation is completed, it replies to the PLC host device, which then passes it to the data collector;
  • the host device receives the next message. If the first address of the message is the inverter, the PLC physical layer switches the communication frequency band for sending the message to the corresponding frequency band.
  • the host device is also communicatively connected to a data collector in the photovoltaic system; the host device obtains a broadcast message sent by the data collector, and broadcasts the broadcast message using a first frequency band; a slave device using the first frequency band receives the broadcast message; the host device switches the communication frequency band from the first frequency band to the second frequency band, and broadcasts the broadcast message using the second frequency band; and a slave device using the second frequency band receives the broadcast message.
  • the above broadcast message does not carry the target device address, that is, the first address information of the broadcast message is zero.
  • slave devices work in different communication frequency bands. Therefore, when the host device broadcasts a broadcast message, it usually switches the current communication frequency band to the communication frequency band where the slave device receiving the broadcast message is located.
  • the host device is connected to the data collector in the photovoltaic system, receives the broadcast message sent by the data collector through the host device, and broadcasts the broadcast message using the first frequency band so that the slave device in the first frequency band receives the broadcast message.
  • the host device uses the second frequency band to broadcast the broadcast message, so that the slave device in the second frequency band receives the broadcast message.
  • the host device when the host device receives the broadcast message sent by the data collector, it determines that the first address information is zero and needs to be sent to all slave devices. At this time, the host device uses the high frequency band to broadcast the broadcast message so that the slave devices in the high frequency band can receive the broadcast message; then, the host device The device switches the communication frequency band from the high frequency band to the low frequency band, and uses the low frequency band to broadcast the broadcast message, so that the slave device in the low frequency band receives the broadcast message.
  • the above communication control method does not require manual adjustment of cables and machine positions. It reduces packet loss rate through automatic frequency band selection, improves communication quality, ensures communication stability, and minimizes the impact of crosstalk.
  • the device is arranged in a photovoltaic system; in the photovoltaic system, the host device and the slave device are connected via a power cable; the device comprises:
  • the first communication module 801 is used for the host device to communicate with the slave device using the first frequency band, and to count the communication packet loss rate of the slave device in a specified historical time period;
  • the first control module 802 is used for controlling the host device to switch the communication frequency band of the slave device to a second frequency band if the communication packet loss rate of the slave device is greater than a preset packet loss rate threshold; wherein the frequency band value of the second frequency band is lower than the frequency band value of the first frequency band.
  • the host device when the host device communicates with the slave device, if the communication packet loss rate of the slave device is high, the communication frequency band of the slave device is automatically switched to a low-frequency band.
  • the host device uses the low-frequency band to communicate with the slave device, thereby reducing the communication packet loss rate and improving the stability of the communication quality.
  • the above-mentioned slave devices include multiple ones; the above-mentioned first control module is also used for controlling the host device to switch the communication frequency band of the first device to the second frequency band if the communication packet loss rate of the first device among the slave devices is greater than the preset packet loss rate threshold, and the communication frequency band of the slave devices other than the first device remains at the first frequency band.
  • the above-mentioned apparatus also includes a second communication module, which is used for the host device to communicate with the first device using the second frequency band, and to communicate with slave devices other than the first device using the first frequency band.
  • the first communication module is also used for the host device to send a communication message to the slave device using the first frequency band and start timing; within a preset timing period, the host device waits to receive a reply message from the slave device to the communication message.
  • the first communication module is also used for the host device to obtain the communication message volume of the communication message sent to the slave device within the specified historical time period, and the received reply message for the communication message.
  • the communication packet loss rate of the slave device is determined based on the ratio of the reply message volume to the communication message volume.
  • the above-mentioned first control module is also used for the host device to send a frequency band setting instruction to the first device; the first device receives the frequency band setting instruction and switches the communication frequency band of the first device to the second frequency band; the host device saves the corresponding relationship between the device address associated with the first device and the second frequency band.
  • the above-mentioned device also includes a first generating module, which is used by the host device to generate a correspondence between the device address associated with the slave device and the communication frequency band; wherein, in the initial state, the communication frequency band in the corresponding relationship is the first frequency band; the above-mentioned first control module is also used by the host device to update the communication frequency band corresponding to the device address associated with the first device to the second frequency band in the corresponding relationship.
  • a first generating module which is used by the host device to generate a correspondence between the device address associated with the slave device and the communication frequency band; wherein, in the initial state, the communication frequency band in the corresponding relationship is the first frequency band; the above-mentioned first control module is also used by the host device to update the communication frequency band corresponding to the device address associated with the first device to the second frequency band in the corresponding relationship.
  • the above-mentioned second communication module is also used for the host device to obtain the message to be sent, extract the target device address from the message to be sent; determine the target communication frequency band corresponding to the target device address from the correspondence between the device address associated with the slave device and the communication frequency band; wherein, in the correspondence, the device address associated with the first device corresponds to the second frequency band, and the device address associated with the slave devices other than the first device corresponds to the first frequency band; if the target communication frequency band is the first frequency band, the host device uses the first frequency band to send the message to be sent to the slave device associated with the target device address; if the target communication frequency band is the second frequency band, the host device uses the second frequency band to send the message to be sent to the first device associated with the target device address.
  • the above-mentioned second communication module is also used for the host device to obtain the communication frequency band of the host device if the target communication frequency band is the first frequency band; if the communication frequency band is the second frequency band, the host device switches the communication frequency band to the first frequency band, and uses the first frequency band to send the message to be sent to the slave device associated with the target device address.
  • the above-mentioned second communication module is also used for the host device to obtain the communication frequency band of the host device if the target communication frequency band is the second frequency band; if the communication frequency band is the first frequency band, the host device switches the communication frequency band to the second frequency band, and uses the second frequency band to send the message to be sent to the first device associated with the target device address.
  • the above-mentioned host device is also connected to the upper computer for communication; the above-mentioned device also includes a first update module, which is used for the host device to receive the relationship setting instruction issued by the upper computer, and obtain the device to be set and the frequency band to be set from the relationship setting instruction; in the corresponding relationship, the communication frequency band corresponding to the device address associated with the device to be set is updated to the frequency band to be set.
  • a first update module which is used for the host device to receive the relationship setting instruction issued by the upper computer, and obtain the device to be set and the frequency band to be set from the relationship setting instruction; in the corresponding relationship, the communication frequency band corresponding to the device address associated with the device to be set is updated to the frequency band to be set.
  • the above-mentioned host device is also communicatively connected with the data collector in the photovoltaic system; the above-mentioned device also includes a first broadcast module, which is used for the host device to obtain the broadcast message sent by the data collector, and broadcast the broadcast message using the first frequency band; the slave device using the first frequency band receives the broadcast message; the host device switches the communication frequency band from the first frequency band to the second frequency band, and broadcasts the broadcast message using the second frequency band; the slave device using the second frequency band receives the broadcast message.
  • a first broadcast module which is used for the host device to obtain the broadcast message sent by the data collector, and broadcast the broadcast message using the first frequency band
  • the slave device using the first frequency band receives the broadcast message
  • the host device switches the communication frequency band from the first frequency band to the second frequency band, and broadcasts the broadcast message using the second frequency band
  • the slave device using the second frequency band receives the broadcast message.
  • This embodiment also provides a host device, the host device includes a processor and a memory, the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above communication control method.
  • the host device can be a server or a terminal device.
  • This embodiment further provides a slave device, which includes a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor; the slave device is connected to the host device via a power cable.
  • the electronic device includes a processor 100 and a memory 101 .
  • the memory 101 stores machine executable instructions that can be executed by the processor 100 .
  • the processor 100 executes the machine executable instructions to implement the above communication control method.
  • the electronic device shown in FIG. 9 further includes a bus 102 and a communication interface 103 , and the processor 100 , the communication interface 103 and the memory 101 are connected via the bus 102 .
  • the memory 101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage.
  • RAM random access memory
  • non-volatile memory non-volatile memory
  • the communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used.
  • the bus 102 can be an ISA bus, a PCI bus or an EISA bus, etc.
  • the bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one bidirectional arrow is used in Figure 9, but it does not mean that there is only one bus or one type of bus.
  • the processor 100 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 100 or by instructions in the form of software.
  • the above processor 100 may be a general-purpose processor, including a Central Processing Unit (CPU), Network Processor (NP), etc.; it can also be Digital Signal Processor (DSP), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • DSP Digital Signal Processor
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • the methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed.
  • the general processor can be a microprocessor or the processor can also be any conventional processor, etc.
  • the steps of the method disclosed in the embodiments of the present invention can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be combined to be executed.
  • the software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc.
  • the storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and completes the steps of the method in the aforementioned embodiment in combination with its hardware.
  • the photovoltaic system includes multiple arrays, which can also be called sub-arrays.
  • Each array includes a data logger, an inverter and a box-type transformer.
  • the PLC communication module installed on the photovoltaic inverter is called the PLC slave device
  • the PLC communication module installed on the box-type transformer side is called the PLC host device.
  • the data collector and the host device are both located in the communication cabinet on the box-type transformer side.
  • the data collector installed on the box-type transformer side uses wired communication with the PLC host device, such as RS485; the data collector sends instructions to the PLC host device, the PLC host device modulates the instructions into a carrier signal, and transmits it to the inverter end, that is, the PLC slave device, along the inverter AC power line on the low-voltage side of the box-type transformer.
  • the PLC slave device demodulates the carrier signal into instructions and sends them to the inverter for execution.
  • the inverter needs to upload data, it also refers to the above instruction sending method, except that the PLC slave device modulates the inverter data into a carrier signal, and transmits it to the low-voltage side of the box-type transformer and the PLC host device along the inverter AC power line.
  • the PLC host device demodulates the carrier signal into inverter data and sends it to the data collector, thereby realizing two-way communication.
  • this embodiment also provides a photovoltaic system, as shown in FIG10, the communication system includes the above-mentioned host device and a slave device; the host device uses the first frequency band to communicate with the slave device Communication, counting the communication packet loss rate of the slave device within a specified historical time period; if the communication packet loss rate of the slave device is greater than a preset packet loss rate threshold, the host device controls the communication frequency band of the slave device to be switched to a second frequency band; wherein the frequency band value of the second frequency band is lower than the frequency band value of the first frequency band.
  • the above host device is connected to the data collector; the slave device is connected to the inverter.
  • the above-mentioned slave devices include multiple ones; if the communication packet loss rate of the first device among the slave devices is greater than the preset packet loss rate threshold, the host device controls the communication frequency band of the first device to be switched to the second frequency band, and the communication frequency band of the slave devices other than the first device remains at the first frequency band.
  • the host device uses the second frequency band to communicate with the first device, and uses the first frequency band to communicate with slave devices other than the first device.
  • the host device obtains the communication message volume of the communication messages sent to the slave device and the reply message volume of the reply messages received in response to the communication messages within a specified historical time period; and determines the communication packet loss rate of the slave device based on the ratio of the reply message volume to the communication message volume.
  • the host device sends a frequency band setting instruction to the first device; the first device receives the frequency band setting instruction and switches the communication frequency band of the first device to the second frequency band; the host device saves the corresponding relationship between the device address associated with the first device and the second frequency band.
  • the above-mentioned host device generates a correspondence between the device address associated with the slave device and the communication frequency band; wherein, in the initial state, the communication frequency bands in the correspondence are all the first frequency bands; after the host device sends a frequency band setting instruction to the first device, the host device updates the communication frequency band corresponding to the device address associated with the first device to the second frequency band in the correspondence.
  • the host device obtains a message to be sent, extracts a target device address from the message to be sent; determines a target communication frequency band corresponding to the target device address from the correspondence between the device address associated with the slave device and the communication frequency band; wherein, in the correspondence, the device address associated with the first device corresponds to the second frequency band, and the device addresses associated with the slave devices other than the first device correspond to the first frequency band; if the target communication frequency band is the first frequency band, the host device uses the first frequency band to send the message to be sent to the slave device associated with the target device address; if the target communication frequency band is the second frequency band, The host device uses the second frequency band to send the message to be sent to the first device associated with the target device address.
  • the host device obtains the communication frequency band of the host device; if the communication frequency band is the second frequency band, the host device switches the communication frequency band to the first frequency band, and uses the first frequency band to send the message to be sent to the slave device associated with the target device address.
  • the host device obtains the communication frequency band of the host device; if the communication frequency band is the first frequency band, the host device switches the communication frequency band to the second frequency band, and uses the second frequency band to send the message to be sent to the first device associated with the target device address.
  • the host device is also connected to the host computer for communication; the host device receives the relationship setting instruction issued by the host computer, obtains the device to be set and the frequency band to be set from the relationship setting instruction; in the corresponding relationship, updates the communication frequency band corresponding to the device address associated with the device to be set to the frequency band to be set.
  • the above-mentioned host device is also communicatively connected with the data collector in the photovoltaic system; the host device obtains the broadcast message sent by the data collector, and broadcasts the broadcast message using the first frequency band; the slave device using the first frequency band receives the broadcast message; the host device switches the communication frequency band from the first frequency band to the second frequency band, and broadcasts the broadcast message using the second frequency band; the slave device using the second frequency band receives the broadcast message.
  • the above-mentioned photovoltaic system stores the correspondence between the inverter address and the frequency band number in the host device.
  • the host device uses the packet loss rate feedback to set the frequency band of the problematic inverter with serious packet loss to the low frequency band.
  • Inverters other than the problematic inverter maintain the default high frequency band for communication.
  • the host device When the data logger inquires about the address of the problematic inverter, the host device automatically switches to the low frequency band to send a message to the problematic inverter according to the correspondence between the address and the frequency band, and waits for the problematic inverter to reply; when the data logger inquires about the address of the normal inverter, the host device automatically returns to the normal frequency band, which solves the problem of large attenuation of PLC communication signals due to noise in the power cable, the type and material of the power cable, or the long distance between the devices at both ends of the communication, reduces the packet loss rate, improves the communication quality, ensures the stability of communication, and minimizes the impact of crosstalk.
  • the terms “installed”, “connected” and “connected” should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be It can be directly connected, or indirectly connected through an intermediate medium, or it can be the internal connection of two elements.
  • installed should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be It can be directly connected, or indirectly connected through an intermediate medium, or it can be the internal connection of two elements.
  • the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.
  • the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Power Engineering (AREA)
  • Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)

Abstract

一种通信控制方法、装置、主机设备、从机设备和光伏系统。通信控制方法应用于光伏系统,主机设备与从机设备通过电力线缆连接。通信控制方法包括:主机设备使用第一频段与从机设备进行通信,统计指定历史时间段内从机设备的通信丢包率;如果从机设备的通信丢包率大于预设丢包率阈值,主机设备控制从机设备的通信频段切换为第二频段,第二频段的频段值低于第一频段的频段值。主机设备使用低频频段与从机设备进行通信,降低了通信的丢包率,提高了通信质量的稳定性。

Description

通信控制方法、装置、主机设备、从机设备和光伏系统
本申请要求于2023年11月29日提交中国专利局、申请号为CN202311648420.6、发明名称为“通信控制方法、装置、主机设备、从机设备和光伏系统”的国内申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及电力技术领域,尤其是涉及一种通信控制方法、装置、主机设备、从机设备和光伏系统。
背景技术
PLC(Power Line Communication,电力线载波通信)的通信媒介是电力线缆。电力线缆中存在噪声,噪声会使通信信号产生损失,同时电力线缆的类型和材质也会对通信信号产生影响。如果通信两端的设备距离较远,电力线缆的长度较长,PLC通信信号的衰减较大,导致丢包率过高,通信质量不稳定。
发明内容
有鉴于此,本发明的目的在于提供一种通信控制方法、装置、主机设备、从机设备和光伏系统,以降低通信的丢包率,提高通信质量的稳定性。
第一方面,本发明实施例提供了一种通信控制方法,方法应用于光伏系统;光伏系统中,主机设备与从机设备通过电力线缆连接;该方法包括:主机设备使用第一频段与从机设备进行通信,统计指定历史时间段内从机设备的通信丢包率;如果从机设备的通信丢包率大于预设丢包率阈值,主机设备控制将从机设备的通信频段切换为第二频段;其中,第二频段的频段值低于第一频段的频段值。
上述从机设备包括多个;如果从机设备的通信丢包率大于预设丢包率阈值,主机设备控制将第一设备的通信频段切换为第二频段的步骤,包括:如果从机设备中第一设备的通信丢包率大于预设丢包率阈值,主机设备控制将第一设备的通信频段切换为第二频段,第一设备以外的从机设备的通信频段保持为第一频段。
如果从机设备中第一设备的通信丢包率大于预设丢包率阈值,主机设备控制将第一设备的通信频段切换为第二频段,第一设备以外的从机设备的通信频段保持为第一频段的步骤之后,上述方法还包括:主机设备使用第二频段与第一设备进行通信,使用第一频段与除第一设备以外的从机设备进行通信。
上述主机设备使用第一频段与从机设备进行通信的步骤,包括:主机设备使用第一频段向从机设备发送通信报文,并开始计时;在预设计时时长内,主机设备等待接收从机设备的针对通信报文的回复报文。
上述统计指定历史时间段内从机设备的通信丢包率的步骤,包括:主机设备获取指定历史时间段内,向从机设备发送的通信报文的通信报文量,以及接收到的针对通信报文的回复报文的回复报文量;基于回复报文量与通信报文量的比值,确定从机设备的通信丢包率。
上述主机设备控制将第一设备的通信频段切换为第二频段的步骤,包括:主机设备向第一设备发送频段设置指令;第一设备接收频段设置指令,将第一设备的通信频段切换为第二频段;主机设备保存第一设备关联的设备地址和第二频段的对应关系。
上述主机设备向第一设备发送频段设置指令的步骤之前,上述方法还包括:主机设备生成从机设备关联的设备地址和通信频段的对应关系;其中,在初始状态下,对应关系中的通信频段均为第一频段;主机设备保存第一设备关联的设备地址和第二频段的对应关系的步骤,包括:主机设备在对应关系中,将第一设备关联的设备地址对应的通信频段更新为第二频段。
上述使用第二频段与第一设备进行通信,主机设备使用第一频段与除第一设备以外的从机设备进行通信的步骤,包括:主机设备获取待发送报 文,从待发送报文中提取目标设备地址;从从机设备关联的设备地址和通信频段的对应关系中,确定目标设备地址对应的目标通信频段;其中,对应关系中,第一设备关联的设备地址对应保存第二频段,除第一设备以外的从机设备关联的设备地址对应保存保持第一频段;如果目标通信频段为第一频段,主机设备使用第一频段将待发送报文发送至目标设备地址关联的从机设备;如果目标通信频段为第二频段,主机设备使用第二频段将待发送报文发送至目标设备地址关联的第一设备。
上述如果目标通信频段为第一频段,主机设备使用第一频段将待发送报文发送至目标设备地址关联的从机设备的步骤,包括:如果目标通信频段为第一频段,主机设备获取主机设备的通信频段;如果通信频段为第二频段,主机设备切换通信频段至第一频段,使用第一频段将待发送报文发送至目标设备地址关联的从机设备。
上述如果目标通信频段为第二频段,使用第二频段将待发送报文发送至目标设备地址关联的第一设备的步骤,包括:如果目标通信频段为第二频段,主机设备获取主机设备的通信频段;如果通信频段为第一频段,主机设备切换通信频段至第二频段,使用第二频段将待发送报文发送至目标设备地址关联的第一设备。
上述主机设备还与上位机通信连接;上述方法还包括:主机设备接收上位机下发的关系设置指令,从关系设置指令中获取待设置设备和待设置频段;在对应关系中,将待设置设备关联的设备地址对应的通信频段,更新为待设置频段。
上述主机设备还与光伏系统中的数据采集器通信连接;上述方法还包括:主机设备获取数据采集器发送的广播报文,使用第一频段对广播报文进行广播;使用第一频段的从机设备接收广播报文;主机设备将通信频段从第一频段切换为第二频段,使用第二频段对广播报文进行广播;使用第二频段的从机设备接收广播报文。
第二方面,本发明实施例提供了一种通信控制装置,装置设置于光伏系统;光伏系统中,主机设备与从机设备通过电力线缆连接;该装置包括:第一通信模块,用于主机设备使用第一频段与从机设备进行通信,统计指 定历史时间段内从机设备的通信丢包率;第一控制模块,用于如果从机设备的通信丢包率大于预设丢包率阈值,主机设备控制将从机设备的通信频段切换为第二频段;其中,第二频段的频段值低于第一频段的频段值。
第三方面,本发明实施例提供了一种主机设备,主机设备包括处理器和存储器,存储器存储有能够被处理器执行的机器可执行指令,处理器执行机器可执行指令以实现第一方面任一项的通信控制方法。
第四方面,本发明实施例提供了一种从机设备,从机设备包括处理器和存储器,存储器存储有能够被处理器执行的机器可执行指令;从机设备与第三方面的主机设备通过电力线缆连接。
第五方面,本发明实施例提供了一种光伏系统,光伏系统包括第三方面的主机设备,以及第四方面的从机设备;主机设备使用第一频段与从机设备进行通信,统计指定历史时间段内从机设备的通信丢包率;如果从机设备的通信丢包率大于预设丢包率阈值,主机设备控制将从机设备的通信频段切换为第二频段;其中,第二频段的频段值低于第一频段的频段值。
上述主机设备与数据采集器连接;从机设备与逆变器连接。
上述从机设备包括多个;如果从机设备中第一设备的通信丢包率大于预设丢包率阈值,主机设备控制将第一设备的通信频段切换为第二频段,第一设备以外的从机设备的通信频段保持为第一频段。
上述主机设备使用第二频段与第一设备进行通信,使用第一频段与除第一设备以外的从机设备进行通信。
上述主机设备使用第一频段向从机设备发送通信报文,并开始计时;在预设计时时长内,主机设备等待接收从机设备的针对通信报文的回复报文。
上述主机设备获取指定历史时间段内,向从机设备发送的通信报文的通信报文量,以及接收到的针对通信报文的回复报文的回复报文量;基于回复报文量与通信报文量的比值,确定从机设备的通信丢包率。
上述主机设备向第一设备发送频段设置指令;第一设备接收频段设置指令,将第一设备的通信频段切换为第二频段;主机设备保存第一设备关联的设备地址和第二频段的对应关系。
上述主机设备生成从机设备关联的设备地址和通信频段的对应关系;其中,在初始状态下,对应关系中的通信频段均为第一频段;主机设备向第一设备发送频段设置指令后,主机设备在对应关系中,将第一设备关联的设备地址对应的通信频段更新为第二频段。
上述主机设备获取待发送报文,从待发送报文中提取目标设备地址;从从机设备关联的设备地址和通信频段的对应关系中,确定目标设备地址对应的目标通信频段;其中,对应关系中,第一设备关联的设备地址对应保存第二频段,除第一设备以外的从机设备关联的设备地址对应保存第一频段;如果目标通信频段为第一频段,主机设备使用第一频段将待发送报文发送至目标设备地址关联的从机设备;如果目标通信频段为第二频段,主机设备使用第二频段将待发送报文发送至目标设备地址关联的第一设备。
上述如果目标通信频段为第一频段,主机设备获取主机设备的通信频段;如果通信频段为第二频段,主机设备切换通信频段至第一频段,使用第一频段将待发送报文发送至目标设备地址关联的从机设备。
上述如果目标通信频段为第二频段,主机设备获取主机设备的通信频段;如果通信频段为第一频段,主机设备切换通信频段至第二频段,使用第二频段将待发送报文发送至目标设备地址关联的第一设备。
上述主机设备还与上位机通信连接;主机设备接收上位机下发的关系设置指令,从关系设置指令中获取待设置设备和待设置频段;在对应关系中,将待设置设备关联的设备地址对应的通信频段,更新为待设置频段。
上述主机设备还与光伏系统中的数据采集器通信连接;主机设备获取数据采集器发送的广播报文,使用第一频段对广播报文进行广播;使用第一频段的从机设备接收广播报文;主机设备将通信频段从第一频段切换为第二频段,使用第二频段对广播报文进行广播;使用第二频段的从机设备接收广播报文。
本发明实施例带来了以下有益效果:
上述通信控制方法、装置、主机设备、从机设备和光伏系统,其中,方法应用于光伏系统;光伏系统中,主机设备与从机设备通过电力线缆连 接;该方法包括:主机设备使用第一频段与从机设备进行通信,统计指定历史时间段内从机设备的通信丢包率;如果从机设备的通信丢包率大于预设丢包率阈值,主机设备控制将从机设备的通信频段切换为第二频段;其中,第二频段的频段值低于第一频段的频段值。
该方式中,当主机设备与从机设备进行通信时,如果从机设备的通信丢包率较高,则自动将该从机设备的通信频段切换为低频频段,主机设备使用低频频段与从机设备进行通信,降低了通信的丢包率,提高了通信质量的稳定性。
本发明的其他特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。
为使本发明的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。
附图说明
为了更清楚地说明本发明具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施方式,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例提供的一种电力线缆的类型的示意图;
图2为本发明实施例提供的一种方阵内通信网络的示意图;
图3为本发明实施例提供的一种通信控制方法的流程图;
图4为本发明实施例提供的一种主机设备和从机设备连接方式的示意图;
图5为本发明实施例提供的一种设备地址和通信频段的对应关系的示意图;
图6为本发明实施例提供的一种根据丢包率反馈建立对应关系的流程图;
图7为本发明实施例提供的一种主机设备发送通信报文的流程图;
图8为本发明实施例提供的一种通信控制装置的结构示意图;
图9为本发明实施例提供的一种主机设备的示意图;
图10为本发明实施例提供的一种光伏系统的结构示意图。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对本发明的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
相关技术中,由于可以节省掉通信电缆和人力单独铺设的成本,PLC(Power Line Communication,电力线载波通信)逐渐取代了传统的逆变器RS485通信方式,成为光伏逆变器在场站内主流通信方式。PLC网络有多种频段可供选择,按照频率范围主要分两种:高频(如2-6MHz)和低频(如0.3-2Mhz)。
PLC带来了通信便捷,但是,也带来了通讯的不稳定性。
一方面,由于通信媒介使用的是逆变器的电力线缆,上面充斥了电网和逆变器的噪声,电力线缆的类型和材质也带来较大挑战,电力线缆通常可以分为:单芯铜、单芯铝、多芯铜、多芯铝。如图1所示,多芯线由于捆绑在一起,PLC信号损失小;单芯线由于ABC三根线是完全分开的,如果捆扎不规范的话,会导致有的逆变器节点PLC信号损失较大。
另一方面,由于部分电站的施工建设位置造成逆变器距离过远,最终导致PLC信号衰减大,出现PLC通信不稳定,丢包率过高等问题。
特别的,在山地电站的建设过程中,由于地形限制,陡峭峻岭,施工困难,经常会出现同一个方阵内,个别台逆变器在山脚下或山坡另一边,距离超过施工规范的建议距离,此时方阵使用的频段可能丢包率过高或逆变器离线,形成信息孤岛。如图2所示,一个方阵内的通信网络由数据采集器Logger和多台逆变器组成,PLC主机设备内置于Logger当中,PLC 从机设备内置于逆变器当中,逆变器INV2距离logger过远,造成PLC衰减过大。
对于上面两种信号衰减大的问题,通常将网络内的PLC频段降低为低频,以获得更大的发射信号强度,但也会带来串扰的问题。
基于上述问题,本实施例提供一种通信控制方法、装置、主机设备、从机设备和光伏系统,可以应用于电力线载波通信中。
图3为本发明一实施例通信控制方法的流程图。本发明公开了一种通信控制方法,应用于电力线载波通信的主机设备,该主机设备与从机设备通过电力线缆连接。上述主机设备可以是一个或多个,从机设备也可以是一个或多个。
一种示例中,如图4所示的主机设备与从机设备彼此通过三相电力线连接。上述方法包括:
S301,主机设备使用第一频段与从机设备进行通信,统计指定历史时间段内从机设备的通信丢包率;
上述第一频段通常设置为高频频段。上述指定历史时间段为电力设备上电后的时间段;其中,上电是指打开电源,使设备通电启动的过程。通信丢包率,可以通过数据包丢失部分与所传数据包总数的比值。正常情况下,通信丢包率应该控制在一定范围内。
示例地,主机设备使用第一频段与从机设备进行通信。电力设备上电之后,每隔30分钟统计一次从机设备的通信丢包率,当到达统计时间点后,统计从该时间点开始往前过去的30分钟内各个从机设备的通信丢包率。
S302,如果从机设备的通信丢包率大于预设丢包率阈值,主机设备控制将从机设备的通信频段切换为第二频段;其中,第二频段的频段值低于第一频段的频段值;
每个逆变器设备对应一个从机设备。上述预设丢包率阈值为预先设置的一个百分数。上述第二频段通常设置为低频频段。
也就是说,如果从机设备的通信丢包率大于预设丢包率阈值,则控制从机设备切换通信频段,将从机设备的通信频段从第一频段切换到频段值低于第一频段的第二频段。
实际实现时,当从机设备的通信丢包率高于标准值5%时,通常认为通信信号衰减大,丢包严重;此时,如果从机设备的通信频段为高频频段,则控制从机设备将高频频段切换为低频频段。
上述通信控制方法,应用于光伏系统,主机设备与从机设备通过电力线缆连接,包括:主机设备使用第一频段与从机设备进行通信,统计指定历史时间段内从机设备的通信丢包率;如果从机设备的通信丢包率大于预设丢包率阈值,主机设备控制将从机设备的通信频段切换为第二频段;其中,第二频段的频段值低于第一频段的频段值。
该方式中,当主机设备与从机设备进行通信时,如果从机设备的通信丢包率较高,则自动将该从机设备的通信频段切换为低频频段,主机设备使用低频频段与从机设备进行通信,降低了通信的丢包率,提高了通信质量的稳定性。
一种可选的方式中,从机设备包括多个;当切换从机设备的通信频段时,如果从机设备中第一设备的通信丢包率大于预设丢包率阈值,主机设备控制将第一设备的通信频段切换为第二频段,第一设备以外的从机设备的通信频段保持为第一频段。
也就是说,与主机设备通过电力缆线连接的从机设备有多个;如果从机设备中,第一设备的通信丢包率大于预设丢包率阈值,则主机设备控制第一设备切换通信频段,将第一设备的通信频段从第一频段切换到频段值低于第一频段的第二频段,除第一设备以外的从机设备的通信频段仍然保持第一频段。
实际实现时,当第一设备的通信丢包率高于标准值5%时,通常认为通信信号衰减大,丢包严重;此时,如果第一设备的通信频段为高频频段,则控制第一设备将高频频段切换为低频频段,除第一设备以外的从机设备的通信频段仍然保持高频频段。
一种可选的方式中,主机设备使用第二频段与第一设备进行通信,使用第一频段与除第一设备以外的从机设备进行通信。
也就是说,与主机设备通过电力缆线连接的从机设备有多个;在从机设备中第一设备的通信丢包率大于预设丢包率阈值,主机设备控制将第一设备的通信频段切换为第二频段后,主机设备使用第二频段与第一设备进行通信,另外,主机设备使用第一频段与从机设备中,除第一设备以外的从机设备进行通信。
一个示例中,在从机设备中第一设备的丢包率高于标准值5%时,主机设备控制将第一设备的通信频段切换为低频频段后,主机设备使用低频频段与第一设备进行通信,并且使用高频频段与从机设备中,除第一设备以外的从机设备进行通信。
一种可选的方式中,主机设备使用第一频段向从机设备发送通信报文,并开始计时;在预设计时时长内,主机设备等待接收从机设备的针对通信报文的回复报文。
上述通信报文通常为Modbus报文,Modbus是一项应用层报文传输协议。
实际实现时,主机设备和从机设备连接在同一个通信链路上,当主机设备使用第一频段向从机设备发送通信报文时,开始计时。然后,在预设计时时长内,主机设备等待接收从机设备针对通信报文的回复报文;如果在预设计时时长内,主机设备没有接收到回复报文,则认为丢包,即数据包丢失。
一个示例中,主机设备使用高频频段向从机设备发送通信报文后,开始2s的计时时长,在这2s内,主机设备一直处于高频频段,等待从机设备针对该通信报文的回复报文。
需要说明的是,主机设备发送通信报文和接收回复报文的通信频段,与从机设备接收通信报文和发送回复报文的通信频段均一致。
进一步地,主机设备获取指定历史时间段内,向从机设备发送的通信报文的通信报文量,以及接收到的针对通信报文的回复报文的回复报文量;基于回复报文量与通信报文量的比值,确定从机设备的通信丢包率。
上述通信报文量和回复报文量为通信报文的数量和回复报文的数量。
也就是说,在指定历史时间段内,针对每个从机设备,主机设备向该从机设备获取发送的通信报文的通信报文量tx,以及接收到的针对通信报文的回复报文的回复报文量rx,计算回复报文量rx与通信报文量tx的比值,然后使用1减去该比值,即可得到该从机设备的通信丢包率。
示例地,电力设备上电后30分钟,以及之后每隔30分钟的时间段内,主机设备统计向每一台从机设备发送的通信报文量,以及从机设备的回复报文量,计算得到通信丢包率=1-rx/tx。
进一步地,主机设备向第一设备发送频段设置指令,第一设备接收频段设置指令,将第一设备的通信频段切换为第二频段;主机设备保存第一设备关联的设备地址和第二频段的对应关系。
上述频段设置指令是指主机设备对第一设备发送的特殊指令,用于控制第一设备改变通信频段。上述设备地址为第一设备对应的逆变器设备的通信地址。
也就是说,主机设备向第一设备发送频段设置指令后,第一设备接收频段设置指令,将第一设备从当前通信频段切换到第二频段。并且,主机设备将第一设备关联的设备地址和第二频段的对应关系记录保存;其中,对应关系为拓扑关系,该拓扑关系是指设备地址和通信频段之间,在空间上的相互连接、邻接关系。
示例地,从机设备关联的设备地址和通信频段的对应关系如图5所示。从机设备关联的设备地址,即通信报文的首地址,也就是每个逆变器设备对应的编号。
一种示例中,假设2号逆变器设备对应的从机设备的丢包严重、通信信号衰减大,且2号逆变器设备对应的从机设备的当前通信频段为高频频段,则主机设备向2号逆变器设备对应的从机设备发送频段设置指令,第一设备接收频段设置指令,将如图5所示的2号逆变器设备对应的从机设备的通信频段从高频频段切换到低频频段。同时,主机设备保存2号逆变器设备关联的设备地址和低频频段的对应关系;例如,存储到flash存储 器(即FLASH EEPROM,又称闪存)中,以实现断电记忆功能。其中,断电记忆功能使得电力设备在突然断电后,各种运行状态能够被瞬间记忆锁定,在通电后仍能按照设定状态工作。
一种可选的方式中,在主机设备发送频段设置指令之前,主机设备生成从机设备关联的设备地址和通信频段的对应关系;其中,在初始状态下,对应关系中的通信频段均为第一频段;当主机设备建立设备地址和通信频段的对应关系时,主机设备在对应关系中,将第一设备关联的设备地址对应的通信频段更新为第二频段。
首先,主机设备向第一设备发送频段设置指令之前,预先生成从机设备关联的设备地址和通信频段的对应关系。
需要说明的是,在初始状态下,从机设备关联的设备地址对应的通信频段均为第一频段,例如,对应关系中的通信频段均为高频频段。
接着,当第一设备完成频段切换时,主机设备保存第一设备关联的设备地址和第二频段的对应关系;此时,主机设备可以在对应关系中,搜索第一设备关联的设备地址,再将第一设备关联的设备地址对应的通信频段更新为第二频段。如图5所示的示例中,主机设备可以在对应关系中搜索第一设备关联的2号设备地址,再将第一设备关联的2号设备地址对应的通信频段设置为低频频段。
一种实施例中,根据丢包率反馈建立对应关系的流程图如图6所示。下面对该流程图的步骤进行说明。
1)系统上电,或者PLC主机设备定时30分钟进行丢包率统计;
2)PLC主机设备对向每一台逆变器设备发送的报文量Tx和接收的报文量Rx进行累计,计算丢包率=Rx/Tx,当丢包率高于标准值5%时,认为信号衰减大,丢包严重,需要将此台逆变器的通信频段切换为低频。
3)主机设备通过频段设置指令,将逆变器的PLC频段更改为低频,同时将地址与频段的记录下来,存储到flash中。
4)主机设备再次上电或者复位后,自动读取对应拓扑关系。
在频段设置结束后,PLC主机设备每次接收数据采集器发送的报文时,都需要判断报文的首地址,并依据存储的对应关系进行频段选择。
具体地,主机设备获取待发送报文,从待发送报文中提取目标设备地址;从从机设备关联的设备地址和通信频段的对应关系中,确定目标设备地址对应的目标通信频段;其中,对应关系中,第一设备关联的设备地址对应保存第二频段,除第一设备以外的从机设备关联的设备地址对应保存第一频段;如果目标通信频段为第一频段,主机设备使用第一频段将待发送报文发送至目标设备地址关联的从机设备;如果目标通信频段为第二频段,主机设备使用第二频段将待发送报文发送至目标设备地址关联的第一设备。
上述目标设备地址为目标逆变器设备的设备地址。上述目标通信频段为主机设备向从机设备发送待发送报文时,需要设置的通信频段。
首先,主机设备获取待发送报文,从待发送报文中提取目标设备地址。
示例地,主机设备接收来自数据采集器发送的所有Modbus报文,并且从待发送报文中提取首地址。
接着,主机设备在从机设备关联的设备地址和通信频段的对应关系中,确定目标设备地址对应的目标通信频段;该对应关系中,第一设备关联的设备地址对应保存第二频段,除第一设备以外的从机设备关联的设备地址对应保存第一频段。
一种示例中,从机设备关联的设备地址和通信频段的对应关系如图5所示,主机设备从对应关系中确定目标通信频段为高频频段或低频频段。假设2号逆变器设备对应的从机设备为第一设备,则2号逆变器设备关联的设备地址对应保存低频频段,除2号逆变器设备以外的1号、3号至5号逆变器对应的从机设备对应保存高频频段。
进一步地,主机设备根据目标通信频段,向从机设备发送待发送报文。如果目标通信频段为第一频段,则使用第一频段将待发送报文发送至目标设备地址关联的从机设备;如果目标通信频段为第二频段,则使用第二频段将待发送报文发送至目标设备地址关联的第一设备。
如图5所示的示例中,如果目标通信频段为高频频段,则主机设备使用高频频段将待发送报文发送至1号、3号、4号或5号逆变器设备地址关联的从机设备;如果目标通信频段为低频频段,则主机设备使用低频频段将待发送报文发送至2号逆变器设备地址关联的从机设备。
可以理解的是,当目标设备地址对应的目标通信频段与主机设备在此时的通信频段不一致时,需要切换主机设备的通信频段。
一种可选的方式中,如果目标通信频段为第一频段,主机设备获取主机设备的通信频段;如果通信频段为第二频段,主机设备切换通信频段至第一频段,使用第一频段将待发送报文发送至目标设备地址关联的从机设备。
也就是说,当目标设备地址对应的目标通信频段为第一频段时,首先,主机设备获取主机设备当前的通信频段;接着,如果当前的通信频段为第二频段,则主机设备将第二频段切换至第一频段,并且,主机设备使用第一频段将待发送报文发送至目标设备地址关联的从机设备。
示例地,当待发送报文中提取的首地址对应的通信频段为高频频段时,主机设备先获取主机设备当前的通信频段,如果主机设备当前的通信频段为低频频段,则主机设备将低频频段切换至高频频段,并且使用高频频段将待发送报文发送至首地址关联的从机设备。
同样地,如果目标通信频段为第二频段,主机设备获取主机设备的通信频段;如果通信频段为第一频段,主机设备切换通信频段至第二频段,使用第二频段将待发送报文发送至目标设备地址关联的第一设备。
也就是说,当目标设备地址对应的目标通信频段为第二频段时,首先,主机设备获取主机设备当前的通信频段;接着,如果当前的通信频段为第一频段,则主机设备将第一频段切换至第二频段,并且,主机设备使用第二频段将待发送报文发送至目标设备地址关联的从机设备。
示例地,当待发送报文中提取的首地址对应的通信频段为低频频段时,主机设备先获取主机设备当前的通信频段,如果主机设备当前的通信频段 为高频频段,则主机设备将高频频段切换至低频频段,并且使用低频频段将待发送报文发送至首地址关联的从机设备。
另外,设备地址和通信频段的对应关系不仅可以通过上述通信丢包率的反馈自动建立,还可以通过人工发送关系设置指令建立。
具体地,主机设备还与上位机通信连接;主机设备接收上位机下发的关系设置指令,从关系设置指令中获取待设置设备和待设置频段;在对应关系中,将待设置设备关联的设备地址对应的通信频段,更新为待设置频段。
上述关系设置指令通过人工进行设置。示例地,主机设备连接上位机,则工作人员可以使用USB转RS485串口驱动,通过终端的USB接口模拟成传统的串行口,实现编程电缆和电力线载波通信设备的连接通信,配置关系设置指令的参数。
实际实现时,主机设备接收通过上位机发送的关系设置指令,从关系设置指令中获取待设置设备和待设置频段;接着,在设备地址和通信频段的对应关系中,主机设备将待设置设备关联的设备地址对应的通信频段更新为待设置频段。
另一种方式中,主机设备还可以连接数据采集器,工作人员通过网络访问数据采集器,配置关系设置指令的参数。也就是说,主机设备接收通过数据采集器的网络人机界面发送的关系设置指令,获取待设置设备和待设置频段;接着,在设备地址和通信频段的对应关系中,主机设备将待设置设备关联的设备地址对应的通信频段更新为待设置频段。
需要说明的是,设备地址和通信频段的对应关系可以存储在主机设备,也可以通过数据采集器发送至主机设备。
一种实施例中,主机设备发送通信报文的流程图如图7所示。下面对该流程图的步骤进行说明。
1)报文首地址为丢包严重的有问题的逆变器的编号时,PLC主机设备需要将发送报文的通信频段切换为低频频段,切换完毕后,将数据包发送至物理层,由射频处理发送至电力线上;
2)逆变器位置的PLC从机设备收到对应的低频信号时进行解调,解调完成后,回复报文给PLC主机设备,PLC主机设备再传递给数据采集器;
3)如果出现丢包,PLC主机设备最长会在当前频段下停留一定时间,时间最长为2s;
4)主机设备接收下一个报文,如果报文的首地址为逆变器,则PLC物理层将发送报文的通信频段切换至相应的频段。
一种可选的方式中,主机设备还与光伏系统中的数据采集器通信连接;主机设备获取数据采集器发送的广播报文,使用第一频段对广播报文进行广播;使用第一频段的从机设备接收广播报文;主机设备将通信频段从第一频段切换为第二频段,使用第二频段对广播报文进行广播;使用第二频段的从机设备接收广播报文。
上述广播报文,不携带目标设备地址,也就是说,广播报文的首地址信息为零。
实际实现时,不同的从机设备在不同的通信频段下工作,因此,主机设备对广播报文进行播报时,通常将当前通信频段切换到接收广播报文的从机设备所在的通信频段。
首先,主机设备连接光伏系统中的数据采集器,通过主机设备接收数据采集器发送的广播报文,并使用第一频段对广播报文进行广播,以使第一频段的从机设备接收广播报文。
进一步地,主机设备将通信频段从第一频段切换为第二频段后,使用第二频段对广播报文进行广播,以使第二频段的从机设备接收广播报文。
示例地,当主机设备收到数据采集器发送的广播报文时,确定首地址信息为零,需要发送至所有从机设备,此时,主机设备使用高频频段对广播报文进行广播,以使高频频段的从机设备接收广播报文;接着,主机设 备将通信频段从高频频段切换为低频频段,并使用低频频段对广播报文进行广播,以使低频频段的从机设备接收广播报文。
上述通信控制方法,无需人工整改电缆和机器位置,通过频段自动选择的方式减少了丢包率,提高了通讯质量,保障了通讯的稳定性,也最大程度上减少了串扰的影响。
对于上述方法实施例,参见图8所示的一种通信控制装置的结构示意图,装置设置于光伏系统;光伏系统中,主机设备与从机设备通过电力线缆连接;该装置包括:
第一通信模块801,用于主机设备使用第一频段与从机设备进行通信,统计指定历史时间段内从机设备的通信丢包率;
第一控制模块802,用于如果从机设备的通信丢包率大于预设丢包率阈值,主机设备控制将从机设备的通信频段切换为第二频段;其中,第二频段的频段值低于第一频段的频段值。
该方式中,当主机设备与从机设备进行通信时,如果从机设备的通信丢包率较高,则自动将该从机设备的通信频段切换为低频频段,主机设备使用低频频段与从机设备进行通信,降低了通信的丢包率,提高了通信质量的稳定性。
上述从机设备包括多个;上述第一控制模块,还用于如果从机设备中第一设备的通信丢包率大于预设丢包率阈值,主机设备控制将第一设备的通信频段切换为第二频段,第一设备以外的从机设备的通信频段保持为第一频段。
上述装置还包括第二通信模块,用于主机设备使用第二频段与第一设备进行通信,使用第一频段与除第一设备以外的从机设备进行通信。
上述第一通信模块,还用于主机设备使用第一频段向从机设备发送通信报文,并开始计时;在预设计时时长内,主机设备等待接收从机设备的针对通信报文的回复报文。
上述第一通信模块,还用于主机设备获取指定历史时间段内,向从机设备发送的通信报文的通信报文量,以及接收到的针对通信报文的回复报 文的回复报文量;基于回复报文量与通信报文量的比值,确定从机设备的通信丢包率。
上述第一控制模块,还用于主机设备向第一设备发送频段设置指令;第一设备接收频段设置指令,将第一设备的通信频段切换为第二频段;主机设备保存第一设备关联的设备地址和第二频段的对应关系。
上述装置还包括第一生成模块,用于主机设备生成从机设备关联的设备地址和通信频段的对应关系;其中,在初始状态下,对应关系中的通信频段均为第一频段;上述第一控制模块,还用于主机设备在对应关系中,将第一设备关联的设备地址对应的通信频段更新为第二频段。
上述第二通信模块,还用于主机设备获取待发送报文,从待发送报文中提取目标设备地址;从从机设备关联的设备地址和通信频段的对应关系中,确定目标设备地址对应的目标通信频段;其中,对应关系中,第一设备关联的设备地址对应保存第二频段,除第一设备以外的从机设备关联的设备地址对应保存第一频段;如果目标通信频段为第一频段,主机设备使用第一频段将待发送报文发送至目标设备地址关联的从机设备;如果目标通信频段为第二频段,主机设备使用第二频段将待发送报文发送至目标设备地址关联的第一设备。
上述第二通信模块,还用于如果目标通信频段为第一频段,主机设备获取主机设备的通信频段;如果通信频段为第二频段,主机设备切换通信频段至第一频段,使用第一频段将待发送报文发送至目标设备地址关联的从机设备。
上述第二通信模块,还用于如果目标通信频段为第二频段,主机设备获取主机设备的通信频段;如果通信频段为第一频段,主机设备切换通信频段至第二频段,使用第二频段将待发送报文发送至目标设备地址关联的第一设备。
上述主机设备还与上位机通信连接;上述装置还包括第一更新模块,用于主机设备接收上位机下发的关系设置指令,从关系设置指令中获取待设置设备和待设置频段;在对应关系中,将待设置设备关联的设备地址对应的通信频段,更新为待设置频段。
上述主机设备还与光伏系统中的数据采集器通信连接;上述装置还包括第一广播模块,用于主机设备获取数据采集器发送的广播报文,使用第一频段对广播报文进行广播;使用第一频段的从机设备接收广播报文;主机设备将通信频段从第一频段切换为第二频段,使用第二频段对广播报文进行广播;使用第二频段的从机设备接收广播报文。
本实施例还提供一种主机设备,主机设备包括处理器和存储器,存储器存储有能够被处理器执行的机器可执行指令,处理器执行机器可执行指令以实现上述通信控制方法。该主机设备可以是服务器,也可以是终端设备。
本实施例还提供一种从机设备,从机设备包括处理器和存储器,存储器存储有能够被处理器执行的机器可执行指令;该从机设备与主机设备通过电力线缆连接。
参见图9所示,该电子设备包括处理器100和存储器101,该存储器101存储有能够被处理器100执行的机器可执行指令,该处理器100执行机器可执行指令以实现上述通信控制方法。
进一步地,图9所示的电子设备还包括总线102和通信接口103,处理器100、通信接口103和存储器101通过总线102连接。
其中,存储器101可能包含高速随机存取存储器(RAM,Random Access Memory),也可能还包括非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。通过至少一个通信接口103(可以是有线或者无线)实现该系统网元与至少一个其他网元之间的通信连接,可以使用互联网,广域网,本地网,城域网等。总线102可以是ISA总线、PCI总线或EISA总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图9中仅用一个双向箭头表示,但并不表示仅有一根总线或一种类型的总线。
处理器100可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器100中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器100可以是通用处理器,包括中 央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(Digital Signal Processor,简称DSP)、专用集成电路(Application Specific Integrated Circuit,简称ASIC)、现场可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器101,处理器100读取存储器101中的信息,结合其硬件完成前述实施例的方法的步骤。
光伏系统中包括多个方阵,方阵也可以称之为子阵,每个方阵都包括数据采集器、逆变器和箱式变压器,在以箱式变压器为基本单元的光伏子阵内,光伏逆变器安装的PLC通讯模块,称之为PLC从机设备,在箱式变压器侧安装的PLC通讯模块,称之为PLC主机设备。
数据采集器和主机设备均位于箱式变压器侧的通讯柜中。箱式变压器侧安装的数据采集器与PLC主机设备之间采用有线通讯,如RS485;数据采集器将指令发送给PLC主机设备,PLC主机设备将指令调制为载波信号,并随箱变低压侧的逆变器交流电力线传输到逆变器端即PLC从机设备,PLC从机设备将载波信号进行解调为指令发送给逆变器执行。逆变器若需上传数据,同样参照上述指令下发方式,仅仅是PLC从机设备将逆变器数据调制为载波信号,并随逆变器交流电力线传输到箱变低压侧及PLC主机设备,PLC主机设备将载波信号进行解调为逆变器数据发送给数据采集器,从而实现双向的通讯。
基于此,本实施例还提供一种光伏系统,如图10所示,该通信系统包括上述主机设备,以及从机设备;主机设备使用第一频段与从机设备进行 通信,统计指定历史时间段内从机设备的通信丢包率;如果从机设备的通信丢包率大于预设丢包率阈值,主机设备控制将从机设备的通信频段切换为第二频段;其中,第二频段的频段值低于第一频段的频段值。
上述主机设备与数据采集器连接;从机设备与逆变器连接。
上述从机设备包括多个;如果从机设备中第一设备的通信丢包率大于预设丢包率阈值,主机设备控制将第一设备的通信频段切换为第二频段,第一设备以外的从机设备的通信频段保持为第一频段。
上述主机设备使用第二频段与第一设备进行通信,使用第一频段与除第一设备以外的从机设备进行通信。
上述主机设备使用第一频段向从机设备发送通信报文,并开始计时;在预设计时时长内,主机设备等待接收从机设备的针对通信报文的回复报文。
上述主机设备获取指定历史时间段内,向从机设备发送的通信报文的通信报文量,以及接收到的针对通信报文的回复报文的回复报文量;基于回复报文量与通信报文量的比值,确定从机设备的通信丢包率。
上述主机设备向第一设备发送频段设置指令;第一设备接收频段设置指令,将第一设备的通信频段切换为第二频段;主机设备保存第一设备关联的设备地址和第二频段的对应关系。
上述主机设备生成从机设备关联的设备地址和通信频段的对应关系;其中,在初始状态下,对应关系中的通信频段均为第一频段;主机设备向第一设备发送频段设置指令后,主机设备在对应关系中,将第一设备关联的设备地址对应的通信频段更新为第二频段。
上述主机设备获取待发送报文,从待发送报文中提取目标设备地址;从从机设备关联的设备地址和通信频段的对应关系中,确定目标设备地址对应的目标通信频段;其中,对应关系中,第一设备关联的设备地址对应保存第二频段,除第一设备以外的从机设备关联的设备地址对应保存第一频段;如果目标通信频段为第一频段,主机设备使用第一频段将待发送报文发送至目标设备地址关联的从机设备;如果目标通信频段为第二频段, 主机设备使用第二频段将待发送报文发送至目标设备地址关联的第一设备。
上述如果目标通信频段为第一频段,主机设备获取主机设备的通信频段;如果通信频段为第二频段,主机设备切换通信频段至第一频段,使用第一频段将待发送报文发送至目标设备地址关联的从机设备。
上述如果目标通信频段为第二频段,主机设备获取主机设备的通信频段;如果通信频段为第一频段,主机设备切换通信频段至第二频段,使用第二频段将待发送报文发送至目标设备地址关联的第一设备。
上述主机设备还与上位机通信连接;主机设备接收上位机下发的关系设置指令,从关系设置指令中获取待设置设备和待设置频段;在对应关系中,将待设置设备关联的设备地址对应的通信频段,更新为待设置频段。
上述主机设备还与光伏系统中的数据采集器通信连接;主机设备获取数据采集器发送的广播报文,使用第一频段对广播报文进行广播;使用第一频段的从机设备接收广播报文;主机设备将通信频段从第一频段切换为第二频段,使用第二频段对广播报文进行广播;使用第二频段的从机设备接收广播报文。
上述光伏系统,将逆变器地址与频段编号的对应关系存储在主机设备内,主机设备利用丢包率反馈,将丢包严重的问题逆变器的频段设置为低频频段,除问题逆变器以外的其他逆变器保持默认的高频频段进行通信,当数据采集器询问问题逆变器地址时,主机设备根据地址和频段对应关系,自动切换为低频频段发送报文至问题逆变器,并等待问题逆变器回复;当数据采集器询问正常逆变器地址时,主机设备自动恢复为正常频段,解决了PLC通信方式中,由于电力线缆中噪声、电力线缆的类型和材质,或者通信两端的设备距离较远,造成PLC通信信号的衰减较大的问题,减少了丢包率,提高了通讯质量,保障了通讯的稳定性,也最大程度上减少了串扰的影响。
另外,在本发明实施例的描述中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可 以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域技术人员而言,可以具体情况理解上述术语在本发明中的具体含义。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
在本发明的描述中,需要说明的是,术语“中心”、“上”、“下”、“左”、“右”、“竖直”、“水平”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。此外,术语“第一”、“第二”、“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性。
最后应说明的是:以上实施例,仅为本发明的具体实施方式,用以说明本发明的技术方案,而非对其限制,本发明的保护范围并不局限于此,尽管参照前述实施例对本发明进行了详细的说明,本领域技术人员应当理解:任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本发明实施例技术方案的精神和范围,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。

Claims (28)

  1. 一种通信控制方法,其特征在于,所述方法应用于光伏系统;所述光伏系统中,主机设备与从机设备通过电力线缆连接;所述方法包括:
    所述主机设备使用第一频段与所述从机设备进行通信,统计指定历史时间段内所述从机设备的通信丢包率;
    如果所述从机设备的通信丢包率大于预设丢包率阈值,所述主机设备控制将所述从机设备的通信频段切换为第二频段;其中,所述第二频段的频段值低于所述第一频段的频段值。
  2. 根据权利要求1所述的方法,其特征在于,所述从机设备包括多个;所述如果所述从机设备的通信丢包率大于预设丢包率阈值,所述主机设备控制将所述从机设备的通信频段切换为第二频段的步骤,包括:
    如果所述从机设备中第一设备的通信丢包率大于预设丢包率阈值,所述主机设备控制将所述第一设备的通信频段切换为第二频段,所述第一设备以外的从机设备的通信频段保持为所述第一频段。
  3. 根据权利要求2所述的方法,其特征在于,如果所述从机设备中第一设备的通信丢包率大于预设丢包率阈值,所述主机设备控制将所述第一设备的通信频段切换为第二频段,所述第一设备以外的从机设备的通信频段保持为所述第一频段的步骤之后,所述方法还包括:
    所述主机设备使用所述第二频段与所述第一设备进行通信,使用所述第一频段与除所述第一设备以外的从机设备进行通信。
  4. 根据权利要求1所述的方法,其特征在于,所述主机设备使用第一频段与所述从机设备进行通信的步骤,包括:
    所述主机设备使用第一频段向所述从机设备发送通信报文,并开始计时;
    在预设计时时长内,所述主机设备等待接收所述从机设备的针对所述通信报文的回复报文。
  5. 根据权利要求1所述的方法,其特征在于,统计指定历史时间段内所述从机设备的通信丢包率的步骤,包括:
    所述主机设备获取指定历史时间段内,向所述从机设备发送的通信报文的通信报文量,以及接收到的针对所述通信报文的回复报文的回复报文量;
    基于所述回复报文量与所述通信报文量的比值,确定所述从机设备的通信丢包率。
  6. 根据权利要求2所述的方法,其特征在于,所述主机设备控制将所述第一设备的通信频段切换为第二频段的步骤,包括:
    所述主机设备向所述第一设备发送频段设置指令;
    所述第一设备接收所述频段设置指令,将所述第一设备的通信频段切换为第二频段;
    所述主机设备保存所述第一设备关联的设备地址和所述第二频段的对应关系。
  7. 根据权利要求6所述的方法,其特征在于,所述主机设备向所述第一设备发送频段设置指令的步骤之前,所述方法还包括:
    所述主机设备生成所述从机设备关联的设备地址和通信频段的对应关系;其中,在初始状态下,所述对应关系中的通信频段均为所述第一频段;
    所述主机设备保存所述第一设备关联的设备地址和所述第二频段的对应关系的步骤,包括:
    所述主机设备在所述对应关系中,将所述第一设备关联的设备地址对应的通信频段更新为第二频段。
  8. 根据权利要求3所述的方法,其特征在于,所述主机设备使用所述第二频段与所述第一设备进行通信,使用所述第一频段与除所述第一设备以外的从机设备进行通信的步骤,包括:
    所述主机设备获取待发送报文,从所述待发送报文中提取目标设备地址;
    从所述从机设备关联的设备地址和通信频段的对应关系中,确定所述目标设备地址对应的目标通信频段;其中,所述对应关系中,所述第一设备关联的设备地址对应保存所述第二频段,除所述第一设备以外的从机设备关联的设备地址对应保存所述第一频段;
    如果所述目标通信频段为第一频段,所述主机设备使用所述第一频段将所述待发送报文发送至所述目标设备地址关联的从机设备;
    如果所述目标通信频段为第二频段,所述主机设备使用所述第二频段将所述待发送报文发送至所述目标设备地址关联的所述第一设备。
  9. 根据权利要求8所述的方法,其特征在于,如果所述目标通信频段为第一频段,所述主机设备使用所述第一频段将所述待发送报文发送至所述目标设备地址关联的从机设备的步骤,包括:
    如果所述目标通信频段为第一频段,所述主机设备获取所述主机设备的通信频段;
    如果所述通信频段为第二频段,所述主机设备切换所述通信频段至所述第一频段,使用所述第一频段将所述待发送报文发送至所述目标设备地址关联的从机设备。
  10. 根据权利要求8所述的方法,其特征在于,如果所述目标通信频段为第二频段,所述主机设备使用所述第二频段将所述待发送报文发送至所述目标设备地址关联的所述第一设备的步骤,包括:
    如果所述目标通信频段为第二频段,所述主机设备获取所述主机设备的通信频段;
    如果所述通信频段为第一频段,所述主机设备切换所述通信频段至所述第二频段,使用所述第二频段将所述待发送报文发送至所述目标设备地址关联的所述第一设备。
  11. 根据权利要求7所述的方法,其特征在于,所述主机设备还与上位机通信连接;所述方法还包括:
    所述主机设备接收所述上位机下发的关系设置指令,从所述关系设置指令中获取待设置设备和待设置频段;
    在所述对应关系中,将所述待设置设备关联的设备地址对应的通信频段,更新为所述待设置频段。
  12. 根据权利要求1所述的方法,其特征在于,所述主机设备还与所述光伏系统中的数据采集器通信连接;所述方法还包括:
    所述主机设备获取所述数据采集器发送的广播报文,使用所述第一频段对所述广播报文进行广播;
    使用所述第一频段的从机设备接收所述广播报文;
    所述主机设备将所述通信频段从所述第一频段切换为所述第二频段,使用所述第二频段对所述广播报文进行广播;
    使用所述第二频段的从机设备接收所述广播报文。
  13. 一种通信控制装置,其特征在于,所述装置设置于光伏系统;所述光伏系统中,主机设备与从机设备通过电力线缆连接;所述装置包括:
    第一通信模块,用于所述主机设备使用第一频段与所述从机设备进行通信,统计指定历史时间段内所述从机设备的通信丢包率;
    第一控制模块,用于如果所述从机设备的通信丢包率大于预设丢包率阈值,所述主机设备控制将所述从机设备的通信频段切换为第二频段;其中,所述第二频段的频段值低于所述第一频段的频段值。
  14. 一种主机设备,其特征在于,所述主机设备包括处理器和存储器,所述存储器存储有能够被所述处理器执行的机器可执行指令,所述处理器执行所述机器可执行指令以实现权利要求1-12任一项所述的通信控制方法。
  15. 一种从机设备,其特征在于,所述从机设备包括处理器和存储器,所述存储器存储有能够被所述处理器执行的机器可执行指令;所述从机设备与权利要求14所述的主机设备通过电力线缆连接。
  16. 一种光伏系统,所述光伏系统包括权利要求14所述的主机设备,以及权利要求15所述的从机设备;
    所述主机设备使用第一频段与所述从机设备进行通信,统计指定历史时间段内所述从机设备的通信丢包率;
    如果所述从机设备的通信丢包率大于预设丢包率阈值,所述主机设备控制将所述从机设备的通信频段切换为第二频段;其中,所述第二频段的频段值低于所述第一频段的频段值。
  17. 根据权利要求16所述的光伏系统,其特征在于,所述主机设备与数据采集器连接;所述从机设备与逆变器连接。
  18. 根据权利要求16所述的光伏系统,其特征在于,所述从机设备包括多个;
    如果所述从机设备中第一设备的通信丢包率大于预设丢包率阈值,所述主机设备控制将所述第一设备的通信频段切换为第二频段,所述第一设备以外的从机设备的通信频段保持为所述第一频段。
  19. 根据权利要求18所述的光伏系统,其特征在于,所述主机设备使用所述第二频段与所述第一设备进行通信,使用所述第一频段与除所述第一设备以外的从机设备进行通信。
  20. 根据权利要求16所述的光伏系统,其特征在于,所述主机设备使用第一频段向所述从机设备发送通信报文,并开始计时;
    在预设计时时长内,所述主机设备等待接收所述从机设备的针对所述通信报文的回复报文。
  21. 根据权利要求16所述的光伏系统,其特征在于,所述主机设备获取指定历史时间段内,向所述从机设备发送的通信报文的通信报文量,以及接收到的针对所述通信报文的回复报文的回复报文量;
    基于所述回复报文量与所述通信报文量的比值,确定所述从机设备的通信丢包率。
  22. 根据权利要求18所述的光伏系统,其特征在于,所述主机设备向所述第一设备发送频段设置指令;
    所述第一设备接收所述频段设置指令,将所述第一设备的通信频段切换为第二频段;
    所述主机设备保存所述第一设备关联的设备地址和所述第二频段的对应关系。
  23. 根据权利要求22所述的光伏系统,其特征在于,所述主机设备生成所述从机设备关联的设备地址和通信频段的对应关系;其中,在初始状态下,所述对应关系中的通信频段均为所述第一频段;
    所述主机设备向所述第一设备发送频段设置指令后,所述主机设备在所述对应关系中,将所述第一设备关联的设备地址对应的通信频段更新为第二频段。
  24. 根据权利要求19所述的光伏系统,其特征在于,所述主机设备获取待发送报文,从所述待发送报文中提取目标设备地址;
    从所述从机设备关联的设备地址和通信频段的对应关系中,确定所述目标设备地址对应的目标通信频段;其中,所述对应关系中,所述第一设备关联的设备地址对应保存所述第二频段,除所述第一设备以外的从机设备关联的设备地址对应保存所述第一频段;
    如果所述目标通信频段为第一频段,所述主机设备使用所述第一频段将所述待发送报文发送至所述目标设备地址关联的从机设备;
    如果所述目标通信频段为第二频段,所述主机设备使用所述第二频段将所述待发送报文发送至所述目标设备地址关联的所述第一设备。
  25. 根据权利要求24所述的光伏系统,其特征在于,如果所述目标通信频段为第一频段,所述主机设备获取所述主机设备的通信频段;
    如果所述通信频段为第二频段,所述主机设备切换所述通信频段至所述第一频段,使用所述第一频段将所述待发送报文发送至所述目标设备地址关联的从机设备。
  26. 根据权利要求24所述的光伏系统,其特征在于,如果所述目标通信频段为第二频段,所述主机设备获取所述主机设备的通信频段;
    如果所述通信频段为第一频段,所述主机设备切换所述通信频段至所述第二频段,使用所述第二频段将所述待发送报文发送至所述目标设备地址关联的所述第一设备。
  27. 根据权利要求23所述的光伏系统,其特征在于,所述主机设备还与上位机通信连接;
    所述主机设备接收所述上位机下发的关系设置指令,从所述关系设置指令中获取待设置设备和待设置频段;
    在所述对应关系中,将所述待设置设备关联的设备地址对应的通信频段,更新为所述待设置频段。
  28. 根据权利要求16所述的光伏系统,其特征在于,所述主机设备还与所述光伏系统中的数据采集器通信连接;
    所述主机设备获取所述数据采集器发送的广播报文,使用所述第一频段对所述广播报文进行广播;
    使用所述第一频段的从机设备接收所述广播报文;
    所述主机设备将所述通信频段从所述第一频段切换为所述第二频段,使用所述第二频段对所述广播报文进行广播;
    使用所述第二频段的从机设备接收所述广播报文。
PCT/CN2024/073411 2023-11-29 2024-01-22 通信控制方法、装置、主机设备、从机设备和光伏系统 Pending WO2025112183A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202311648420.6 2023-11-29
CN202311648420.6A CN117639842A (zh) 2023-11-29 2023-11-29 通信控制方法、装置、主机设备、从机设备和光伏系统

Publications (1)

Publication Number Publication Date
WO2025112183A1 true WO2025112183A1 (zh) 2025-06-05

Family

ID=90016037

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2024/073411 Pending WO2025112183A1 (zh) 2023-11-29 2024-01-22 通信控制方法、装置、主机设备、从机设备和光伏系统

Country Status (2)

Country Link
CN (1) CN117639842A (zh)
WO (1) WO2025112183A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015156543A (ja) * 2014-02-20 2015-08-27 株式会社東芝 電力線搬送通信装置
CN109039378A (zh) * 2018-08-16 2018-12-18 江苏林洋能源股份有限公司 一种实现g3-plc网络通信频段自适应切换的方法
CN110771052A (zh) * 2017-05-31 2020-02-07 萨基姆能源电信公司 用于自动选择频带的方法
CN111601414A (zh) * 2020-04-22 2020-08-28 上海亚明照明有限公司 Plc智能灯控方法、plc网关、plc灯具、及系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015156543A (ja) * 2014-02-20 2015-08-27 株式会社東芝 電力線搬送通信装置
CN110771052A (zh) * 2017-05-31 2020-02-07 萨基姆能源电信公司 用于自动选择频带的方法
CN109039378A (zh) * 2018-08-16 2018-12-18 江苏林洋能源股份有限公司 一种实现g3-plc网络通信频段自适应切换的方法
CN111601414A (zh) * 2020-04-22 2020-08-28 上海亚明照明有限公司 Plc智能灯控方法、plc网关、plc灯具、及系统

Also Published As

Publication number Publication date
CN117639842A (zh) 2024-03-01

Similar Documents

Publication Publication Date Title
CN110838713B (zh) 一种基于5g网络的配电网分布式差动保护方法及系统
CN111770559B (zh) 网络连接方法、终端、基站及计算机存储介质
CN111739275A (zh) 双模通信的控制方法、控制装置、控制设备及存储介质
CN108494681A (zh) 多链路的数据流传输方法、无线通信设备及存储介质
CN105652676A (zh) 一种智能家居远程控制系统及控制方法
CN114567547B (zh) 设备组网方法、系统、装置、通信管理设备和存储介质
EP3422655B1 (en) Method for managing address of meter device, and acquisition terminal and meter device
CN103633741B (zh) 智能变电站采样值网数据交换方法
CN111132141A (zh) 一种多频段跳频无线WiFi自动级联装置
WO2025112183A1 (zh) 通信控制方法、装置、主机设备、从机设备和光伏系统
CN112885068A (zh) 一种电力用电信息采集终端公专网通信模块及切换方法
CN110943931A (zh) 一种5g蜂窝网络的mesh路由器系统及其使用方法
CN103441873A (zh) 一种混合网络无线克隆方法
CN115707054A (zh) 一种终端节能处理方法、装置及设备
WO2025213905A1 (zh) 供电装置问题感知系统及方法
CN114599007B (zh) 一种局域网与广域网联合的物联网高效通信系统及构建方法
EP3771151A1 (en) Multicast message processing method and network device
CN117743083A (zh) 电能统计方法、电能计量方法及分布式计量统计系统
CN211481286U (zh) 一种基于LoRa技术的边缘计算网关
CN108260176A (zh) Lte基站快速切换方法
CN114726105A (zh) 基于通信时延的配电网馈线自动化切换方法、装置及介质
CN207625592U (zh) 无线网络设备
CN106911578A (zh) 一种业务数据的传输方法及设备
CN105702007A (zh) 一种基于WiFi技术的智能电表无线远程抄表模块
CN109560973B (zh) 一种馈线自动化拓扑链接的增加终端方法及删除终端方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 24895297

Country of ref document: EP

Kind code of ref document: A1