Summary of the invention
The present invention is intended to provide and a kind ofly satisfies and realize that the illumination control event of various complexity in a year and the sequential of task set, and adopts the annual design of luminance switch lamp control system such as " " city illuminations, increases work efficiency, and reduces management, maintenance cost.And realize different clock switch lamp every day, obtain under the situation of daylight intermediate light, to control city illumination.
In order to solve the problems of the technologies described above, the present invention is achieved by the following technical solutions:
A kind of city illumination time controlled system, include CPU, driving switch, power supply, real-time clock, processing terminal can read or write the data storage that clock controller is provided with by the CPU connection, data-interface, wireless signal receiver input data are to CPU, the data input CPU of real-time clock, driving switch is exported in the instruction of CPU, and driving switch connects relay, and the data after CPU handles are exported to display end.
A kind of control method of city illumination time controlled system, the method for its regulation and control illumination clock controller comprises the following step:
1. in clock controller, insert sunshine and date variation function calculation formula, change function initial condition coefficient at background computer input sunshine and date, background computer utilizes the time of road lamp switch every day in the function calculation 1 year, and every day of its calculating, each way switch lamp time are expressed result of calculation with the mode of curve image or numerical listing.
2. examine every day switch lamp Time Calculation value and at sunshine in the former years desired switch lamp time of statistics whether coincide, whether this calculated value meets the demands, and returns step when not meeting the demands and 1. redefines function initial value coefficient.
3. background computer calculates the function initial value that meets the demands, and the explicit function initial condition is determined this function coefficients, prints the result, and processing terminal is controlled the input of function initial condition value the clock controller of one road lighting switch lamp time manually; Or utilize data storage medium that the data input port of function initial condition value by clock controller write clock controller; Or utilize data transport network function initial condition value to be passed to clock controller by the clock data interface.
4. the wireless signal receiver of clock controller detects and has or not the signal instruction input, if the signal input is arranged, then shows this instruction time and this instruction time is inserted switch lamp time memory unit on the same day, and system is with interim control of this instruction time road lamp switch on the same day; If the no signal input, then clock controller confirms to receive function initial condition value, and its built-in function computing function is calculated the clock switch lamp time according to the initial condition value of inserting, and the time that this calculates is inserted switch lamp time memory unit.
The time and the interior real-time time of clock of 5. inserting switch lamp time memory unit compare, its comparative result control switch state, the control result exports to electromagnetism or relay system solid-state relay, control exchanges contact or solid-state electronic formula alternating-current switch, controls street lamp switch or deepening with the natural brightness variation of daylight environment, brightens.
The present invention adopts relay switch output, the switch module of the intelligent switch management of control illumination, the timer manager that the illumination control event by controlling various complexity in a year and the sequential of task are set, adopt " waiting brightness " switch lamp design control concept, in clock controller, insert sunshine and date variation function calculation formula, change the function initial condition at background computer input sunshine and date, in the clock controller of the function initial condition value of check and correction input control one tunnel lighting hours, reach the switch or the deepening that change the control street lamp with the natural brightness of daylight environment, brighten.The luminance switch lamp time controlled systems such as city illumination of the present invention's exploitation, the one, adopt the notion of " waiting bright ", in fact the switch lamp time of the illuminator in a city is a certain moment that is based upon substantially in the gradually dark or brightening process of daylight, in abstracto, this is constantly because people's perception and custom, exist rational switch lamp time, in the diminuendo of illumination at daylight in this time city, light, or in daylight strengthens, close, with being given, this city very gets close to serene sensation; The 2nd, the different time that brightness such as every day in 5 days is picked up in 1 year 300 land calculates accurately, utilize computer technology, at first on request in background computer input computational element, then computer accounting has been calculated the luminance switch time such as grade of every day in 1 year, then, you carry out being verified and investigating with experience or record once, and we are referred to as the design of switch lamp time in the city illumination 1 year here.In design, you only need to key in several numerals by the enquirement in the computer.Computer then can provide switch lamp time and the curve of the every day in 1 year automatically.In case you think satisfied, computer then can be shown to the bond number word on the display.The switch of Based Intelligent Control illuminator street lamp of the present invention, dark bright requirement, the intelligent management of realization illumination, safe and reliable, economical rationality, improve keeper's operational environment, easy to maintenance, increase work efficiency, but energy savings also, prolong lamp life, reduce management, maintenance cost.
Embodiment
Below in conjunction with accompanying drawing and embodiment the present invention is described in further detail:
Processing terminal 1 (as Hand Personal Computer) connects the data storage 11 that can read or write the clock controller data by CPU5, data-interface 3, wireless signal receiver 4 input data are handled to CPU5, driving switch 6 is exported in the instruction that CPU5 handles, and driving switch 6 connects relay 8.The data input CPU5 of real-time clock 7, the data after CPU5 handles are exported to display end 10, are used for showing, proofread, detect data.Clock controller is circumscribed with power supply 9 power supply, and is provided with internal or external battery 12 and provides standby.The control system of multichannel independent operating can be set in clock controller, each road system independent operating, control one tunnel street lighting, the street lamp control of adjacent street, different circuit is set in the clock controller with operation, and the multichannel hierarchy of control is from the different port output signal of clock controller.Can not establish CPU5 (central processing unit) in the clock controller, do not possess the function calculation function, this moment, data storage 11 capacity with the clock controller configuration improved, the switch lamp time data that the control centre backstage calculates, refute by the data-interface 3 of clock controller in the data storage 11 of clock function number, the data storage 11 output control commands of clock controller configuration are given driving switch 6, and the data storage 11 of clock function number sends the operation control command.Clock controller has on-site manual operation control, so that the usefulness of controls such as light fixture maintenance.
Every day city illumination switch lamp function of time formula and explanation thereof:
Every day lighting time T
OFunctional expression
Time formula T turns off the light every day
FFunctional expression.
Represent the definition of item in the formula:
T
OIn the whole year every day lighting time
T
OMLighting time the earliest in the whole year
T
ONLighting time the latest in the whole year
Ф
OSwitch relational expression angle (angle)
T
FTurn off the light the time every day in the whole year
T
FMTurn off the light the time the earliest in the whole year
T
FNTurn off the light the time the latest in the whole year
Ф
FThe relational expression of turning off the light angle (angle)
N ... fate, January 1 was 0, added 1 every day, to December 31, promptly 0~364, intercalation
Year is 0~365.
Explanation to functional expression:
1. the functional relation in relational expression is that a horizontal linear and cosine function addition form.Because cosine function can be waited by remaining trigonometric function such as sinusoidal sin, tangent tan, cotangent can and power series and express, so those skilled in the art can carry out the expression way of various ways to this theory.
2. above two functional relation basic representations are
T
O=A-B×cos(0.01722×N+Ф
O)
T
F=C+D×cos(0.01722×N+Ф
F)
And coefficient A, B, the Ф of each relational expression
OWith C, D, Ф
FAll can get three groups of numbers respectively determines.As N
1It lighting time T
O1With N
2, T
O2With N
3, T
O3And N
1, T
F1, N2, T
F2, N3, T
F3Come to determine respectively, but the most conveniently be to adopt following three groups of numbers to determine:
Every year is lighting time T the earliest
OM, lighting time T the latest
ONAnd some day N
XLighting time T
OXCome to determine, lighting time T the earliest in every year
OM, every year lighting time T the latest
ON, some day N
XAnd lighting time T
OXNumerical value substitution functional relation, both can solve coefficient Ф
OValue, determine Ф
OBehind the coefficient, coefficient A, the B of functional relation, Ф
OReach the functional expression initial condition and all determine, at this moment N and T
OBe the one-to-one relationship family, the value of substitution fate N both can solve the lighting time T of annual (N+1) day
ONIn like manner, the coefficient of the functional expression of turning off the light also can be so definite, passes through T
FM, T
FNAnd N
XIt T
FxThe time of turning off the light is determined Ф
FThese functional expression initial condition.
And above two kinds of methods have been arranged, i.e. the initial condition that obtains of line-of-sight course and extremum method, through simple arithmetic and antitrigonometric function computing, six coefficients of just trying to achieve the function of turning on light and turn off the light are A, B, Ф
O, C, D, Ф
F, the function coefficients of definite functional expression initial condition has been arranged, then N substitution fate can be obtained " waiting brightness " switch lamp time of every day, different areas, because the initial condition difference, institute's functional expression initial condition that solves is also different.Therefore, this group relational expression is applicable to regions of the world.0~360 ° of angle system of above relational expression system's employing also can adopt 0~2 π radian to express.
The user need not to know the longitude and latitude in own area when using native system, only need to answer in whole year of location the earliest lighting time and lighting time the latest, wherein any one day lighting time gets final product, and the user can obtain the lighting time of annual every day.Question and answer this area turning off the light the time of any given day in time and turn off the light the latest time and a year of turning off the light the earliest simultaneously, and for the setting of midnight value, can be with the time of turning off the light the earliest, time of turning off the light of any given day of turning off the light in the time and the whole year all is set at the time of turning off the light at midnight and gets final product the latest.
The control method of city illumination time controlled system is as follows:
The switch lamp time software of design designs, change function initial condition coefficient at background computer input sunshine and date, computer is the operation total system automatically, in clock controller, insert sunshine and date variation function calculation formula (step 21), background computer utilizes functional expression to calculate the time of road lamp switch every day in 1 year, it is the calculating and the design (step 22) of example that computer can carry out one automatically, every day of its calculating, each way switch lamp time (step 23) is expressed result of calculation with the mode of curve or image, so that the switch lamp time (step 24) of vivider understanding annual every day.After the design result of the whole year is come out, the switch lamp time on the experience of user Ke Gen oneself and specific date is carried out some checks, examination switch lamp Time Calculation value every day whether coincide with at sunshine in the former years desired switch lamp time of statistics (whether identical) with statistics at sunshine in the former years desired switch lamp time, this calculated value whether meet the demands (step 25), return when not meeting the demands and redefine background computer input sunshine and date variation function initial value coefficient, redesign again.After the annual time, design finished, key in " determining ", then computer can be preserved the characteristic of switch time value of switch lamp, then available these characteristic values of user are input in every clock controller, critical data is input to each control goes in clock, every clock controller will the whole year by the good annual switch lamp time graph switch lamp of Computer Design, thereby, for a city illumination manager, the switch lamp time of entire city is all being carried out switch control by your design.Background computer calculates the function initial value that meets the demands, explicit function initial condition (step 26), determine this function coefficients, print the result, manually function initial condition value keyboard input 2 is controlled the clock controller (step 27) of one road lighting switch lamp times; Or utilize processing terminal 1, data storage medium with the CPU5 (step 28) of function initial condition value by the clock data interface 3 input clock controllers of clock controller; Or utilize data transport network to pass through clock data interface 3, function initial condition value is passed to the CPU5 (step 29) of clock controller with wireless signal receiver 4.
At this moment, the wireless signal receiver 4 of clock controller detects and has or not the signal instruction input, confirm receiver function initial condition value (step 30), if there is the signal input in control centre, the instruction of preferential disposable execution wireless signal receiver 4, in the face of the not influence of later time, then show this instruction time and this instruction time inserted switch lamp time memory unit on the same day (step 31) that system is with interim control of this instruction time road lamp switch on the same day; If control centre's no signal input, then clock controller confirms to receive function initial condition value, its built-in function computing function is calculated the clock switch lamp time (step 32) according to the initial condition value of inserting, and the time that this calculates is inserted switch lamp time memory unit (step 31).Real-time time compares (step 33) in the time of the switch lamp time memory unit of inserting and the clock, its comparative result controlling and driving switch 6 states, the result of control switch state exports to electromagnetism or relay system solid-state relay 8 (step 34), by exchanging contact or solid-state electronic formula alternating-current switch (step 35), regulate that street lamp changes with the natural brightness of daylight environment and switch or deepening, (step 36) brightens.
When clock controller electrification reset situation, treatment step is as follows:
Electrification reset in conjunction with Fig. 3 is handled block diagram.System, data initialization read real-time time in the clock controller, and the read switch state shows and reads the result.Detect hand switch, if the hand switch tripping operation, read real-time time and on off state again after closing hand switch; If hand switch is action not, then carry out keyboard scan, handle judgement by keyboard and have or not button to handle mistake.Judge the date variation, do not have the date variation then to carry out next step and read real-time time; If there is the date to change, then import sunshine and date variation function initial condition coefficient, its built-in function computing function is calculated the clock switch lamp time on the same day according to the initial condition value of inserting, and the state when depositing the switch lamp time that this calculates in power down, is kept in the time memory unit.Read real-time time, carry the switch lamp time on the same day that function calculation is set, relatively come to determine its on off state by switch lamp time interval and real-time time, more whether with clock controller real-time on off state consistent, judge with this whether the driving switch state needs to change if extracting this on off state.
The luminance switch lamp time of waiting of every day is determined with in service in 1 year, in order to deal with special circumstances, for example, unexpected Changes in weather (heavy rain, heavy snow, sandstorm etc.).Festivals or holidays, and dilly's demand etc., the change of special switch lamp time is arranged, each time controller of this system.All be equipped with the data-interface 3 of control communication, instruction that can very reliable preferential disposable execution wireless signal receiver 4, and to the not influence of later time, like this can be better and solve the control problem of special time cheaply, for example adopt the data-interface 3 of beeper, give CALL platform with timetable, then can form two kinds of mode switch lamp control forms, can make the control of entire city illumination more interesting.At first carry out the design of annual switch lamp time at computer, draw critical data, then critical data is set to each functions control clock, also can connects the order of CALL platform issue switch lamp by each function clock wireless signal receiver 4 mandatory row control simultaneously with telephone network.When the accident phenomenon that small probability takes place, or the weather events of sudden change occurs, when clock controller appeared at interruption and maybe need change the clock controller state, treatment step was as follows:
The change in weather of 1. working as small probability, when needing the improper time to open street lamp, the instruction of preferential disposable execution wireless signal receiver 4, and to the not influence of later time, send the wireless receiver of open command terminal hour clock controller from control centre, system sends into this instruction time the unit in the lighting time, start street lamp temporarily and open.
2. same, need to interfere when clock controller is improper closes street lamp, send out code for the wireless receiver of clock controller by control centre, clock controller is sent the time of this instruction into the time memory unit of turning off the light, the Temporarily Closed street lamp.
Under the condition that is equal to wireless signal receiver, can adopt " photoelectric brightness detector " to solve the small probability problem, and, also can adopt the photoelectric brightness detector if adopt wireless telecommunications to have any problem, substitute the effect of wireless signal receiver with the photoelectricity brightness detection instrument.
Treatment step is as follows when clock controller generation interruption situation:
1. a kind of processing method is: interruption 2 requestor block diagrams one Fig. 5 as the embodiment of the invention, and to close or open when street lamp is improper, the data input state of its data input port of clock controller is checked in in-situ processing earlier.The data input port of clock controller does not receive new data input, and the time data of its time internal storage location is a set point, gets final product start-up control device switch, recovers on-the-spot, interrupts returning; Receive new data input if the data input port of clock controller has, the time data of time memory unit is non-set point, and the data of clock controller are disturbed, then re-enter the function initial value, recovers on-the-spot, interrupts returning.
2. can also adopt following treatment step: as interruption 2 requestor block diagram--Fig. 4 of the embodiment of the invention.When disruption takes place, promptly the non-setting-up time of street lamp is opened or is closed, and keeps the scene intact, safeguards constant, the radio receiver on detection clock control road.The wireless receiver self check no signal of clock controller receives, not instruction input, and this moment, the attendant recovered on-the-spot, kept its normal condition, and Interrupt Process finishes and returns.If the wireless receiver of clock controller is received the instruction of control centre, this moment, the real-time time of clock controller was read by system, what the judgment processing wireless receiver was received is to open or close signal, when being start signal this time is sent into lighting time deposit receipt unit, will send into the time when being shutdown signal
The time memory unit of turning off the light, it is on-the-spot that the attendant recovers, and Interrupt Process finishes and returns.
City illumination time controlled system of the present invention, the switch lamp time software of design designs, and computer is the operation total system automatically.Simultaneously, on display end, will set up a dialog box, after the problem in user's the need answer dialog box, computer can carry out a series of calculating and design automatically, wait a moment, to export at display this city street lamp annual every day the switch lamp time and with curve, so that the switch lamp time of vivider understanding annual every day.
After the design result of the whole year is come out, the user can carry out some checks according to the experience of oneself and the switch lamp time on specific date, if undesirable can the redesign again, in general, as long as three characteristic value input standards, and in 1 year the one day any switch lamp time be that then design result is more satisfactory with the input of more safe time.
After design finishes, key in " determining ", then computer can be preserved the characteristic of switch time value of switch lamp, then available these characteristic values of user are input in every clock controller, every clock controller will the whole year by the time graph switch lamp that designs, guaranteed the consistency and the automatic transformation period that waits brightness of the switch lamp in full area, and all can learn the switch lamp time of every day at computer.