[go: up one dir, main page]

CN110011698A - A kind of community's Traditional Chinese medicine decocting communication system - Google Patents

A kind of community's Traditional Chinese medicine decocting communication system Download PDF

Info

Publication number
CN110011698A
CN110011698A CN201910399783.8A CN201910399783A CN110011698A CN 110011698 A CN110011698 A CN 110011698A CN 201910399783 A CN201910399783 A CN 201910399783A CN 110011698 A CN110011698 A CN 110011698A
Authority
CN
China
Prior art keywords
signal
voltage
cycle
point
time
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.)
Withdrawn
Application number
CN201910399783.8A
Other languages
Chinese (zh)
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.)
Fuzhou Alignment Mdt Infotech Ltd
Original Assignee
Fuzhou Alignment Mdt Infotech 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 Fuzhou Alignment Mdt Infotech Ltd filed Critical Fuzhou Alignment Mdt Infotech Ltd
Publication of CN110011698A publication Critical patent/CN110011698A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C19/00Electric signal transmission systems
    • G08C19/16Electric signal transmission systems in which transmission is by pulses
    • G08C19/22Electric signal transmission systems in which transmission is by pulses by varying the duration of individual pulses
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C19/00Electric signal transmission systems
    • G08C19/16Electric signal transmission systems in which transmission is by pulses
    • G08C19/24Electric signal transmission systems in which transmission is by pulses using time shift of pulses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/54Systems for transmission via power distribution lines
    • H04B3/542Systems for transmission via power distribution lines the information being in digital form
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/54Systems for transmission via power distribution lines
    • H04B3/546Combination of signalling, telemetering, protection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/403Bus networks with centralised control, e.g. polling
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C2201/00Transmission systems of control signals via wireless link
    • G08C2201/40Remote control systems using repeaters, converters, gateways
    • G08C2201/42Transmitting or receiving remote control signals via a network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The present invention relates to a kind of community's Traditional Chinese medicine decocting communication systems, include SMS R-T unit, Centralized Controller, each data acquisition module and control for decocting medicinal herbs, using power line communication method, 0 area's specified point is crossed to grid cyclic wave voltage and sends wide pulse signal generation mutation current, and grid cyclic wave is made to carry information.Centralized Controller receives the data of each community data acquisition module acquisition control for decocting medicinal herbs, and realizes that the ending message mode of sending short messages of boiling medicine notifies patient to take medicine in time by GSM network.

Description

A kind of community's Traditional Chinese medicine decocting communication system
(1) technical field:
The present invention relates to a kind of community's Traditional Chinese medicine decocting communication system, comprising SMS R-T unit, Centralized Controller, each Data acquisition module and control for decocting medicinal herbs are crossed 0 area's specified point to grid cyclic wave voltage and are sent wide arteries and veins using power line communication method It rushes signal and generates mutation current, grid cyclic wave is made to carry information.Centralized Controller receives each community data acquisition module acquisition and decocts The data of medicine controller, and realize that the ending message mode of sending short messages of boiling medicine notifies patient to take medicine in time by GSM network.
(2) background technique:
Current power line communication refers mainly to power line carrier communication and bi-directional Glenn shunt.Power line carrier communication PLC benefit Signal is transmitted by carrier system with existing power line.But distribution transformer has barrier action to power carrier signal, simultaneously Transmission has the very big loss of signal again between three-phase power line, so power carrier signal can only be in a distribution transformer platform area Transmission, and can only be transmitted in single-phase electricity line.In practical application, when power line zero load, point-to-point carrier signal can be transferred to Several kilometers, but when load is very heavy on power line, tens meters can only be transmitted, therefore power line carrier communication is only applied remote at present In journey meter reading, also need to cooperate other means of communication.
Bi-directional Glenn shunt TWACS, which is utilized, is added modulated signal in power-frequency voltage fundamental wave zero passage area, with the electricity in this region The distorted signal of pressure or current waveform carries information.TWACS system equipment exists only in substation and user terminal.Wherein by power transformation Standing to the channel of user terminal transmission is output channel, carries information using the modulation of voltage waveform, is passed from user terminal to substation Defeated channel is input channel, transmits information using the variation of current waveform.Its receiving and transmitting signal passes through coupling transformer and electricity The crosslinking of power net.
The detection of TW A CS signal is mainly based upon time-domain difference technology, these methods mostly data processing complex, in real time Property it is poor, equipment cost is high, needs to acquire a large amount of signal of multiple cycles relatively and carries out A/D conversion respectively, then carries out complicated meter It calculates, just can determine that the signal position is " 1 " or " 0 ", due to the preciseness of calculating, interference signal can seriously affect detected signal Judgement as a result, therefore original method be difficult China apply.
Clock timer and synchrotimer is arranged in the present invention, and the true and false judgement of synchrotimer and cycle signal is screened With reference to my 2016 yearly correlation patents.
(3) summary of the invention:
Power line bi-directional Glenn shunt be when silicon-controlled 30 ° of triggering and conductings before zero crossing of modulation circuit, by every Modulated signal is generated from transformer, makes grid cyclic wave that short circuit distortion occur, exports the frequency of modulated signal in 200~600Hz Range, receiving end demodulate useful letter by acquisition, A/D conversion and the series of computation to multiple groups cycle distorted signal Breath.But China's power network uses isolated neutral or small current neutral grounding system, electricity consumption situation is complicated, the two-way power frequency of power line Communication can hardly find practical applications in China.
The present invention relates to a kind of community's Traditional Chinese medicine decocting communication systems, include SMS R-T unit, Centralized Controller, number According to acquisition module and control for decocting medicinal herbs.Centralized Controller and the data acquisition module of each community in same transformer platform area use electric power Line communication, and used by national standard installation Three-hole socket for data acquisition module.Wiring installation is reduced using power line communication. Data acquisition module is communicated by serial ports with multiple control for decocting medicinal herbs, and the beginning and end for acquiring each control for decocting medicinal herbs is boiled medicine the time And mode of boiling medicine, control for decocting medicinal herbs are a kind of can to boil medicine power and the intelligence for time of boiling medicine is set by the way that keyboard time segment is preset It is standby.Electric medicine decocting tank puts Chinese medicine and water into, and after sticking patient's mark, the socket of control for decocting medicinal herbs is can be inserted in attaching plug at any time On choose the mode of boiling medicine on control for decocting medicinal herbs and start to boil medicine, generally boil medicine and begin with the half an hour above warm water soak period, Then very hot oven, slow fire phase etc. are controlled by control for decocting medicinal herbs.Centralized Controller is also connect with SMS R-T unit, is utilized GSM network realizes that ending message of boiling medicine notifies patient to take medicine in time with the mode of sending short messages.SMS of GSM itself has data transmission The transmission of function, message is always relayed by the SMS service center (SMSC) outside GSM.The short message industry of GSM It does not have to dialing and can establish connection business SMS, the information to be sent out is sent to short message service center plus stay of two nights data, through short Telecommunications services center is then forwarded to the final stay of two nights after completing storage.
The power line communication of use is the essence by the signal sending point and signal receiving point that set to grid cyclic wave voltage It determines that communication is realized in position, sends a rectangular wave broad pulse of communication positive or negative pole in the signal sending point of setting to produce Raw mutation current, the mutation current cause a voltage drop to be superimposed on grid voltage waveform on the short-circuit impedance of distribution transformer On, to complete a signal modulation process, the signal receiving point demodulated signal that receiving end is set in grid cyclic wave voltage;It is described One positive rectangular wave broad pulse refers to that the high level part of pulse returns 0 from 0 to height.Because only sending single rectangular wave Broad pulse is to electric network influencing very little, and structure simple signal recall rate is high.The microcontroller STC15F2K60S of system, is adopted With external crystal-controlled oscillation, frequency 35MHz, signal procedure is write with assembler language, to reduce communication instruction holding time.Or using other Model High Speed Microcontroller.
The setting of signal transmitting and receiving position: it is crossed at 0 in the voltage of grid cyclic wave positive half cycle and 0 voltage comparator was set, in electricity A setting cycle voltage location setting signal voltage comparator between voltage 21V -40V of net week wave positive half cycle.In this way, The output of signal voltage comparator realizes overturning in two positions of all wave voltages of setting of a cycle positive half cycle.Cycle just The position of the setting week wave voltage of half cycle ascent stage is as the first signal location, all wave voltages of setting signal transmitting-receiving point Position is known as the first signal set point, cycle positive half cycle descending branch the setting week wave voltage position as second signal The cycle voltage location of position, setting signal transmitting-receiving point is known as second signal set point.Microcontroller STC15F2K60S can be with It is that rising edge triggers or failing edge triggers that external interrupt, which is arranged, has served as 0 voltage comparator and signal voltage comparator in power grid week The ascent stage of wave positive half cycle or descending branch, which generate after overturning triggering is interrupted, changes down trigger mode, or and by different interruptions Source generates interruption.
The condition that signal transmitting and receiving has: 0 voltage comparator of mistake and signal voltage comparator are all made of ns grades of height Fast voltage comparator.The time mistake that overturning and triggering are interrupted can reduce using High Speed Microcontroller and high speed voltage comparator Difference, and have the resolution ratio of sufficiently high detection overturning triggering break period, cooperate the position of signal to wipe the skill with synchrotimer Art means improve the recall rate that grid cyclic wave carries information.It needs to transmit by ns grades of high-speed power control switch basis signal Distance it is tests determined by transmitted positive 35V to a setting rectangular wave broad pulse voltage-drop loading between 60V in power grid Signal sending point on cycle, the rectangular wave broad pulse voltage are higher than the voltage for the grid cyclic wave position being loaded.Basis signal The width of the tests determined rectangular wave broad pulse voltage of the distance that need to be transmitted is 0.3ms~0.5ms, can provide signal code 1A- 20A.It is displaced all wave voltages in the time of the signal location, so that the high speed voltage comparator of receiving end be made to connect in signal Sink is not overturn, is taken " 0 " to send as the position (BIT) in signal, is otherwise taken " 1 " to send for the position (BIT) in signal.Therefore only When the position value in signal overturn signal voltage comparator should in signal receiving point, due to interference be not flipped just have by Interference effect.
Signal receiving end setting: signal receiving end is switched by the reception isolating transformer that no-load voltage ratio is 1:1, High-speed Control and letter Number voltage comparator is constituted, and the received isolating transformer of grid cyclic wave voltage of receiving end is connected to High-speed Control switch input terminal Mouthful.High-speed Control switch only open by the low-voltage window region around signal transmitting and receiving point under microcontroller control.In the first letter After all week wave voltage positive half cycle ascent stage wave voltages cross 0 interruption, connection High-speed Control is opened after the 0.1ms that be delayed for number transmitting-receiving point It closes, the shutdown High-speed Control switch after signal voltage comparator is delayed 0.3ms after the first signal transmitting and receiving point overturns and interrupts;? Second signal transmitting-receiving point is when signal voltage comparator is after week cycle positive half cycle ascent stage, wave voltage crossed 0 interruption, through the T that is delayedicAfterwards Connect High-speed Control switch Tic=Ti2- 0.1ms, 0.1ms is turned off before cycle positive half cycle descending branch week, wave voltage crossed 0 interruption High-speed Control switch, in this way, the low-voltage window region around the first signal transmitting and receiving point and second signal transmitting-receiving point is formd, when When all wave voltages of input fall in low-voltage window region, High-speed Control is switched in an ON state, and signal voltage comparator is direct Position is received in the signal of all wave voltages and receives signal and measurement cycle time parameter, determines whether received signal is setting Signal receiving point error range in, other than low-voltage window region High-speed Control switch it is in an off state.Therefore, cycle electricity Pressure is through High-speed Control switch control, and only in two low-voltage window regions of cycle positive half cycle, directly filtering is followed by signal after conditioning Voltage comparator input terminal filters out High-frequency Interference by fundamental frequency signal re-demodulation signal of communication, cycle high voltage has been isolated, Reduce the error as caused by bleeder circuit.
The erasing and repeating transmission of position value in signal: during transmitting terminal sends signal, when high-speed power control switch is opened Afterwards, signal transmitted by transmitting terminal simultaneously receiving end signal voltage comparator receive, if received position value information with The position value information of transmission is different, then then sends the erasing signal of this.Each data bit is erasable in each frame information Retransmit, using control bit receive and dispatch erasing signal, if wipe twice in succession it is unsuccessful, that is, send erasing frame signal, to mention High signal recall rate.Only when the quantity for being wiped free of position is more than setting value, just wipe and retransmission of information frame.
Information frame generates: system is the communication of two machines or principal and subordinate's multi-computer communication, is allocated in advance when for principal and subordinate's multi-computer communication Synchronization time is used in the communication of each machine, and setting section synchronization time can communicate one or many, communicates multiple information frames every time, synchronization Period timing terminates, and synchrotimer resets and restarts timing.
Institute's rheme is binary digit.Each information frame is made of start bit, data bit, stop bits.Start bit and end The every bit occupancy a cycle in position, data bit totally 8, two periods of every bit occupancy.Position value is with signal voltage comparator in signal Receiving point does not overturn to send position signal " 0 ", overturns to send position signal " 1 ".Microcontroller records effectively during transmitting-receiving Data bits and the occupied digit of erase process show that data bit passes when wherein valid data digit reaches 8 digit of setting Send end.When first signal set point of each data bit sends position signal " 1 " or " 0 ", position signal " 1 " that second round sends or " 0 " is with the period 1 on the contrary, its two kinds are combined " 1 ", " 0 " and " 0 ", " 1 " as position signal two different values.Second round Second signal set point is confirmation or the data that the first signal set point of erasing is sent, and sending " 1 " is confirmation, and sending " 0 " is to wipe It removes.It is to start to send that signal voltage comparator, which sends " 0 " in the first signal set point, in start bit, and stop bits is set in the first signal Fixed point is terminated with sending " 1 ", and the second signal set point of start bit and stop bits does not have to.
The compensation of signal transmitting and receiving location error: China's sinusoidal ac mains frequency be 50Hz, voltage effective value 220V, Its instantaneous voltage u is calculated by following formula:
U=Umsin100πt;………………………·…………·1
In formula: UmFor China's network voltage peak value
As shown in Figure 1, system is crossed at 0 using the voltage of cycle positive half cycle ascent stage as start time to the first signal set point Time interval be nominal value Tm1;The voltage of cycle positive half cycle ascent stage is crossed at 0 as start time to second signal set point Time interval is nominal value Tm2.The Tm1And Tm2It is calculated by 1 formula, u is to set all wave voltages in formula.
Simultaneously measured 0 voltage comparator the cycle positive half cycle ascent stage mistake 0 overturn when time arrived for start time The real-time measurement values T of time interval of the signal voltage comparator when the first signal location is overturnc1;This spent for 0 flip-flop transition when being Between starting point to signal voltage comparator second signal position overturn when time interval real-time measurement values Tc2;Signal voltage ratio It was arrived when second signal position is overturn between time of 0 voltage comparator when the mistake 0 of cycle positive half cycle descending branch is overturn compared with device Every real-time measurement values Tc3;Cross 0 voltage comparator the cycle positive half cycle ascent stage of two adjacent cycles mistake 0 overturn when Between between be divided into cycle period real-time measurement values Tzu.
Since power grid crosses the left and right shake that 0 error showed as at 0 point, but sending and receiving end synchronized 0 and to cross 0 overturning as base Locating tab assembly cycle time parameter, crossing 0 shake influences very little to measurement cycle time parameter, therefore ignores 0 voltage comparator and cross 0 Overturning and timing error.When the cycle and its two adjacent cycles that detect are cycle period reality that is true, being detected simultaneously by When measured value Tzu in 20ms and its error range, measure the cycle to cross 0 voltage comparator in the cycle positive half cycle ascent stage The a reference value T of time interval when crossing 0 overturning for start time to signal voltage comparator when the first signal location is overturnc01 The a reference value that 0 overturning is time interval of the start time to signal voltage comparator when second signal position is overturn is crossed with this Tc02, save the obtained a reference value T of continuously measurement of a setting number in 30 to 50c01And Tc02And it calculates and is saved Tc01Average value Tp1With the T savedc02Average value Tp2, by Tp1And Tp2It is stored in corresponding storage unit.
The then error compensation value T of signal voltage comparator flip-flop transitionbIt is determined by following formula:
Tb={ (Tm2- Tm1)-(Tp2- Tp1)}÷2;………………2
By TbIt saves.TbIllustrate that the position of actual signal transmitting-receiving point is higher for timing.
Measurement described above, wherein Tc1Or Tc01It is to cross 0 voltage comparator and signal voltage comparator in cycle just half Week crossed on the basis of the flip-flop transition of 0 position and signal location, but actual measurement is after overturning triggering interruption with voltage comparator On the basis of the timing time of timer, in this way, having served as triggering after mistake 0 of 0 voltage comparator in the cycle positive half cycle ascent stage is overturn The process for interrupting and starting timer, there are time for each instructions, it need to be added in the timing time of the measurement;Meanwhile institute The timing time for stating measurement, which need to subtract the triggering after the overturning of the first signal location, to interrupt and reads the instruction of process of timer and hold The row time.The execution time for also needing an instruction being carrying out comprising microcontroller after overturning is interrupted in triggering after wherein overturning, It can postpone interruption, and microcontroller STC15F2K60S is the single-chip microcontroller of 1T, this is easy to obtain the instruction time.Second Signal location measures Tc2Or Tc02Similarly, T is measuredc3When be also similar to above.
The judgement of the cycle true and false: by Tc1With Tp1;Tc2With Tp2;Tzu makes comparisons respectively with 20ms, if fair at it respectively Perhaps in cycle error range, then the cycle signal detected is very, otherwise to there is more overproof, the cycle detected Signal is false.Not in communication period and in the T of communication periodc1With Tp1;Tc2With Tp2Difference is respectively set when making comparisons respectively Cycle error range, since the first signal location of communication period and second signal position are shifted, and biggish cycle is taken to miss Poor range.
Clock timer and synchrotimer is arranged in system, and wherein synchrotimer saves each cycle period and counted with 20ms The cycle period aggregate-value of calculation is as synchronization time.When above-mentioned judgement cycle signal is true, saves Tzu and take 20ms and synchronometer When device timing time be added, the value that will add up restores in synchrotimer, if the cycle signal detected be it is false, will be all Wave signal is timing time during the vacation compared with 20ms is multiplied by the product for cycle during the vacation, if in error range, 20ms is taken to be added multiplied by the product for cycle during the vacation with synchrotimer timing time, when detecting that cycle signal is again The time synchronisation time is accurately corrected when true, and otherwise using cycle signal is timing time and synchrotimer timing during the vacation Time is added.It is ± 0.1Hz when generally running, when the relative error since power system frequency deviation allowable value is 0.2Hz When more than 6ms, illustrate that power grid has occurred compared with major break down.
The synchronization of signal transmitting and receiving: communication is realized under control synchronization time.Communication transmits multiple information frames each time, often At the beginning of secondary communication use synchronization time, be it is preset or by Centralized Controller instruct arrange, according to power grid quality and letter Number structure needs the data bit occupancy in each frame information 1 to multiple setting byte numbers, and power grid quality takes well biggish set Determine byte number.The clock timer time there are two cycle period is stayed after each frame traffic, for updating Tc1、Tc2And Tc3。 Start the communication of next frame later, if detecting that cycle signal is vacation in a frame traffic, retransmits the information frame.
Realize that the cycle in communication sequentially synchronizes by the start bit of each frame information, stop bits in the sending and receiving end of the communication information It connects.Centralized Controller or data acquisition module measure respectively and store T in the call duration time gap of described two framesc1、Tc2 And Tc3, and calculate separately two real-time measurement values Tc1Average value Tk1、Tc2Average value Tk2And Tc3Average value Tk3, and respectively It is stored in two groups of storage units, i.e. Tc1、Tc2And Tc3Storage unit and Tk1、Tk2And Tk3Storage unit is taken out when from storage unit Tk1、Tk2And Tk3After reset two groups of storage units.The storage unit can store 16 real-time measurement values Tc1、Tc2And Tc3.Do not exist Communication period measures continuous 16 real-time measurement values T respectivelyc1、Tc2And Tc3If it is false for screening to cycle signal, reset The Tc1、Tc2And Tc3Respective storage unit, continue measurement and storage when screening to cycle signal is true, often deposited when being filled with Enter a Tc1、Tc2And Tc3, first remove a T being stored at firstc1、Tc2And Tc3, while being taken out by a setting in 2 to 15 Number takes out one group of T being finally stored inc1、Tc2And Tc3, when power grid quality difference, number is taken out in the smaller setting of choosing, and calculating is taken out every One group of Tc1Average value Tk1、Tc2Average value Tk2And Tc3Average value Tk3And replace the T originally savedk1、Tk2And Tk3, adopt With average value Tk1、Tk2And Tk3Reduce the influence of network voltage and frequency fluctuation.
Send the determination of signal time: communication is implemented in the single-phase phase line in a transformer platform area of power grid, And it makes an appointment by the synchrotimer time and starts call duration time.Holding with address information is first broadcasted by Centralized Controller when communication Hand signal, when Centralized Controller requires some data acquisition module to Centralized Controller feedback information, the data acquisition module Just information is sent to Centralized Controller.Centralized Controller or data acquisition module are in the communication synchronization time transmitting-receiving letter made an appointment Before breath, it is necessary to screen out continuous no less than 16 grid cyclic waves, i.e., have no less than 16 in real-time measurement storage unit A Tc1、Tc2And Tc3If continuous 16 T are not detectedc1、Tc2And Tc3It is then sequentially delayed until detecting that 16 are Only.Transmitting terminal takes out T from storage unitk1、Tk2And Tk3Value add T respectivelyb, it is real to obtain the first signal with error compensation Border transmitting-receiving point Td1With the practical sending point T of second signald2:
Td1=Tk1- Tb;…………………………………………3
Td2=Tk2+Tb;…………………………………………4
The practical receiving point T of second signal with error compensationd3:
Td3=Tk3- Tb;…………………………………………5
Save Td1、Td2And Td3In respective storage unit.Send T after each frame informationk1、Tk2And Tk3All it is updated.
When sending signal, microcontroller uses T respectivelyd1And Td2As switching signal timer timing midpoint and according to Used rectangular wave broad pulse voltage levels take certain offset, then using the spaced time of rectangular wave broad pulse as switch The timing length of signal timing device is easy to calculate high-speed power control switch turn-on time point, that is, is used for Td1Point sends rectangle The setting sending time T of wave broad pulsef1And Td2The setting sending time T of the rectangular wave broad pulse of pointf2:
Tf1=Td1(Tm/ 2)-Tan;……………………………6
Tf2=Td2(Tm/ 2)-Tan;……………………………7
T in formulamFor signal rectangular wave broad pulse width, TanFor the offset.
In the cycle positive half cycle ascent stage, since rectangular wave broad pulse loads on the initial stage of cycle positive half cycle, the wide arteries and veins of rectangular wave Rush that the voltage more therefore transmitted rectangular wave broad pulses high relative to all wave voltages are more powerful, the signal of generation receives Point displacement is more, sets turnover voltage in the other time segment signal voltage comparator of loading procedure, has been moved off signal reception The voltage location of point;Cycle positive half cycle descending branch is then the signal generated in the latter stage for loading on cycle process in rectangular wave broad pulse Receiving point displacement is more, and it is uneven to generate the displacement, in this way, surveying according to the rectangular wave broad pulse voltage actually used through test It measures receiving point and shifts the midpoint for determining the switching signal timer time of transmitting terminal and Td1Or Td2Between offset Tan, Receive signal more reliable.
Signal transmission process: the transmission isolating transformer that no-load voltage ratio of the grid cyclic wave voltage through transmitting terminal is 1:1 is connected to high speed Power control switch output port is crossed 0 voltage comparator when the cycle of cycle positive half cycle ascent stage and is turned under microcontroller control It changes the line of production and gave birth to 0 interruption, through the T that is delayedi1Or Ti2Afterwards, firing switch signal timing device and high-speed power control switch is connected, it will be single Positive pulse voltage signal through send isolating transformer be superimposed on grid cyclic wave, make fundamental frequency in Td1Or Td2Voltage exist Small displacement is generated on time shaft, and certain harmonic wave can be injected to system.
If crossing interrupt handling routine after 0 interruption, starting measurement Tc1Timer with connect switching signal timer instruction The execution time is Tin
When to Td1When sending signal:
Ti=Tf1- Tin;………………………………………8
When to Td2When sending signal:
Ti2=Tf2- Tin.………………………………………9
TiAnd Ti2Signaling point displacement of the value also according to receiving end how many adjust in real time.
Closing high-speed power control switch in the interrupt service program when interrupting is overflowed in switching signal timer timing, thus Complete a signal modulation process.
In view of the decaying of signals transmission, and demodulation is using cycle voltage over zero as time reference, in this way In Long Distant Transmit, the cycle voltage phase difference of sending and receiving end will cause setting and receives signal time position and actual signal signal Occur deviation between time location and shadow communication performance, therefore when not taking the method for eliminating deviation, communication distance is limited System is in same transformer platform area.
The demodulation of signal: signal voltage comparator of the receiving end when receiving signal is in the first signal location real-time measurement Tc1Subtract TbRear value and the T being finally stored in is taken out from memoryc1Previous Tc1Subtract TbValue afterwards make comparisons whether Within the scope of the signal errors of permission, determine that the first signal location receives position value in signal;Signal voltage comparator is second The T of signal location real-time measurementc3Subtract TbRear value and the T being finally stored in is taken out from memoryc3Previous Tc3Subtract Tb Whether value afterwards makes comparisons within the scope of the signal errors of permission, determines that second signal position receives position value in signal.
The control of signal transmitting power: when transmitting terminal switching signal timer fires and high-speed power control switch is connected Afterwards, the external interrupt mouth of microcontroller opening signal receiving end immediately detects signal voltage comparator in cycle positive half cycle first The flip-flop transition of signal location and second signal position, with Td1And Td3It compares and whether shifts and its shift amount, if measurement Signal voltage comparator flip-flop transition is closer to Td1, illustrate to send rectangular wave broad pulse energy is relatively smaller or electric network impedance phase To lower.
If signal voltage comparator flip-flop transition is closer to Td1, then microcontroller control high-speed power control switch increases Rectangular wave broad pulse voltage, if signal voltage comparator flip-flop transition is closer to Td2Then reduce Ti2Time.
(4) Detailed description of the invention:
Fig. 1 is grid cyclic wave receiving and transmitting signal position data relation schematic diagram;
Fig. 2 is a kind of circuit structure block diagram of community's Traditional Chinese medicine decocting communication system.
(5) specific embodiment:
A kind of circuit structure block diagram of community's Traditional Chinese medicine decocting communication system is as shown in Figure 2.Including Centralized Controller and more A data acquisition module and control for decocting medicinal herbs.Centralized Controller is by signal sending end A, signal receiving end B, keyboard display module 10 It is constituted with micro controller module 1, SMS R-T unit 2.Data acquisition module by signal sending end A, signal receiving end B and Micro controller module 1 is constituted.The data of each control for decocting medicinal herbs 7 of data collecting module collected are uploaded to collection through the power line communication Middle controller processing.
Signal sending end A, the signal receiving end B of power line communication described in Centralized Controller and data acquisition module and micro- Controller module 1 is identical with the hardware configuration of power module 4.
The signal sending end A of the power line communication by high-speed power control switch 5, switching signal timer 3, send every It is constituted from transformer 12.
The signal receiving end B of the power line communication is by reception isolating transformer 11, High-speed Control switch 6, excessively 0 voltage ratio It is constituted compared with device 8 and signal voltage comparator 9.It crosses 0 voltage comparator 8 and signal voltage comparator 9 is all made of ns grades of high speed electricity Press comparator MAX319.The high-speed power control switch is a kind of controllable DC-DC power source switch, passes through adjusting pulsewidth duty Signal voltage is used as than D/C voltage height after adjusting conversion.
Micro controller module 1 uses High Speed Microcontroller STC15F2K60S, this is a kind of single clock/machine cycle (1T) Single-chip microcontroller, speed ratio STC12 also fast 20% is high speed/low-power consumption/superpower jamproof 8051 single-chip microcontroller of new generation, no AD Conversion.
It sends isolating transformer 12 and reception isolating transformer 11 is all made of primary and transformation is isolated for 1:1 with secondary no-load voltage ratio Device selects the high silicon sheet iron of the big magnetic flux density of Z11 or EI96 or other to do iron core, increases iron core section and between upper and lower two iron core Add air gap gasket and using shell type structure, be saturated magnetic circuit will not, reduces the distortion for sending signal and receiving signal.
SMS R-T unit 2 includes gsm module, SIM card, single-chip microcontroller and eeprom memory, and gsm module uses core Piece TC35i, single-chip microcontroller lose power cut-off information will not using AT24C32 using 89C51, eeprom memory.89C51 passes through expansion Exhibition I2C bus is connect with Centralized Controller carries out data exchange, and TC35i is RS232 data port, and 89C51 passes through serial line interface collection It is connect at circuit and level shifting circuit chip MAX232 with TC35i.

Claims (10)

1. the data acquisition module of a kind of implementation method of community's Traditional Chinese medicine decocting communication system, the same each community in transformer platform area is adopted The data for collecting control for decocting medicinal herbs are uploaded to Centralized Controller, Centralized Controller and SMS R-T unit by power line communication Connection in the way of sending short messages notifies patient to take medicine in time by GSM network realization ending message of boiling medicine, it is characterised in that:
The power line communication of use is that the signal sending point and the accurate of signal receiving point by setting to grid cyclic wave voltage are determined Communication is realized in position, and it is prominent to generate to send a rectangular wave broad pulse of communication positive or negative pole in the signal sending point of setting Time-dependent current, the mutation current cause a voltage drop to be superimposed on grid voltage waveform on the short-circuit impedance of distribution transformer, To complete a signal modulation process, the signal receiving point demodulated signal that receiving end is set in grid cyclic wave voltage;Described one A anode rectangular wave broad pulse refers to that the high level part of pulse returns 0 from 0 to height.
2. the method according to claim 1, wherein the setting signal sending point in grid cyclic wave voltage and The modulating and demodulating signal step of setting signal receiving point includes:
It sends: crossing the overturning of 0 voltage comparator when the cycle that the cycle positive half cycle ascent stage is arranged in and generated 0 interruption, after being delayed Time after making it be delayed falls in the signal sending point of all wave voltage settings, and firing switch signal timing device simultaneously connects high-speed power Single positive pulse voltage signal is superimposed on grid cyclic wave by control switch through sending isolating transformer;
Receive: the received isolating transformer of grid cyclic wave voltage is connected to High-speed Control switch input terminal mouth, controls in microcontroller Lower High-speed Control switch only open by the low-voltage window region around signal transmitting and receiving point, forms in the first signal transmitting and receiving point and the Low-voltage window region around binary signal transmitting-receiving point.When all wave voltages of input fall in low-voltage window region, High-speed Control is opened It closes in an ON state, signal voltage comparator is directly when the signal of all wave voltages receives position and receives signal and measurement cycle Between parameter, determine received signal whether in the signal receiving point error range of setting, it is high other than low-voltage window region Fast control switch is in an off state;
The transmission isolating transformer and reception isolating transformer, primary and secondary no-load voltage ratio is 1:1, selects Z11 or EI96 The high silicon sheet iron of big magnetic flux density do iron core, and between upper and lower two iron core plus air gap gasket and use shell type structure, make magnetic circuit It will not be saturated, reduce the distortion for sending signal and receiving signal.
3. according to the method described in claim 2, it is characterized in that, the signal sending point and signal receiving point of setting are in power grid The voltage of cycle positive half cycle, which is crossed at 0, was arranged 0 voltage comparator, in a setting cycle voltage location of grid cyclic wave positive half cycle Setting signal voltage comparator, the output of the signal voltage comparator a cycle positive half cycle all wave voltages of setting two Realize overturning in a position;The cycle positive half cycle ascent stage the setting week wave voltage position as the first signal location, The cycle voltage location of setting signal transmitting-receiving point is known as the first signal set point, in the setting week of cycle positive half cycle descending branch As second signal position, the cycle voltage location of setting signal transmitting-receiving point is known as second signal setting for the position of wave voltage Point;
The signal voltage comparator is a setting cycle being arranged between voltage 21V -40V of grid cyclic wave positive half cycle Voltage location.
4. according to the method described in claim 1, it is characterized by:
Rectangular wave broad pulse voltage-drop loading is set in the positive 35V of the signal sending point on grid cyclic wave to the voltage value between 60V; The width value of rectangular wave broad pulse voltage is 0.3ms~0.5ms;Signal code value 1A -20A can be provided.
5. the method according to claim 1, wherein the signal receiving point demodulated signal in setting, includes The signal that confirmation or erasing are sent from the signal sending point of setting, during transmitting terminal sends signal, letter transmitted by transmitting terminal Number simultaneously receiving end receive, if received position value information is different from the position value information of transmission, then send the position Erasing signal, each data bit is erasable in each frame information and retransmits, if wiping twice in succession unsuccessful, that is, sends Wipe the signal of frame.
6. according to the method described in claim 5, it is characterized in that, position value with signal voltage comparator signal receiving point not Overturning overturns to send position signal " 0 " to send position signal " 1 ", the first signal set point of each data bit sends position signal " 1 " Or when " 0 ", second round send position signal " 1 " or " 0 " with the period 1 on the contrary, its two kinds are combined " 1 ", " 0 " and " 0 ", " 1 " As position signal two different values, the second signal set point of second round is to confirm or wipe the first signal set point to send Data, sending " 1 " is confirmation, and sending " 0 " is erasing, and signal voltage comparator is sent in the first signal set point in start bit " 0 " is to start to send, and stop bits is terminated in the first signal set point with sending " 1 ", and the second signal of start bit and stop bits is set Fixed point does not have to.
7. the method according to claim 1, wherein the signal sending point of setting and the accurate of signal receiving point are determined Position includes the error compensation of set signal sending point and signal receiving point, while crossing 0 voltage comparator and signal voltage ratio Ns grades of high speed voltage comparators and High Speed Microcontroller are all made of compared with device.
8. according to claim 1 and method of claim 7, which is characterized in that signal sending point and signal receiving point It is accurately positioned and its compensation method of error, to be first computing system crossed at 0 using the voltage of cycle positive half cycle ascent stage as the time O'clock to the first signal set point time interval be nominal value Tm1;The voltage of cycle positive half cycle ascent stage is crossed at 0 as start time Time interval to second signal set point is nominal value Tm2
And time of 0 voltage comparator when the mistake 0 of cycle positive half cycle ascent stage overturns was measured as start time to signal electricity Press the real-time measurement values T of time interval of the comparator when the first signal location is overturnc1;This spent for 0 flip-flop transition as start time To the real-time measurement values T of time interval of the signal voltage comparator when second signal position is overturnc2;Signal voltage comparator exists The reality of time interval of 0 voltage comparator when the mistake 0 of cycle positive half cycle descending branch is overturn was arrived in second signal position when overturning When measured value Tc3;Cross time interval of 0 voltage comparator when the mistake 0 of the cycle positive half cycle ascent stage of two adjacent cycles is overturn For cycle period real-time measurement values Tzu;
When the cycle and its two adjacent cycles that detect are true, the cycle period real-time measurement values Tzu being detected simultaneously by In 20ms and its error range, the cycle is measured to cross 0 voltage comparator when the mistake 0 of cycle positive half cycle ascent stage is overturn and be The a reference value T of time interval of the start time to signal voltage comparator when the first signal location is overturnc010 overturning is crossed with this For a reference value T of time interval of the start time to signal voltage comparator when second signal position is overturnc02, save 30 to The obtained a reference value T of continuously measurement of a setting number in 50c01And Tc02And calculate saved Tc01Average value Tp1 With the T savedc02Average value Tp2, by Tp1And Tp2It is stored in corresponding storage unit;
The then error compensation value T of signal voltage comparator flip-flop transitionbIt is determined by following formula:
Tb={ (Tm2- Tm1)-(Tp2- Tp1)}÷2;
By TbIt saves, TbIllustrate that the position of actual signal transmitting-receiving point is higher for timing;
The extremely multiple setting byte number of the data bit occupancy in each frame information 1 is needed according to power grid quality and signal structure, The clock timer time there are two cycle period is stayed after each frame traffic, for updating Tc1、Tc2And Tc3, start later The communication of next frame retransmits the information frame if detecting that cycle signal is vacation in a frame traffic;
It realizes that the cycle in communication sequentially synchronizes by the start bit of each frame information, stop bits and connects in the sending and receiving end of the communication information Continuous, Centralized Controller or data acquisition module measure respectively and store T in the call duration time gap of described two framesc1、Tc2With Tc3, and calculate separately two real-time measurement values Tc1Average value Tk1、Tc2Average value Tk2And Tc3Average value Tk3, and deposit respectively Enter two groups of storage units, i.e. Tc1、Tc2And Tc3Storage unit and Tk1、Tk2And Tk3Storage unit, when from storage unit take out Tk1、 Tk2And Tk3After reset two groups of storage units, the storage unit can store 16 real-time measurement values Tc1、Tc2And Tc3, do not communicating Period measures continuous 16 real-time measurement values T respectivelyc1、Tc2And Tc3If screen to cycle signal be it is false, described in clearing Tc1、Tc2And Tc3Respective storage unit, continue to measure when screening to cycle signal is true and store, it is every when being filled with to be stored in one A Tc1、Tc2And Tc3, first remove a T being stored at firstc1、Tc2And Tc3, while number is taken out by a setting in 2 to 15, Take out one group of T being finally stored inc1、Tc2And Tc3, when power grid quality difference, number is taken out in the smaller setting of choosing, and calculating is taken out each The T of groupc1Average value Tk1、Tc2Average value Tk2And Tc3Average value Tk3And replace the T originally savedk1、Tk2And Tk3
It sends the determination of signal time: continuous no less than 16 grid cyclic waves must be screened out before receiving and sending messages, i.e., in fact When measurement storage unit in have no less than 16 Tc1、Tc2And Tc3If continuous 16 T are not detectedc1、Tc2And Tc3 It is then sequentially delayed until detecting 16, transmitting terminal takes out T from storage unitk1、Tk2And Tk3Value add T respectivelyb, Obtain the practical transmitting-receiving point T of the first signal with error compensationd1With the practical sending point T of second signald2:
Td1=Tk1- Tb
Td2=Tk2+Tb
The practical receiving point T of second signal with error compensationd3:
Td3=Tk3- Tb
Save Td1、Td2And Td3In respective storage unit, T after each frame information is sentk1、Tk2And Tk3All it is updated;
When sending signal, microcontroller uses T respectivelyd1And Td2As switching signal timer timing midpoint and according to being used Rectangular wave broad pulse voltage levels take certain offset, then using the spaced time of rectangular wave broad pulse as switching signal determine When device timing length, be easy to calculate high-speed power control switch turn-on time point, that is, be used for Td1Point sends the wide arteries and veins of rectangular wave The setting sending time T of punchingf1And Td2The setting sending time T of the rectangular wave broad pulse of pointf2:
Tf1=Td1(Tm/ 2)-Tan
Tf2=Td2(Tm/ 2)-Tan
T in formulamFor signal rectangular wave broad pulse width, TanFor the offset;
Rectangular wave broad pulse loads on the initial stage of cycle positive half cycle, and rectangular wave broad pulse voltage is high more relative to all wave voltages More, the signal receiving point displacement of generation is more, and cycle positive half cycle descending branch is then to load on cycle process in rectangular wave broad pulse The signal receiving point displacement that generates of latter stage it is more, it is uneven to generate the displacement, shifts through test measurement receiving point and determines hair The midpoint of the switching signal timer time of sending end and Td1Or Td2Between offset Tan
Signal transmission process: grid cyclic wave voltage is connected to high-speed power control switch output port through sending isolating transformer, when The cycle of cycle positive half cycle ascent stage crosses the overturning of 0 voltage comparator and generated 0 interruption, through the T that is delayedi1Or Ti2Afterwards, firing switch is believed Number timer simultaneously connects high-speed power control switch, and single positive pulse voltage signal is superimposed on electricity through sending isolating transformer On net week wave, fundamental frequency can be made in Td1Or Td2Voltage generate small displacement on a timeline;
If crossing interrupt handling routine after 0 interruption, starting measurement Tc1Timer with connect switching signal timer instruction execution Time is Tin
When to Td1When sending signal:
Ti=Tf1- Tin;
When to Td2When sending signal:
Ti2=Tf2- Tin;
TiAnd Ti2Signaling point displacement of the value also according to receiving end how many adjust in real time;
Closing high-speed power control switch in the interrupt service program when interrupting is overflowed in switching signal timer timing, to complete Signal modulation process;
Above-mentioned Ti2Value also according to receiving end signaling point displacement it is how many adjust in real time, method are as follows: if the signal electricity of measurement Press comparator flip-flop transition closer to Td1, then microcontroller control high-speed power control switch increases rectangular wave broad pulse voltage, If signal voltage comparator flip-flop transition is closer to Td2Then reduce Ti2Time.
9. a kind of device of community's Traditional Chinese medicine decocting communication system, it is characterised in that including,
Signal sending end, signal receiving end and the microcontroller of power line communication described in Centralized Controller and data acquisition module The hardware configuration of module is identical;
The signal sending end of the power line communication is by high-speed power control switch, switching signal timer, transmission isolation transformation Device is constituted;
The signal receiving end of the power line communication is switched by reception isolating transformer, High-speed Control, crosses 0 voltage comparator and letter Number voltage comparator is constituted.
10. device according to claim 9, it is characterised in that the signal receiving end of the power line communication is by power grid The received isolating transformer of all wave voltages, High-speed Control switch control, it is direct in two low-voltage window regions of cycle positive half cycle Filtering is followed by signal voltage comparator input terminal after conditioning, and High-speed Control switchs the only low-voltage window around signal transmitting and receiving point Mouth region is opened, and grid cyclic wave high voltage has been isolated, and signal voltage comparator directly receives position in the signal of all wave voltages and receives Signal and measurement cycle time parameter;
The signal sending end of the power line communication, network voltage is sent isolating transformer, and to be connected to high-speed power control switch defeated Outlet crosses the overturning of 0 voltage comparator in cycle positive half cycle ascent stage cycle and generated 0 interruption, through the T that is delayedi1Or Ti2Afterwards, it starts Switching signal timer simultaneously connects high-speed power control switch, by single rectangular wave broad pulse voltage superposition in grid cyclic wave On.
CN201910399783.8A 2018-06-10 2019-05-14 A kind of community's Traditional Chinese medicine decocting communication system Withdrawn CN110011698A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810591332X 2018-06-10
CN201810591332 2018-06-10

Publications (1)

Publication Number Publication Date
CN110011698A true CN110011698A (en) 2019-07-12

Family

ID=64463696

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201810822285.5A Withdrawn CN108964712A (en) 2018-06-10 2018-07-24 A kind of community's Traditional Chinese medicine decocting communication system
CN201910399783.8A Withdrawn CN110011698A (en) 2018-06-10 2019-05-14 A kind of community's Traditional Chinese medicine decocting communication system

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201810822285.5A Withdrawn CN108964712A (en) 2018-06-10 2018-07-24 A kind of community's Traditional Chinese medicine decocting communication system

Country Status (1)

Country Link
CN (2) CN108964712A (en)

Also Published As

Publication number Publication date
CN108964712A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
CN110011886A (en) A kind of household electric appliances control system
CN108919718A (en) A kind of analog quantity remote collection alarm system
CN110011698A (en) A kind of community's Traditional Chinese medicine decocting communication system
CN110011699A (en) A kind of intelligent Chinese Traditional Medicine is boiled medicine control system
CN109920235A (en) A kind of residential area Water-flowmeter auto-recording
CN108831136A (en) A kind of Automatic meter reading system of tap water supply pipe network
CN108958121A (en) A kind of agricultural greenhouse atmosphere control system
CN108983663A (en) A kind of intelligent domestic tele-control system
CN108897297A (en) A kind of household electric appliances tele-control system
CN108897296A (en) A kind of wisdom agricultural greenhouse atmosphere control system
CN108877192A (en) A kind of residential block Auto-recording System of Electrical Power Calculation
CN109921831A (en) A kind of factory and enterprise electric energy detection management system
CN108990650A (en) A kind of agricultural greenhouse artificial climate Experimental Control System
CN108897295A (en) A kind of tele-control system of household electric appliances
CN110007136A (en) A kind of industrial enterprise's electric energy metered system
CN109041335A (en) A kind of restaurant LED point light source control system of lamp decoration
CN109885015A (en) A kind of eating and drinking establishment's electrical appliance tele-control system
CN110021159A (en) A kind of Factory Electric Power data acquisition management system
CN110007705A (en) A kind of green house of vegetables atmosphere control system
CN109920234A (en) A kind of flow data collector system
CN108983664A (en) A kind of green house of vegetables temperature and humidity intelligent control system
CN108964709A (en) A kind of residential block tap water meter Automatic meter reading system
CN108964710A (en) A kind of supermarket's commodity customer queries system
CN108897235A (en) A kind of restaurant electrical appliance intelligence control system
CN108958120A (en) A kind of hotel intelligence control 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
WW01 Invention patent application withdrawn after publication

Application publication date: 20190712

WW01 Invention patent application withdrawn after publication