CN100388230C - Camera programm inspecting and updating method - Google Patents

Camera programm inspecting and updating method Download PDF

Info

Publication number
CN100388230C
CN100388230C CNB2005100647116A CN200510064711A CN100388230C CN 100388230 C CN100388230 C CN 100388230C CN B2005100647116 A CNB2005100647116 A CN B2005100647116A CN 200510064711 A CN200510064711 A CN 200510064711A CN 100388230 C CN100388230 C CN 100388230C
Authority
CN
China
Prior art keywords
duplicate
camera
write
programm
counterpart
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
Application number
CNB2005100647116A
Other languages
Chinese (zh)
Other versions
CN1855065A (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

The present invention discloses a camera program inspecting and updating method which can be used for inspecting a crack part or an error part of a camera program and correcting the error part to ensure the normal operation of the camera. The method comprises the following steps that: a correct replica of the camera program is loaded to a buffer memory of the camera; the correct replica in the buffer memory is compared with a replica to be inspected in the camera memory; if an error part is found in the replica to be inspected, the error part is updated according to the correct replica.

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.This method comprises the following step:
One correct duplicate of this camera programm is loaded in the memory buffer of this camera;
Carry out a comparison step, i.e. this interior duplicate to be checked of this correct duplicate in this memory buffer and this storer relatively; And
Carry out a step of updating, even find an error section of this duplicate to be checked, then upgrade this error section according to this correct duplicate;
This error section is repeated described comparison step and described step of updating, till this error section is correct.
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.
Comprise 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;
Carry out a comparison step, i.e. relatively first duplicate in this memory buffer and the second interior duplicate of this storer; And
Carry out a step of updating, find that even the part of second duplicate is inconsistent with a corresponding part of this first duplicate, then this counterpart of this first duplicate is write again this part of this second duplicate;
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.
On the other hand, this update method comprises the following step:
One camera programm is write a memory buffer of a camera, produce one first duplicate of this camera programm;
Carry out a comparison step, be about to the storer that this first duplicate writes 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
Carry out a step of updating, it is inconsistent with this counterpart to find that even this writes part, then this counterpart is write this again and writes part;
This is write part repeat this write step again, till this writes part and this counterpart is consistent.
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 (7)

1. method that detects a camera programm, a duplicate to be checked of this camera programm is stored in the storer of a camera, and it is characterized in that: this method comprises the following step:
One correct duplicate of this camera programm is loaded in the memory buffer of this camera;
Carry out a comparison step, i.e. this interior duplicate to be checked of this correct duplicate in this memory buffer and this storer relatively; And
Carry out a step of updating, even find an error section of this duplicate to be checked, then upgrade this error section according to this correct duplicate;
This error section is repeated described comparison step and described step of updating, till this error section is correct.
2. 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.
3. method as claimed in claim 2 is characterized in that, the comparison unit is a byte.
4. the update method of a camera programm is characterized in that: comprise 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;
Carry out a comparison step, i.e. relatively first duplicate in this memory buffer and the second interior duplicate of this storer; And
Carry out a step of updating, find that even the part of second duplicate is inconsistent with a corresponding part of this first duplicate, then this counterpart of this first duplicate is write again this part of this second duplicate;
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.
5. update method as claimed in claim 4 is characterized in that: this comparison step is compared this first duplicate and this second duplicate one by one according to a comparison unit.
6. update method as claimed in claim 5 is characterized in that: this comparison unit is a byte.
7. the update method of a camera programm is characterized in that: comprise the following step:
One camera programm is write a memory buffer of a camera, produce one first duplicate of this camera programm;
Carry out a comparison step, be about to the storer that this first duplicate writes 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
Carry out a step of updating, it is inconsistent with this counterpart to find that even this writes part, then this counterpart is write this again and writes part;
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 CN1855065A (en) 2006-11-01
CN100388230C true 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)

Families Citing this family (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

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1044353A (en) * 1989-01-19 1990-08-01 惠普公司 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
US20030163763A1 (en) * 2002-02-27 2003-08-28 Eric Delano Checkpointing of register file
WO2003088041A1 (en) * 2002-04-16 2003-10-23 Thin Film Electronics Asa Methods for storing data in non-volatile memories
EP1435574A2 (en) * 2002-12-18 2004-07-07 STMicroelectronics S.r.l. A structure and method for detecting errors in a multilevel memory device with improved programming granularity

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1044353A (en) * 1989-01-19 1990-08-01 惠普公司 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
US20030163763A1 (en) * 2002-02-27 2003-08-28 Eric Delano Checkpointing of register file
WO2003088041A1 (en) * 2002-04-16 2003-10-23 Thin Film Electronics Asa Methods for storing data in non-volatile memories
EP1435574A2 (en) * 2002-12-18 2004-07-07 STMicroelectronics S.r.l. A structure and method for detecting errors in a multilevel memory device with improved programming granularity

Also Published As

Publication number Publication date
CN1855065A (en) 2006-11-01

Similar Documents

Publication Publication Date Title
US6976197B2 (en) Apparatus and method for error logging on a memory module
CN111880740B (en) Data processing method, device, computer system and readable storage medium
US8826080B2 (en) Methods and systems for preboot data verification
CN108132876B (en) Embedded software object code unit testing method based on injection mode
US7243260B2 (en) Programmable controller unit and method of automatically restoring memory
US6957377B2 (en) Marking of and searching for initial defective blocks in semiconductor memory
CN103026339B (en) The method and microcontroller and control device that software parameters in microcontroller are reconfigured
US6539338B1 (en) Self-diagnostic testing of a network interface adapter
US9934117B2 (en) Apparatus and method for fault detection to ensure device independence on a bus
CN100388230C (en) Camera programm inspecting and updating method
US8666642B2 (en) Memory corruption detection in engine control systems
US20190163380A1 (en) Rewriting checking device, rewriting checking method, and non-transitory computer readable medium for rewriting checking
CN114385418A (en) Protection method, device, equipment and storage medium for communication equipment
WO2018138816A1 (en) Test device, test method, and test program
JP2006059382A (en) Programmable controller unit and method of automatically restoring memory
CN107977315B (en) Embedded software object code unit testing method based on Bootloader mode
CN113238953A (en) UI automation test method and device, electronic equipment and storage medium
JP2002529813A (en) Storage device for storing data and method of operating a storage device for storing data
CN105551527A (en) Test circuit, test method and apparatus of CAM
US11600352B2 (en) Storage device
JP2013109532A (en) Device, method and program for diagnosis and restoration
CN116643978A (en) Terminal software version error correction method and device, electronic equipment and storage medium
CN101739271A (en) Starting-up method and application thereof
JPWO2009122699A1 (en) Test module, test apparatus and test method
CN115756936A (en) Kernel instruction adapting method and device, computer equipment and storage medium

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