CN110768815B - Method for switching signal lines and solar system - Google Patents

Method for switching signal lines and solar system Download PDF

Info

Publication number
CN110768815B
CN110768815B CN201810843838.5A CN201810843838A CN110768815B CN 110768815 B CN110768815 B CN 110768815B CN 201810843838 A CN201810843838 A CN 201810843838A CN 110768815 B CN110768815 B CN 110768815B
Authority
CN
China
Prior art keywords
controller
output
input
junction box
signal
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.)
Active
Application number
CN201810843838.5A
Other languages
Chinese (zh)
Other versions
CN110768815A (en
Inventor
姜宪明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongjun New Energy Co ltd
Original Assignee
Dongjun New Energy 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 Dongjun New Energy Co ltd filed Critical Dongjun New Energy Co ltd
Priority to CN201810843838.5A priority Critical patent/CN110768815B/en
Publication of CN110768815A publication Critical patent/CN110768815A/en
Application granted granted Critical
Publication of CN110768815B publication Critical patent/CN110768815B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a method for switching signal lines and a solar energy system, wherein a plurality of junction boxes which are in one-to-one correspondence with solar energy components are preset, the junction boxes are sequentially connected in series through the signal lines, and the series junction boxes are connected in series with a controller to form a loop, and the method comprises the following steps: and the controller receives and analyzes the data information uploaded by the junction boxes, judges whether the data information of all the junction boxes in the loop is received, and if not, switches the input end and the output end of the controller, and receives the missing data information through the switched input end. After the communication cable fails, the invention receives the data information of all junction boxes at two sides of the failure point through switching the input end and the output end of the controller, thereby realizing the communication in failure. Therefore, the embodiment of the invention can solve the problem that communication cannot be performed due to the fault of the communication cable, and can ensure that communication can be performed with each junction box after the fault of the communication cable, so as to receive the communication data of each junction box.

Description

Method for switching signal lines and solar system
Technical Field
The invention relates to the technical field of photovoltaic modules, in particular to a method for switching signal lines and a solar energy system.
Background
For the switching of communication signal ports, a common practice of the skilled person is to implement signal port selection by a bidirectional controllable switch, for example, input and output of the communication signal ports are respectively led to different ports by using a two-to-close relay, and switching between two different ports can be implemented by controlling closing and conducting of the relay.
Disclosure of Invention
In view of the above, the present invention is directed to a method for switching signal lines and a solar energy system, so as to solve the technical problems in the prior art.
According to a first aspect of the present invention, there is provided a method for switching signal lines, a plurality of junction boxes corresponding to solar modules one by one are preset, the junction boxes are sequentially connected in series through the signal lines, and the series junction boxes are connected in series with a controller to form a loop, the method comprising:
and the controller receives and analyzes the data information uploaded by the junction boxes, judges whether the data information of all the junction boxes in the loop is received, and if not, switches the input end and the output end of the controller, and receives the missing data information through the switched input end.
In some embodiments of the present invention, switching the input and output of the controller, receiving missing data information via the switched input, includes:
the controller sends a port switching command to the junction box in the loop through a signal output line connected with the output end of the controller so that the junction box receiving the port switching command switches the receiving end and the sending end of the junction box;
the controller switches the input end and the output end of the controller;
and the controller receives the data information uploaded by the junction boxes of the receiving end and the transmitting end of the switching self through the input end after the switching.
In some embodiments of the present invention, switching the input and output of the controller, receiving missing data information via the switched input, includes:
the controller sends a data acquisition command and a port switching command to the junction box in the loop through a signal output line connected with the output end of the controller, so that the junction box receiving the port switching command switches the receiving end and the sending end of the junction box;
the controller switches the input end and the output end of the controller;
and the controller receives the data information returned by the junction boxes switching the receiving end and the transmitting end of the controller in response to the data acquisition command through the input end after switching.
In some embodiments of the present invention, the data information includes a code number of the junction box, and the method further includes:
the controller judges whether the data information of all the junction boxes is acquired according to the code numbers in the received data information;
if not, determining a fault point in the loop according to the missing code number;
and carrying out fault alarm according to the determined fault point.
According to a second aspect of the present invention, there is provided a method for switching signal lines, a plurality of junction boxes corresponding to solar modules one by one are preset, the junction boxes are sequentially connected in series through the signal lines, and the series junction boxes are connected in series with a controller to form a loop, the method comprising:
the terminal box receives a port switching command sent by the controller when judging that the data information of all terminal boxes in the loop is not received;
the junction box switches the receiving end and the sending end of the junction box;
and the junction box sends the data information acquired by the junction box to the input end of the controller after switching through the sending end after switching.
In some embodiments of the present invention, the terminal box sends its own data information to the input terminal after the controller is switched through the sending terminal after the switching, including:
The junction box actively or in response to a data acquisition command issued by the controller transmits data information acquired by the junction box to the junction box with the minimum code number and/or the junction box with the maximum code number;
and the junction box with the minimum code number and/or the junction box with the maximum code number upload the collected data information to the input end of the controller after switching.
In some embodiments of the invention, the method further comprises:
if the controller and the junction box do not communicate within the preset time threshold, the junction box actively transmits data information of the junction box to the controller through a signal wire and the junction box in the loop in sequence.
According to a third aspect of the invention, there is provided a solar energy system, comprising a plurality of junction boxes corresponding to solar energy components one by one, wherein the junction boxes are sequentially connected in series through signal wires, and the series junction boxes are connected in series with a controller to form a loop; the controller comprises a switching unit, the controller is coupled with the signal line through the switching unit, each junction box comprises a signal input/output unit and the switching unit, and the junction box is coupled with the signal line through the switching unit.
In some embodiments of the present invention, the switching unit includes a plurality of multiplexing units connected in parallel through a control signal line, and the plurality of multiplexing units connected in parallel are connected in series with a signal input output unit through the control signal line.
In some embodiments of the present invention, the switching unit includes a plurality of bus transceivers connected in parallel through a control signal line and an inverter connected in series with the signal input output unit through the control signal line, the inverter being connected in series between one of the bus transceivers and the signal input output unit.
In some embodiments of the present invention, the switching unit further includes a plurality of tri-state data buffers and an inverter, the plurality of tri-state data buffers are divided into two groups, wherein control pins of one group of tri-state data buffers are connected with control signal lines, control pins of the other group of tri-state data buffers are connected with output ends of the inverter, and input ends of the inverter are connected with the control signal lines;
the input end of one tri-state data buffer in one group of tri-state data buffers is connected with the receiving end of the first bus transceiver, the output end of the tri-state data buffer is connected with the input pin of the signal input output unit, the input end of the other tri-state data buffer is connected with the output pin of the signal input output unit, and the output end of the tri-state data buffer is connected with the transmitting end of the second bus transceiver; the input end of one tri-state data buffer in the other group of tri-state data buffers is connected with the receiving end of the second bus transceiver, the output end of the tri-state data buffer is connected with the input pin of the signal input output unit, the input end of the other tri-state data buffer is connected with the output pin of the signal input output unit, and the output end of the tri-state data buffer is connected with the transmitting end of the first bus transceiver.
After the communication cable fails, the embodiment of the invention receives the data information of all junction boxes at two sides of the failure point through switching the input end and the output end of the controller, thereby realizing the communication in failure. Therefore, the embodiment of the invention can solve the problem that communication cannot be performed due to the fault of the communication cable, and can ensure that communication can be performed with each junction box after the fault of the communication cable, so as to receive the communication data of each junction box. In addition, the embodiment of the invention adopts the switching unit to switch the input end and the output end of the controller, thereby solving the problems of higher cost and higher power consumption of the bidirectional controlled switch and being unsuitable for transmitting digital quantity communication signals.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a solar energy system according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of switching signal lines according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a signal input/output unit and a switching unit according to an embodiment of the present invention;
FIG. 4 is a schematic view of a solar energy system according to another embodiment of the present invention;
FIG. 5 is a schematic view of a solar energy system according to another embodiment of the present invention;
FIG. 6 is a schematic diagram of a signal input/output unit and a switching unit according to still another embodiment of the present invention;
fig. 7 is a schematic diagram of a signal input/output unit and a switching unit according to another embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
At least one embodiment of the present invention provides a method for switching signal lines, in which a plurality of junction boxes corresponding to solar modules one by one are preset, the junction boxes are sequentially connected in series through the signal lines, and the series junction boxes and a controller are connected in series to form a loop, the method includes: and the controller receives and analyzes the data information uploaded by the junction boxes, judges whether the data information of all the junction boxes in the loop is received, and if not, switches the input end and the output end of the controller, and receives the missing data information through the switched input end. And the controller sends a port switching command to the junction boxes in the loop through the output end when judging that the data information of all the junction boxes in the loop is not received. The terminal box in the loop receives the port switching command and switches the receiving end and the sending end of the terminal box; and the junction box sends the data information acquired by the junction box to the input end of the controller after switching through the sending end after switching.
Fig. 1 is a schematic structural diagram of a solar energy system according to an embodiment of the invention. In this embodiment, the system includes a controller 1 and a plurality of junction boxes 7, 8, 9, 10 corresponding to solar modules one by one, the plurality of junction boxes 7, 8, 9, 10 are sequentially connected in series through a signal line 11, the plurality of junction boxes 7, 8, 9, 10 after being connected in series form a loop with the controller 1, and the plurality of junction boxes are divided into a plurality of junction box groups (the junction boxes 7, 8 are one group, the junction boxes 9, 10 are one group) connected in parallel through a power line or one junction box group (the junction boxes 7, 8, 9, 10 are one group) connected in series through the power line. It can be seen that the solar modules can be formed into an orderly, interrelated whole by means of the signal lines 11. Because the communication ground wire can be grounded through the equipment shell such as the junction box in some applications, the common ground relationship is default in the schematic diagrams in fig. 1 and 2 and related later, and is not specifically shown in the drawings, if the communication ground wire common ground relationship cannot be formed through the equipment shell such as the junction box in the applications, only one common ground wire needs to be supplemented in the schematic diagrams. If more than one junction box group is shown in fig. 1, each junction box group is not representative of junction boxes associated with only two solar modules, each junction box group may include 1 to N junction boxes of any inequality, and N may be 2, 3, 4, 5, 8, 10, 100, 1000, 10000, etc. junction boxes, which is not limited in this regard. If a set of terminal blocks is shown in fig. 1, the set of terminal blocks may include 1 to N terminal blocks, where N may be 2, 3, 4, 5, 8, 10, 100, 1000, 10000, etc. terminal blocks, which is not limited in this embodiment of the present invention. It should be noted that the controller 1 has an encoding function and a communication function.
In another embodiment, the signal line 11 may be a general cable only, and the first signal line and the second signal line may be general communication cables, so that it is not necessary to distinguish between a communication input line and a communication output line, and communication is customized by using signals of 0, 1, etc. and time-series signals of 0, 1.
In the embodiment of the present invention, the controller 1 sends a communication signal through the sending end 102, the communication signal can only be received by the first junction box 7 in the loop (using the receiving end 702 of the first junction box 7 in the loop), the first junction box 7 in the loop analyzes information in the communication signal, uses the information to complete a corresponding function, and sends the received useful information or information required to be transmitted to the receiving end 802 of the next junction box 8 connected in series with the first junction box through the sending end 701, the junction box 8 analyzes information in the signal transmitted by the receiving end 802 to complete a corresponding function until all junction boxes receive the communication signal, and completes one communication cycle, and if necessary, the last junction box completing the communication sends the collected useful information or information required to be transmitted to the receiving end 101 of the controller 1 through the signal sending end thereof.
In the whole communication process, all communication function modules including the controller and the junction box only communicate with the adjacent communication function modules, and the relative communication distance is very short, so that the communication function modules can be ensured to communicate at the highest allowable communication speed. The communication function module herein refers to a full-duplex or half-duplex communication unit circuit with a communication function in a controller or a junction box, such as a full-duplex bus transceiver (e.g., RS232, RS422, etc.), or a half-duplex bus transceiver (e.g., RS485, etc.).
It should be noted that, here, for convenience in describing the implementation procedure of the present invention, 102 is designated as the transmitting end of the controller 1, and 101 is designated as the receiving end of the controller 1. This manner of specification is for convenience of description only and does not represent that the actual deployment and implementation must be performed in this manner, and the actual implementation may be provided with 101 as the transmitting end of the controller 1 and 102 as the receiving end of the controller 1. Similarly, the receiving end and the transmitting end of the junction box are not fixed, and can be deployed according to actual conditions. According to the actual application requirements, 702, 802, 902 and 1002 can be deployed as receiving ends, 701, 801, 901 and 1001 are transmitting ends; 702, 802, 902, 1002 may be deployed as a transmitting end, and 701, 801, 901, 1001 may be a receiving end.
It should be noted that, in the embodiment of the present invention, the junction box refers to a device for connecting between solar modules corresponding to the solar modules, and may have a unique factory identification code inside. The solar module comprises a solar module with an intelligent junction box and also comprises a solar module externally hung with the intelligent junction box, so that the solar module junction box in the embodiment of the invention can be the junction box in the solar module with the intelligent junction box or the junction box of the solar module externally hung with the intelligent junction box. That is, the designations 7, 8, 9, 10 shown in fig. 1 may represent either solar modules with built-in junction boxes or external junction boxes for solar modules.
As an embodiment of the present invention, as shown in fig. 2, the method includes:
step 201, if the controller and the junction box do not communicate within a preset time threshold, the junction box actively transmits data information of the junction box to the controller sequentially through a signal line and the junction box in a loop;
step 202, the controller receives and analyzes the data information uploaded by the junction boxes, judges whether the data information of all the junction boxes in the loop is received, and if not, receives the missing data information by switching the input end and the output end of the controller.
In order to avoid communication failure caused by communication cable failure, such as disconnection of the communication cable, the controller 1 presets a maximum allowable time T (i.e. a preset time threshold T) for non-communication (not receiving a communication command or not completing communication data transmission) in all the junction boxes, when the junction boxes exceed the time T and do not perform communication, all the junction boxes attempt to actively upload data information acquired by themselves to the next junction box in the loop, and the next junction box continuously uploads the data information transmitted by the last junction box after loading the information acquired by the junction box until all the junction boxes after the disconnection point can automatically upload the information, and the communication link of all the junction boxes is opened after the disconnection point. The data information may be an identification code, a code number, a component operating voltage, a current, a power, a temperature, a component or junction box state, fault information, other necessary information related to the component or junction box, and the like. Taking 102 as the output terminal of the controller 1 and 101 as the input terminal of the controller 1 as an example, when the disconnection point occurs between the junction boxes 8 and 9, the junction box 9 and all the junction boxes after it can realize communication when the communication cable fails by actively uploading data. In this process, the controller 1 parses the uploaded data information, clearly knowing where the communication failure occurred.
In this embodiment, the controller 1 can determine which number of code data information is reduced by analyzing the last terminal block transmitted data information, thereby determining the position of the failed terminal block. Thus, any communication problem is quickly identified and located throughout the communication loop. Next, the input terminal and the output terminal of the controller 1 are switched, and after the switching, 102 is the input terminal of the controller 1, 101 is the output terminal of the controller 1, and the data information of the junction box 8 and all the junction boxes before it is received by the receiving terminal 102.
In the embodiment of the present invention, the solar modules corresponding to the respective junction boxes are encoded, and the solar modules corresponding to the junction boxes directly connected to the output terminal 102 are encoded in order of the encoding numbers from small to large, and the encoding numbers of the solar modules corresponding to the junction boxes directly connected to the input terminal 101 are the smallest before the input terminal and the output terminal are switched. After switching the input and output, the code number of the solar module corresponding to each junction box is not changed.
In another embodiment of the present invention, the method for receiving data information of a junction box located at one side of the fault point by switching an input terminal and an output terminal of the controller includes: the controller sends a port switching command to a junction box in the loop through a signal output line connected with the output end of the controller; switching the input end and the output end of the controller; the terminal box receiving the port switching command transmits the port switching command to the next adjacent terminal box, then switches the receiving end and the transmitting end of the terminal box, and uploads the data information acquired by the terminal box to the controller.
If the controller 1 does not receive the complete coded data information (e.g. the component data from code number 00 to code number XX), it can automatically determine which terminal box has a communication failure, and at this time, the controller 1 sends a port switching command to the terminal box by using the signal output line connected to the output terminal 102, and sequentially receives the port switching command from the first terminal box connected to the signal output line of the controller 1 until the terminal box where the communication cable disconnection occurs, such as terminal boxes 7 and 8, and sequentially completes the port exchange process. Next, after the port switching command is sent, the input end and the output end of the controller 1 are switched, 102 is the input end of the controller 1, 101 is the output end of the controller 1 after the switching, and the data information of the junction box 8 and all the junction boxes before the junction box is waited to be received through the receiving end 102. After the exchange process is finished, all junction boxes exchanged by the receiving end of the transmitting end automatically upload data information acquired by the junction boxes, and the data information is uploaded to the controller 1 after the first junction box (the junction box with the smallest code number, namely the original junction box which directly receives the communication signal of the controller, and each junction box can judge whether the junction box is the first junction box according to the size of the code number) collects the data information of all solar modules.
As shown in fig. 1, the input end of the controller 1 is switched between 101 and 102 in a time-sharing manner to receive the data information of the two groups of solar modules after the communication failure, so as to cooperate with the data reception of the controller 1, and at this time, the first junction box and the last junction box can select to upload the same data information multiple times to ensure that the data is completely received by the controller 1.
Optionally, the junction box of the switching receiving end and the sending end transmits the data information acquired by the junction box to the junction box with the largest code number or the junction box with the smallest code number; and uploading the collected data information to the controller by the junction box with the largest code number or the junction box with the smallest code number. Therefore, the terminal box with the minimum code number and the terminal box with the maximum code number can also wait for receiving the complete terminal box data information and then update the data information and transmit the data information to the controller 1, and before updating the data information, the terminal box with the minimum code number and the terminal box with the maximum code number can select to upload the received complete terminal box data information for multiple times.
In yet another embodiment of the present invention, switching the input and output of the controller, receiving missing data information through the switched input, includes: the controller sends a data acquisition command and a port switching command to the junction box in the loop through a signal output line connected with the output end of the controller, so that the junction box receiving the port switching command switches the receiving end and the sending end of the junction box; the controller switches the input end and the output end of the controller; and the controller receives the data information returned by the junction boxes switching the receiving end and the transmitting end of the controller in response to the data acquisition command through the input end after switching. The terminal box sends own data information to the input end of the controller after switching through the sending end after switching, and the terminal box comprises: the junction box responds to a data acquisition command issued by the controller and transmits data information acquired by the junction box to the junction box with the minimum code number and/or the junction box with the maximum code number; and the junction box with the minimum code number and/or the junction box with the maximum code number upload the collected data information to the input end of the controller after switching.
It should be noted that, the data acquisition command and the port switching command may be sent to the junction box in the loop at the same time, or the data acquisition command may be sent first, and then the port switching command may be sent, which are both within the protection scope of the present invention. In this embodiment, it is ensured that the terminal box has sent the data acquisition command and the port switching command to the next terminal box adjacent thereto before switching between its receiving end and transmitting end.
In yet another embodiment of the present invention, a data acquisition command is sent first, and then a port switch command is sent for illustration. Receiving data information of a junction box positioned at one side of the fault point by switching an input end and an output end of the controller, wherein the data information comprises the following components: the controller sends a data acquisition command to a junction box in the loop through a signal output line connected with the output end of the controller; a junction box in the loop receives the data acquisition command; the controller sends a port switching command to a junction box in the loop through a signal output line connected with the output end of the controller; switching the input end and the output end of the controller; the junction box receiving the port switching command switches the input end and the output end of the junction box and actively uploads the data information acquired by the junction box to the controller.
In another embodiment of the present invention, switching the input and output of the controller, receiving missing data information through the switched input, includes: the controller sends a port switching command to the junction box in the loop through a signal output line connected with the output end of the controller so that the junction box receiving the port switching command switches the receiving end and the sending end of the junction box; the controller switches the input end and the output end of the controller; and the controller receives the data information uploaded by the junction boxes of the receiving end and the transmitting end of the switching self through the input end after the switching. The junction box actively transmits the data information acquired by the junction box to the junction box with the minimum code number and/or the junction box with the maximum code number; and the junction box with the minimum code number and/or the junction box with the maximum code number upload the collected data information to the input end of the controller after switching.
Optionally, the data information includes an encoding number of the junction box, and the method further includes: the controller judges whether the data information of all the junction boxes is acquired according to the code numbers in the received data information; if not, determining a fault point in the loop according to the missing code number; and carrying out fault alarm according to the determined fault point.
The communication link is broken, for example, after the connection boxes 8 and 9 are broken, the connection boxes of each component can receive the data of the connection boxes in a combined mode of master-slave and active uploading, and in the embodiment, the connection boxes actively transmit the data information collected by the connection boxes to the connection box with the minimum code number and/or the connection box with the maximum code number; and the junction box with the minimum code number and/or the junction box with the maximum code number upload the collected data information to the input end of the controller after switching. The implementation mode is as follows:
taking 102 as the output terminal of the controller 1 and 101 as the input terminal of the controller 1 as an example, when the disconnection point occurs between the junction boxes 8 and 9, the junction box 9 and all the junction boxes after it can realize communication when the communication cable fails by actively uploading data. In this process, the controller 1 parses the uploaded data information, clearly knowing where the communication failure occurred.
The controller 1 sends a data acquisition command to the junction box in the loop via a signal output line connected to its output 102. Only the junction box 8 and all the junction boxes preceding it receive the data acquisition command due to the disconnection of the communication link. The controller 1 then sends a port switch command to the junction box in the loop via a signal output line connected to its output 102. Since the communication link is disconnected, only the junction box 8 and all the junction boxes preceding it receive the port switching command, which is sequentially received from the first junction box connected to the signal output line of the controller 1 until the junction box where the disconnection of the communication cable occurs, such as the junction boxes 7, 8, and the port switching process is sequentially completed. In order to receive the missing data information, after sending the port switching command, the input end and the output end of the controller 1 are switched, after switching, 102 is the input end of the controller 1, 101 is the output end of the controller 1, and the data information of the junction box 8 and all the junction boxes before it is waiting to be received through the receiving end 102. After the exchange process is finished, all junction boxes exchanged by the receiving end of the transmitting end automatically upload data information acquired by the junction boxes, and the data information is uploaded to the controller 1 after the first junction box (the junction box with the smallest code number, namely the original junction box which directly receives the communication signal of the controller, and each junction box can judge whether the junction box is the first junction box according to the size of the code number) collects the data information of all solar modules. After the acquired data is transmitted, the terminal box exchanged between the transmitting end and the receiving end exchanges the transmitting end and the receiving end again so as to ensure that the data acquisition command and the port switching command from the controller 1 can be received next time.
Each terminal box collects own data information, and transmits the data information of each terminal box to the terminal box with the smallest code number (namely, the terminal box directly connected with the input end 102 of the controller 1) through the signal wire and the terminal box in the loop, the terminal box with the smallest code number uploads the collected data information to the controller 1, and the controller 1 receives the data information and judges whether the data information of all the terminal boxes is received or not.
After the communication cable fails, the embodiment of the invention receives the data information of all junction boxes at two sides of the failure point through switching the input end and the output end of the controller, thereby realizing the communication in failure. Therefore, the embodiment of the invention can solve the problem that communication cannot be performed due to the fault of the communication cable, and can ensure that communication can be performed with each junction box after the fault of the communication cable, so as to receive the communication data of each junction box.
It should be noted that, under the condition of ensuring that the present invention can be implemented, the sequence of the above steps can be adjusted according to the need, and the adjusted technical solutions are all within the protection scope of the present invention.
Similarly, the controller can also send the data acquisition command and the port switching command to the junction box in the loop at the same time, namely, the controller can send the data acquisition command and the port switching command to the junction box in the loop at the same time through the signal output line connected with the output end of the controller; the junction box in the loop receives the data acquisition command and the port switching command; switching the input end and the output end of the controller; the junction box which receives the data acquisition command and the port switching command firstly switches the input end and the output end of the junction box, and then uploads the data information acquired by the junction box to the controller.
In yet another embodiment of the invention, the reception of data from each component junction box can be achieved in a master-slave manner after a fault disconnect of the communication link, such as at the junction boxes 8, 9, as follows:
for example, when a breakpoint occurs between the terminal boxes 8 and 9, the terminal box 8 and all the terminal boxes before it can receive a data acquisition command sent by the controller 1, where the data acquisition command includes the code number of the terminal box with the largest code number or the code numbers of the terminal boxes with the largest code number and the smallest code number in all the terminal boxes in the string, the controller 1 switches 102 to the input terminal after the data acquisition command is sent, waits for receiving data, all the terminal boxes receiving the data acquisition command forward the data acquisition command to the next terminal box, and after the data acquisition command is forwarded, exchanges the sending terminal and the receiving terminal of the terminal box to send the data acquired by the terminal box to the port direction of the controller 1 and the data sent by the last terminal box, and exchanges the sending terminal and the receiving terminal again after the data acquired by the terminal box with the largest code number in the string is sent to prepare for data acquisition of the next round. Checking whether all the junction box data information from the junction box to the junction box with the largest code number is obtained by the junction box with the non-largest code number, if so, exchanging the sending end and the receiving end of the junction box again after sending the data information to prepare for the next round of data acquisition, and if not, waiting until all the junction box data information from the junction box code number to the junction box code number with the largest code number is obtained and sending the data, and exchanging the sending end and the receiving end of the junction box (or exchanging the sending end and the receiving end of the junction box after exceeding a preset time threshold). And by analogy, after the terminal box with the minimum code number obtains and uploads the data information of all terminal boxes of the string and exchanges the transmitting end and the receiving end of the string, all terminal boxes of the string are changed into a state capable of receiving the data acquisition command of the controller 1 again, and a round of complete active data acquisition process is completed at one side of the fault point.
For example, when the disconnection point occurs between the junction boxes 8 and 9, the junction box 9 and all the junction boxes following it can also communicate with the junction boxes 9 and 10 when the communication cable fails by master-slave communication, and the specific principle is as follows: when a break point occurs between the junction boxes 8 and 9, the junction boxes 9 and 10 automatically switch the transmitting port and the receiving port of the junction boxes 9 and 10 to change the original transmitting port to the receiving port within a preset time threshold T1, the junction boxes 9 and 10 after switching the ports can receive a command transmitted by the controller 1, the controller 1 can also change 101 to an output port at the moment to transmit a data acquisition command matched with the command, the data acquisition command comprises the minimum coding number in all junction boxes of the string, or the minimum coding number and the maximum coding number, after the data acquisition command of the controller 1 is transmitted, the 101 is changed to the receiving port again, and the junction boxes waiting for receiving data, all the junction boxes receiving the data acquisition command are switched to the next junction box, and after the data acquisition command is forwarded, the junction box transmitting terminal and the receiving terminal are switched again to transmit the acquired data of the junction box and the last junction box in the port direction of the controller 1, the junction box transmitting the minimum coding number in the string is changed to the next junction box, if the data acquisition command is not transmitted to the terminal, the terminal is switched to the next junction box, and the terminal is not coded to the terminal after the data acquisition command is coded again, and the terminal numbers are not coded again ready to be coded to be the next, waiting until all the terminal boxes with the minimum coding number are obtained, exchanging the transmitting end and the receiving end of the terminal box after the data are sent out (or exchanging the transmitting end and the receiving end of the terminal box after the preset time threshold T2 is exceeded), and so on, after all the terminal boxes with the maximum coding number obtain and upload all the terminal box data information of the string and exchange the transmitting end and the receiving end of the string, all the terminal boxes of the string become a state capable of receiving the data acquisition command of the controller 1 again, and completing a round of complete active data acquisition process at one side of the fault point.
The above steps can be repeatedly performed to cyclically collect data information of all the junction boxes on both sides of the fault point.
In summary, according to the embodiment, the communication mode after the communication cable fails includes: 1) All the left side and the right side of the fault point are communicated in an active uploading mode; 2) The left side of the fault point is communicated in a master-slave mode, and the right side of the fault point is communicated in an active uploading mode; 3) The left side of the fault point adopts an active uploading mode for communication, and the right side adopts a master-slave mode for communication; 4) The left side and the right side of the fault point are communicated in a master-slave mode. In the above embodiments, the details of the communication modes 1), 2), and 4) are mainly described, and the details of the implementation of the communication mode 3) can be easily derived from the details of the three described communication modes, which are not described herein, but still in the protection scope of the present invention, and if necessary, the rights of supplementing the embodiments of the communication mode 3) according to the first three described embodiments of the communication modes are reserved.
It should be noted that, under the condition of ensuring that the present invention can be implemented, the sequence of the above steps can be adjusted according to the need, and the adjusted technical solutions are all within the protection scope of the present invention.
The embodiment of the invention also provides a solar energy system, as shown in fig. 1, which comprises a plurality of junction boxes corresponding to the solar energy components one by one, wherein the junction boxes are sequentially connected in series through a signal wire 11, and the series junction boxes are connected with the controller 1 in series to form a loop. Wherein, as shown in fig. 3, the controller 1 includes a switching unit, the controller 1 is coupled with the signal line 11 through the switching unit, each of the junction boxes includes a signal input output unit 70 and a switching unit, and the junction box is coupled with the signal line 11 through the switching unit. It should be noted that, in the embodiment of the present invention, the switching units in the junction box 7 are described in detail, and the switching units in the junction boxes 8, 9, and 10 are the same as the switching units in the junction box 7, which is not described again.
In another embodiment of the present invention, as shown in fig. 3, the switching unit includes a plurality of multiplexing units connected in parallel through a control signal line 6, and the plurality of multiplexing units connected in parallel are connected in series with a signal input output unit 70 through the control signal line 6. The multiplexing unit is characterized in that only one channel conduction is allowed to be selected by the digital signal in one direction, and which channel conduction is selected to be controlled by the control signal. Alternatively, the multiplexing units may be multiplexers such as 74HC153, 74HC251, SN74CBT3257, and the like, and may also be multiplexers of other types similar to the multiplexers in function, and since the types of the multiplexers are numerous, they are not listed one by one, and they are used in the switching unit, so that the switching between the receiving end and the transmitting end of the junction box is effectively achieved.
It should be noted that, the multiplexing unit mentioned here refers to a functional unit in the multiplexer, and in this embodiment, a 4-bit 2-to-1 multiplexer may be used, that is, there are 4 multiplexing units in the multiplexer, or a plurality of multiplexers may be selected to implement the 4-bit 2-to-1 function, where the control signal line 6 of the multiplexing unit may refer to a control signal line located inside the multiplexer and controlling gating of each multiplexing unit through a parallel relationship, or may refer to a control signal line connecting a plurality of multiplexers through a parallel relationship. A multiplexer is a device that receives multiple input signals and synthesizes a single output signal in a recoverable manner for each input signal. A multiplexer is an integrated system that typically contains a number of data inputs and has a single output. For components, a multiplexer element typically contains a multi-bit, multi-select 1 multiplexing unit inside.
As shown in fig. 3, an input pin of at least one multiplexing unit of the plurality of multiplexing units is connected to an output pin TXD of the signal input/output unit 70, and an output pin of at least one multiplexing unit of the plurality of multiplexing units is connected to an input pin RXD of the signal input/output unit 70, so as to switch a transmitting end and a receiving end of the junction box, and after switching, 702 is used as a transmitting end of the junction box 7, and 701 is used as a receiving end of the junction box.
In still another embodiment of the present invention, the switching unit includes a first multiplexing unit 2, a second multiplexing unit 3, a third multiplexing unit 4, and a fourth multiplexing unit 5 connected in parallel through a control signal line 6, the first multiplexing unit 2, the second multiplexing unit 3, the third multiplexing unit 4, and the fourth multiplexing unit 5 connected in parallel being connected in series with a signal input output unit 70 through the control signal line 6. As shown in fig. 3, for the signal input output unit 70, it is necessary to establish a communication connection with the outside through the output pin TXD and the input pin RXD, i.e., in normal communication, one of the signal lines X0, X1 shown in fig. 3 is selected as the signal output line of the switching unit, which establishes a digital signal unidirectional transmission relationship with the TXD pin of the signal input output unit 70, and correspondingly, the other signal line is selected as the signal input line of the switching unit, which establishes a digital signal unidirectional transmission relationship with the RXD pin of the signal input output unit 70.
Optionally, the input pin 201 (or 202) of the first multiplexing unit 2 is connected to the output pin TXD of the signal input/output unit 70, the output pin 303 of the second multiplexing unit 3 is connected to the input pin RXD of the signal input/output unit 70, the output pin 403 of the third multiplexing unit 4 is connected to the input pin RXD of the signal input/output unit 70, and the input pin 502 (or 501) of the fourth multiplexing unit 5 is connected to the output pin TXD of the signal input/output unit 70. Optionally, the output pin 203 of the first multiplexing unit 2 is connected to the input pin 302 (or 301) of the second multiplexing unit 3 through a first signal line X0 (i.e. a signal output line), and the first signal line X0 is coupled to the receiving end of the next junction box in the loop; the input pin 401 (or 402) of the third multiplexing unit 4 is connected to the output pin 503 of the fourth multiplexing unit 5 through a second signal line X1 (i.e., a signal input line), and the second signal line X1 is coupled to the transmitting end of the previous junction box in the loop.
The control signal line 6 is used to control the gating of each multiplexing unit, in this embodiment, the control signal transmitted on the control signal line 6 is valid for all multiplexing units at the same time, and a binary control signal is used as an example, for example, 00 selects the first output and 01 selects the second output of the gating multiplexing unit. For example, when the control signal line 6 outputs a 00 signal, the first input pin 201 of the first multiplexing unit 2 is gated, the first input pin 401 of the third multiplexing unit 4 is gated, and the output signal of the signal input output unit 70 after gating is output through the signal output line X0, that is, X0 is a signal output line, and X1 is a signal input line. At this time, the output pin 303 of the second multiplexing unit 3 and the output pin 503 of the fourth multiplexing unit 5 are also connected to their respective input pins 301 and 501, respectively, but they do not externally input and output signals as an empty port.
Similarly, when the control signal line 6 outputs a 01 signal, the pins of the second multiplexing unit 3 and the fourth multiplexing unit 5 are respectively gated to their respective output pins 302 and 502, so that X0 is used as the signal input line of the junction box 7 and X1 is used as the signal output line of the junction box 7, thereby realizing the port interchange of the junction box 7.
In some embodiments of the present invention, the controller 1 forms a communication link with interchangeable signal input/output ports by using a serial bus transceiver with a transceiver control function (such as an RS485, an RS422, or other communication function chip with a transceiver control function), and the junction box associated with the solar module also forms a communication link with interchangeable signal input/output ports by using a serial bus transceiver with controllable input/output. The specific implementation method is that 2 serial bus transceivers with a receiving and transmitting control function are respectively arranged in the controller 1 and each junction box, one of the two serial bus transceivers is controlled to receive data and can also be controlled to transmit data, the other serial bus transceiver is controlled to transmit data and can also be controlled to receive data, and the state of the original bus transceiver can be turned over under the action of a control signal wire of the controller 1 or the junction box, namely, the bus transceiver originally serving as an output function is turned over to the bus transceiver serving as an input function or the bus transceiver originally serving as an input function is turned over to the bus transceiver serving as an output function. The bus transceiver as the receiving end receives the data, and the bus transceiver as the transmitting end transmits the received data or the processed data to realize the functions of receiving signals and transmitting signals respectively.
In another embodiment of the present invention, the switching unit includes a plurality of bus transceivers connected in parallel through the control signal line 6 in series with the signal input output unit 70 through the control signal line 6, and an inverter 71 connected in series between one of the bus transceivers and the signal input output unit 70. As shown in fig. 4, the switching unit includes two serial bus transceivers controllable for transmission and reception connected in parallel through a control signal line 6, and a functional unit (e.g., an inverter) functioning in reverse, and the two bus transceivers connected in parallel through the control signal line 6 are connected in series with a signal input/output unit 70 through the control signal line 6. The input pins R of the first bus transceiver 72 and the second bus transceiver 73 are connected in series with the input pin RXD of the signal input/output unit 70, and the output pins D of the first bus transceiver 72 and the second bus transceiver 73 are connected in series with the output pin TXD of the signal input/output unit 70. In order for one of the first bus transceiver 72 and the second bus transceiver 73 to transmit data and the other to receive data in the same operation cycle, an inverter 71 and one branch of the control signal line 6 are provided to be connected to the transception selection enable pins (/ RE and DE) of one bus controller, and the other branch is connected to the transception selection enable pins (/ RE and DE) of the other bus controller through the inverter 71.
The switching unit is provided with a first signal line and a second signal line, wherein the first signal line can be used as a signal output line or a signal input line, the second signal line can be used as a signal input line or a signal output line, the number of the first signal lines is greater than or equal to 1, and the number of the second signal lines is greater than or equal to 1. Specifically, as shown in fig. 4, the first signal lines are formed by two balanced buses surrounded by an oval frame 74, the number of the first signal lines is 2, if the common ground is counted, the number of the first signal lines is 3, the second signal lines are formed by two balanced buses surrounded by an oval frame 75, the number of the second signal lines is 2, and if the common ground is counted, the number of the second signal lines is 3.
The control signal line 6 is used for controlling the switching unit to control the first signal line as a signal output line and the second signal line as a signal input line, or to control the first signal line as a signal input line and the second signal line as a signal output line, or to control the first signal line as a signal input line or an output line, or to control the second signal line as a signal output line or an input line. Specifically, as shown in fig. 4, when the control signal line 6 output signal is at a low level, the first bus transceiver 72 is selected to receive data, and accordingly, due to the reverse action of the inverter 71, the second bus transceiver 73 is selected to transmit data, and when the control signal line output signal is at a high level, the first bus transceiver 72 is selected to transmit data, and the second bus transceiver 73 is selected to receive data. Accordingly, if it is desired to change the input/output state of only one bus transceiver, the input/output state of the other bus transceiver is fixed (as would be commonly used in such a usage controller 1, for example, one of the bus transceivers may be fixed to a received data state in the controller 1 for actively receiving data, and one of the bus transceivers may be fixed to a transmitted data state in the controller 1 when the data reception problem on one side of the fault point is not considered in the communication fault), the simple implementation method is that in fig. 4, the enable pins (/ RE and DE) of the first bus transceiver 72 are disconnected from the control signal line 6, and the enable pins (/ RE and DE) are connected to a low level, i.e., the bus transceiver is fixed to a received data state, the enable pins (/ RE and DE) are connected to a high level, i.e., the bus transceiver is fixed to a transmitted data state, and similarly, the second bus transceiver 73 may be fixed to a received data state or a transmitted data state.
When the first signal line is used as an output signal line, the switching unit led out of the first signal line can prevent a signal on the first signal line from being led to the input signal line RXD of the signal input/output unit 70, and when the first signal line is used as an input signal line, the switching unit led out of the first signal line can prevent a signal on the output signal line TXD of the signal input/output unit 70 from being led to the first signal line, and the first signal line is coupled with a receiving end or a transmitting end of a next junction box in a loop.
When the second signal line is used as an input signal line, the switching unit led out of the second signal line can prevent the signal on the output signal line TXD of the signal input/output unit 70 from being led to the second signal line, and when the second signal line is used as an output signal line, the switching unit led out of the second signal line can prevent the signal on the second signal line from being led to the input signal line TXD of the signal input/output unit 70, and the second signal line is coupled with the transmitting end or the receiving end of the last junction box in the loop.
Specifically, as shown in fig. 4, when the first signal line is an output signal line, the first bus transceiver 72 sends data, and its receiving function is locked by the control signal on the control signal line 6 when sending data, so that the signal sent on the first signal line is prevented from being led to the input pin RXD of the signal input/output unit 70 through the receiving pin R of the first bus transceiver, so that it is ensured that the data received on the second bus transceiver is not affected at this time; when the first signal line is used as an input signal line, the first bus transceiver 72 receives data, and when receiving data, the transmitting function of the first bus transceiver is locked by the control signal on the control signal line 6, so that the signal output on the output pin TXD of the signal input/output unit 70 is prevented from being led to the first signal line through the transmitting pin D of the first bus transceiver, and the data received on the first bus transceiver is not affected at this time. Similarly, when the second signal line is used as an input signal line or an output signal line, the implementation principle is similar to that described above, and will not be repeated here.
The first signal line is used as an output signal line, the second signal line is used as an input signal line, the switching unit is used for leading the signal on the output signal line TXD of the signal input/output unit 70 to the first signal line, and the signal on the second signal line is led to the input signal line RXD of the signal input/output unit 70; the first signal line serves as an input signal line, and the second signal line serves as an output signal line, and the switching unit is used for leading a signal on the first signal line to an input signal line RXD of the signal input/output unit 70 and leading a signal on an output signal line TXD of the signal input/output unit 70 to the second signal line. Specifically, as shown in fig. 4, the switching unit specifically includes: a first bus transceiver 72, a second bus transceiver 73, an inverter 71; when the control signal line 6 of the signal input output unit 70 is output to a high level, the first bus transceiver 72 is controlled as a transmitter to transmit a signal on the output signal line TXD of the signal input output unit 70 onto the first signal line, and at the same time, the second bus transceiver 73 is controlled as a receiver to transmit a signal on the second signal line thereof onto the input signal line RXD of the signal input output unit 70; similarly, the implementation principle of the first signal line as an input signal line and the second signal line as an output signal line is similar to that described above, and is not repeated here.
In some embodiments of the present invention, the controller 1 forms a communication link with interchangeable signal input/output ports by using a serial bus transceiver (such as an RS232, RS422 communication function chip having a full duplex communication function and no transceiver control function) having no transceiver control function. The specific implementation method is that 2 serial bus transceivers without a receiving and transmitting control function and a data buffer (such as 74AC 125) capable of playing a data receiving and transmitting control function are respectively arranged in a controller 1 and each junction box, one of the two serial bus transceivers can be controlled to receive data and can also be controlled to transmit data, the other one can be controlled to transmit data and can also be controlled to receive data, and the state of the original bus transceiver can be turned under the action of a control signal wire of the controller 1 or the junction box, namely, the bus transceiver originally serving as an output function is turned into the bus transceiver serving as an input function or the bus transceiver originally serving as the input function is turned into the bus transceiver serving as the output function by reasonably designing the gating direction of signals on the data buffer and reasonably designing the output state of the data buffer. The bus transceiver as the receiving end receives the data, and the bus transceiver as the transmitting end transmits the received data or the processed data to realize the functions of receiving signals and transmitting signals respectively.
In another embodiment of the invention, as shown in fig. 5, the switching unit comprises an output controllable data buffer unit 80, at least one serial bus transceiver without a transceiver control function, and a functional unit 71 (e.g. an inverter) acting in reverse. As shown in fig. 5, the output controllable data buffer unit 80 includes 4 tri-state data buffers, wherein the output On of the tri-state data buffers is controlled by the input Bn and the control An, and when An is at An inactive level (high level or low level or high resistance), the output On is at a high resistance state, and when An is at An active level (high level or low level or high resistance), the output On is the same or opposite to the input Bn.
The 4 tri-state data buffers may be divided into two groups, wherein the control pins An of one group of tri-state data buffers are connected with the control signal line 6, the control pins An of the other group of tri-state data buffers are connected with the output end of the inverter 71, and are controlled by the output of the inverter 71, and the input end of the inverter 71 is connected with the control signal line 6. Wherein the input Bn of one of the three-state data buffers of the set is connected to the receiving end R of the first bus transceiver 82, the output On of the three-state data buffer is connected to the input pin RXD of the signal input output unit 70, the input Bn of the other three-state data buffer is connected to the output pin TXD of the signal input output unit 70, and the output On of the three-state data buffer is connected to the transmitting end D of the second bus transceiver 81; the input Bn of one of the other set of tri-state data buffers is connected to the receiving terminal R of the second bus transceiver 81, the output On of the tri-state data buffer is connected to the input pin RXD of the signal input output unit 70, the input Bn of the other tri-state data buffer is connected to the output pin TXD of the signal input output unit 70, and the output On of the tri-state data buffer is connected to the transmitting terminal D of the first bus transceiver 82.
As shown in fig. 5, in order to enable the first bus transceiver 82 and the second bus transceiver 81 to transmit data and receive data, the receiving terminals A, B of the first bus transceiver 82 and the second bus transceiver 81 are respectively connected to the transmitting terminal Z, Y.
The switching unit is provided with a first signal line and a second signal line, wherein the first signal line can be used as a signal output line or a signal input line, the second signal line can be used as a signal input line or a signal output line, the number of the first signal lines is greater than or equal to 1, and the number of the second signal lines is greater than or equal to 1. Specifically, as shown in fig. 7, the first signal lines are formed by two balanced buses surrounded by an oval frame 84, the number of the first signal lines is 2, if the common ground is counted, the number of the first signal lines is 3, the second signal lines are formed by two balanced buses surrounded by an oval frame 83, the number of the second signal lines is 2, and if the common ground is counted, the number of the second signal lines is 3.
The control signal line 6 is used for controlling the switching unit to control the first signal line as a signal output line and the second signal line as a signal input line, or to control the first signal line as a signal input line and the second signal line as a signal output line, or to control the first signal line as a signal input line or an output line, or to control the second signal line as a signal output line or an input line. Specifically, as shown in fig. 5, when the output signal of the control signal line 6 is at low level, one (two) buffers in the output controllable tri-state data buffer unit (80) are enabled, so that the first bus transceiver 82 is selected to receive data, and the second bus transceiver 81 is selected to transmit data; when the control signal line 6 output signal is high, the other group (two) of buffers in the output controllable tri-state data buffer unit (80) is enabled (due to the effect of the inverter 71) so that the first bus transceiver 82 is selected to transmit data and the second bus transceiver 81 is selected to receive data; based on the structural diagram shown in fig. 5, it is easy for a person skilled in the art to control the first signal line (selected portion of the oval 84) as a signal output line or an input line, and control the second signal line (selected portion of the oval 83) as a signal output line or an input line, which are all within the scope of the present invention and are not described herein.
When the first signal line is used as an output signal line, the switching unit led out of the first signal line can prevent a signal on the first signal line from being led to the input signal line RXD of the signal input/output unit 70, and when the first signal line is used as an input signal line, the switching unit led out of the first signal line can prevent a signal on the output signal line TXD of the signal input/output unit 70 from being led to the first signal line, and the first signal line is coupled with a receiving end or a transmitting end of a next junction box in a loop.
When the second signal line is used as an input signal line, the switching unit led out of the second signal line can prevent the signal on the output signal line TXD of the signal input/output unit 70 from being led to the second signal line, and when the second signal line is used as an output signal line, the switching unit led out of the second signal line can prevent the signal on the second signal line from being led to the input signal line TXD of the signal input/output unit 70, and the second signal line is coupled with the transmitting end or the receiving end of the last junction box in the loop.
Specifically, as shown in fig. 5, when the first signal line is an output signal line, the first bus transceiver 82 transmits data, one group of buffers (buffer 8003, buffer 8004) in the output-controllable tri-state data buffer 80 is enabled, the other group of buffers (buffer 8001, buffer 8002) is disabled, and since the buffer 8001 is disabled, the signal on the first signal line cannot be led to the signal line RXD of the signal input output unit 70 through the buffer 8001 at this time, and thus the influence on the reception of the data on the second signal line can be effectively avoided; when the first signal line is used as an input signal line, the first bus transceiver 82 receives data, one group of buffers (buffer 8001, buffer 8002) in the output controllable tri-state data buffer 80 is enabled, and the other group of buffers (buffer 8003, buffer 8004) is disabled, and since the buffer 8003 is disabled, the signal on the output signal line TXD of the signal input/output unit 70 cannot be led to the transmitting end D of the first bus transceiver 82 through the buffer 8003, and thus the influence on the reception of data on the first signal line can be effectively avoided.
As shown in fig. 5, when the second signal line is used as the input signal line, the second bus transceiver 81 receives data, one group of buffers (buffer 8003, buffer 8004) in the output controllable tri-state data buffer 80 is enabled, the other group of buffers (buffer 8001, buffer 8002) is disabled, and since the buffer 8002 is disabled, the signal on the output signal line TXD of the signal input output unit 70 cannot be led to the transmitting end D of the second bus transceiver 81 through the buffer 8002, so that the influence on the reception of the data on the second signal line can be effectively avoided; when the second signal line is an output signal line, the second bus transceiver 81 transmits data, one group of buffers (buffer 8001, buffer 8002) in the output-controllable tri-state data buffer 80 is enabled, and the other group of buffers (buffer 8003, buffer 8004) is disabled, and since the buffer 8004 is disabled, the signal on the second signal line cannot be led to the signal line RXD of the signal input/output unit 70 through the buffer 8004 at this time, and thus, the influence on the reception of the data on the first signal line can be effectively avoided.
The first signal line is used as an output signal line, the second signal line is used as an input signal line, the switching unit is used for leading the signal on the output signal line TXD of the signal input/output unit 70 to the first signal line, and the signal on the second signal line is led to the input signal line RXD of the signal input/output unit 70; the first signal line serves as an input signal line, and the second signal line serves as an output signal line, and the switching unit is used for leading a signal on the first signal line to an input signal line RXD of the signal input/output unit 70 and leading a signal on an output signal line TXD of the signal input/output unit 70 to the second signal line. Specifically, as shown in fig. 5, the switching unit specifically includes: a first bus transceiver 82, a second bus transceiver 81, an inverter 71, an output controllable tri-state data buffer 80; when the signal control line 6 of the signal input output unit 70 is output to the high level, the buffer 8003 is selected to transmit the signal on the output signal line TXD of the signal input output unit 70 to the first signal line, and at the same time, the second bus transceiver 73 is controlled to function as a receiver to transmit the signal on the second signal line thereof to the input signal line RXD of the signal input output unit 70 through the buffer 8004; similarly, the implementation principle of the first signal line as an input signal line and the second signal line as an output signal line is similar to that described above, and is not repeated here.
In some embodiments of the present invention, the data buffer (e.g., 74AC 125) that may perform the data transmission/reception control function may be replaced by another control unit, such as using a 4-bit 2-to-1 multiplexer 74BCT3257 or a controllable electronic switch, instead of the tri-state data buffer 74AC125, and the purpose of controlling the bus transceiver is achieved by properly designing the gating logic so that the first bus transceiver may be used to transmit data or receive data, and the second bus transceiver may be used to transmit data or receive data, thereby ensuring that the first bus transmit data and the second bus receive data are not affected by each other or the first bus receive data and the second bus transmit data are not affected by each other at the same time. Specifically, as shown in fig. 6, the internal principle of the multiplexer of option 2 and option 1 is similar, and only an electronic switch is taken as an example for illustration, as shown in fig. 6, the control ends of the first electronic switch 8009 and the fourth electronic switch 8012 are connected with each other and then connected with the control signal line 6, the control ends of the second electronic switch 8010 and the third electronic switch 8011 are connected with each other and then connected with the output end of the inverter 71, and the input end of the inverter 71 is connected with the control signal line 6; one ends of the first electronic switch 8009 and the second electronic switch 8010 are connected to the output pin TXD of the signal input output unit 70 after being interconnected, the other end of the first electronic switch 8009 is connected to the first transmitting terminal T1IN of the bus transceiver 91, and the other end of the second electronic switch 8010 is connected to the second transmitting terminal T2IN of the bus transceiver 91; one ends of the third electronic switch 8011 and the fourth electronic switch 8012 are connected to the input pin RXD of the signal input output unit 70 after being interconnected, the other end of the third electronic switch 8011 is connected to the first receiving end R1OUT of the bus transceiver 91, and the other end of the fourth electronic switch 8012 is connected to the second receiving end R2OUT of the bus transceiver 91.
In some embodiments of the present invention, the purpose of controlling the bus transceiver may be achieved by combining a controllable tri-state buffer with a 2-to-1 multiplexer (or a controllable electronic switch) and by rationally designing the gating logic so that the first bus transceiver may be used to transmit data or receive data and the second bus transceiver may be used to transmit data or receive data, ensuring that at the same time, the first bus transmit data and the second bus receive data are not affected by each other or the first bus receive data and the second bus transmit data are not affected by each other. Specifically, as shown IN fig. 7, the input ends Bn of the first buffer 8005 and the second buffer 8006 are connected to each other and then to the output pin TXD of the signal input/output unit 70, the output end of the first buffer 8005 is connected to the T1IN of the bus transceiver 91, the output end of the second buffer 8006 is connected to the T2IN of the bus transceiver 91, the control end An of the first buffer is connected to the output of the inverter 71, and the control end An of the second buffer is connected to the control signal line 6; one end of the first electronic switch 8007 and one end of the second electronic switch 8008 are connected with the input pin RXD of the signal input output unit after being interconnected, the other end of the first electronic switch 8007 is connected with the R1OUT of the bus transceiver 91, and the other end of the second electronic switch 8008 is connected with the R2OUT of the bus transceiver 91; an input terminal of the inverter 71 is connected to the control signal line 6.
IN some embodiments of the present invention, the first transmitting output terminal T1OUT of the bus transceiver 91 is connected to the first receiving input terminal R1IN thereof, the second transmitting output terminal T2OUT of the bus transceiver 91 is connected to the second receiving input terminal R2IN thereof, and the bus transceiver after interconnection may respectively lead OUT the first signal line X0 and the second signal line X1; in this embodiment, the bus transceiver 91 may be replaced by two other types of bus transceivers, such as an RS422 bus transceiver with a balanced bus, and the usage method after replacement is similar to that described in this embodiment, and will not be repeated, which is still the protection content of the present invention.
In some embodiments of the present invention, in the solar energy system, the first signal line X0 and the second signal line X1 in the junction box are connected with each other through a normally closed contact with controllable state, so that when the junction box is not working or fails (such as the junction box is damaged or communication fails), the communication bypass of the non-working junction box can be provided, so that the communication and data transmission of other junction boxes in the solar energy system are not affected, and when the solar energy system and the junction box work normally, the normally closed contact is controlled to be in an open state, and when the junction box fails, the normally closed contact is closed. Specifically, as shown in fig. 6, the first signal line X0 and the second signal line X1 are respectively connected to two ends of the contact of the controllable normally closed contact 92, the control end of the normally closed contact 92 is controlled by the other control end of the signal input/output unit 70, so that the normally closed contact 92 is guaranteed to be in an open state during normal operation, the normally closed contact can be controlled to be restored to a normally closed state under the necessary condition of normal operation, the normally closed contact 92 is naturally in a closed state when the junction box fails, when a bus transceiver has a problem, the junction box cannot receive data for more than a predetermined time, and the normally closed contact 92 can be controlled to be in a closed state so as to bypass communication of the junction box, so that communication of other junction boxes is guaranteed not to be affected. In other embodiments, the controllable normally-closed contacts may be disposed between the first signal line X0 and the second signal line X1, and the basic principle is the same as that described in this embodiment, and when the first signal line or the second signal line is multiple lines, the number of the normally-closed contacts may be increased correspondingly, which is within the protection scope of the present invention, and will not be described again.
Therefore, after the communication cable fails, the embodiment of the invention receives the data information of all junction boxes at two sides of the failure point through switching the input end and the output end of the controller, and realizes the communication in failure. Therefore, the embodiment of the invention can solve the problem that communication cannot be performed due to the fault of the communication cable, and can ensure that communication can be performed with each junction box after the fault of the communication cable, so as to receive the communication data of each junction box. In addition, the embodiment of the invention adopts the switching unit to switch the input end and the output end of the controller, thereby solving the problems of higher cost and higher power consumption of the bidirectional controlled switch and being unsuitable for transmitting digital quantity communication signals.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server or a network device, etc.) to perform the method of the embodiment of the present invention.
It should be noted that, for simplicity of description, the above embodiments of the system, method and electronic device are all described as a series of acts or a combination of modules, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts or the connection of modules, as some steps may occur in other orders or concurrently, and other ways of connecting modules may be used in accordance with the present invention.
It should also be appreciated by those skilled in the art that the embodiments described in the specification are all embodiments, the above embodiment numbers are for description only, and the related actions and modules are not necessarily required for the present invention.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present invention, it should be understood that the disclosed technology may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. The storage medium includes volatile storage medium or nonvolatile storage medium, such as a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, etc., which can store the program code.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (5)

1. A method for switching signal lines is characterized in that,
a plurality of junction boxes corresponding to solar modules one by one are preset, a plurality of junction boxes are sequentially connected in series through signal wires, and the series-connected junction boxes are connected with a controller in series to form a loop, and the method comprises the following steps:
the controller receives and analyzes the data information uploaded by the junction boxes, judges whether the data information of all the junction boxes in the loop is received, and if not, switches the input end and the output end of the controller, and receives the missing data information through the input end after switching;
switching the input end and the output end of the controller, and receiving missing data information through the switched input end, wherein the method comprises the following steps:
the controller sends a port switching command to the junction box in the loop through a signal output line connected with the output end of the controller so that the junction box receiving the port switching command switches the receiving end and the sending end of the junction box;
The controller switches the input end and the output end of the controller;
and the controller receives the data information uploaded by the junction boxes of the receiving end and the transmitting end of the switching self through the input end after the switching.
2. The method of switching signal lines according to claim 1, wherein,
switching the input end and the output end of the controller, and receiving missing data information through the switched input end, wherein the method comprises the following steps:
the controller sends a data acquisition command and a port switching command to the junction box in the loop through a signal output line connected with the output end of the controller, so that the junction box receiving the port switching command switches the receiving end and the sending end of the junction box;
the controller switches the input end and the output end of the controller;
and the controller receives the data information returned by the junction boxes switching the receiving end and the transmitting end of the controller in response to the data acquisition command through the input end after switching.
3. A method for switching signal lines according to any one of claims 1 to 2, wherein,
the data information comprises the code number of the junction box, and the method further comprises the steps of:
the controller judges whether the data information of all the junction boxes is acquired according to the code numbers in the received data information;
If not, determining a fault point in the loop according to the missing code number;
and carrying out fault alarm according to the determined fault point.
4. The method of switching signal lines according to claim 1, wherein,
the method further comprises the steps of:
if the controller and the junction box do not communicate within the preset time threshold, the junction box actively transmits data information of the junction box to the controller through a signal wire and the junction box in the loop in sequence.
5. A solar energy system, characterized in that,
the solar energy power generation system comprises a plurality of junction boxes which are in one-to-one correspondence with solar energy components, wherein the junction boxes are sequentially connected in series through signal wires (11), and the series junction boxes are connected with a controller (1) in series to form a loop; wherein the controller (1) comprises a switching unit, the controller (1) is coupled with a signal line (11) through the switching unit, each junction box comprises a signal input and output unit (70) and the switching unit, and the junction box is coupled with the signal line (11) through the switching unit;
the switching unit comprises a plurality of multiplexing units connected in parallel through a control signal line (6), and the multiplexing units connected in parallel are connected in series with a signal input/output unit (70) through the control signal line (6);
The switching unit comprises a plurality of bus transceivers connected in parallel through a control signal line (6) and an inverter (71), wherein the plurality of bus transceivers connected in parallel are connected in series with a signal input/output unit (70) through the control signal line (6), and the inverter (71) is connected in series between one of the bus transceivers and the signal input/output unit (70);
the switching unit further comprises a plurality of three-state data buffers and an inverter (71), the three-state data buffers are divided into two groups, wherein control pins of one group of three-state data buffers are connected with a control signal line (6), control pins of the other group of three-state data buffers are connected with the output end of the inverter (71), and the input end of the inverter (71) is connected with the control signal line (6);
wherein the input end of one tri-state data buffer in one group of tri-state data buffers is connected with the receiving end of the first bus transceiver (72), the output end of the tri-state data buffer is connected with the input pin of the signal input output unit (70), the input end of the other tri-state data buffer is connected with the output pin of the signal input output unit (70), and the output end of the tri-state data buffer is connected with the transmitting end of the second bus transceiver (73); the input end of one tri-state data buffer in the other group of tri-state data buffers is connected with the receiving end of the second bus transceiver (73), the output end of the tri-state data buffer is connected with the input pin of the signal input output unit (70), the input end of the other tri-state data buffer is connected with the output pin of the signal input output unit (70), and the output end of the tri-state data buffer is connected with the transmitting end of the first bus transceiver (72).
CN201810843838.5A 2018-07-27 2018-07-27 Method for switching signal lines and solar system Active CN110768815B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810843838.5A CN110768815B (en) 2018-07-27 2018-07-27 Method for switching signal lines and solar system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810843838.5A CN110768815B (en) 2018-07-27 2018-07-27 Method for switching signal lines and solar system

Publications (2)

Publication Number Publication Date
CN110768815A CN110768815A (en) 2020-02-07
CN110768815B true CN110768815B (en) 2023-10-10

Family

ID=69328364

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810843838.5A Active CN110768815B (en) 2018-07-27 2018-07-27 Method for switching signal lines and solar system

Country Status (1)

Country Link
CN (1) CN110768815B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112751719B (en) * 2021-02-07 2021-11-16 深圳合芯谷微电子有限公司 Multi-stage series data communication method, system, terminal and storage medium
CN113946290B (en) * 2021-10-14 2023-06-06 西安紫光国芯半导体有限公司 Memory device and memory system based on three-dimensional heterogeneous integration
CN113746752A (en) * 2021-11-08 2021-12-03 深圳合芯谷微电子有限公司 Method and system for quick communication of series modules

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101176313A (en) * 2005-04-11 2008-05-07 倍福自动化有限公司 User master unit communication system and method for operation thereof
JP2010238000A (en) * 2009-03-31 2010-10-21 Meidensha Corp Device for bus connection/disconnection of module
CN102104351A (en) * 2010-09-28 2011-06-22 常州天合光能有限公司 Intelligent control junction box capable of improving electricity generation efficacy of solar module
CN102289420A (en) * 2011-06-28 2011-12-21 电子科技大学 Simple single-bus interface conversion circuit and data acquisition system adopting same
CN104795803A (en) * 2014-01-16 2015-07-22 西门子公司 Regional selective interlocking device
CN204652359U (en) * 2015-05-22 2015-09-16 重庆尊来科技有限责任公司 Digital two change code emitter
CN105068597A (en) * 2015-07-23 2015-11-18 浙江中控技术股份有限公司 Redundant transmission method and system of pulse signal
CN105159194A (en) * 2015-08-25 2015-12-16 天津市英贝特航天科技有限公司 Switching circuit and switching method for switching data receiving/sending operation of RS-485 serial port
CN107391321A (en) * 2016-05-17 2017-11-24 中兴通讯股份有限公司 Electronic computer veneer and server debugging system
CN208597085U (en) * 2018-07-27 2019-03-12 汉能移动能源控股集团有限公司 Solar energy system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10312907A1 (en) * 2003-03-22 2004-10-07 Bosch Rexroth Ag Communication system with redundant communication
US9571032B2 (en) * 2013-06-10 2017-02-14 Leto Solar Corporation Junction box for solar cell module and method for driving same
EP3187097A4 (en) * 2014-12-25 2018-06-13 Olympus Corporation Communication system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101176313A (en) * 2005-04-11 2008-05-07 倍福自动化有限公司 User master unit communication system and method for operation thereof
JP2010238000A (en) * 2009-03-31 2010-10-21 Meidensha Corp Device for bus connection/disconnection of module
CN102104351A (en) * 2010-09-28 2011-06-22 常州天合光能有限公司 Intelligent control junction box capable of improving electricity generation efficacy of solar module
CN102289420A (en) * 2011-06-28 2011-12-21 电子科技大学 Simple single-bus interface conversion circuit and data acquisition system adopting same
CN104795803A (en) * 2014-01-16 2015-07-22 西门子公司 Regional selective interlocking device
CN204652359U (en) * 2015-05-22 2015-09-16 重庆尊来科技有限责任公司 Digital two change code emitter
CN105068597A (en) * 2015-07-23 2015-11-18 浙江中控技术股份有限公司 Redundant transmission method and system of pulse signal
CN105159194A (en) * 2015-08-25 2015-12-16 天津市英贝特航天科技有限公司 Switching circuit and switching method for switching data receiving/sending operation of RS-485 serial port
CN107391321A (en) * 2016-05-17 2017-11-24 中兴通讯股份有限公司 Electronic computer veneer and server debugging system
CN208597085U (en) * 2018-07-27 2019-03-12 汉能移动能源控股集团有限公司 Solar energy system

Also Published As

Publication number Publication date
CN110768815A (en) 2020-02-07

Similar Documents

Publication Publication Date Title
CN110768815B (en) Method for switching signal lines and solar system
US8531942B2 (en) Communication system having a master/slave structure
US8055826B2 (en) Communication system and method for operation thereof
CN102576339A (en) Multi-protocol storage device bridge
JP2010504011A (en) Communication system having master / slave structure
CN110765048B (en) Serial port and network port self-adaptive system, electronic equipment and signal processing method
CN102231114A (en) System and method for upgrading chip as well as method and device for transmitting upgrade file
CN100566277C (en) Communications network system and the method that is used to the information that transmits
JPS6273897A (en) Remote communication exchange construction
KR101914549B1 (en) Data communication apparatus for electric power distributing automation system
CN105207785A (en) PoE system
CN105162514B (en) Optical fiber ring network communication system and method
CN101631059B (en) Communication unit for realizing real-time reconstitution of in-situ bus topological structure
CN208597085U (en) Solar energy system
CN103403563B (en) Reverse supply line test macro and equipment
CN113301457A (en) Photoelectric transceiver and control method thereof
CN109287051B (en) Strong electricity controller and strong electricity management method thereof
CN113852494A (en) Communication system, data acquisition method and apparatus, and computer-readable storage medium
CN107070547A (en) A kind of CPCI type gigabit Ethernet devices with failure monitoring ability
CN101356780B (en) Protection or control-system appliance
US4511759A (en) Apparatus for controlling transfers of files between computers
CN101621333B (en) Hardware structure for protecting and switching optical link redundancy in communication system
JP3952387B2 (en) Network processing apparatus and setting method
CN2884710Y (en) Exchanging distance net bridge appliance with virtual net function for providing multiple interfaces
CN107634972A (en) The one-way communication system and board of nuclear power station security level system and non-security level system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201230

Address after: 101400 Yanqi Street, Yanqi Economic Development Zone, Huairou District, Beijing

Applicant after: Beijing Huihong Technology Co.,Ltd.

Address before: Room 107, building 2, Olympic Village street, Chaoyang District, Beijing

Applicant before: HANERGY MOBILE ENERGY HOLDING GROUP Co.,Ltd.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20211110

Address after: 101499 No. 31, Yanqi street, Yanqi Economic Development Zone, Huairou District, Beijing

Applicant after: Dongjun new energy Co.,Ltd.

Address before: 101400 No. 31, Yanqi street, Yanqi Economic Development Zone, Huairou District, Beijing

Applicant before: Beijing Huihong Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant