CN102098568B - Television data cloning method - Google Patents
Television data cloning method Download PDFInfo
- Publication number
- CN102098568B CN102098568B CN 201010557687 CN201010557687A CN102098568B CN 102098568 B CN102098568 B CN 102098568B CN 201010557687 CN201010557687 CN 201010557687 CN 201010557687 A CN201010557687 A CN 201010557687A CN 102098568 B CN102098568 B CN 102098568B
- Authority
- CN
- China
- Prior art keywords
- clone
- configuration file
- platform
- data
- television set
- 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.)
- Active
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention provides a television data cloning method which is suitable for the technical field of data clone. The method comprises the following steps of: S1, prestoring a configuration file in a storage device and analyzing the configuration file; S2, acquiring a sign for crossing a platform or not from the configuration file and judging whether platform crossing operation is met; S3, reading a cloning operation sign from the configuration file to judge to carry out reading operation or writing operation; S4, reading the storage type of platform operation from the configuration file and carrying out a corresponding operating command; and S5, reading the initial address and the size of the configuration file to clone. When the method is used for cloning data of a television, a main program is not needed to be recompiled, and only the configuration file is modified, therefore, the cloning process is simple and rapid.
Description
Technical field
The invention belongs to the data clone technical field, relate in particular to a kind of method of television set data clone.
Background technology
At present, when television set is upgraded under hotel's pattern, market pattern, need utilize the serial ports instrument to carry out transfer of data, to realize FLASH in the TV or E
2The modification of video parameter among the PROM, thus escalation process finished.Yet, because television function is more and more, need the main program of upgrading also increasing, and the speed of serial ports instrument is very slow, the time of the once required cost of upgrading is also very long.
Upgrading for convenience is for revising FLASH or E
2The situation of data among the PROM, industry has been invented new method: by clone's box with the data clone in the machine tool to the memory of television set, and then finish parameter modification in the television set.In addition, also can be with the data clone in the television memory in clone's box, so that other TVs are arranged the parameter identical with this television set.
Yet, because FLASH and E in different platform or between with platform
2The size of PROM etc. there are differences, but data wherein all are identical usually, each clone's box that utilizes all needs the software engineer to remodify and compile main program to the television set data change, could guarantee the correct data clone that carries out like this, but revise at every turn and compile main program, process extremely repeats loaded down with trivial details.
Therefore, be necessary to provide a kind of television set data clone method of simple and fast.
Summary of the invention
The object of the present invention is to provide a kind of method of television set data clone, be intended to solve the clone's data modification and the compiling main program that exist in the prior art and cause process to repeat loaded down with trivial details problem.
The present invention is achieved in that a kind of method of television set data clone, and this method comprises the steps: the step S1. configuration file that prestores in memory device, and configuration file is resolved; Whether cross-platform step S2. obtain sign from configuration file, judge whether to satisfy cross-platform operation; Namely according to the type of TV set platform itself, from configuration file, obtain the Platform Type of support, with Platform Type contrast in TV set platform type and the configuration file, if TV set platform is the platform that exists in the configuration file, then cross-platform clone is carried out in operation, change skipping to S3, otherwise finish clone operations; Step S3. reads clone's operation flag judgement and carries out read operation or write operation from configuration file; Step S4. reads the type of memory of platform operations from configuration file, carry out corresponding operational order; Step S5. reads initial address and the size in the configuration file, clones.
Among the step S1, comprise the information relevant with the clone: clone's option; Cross-platform option; Copy option between the different capabilities memory device; Version number's option; The Platform Type option; The type of memory option; Initial address and size options; Check code option and the address that mustn't clone; Clone in the storage device of usefulness, in advance Cun Chu configuration file.
Among the step S3, according to the clone's option in the configuration file, judge data are cloned or cloned to the data in the television set to television set.
Among the step S4, type of memory comprises flash and E
2Prom.
This method also comprises step S6 after step S5, according to the check code in the configuration file data of operation are carried out verification.
This method also comprises S41 before the step S5 after step S4, read the breakpoint file, judges whether that breakpoint is continuous to copy; S42. carry out data clone from breakpoint.
This method is cloned the data in the television set according to configuration file by the configuration file that prestores in the memory device of clone's usefulness; Or with the data clone in the television set to the storage device of cloning usefulness, like this, when carrying out the television set data clone, need not to recompilate main program, only configuration file being made amendment gets final product, clone's process simple and fast.
Description of drawings
Fig. 1 is the flow chart of data clone method of the present invention;
Fig. 2 is the flow chart of the continuous copy method of breakpoint.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explaining the present invention, and be not used in restriction the present invention.
Seeing also Fig. 1, is the flow chart of data clone method of the present invention.This method utilizes remote controller accessing factory's menu, by operating accordingly in TV OSD, thereby finishes read operation and the write operation that carries out data among television set E2PROM or the FLASH.
In addition, for convenience with platform or different platform, carry out the clone of data in the storage device of different capabilities, in clone's box or USB flash disk, increase a configuration file, wherein comprise the following information relevant with the clone in the configuration file, control clone process:
0, clone option: Ture with the data clone in the TV in USB or clone's box, False with USB or clone the data clone in the box in TV;
1, cross-platform option; True realizes cross-platform clone, and False can not realize cross-platform clone;
2, the copy option between the different capabilities memory device: True realizes the copy between the different size, and False can not realize;
3, version number's option: the version number of main program;
4, Platform Type option: type such as the platforms such as Mstar, MTK of difference platform;
5, type of memory option: distinguishing the memory that needs to clone is flash or e2prom;
6, initial address and size options: address needs the position of operating in the memory, and Size is for needing the data block size of operation;
7, check code option: to clone's data check, mainly its mistake proofing effect;
8, the address that mustn't clone: for the data that do not allow in the TV to clone, every data that TV is privately owned, as network ID, USER ID.
Based on above-mentioned configuration file, the method for television set data clone of the present invention is as follows:
The step S1. configuration file that in memory device, prestores, and configuration file resolved;
This step as clone's box or USB flash disk, is stored above-mentioned configuration file in advance in the storage device of clone's usefulness, when clone's beginning, resolve this configuration file from clone's box or USB flash disk;
Whether cross-platform step S2. obtain sign from configuration file, judge whether to satisfy cross-platform operation;
Type according to TV set platform itself, from configuration file, obtain the Platform Type of support, it is the content of option 4 in the configuration file, with Platform Type contrast in TV set platform type and the configuration file, if TV set platform is the platform that exists in the configuration file, then cross-platform clone is carried out in operation, changes skipping to S3, otherwise finishes clone operations;
Step S3. reads clone's operation flag judgement and carries out read operation or write operation from configuration file;
According to the clone's option 0 in the configuration file of reading, judge data are cloned or cloned to the data in the television set to television set; If be Ture then call the read operation interface, with the television set data clone to USB flash disk or clone's box; If be fasle, then call the write operation interface, with USB flash disk or clone box data clone to television set.
Step S4. reads the type of memory of platform operations from configuration file, carry out corresponding operational order;
Obtain the option 5-type of memory option in the configuration file, distinguishing the memory that needs to clone is flash or E
2Prom; If for flash then call the operational order of flash, otherwise call the E2prom operational order;
Step S5. reads initial address and the size in the configuration file, clones;
Obtain option 6-initial address and size options in the configuration file, carry out clone operations according to the address in the configuration file and size;
Step S6. carries out verification according to the check code in the configuration file to the data of operation;
Obtain the option 7-check code option in the configuration file, to clone's data check, prevent that the clone from makeing mistakes.
This method is cloned the data in the television set according to configuration file by the configuration file that prestores in the memory device of clone's usefulness; Or with the data clone in the television set to the storage device of cloning usefulness, like this, by carry out the clone of television set data according to configuration file, when needs are changed clone's condition, need not to recompilate main program, only configuration file being made amendment gets final product, clone's process simple and fast.
In order to prevent between memory device, carrying out data clone, cause the problem that need start anew again midway owing to cutting off the power supply, increased the continuous function of copying of breakpoint.The flow chart of the continuous copy method of breakpoint as shown in Figure 2, after the step S4 of above-mentioned Fig. 1, before the step S5, execution in step:
S41. read the breakpoint file, judge whether that breakpoint is continuous to copy;
Breakpoint is continuous to be copied if carry out, and then carries out step S42, otherwise carries out step S5;
S42. carry out data clone from breakpoint;
If data clone success is then judged according to the description of address in the configuration file and size whether all data clone and is finished.If finish, then finish; Otherwise proceed the operation of data according to the address that describes in the configuration file and size.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.
Claims (7)
1. the method for a television set data clone, this method comprise the steps: the step S1. configuration file that prestores in memory device, and configuration file is resolved; Whether cross-platform step S2. obtain sign from configuration file, judge whether to satisfy cross-platform operation; Namely according to the type of TV set platform itself, from configuration file, obtain the Platform Type of support, with Platform Type contrast in TV set platform type and the configuration file, if TV set platform is the platform that exists in the configuration file, then cross-platform clone is carried out in operation, change skipping to S3, otherwise finish clone operations; Step S3. reads clone's operation flag judgement and carries out read operation or write operation from configuration file; Step S4. reads the type of memory of platform operations from configuration file, carry out corresponding operational order; Step S5. reads initial address and the size in the configuration file, clones.
2. the method for television set data clone according to claim 1 is characterized in that, among the step S1, comprises the information relevant with the clone: clone's option; Cross-platform option; Copy option between the different capabilities memory device; Version number's option; The Platform Type option; The type of memory option; Initial address and size options; Check code option and the address that mustn't clone.
3. the method for television set data clone according to claim 2 is characterized in that, among the step S1, clones in the storage device of usefulness, in advance Cun Chu configuration file.
4. the method for television set data clone according to claim 2 is characterized in that, among the step S3, according to the clone's option in the configuration file, judges data are cloned or cloned to the data in the television set to television set.
5. the method for television set data clone according to claim 2 is characterized in that, among the step S4, type of memory comprises flash and E
2Prom.
6. the method for television set data clone according to claim 2 is characterized in that, this method also comprises step S6 after step S5, according to the check code in the configuration file data of operation is carried out verification.
7. the method for television set data clone according to claim 2 is characterized in that, this method also comprises S41 before the step S5 after step S4, read the breakpoint file, judges whether that breakpoint is continuous to copy; S42. carry out data clone from breakpoint.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010557687 CN102098568B (en) | 2010-11-23 | 2010-11-23 | Television data cloning method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010557687 CN102098568B (en) | 2010-11-23 | 2010-11-23 | Television data cloning method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102098568A CN102098568A (en) | 2011-06-15 |
CN102098568B true CN102098568B (en) | 2013-08-14 |
Family
ID=44131401
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010557687 Active CN102098568B (en) | 2010-11-23 | 2010-11-23 | Television data cloning method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102098568B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102420948A (en) * | 2011-08-26 | 2012-04-18 | 厦门华侨电子股份有限公司 | Method used for cross-platform television setting cloning by adopting USB (Universal Serial Bus) mobile storage device |
CN109302482A (en) * | 2018-10-15 | 2019-02-01 | 四川长虹电器股份有限公司 | Method based on smart television data clone |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1937720A (en) * | 2005-12-29 | 2007-03-28 | 康佳集团股份有限公司 | Television receiver set information duplicating method and system |
CN101022502A (en) * | 2007-02-07 | 2007-08-22 | 海尔集团公司 | TV clone method |
CN101094357A (en) * | 2006-06-22 | 2007-12-26 | 深圳Tcl新技术有限公司 | Method and device for replicating data from TV set |
-
2010
- 2010-11-23 CN CN 201010557687 patent/CN102098568B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1937720A (en) * | 2005-12-29 | 2007-03-28 | 康佳集团股份有限公司 | Television receiver set information duplicating method and system |
CN101094357A (en) * | 2006-06-22 | 2007-12-26 | 深圳Tcl新技术有限公司 | Method and device for replicating data from TV set |
CN101022502A (en) * | 2007-02-07 | 2007-08-22 | 海尔集团公司 | TV clone method |
Also Published As
Publication number | Publication date |
---|---|
CN102098568A (en) | 2011-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102971688B (en) | Cross-platform program frame | |
CN103744709B (en) | patch loading method and device | |
CN107506221B (en) | Application program upgrading method, device and equipment | |
US7823197B2 (en) | Program execution device and program execution method | |
US8732723B2 (en) | Execution apparatus and method | |
JP6412276B2 (en) | Virtual machine creation method and apparatus | |
CN101251800B (en) | Graphical user interface creating method and apparatus | |
CN104349192A (en) | Factory and user data automatic programming method and system for intelligent television | |
CN103309709A (en) | Firmware upgrading method, device and communication equipment | |
CN102541609B (en) | Installation program manufacturing method, device and network device | |
CN105912350A (en) | Software adaption method and software adaption system compatible to a plurality of screen parameters | |
CN112181588A (en) | Application containerization method and device, electronic equipment and storage medium | |
CN102486733A (en) | Method and device for upgrading boot program | |
CN102938856B (en) | Software upgrading method and device of cardless conditional access system | |
CN106303707A (en) | A kind of version method for burn-recording, system and terminal | |
JP2010503054A (en) | Method and apparatus for binding a non-volatile storage device to a consumer product | |
CN113138790B (en) | Customized integration method and device for Android set top box and integrated development system for set top box | |
CN102098568B (en) | Television data cloning method | |
CN104133706A (en) | Firmware modifying method and device | |
CN108460254B (en) | Firmware protection method and device | |
CN100361075C (en) | Method and device for quickly developing embedded system using automatic compilation frame | |
JP2013084112A (en) | Programmable controller system, programming device thereof, programmable controller, program and debug method | |
CN109799776A (en) | Data configuration method and device | |
CN106778270B (en) | Malicious application detection method and system | |
CN106569829B (en) | Method for realizing switching of working modes of touch screen, touch screen device and head-mounted equipment |
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 |