CN100587847C - Synthetic method for protecting television data - Google Patents
Synthetic method for protecting television data Download PDFInfo
- Publication number
- CN100587847C CN100587847C CN200810020877A CN200810020877A CN100587847C CN 100587847 C CN100587847 C CN 100587847C CN 200810020877 A CN200810020877 A CN 200810020877A CN 200810020877 A CN200810020877 A CN 200810020877A CN 100587847 C CN100587847 C CN 100587847C
- Authority
- CN
- China
- Prior art keywords
- data
- e2prom
- write
- password
- input end
- 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.)
- Expired - Fee Related
Links
Images
Abstract
The invention discloses an integrated approach for protecting TV data which can ensure that data stored by an E2PROM is not lost, is not affected by other various devices, can restore the data for thefirst time when mistakes happen and actually realizes security and stability of data, aiming at defect that the existing data loss rate of the E2PROM still can not meet the market requirements. The method includes the following steps of: choosing the address of the E2PROM, placing write-protect input end WP feet at high level, detecting whether the code of the E2PROM is matched or not, carrying out BCD coding to data which needs storing, checking the coded data, placing the write-protect input end WP feet at low level, writing one byte data in the E2PROM, placing the write-protect input end WP feet at high level and also includes the steps of: such as comparing the data read-out from E2PROM with the data written in the E2PROM, etc. when data stored to the data of the E2PROM is less than hundreds of bytes.
Description
Technical field
The present invention relates to non-volatile memory device, especially a kind of integrated approach that utilizes Serial E 2PROM protection TV data.
Background technology
Along with the raising of people's living standard, more and more pay attention to the quality of amusement and leisure, also have higher requirement with regard to the TV domain of giving us.When hommization, intelligent degree were more and more higher, various advanced technologies had been penetrated into household appliance technical field, and the function of various robotizations is provided, for daily life has been brought convenience.
Meanwhile, memory requirement to data is also more strict, with regard to regard to TV domain, every adjustment data under user interface and the factory mode are in case change to some extent, light then influence convenient that the user uses, heavy then consequence such as cause that pattern distortion, color are lacked of proper care, can't be started shooting has badly influenced the quality problems of product.In the market mainly can online electricity to wipe E2PROM with electronically written as memory device, accurately the control of aspects such as various amounts, degree and time, Serial E 2PROM is based on the memory device of I2C BUS, follow the two-wire system agreement, because its tool is convenient with interface, characteristics such as volume is little, and the data power down is non-volatile obtain a large amount of application in electron trade.
In conjunction with relevant way in the market, it is as follows to add up one group of data: the E2PROM data loss rate that does not carry out any safeguard measure reaches 3%; WP safeguard measure E2PROM data loss rate on the market reaches 3 ‰; Though above data have greatly reduced the Loss Rate of data, can not satisfy the requirement in market fully.
Summary of the invention
The present invention is intended to overcome the shortcoming that existing E2PROM data loss rate still can not satisfy market demands; the influence of other various device is not lost, is not subjected to the data that disclose a kind of E2PROM of allowing storage; can repair in the very first time when makeing mistakes, really accomplish a kind of integrated approach of protecting TV data of the safety and stablization of data.
The present invention is achieved by the following technical solutions:
A kind of integrated approach of protecting TV data is characterized in that this method comprises the following steps:
A. select the address of E2PROM;
B. write-protect input end WP pin is put high level;
Whether the password that c. detects E2PROM mates, when powering on, read the password position of E2PROM earlier, the password read and the password that sets are compared, if both do not match and then carry out data and repair automatically, both compare once more to finish the back, if both couplings are then carried out next step;
D. required data of depositing are carried out the BCD coding;
E. coded data is carried out verification, be about to these data and 9 and compare,, then carry out next step as if being not more than if return steps d greater than 9;
F. write-protect input end WP pin is put low level;
G. write the data of a byte to E2PROM;
H. after write operation finishes, write-protect input end WP pin is put high level;
When depositing continuously to E2PROM that data are less than up to a hundred bytes in and to requiring in real time under the undemanding situation, the present invention also comprises and reads the step that writes data:
I. select the address of E2PROM;
Whether the password that j. detects E2PROM mates, when powering on, read the password position of E2PROM earlier, the password read and the password that sets are compared, if both do not match and then carry out data and repair automatically, both compare once more if both couplings are then carried out next step to finish the back;
K. the data of reading from E2PROM are carried out verification, be about to these data and 9 and compare,, then carry out next step as if being not more than if return step j greater than 9;
L. will compare from E2PROM data of reading and the data that write,, carry out write operation once more if the identical sense data that then finishes is operated if difference then forwards step a to.
Wherein, in the step of described selection E2PROM address, when E2PROM provides a plurality of optional address of devices, should careful selection one with bus on miscellaneous equipment binary address a little address that differs greatly as far as possible.
In the step whether password of described detection E2PROM mates,, password then carries out the system mistake prompting if reading to mate yet for 5 times.
Describedly write in the step of a byte data,, between the transmission byte, increase corresponding time delay process in order to ensure the transmission integrity of each byte to E2PROM.
Compared with prior art, the invention has the beneficial effects as follows:
The present invention adopts the safeguard measure of software combined with hardware flexibly, makes the data of storing among the Serial E 2PROM obtain double insurance, causes the E2PROM data loss rate to be almost 0 ‰.
Description of drawings
Fig. 1 is the present invention writes a software flow pattern from data to Serial E 2PROM.
Fig. 2 is the software flow pattern of the present invention from Serial E 2PROM sense data.
Fig. 3 is that hardware of the present invention is realized synoptic diagram.
Fig. 4 be of the present invention when Serial E 2PROM writes data signal flow diagram.
Embodiment
Shown in accompanying drawing 1, accompanying drawing 2:
A kind of integrated approach of TV data of protecting comprises the following steps:
A. select the address of E2PROM, when E2PROM provides a plurality of optional address of devices, should careful selection one with bus on miscellaneous equipment binary address a little address that differs greatly as far as possible;
B. write-protect input end WP pin is put high level;
Whether the password that c. detects E2PROM mates, when powering on, read the password position of E2PROM earlier, password of reading and the password that sets are compared, if both do not match then carry out data repair automatically the back both compare once more, if reading to mate yet for 5 times, password then carries out the system mistake prompting, if both couplings are then carried out next step;
D. required data of depositing are carried out the BCD coding, data deposit in decimal system binary-coded decimal mode, can improve the redundance of valid data like this, and its valid data of the storage unit among the E2PROM are 0-9, are invalid data greater than 9;
E. coded data is carried out verification, promptly the data that preparation is write are checked, these data and 9 are compared, if these data are interfered, its value great majority should drop on greater than (possibility number percent coefficient is 246/256) in 9 the scope, so when data just forbid carrying out the subroutine that writes E2PROM and return previous step greater than 9 the time rapid, in order to avoid misdata writes E2PROM, and the parameter that normal need is revised is not had influence, effectively carry out next step if be not more than 9 explanation data;
F. write-protect input end WP pin is put low level, with a port E2PROM is protected specially, when needs write data the port level dragged down and keep certain hour to guarantee that data have finished writing, all the other states all are high level.What pay special attention to is that when TV carried out the white balance adjustment, owing to be that the white balance instrument writes E2PROM, the processor of TV was in the slave unit state, then also needed to drag down level this moment;
G. write the data of a byte to E2PROM,, between the transmission byte, increase corresponding time delay process, and judge constantly whether write operation finishes in order to ensure the transmission integrity of each byte;
H. after write operation finishes, write-protect input end WP pin is put high level;
When depositing continuously to E2PROM that data are less than up to a hundred bytes in and to requiring in real time under the undemanding situation, the present invention also comprises and reads the step that writes data:
I. select the address of E2PROM;
Whether the password that j. detects E2PROM mates, when powering on, read the password position of E2PROM earlier, password of reading and the password that sets are compared, if both do not match then carry out data repair automatically the back both compare once more, password reads to mate yet for 5 times and then carries out the system mistake prompting, if both couplings are then carried out next step;
K. the data of reading from E2PROM are carried out verification, being about to these data and 9 compares, if improper data greater than 9, illustrate that data are interfered, this interference value is definitely obsolete, repairs automatically by data, the characteristic of assay value and purposes, if the index of some security performance and numerical value then can be done special processing to guarantee stability and security, data are repaired the back automatically and are finished the sense data operation, effectively carry out next step if be not more than 9 explanation data;
L. will compare from E2PROM data of reading and the data that write,, carry out write operation once more, if the identical sense data that then finishes is operated if difference then forwards step a to;
In the automatic reparation step of described E2PROM data, lose and destroys, and influence can carry out use with E2PROM data of reservation when big, perhaps the data that are reserved in the RAM district can be written into E2PROM when finding that the E2PROM data have.
As shown in Figure 3, hardware cooperates software to do corresponding change, and the port P1.0 of microprocessor MCU is connected to the WP end that E2PROM is E2P, between the two-port by on pull-up resistor meet power supply VCC, for the dirigibility that increases the WP mouth can add a switch in addition, hardware can be controlled.
Accompanying drawing 4, when needs when Serial E 2PROM writes data, WP port level dragged down and keep certain hour to guarantee that data finish writing, when clock line SCL was high level, data line SDA was that low level is defined as " beginning " signal by the high level saltus step; When scl line was high level, sda line generation low level was " end " signal to the saltus step of high level.Beginning and end signal all are to be produced by main device.After commencing signal, bus promptly considered to be in busy condition; In later a period of time, it is idle that bus is considered at end signal.
Above-described software and hardware measure can flexible Application in concrete control system, and the hardware interlock protection ratio is more thorough, but just impossible by some data among the modification of program E2PROM separately; Software protection is more flexible, can deposit E2PROM in to the data of handling in the control procedure at any time, to reach the purpose that power down is preserved.
Claims (2)
1. an integrated approach of protecting TV data is characterized in that, this method comprises the following steps:
A. select the address of E2PROM;
B. write-protect input end WP pin is put high level;
Whether the password that c. detects E2PROM mates, when powering on, read the password position of E2PROM earlier, the password read and the password that sets are compared, if both do not match and then carry out data and repair automatically, both compare once more to finish the back, if both couplings are then carried out next step;
D. required data of depositing are carried out BCD Coding;
E. coded data is carried out verification, be about to coded data and 9 and compare,, then carry out next step as if being not more than if return steps d greater than 9;
F. write-protect input end WP pin is put low level;
G. write the data of a byte to E2PROM;
H. after write operation finishes, write-protect input end WP pin is put high level;
When depositing continuously to E2PROM that data are less than up to a hundred bytes in and to requiring under the undemanding situation, also comprise to read the step that writes data in real time:
I. select the address of E2PROM;
Whether the password that j. detects E2PROM mates, when powering on, read the password position of E2PROM earlier, the password read and the password that sets are compared, if both do not match and then carry out data and repair automatically, both compare once more to finish the back, if both couplings are then carried out next step;
K. the data of reading from E2PROM are carried out verification, the data and 9 of soon reading from E2PROM compare, if return step j greater than 9, then carry out next step if be not more than;
L. will compare from E2PROM data of reading and the data that write,, carry out write operation once more, if the identical sense data that then finishes is operated if difference then forwards step a to.
2. the integrated approach of protection TV data according to claim 1 is characterized in that, describedly writes in the step of a byte data to E2PROM, in order to ensure the transmission integrity of each byte, increases corresponding time delay process between the transmission byte.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200810020877A CN100587847C (en) | 2008-08-05 | 2008-08-05 | Synthetic method for protecting television data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200810020877A CN100587847C (en) | 2008-08-05 | 2008-08-05 | Synthetic method for protecting television data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101335049A CN101335049A (en) | 2008-12-31 |
CN100587847C true CN100587847C (en) | 2010-02-03 |
Family
ID=40197570
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200810020877A Expired - Fee Related CN100587847C (en) | 2008-08-05 | 2008-08-05 | Synthetic method for protecting television data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100587847C (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110047190A (en) * | 2019-05-30 | 2019-07-23 | 广东科徕尼智能科技有限公司 | The data protection unit and means of defence of a kind of use on smart lock |
-
2008
- 2008-08-05 CN CN200810020877A patent/CN100587847C/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN101335049A (en) | 2008-12-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100370427C (en) | Harddisk hot-swap protection system and method | |
CN101246738A (en) | Memory system with backup circuit and programming method | |
US9893476B2 (en) | Communications cable with status indicator for electronic devices | |
TWI516936B (en) | Method for switching operation mode, memory controller and memory storage apparatus | |
CN100476851C (en) | Protection system for data security transmission between computer and disc | |
CN105931673A (en) | Data Storage Device And Operating Method Thereof | |
CN100587847C (en) | Synthetic method for protecting television data | |
CN101651794A (en) | Method for coping television memory data and intelligent copier | |
CN101751981B (en) | Method for protecting the safety of storing data in flash memory storing device | |
CN100481895C (en) | Method and device for carrying out TV set software upgrade | |
CN104571942A (en) | Data storage system and method analyzing non-signal | |
CN102708032A (en) | Method and device for detecting hot plug of secure digital card | |
CN201425723Y (en) | Switch of dual hard disk power lines | |
CN210867739U (en) | Automatic networking equipment for smart home system | |
CN101094357A (en) | Method and device for replicating data from TV set | |
CN110348245A (en) | Data completeness protection method, system, device and storage medium based on NVM | |
CN103345456B (en) | Regulate circuit and the method for BootLoader enabling address | |
CN101950160B (en) | Anti-jamming method of electrical appliance, control system and corresponding electrical appliance | |
CN202771419U (en) | Safe universal serial bus (USB) disk | |
CN101950264A (en) | Method for recovering display data by shortcut key | |
CN100392764C (en) | Television data storage method | |
CN206460443U (en) | A kind of intelligent screen lock device | |
CN202677384U (en) | Online programmer provided with portable universal serial bus (USB) interface | |
CN101193241A (en) | A TV set scheduled task control method, device and TV set | |
TW200622626A (en) | Portable digital data storage device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20100203 Termination date: 20200805 |