CN102183888A - Method for counting illumination time of illumination equipment - Google Patents
Method for counting illumination time of illumination equipment Download PDFInfo
- Publication number
- CN102183888A CN102183888A CN 201110043170 CN201110043170A CN102183888A CN 102183888 A CN102183888 A CN 102183888A CN 201110043170 CN201110043170 CN 201110043170 CN 201110043170 A CN201110043170 A CN 201110043170A CN 102183888 A CN102183888 A CN 102183888A
- Authority
- CN
- China
- Prior art keywords
- time
- illumination
- storage unit
- timer
- self
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The invention discloses a method for counting illumination time of illumination equipment, relates to the technical fields of illumination and software programming, and provides a complete solution for counting illumination time in random power failure, voltage fluctuation and other unstable environments. The method comprises a method for calculating a timing cycle and a data storage format through a central control unit (MCU) and an electronic memory, a method for detecting errors and self-recovery, and a timing method. The method solves the practical problems that the unstable environments cause illumination time data errors, the conventional design is low in time accuracy, write life of the electronic memory is mismatched with illumination life of the illumination equipment, and the like.
Description
Technical field
The present invention relates to lighting technical field and software programming technique field.
Background technology
Light fixture is along with using catabiosis such as light decay progressively occur.Illumination is aging main relevant with the device illumination working time, all is with mathematic(al) expectation working time as electric ballast, lamp holder etc.If can add up lighting hours by low-cost statistics light fixture, just can realize senior intelligent functions such as light decay replenishes, accelerated deterioration, consistance design device lifetime, energy-saving efficiency statistics.
Record operation light fixture working time, and the time result is stored in the electronic memory is the minimum method of cost, but big and with tester in power-down state when light fixture running environment scope range of the fluctuation of voltage, can exist following problem when long equipment life:
1. outage or voltage fluctuation meeting cause upgrading data failure and error in data.Because Data Update often, data loss problem can be very serious, for example calculates with 1,000,000 traditional/probability of errors, and the light fixture loss of data probability of 50,000 update times is 5%.Under high-precision timing required, the update times of data can be higher, and the probability that storer infringement and loss of data take place is more serious.If the luminaire applications amount is big, then because the device damage that the environment instability causes the time statistics to be lost being caused just can not have been accepted by the user.
2. the time precision of timing can not meet the demands, and for example, if equipment moves 10 hours every day, per hour writes down the time one time, just just causes error range in [0~10%] with tester in power-down state.Calculate with the LED in 50,000 hour life-span, then last error absolute time [0~5,000 hour], this directly causes other high-grade intelligent functional error scope based on timing statistics more than 1 year.
3. the electronic memory erasing and writing life can not satisfy the light fixture requirement, and for example, it is 10,000 times that the interior flash of sheet writes the life-span, but the LED illumination is 50,000 hours.
Traditional method is by writing the problem of solving 3 in turn in the storer zones of different.By the frequent problem of solving 2 of writing.This design is no problem when power supply is stable, but because the time showed increased that design can make device erasing and write, under all unsettled situation of power supply itself, the probability that makes a mistake when erasable is showed increased also.
Traditional file system can solve all problems, but it is too complicated, and light fixture can't use.
Also do not have at present a kind ofly can solve the design that all problems is simplified again very much simultaneously.
Summary of the invention
The present invention is a kind of method of light fixture statistics lighting hours.It is based on electronic memory and microprocessing unit; It is a whole set of complete solution, comprises the method and the clocking method of calculation method of parameters, store data structure, detection mistake and self-recovery; It is fit to the light fixture actual operating conditions, satisfies illumination practical application needs.The present invention includes following four partial design: entity part (110,120 and 130), light fixture clocking method (201), the method (202) of the wrong also self-recovery of detection and the method (301) of calculating time-count cycle and data memory format.
1. entity part is the storage unit (110 and 120) of MCU (130) and storer.MCU (130) completion logic computing, storage unit (110 and 120) storage lighting hours data and intermediate data.The concrete data layout of storer is described by the method (301) of calculating time-count cycle and data memory format, and the concrete operations algorithm is by light fixture clocking method (201) and detection is wrong and method (202) part of self-recovery is described.
2. detect the method (202) of wrong and self-recovery.After light fixture powered on, whether MCU (130) damaged because of abnormal power-down by the data of 202 method detection of stored, if then self-recovery of data contamination.
3. light fixture clocking method (201).Finish and detect wrong and self-recovery (202), back MCU (130) program is described operation until outage by 201 methods always.
4. the method (301) of calculating time-count cycle and data memory format is according to the characteristics computing store of light fixture and the method for timing parameter.Result of calculation can the constant form be moved as the MCU program parameter, also can read the back operation by MCU with file layout, or even the own program calculating of MCU, and how specifically to calculate does not have influence to the present invention.
Entity part (110,121,122,123 and 130)
Entity part comprises 3 parts, central control unit MCU (130), counter storage unit (110) and timer storage unit (120).The present invention does not have special characteristics to require to MCU, storage unit: storage unit can be EEROM, flash in the sheet, general flash; After storer can be wiped state be " FF ", also can be " 00 "; Wiping least unit can be bit, byte and bank.
Counter storage unit (110) is a bit string, and its length equals Cout_Size, and capacity equals counter maximal value Step_Unit.When the counting condition satisfies, MCU (130) to counter from a high position to the low level or from low level to high-order sequential write " 0 " or " 1 ".State after writing " 0 " or " 1 " and depending on memory erase is wiped the back and is then write " 0 " for " FF ", is " 00 " one writing then.
Timer storage unit 120 is made of (121,122,123) three parts, and the each several part capacity equals Time_Union/Step_Union, and length equals Timer_Size.121,122 and 123 represent the present timing value when equating, only represent temporary variable when unequal.
Calculate the method (301) of time-count cycle and data memory format
The input variable of parameter calculation formula:
Longest run time (hour) Time_Max
Normal condition each minimum working time (hour) Time_Normal
Require time precision Time_Precision
Storer minimum erase units (bit) Erase_Size
Maximum life (inferior) Erase_Time is write in the actual expectation of storer
The result of calculation of parameter calculation formula:
Write period of time T ime_Union
Counter maximal value Step_Unit
Counter length C out_Size
Timer length T imer_Size
Parameter calculation formula:
Time_Union=Time_Normal×Time_Precision×2
Step_Unit=[Time_Max/(Time_Union×Erase_Time×Erase_Size)]×Erase_Size
Cout_Size=Step_Unit/Erase_Size
Timer_Size=[log(2)(Fime_Max/Time_Union)]
[] expression is got the maximum integer computing and is noted checking the evidence obtaining computing, notes the formula coupling with subsequent calculations.
Light fixture clocking method (201)
Be to describe 201 methods below with algorithmic language."=" expression assignment wherein, it comprises wipes initial value, writes new value and check and write three concrete actions of result.Flow process is described and is seen as Fig. 3: the light fixture clocking method.
Detect wrong and self-recovery method (202)
Be to describe 202 methods below with algorithmic language.Wherein "=" expression is provided with, and it comprises wipes initial value and write two actions of new value.It is 1 bit reversal with back, current bit position that counter adds 1, and emptying counter is that Counter Value is nullified.Flow process is described and is seen Fig. 4: detect wrong and self-recovery method.
Description of drawings
Fig. 1 system diagram
Fig. 2: light fixture operational flow diagram
Fig. 3: light fixture clocking method
Fig. 4: detect wrong and self-recovery method
Embodiment
Be embodied as example with the LED street lamp.LED street lamp average operating time Time_Max=50000 (hour), estimate normal condition each minimum working time (hour) Time_Normal=10, system requirements time precision Time_Precision=1%.
Entity part
MCU (130) adopts MC80F7708, and storer (110 and 120) adopts the external Flash of 24LC16.
Calculating parameter
● write period of time T ime_Union=Time_Normal * Time_Precision * 2=0.2.Added up one time the time in then per 0.2 hour.
● counter (110) maximal value.Storer 24LC16 writes the number of times maximum life 10000 times, stays an amount of redundancy with storer Erase_Time=8000 here.The storer minimum erase units is Byte Erase_Size=8.Step_Unit=[Time_Max/(Time_Union×Erase_Time×Erase_Size)]×Erase_Size=[50000/(0.2×8000×8)]×8=32。
● counter (110) length C out_Size=Step_Unit/Erase_Size=4 Byte
● timer (121,122,123) length T imer_Size=[(log 2Time_Max/Time_Union)/Erase_Size] * Erase_Size=2 Byte
Program is by the method for designing operation
These parameters are directly in the program that is programmed in the MC80F7708 operation.After powering on, it moves trace routine at every turn, judges whether the data in counter and the timer are unusual, if unusually then self-recovery.For example, cut off the power supply last time when wiping timer 123, and causing the data of 123 storages is mess codes.Trace routine finds that 121 equal 122, and 123 value promptly is not equal to 122 and also is not equal to 122+1, and the data of at this moment judging 123 storages are mess codes.Owing to the reason of mess code must be to upgrade failure in 123 o'clock to cause, equal 122+1 so upgrade 123 once more, simultaneously with counter O reset.122 add 1 then.Suppose at this moment to upgrade that the electricity went off again at 121 o'clock.The back trace routine that powers on finds that 122 equal 123, but 121 are not equal to 122.It is to upgrade to go wrong in 121 o'clock that program is judged, and upgrades 121 once more.
Detection algorithm enters into the timing algorithm after finishing detection and self-recovery algorithm.Suppose that current counter counted 31 times, because 24LC16 is 0 after wiping, so its preceding 31 bit is that 1, the 32bit is 0.0.1 after hour (6 minutes), MC80F7708 is with 32 positions 1 of counter.Through 0.1 hour, a count cycle finished again, during any outage can not influence timer.Again after 0.1 hour, program finds that counter is full, then adds 1 with 123 earlier, empties counter then, and 122 equal 123,121 and equal 122 then.Outage is in the meantime finished detection and self-recovery by detection algorithm.
The single error of timing algorithm is at [1%~+ 1%], and itself satisfies precision conditions.Along with the accumulative total of gate time, power-off time finally satisfies the Bai Song distribution and presents the more and more higher feature of precision at random.
Claims (3)
1. the method for light fixture statistics lighting hours, comprise central control unit MCU (130), counter storage unit (110), timer storage unit (120), the method (301) of calculating time-count cycle and data memory format, the detection wrong also method (202) and the clocking method (201) of self-recovery, it is characterized in that
The described method (202) that detects wrong and self-recovery allows to recognition of devices because error in data and the self-recovery from mistake that unstable environment causes;
The method (301) of the structure of described counter storage unit (110) and timer storage unit (120) and described calculating time-count cycle and data memory format can make the precision of device statistics lighting hours and storage life have nothing to do;
Described counter storage unit (110) and clocking method (201) can make statistical error reduce along with the increase of lighting hours.
2. as the method for light fixture statistics lighting hours as described in the right 1, it is characterized in that clocking method (201) and detect the wrong also method (202) of self-recovery and describe as following algorithmic language:
Clocking method (201)
"=" expression assignment wherein, it comprises wipes initial value, writes new value and check and write three concrete actions of result, and "=" expression equates.
3. the data layout of storage lighting hours in the electronic memory, it comprises counter storage unit (110), three methods (301) that back up timer (121,122 and 123) mutually and calculate time-count cycle and data memory format, it is characterized in that, (1) counter and timer two-stage design, (2) require by computing method (301) computing counters (110) and timer (121,122 and 123) parameter according to the equipment life of estimating, memory write life-span and statistical precision, the skill that (3) utilize counter to wipe and once write repeatedly improves statistical precision.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110043170 CN102183888A (en) | 2011-02-23 | 2011-02-23 | Method for counting illumination time of illumination equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110043170 CN102183888A (en) | 2011-02-23 | 2011-02-23 | Method for counting illumination time of illumination equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102183888A true CN102183888A (en) | 2011-09-14 |
Family
ID=44570077
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201110043170 Pending CN102183888A (en) | 2011-02-23 | 2011-02-23 | Method for counting illumination time of illumination equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102183888A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105303641A (en) * | 2014-06-06 | 2016-02-03 | 上海机电工程研究所 | Statistical method of high-precision missile energizing lifetime |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020047546A1 (en) * | 1999-12-14 | 2002-04-25 | Roy Kayser | Smart light source with integrated operational parameters data storage capability |
US6483247B2 (en) * | 2001-02-20 | 2002-11-19 | Syris Scientific, L.L.C. | Lighting apparatus and light control method |
CN1701644A (en) * | 2002-08-26 | 2005-11-23 | 成像及感应科技公司 | A deuterium arc lamp assembly with an elapsed time indicator system and a method thereof |
US7397707B2 (en) * | 2000-09-14 | 2008-07-08 | Sandisk Corporation | Compressed event counting technique and application to a flash memory system |
CN101919316A (en) * | 2008-01-17 | 2010-12-15 | 奥斯兰姆有限公司 | Method and device for detecting a static index of a lighting device |
-
2011
- 2011-02-23 CN CN 201110043170 patent/CN102183888A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020047546A1 (en) * | 1999-12-14 | 2002-04-25 | Roy Kayser | Smart light source with integrated operational parameters data storage capability |
US7397707B2 (en) * | 2000-09-14 | 2008-07-08 | Sandisk Corporation | Compressed event counting technique and application to a flash memory system |
US6483247B2 (en) * | 2001-02-20 | 2002-11-19 | Syris Scientific, L.L.C. | Lighting apparatus and light control method |
CN1701644A (en) * | 2002-08-26 | 2005-11-23 | 成像及感应科技公司 | A deuterium arc lamp assembly with an elapsed time indicator system and a method thereof |
CN101919316A (en) * | 2008-01-17 | 2010-12-15 | 奥斯兰姆有限公司 | Method and device for detecting a static index of a lighting device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105303641A (en) * | 2014-06-06 | 2016-02-03 | 上海机电工程研究所 | Statistical method of high-precision missile energizing lifetime |
CN105303641B (en) * | 2014-06-06 | 2018-08-03 | 上海机电工程研究所 | A kind of statistical method in high-precision guided missile energization service life |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Liu et al. | Ambient energy harvesting nonvolatile processors: From circuit to system | |
US10592126B2 (en) | Memory management method, memory storage device and memory control circuit unit | |
US9003108B2 (en) | Relocating data based on matching address sequences | |
TWI506430B (en) | Method of recording mapping information method, and memory controller and memory storage apparatus using the same | |
US11222704B1 (en) | Power state aware scan frequency | |
CN101807109B (en) | Power throttling method for microprocessor and microprocessor | |
CN101419841B (en) | Erasing method for FLASH memory | |
EP2942715A1 (en) | Data migration method, data migration apparatus and storage device | |
CN102981959B (en) | The control method of solid-state storage device and collecting garbage action thereof | |
KR102318541B1 (en) | System and method for controlling power consumption | |
CN101826368B (en) | Data scanning method and scanning device | |
CN104102585A (en) | Mapping information recording method, memory controller and memory storage device | |
CN101770557A (en) | Method for calculating service time of software in system | |
CN109490618A (en) | A kind of amended record method of load curves of electric energy meter | |
CN101216727A (en) | Embedded type low-power consumption operating system dynamic frequency regulation mapping method | |
CN102183888A (en) | Method for counting illumination time of illumination equipment | |
CN208907999U (en) | A kind of novel Raid buckle | |
CN102111147A (en) | Asynchronous counter circuit and realizing method thereof | |
CN204423297U (en) | A kind of SOC (system on a chip) in order to realize Systematical control and power management | |
US20210041938A1 (en) | Power savings in processors | |
CN111651126B (en) | Memory writing operation method, system, electronic device and medium | |
US20190221253A1 (en) | Device and method for controlling refresh cycles of non-volatile memories | |
CN112748271B (en) | Electric energy meter and electric quantity metering method thereof | |
CN112511156B (en) | Pulse metering and storing method | |
CN108234054B (en) | A kind of self-healing method of concentrator loss of clock self-test |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20110914 |