CN115378759A - Novel energy cabinet and master-slave communication device and method thereof - Google Patents
Novel energy cabinet and master-slave communication device and method thereof Download PDFInfo
- Publication number
- CN115378759A CN115378759A CN202210992467.3A CN202210992467A CN115378759A CN 115378759 A CN115378759 A CN 115378759A CN 202210992467 A CN202210992467 A CN 202210992467A CN 115378759 A CN115378759 A CN 115378759A
- Authority
- CN
- China
- Prior art keywords
- slave
- communication
- host
- communicated
- switch module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000006854 communication Effects 0.000 title claims abstract description 356
- 238000004891 communication Methods 0.000 title claims abstract description 352
- 238000000034 method Methods 0.000 title claims abstract description 17
- 230000003287 optical effect Effects 0.000 claims description 15
- 230000008878 coupling Effects 0.000 claims 1
- 238000010168 coupling process Methods 0.000 claims 1
- 238000005859 coupling reaction Methods 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 14
- 230000000694 effects Effects 0.000 description 7
- 230000002159 abnormal effect Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 230000006378 damage Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40169—Flexible bus arrangements
- H04L12/40176—Flexible bus arrangements involving redundancy
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24F—AIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
- F24F11/00—Control or safety arrangements
- F24F11/50—Control or safety arrangements characterised by user interfaces or communication
- F24F11/56—Remote control
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24F—AIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
- F24F11/00—Control or safety arrangements
- F24F11/88—Electrical aspects, e.g. circuits
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24F—AIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
- F24F11/00—Control or safety arrangements
- F24F11/89—Arrangement or mounting of control or safety devices
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J13/00—Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network
- H02J13/00001—Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by the display of information or by user interaction, e.g. supervisory control and data acquisition systems [SCADA] or graphical user interfaces [GUI]
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J13/00—Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network
- H02J13/00006—Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by information or instructions transport means between the monitoring, controlling or managing units and monitored, controlled or operated power network element or electrical equipment
- H02J13/00016—Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by information or instructions transport means between the monitoring, controlling or managing units and monitored, controlled or operated power network element or electrical equipment using a wired telecommunication network or a data transmission bus
Landscapes
- Engineering & Computer Science (AREA)
- Chemical & Material Sciences (AREA)
- Combustion & Propulsion (AREA)
- Mechanical Engineering (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Power Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Selective Calling Equipment (AREA)
Abstract
The invention discloses a master-slave communication device and method of a new energy cabinet and the new energy cabinet, the device includes: the host is connected to the slave through a communication bus; a communication switch circuit is arranged between each slave machine in the at least one slave machine and the communication bus; recording each slave machine provided with the communication switch circuit as a slave machine to be communicated; wherein, treat the communication slave computer, include: a cabinet air conditioner; under the condition that the host needs to communicate with the slave to be communicated, the communication switch circuit at the slave to be communicated is switched on, so that the host is communicated with the slave to be communicated through the communication bus and the communication switch circuit; and under the condition that the host does not need to communicate with the slave machine to be communicated or the host and the slave machine to be communicated finish communication, the communication switch circuit at the slave machine to be communicated is switched off. According to the scheme, the circuit for preventing the communication fault is arranged on the basis of the slave machine (such as a cabinet air conditioner), so that communication interruption resources can be prevented from being continuously occupied, and the reliability of the operation of the slave machine (such as the cabinet air conditioner) is guaranteed.
Description
Technical Field
The invention belongs to the technical field of cabinet air conditioners, and particularly relates to a new energy cabinet, a master-slave communication device and a master-slave communication method of the new energy cabinet, in particular to a circuit for preventing communication faults based on a machine room air conditioner, the new energy cabinet with the circuit, and the master-slave communication method of the new energy cabinet.
Background
With the integration and development of technologies such as cloud computing, mobile internet, internet of things and the like, the domestic market is in an unprecedented surge in the construction of new energy cabinets. From the market application situation in recent years, the new energy source machine cabinet can bloom all the time. The air conditioner has more applications in industries such as electrical, telecommunication, IT, rail transit and the like, a communication circuit is an essential part of an air conditioner of a cabinet (namely a new energy cabinet), and most of communication circuits of the cabinet air conditioner in related schemes use RS485 communication chips.
The new energy cabinet has various loads, including an ammeter, a camera, an alarm, a fire fighting device, a battery management system, a cabinet air conditioner and the like, and the loads are hung on a bus and are uniformly controlled by a host, so that the cabinet air conditioner receives a large amount of data which are not called, communication interruption resources of an RS485 communication chip of the cabinet air conditioner are easily occupied continuously, the RS485 communication chip is reset, the cabinet air conditioner is restarted, and the temperature control effect on the new energy cabinet is influenced.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention aims to provide a master-slave communication device and method of a new energy machine cabinet and the new energy machine cabinet, and aims to solve the problems that a machine cabinet air conditioner and other loads of the new energy machine cabinet are hung on a bus and are uniformly controlled by a host, so that an RS485 communication chip of the machine cabinet air conditioner is reset due to continuous occupation of communication interruption resources of the machine cabinet air conditioner when the machine cabinet air conditioner receives roll call data of other loads, the running reliability of the machine cabinet air conditioner is influenced, and the temperature control effect of the machine cabinet air conditioner on the new energy machine cabinet is influenced due to restart of the machine cabinet air conditioner.
The invention provides a master-slave communication device of a new energy machine cabinet, which comprises: the method comprises the following steps: the system comprises a host, a communication bus and a slave; the master computer is connected to the slave computer through the communication bus; the number of the slave machines is more than one; aiming at least one slave machine in more than one slave machines, a communication switch circuit is arranged to match with each slave machine in the at least one slave machine; recording each slave machine provided with the communication switch circuit as a slave machine to be communicated; wherein, the slave computer of treating communication includes: a cabinet air conditioner; under the condition that the host needs to communicate with the slave to be communicated, the communication switch circuit matched with the slave to be communicated is switched on, so that the host is communicated with the slave to be communicated through the communication bus and the communication switch circuit; and under the condition that the host does not need to communicate with the slave to be communicated or the host finishes communicating with the slave to be communicated, the communication switch circuit matched with the slave to be communicated is switched off.
In some embodiments, the communication bus has a host communication circuit; the host communication circuit of the communication bus comprises: the system comprises a host communication control end, a host first communication line and a host second communication line; the slave to be communicated is provided with a slave communication circuit; the slave communication circuit of the slave to be communicated is provided with a first slave communication line and a second slave communication line; wherein, the communication switch circuit includes: a first switch module and a second switch module; the first communication line of the host is connected to the first communication line of the slave through the first switch module; the second communication line of the host is connected to the second communication line of the slave through the second switch module; and the host communication control end is respectively connected to the control end of the first switch module and the control end of the second switch module.
In some embodiments, the communication switch circuit is disposed between the communication bus and a slave communication circuit of the slave to be communicated.
In some embodiments, the first switch module and the second switch module each comprise: an optocoupler module; and the anode at the diode side of the optocoupler module is used as a control end of a corresponding switch module in the first switch module and the second switch module.
In some embodiments, the first switch module and the second switch module each comprise: a relay module; and the coil end of the relay module is used as the control end of the corresponding switch module in the first switch module and the second switch module.
In some embodiments, the first switch module and the second switch module each comprise: a triode module; wherein the base of the triode module is used as the control terminal of the corresponding one of the first switch module and the second switch module.
In some embodiments, the first switch module and the second switch module each comprise: an MOS tube module; and the grid electrode of the MOS tube module is used as the control end of the corresponding switch module in the first switch module and the second switch module.
In match with the above device, another aspect of the present invention provides a new energy cabinet, comprising: the master-slave communication device of the new energy cabinet is described above.
In another aspect, the present invention provides a master-slave communication method for a new energy cabinet, including: determining whether the host needs to communicate with the slave to be communicated; under the condition that the host needs to communicate with the slave to be communicated, controlling the communication switch circuit matched with the slave to be communicated to be switched on so that the host completes communication with the slave to be communicated through the communication bus and the communication switch circuit; and under the condition that the host does not need to communicate with the slave to be communicated or the host finishes communicating with the slave to be communicated, controlling the communication switch circuit matched with the slave to be communicated to be switched off.
Therefore, according to the scheme of the invention, the communication switch circuit is arranged between the communication bus of the host and the communication circuit of the slave (such as a cabinet air conditioner), and under the condition that the host needs to communicate with the slave (such as the cabinet air conditioner), the communication switch circuit at the slave (such as the cabinet air conditioner) is switched on, so that the host and the slave (such as the cabinet air conditioner) can complete communication through the communication bus and the communication switch circuit; under the condition that the host does not need to communicate with the slave (such as a cabinet air conditioner) or the host and the slave (such as the cabinet air conditioner) finish communication, the communication switch circuit at the slave (such as the cabinet air conditioner) is turned off, so that the RS485 communication chip of the slave (such as the cabinet air conditioner) can be prevented from being reset due to continuous occupation of communication interruption resources by arranging the circuit for preventing communication faults on the basis of the slave (such as the cabinet air conditioner), the running reliability of the slave (such as the cabinet air conditioner) is ensured, and the service effect (such as the temperature control effect of the cabinet air conditioner) of the slave (such as the cabinet air conditioner) on a new energy machine cabinet is also ensured.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
Fig. 1 is a schematic structural diagram of a master-slave communication device of the new energy cabinet according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating the master-slave communication flow between the master and the slave of the new energy rack;
FIG. 3 is a schematic diagram of an embodiment of a communication system between a master and multiple slaves in a communication cabinet of the new energy cabinet;
FIG. 4 is a schematic diagram of an embodiment of a communication switch circuit;
FIG. 5 is a schematic diagram of an embodiment of a communication switch circuit using relays;
FIG. 6 is a schematic diagram of an embodiment of a communication switch circuit using a transistor;
FIG. 7 is a schematic diagram of an embodiment of a communication switch circuit using MOS transistors;
fig. 8 is a flowchart illustrating a master-slave communication method of the new energy rack according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the specific embodiments of the present invention and the accompanying drawings. It is to be understood that the disclosed embodiments are merely exemplary of the invention, and are not intended to be exhaustive or exhaustive. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Considering that when the number of the data-hanging devices in the communication bus of the new energy cabinet is too large, a situation that a single packet of data is too long may exist on the communication bus of the new energy cabinet, and if a protection value of a communication reception protection length of a certain device is not reasonable at this time, a communication reception array may cross the boundary due to reception of a long data packet sent by another device, thereby causing operation confusion and reset.
When the cabinet air conditioner runs in a new energy cabinet, a plurality of other slave machines are usually connected to a communication line communicated with a host machine, including an ammeter, a camera, an alarm, a fire-fighting device, a battery management system and the like, so that the host machine roll calls that all the slave machines receive the data cabinet air conditioner, the cabinet air conditioner continuously occupies communication interruption resources and always receives a large amount of data, if a programmer does not properly process the communication reception, the condition of multiple sets of boundary crossing can occur, so that the chip is reset, the air conditioner is restarted, the air conditioner cannot be normally cooled repeatedly, the temperature in the new energy cabinet is too high, and more serious consequences are caused. When one host controls a plurality of slave machines through a bus, each slave machine can receive data for controlling other slave machines, and when the bus data is too much and the verification mode is unreliable, the chip can mistakenly identify the data which does not belong to the slave machine, so that the control is disordered.
Therefore, the problem that the cabinet air conditioner and other loads of the new energy cabinet are hung on a bus and are uniformly controlled by the host computer is solved, the RS485 communication chip of the cabinet air conditioner is reset due to the fact that the cabinet air conditioner receives roll call data of other loads, and the cabinet air conditioner is restarted to influence the temperature control effect of the cabinet air conditioner on the new energy cabinet.
The method for solving the conflict and disorder of the multi-party sending same port provided by some schemes is to solve the problem that the receiving party conflicts and disorders when a multi-party sending party receives, but cannot solve the problem that communication interruption resources are continuously occupied because the receiving party continuously receives a large amount of data which is not roll call when one party sends multi-party receiving.
Therefore, the scheme of the invention provides a master-slave communication device of a new energy cabinet, in particular to a circuit for preventing communication faults based on a machine room air conditioner so as to ensure the stability and the reliability of the operation of the machine cabinet air conditioner.
According to the embodiment of the invention, a master-slave communication device of a novel energy machine cabinet is provided. Referring to fig. 1, a schematic diagram of an embodiment of the apparatus of the present invention is shown. The master-slave communication device of the new energy cabinet can comprise: the system comprises a host, a communication bus and a slave. The master computer is connected to the slave computer through the communication bus. The number of the slave machines is more than one.
The communication switch circuit is arranged for at least one slave in the more than one slave and matched with each slave in the at least one slave. And recording each slave machine provided with the communication switch circuit as a slave machine to be communicated. Wherein, treat communication from the computer, include: a cabinet air conditioner.
And under the condition that the host needs to communicate with the slave to be communicated, the communication switch circuit matched with the slave to be communicated is switched on, so that the host is communicated with the slave to be communicated through the communication bus and the communication switch circuit.
And under the condition that the host does not need to communicate with the slave to be communicated or the host finishes communicating with the slave to be communicated, the communication switch circuit matched with the slave to be communicated is switched off so as to prevent the slave to be communicated from receiving roll call data of other slaves on the communication bus.
Because all the slaves are hung on a bus, each slave can receive all data on the bus, therefore, the scheme of the invention designs a switch circuit to control the on-off of the slave and the bus communication, and the master is switched on only when needing to communicate with the slave, and is switched off when not needing to communicate. Therefore, the abnormality of the slave on the bus caused by receiving all data of the bus all the time can be avoided, and the data is prevented from crossing the boundary or identifying wrong data when the program communication receiving program is not designed properly.
Fig. 2 is a schematic diagram of the master-slave communication flow between the master and the slave of the new energy cabinet. As shown in fig. 2, the master-slave communication process between the master and the slave of the new energy cabinet includes:
and step 1, connecting the host with each slave through a communication bus. The cabinet air conditioner is used as a slave machine, and a communication switch circuit is arranged between the cabinet air conditioner and the communication bus. The host machine sends out a request for communication with the cabinet air conditioner, and then step 2 is executed.
And 2, switching on a communication switch circuit arranged between the communication bus and the cabinet air conditioner, and then executing the step 3.
And 3, successfully communicating the host and the cabinet air conditioner through the communication bus and the communication switch circuit, and then executing the step 4.
And 4, under the condition that the host and the cabinet air conditioner complete communication, the communication switch circuit is disconnected, and the cabinet air conditioner cannot receive roll call data of other slave machines on the communication bus.
Therefore, through the communication switch circuit, the communication between the slave machine (such as the cabinet air conditioner) and the communication bus is disconnected only when the host machine needs to communicate with the slave machine (such as the cabinet air conditioner), and the communication between the slave machine (such as the cabinet air conditioner) and the communication bus is disconnected when no communication needs to be carried out between the host machine and the slave machine (such as the cabinet air conditioner), so that the stable communication between the slave machine (such as the cabinet air conditioner) and the host machine is effectively ensured, and serious consequences caused by the problem of the cabinet air conditioner in communication are avoided.
In some embodiments, the communication bus has host communication circuitry. The host communication circuit of the communication bus comprises: the host communication control end, the host first communication line and the host second communication line. The host communication control end is specifically a communication switch control end. The first communication line of the host computer is specifically a RS485-A communication line of the host computer. The second communication line of the host computer is specifically a RS485-B communication line of the host computer.
The slave to be communicated is provided with a slave communication circuit. The slave communication circuit of the slave to be communicated is provided with a first slave communication line and a second slave communication line. And the first communication line of the slave machine is specifically a RS485-A communication line of the slave machine. And the second communication line of the slave machine is specifically a RS485-B communication line of the slave machine.
Wherein, the communication switch circuit includes: a first switch module and a second switch module. The first communication line of the master machine is connected to the first communication line of the slave machine through the first switch module. And the second communication line of the host is connected to the second communication line of the slave through the second switch module. And the host communication control end is respectively connected to the control end of the first switch module and the control end of the second switch module.
Fig. 3 is a schematic structural diagram of an embodiment of a communication system between a master and multiple slaves in a communication cabinet of a new energy cabinet. As shown in fig. 3, when the cabinet air conditioner operates in the new energy cabinet, a plurality of other slave machines (e.g., a first slave machine, a second slave machine, a third slave machine, an/n slave machine, etc.) are usually connected to the communication line for communicating with the master machine. Other slave machines, including an ammeter, a camera, an alarm, a fire fighting device, a battery management system and other slave machines, cause the host to roll the name of all the slave machines and receive the information, if the software design of a communication receiving part is unreliable or the detection mode is unreliable, a plurality of groups of abnormal conditions such as boundary crossing and error receiving can occur to cause chip resetting, the air conditioner is restarted, the air conditioner cannot be cooled normally in such a repeated way, and the temperature in the new energy source machine cabinet is overhigh, thereby causing more serious consequences. Therefore, in order to ensure reliable communication between the host and the cabinet air conditioner and avoid resetting of the cabinet air conditioner due to continuous occupation of communication interruption resources caused by receiving roll call data of other slave machines on the communication bus, a communication switch circuit is arranged between the communication bus of the host and the communication line of the cabinet air conditioner. Through the communication switch circuit, the communication between the cabinet air conditioner and the communication bus is disconnected only when the host needs to communicate with the cabinet air conditioner, and the host does not need to communicate with the cabinet air conditioner.
In some embodiments, the communication switch circuit is disposed at a front end of the communication circuit of the slave to be communicated, that is, the communication switch circuit is disposed between the communication bus and the slave communication circuit of the slave to be communicated.
In the scheme of the invention, the communication switch circuit can be added at the front end of the communication circuit of the cabinet air conditioner or the front ends of the communication circuits of other slave machines.
Referring to the example shown in fig. 3, the purpose is to protect the cabinet air conditioner, so the communication switch circuit is added to the front end of the cabinet air conditioner, and other slaves are not protected at this time. Similarly, if the circuit is added to the front end of the communication circuit of other slave machines such as the second slave machine, the corresponding communication fault of other slave machines such as the second slave machine can be avoided.
In some embodiments, the first switch module and the second switch module each comprise: and the optical coupler module (such as an optical coupler U1 and an optical coupler U2).
And the anode at the diode side of the optocoupler module is used as a control end of a corresponding switch module in the first switch module and the second switch module.
Fig. 4 is a schematic structural diagram of an embodiment of a communication switch circuit. As shown in fig. 4, a communication switch circuit is arranged between the RS485 communication line of the cabinet air conditioner and the RS485 communication line of the communication bus of the host to control the on-off of the communication between the cabinet air conditioner and the bus, and the communication with the bus is switched on only when the host needs to communicate with the cabinet air conditioner and is switched off when no communication needs exist. Therefore, when the communication receiving program design of the cabinet air conditioner is unreliable, the array is out of range or useless data is received abnormally, and the RS485 communication chip of the cabinet air conditioner is prevented from being reset or received wrongly. Therefore, stable communication between the cabinet air conditioner and the host is effectively ensured, and serious consequences caused by abnormal communication receiving are avoided. Wherein, the RS485 communication line of the cabinet air conditioner is connected through a connecting piece CN 2. And the RS485 communication line of the communication bus of the host is connected through a connecting piece CN 1.
The communication switch circuit shown in fig. 4 includes: opto-coupler U1 and opto-coupler U2. The RS485 communication line of the cabinet air conditioner comprises an RS485 communication line 485-A of the cabinet air conditioner and an RS485 communication line 485-B of the cabinet air conditioner. The RS485 communication line of the communication bus of the host computer is provided with a communication switch control line of the host computer, an RS485 communication line 485-A of the host computer and an RS485 communication line 485-B of the host computer. An anode of a diode side of the optical coupler U1 is connected to a communication switch control line of the host, a cathode of the diode side of the optical coupler U1 is grounded, a collector of the transistor side of the optical coupler U1 is connected to the RS485 communication line 485-A of the host, and an emitter of the transistor side of the optical coupler U1 is connected to the RS485 communication line 485-A of the cabinet air conditioner. An anode of a diode side of the optical coupler U2 is connected to a communication switch control line of the host, a cathode of the diode side of the optical coupler U2 is grounded, a collector of the transistor side of the optical coupler U2 is connected to the RS485 communication line 485-B of the host, and an emitter of the transistor side of the optical coupler U2 is connected to the RS485 communication line 485-B of the cabinet air conditioner.
In the example shown in fig. 4, when the master machine communicates with the slave machines, the master machine and each slave machine are powered on to load programs, the initialization of the programs is completed, and the master machine calls the name of the cabinet air conditioner. When the host calls the name of the cabinet air conditioner, firstly, the control end of the communication switch outputs a high-level signal, the communication switch is switched on, and then, the host and the cabinet air conditioner normally communicate. After the communication between the host and the cabinet air conditioner is finished, the control end of the communication switch (namely the control end of the communication switch control line of the host) outputs low level, and the communication switch is disconnected. The main machine is communicated with other auxiliary machines, the communication switch is disconnected at the moment, the cabinet air conditioner cannot receive communication data on the bus, and control disorder caused by array boundary crossing and wrong receiving is avoided.
In some embodiments, the first switch module and the second switch module each comprise: and a relay module.
And the coil end of the relay module is used as the control end of the corresponding switch module in the first switch module and the second switch module.
Fig. 5 is a schematic diagram of an embodiment of a communication switch circuit using a relay. As shown in fig. 5, the first relay module is selected as the first switch module, and the second relay module is selected as the second switch module. A first relay module comprising: relay K1, diode D1 and electric capacity C1 connect in parallel at relay K1's coil both ends and diode D1's positive pole are connected host computer communication control end, relay K1's contact is connected between the first communication line of host computer and the first communication line of slave computer. A second relay module comprising: relay K2, diode D2 and electric capacity C2 connect in parallel at relay K2's coil both ends and diode D2's positive pole are connected host computer communication control end, relay K2's contact is connected between the first communication line of host computer and the first communication line of slave computer.
In some embodiments, the first switch module and the second switch module each comprise: a triode module.
And the base electrode of the triode module is used as the control end of the corresponding switch module in the first switch module and the second switch module.
Fig. 6 is a schematic diagram of an embodiment of a communication switch circuit using a transistor. As shown in fig. 6, the first switching module is a first triode module, and the second switching module is a second triode module. A first triode module comprising: and the base electrode of the triode Q2 is connected with the communication control end of the host, the emitting electrode of the triode Q2 is connected with the first communication line of the host, and the collecting electrode of the triode Q2 is connected with the first communication line of the slave. A second triode module comprising: and the base electrode of the triode Q1 is connected with the communication control end of the host, the emitting electrode of the triode Q1 is connected with the second communication line of the host, and the collecting electrode of the triode Q1 is connected with the second communication line of the slave.
In some embodiments, the first switch module and the second switch module each comprise: MOS pipe module.
And the grid electrode of the MOS tube module is used as the control end of the corresponding switch module in the first switch module and the second switch module.
Fig. 7 is a schematic structural diagram of an embodiment of a communication switch circuit using MOS transistors. If fig. 7 shows, the first MOS transistor module is selected for use as the first switch module, and the second MOS transistor module is selected for use as the second switch module. A first MOS transistor module comprising: the grid electrode of the MOS tube Q3 is connected with the host communication control end, the source electrode of the MOS tube Q3 is connected with a first communication line of the host, and the drain electrode of the MOS tube Q3 is connected with a first communication line of the slave. A second MOS transistor module comprising: and the grid electrode of the MOS tube Q4 is connected with the host communication control end, the source electrode of the MOS tube Q4 is connected with the second communication line of the host, and the drain electrode of the MOS tube Q4 is connected with the second communication line of the slave.
That is to say, the communication switch circuit in the scheme of the present invention may be implemented by using the optical coupler module (such as the optical coupler U1 and the optical coupler U2) in fig. 4, or may be implemented by using other switch components such as a triode module, an MOS transistor module, and a relay module. As shown in fig. 5, 6 and 7, the structure and function are similar to those of the example shown in fig. 4, and the 485-a and 485-B are controlled by controlling the on-off of the switching elements through the communication switch control end of the host in principle. Taking the example shown in fig. 5 as an example, when the control end of the communication switch outputs a high level, the coils of the relay K1 and the relay K2 are energized, the armatures of the relay K1 and the relay K2 are attracted, the pin 3 and the pin 4 of the relay K1 and the relay K2 are conducted, and the 485-a and 485-B are conducted. When the control end of the communication switch outputs low level, the coils of the relay K1 and the relay K2 are powered off, the armatures of the relay K1 and the relay K2 are not attracted, the pin 3 and the pin 4 of the relay K1 and the relay K2 are disconnected, and the pin 485-A and the pin 485-B are disconnected. The principle of fig. 6 and 7 is similar, and the purpose is to control the connection and disconnection of 485-A and 485-B.
The design idea provided by the scheme of the invention is not limited to air conditioner communication, and can also be used for other similar devices, and the method can be used as long as the circuit is connected without connection requirement and can cause harm to the unit.
For example: if the control line is connected all the time when there is no control demand, the lightning strike of the load can cause the lightning strike voltage to damage the host through the control line if the thunderstorm weather occurs. If a strong interference source is close to the interference source, the interference is also transmitted to the host through the control line so as to be interfered. This circuit can be used in this case to disconnect the control line from the load when there is no control demand.
The scheme of the invention solves the problems that the receiving data is too much to cause the receiving array to cross the boundary or receive the data in error when the communication program design of the host computer and the plurality of slave computers is unreliable. Therefore, the communication switch circuit is designed to control the on-off of the communication line between the slave and the bus, the communication with the bus is cut off only when the master needs to communicate with the slave and the communication with the bus is cut off when the communication is not needed, the communication protection is increased from the aspect of hardware, and faults caused by communication such as crossing of a receiving array, identification of wrong data and the like are avoided.
By adopting the technical scheme of the invention, the communication switch circuit is arranged between the communication bus of the host machine and the communication circuit of the slave machine (such as a cabinet air conditioner), and the communication switch circuit of the slave machine (such as the cabinet air conditioner) is switched on under the condition that the host machine needs to communicate with the slave machine (such as the cabinet air conditioner), so that the host machine and the slave machine (such as the cabinet air conditioner) can complete communication through the communication bus and the communication switch circuit. Under the condition that the host does not need to communicate with the slave (such as a cabinet air conditioner) or the host and the slave (such as the cabinet air conditioner) finish communication, a communication switch circuit at the slave (such as the cabinet air conditioner) is turned off, communication protection is increased from the aspect of hardware, and faults caused by communication such as receiving array boundary crossing, identifying error data and the like are avoided.
According to the embodiment of the invention, a new energy cabinet of the master-slave communication device corresponding to the new energy cabinet is also provided. The new energy cabinet may include: the master-slave communication device of the new energy machine cabinet is characterized in that the master-slave communication device comprises a master-slave communication device body and a master-slave communication device body.
Since the processing and functions implemented by the new energy cabinet of this embodiment basically correspond to the embodiments, principles and examples of the device, the description of this embodiment is not given in detail, and reference may be made to the related descriptions in the foregoing embodiments, which are not described herein again.
By adopting the technical scheme of the invention, the communication switch circuit is arranged between the communication bus of the host machine and the communication circuit of the slave machine (such as a cabinet air conditioner), and the communication switch circuit of the slave machine (such as the cabinet air conditioner) is switched on under the condition that the host machine needs to communicate with the slave machine (such as the cabinet air conditioner), so that the host machine and the slave machine (such as the cabinet air conditioner) can complete communication through the communication bus and the communication switch circuit. Under the condition that the host does not need to communicate with the slave (such as a cabinet air conditioner) or the host and the slave (such as the cabinet air conditioner) finish communication, the communication switch circuit at the slave (such as the cabinet air conditioner) is turned off, communication is carried out according to the communication requirement, and the problem that control disorder is caused by multiple groups of boundary crossing and wrong receiving is avoided.
According to an embodiment of the present invention, a master-slave communication method of a new energy cabinet corresponding to the new energy cabinet is also provided, as shown in fig. 8, which is a schematic flow chart of an embodiment of the method of the present invention. The master-slave communication method of the new energy cabinet can comprise the following steps: step S110 to step S130.
At step S110, it is determined whether the master needs to communicate with the slave to be communicated.
In step S120, in a case that the master needs to communicate with the slave to be communicated, the communication switch circuit matched with the slave to be communicated is controlled to be turned on, so that the master completes communication with the slave to be communicated through the communication bus and the communication switch circuit.
In step S130, in a case that the master does not need to communicate with the slave to be communicated, or the master has already completed communication with the slave to be communicated, the communication switch circuit matched with the slave to be communicated is controlled to be turned off, so as to prevent the slave to be communicated from receiving roll call data of other slaves on the communication bus.
The technical scheme of the invention designs a switching circuit to control the on-off of the communication between the slave and the bus, the communication between the slave and the bus is switched on only when the master needs to communicate with the slave, and the communication between the slave and the bus is switched off when the master does not need to communicate, so that the abnormal condition caused by the slave receiving all data of the bus all the time on the bus can be avoided, and the data is prevented from crossing the boundary or identifying wrong data when the program communication receiving program is not properly designed. Therefore, the communication switch circuit is designed to control the on-off of the communication line between the slave and the bus, the communication with the bus is disconnected only when the master needs to communicate with the slave and the communication with the bus is not needed, the communication protection is increased from the aspect of hardware, and faults caused by communication such as crossing of a receiving array, identification of error data and the like are avoided.
Since the processing and functions implemented by the method of this embodiment substantially correspond to the embodiments, principles and examples of the new energy cabinet, reference may be made to the relevant description in the foregoing embodiments without being given in detail in the description of this embodiment, which is not described herein again.
By adopting the technical scheme of the embodiment, the communication switch circuit is arranged between the communication bus of the host and the communication circuit of the slave (such as a cabinet air conditioner), and the communication switch circuit of the slave (such as the cabinet air conditioner) is switched on under the condition that the host needs to communicate with the slave (such as the cabinet air conditioner), so that the host can complete communication with the slave (such as the cabinet air conditioner) through the communication bus and the communication switch circuit; under the condition that the host does not need to communicate with the slave (such as a cabinet air conditioner) or the host and the slave (such as the cabinet air conditioner) finish communication, the communication switch circuit at the slave (such as the cabinet air conditioner) is turned off, so that the RS485 communication chip of the slave (such as the cabinet air conditioner) can be prevented from being reset due to continuous occupation of communication interruption resources by arranging the circuit for preventing communication faults on the basis of the slave (such as the cabinet air conditioner), the running reliability of the slave (such as the cabinet air conditioner) is ensured, and the service effect (such as the temperature control effect of the cabinet air conditioner) of the slave (such as the cabinet air conditioner) on a new energy machine cabinet is also ensured.
In summary, it is readily understood by those skilled in the art that the advantageous modes described above can be freely combined and superimposed without conflict.
The above description is only an example of the present invention, and is not intended to limit the present invention, and it is obvious to those skilled in the art that various modifications and variations can be made in the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.
Claims (9)
1. A master-slave communication device of a new energy cabinet is characterized by comprising: the system comprises a host, a communication bus and a slave; the master machine is connected to the slave machine through the communication bus; the number of the slave machines is more than one;
aiming at least one slave machine in more than one slave machines, a communication switch circuit is arranged to match with each slave machine in the at least one slave machine; recording each slave machine provided with the communication switch circuit as a slave machine to be communicated; wherein, treat communication from the computer, include: a cabinet air conditioner;
under the condition that the host needs to communicate with the slave to be communicated, the communication switch circuit matched with the slave to be communicated is switched on, so that the host is communicated with the slave to be communicated through the communication bus and the communication switch circuit;
and under the condition that the host does not need to communicate with the slave to be communicated or the host finishes communicating with the slave to be communicated, the communication switch circuit matched with the slave to be communicated is switched off.
2. The master-slave communication device of the new energy cabinet as claimed in claim 1, wherein the communication bus has a master communication circuit; the host communication circuit of the communication bus comprises: the host communication control end, the host first communication line and the host second communication line;
the slave to be communicated is provided with a slave communication circuit; the slave communication circuit of the slave to be communicated is provided with a first slave communication line and a second slave communication line;
wherein, the communication switch circuit includes: a first switch module and a second switch module; the first communication line of the host is connected to the first communication line of the slave through the first switch module; the second communication line of the host is connected to the second communication line of the slave through the second switch module; and the host communication control end is respectively connected to the control end of the first switch module and the control end of the second switch module.
3. The master-slave communication device of the new energy machine cabinet as claimed in claim 2, characterized in that the communication switch circuit is arranged between the communication bus and the slave communication circuit of the slave to be communicated.
4. The master-slave communication device of the new energy cabinet according to claim 2 or 3, wherein the first switch module and the second switch module each comprise: an optocoupler module;
and the anode at the diode side of the optical coupling module is used as a control end of a corresponding switch module in the first switch module and the second switch module.
5. The master-slave communication device of the new energy cabinet according to claim 2 or 3, wherein the first switch module and the second switch module each comprise: a relay module;
and the coil end of the relay module is used as the control end of the corresponding switch module in the first switch module and the second switch module.
6. The master-slave communication device of the new energy cabinet according to claim 2 or 3, wherein the first switch module and the second switch module each comprise: a triode module;
wherein the base of the triode module is used as the control terminal of the corresponding one of the first switch module and the second switch module.
7. The master-slave communication device of the new energy cabinet according to claim 2 or 3, wherein the first switch module and the second switch module each comprise: an MOS tube module;
and the grid electrode of the MOS tube module is used as the control end of a corresponding switch module in the first switch module and the second switch module.
8. A new energy rack, comprising: the master-slave communication device of the new energy cabinet as claimed in any one of claims 1 to 7.
9. A master-slave communication method of the new energy cabinet as claimed in claim 8, comprising:
determining whether the host needs to communicate with the slave to be communicated;
under the condition that the host needs to communicate with the slave to be communicated, controlling the communication switch circuit matched with the slave to be communicated to be switched on so that the host completes communication with the slave to be communicated through the communication bus and the communication switch circuit;
and under the condition that the host does not need to communicate with the slave to be communicated or the host finishes communicating with the slave to be communicated, controlling the communication switch circuit matched with the slave to be communicated to be switched off.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210992467.3A CN115378759A (en) | 2022-08-18 | 2022-08-18 | Novel energy cabinet and master-slave communication device and method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210992467.3A CN115378759A (en) | 2022-08-18 | 2022-08-18 | Novel energy cabinet and master-slave communication device and method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115378759A true CN115378759A (en) | 2022-11-22 |
Family
ID=84065093
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210992467.3A Pending CN115378759A (en) | 2022-08-18 | 2022-08-18 | Novel energy cabinet and master-slave communication device and method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115378759A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108880599A (en) * | 2018-08-01 | 2018-11-23 | 珠海格力电器股份有限公司 | Communication circuit, communication method thereof, controller and electric equipment |
CN113282036A (en) * | 2021-05-13 | 2021-08-20 | 珠海格力电器股份有限公司 | Communication control device and method of HBS (hybrid bus system) and multi-split system |
CN113645112A (en) * | 2021-07-15 | 2021-11-12 | 珠海格力电器股份有限公司 | Bus communication control circuit and control method thereof |
-
2022
- 2022-08-18 CN CN202210992467.3A patent/CN115378759A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108880599A (en) * | 2018-08-01 | 2018-11-23 | 珠海格力电器股份有限公司 | Communication circuit, communication method thereof, controller and electric equipment |
CN113282036A (en) * | 2021-05-13 | 2021-08-20 | 珠海格力电器股份有限公司 | Communication control device and method of HBS (hybrid bus system) and multi-split system |
CN113645112A (en) * | 2021-07-15 | 2021-11-12 | 珠海格力电器股份有限公司 | Bus communication control circuit and control method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101047514B (en) | Power-receiving patch panel | |
CN103199972B (en) | The two-node cluster hot backup changing method realized based on SOA, RS485 bus and hot backup system | |
CN111767244B (en) | Dual-redundancy computer equipment based on domestic Loongson platform | |
CN211086558U (en) | Network camera fault detection circuit and device | |
CN109862583A (en) | A kind of method and device reporting exception information | |
CN105549696A (en) | Rack-mounted server system with case management function | |
CN212541329U (en) | Dual-redundancy computer equipment based on domestic Loongson platform | |
CN111314148A (en) | Redundant network IP intelligent switching method and system based on redundant computer | |
CN115378759A (en) | Novel energy cabinet and master-slave communication device and method thereof | |
CN111698157B (en) | Link management method, board card and switch | |
CN111431668B (en) | Baud rate switching method based on multi-node UART communication, air conditioning system and processor | |
CN204633800U (en) | A switch with double redundancy of management unit and switching unit | |
CN104539493A (en) | Intelligent terminal system and method of management and control over intelligent household electric appliances based on USB interface | |
CN110053650B (en) | Automatic train operation system, automatic train operation system architecture and module management method of automatic train operation system | |
CN113282036A (en) | Communication control device and method of HBS (hybrid bus system) and multi-split system | |
KR20150104435A (en) | Method of performing transition of operation mode for a routing processor | |
CN103840956A (en) | Backup method for gateway device of Internet of Things | |
CN214670175U (en) | Communication control device of HBS (high speed bus) bus and multi-split system | |
CN106814643B (en) | A kind of control method and system of two-node cluster hot backup | |
CN111208804B (en) | Dust remover ash removal system with drop-off fault safety hot standby hard link and method thereof | |
CN100433590C (en) | Distribution method and device for communication system work module monitoring unit | |
CN112178881A (en) | Self-checking method and device of RS485 network | |
CN112469064B (en) | Fault transparent transmission method, device and electronic equipment | |
CN108650101B (en) | Data transmission method and equipment | |
CN105490820B (en) | A kind of POE method of supplying power to and device |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20221122 |