[summary of the invention]
Present invention seek to address that the problems referred to above, and provide one can power simultaneously and communicate, and wiring is simple, difficulty of constructionLittle, the two-wire power supply of low cost and communication system.
Present invention also offers a kind of method realizing two-wire power supply and communication.
For realizing the purpose of the present invention, the invention provides a kind of two-wire power supply and communication system, this system is provided with master controlEquipment, this main control device is connected with multiple controlled plants respectively by two buses, and described main control device is total by twoLine is that multiple controlled plant is powered, and multiple by controlled plant two-way communication with described by binary digital signal modulation.
Described main control device sends binary data " 1 " and " 0 " when communicating with controlled plant to controlled plant, wherein,When sending binary data " 1 ", it modulates the transmission time is T1, output voltage is the pulse signal of supply voltage;When sending outWhen sending binary data " 0 ", it modulates the transmission time is T2, output voltage be zero pulse signal and the transmission time be T0-T2, output voltage is the pulse signal of supply voltage.
Send the time T of binary data " 0 " to controlled plant by adjusting described main control device2With T0Ratio can changeBecome the main control device delivery to controlled plant, send a byte data by adjusting described main control device to controlled plantTime interval can change the communication speed between main control device and controlled plant, described T1=T0, and T2≤1/2T0。
Described main control device is when receiving the communication data of controlled plant, and main control device is modulated on the basis of supply voltageSeveral transmission times are T3, output voltage is the pulse signal of communication voltage, and during transmission that output voltage is supply voltageBetween be T4。
Described main control device is main frame or distribution electric installation, and described controlled plant is the emergency lighting being distributed in each floorLamp, display lamp, alarm device, emergency power supply and distribution electric installation a kind of or the combination that it is multiple.
Described main control device is provided with control module, communication module, supply module and signal dispatcher module, described communication mouldBlock, supply module and signal dispatcher module are connected with control module respectively, and described control module is total by communication module and twoLine respectively with multiple controlled plant two-way communications, described control module is respectively multiple controlled by supply module and two busesEquipment is powered.
Described controlled plant is provided with telecommunication circuit and power supply circuits, and described telecommunication circuit and power supply circuits are total with two respectivelyLine connects.
Present invention also offers a kind of method realizing two-wire power supply and communication, the method comprises the steps:
A, main control device are that controlled plant is powered and carries out two-way communication with controlled plant by two buses;
B, when main control device need communicate to controlled plant time, main control device by binary digital signal modulation with controlledEquipment communicates, and sends binary data " 1 " and " 0 " to controlled plant, and wherein, when sending binary data " 1 ", master control setsIt is T for modulating the transmission time1, output voltage is the pulse signal of supply voltage;When sending binary data " 0 ", master controlThe equipment modulation transmission time is T2, output voltage be zero pulse signal and the transmission time be T0-T2, output voltage is power supply electricityThe pulse signal of pressure;
C, when main control device does not sends data and receives the communication data of controlled plant, main control device is at supply voltageOn the basis of to modulate several transmissions time be T3, output voltage is the detection pulse signal of communication voltage, if through T3After time,Main control device does not receives the communication data of controlled plant, then being overturn by output voltage is supply voltage, and the transmission time is T4;IfAt T3In time, main control device receives the communication data of controlled plant, and when controlled plant has sent the data of a byteAfter, output voltage upset is supply voltage by main control device, and the transmission time is T4, until having received the communication number of controlled plantAccording to.
In step b, send the time T of binary data " 0 " to controlled plant by adjusting described main control device2With T0'sRatio can change the main control device delivery to controlled plant, sends a word by adjusting described main control device to controlled plantThe time interval of joint number evidence can change the communication speed between main control device and controlled plant, described T1=T0, and T2≤1/2T0。
In step c, described supply voltage is 13V~40V, and described communication voltage is 6V~9V.
The contribution of the present invention is, it efficiently solves, and the wiring of existing communication electric power system is complicated, difficulty of construction is big, costHigh problem.The main control device of the present invention is that controlled plant is powered by two buses, and is modulated by binary digital signalTwo-way communication is carried out, simultaneously by adjusting T actual time sending binary digit " 0 " with controlled plant2With theoretical time T0'sRatio can change the main control device delivery to controlled plant, sends a byte number by adjusting main control device to controlled plantAccording to time interval can change the communication speed between main control device and controlled plant.The present invention not only can meet that power is slightly larger to be setStandby power supply and communication, and can avoid arranging that complicated communication network and cable pair order wire interfere so that structureSimple and reliable, easy construction, low cost.
[detailed description of the invention]
The following example is the present invention to be explained further and supplements, and does not constitutes any limitation the present invention.
Refering to Fig. 1 and Fig. 2, the two-wire power supply of the present invention and communication system include main control device 10, controlled plant 20 and twoBar bus 30.Wherein, main control device 10 can be master control system, main frame or distribution electric installation etc., and controlled plant 20 is dataHarvester, induction installation, illuminator instruction device, alarm device or distribution electric installation etc. need power supply and and main control deviceThe equipment of 10 communications.The main control device 10 of the present embodiment is main frame, controlled plant 20 be distributed in each floor emergency light,Display lamp, alarm device and the combination of one or more of the condition of a disaster detection device.
As shown in Figure 1, Figure 2, shown in Fig. 3 and Fig. 4, main control device 10 powered for controlled plant 20 by two buses 30 and be subject toControl equipment 20 carries out two-way communication.This main control device 10 includes that control module 11, communication module 12, supply module 13 and information are receivedSend out module 14.Wherein, communication module 12, supply module 13 and signal dispatcher module 14 are connected with control module 11 respectively.Work as masterAfter control equipment 10 connects power supply source, the supply module 13 of main control device 10 is under the control of control module 11, by information transmit-receive mouldBlock 14 and two buses 30 are powered for controlled plant 20, and wherein, the voltage of supply module 13 output is supply voltage.When master control setsStandby 10 needed when controlled plant 20 communicates, and control module 11 is communicated with controlled plant 20 by modulating binary word signal.In the present embodiment, it is to send binary data " 1 " and " 0 " to controlled plant 20 that main control device 10 communicates with controlled plant 20.ItsIn, when main control device 10 sends binary data " 1 " to controlled plant 20, control module 11 modulates in communication module 12The transmission time is T1, output voltage is the pulse signal of supply voltage, and by signal dispatcher module 14 and two buses 30 toControlled plant 20 sends the pulse signal modulated;When main control device 10 sends binary data " 0 " to controlled plant 20, controlIt is T that molding block 11 modulates the transmission time in communication module 122, output voltage be zero pulse signal and the transmission time be T0-T2, output voltage is the pulse signal of supply voltage, and passes through signal dispatcher module 14 and two buses 30 to controlled plant 20Send the pulse signal modulated.Wherein, T0For sending the theoretical time of binary data " 0 ", T2For sending binary dataThe actual time of " 0 ".During owing to sending binary data " 0 ", its output voltage is zero, it is impossible to power for controlled plant 20, mainThe control module 11 of control equipment 10 is by shortening to T by the time sending binary data " 0 "2, and be T in the time0-T2In, willOutput voltage is adjusted to supply voltage, during to ensure to send binary data " 0 ", also can power for controlled plant 20.This enforcementIn example, T1=T0, and T2≤1/2T0, thus while ensureing that main control device 10 communicates with controlled plant 20, main control device 10 is alsoCan be that controlled plant 20 is powered.When main control device 10 needs the communication data receiving controlled plant 20, control module 11 is logicalModulating several transmissions time on the basis of the supply voltage of letter module 12 is T3, output voltage is the pulse letter of communication voltageNumber, and be supply voltage for output voltage between each adjacent communication voltage pulse signal, the transmission time is T4Pulse signal.In the present embodiment, if main control device 10 needs the communication data receiving controlled plant 20, control module 11 is in communication module 12Supply voltage on the basis of modulate a transmission time be T3, output voltage is the pulse signal of communication voltage, if through T3TimeAfter, the signal dispatcher module 14 of main control device 10 does not receives the communication data of controlled plant 20, then control module 11 will communicationThe output voltage upset of module 12 is supply voltage, the delivery enough to ensure main control device 10, elapsed time T4After, then adjustMaking a transmission time is T3, output voltage is the pulse signal of communication voltage, so circulates, until need not receive controlled settingThe communication data of standby 20;If at T3In time, the signal dispatcher module 14 of main control device 10 receives what controlled plant 20 sentDuring communication data, and after controlled plant 20 has sent the data of a byte, the control module 11 of main control device 10 will communicationThe output voltage upset of module 12 is supply voltage, and the transmission time is T4Pulse signal, elapsed time T4After, control module 11On the basis of the supply voltage of supply module 13, one the transmission time of modulation is T again3, output voltage is the pulse letter of communication voltageNumber, until having received the communication data of controlled plant 20.In the present embodiment, the control module 11 of main control device 10 is sent out by adjustingSend T actual time of binary data " 0 "2With the theoretical time T sending binary data " 0 "0Ratio change main control device10 to the delivery of controlled plant 20, and by adjust the time interval sending a byte data change main control device 10 withCommunication speed between controlled plant 20, wherein, T1=T0, and T2≤1/2T0, additionally, supply voltage is 13V~40V, communicationVoltage is 6V~9V, thus ensures that main control device 10 can be that controlled plant 20 is powered while communicating with controlled plant 20.Such as,When baud rate is 9600, the time sending a binary one Bit data is 104 μ s, i.e. T0=104 μ s, T1=104 μ s, T240 μ s can be set to.When sending binary one Bit data " 0 ", there is time of 61.5% bus-powered to supply voltage to.ThisTime communication speed fast, power supply capacity is then slightly worse when sending binary one Bit data " 0 " and being the most.For another example, when baud rate it isWhen 2400, the time sending a binary one Bit data is 416 μ s, T0=416 μ s, T1=416 μ s, T2It is set to 40 μ equallyS. there is the time of 90% bus-powered to supply voltage in transmission binary one Bit data " 0 ", hence it is evident that power supply capacity compares rippleSpecial rate to improve a lot when being 9600, communication speed is slightly slow, but power supply capacity then improves a lot.
As shown in Figure 1, Figure 2 and shown in Fig. 4, main control device 10 is connected with controlled plant 20 by two buses 30.This is controlled setsStandby 20 include telecommunication circuit 21 and power supply circuits 22, and wherein, telecommunication circuit 21 and power supply circuits 22 are respectively with two buses 30 evenConnect.The supply module 13 of main control device 10 is powered by the power supply circuits 22 that two buses 30 are controlled plant 20.Set when controlledStandby 20 needed when main control device 10 sends communication data, and the telecommunication circuit 21 of controlled plant 20 detects main control device 10When output voltage is communication voltage, controlled plant 20 sends communication data by telecommunication circuit 21 to main control device 10, works as transmissionAfter the data of a complete byte, output voltage upset is supply voltage by main control device 10, and now controlled plant 20 cannot be to masterControl equipment 10 sends communication data, and during until the output voltage of main control device 10 becomes communication voltage, controlled plant 20 just can be toMain control device 10 sends communication data, so circulates, until the communication data of controlled plant 20 is all sent.Certainly, whenControlled plant 20 does not has communication data when main control device 10 sends, even if the output voltage of main control device 10 becomes communication electricityPressure, main control device 10 also cannot receive any communication data from controlled plant 20.
Refering to Fig. 5, the method realizing two-wire power supply and communication of the present invention comprises the steps:
S10, main control device 10 are powered by two buses 30 for controlled plant 20 and carry out two-way with controlled plant 20Letter;
In this step, main control device 10 includes control module 11, communication module 12, supply module 13 and signal dispatcher module14, wherein, communication module 12, supply module 13 and signal dispatcher module 14 are connected with control module 11 respectively, controlled plant 20Including telecommunication circuit 21 and power supply circuits 22, wherein, telecommunication circuit 21 and power supply circuits 22 are connected with two buses 30 respectively.MainThe control module 11 of control equipment 10 is powered by the power supply circuits 22 that supply module 13 and two buses 30 are controlled plant 20.MainThe control module 11 of control equipment 10 is logical by communication module 12, signal dispatcher module 14 and two buses 30 and controlled plant 20Letter circuit 21 communicates, and the telecommunication circuit 21 of controlled plant 20 is led to by the communication module 12 of two buses 30 with main control device 10Letter.
S20, main control device 10 send communication data to controlled plant 20;
In this step, main control device 10 is communicated with controlled plant 20 by binary digital signal modulation, and sets to controlledStandby 10 send binary data " 1 " and " 0 ", wherein, when sending binary data " 1 ", and the control module 11 of main control device 10It is T that the output voltage of communication module 12 modulates the transmission time1, output voltage is the pulse signal of supply voltage;Work as transmissionDuring binary data " 0 ", the output voltage of communication module 12 is modulated the transmission time and is by the control module 11 of main control device 10T2, output voltage be zero pulse signal and the transmission time be T0-T2, output voltage is the pulse signal of supply voltage.Wherein,T0For sending the theoretical time of binary data " 0 ", T2For sending the actual time of binary data " 0 ".In the present embodiment, T1=T0, and T2≤1/2T0, during owing to sending binary data " 0 ", its output voltage is zero, it is impossible to power for controlled plant 20,The control module 11 of main control device 10 is by shortening to T by the time sending binary data " 0 "2, and be T in the time0-T2In,Output voltage is become supply voltage, during to ensure to send binary data " 0 ", also can power for controlled plant 20.
S30, controlled plant 20 send communication data to main control device 10.
In this step, when main control device 10 needs the communication data receiving controlled plant 20, the control of main control device 10It is T that module 11 modulates several transmissions time on the basis of the output voltage of communication module 123, output voltage is communication electricityThe detection pulse signal of pressure.When the telecommunication circuit 21 of controlled plant 20 detects that the output voltage that main control device 10 sends is communicationAfter the detection pulse signal of voltage, communication data is sent to main control device 10, when being subject to by two buses 30 by telecommunication circuit 21When control equipment 20 does not has information to be sent to main control device 10, even if controlled plant 20 detects the arteries and veins that output voltage is communication voltageRush signal, send information without to main control device 10.In the present embodiment, work as T3In time, main control device 10 is not received byDuring the data that controlled plant 20 sends, then the output voltage of communication module 12 is overturn as sending out by the control module 11 of main control device 10Sending the time is T4, output voltage is the pulse signal of supply voltage, to ensure the main control device 10 delivery for controlled plant 20,Through T4After time, it is T that the output voltage of communication module 12 is changed into the transmission time by the control module 11 of main control device 10 again3,Output voltage is the detection pulse signal of communication voltage, until main control device 10 is without receiving the communication information of controlled plant 20.And work as T3In time, when main control device 10 receives the data that controlled plant 20 sends, then main control device 10 receives controlled settingDuring 1 byte data that standby 20 send, the output voltage of communication module 12 is overturn as sending by the control module 11 of main control device 10Time is T4, output voltage is the pulse signal of supply voltage, to ensure the main control device 10 delivery for controlled plant 20, warpCross T4After time, it is T that the output voltage of the control module 11 of main control device 10 the most just communication module 12 is changed into the transmission time3,Output voltage is the detection pulse signal of communication voltage, continues to the communication data that controlled plant 20 sends, sets until controlledThe data of standby 20 have all received.In order to ensure the reliability of communication, in the same time, main control device 10 may only receive oneThe communication data that controlled plant 20 sends.The supply voltage of the present embodiment is in the range of 13V~40V, the scope of communication voltageFor: 6V~9V, thus while ensureing the communication information that main control device 10 receives controlled plant 20, main control device 10 can be controlledEquipment 20 is powered.Additionally, according to actual needs, T actual time of binary data " 0 " is sent by adjusting main control device 102With the theoretical time T sending binary data " 0 "0Ratio change the main control device 10 delivery to controlled plant 20, andSend the time interval of 1 byte data to controlled plant 20 and change main control device 10 by adjusting main control device 10 and set with controlledCommunication speed between standby 20.Such as, when baud rate is 9600, the time sending a binary one Bit data is 104 μS, i.e. T0=104 μ s, T1=104 μ s, T240 μ s can be set to.When sending binary one Bit data " 0 ", there is the time of 61.5%Bus-powered to supply voltage to.At this moment communication speed is fast, and power supply capacity then compares in transmission binary one Bit data " 0 "Time many slightly worse.For another example, when baud rate is 2400, the time sending a binary one Bit data is 416 μ s, T0=416 μS, T1=416 μ s, T2It is set to 40 μ s equally.The time of 90% is had to supply voltage to sending binary one Bit data " 0 "Bus-powered, hence it is evident that to improve a lot when power supply capacity is 9600 than baud rate, communication speed is slightly slow, but power supply capacity then improvesA lot.
Taking this, the main control device 10 of the present invention is powered for controlled plant 20 by two buses 30, and passes through binary numberThe modulation of word signal and controlled plant 20 carry out two-way communication, simultaneously by adjusting T actual time sending binary digit " 0 "2With theoretical time T0Ratio can change the main control device 10 delivery to controlled plant 20, by adjust main control device 10 to being subject toControl equipment 20 sends the time interval of a byte data can change the communication speed between main control device 10 and controlled plant 20.The present invention not only can meet power supply and the communication of the slightly larger equipment of power, and can avoid arranging complicated communication network and cableOrder wire is interfered so that simple and reliable for structure, easy construction, low cost.
Although being disclosed the present invention by above example, but protection scope of the present invention is not limited thereto,Under conditions of without departing from present inventive concept, the deformation of being done above each component, replacement etc. all will fall into the right of the present inventionIn claimed range.