CN1855065A - Camera programm inspecting and updating method - Google Patents

Camera programm inspecting and updating method Download PDF

Info

Publication number
CN1855065A
CN1855065A CN 200510064711 CN200510064711A CN1855065A CN 1855065 A CN1855065 A CN 1855065A CN 200510064711 CN200510064711 CN 200510064711 CN 200510064711 A CN200510064711 A CN 200510064711A CN 1855065 A CN1855065 A CN 1855065A
Authority
CN
China
Prior art keywords
duplicate
camera
write
programm
storer
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.)
Granted
Application number
CN 200510064711
Other languages
Chinese (zh)
Other versions
CN100388230C (en
Inventor
蔡忠育
陈淑惠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
PULIER SCIENCE AND TECHNOLOGY Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by PULIER SCIENCE AND TECHNOLOGY Co Ltd filed Critical PULIER SCIENCE AND TECHNOLOGY Co Ltd
Priority to CNB2005100647116A priority Critical patent/CN100388230C/en
Publication of CN1855065A publication Critical patent/CN1855065A/en
Application granted granted Critical
Publication of CN100388230C publication Critical patent/CN100388230C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Stored Programmes (AREA)

Abstract

A method for detecting and updating program of camera includes loading a correct copy of program of camera into buffer storage of camera, comparing correct copy in said buffer storage with copy to be detected in storage of camera and updating error porting according to correct copy if error portion in copy to be detected is discovered.

Description

The detection of camera programm and update method
Technical field
The present invention relates to camera programm, particularly a kind of detection of camera programm and update method.
Background technology
Digital camera has been very general digital product now, and it is a built-in master routine (maincode) usually, in order to the running of the every function of integration camera, and provides relevant operation-interface.General digital camera is before dispatching from the factory, and manufacturer can write master routine the storer (common as flash memory (flashmemory)) in the camera in advance.But, on production line, this ablation process may be because of accidental electric destruction, and the master routine part information that is write is damaged or mistake, causes camera taking place when machine or abnormal occurrence under the expection situation.
For this kind problem, in traditional method, mainly be by each batch shipment product is inspected by random samples, or the mechanism that adds summation inspection (checksum) in the design of master routine detect mistake.The way of sampling observation is to choose wherein sub-fraction by producing informant person from entire block, with regard to every its general function of the actual test of camera.If test process is found any problem, then need and will all upgrade master routine more once with batch product, there is not similar problem to guarantee other product of not taking a sample test yet.Can infer, so way will expend many heavy industrys (re-work) man-hours, have a strong impact on and produce line efficient.
On the other hand, if adopt the way of summation checking mechanism, then be in master routine, to add a checksum (being usually located at the program tail end).This checksum system is according to contents of program, uses any relevant algorithm (as MD5) to calculate and gets.When master routine is written into camera, also calculate a checksum simultaneously, treat that whole procedure all writes after, this checksum also calculates, again with the original check code comparison of itself and program tail end, if unanimity then representation program write errorless, if the inconsistent ablation process of then representing has the generation mistake.Yet the shortcoming of this kind way is: one for the part that can't know program error why, so must all write again once by whole master routine; Even two is the comparison result unanimity, can not guarantee entirely true mistake.That is out of question even summation is checked, master routine is carried out and still can be had problems.
Summary of the invention
The detection method that the purpose of this invention is to provide a kind of camera programm can detect the damage or the error section of camera programm, and at this error section corrigendum, to guarantee product quality.
This camera programm detection method can detect for the camera programm (being called duplicate to be checked) in the storer that has a camera.The method can comprise the following step: a memory buffer that a correct duplicate of this camera programm is loaded this camera; Relatively correct duplicate in this memory buffer and the interior duplicate to be checked of storer; And, then upgrade this error section according to correct duplicate if find an error section of duplicate to be checked.
Another object of the present invention provides a kind of update method of camera programm, can be used on the phase machine production line, significantly reduce to produce line heavy industry man-hour, reduces production costs.
This update method can comprise the following step: a camera programm is write a memory buffer of a camera, to produce one first duplicate of this camera programm; This first duplicate is write a storer of this camera, to produce one second duplicate of this camera programm; Compare first duplicate and the second interior duplicate of storer in the memory buffer; And, then this counterpart of first duplicate is write again this part of second duplicate if find that the part of second duplicate is inconsistent with a corresponding part of first duplicate.
On the other hand, this update method also can comprise following steps: a camera programm is write a memory buffer of a camera, produce one first duplicate of this camera programm; First duplicate is write a storer of this camera, produce one second duplicate of this camera programm, wherein, whenever write a part, promptly relatively this of storer writes the counterpart of part and first duplicate; And inconsistent if find that this writes part with this counterpart, then this counterpart is write this again and write part.
The present invention is described in detail below in conjunction with accompanying drawing.
Description of drawings
Fig. 1 is the process flow diagram of a preferred embodiment of camera programm detection method of the present invention;
Fig. 2 A to Fig. 2 D is respectively the synoptic diagram of the implementation of Fig. 1 embodiment;
Fig. 3 is the process flow diagram of a preferred embodiment of camera programm update method of the present invention;
Fig. 4 is the process flow diagram of another preferred embodiment of camera programm update method of the present invention.
Description of reference numerals: the flow process of a preferred embodiment of 11~14-camera programm detection method; The 2-camera; The 21-memory buffer; The 22-storer; 23-program source; The flow process of one preferred embodiment of 31~35-camera programm update method; The flow process of another preferred embodiment of 41~44-camera programm update method.
Embodiment
Fig. 1 is the process flow diagram of a preferred embodiment of camera programm detection method of the present invention.In this embodiment, this detection method is in order to detect a camera master routine.One duplicate to be checked of this master routine is stored in the storer of a camera.This storer can be the flash memory of a NAND type or NOR type.As shown in Figure 1, this flow process comprises the following step:
Step 11 a: memory buffer that a correct duplicate of this master routine is loaded this camera;
Step 12: compare correct duplicate and the interior duplicate to be checked of storer in the memory buffer;
Step 13:, then upgrade this error section according to correct duplicate if find an error section of duplicate to be checked; And
Step 14: to this error section repeated execution of steps 12 and 13, till this error section is correct.
In abovementioned steps, this memory buffer can be a synchronous dynamic RAM (SDRAM), to accelerate access speed.In the step 12, when the comparison carried out between correct duplicate and duplicate to be checked,, compare the counterpart of two duplicates one by one according to a comparison unit, whether consistent to check both.In the embodiment in figure 1, with the byte be the comparison unit.If find the vicious byte of duplicate to be checked, that is this byte is inconsistent with the corresponding byte of correct duplicate, and then step 13 is just with the corresponding byte of correct duplicate write store again, to upgrade this error byte.Then, in step 14, can compare again to error section, errorless to guarantee.And if still wrong, then more correct program data is write again, mode is carried out repeatedly according to this, all is corrected as until all error sections and ends.
Fig. 2 A to Fig. 2 D is the synoptic diagram of the implementation of Fig. 1 embodiment.At first, shown in Fig. 2 A, have memory buffer 21 and storer 22 in the camera 2, and the latter stores the duplicate to be checked of camera master routine.Then, via the correct duplicate load buffer memory 21 of program source 23 (as the SD memory cards), shown in Fig. 2 B with master routine.Coming, is unit with the byte again, from first to last compare one by one between two duplicates whether consistent, shown in Fig. 2 C.At last, if find the vicious byte of duplicate to be checked (as the 5th byte among the figure), with corresponding byte correct in the memory buffer 21 write store 22 again, to correct this error byte, shown in Fig. 2 D.
Fig. 3 is the process flow diagram of a preferred embodiment of camera programm update method of the present invention.In this embodiment, this update method is in order to upgrade the master routine of a camera.As shown in Figure 3, this flow process comprises the following step:
Step 31: this master routine is write a memory buffer of camera, to produce one first duplicate of this master routine;
Step 32: this first duplicate is write a storer of camera, to produce one second duplicate of this master routine;
Step 33: relatively first duplicate in this memory buffer and the second interior duplicate of this storer;
Step 34:, then this counterpart of first duplicate is write again this part of second duplicate if find that the part of second duplicate is inconsistent with a corresponding part of this first duplicate; And
Step 35: to this part repeated execution of steps 33 and 34 of second duplicate, until this part with till this counterpart of first duplicate is consistent.
In the abovementioned steps, memory buffer can be a synchronous dynamic RAM (SDRAM), and storer can be the flash memory of a NAND type or NOR type.In the step 33, when the comparison carried out between first and second duplicate,, compare the counterpart of two duplicates one by one according to a comparison unit, whether consistent to check both.In the embodiments of figure 3, with the byte be the comparison unit.If find second duplicate byte that is not inconsistent is arranged, that is this byte is inconsistent with the corresponding byte of first duplicate, then step 34 is just with the corresponding byte of first duplicate write store again, to upgrade the byte that this is not inconsistent.Then, in step 35, can compare again to the part that is not inconsistent that second duplicate upgraded, errorless to guarantee.And if still have and be not inconsistent, then again the counterpart of first duplicate is write again, mode is carried out repeatedly according to this, is not inconsistent part all till the unanimity until all.
Fig. 4 is the process flow diagram of another preferred embodiment of camera programm update method of the present invention.In this embodiment, this update method is to upgrade the master routine of a camera.As shown in Figure 4, this flow process comprises the following step:
Step 41: this master routine is write a memory buffer of camera, produce one first duplicate of this master routine;
Step 42: this first duplicate is write a storer of camera,, wherein, whenever write a part, be i.e. the counterpart that writes part and first duplicate of this storer relatively to produce one second duplicate of this master routine;
Step 43: judge whether this writes part consistent with this counterpart, carries out writing of further part if unanimity is then got back to step 42, if the inconsistent next step that then carries out; And
Step 44: this counterpart is write this again write part, whether rebound step 43 rejudges consistent again.
Similar with the embodiment of Fig. 3, in the abovementioned steps, memory buffer can be a synchronous dynamic RAM (SDRAM), and storer can be the flash memory of a NAND type or NOR type.In addition, writing size partly then is a byte.
With the main difference of Fig. 3 embodiment be in, step 42 whenever writes a part to 44, just compares with the counterpart in the script memory buffer to writing part, if inconsistently promptly write again, after both unanimities, just then carry out the write activity of further part.The embodiment of Fig. 3 is then with behind the master routine write once memory, just carries out comparison between first and second duplicate and follow-up write activity again.

Claims (10)

1, a kind of method of detection one camera programm, a duplicate to be checked of this camera programm is stored in the storer of a camera, and this method comprises the following step:
One correct duplicate of this camera programm is loaded in the memory buffer of this camera;
This interior duplicate to be checked of this correct duplicate in this memory buffer and this storer relatively; And
If find an error section of this duplicate to be checked, then upgrade this error section according to this correct duplicate.
2, the method for claim 1 also comprises:
This error section is repeated described comparison step and described step of updating, till this error section is correct.
3, the method for claim 1 is characterized in that, comparison step is compared the counterpart of this correct duplicate and this duplicate to be checked one by one according to a comparison unit.
4, method as claimed in claim 3 is characterized in that, the comparison unit is a byte.
5, a kind of update method of camera programm comprises the following step:
One camera programm is write a memory buffer of a camera, to produce one first duplicate of this camera programm;
This first duplicate is write a storer of this camera, to produce one second duplicate of this camera programm;
Relatively first duplicate in this memory buffer and the second interior duplicate of this storer; And
If find that the part of second duplicate is inconsistent with a corresponding part of this first duplicate, then this counterpart of this first duplicate write again this part of this second duplicate.
6, update method as claimed in claim 5 also comprises:
This part to this second duplicate repeats described comparison step and described step of updating, until this part with till this counterpart of this first duplicate is consistent.
7, update method as claimed in claim 5, wherein this comparison step is compared this first duplicate and this second duplicate one by one according to a comparison unit.
8, update method as claimed in claim 7, wherein this comparison unit is a byte.
9, a kind of update method of camera programm comprises the following step:
One camera programm is write a memory buffer of a camera, produce one first duplicate of this camera programm;
This first duplicate is write a storer of this camera, produce one second duplicate of this camera programm, wherein, whenever write a part, then relatively this of this storer writes the counterpart of part and this first duplicate; And
If it is inconsistent with this counterpart to find that this writes part, then this counterpart is write this again and write part.
10, update method as claimed in claim 9 also comprises:
This is write part repeat this write step again, till this writes part and this counterpart is consistent.
CNB2005100647116A 2005-04-18 2005-04-18 Camera programm inspecting and updating method Expired - Fee Related CN100388230C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100647116A CN100388230C (en) 2005-04-18 2005-04-18 Camera programm inspecting and updating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100647116A CN100388230C (en) 2005-04-18 2005-04-18 Camera programm inspecting and updating method

Publications (2)

Publication Number Publication Date
CN1855065A true CN1855065A (en) 2006-11-01
CN100388230C CN100388230C (en) 2008-05-14

Family

ID=37195248

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100647116A Expired - Fee Related CN100388230C (en) 2005-04-18 2005-04-18 Camera programm inspecting and updating method

Country Status (1)

Country Link
CN (1) CN100388230C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105116244A (en) * 2015-07-20 2015-12-02 柳州好顺科技有限公司 Electronic product testing device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5060286A (en) * 1989-01-19 1991-10-22 Hewlett-Packard Company Raster row and byte group graphics images data compression method
US6308265B1 (en) * 1998-09-30 2001-10-23 Phoenix Technologies Ltd. Protection of boot block code while allowing write accesses to the boot block
JP2003140982A (en) * 2001-11-02 2003-05-16 Casio Comput Co Ltd Electronic equipment and data modification program
US6941489B2 (en) * 2002-02-27 2005-09-06 Hewlett-Packard Development Company, L.P. Checkpointing of register file
NO315959B1 (en) * 2002-04-16 2003-11-17 Thin Film Electronics Asa Procedures for storing data in a non-volatile memory
ITMI20022669A1 (en) * 2002-12-18 2004-06-19 Simicroelectronics S R L STRUCTURE AND METHOD OF DETECTION ERRORS IN A DEVICE

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105116244A (en) * 2015-07-20 2015-12-02 柳州好顺科技有限公司 Electronic product testing device

Also Published As

Publication number Publication date
CN100388230C (en) 2008-05-14

Similar Documents

Publication Publication Date Title
US8261242B2 (en) Assisting debug memory tracing using an instruction array that tracks the addresses of instructions modifying user specified objects
US8291379B2 (en) Runtime analysis of a computer program to identify improper memory accesses that cause further problems
US7962832B2 (en) Method for detecting memory error
US6976197B2 (en) Apparatus and method for error logging on a memory module
US20130262936A1 (en) Assessing computer programs using stack frame signatures
TWI630618B (en) Systems and methods for testing and assembling memory modules
CN101382914B (en) Testing method and device for software update file
CN1547215A (en) ROM circuit capable of debugging and updating and method of debugging and updating
JP2012221488A (en) System and method for handling bad bit errors
CN111124921B (en) Method, device, equipment and storage medium for detecting memory boundary crossing
CN101051220A (en) Method for centralization of process sequence checking
CN116627848B (en) Automatic test method and system for application program
CN114385418A (en) Protection method, device, equipment and storage medium for communication equipment
CN1499374A (en) Automatic approach for unit testing
CN1855065A (en) Camera programm inspecting and updating method
US20080281777A1 (en) Complex datastore with bitmap checking
CN1921019A (en) Method for testing storage by data compressing treatment
CN113742252B (en) Method and device for detecting memory disorder
CN1831785A (en) Micro processor and method using in firmware program debug
JP2002529813A (en) Storage device for storing data and method of operating a storage device for storing data
CN116913364B (en) Flash memory read interference test method and system, electronic equipment and storage medium
CN1194296C (en) Method for replacing flexible part in computer system
CN1194299C (en) Dynamic memory function test method
CN113407372B (en) Method and system for detecting memory of computer system independent of operating system
CN115202843A (en) Data loading method and 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
ASS Succession or assignment of patent right

Owner name: HONGFUJIN PRECISION INDUSTRY (SHENZHEN) CO., LTD.

Free format text: FORMER OWNER: PULIER SCI-TECH CO., LTD.

Effective date: 20090626

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20090626

Address after: No. two, 2 East Ring Road, tenth Pine Industrial Zone, Longhua Town, Guangdong City, Shenzhen Province, China: 518109

Co-patentee after: Hon Hai Precision Industry Co., Ltd.

Patentee after: Fujin Precision Industry (Shenzhen) Co., Ltd.

Address before: Taiwan, China

Patentee before: Pulier Science and Technology Co., Ltd.

C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080514

Termination date: 20100418