CN108646643A - A kind of restaurant electric appliance remote control system - Google Patents
A kind of restaurant electric appliance remote control system Download PDFInfo
- Publication number
- CN108646643A CN108646643A CN201810821211.XA CN201810821211A CN108646643A CN 108646643 A CN108646643 A CN 108646643A CN 201810821211 A CN201810821211 A CN 201810821211A CN 108646643 A CN108646643 A CN 108646643A
- 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
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/25—Pc structure of the system
- G05B2219/25257—Microcontroller
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Selective Calling Equipment (AREA)
Abstract
The present invention relates to a kind of restaurant electric appliance remote control system, each restaurant is made of the electronic switch module of master controller and each electrical appliance of control, total station control, and master controller uses power line communication with electronic switch module.In winter or mobile phone can be used to open water heater or air-conditioning in advance convenient for rapid wash vegetables and reception customer for summer shopkeeper.Each electronic switch module controls an electrical appliance, and accesses 4G mobile radio communication networks through wireless router by master controller.
Description
(1) technical field:
The present invention relates to a kind of restaurant electric appliance remote control systems, including master controller and each electronic switch module, use
Power line communication method crosses 0 area's specified point to grid cyclic wave voltage and sends wide pulse signal generation mutation current, as signal
Position value, master controller controls each electronic switch module and its electrical appliance by power line communication, and is connect by wireless router
Enter 4G mobile radio communication networks, from regardless of all mobile phone, computer and handheld mobile device can be used to realize wirelessly in where
Networking.
(2) background technology:
The communication of current power line refers mainly to power line carrier communication and bi-directional Glenn shunt.Power line carrier communication PLC profits
Signal is transmitted by carrier system with existing power line.But distribution transformer has iris 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 coordinate other means of communication.
Bi-directional Glenn shunt TWACS 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 equipments exist only in substation and user terminal.Wherein by power transformation
The stand channel transmitted to user terminal is output channel, carries information using the modulation of voltage waveform, is passed from user terminal to substation
Defeated channel is input channel, and information is transmitted using the variation of current waveform.Its receiving and transmitting signal passes through coupling transformer and electricity
Power net is crosslinked.
The detection of TW A CS signals 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 conversions 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) invention content:
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 terminal demodulate useful letter by acquisition, A/D conversions and the series of computation to multigroup 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 restaurant electric appliance remote control system, each restaurant is by master controller and controls each electrical appliance
Electronic switch module, total station control composition, master controller reduce wiring installation with electronic switch module using power line communication.
In winter or mobile phone can be used to open water heater or air-conditioning in advance convenient for rapid wash vegetables and receive customer for summer shopkeeper, and mobile phone is equipped with
APP softwares.Each electronic switch module controls an electrical appliance, and accesses 4G mobile wireless through wireless router by master controller
Communication network, microcontroller is communicated by serial ports with 4G wireless routers in master controller, and is accessed by 4G wireless routers
Mobile radio communication network.Using 4G fast wireless networks as data carrying network, it can be achieved that total station control and each master control
No matter the wireless connection of safety high speed between device processed all can be used mobile phone, computer and handheld mobile device realization in where
Wireless Networking.
The power line communication is the essence by the signal sending point and signal receiving point of the setting to grid cyclic wave voltage
It determines position, sends a rectangle broad pulse of communication positive or negative pole in the signal sending point of setting to generate mutation electricity
Stream, which causes a voltage drop to be superimposed on grid voltage waveform on the short-circuit impedance of distribution transformer, to complete
Signal modulation process, signal receiving point demodulated signal of the receiving terminal in the setting of grid cyclic wave voltage;One anode
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 to power grid shadow
Very little is rung, and signal recall rate simple in structure is high.The microcontroller STC15F2K60S of system, using external crystal-controlled oscillation, frequency
35MHz, signal procedure are write with assembler language, to reduce communication instruction holding time.Or use other model high speed microcontrollers
Device.
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 the 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 be reduced using High Speed Microcontroller and high speed voltage comparator
Difference, and have the resolution ratio of sufficiently high detection overturning triggering break period, coordinate 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 one between 60V setting rectangular wave broad pulse voltage-drop loading 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 for the tests determined rectangular wave broad pulse voltage of distance that need to be transmitted is 0.3ms~0.5ms, can provide signal code 1A-
20A.All wave voltages are made to be displaced in the time of the signal location, to make the high speed voltage comparator of receiving terminal be connect in signal
Sink is not overturn, is taken " 1 " to send as the position (BIT) in signal, is otherwise taken " 0 " to send for the position (BIT) in signal.Therefore only
When the position value in signal makes signal voltage comparator that should be overturn in signal receiving point, due to interference do not occur overturning just have by
Interference effect.
Signal receiving end is arranged:Signal receiving end is made of High-speed Control switch and signal voltage comparator, in microcontroller
Low-voltage window region of the lower High-speed Control switch of device control only around signal transmitting and receiving point is opened.In the first signal transmitting and receiving point when week
Week wave voltage positive half cycle ascent stage wave voltage cross 0 interruption after, after the 0.1ms that is delayed connect High-speed Control switch, work as signal voltage
Comparator turns off High-speed Control switch after the overturning of the first signal transmitting and receiving point is interrupted after the 0.3ms that is delayed;It is received and dispatched in second signal
Point is when signal voltage comparator is after week cycle positive half cycle ascent stage, wave voltage crossed 0 interruption, through delay TicAfter connect High-speed Control
Switch Tic=Ti2- 0.1ms, 0.1ms turns off High-speed Control and opens before cycle positive half cycle descending branch week, wave voltage crossed 0 interruption
It closes, 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 the cycle of input
Voltage is fallen in low-voltage window region, and High-speed Control switchs in an ON state, and signal voltage comparator is directly in all wave voltages
Signal receive position receive signal and measure cycle time parameter, determine received signal whether setting signal receive
Within the scope of point tolerance, High-speed Control switch is off state other than low-voltage window region.Therefore, grid cyclic wave voltage is through height
Speed control switch control is only followed by the directly conditioned filtering of two low-voltage window regions of cycle positive half cycle to signal voltage ratio
Compared with device input terminal, High-frequency Interference is filtered out by fundamental frequency signal re-demodulation signal of communication, grid cyclic wave high voltage has been isolated, drop
It is low by the error caused by bleeder circuit.
The erasing and repeating transmission of position value in signal:During transmitting terminal sends signal, opened when high-speed power controls switch
Afterwards, the signal transmitted by transmitting terminal simultaneously receiving end signal voltage comparator receive, if receive 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 signal
It retransmits, erasing signal is received and dispatched using control bit, if erasing is unsuccessful, that is, the erasing signal value information that sends and receives not phase
Together, continue to send this erasing signal until sending successfully, then retransmit the position signal being wiped free of, other position signals that do not wipe are still
So effectively, to improve signal recall rate.Only when be wiped free of position quantity be more than setting value when, just wipe and retransmission of information
Frame.
Information frame generates:Institute's rheme is binary digit.Each information frame is by start bit, address or data bit, stop bits
Composition.Per bit occupancy a cycle, address or data bit totally 8.Position value with signal voltage comparator signal receiving point not
Overturning overturns to send position signal " 1 " to send position signal " 0 ".Microcontroller transmitting-receiving during record effective address or
Data bits and the occupied digit of erase process, wherein effective address or data bits show ground when reaching 8 digit of setting
Location or data bit transmission terminate.Wherein the first signal set point of address or data bit is transmitting-receiving address or data, second signal
Set point is the information for confirming or wiping the first signal set point and send, and it is to confirm to send " 0 ", and transmission " 1 " is erasing.Start bit
It is to start to send that middle signal voltage comparator sends " 1 " in the first signal set point, and it is hair to send " 1 " in second signal set point
Address frame is sent, it is data frame to send " 0 ".Stop bits is in the first signal set point to send " 0 " end, and second signal set point is not
With.
The compensation of signal transmitting and receiving site 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 all wave voltages of setting 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 time interval of the starting point to signal voltage comparator when second signal position is overturn real-time measurement values Tc2;Signal voltage ratio
It was arrived between time of 0 voltage comparator when the mistake 0 of cycle positive half cycle descending branch is overturn compared with device when second signal position is overturn
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, cross 0 shake influences very little to measuring cycle time parameter, therefore ignores 0 voltage comparator and cross 0
Overturning and timing error.When the cycle detected and its adjacent two cycles are true, the cycle period being detected simultaneously by is real
When measured value Tzu in 20ms and its error range, measure the cycle with 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, preserve the continuous T of a setting number in 30 to 50c01And Tc02And calculate preserved Tc01Average value Tp1With protected
The T depositedc02Average 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 preserves.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 practical measure is after being interrupted with voltage comparator overturning triggering
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 triggering after the overturning of the first signal location need to be subtracted and interrupt and read the instruction of process of timer and hold by stating the timing time of measurement
The row time.The execution time for an instruction for also needing to be carrying out comprising microcontroller after overturning is interrupted in triggering after wherein overturning,
It can postpone interruption, and microcontroller STC15F2K60S is the 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 respectively fair at it
Perhaps in cycle error range, then the cycle signal detected is true, otherwise there is more overproof a, 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 larger cycle is taken to miss
Poor range.
Clock timer and synchrotimer is arranged in system, and wherein synchrotimer preserves 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, preserves Tzu and take 20ms and synchronometer
When device timing time be added, the value that will add up restores in synchrotimer, will be all if the cycle signal detected is false
Compared with wave signal is multiplied by with 20ms as the product of cycle during the vacation for timing time during the vacation, if in error range,
It takes 20ms to be multiplied by and is added with synchrotimer timing time for the product of cycle during the vacation, when detecting that cycle signal is again
The time synchronisation time is accurately corrected when true, and it is timing time and synchrotimer timing during the vacation otherwise to use cycle signal
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 in the case where controlling 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 master controller instruct arrange, according to power grid quality and signal
Structure needs the data bit occupancy in each frame information 1 to multiple setting byte numbers, and power grid quality takes well larger setting
Byte number.The clock timer time there are two cycle period is stayed after each frame traffic, for updating Tc1、Tc2And Tc3.From
Next cycle starts the communication of next frame, if detecting that cycle signal is false 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.Master controller or electronic switch module measure and store T respectively 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.It is not communicating
Period measures continuous 16 real-time measurement values T respectivelyc1、Tc2And Tc3If it is false to screen to cycle signal, described in clearing
Tc1、Tc2And Tc3Respective storage unit, continue to measure when it to cycle signal is true to screen and storage, one be often stored in when being filled with
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 the T of last one group of depositc1、Tc2And Tc3, the smaller setting taking-up number of choosing when power grid quality difference, calculating is taken out each
The T of groupc1Average value Tk1、Tc2Average value Tk2And Tc3Average value Tk3And replace the T originally preservedk1、Tk2And Tk3, use
Average value Tk1、Tk2And Tk3Reduce the influence of network voltage and frequency fluctuation.
Send the determination of signal time:Communication is implemented in 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.Shaking hands with address information is first broadcasted by master controller when communication
Signal, when master controller requires some electronic switch module to master controller feedback information, the electronic switch module is just to master
Controller sends information.Master controller or electronic switch module, must before the communication synchronization time made an appointment receives and sends messages
Continuous no less than 16 grid cyclic waves must be screened out, i.e., measure the T for having no less than 16 in storage unit in real timec1、Tc2
And Tc3If continuous 16 T are not detectedc1、Tc2And Tc3It is then sequentially delayed until detecting 16.Transmitting terminal from
T is taken out in storage unitk1、Tk2And Tk3Value respectively add Tb, 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;………………………………………3
Td2=Tk2+Tb;………………………………………4
The practical receiving point T of second signal with error compensationd3:
Td3=Tk3- Tb;………………………………………5
Preserve 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 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 that the signal of the latter stage generation of all wave processes is loaded in rectangular wave broad pulse
Receiving point displacement is more, in this way, the switching signal according to the tests determined transmitting terminal of rectangular wave broad pulse voltage actually used
The point midway and T of timer timed1Or Td2Between offset Tan, so that signal is received more reliable.
Signal transmission process:Transmitting terminal is crossed the overturning of 0 voltage comparator in cycle positive half cycle ascent stage cycle and was generated in 0
It is disconnected, through the T that is delayedi1Or Ti2Afterwards, firing switch signal timing device and connect high-speed power control switch, single rectangular wave is wide
Pulse voltage is superimposed on grid cyclic wave, makes fundamental frequency in Td1Or Td2Voltage generate small displacement on a timeline, 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 Ti2Value also adjusted in real time according to the displacement of the signaling point of receiving terminal is how many.
Switching signal timer timing overflow interrupt when in interrupt service routine closing high-speed power control switch, to
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
For signal in Long Distant Transmit, the cycle voltage phase difference of sending and receiving end can cause setting to receive signal time position and actual 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 terminal when receiving signal measures in real time in the first signal location
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 that signal location measures in real timec3Subtract 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 connect high-speed power control switch
Afterwards, the external interrupt mouth of microcontroller opening signal receiving terminal immediately, detection signal voltage comparator is 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 signal is electric
Press comparator flip-flop transition closer to Td1, illustrate to send rectangular wave broad pulse energy is relatively smaller or electric network impedance relatively
It is low.
If signal voltage comparator flip-flop transition is closer to Td1, then microcontroller control high-speed power control switch increasing
Rectangular wave broad pulse voltage, if signal voltage comparator flip-flop transition is closer to Td2Then reduce Ti2Time.
(4) it illustrates:
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 restaurant electric appliance remote control system.
(5) specific implementation mode:
A kind of circuit structure block diagram of restaurant electric appliance remote control system is as shown in Figure 2.By master controller and multiple electricity
Sub switch module composition.Master controller is by signal sending end A, signal receiving end B, 4G wireless router 2, keyboard display module 10
It is constituted with micro controller module 1.Electronic switch module is by signal sending end A, signal receiving end B, electrical appliance interface 7 and microcontroller
Device module 1 is constituted, and electronic switch module receives master controller instruction control electrical appliance action,.Master controller and electronic switch mould
It is the computer management system positioned at top layer by 4G wireless routers, micro- that block, which uses the power line communication, total station control,
Controller module and computer are constituted.
Signal sending end A, signal receiving end B and the micro-control of power line communication described in master controller and electronic switch module
Device module 1 processed is identical with the hardware configuration of power module 4.
The signal sending end A of the power line communication is made of high-speed power control switch 5, switching signal timer 3, electricity
Net voltage is connected to high-speed power control output switching terminal.
The signal receiving end B of the power line communication is by High-speed Control switch 6, excessively 0 voltage comparator 8 and signal voltage ratio
It is constituted compared with device 9.It crosses 0 voltage comparator 8 and signal voltage comparator 9 is all made of ns grades of high speed voltage comparator MAX319.Institute
It is a kind of controllable DC-DC power source switch, D/C voltage after being converted by adjusting pulsewidth duty cycle adjustment to state high-speed power control switch
Height is used as signal voltage.
Micro controller module 1 uses High Speed Microcontroller STC15F2K60S, this is a kind of single clock/machine cycle (1T)
Microcontroller, speed ratio STC12 also fast 20% is high speed/low-power consumption/superpower jamproof 8051 microcontroller of new generation, no AD
Conversion.
The single-phase firewire and zero curve of power grid connect the input port of signal sending end output port and receiving terminal, wherein power grid
Zero line grounding end.The window region network voltage control is in 55V voltage ranges, machine shell protective grounding, and has high voltage
The security warning in area, it is 1 that trouble hunting, which should install no-load voltage ratio additional,:1 isolating transformer is avoided because of failure accidental shock.
2 model F3836 of 4G wireless routers, can also select other model routers.F3836 is industrial built in one kind
Grade 32 bit processors and technical grade wireless module provide 1 RS232 (or RS485/ using embedded real-time operating system
RS422) 4 ethernet lans, 1 Ethernet WAN and 1 WIFI interface, can connect WIFI equipment, ethernet device simultaneously
Data transparent transmission and routing function are realized with serial equipment.
Claims (10)
1. a kind of implementation method of restaurant electric appliance remote control system, master controller control each electronic switch by power line communication
Module and its electrical appliance, and mobile radio communication network is accessed by wireless router, realize Wireless Networking, it is characterised in that:
The power line communication is determined by the signal sending point of the setting to grid cyclic wave voltage and the accurate of signal receiving point
It is somebody's turn to do in the rectangle broad pulse that the signal sending point of setting sends communication positive or negative pole to generate mutation current position
Electric current causes a voltage drop to be superimposed on grid voltage waveform on the short-circuit impedance of distribution transformer, to complete primary letter
Number modulated process, signal receiving point demodulated signal of the receiving terminal in the setting of grid cyclic wave voltage;One anode broad pulse
Refer to that the high level part of pulse returns 0 from 0 to height.
2. according to the method described in claim 1, it is characterized in that, the signal sending point of the setting in grid cyclic wave voltage
Modulating and demodulating signal step with the signal receiving point of setting includes:
It sends:When be arranged the cycle in the cycle positive half cycle ascent stage cross 0 voltage comparator overturning generated 0 interruption, after delay
Its sending time is fallen in the signal sending point of the setting of all wave voltages, and firing switch signal timing device simultaneously connects high-speed power control
Switch, by single positive pulse voltage Signal averaging on grid cyclic wave;
It receives:Low-voltage window region of the High-speed Control switch only around signal transmitting and receiving point is opened under microcontroller control, shape
At the low-voltage window region around the first signal transmitting and receiving point and second signal transmitting-receiving point.When all wave voltages of input are fallen low
When voltage window mouth region, High-speed Control switchs in an ON state, and signal voltage comparator is directly received in the signal of all wave voltages
Position receive signal and measure cycle time parameter, determine received signal whether setting signal receiving point error range
Interior, High-speed Control switch is off state other than low-voltage window region.
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, and one in grid cyclic wave positive half cycle sets cycle voltage location
Setting signal voltage comparator, the output of signal voltage comparator is in two positions for setting all wave voltages of a cycle positive half cycle
Set realization overturning;The cycle positive half cycle ascent stage the setting week wave voltage position as the first signal location, setting
The cycle voltage location of signal transmitting and receiving point is known as the first signal set point, in the setting cycle electricity of cycle positive half cycle descending branch
The position of pressure is known as second signal set point as second signal position, the cycle voltage location of setting signal transmitting-receiving point;
The signal voltage comparator is provided in a setting cycle 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 in that, the distance that basis signal need to transmit when sending signal is through experiment
It determines:
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 rectangular wave broad pulse voltage is higher by value than the voltage for the grid cyclic wave position being loaded;The width value of rectangular wave broad pulse voltage
For 0.3ms~0.5ms;Signal code value 1A -20A can be provided.
5. according to the method described in claim 1, it is characterized in that, the signal receiving point demodulated signal in setting, including
Confirm or wipe the signal sent from the signal sending point of setting, during transmitting terminal sends signal, the letter transmitted by transmitting terminal
Number simultaneously receiving end receive, if receive position value information it 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.
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 ", wherein the first signal set point of address or data bit is to receive to send position signal " 1 "
Address or data are sent out, second signal set point is the information for confirming or wiping the first signal set point and send, and it is true to send " 0 "
Recognize, it is erasing to send " 1 ", and signal voltage comparator in the first signal set point sends " 1 " to start to send in start bit, the
It is to send address frame that binary signal set point, which sends " 1 ", and it is data frame to send " 0 ", and stop bits is in the first signal set point to send
" 0 " terminates, and second signal set point does not have to.
7. according to the method described in claim 1, it is characterized in that, 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
It is all made of ns grades of high speed voltage comparators and High Speed Microcontroller 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 is that first computing system is crossed at 0 using the voltage of cycle positive half cycle ascent stage as start time
Time interval to the first signal set point is nominal value Tm1;The voltage of cycle positive half cycle ascent stage is crossed at 0 to be arrived for start time
The time interval of 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 detected and its adjacent two cycles are true, the cycle period real-time measurement values Tzu being detected simultaneously by
In 20ms and its error range, measure the cycle to cross 0 voltage comparator is when the mistake 0 of cycle positive half cycle ascent stage is overturn
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, preserve 30 to
The continuous T of a setting number in 50c01And Tc02And calculate preserved Tc01Average value Tp1With the T preservedc02It is flat
Mean 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 preserves, 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, from next week
Wave starts the communication of next frame, if detecting that cycle signal is false in a frame traffic, retransmits the information frame;
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, master controller or electronic switch module measure and store T respectively in the call duration time gap of described two framesc1、Tc2And Tc3,
And calculate separately two real-time measurement values Tc1Average value Tk1、Tc2Average value Tk2And Tc3Average value Tk3, and be stored in respectively
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 it is false to screen to cycle signal, described in clearing
Tc1、Tc2And Tc3Respective storage unit, continue to measure when it to cycle signal is true to screen and storage, one be often stored in when being filled with
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 the T of last one group of depositc1、Tc2And Tc3, the smaller setting taking-up number of choosing when power grid quality difference, calculating is taken out each
The T of groupc1Average value Tk1、Tc2Average value Tk2And Tc3Average value Tk3And replace the T originally preservedk1、Tk2And Tk3;
Send 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 measure and have no less than 16 T in storage unitc1、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 respectively add Tb,
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;
Preserve 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 determined using the spaced time of rectangular wave broad pulse as switching signal
When device timing length, be easy to calculate high-speed power control switch 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 all wave processes in rectangular wave broad pulse
The signal receiving point displacement that generates of latter stage it is more, the point midway of the switching signal timer time of tests determined transmitting terminal
With Td1Or Td2Between offset Tan;
Signal transmission process:Grid cyclic wave voltage is connected to high-speed power control output switching terminal mouth, when the cycle positive half cycle ascent stage
Cycle cross 0 voltage comparator overturning generated 0 interruption, through be delayed Ti1Or Ti2Afterwards, firing switch signal timing device and height is connected
Fast power control switch makes fundamental frequency in T by single positive pulse voltage Signal averaging on grid cyclic waved1Or Td2Electricity
Pressure generates 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 Ti2Value also adjusted in real time according to the displacement of the signaling point of receiving terminal is how many;
Switching signal timer timing overflow interrupt when in interrupt service routine closing high-speed power control switch, to complete
Signal modulation process;
Above-mentioned Ti2Value also adjusted in real time according to the displacement of the signaling point of receiving terminal is how many, methods are:If signal voltage compares
Device flip-flop transition is closer to Td1, then the control of microcontroller control high-speed power, which switchs, increases rectangular wave broad pulse voltage, if letter
Number voltage comparator flip-flop transition is closer to Td2Then reduce Ti2Time.
9. a kind of device of restaurant electric appliance remote control system, it is characterised in that including,
The signal sending end, signal receiving end and microcontroller mould of power line communication described in master controller and electronic switch module
The hardware configuration of block is identical,
The signal sending end of the power line communication is made of high-speed power control switch, switching signal timer,
The signal receiving end of the power line communication is switched by High-speed Control, crosses 0 voltage comparator and signal voltage comparator structure
At.
10. device according to claim 9, it is characterised in that the signal receiving end of the power line communication is by power grid
All wave voltages are switched through High-speed Control and are controlled, and are only followed by the directly conditioned filtering of two low-voltage window regions of cycle positive half cycle
To signal voltage comparator input terminal, low-voltage window region of the High-speed Control switch only around signal transmitting and receiving point is opened, isolation
Grid cyclic wave high voltage, signal voltage comparator directly receive position in the signals of all wave voltages and receive signal and measure cycle
Time parameter;
The signal sending end of the power line communication, network voltage are connected to high-speed power control output switching terminal, in cycle just half
All ascent stage cycles cross the overturning of 0 voltage comparator and generated 0 interruption, through the T that is delayedi1Or Ti2Afterwards, firing switch signal timing device is simultaneously
High-speed power control switch is connected, by single rectangular wave broad pulse voltage superposition on grid cyclic wave.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2018105914144 | 2018-06-10 | ||
CN201810591414 | 2018-06-10 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108646643A true CN108646643A (en) | 2018-10-12 |
Family
ID=63760305
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810821211.XA Withdrawn CN108646643A (en) | 2018-06-10 | 2018-07-24 | A kind of restaurant electric appliance remote control system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108646643A (en) |
-
2018
- 2018-07-24 CN CN201810821211.XA patent/CN108646643A/en not_active Withdrawn
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108919718A (en) | A kind of analog quantity remote collection alarm system | |
CN108897297A (en) | A kind of household electric appliances tele-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 | |
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 | |
CN108983663A (en) | A kind of intelligent domestic tele-control system | |
CN108958121A (en) | A kind of agricultural greenhouse atmosphere control system | |
CN108897296A (en) | A kind of wisdom agricultural greenhouse atmosphere control system | |
CN108990650A (en) | A kind of agricultural greenhouse artificial climate Experimental Control System | |
CN108806229A (en) | A kind of workshop electric appliance remote control system | |
CN108646643A (en) | A kind of restaurant electric appliance remote control system | |
CN108897295A (en) | A kind of tele-control system of household electric appliances | |
CN108768462A (en) | A kind of eating house intelligence control system | |
CN108897235A (en) | A kind of restaurant electrical appliance intelligence control system | |
CN108810287A (en) | A kind of household cell phone intelligent control system | |
CN108646647A (en) | A kind of eating and drinking establishment's intelligent control system | |
CN108717799A (en) | A kind of radio communication station board system of bus station | |
CN108873999A (en) | A kind of green house of vegetables temperature and humidity control system | |
CN108964710A (en) | A kind of supermarket's commodity customer queries system | |
CN109890108A (en) | A kind of urban architecture LED clearance light decorations control system | |
CN109920234A (en) | A kind of flow data collector system | |
CN108880616A (en) | A kind of riverine two sides building control system of lamp decoration in city | |
CN108958120A (en) | A kind of hotel intelligence control system | |
CN109004955A (en) | A kind of industrial enterprise's electricity consumption data acquisition management 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: 20181012 |
|
WW01 | Invention patent application withdrawn after publication |