CN114449254A - High-accuracy camera module OTP (one time programmable) burning method and system - Google Patents

High-accuracy camera module OTP (one time programmable) burning method and system Download PDF

Info

Publication number
CN114449254A
CN114449254A CN202111643901.9A CN202111643901A CN114449254A CN 114449254 A CN114449254 A CN 114449254A CN 202111643901 A CN202111643901 A CN 202111643901A CN 114449254 A CN114449254 A CN 114449254A
Authority
CN
China
Prior art keywords
burning
value
address
burned
burnt
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
Application number
CN202111643901.9A
Other languages
Chinese (zh)
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.)
Kunshanqiu Titanium Photoelectric Technology Co Ltd
Original Assignee
Kunshanqiu Titanium Photoelectric 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 Kunshanqiu Titanium Photoelectric Technology Co Ltd filed Critical Kunshanqiu Titanium Photoelectric Technology Co Ltd
Priority to CN202111643901.9A priority Critical patent/CN114449254A/en
Publication of CN114449254A publication Critical patent/CN114449254A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a high-accuracy OTP (one time programmable) burning method and system for a camera module. After the burning is finished, the burnt value corresponding to each burning address is read from the internal storage space of the camera module and stored in the temporary map container, the data in the burning map container is compared with the data in the temporary map container, whether the value to be burnt corresponding to each burning address is the same as the burnt value is judged, the burning address with the value to be burnt different from the burnt value is set as a target address, the value to be burnt corresponding to the target address is read from the burning map container, the target address and the value to be burnt corresponding to the target address are stored in the burning supplementing map container, the data in the burning supplementing map container is burnt, and the OTP burning accuracy of the camera module is improved.

Description

High-accuracy camera module OTP (one time programmable) burning method and system
Technical Field
The invention relates to the technical field of OTP (one time programmable) burning, in particular to a high-accuracy OTP burning method and system for a camera module.
Background
OTP (One Time programming) is a medium for storing data, and its low price makes it more and more widely used in the camera module manufacturing industry. The module manufacturer can store the original calibration data of the image in the OTP for the tuning debugging of the mobile phone terminal, and finally good imaging experience can be obtained. The OTP of the image sensor generally adopts a fusing structure, and the burning process is irreversible.
The OTP is mostly burned through the IIC communication protocol, the requirement for the resistance of the IIC pull-up resistor of the test burning device is relatively high, and the large or small pull-up resistor or the instable voltage may cause the fuse structure at some bits to be not completely blown during the burning process, thereby causing the problem of burning error. The slight variation of the burning data of the camera module can cause the difference of the imaging effect, which means the rejection of the module. Therefore, how to ensure the integrity of the initial calibration data stored in the OTP of the camera module and improve the burn yield of the module becomes a problem to be solved urgently by module manufacturers.
Disclosure of Invention
The invention provides the camera module OTP burning method and the camera module OTP burning system with high accuracy, and solves the technical problem of how to improve the OTP burning accuracy of the camera module.
On one hand, the invention provides the following technical scheme:
a high-accuracy OTP burning method for a camera module comprises the following steps:
acquiring various test data of the camera module;
determining a target group burning space of the camera module OTP;
acquiring each value to be burned in the test data and a burning address in the target set burning space corresponding to each value to be burned;
storing each burning address and the corresponding value to be burned into a burning map container, and burning the data in the burning map container in batch according to the burning writing operation timing of the camera module;
after the batch burning is finished, reading a burned value corresponding to each burning address from an internal storage space of the camera module and storing the burned value into a temporary map container, comparing data in the burning map container with data in the temporary map container, and judging whether the value to be burned corresponding to each burning address is the same as the burned value;
setting the burning address with the value to be burned different from the burnt value as a target address, reading the value to be burned corresponding to the target address from the burning map container, storing the target address and the value to be burned corresponding to the target address into a supplementary burning map container, and conducting supplementary burning on data in the supplementary burning map container.
Preferably, the setting the burning address where the value to be burned is different from the burned value as a target address, reading the value to be burned corresponding to the target address from the burning map container, storing the target address and the value to be burned corresponding to the target address into an additional burning map container, and performing additional burning on data in the additional burning map container, further includes:
and repeating the complementary burning until the value to be burned corresponding to each burning address is the same as the burnt value or the total burning duration exceeds the preset duration.
Preferably, the determining the target group burning space of the camera module OTP includes:
reading a burning zone bit of a burning space from the last group of burning space of the camera module OTP;
if the recording flag bit of the current recording space is empty, reading the recording flag bit of the previous recording space;
and if the burning zone bit of the current set of burning space is empty and the burning zone bit of the previous set of burning space is effective, determining the current set of burning space as the target set of burning space.
Preferably, the acquiring each value to be burned in the test data and the burning address in the target group burning space corresponding to each value to be burned includes:
storing the test data to the opened shared memory area;
downloading the test data from the shared memory area, analyzing the test data into a burning mapping table comprising a plurality of key value pairs, wherein each key value pair consists of one burning address and the value to be burned corresponding to the burning address, serializing the burning mapping table and storing the serialized burning mapping table into the shared memory area;
and downloading the key value pairs in the burning mapping table from the shared memory area, and deserializing the key value pairs to obtain each burning address and the value to be burned corresponding to each burning address.
Preferably, the downloading the test data from the shared memory area, analyzing the test data into a burning mapping table including a plurality of key value pairs, each key value pair being composed of one burning address and the value to be burned corresponding to the burning address, serializing the burning mapping table and storing the serialized burning mapping table into the shared memory area, and then acquiring each value to be burned in the test data and the burning address in the target group space corresponding to each value to be burned, further includes:
uploading the key-value pair to a cloud server;
setting the burning address with the value to be burned different from the burnt value as a target address, reading the value to be burned corresponding to the target address from the burning map container, storing the target address and the value to be burned corresponding to the target address into an additional burning map container, and performing additional burning on data in the additional burning map container, and then further comprising:
after the supplementary burning is finished, reading the burnt values corresponding to all the burning addresses, carrying out corresponding fixed value and Checksum check, downloading the key value pair from the cloud server if an error occurs, obtaining each burning address and the value to be burnt corresponding to the burning address according to the key value pair, and carrying out the supplementary burning on the burning address different from the burnt value and the value to be burnt corresponding to the burning address until the value to be burnt corresponding to each burning address is the same as the burnt value.
On the other hand, the invention also provides the following technical scheme:
the utility model provides a camera module OTP burns record system that accuracy is high, includes:
the test data acquisition module is used for acquiring various test data of the camera module;
the burning space determining module is used for determining a target set burning space of the camera module OTP;
the burning data acquisition module is used for acquiring each value to be burnt in the test data and a burning address in the target group burning space corresponding to each value to be burnt;
the burning data burning module is used for storing each burning address and the corresponding value to be burned to a burning map container and burning the data in the burning map container in batch according to the burning writing operation time sequence of the camera module;
the burning error recognition module is used for reading a burned value corresponding to each burning address from an internal storage space of the camera module after the batch burning is finished, storing the burned value into a temporary map container, comparing data in the burning map container with data in the temporary map container, and judging whether the value to be burned corresponding to each burning address is the same as the burned value or not;
and the burning data supplementary burning module is used for setting the burning address with the value to be burned and the burnt value different from the burnt value as a target address, reading the value to be burned corresponding to the target address from the burning map container, storing the target address and the value to be burned corresponding to the target address into the supplementary burning map container, and conducting supplementary burning on data in the supplementary burning map container.
Preferably, the burning data obtaining module is further configured to:
storing the test data to the opened shared memory area;
downloading the test data from the shared memory area, analyzing the test data into a burning mapping table comprising a plurality of key value pairs, wherein each key value pair consists of one burning address and the value to be burned corresponding to the burning address, serializing the burning mapping table and storing the serialized burning mapping table into the shared memory area;
and downloading the key value pairs in the burning mapping table from the shared memory area, and deserializing the key value pairs to obtain each burning address and the value to be burned corresponding to each burning address.
Preferably, the burning data obtaining module is further configured to:
uploading the key-value pair to a cloud server;
the camera module OTP burns record system still includes:
and the burning data detection module is used for reading the burnt values corresponding to all the burning addresses after the supplementary burning is finished, carrying out corresponding fixed value and Checksum summation check, downloading the key value pairs from the cloud server if an error occurs, obtaining each burning address and the value to be burnt corresponding to the burning address according to the key value pairs, and carrying out the supplementary burning on the burning addresses with the values to be burnt different from the burnt values and the values to be burnt corresponding to the burning addresses until the values to be burnt corresponding to the burning addresses are the same as the burnt values.
On the other hand, the invention also provides the following technical scheme:
an electronic device comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the program, any one of the high-accuracy camera module OTP burning methods is realized.
On the other hand, the invention also provides the following technical scheme:
a computer readable storage medium, which when executed, implements any of the above-mentioned high-accuracy camera module OTP burning methods.
One or more technical schemes provided by the invention at least have the following technical effects or advantages:
after the burning is finished, the burned value corresponding to each burning address is read from the internal storage space of the camera module and stored in the temporary map container, the data in the burning map container is compared with the data in the temporary map container, whether the value to be burned corresponding to each burning address is the same as the burned value is judged, the burning address with the value to be burned different from the burned value is set as a target address, the value to be burned corresponding to the target address is read from the burning map container, the target address and the value to be burned corresponding to the target address are stored in the burning supplement map container, the data in the burning supplement map container is burned, and the accuracy of the OTP burning of the camera module is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a flowchart of an OTP recording method for a camera module with high accuracy according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a high-accuracy OTP burning system for a camera module according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides the camera module OTP burning method and the camera module OTP burning system with high accuracy, and solves the technical problem of how to improve the OTP burning accuracy of the camera module.
In order to better understand the technical scheme of the invention, the technical scheme of the invention is described in detail in the following with the accompanying drawings and specific implementation modes of the specification.
First, it is stated that the term "and/or" appearing herein is merely an associative relationship that describes an associated object, meaning that three relationships may exist, e.g., A and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates a relationship in which the former and latter associated objects are an "or".
As shown in fig. 1, the method for OTP burning of a camera module with high accuracy of this embodiment includes:
step S1, acquiring various test data of the camera module;
step S2, determining a target set burning space of the camera module OTP;
step S3, acquiring each value to be burned in the test data and a burning address in a target group burning space corresponding to each value to be burned;
step S4, storing each burning address and the corresponding value to be burned into the burning map container, and burning the data in the burning map container in batch according to the burning writing operation time sequence of the camera module;
step S5, after the batch burning is finished, reading the burned value corresponding to each burning address from the internal storage space of the camera module and storing the burned value in the temporary map container, comparing the data in the burning map container with the data in the temporary map container, and judging whether the value to be burned corresponding to each burning address is the same as the burned value;
and step S6, setting the burning address with the value to be burned different from the burnt value as a target address, reading the value to be burned corresponding to the target address from the burning map container, storing the target address and the value to be burned corresponding to the target address into the supplementary burning map container, and conducting supplementary burning on the data in the supplementary burning map container.
In step S1, the camera module needs to perform various function calibration tests under different light sources and external device environments, the memory format of the test Data obtained by the various tests of the camera module is as follows, Key1, Key2, and Key3 are used to identify and distinguish different tests, the Data field is used to store array Data of the tests, and there are multiple groups of keys different from each other and their corresponding values in the Data.
Figure BDA0003444500190000071
In step S2, the camera module OTP has multiple sets of recording spaces, each set of recording spaces is used for recording and storing data, it is possible that some sets of recording spaces already store recording data, another set of recording spaces do not store recording data, and the target set of recording spaces is the first recording space behind the first set of recording spaces (including the first set of recording spaces) where no recording data is stored. Therefore, when determining the target set of recording spaces, it is necessary to determine whether each set of recording spaces already stores recording data and identify the first sequential recording space in the recording spaces not storing recording data, so that step S2 includes:
reading a burning mark bit of the burning space from the last group of burning space of the camera module OTP;
if the recording flag bit of the current recording space is empty, reading the recording flag bit of the previous recording space;
if the recording flag bit of the current recording space is empty and the recording flag bit of the previous recording space is valid, the current recording space is determined as the target recording space.
The recording flag bit of the current recording space is valid and represents that the current recording space stores recording data, so that the current recording space cannot be used as the target recording space; the current set of recording space has a null recording flag, which represents that the current set of recording space does not store recording data, and it is necessary to determine whether the current set of recording space is the first recording space not storing recording data, and the current set of recording space has a null recording flag and the previous set of recording space is valid, and represents that the current set of recording space is the first recording space not storing recording data, and then the current set of recording space is determined as the target set of recording space.
Certainly, the recording flag of the recording space may be read from the first recording space of the camera module OTP, if the recording flag of the current recording space is valid, the recording flag of the next recording space is read, and if the recording flag of the current recording space is valid and the recording flag of the next recording space is empty, the current recording space is determined as the target recording space.
In this embodiment, the data burning involves different functional modules, and the burning data is required for all the different functional modules, and in order to facilitate the reading of the burning data by the different functional modules, the preferable step S3 includes:
storing the test data to the opened shared memory area;
downloading test data from the shared memory area, analyzing the test data into a burning mapping table comprising a plurality of key value pairs, wherein each key value pair consists of a burning address and a value to be burned corresponding to the burning address, and storing the burning mapping table into the shared memory area after serialization;
and downloading the key value pairs in the burning mapping table from the shared memory area, and deserializing the key value pairs to obtain each burning address and the value to be burned corresponding to each burning address.
In step S3, the testing function module will open up a shared memory area, the testing data of the camera module will be uniformly packed and then stored in the designated key value in the shared memory area in the memory format of step S1, the parsing function module downloads the profiles testing data from the designated key value in the shared memory area, then, analyzing the profiles test data into the key pair form of the burning address and the burning mapping table of the value to be burned according to the preset splitting rule and the burning address of the target group burning space, wherein the splitting rule comprises high-low splitting, low-high splitting, ASCII splitting, floating point four-byte splitting and the like, the burning mapping table is stored to a shared memory area after being serialized, a burning function module downloads the key pair in the burning mapping table from the shared memory area, and deserializing the key value pairs to obtain each burning address and a value to be burned corresponding to each burning address. Therefore, the test data and the burning data are stored in the shared memory area, and different functional modules can read the burning data conveniently.
In step S4, after each burning address and the corresponding value to be burned are stored in the burning map container, the burning map container with the burning address and the value to be burned can be obtained as shown below. And then, carrying out batch burning on the data in the burning map container through IIC communication according to the burning writing operation time sequence of the camera module.
Figure BDA0003444500190000091
It is easy to think that some unpredictable errors may occur in the batch burning process, which results in the failure of fusing certain bit position and causes the burning error of certain data, so that the read burned value is different from the value to be burned before burning, and the data with burning error needs to be identified so as to be burned again. In step S5, after the batch burning is completed, delaying a certain time, reading the burned value corresponding to each burning address from the internal storage space of the camera module and storing the value in the temporary map container, comparing the data in the burning map container with the data in the temporary map container, determining whether the value to be burned corresponding to each burning address is the same as the burned value, if the value to be burned corresponding to a certain burning address is the same as the burned value, it means that the value to be burned corresponding to the burning address has no burning error, and if the value to be burned corresponding to a certain burning address is different from the burned value, it means that the value to be burned corresponding to the burning address has a burning error.
In step S6, after the recording error data is identified, the recording error data can be re-recorded, so that the value to be recorded corresponding to each recording address after re-recording is the same as the recorded value, thereby improving the accuracy of OTP recording of the camera module.
Of course, if step S6 is regarded as a complementary burning, the data with the wrong burning may still exist after the complementary burning, and it is necessary to burn all the data correctly through the multiple complementary burning. Therefore, in this embodiment, after the step S6 is preferably selected, the method for OTP burning of a camera module with high accuracy further includes:
and repeating the additional burning until the value to be burned corresponding to each burning address is the same as the burnt value or the total burning duration exceeds the preset duration.
After the supplementary burning is performed for a certain time, reading a burned value corresponding to each target address from the internal storage space of the camera module and storing the burned value into the temporary map container, comparing the data in the supplementary burning and recording map container with the data in the temporary map container, judging whether the value to be burned corresponding to each target address is the same as the burned value, setting the target address with the value different from the burned value as a new target address, reading the value to be burned corresponding to the new target address from the supplementary burning and recording map container, storing the new target address and the value to be burned corresponding to the new target address into the supplementary burning and recording map container, and burning and supplementing the data in the supplementary burning and recording map container. Certainly, the total burning duration is not allowed to exceed the preset duration in the data burning process, and if the total burning duration exceeds the preset duration after the burning is supplemented for many times, the supplementary burning needs to be stopped even if the values to be burned corresponding to certain burning addresses are different from the burnt values. Therefore, the accuracy of OTP burning of the camera module can be improved as much as possible.
In this embodiment, the burning supplement may allow the value to be burned corresponding to each burning address to be the same as the burned value, but the burning supplement may have variation of the burned value after the burning supplement is completed, which may cause a burning error of data, and thus the varied data needs to be identified by detecting the data after burning supplement. For this purpose, the present embodiment preferably: after the step of downloading the test data from the shared memory area, analyzing the test data into a burning mapping table including a plurality of key value pairs, where each key value pair is composed of a burning address and a value to be burned corresponding to the burning address, and storing the burning mapping table after being serialized into the shared memory area, the step S3 further includes: uploading the key-value pairs to a cloud server;
the camera module OTP burning method with high accuracy further includes the following steps that the additional burning is repeatedly performed until the value to be burned corresponding to each burning address is the same as the burned value or the total burning duration exceeds the preset duration:
and after the complementary burning is finished, reading the burned values corresponding to all burning addresses, carrying out corresponding fixed value and Checksum summation check, downloading a key value pair from the cloud server if an error occurs, obtaining each burning address and the value to be burned corresponding to the burning address according to the key value pair, and carrying out complementary burning on the burning addresses with different values to be burned and the burned values and the corresponding values to be burned until the value to be burned corresponding to each burning address is the same as the burned value.
Therefore, whether the burning error is caused or not can be detected again after the burning supplement is finished, the burning supplement is carried out on the data with the burning error again, and the accuracy of the OTP burning of the camera module is further improved.
As shown in fig. 2, the present embodiment further provides a high accuracy OTP burning system for a camera module, which includes:
the test data acquisition module is used for acquiring various test data of the camera module;
the burning space determining module is used for determining a target set burning space of the camera module OTP;
the device comprises a burning data acquisition module, a data storage module and a data processing module, wherein the burning data acquisition module is used for acquiring each value to be burned in the test data and a burning address in a target group burning space corresponding to each value to be burned;
the burning data burning module is used for storing each burning address and the corresponding value to be burned to a burning map container and burning the data in the burning map container in batch according to the burning writing operation sequence of the camera module;
the burning error identification module is used for reading a burnt value corresponding to each burning address from the internal storage space of the camera module after the batch burning is finished and storing the burnt value into a temporary map container, comparing the data in the burning map container with the data in the temporary map container and judging whether the value to be burnt corresponding to each burning address is the same as the burnt value or not;
and the burning data supplementary burning and recording module is used for setting a burning address with a value to be burned different from the burnt value as a target address, reading the value to be burned corresponding to the target address from the burning map container, storing the target address and the value to be burned corresponding to the target address into the supplementary burning and recording map container, and conducting supplementary burning and recording on data in the supplementary burning and recording map container.
After the burning is finished, the burned value corresponding to each burning address is read from the internal storage space of the camera module and stored in the temporary map container, the data in the burning map container is compared with the data in the temporary map container, whether the value to be burned corresponding to each burning address is the same as the burned value is judged, the burning address with the value to be burned different from the burned value is set as the target address, the value to be burned corresponding to the target address is read from the burning map container, the target address and the value to be burned corresponding to the target address are stored in the burning supplementing map container, the data in the burning supplementing map container is subjected to burning supplementing, and the accuracy of the OTP burning of the camera module is improved.
Further, the burning data obtaining module is further configured to:
storing the test data to the opened shared memory area;
downloading test data from the shared memory area, analyzing the test data into a burning mapping table comprising a plurality of key value pairs, wherein each key value pair consists of a burning address and a value to be burned corresponding to the burning address, and storing the burning mapping table into the shared memory area after serialization;
and downloading the key value pairs in the burning mapping table from the shared memory area, and deserializing the key value pairs to obtain each burning address and the value to be burned corresponding to each burning address.
The burning data acquisition module stores the test data and the burning data to the shared memory area, and is beneficial to reading the burning data by different functional modules.
Further, the burning data obtaining module is further configured to:
uploading the key-value pairs to a cloud server;
the camera module OTP burns record system still includes:
and the burning data detection module is used for reading the burnt values corresponding to all burning addresses after the burning to be complemented is finished, carrying out corresponding fixed value and Checksum check, downloading a key value pair from the cloud server if an error occurs, obtaining each burning address and the value to be burnt corresponding to the burning address according to the key value pair, and carrying out complementary burning on the burning addresses with different values to be burnt and the corresponding values to be burnt until the value to be burnt corresponding to each burning address is the same as the burnt value.
Therefore, whether the burning error is caused or not can be detected again after the burning supplement is finished, the burning supplement is carried out on the data with the burning error again, and the accuracy of the OTP burning of the camera module is further improved.
Based on the same inventive concept as the above-mentioned high-accuracy OTP burning method for camera modules, this embodiment further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, where the processor executes the program to implement the steps of any one of the above-mentioned high-accuracy OTP burning methods for camera modules.
Where a bus architecture (represented by a bus) is used, the bus may comprise any number of interconnected buses and bridges that link together various circuits including one or more processors, represented by a processor, and memory, represented by a memory. The bus may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the receiver and transmitter. The receiver and transmitter may be the same element, i.e., a transceiver, providing a means for communicating with various other apparatus over a transmission medium. The processor is responsible for managing the bus and general processing, while the memory may be used for storing data used by the processor in performing operations.
Since the electronic device described in this embodiment is an electronic device used for implementing the method for burning an OTP of a camera module with high accuracy in the embodiment of the present invention, based on the method for burning an OTP of a camera module with high accuracy described in the embodiment of the present invention, a person skilled in the art can understand the specific implementation manner and various variations of the electronic device of this embodiment, so that a detailed description of how to implement the method in the embodiment of the present invention by the electronic device is omitted here. As long as those skilled in the art implement the electronic device used in the OTP burning method of the camera module with high accuracy in the embodiment of the present invention, the electronic device is within the scope of the present invention.
Based on the same inventive concept as the camera module OTP burning method with high accuracy, the invention also provides a computer readable storage medium, and the computer readable storage medium can realize any camera module OTP burning method with high accuracy when being executed.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is intended to include such modifications and variations.

Claims (10)

1. The high-accuracy OTP burning method for the camera module is characterized by comprising the following steps of:
acquiring various test data of the camera module;
determining a target group burning space of the camera module OTP;
acquiring each value to be burned in the test data and a burning address in the target set burning space corresponding to each value to be burned;
storing each burning address and the corresponding value to be burned into a burning map container, and burning the data in the burning map container in batch according to the burning writing operation timing of the camera module;
after the batch burning is finished, reading a burned value corresponding to each burning address from an internal storage space of the camera module and storing the burned value into a temporary map container, comparing data in the burning map container with data in the temporary map container, and judging whether the value to be burned corresponding to each burning address is the same as the burned value or not;
setting the burning address with the value to be burned different from the burnt value as a target address, reading the value to be burned corresponding to the target address from the burning map container, storing the target address and the value to be burned corresponding to the target address into a supplementary burning map container, and conducting supplementary burning on data in the supplementary burning map container.
2. The method for OTP burning of a camera module according to claim 1, wherein the burning address with the value to be burned different from the burned value is set as a target address, the value to be burned corresponding to the target address is read from the burning map container, the target address and the value to be burned corresponding to the target address are stored in an additional burning map container, and the additional burning of the data in the additional burning map container is performed, and then the method further comprises:
and repeating the complementary burning until the value to be burned corresponding to each burning address is the same as the burnt value or the total burning duration exceeds the preset duration.
3. The method for OTP burning of a camera module according to claim 1, wherein the determining the target set burning space of the camera module OTP comprises:
reading a burning zone bit of a burning space from the last group of burning space of the camera module OTP;
if the recording flag bit of the current recording space is empty, reading the recording flag bit of the previous recording space;
and if the burning zone bit of the current set of burning space is empty and the burning zone bit of the previous set of burning space is valid, determining the current set of burning space as the target set of burning space.
4. The method for OTP recording of a camera module according to claim 1, wherein the obtaining each value to be recorded in the test data and the recording address in the recording space of the target set corresponding to each value to be recorded comprises:
storing the test data to the opened shared memory area;
downloading the test data from the shared memory area, analyzing the test data into a burning mapping table comprising a plurality of key value pairs, wherein each key value pair consists of one burning address and the value to be burned corresponding to the burning address, serializing the burning mapping table and storing the serialized burning mapping table into the shared memory area;
and downloading the key value pairs in the burning mapping table from the shared memory area, and deserializing the key value pairs to obtain each burning address and the value to be burned corresponding to each burning address.
5. The method of claim 4, wherein the downloading the test data from the shared memory area, parsing the test data into a burning mapping table comprising a plurality of key value pairs, each key value pair comprising one burning address and the value to be burned corresponding to the burning address, serializing the burning mapping table and storing the serialized burning mapping table in the shared memory area, and then obtaining each value to be burned in the test data and the burning address in the target group burning space corresponding to each value to be burned further comprises:
uploading the key-value pair to a cloud server;
setting the burning address with the value to be burned different from the burnt value as a target address, reading the value to be burned corresponding to the target address from the burning map container, storing the target address and the value to be burned corresponding to the target address into an additional burning map container, and performing additional burning on data in the additional burning map container, and then further comprising:
after the supplementary burning is finished, reading the burnt values corresponding to all the burning addresses, carrying out corresponding fixed value and Checksum check, downloading the key value pairs from the cloud server if an error occurs, obtaining each burning address and the value to be burnt corresponding to the burning address according to the key value pairs, and carrying out the supplementary burning on the burning addresses different from the burnt value and the value to be burnt corresponding to the burning addresses until the value to be burnt corresponding to each burning address is the same as the burnt value.
6. The utility model provides a camera module OTP burns record system that accuracy is high which characterized in that includes:
the test data acquisition module is used for acquiring various test data of the camera module;
the burning space determining module is used for determining a target set burning space of the camera module OTP;
the burning data acquisition module is used for acquiring each value to be burnt in the test data and a burning address in the target group burning space corresponding to each value to be burnt;
the burning data burning module is used for storing each burning address and the corresponding value to be burned to a burning map container and burning the data in the burning map container in batch according to the burning writing operation time sequence of the camera module;
the burning error identification module is used for reading a burnt value corresponding to each burning address from the internal storage space of the camera module after the batch burning is finished, storing the burnt value into a temporary map container, comparing data in the burning map container with data in the temporary map container, and judging whether the value to be burnt corresponding to each burning address is the same as the burnt value or not;
and the burning data supplementary burning module is used for setting the burning address with the value to be burned different from the burnt value as a target address, reading the value to be burned corresponding to the target address from the burning map container, storing the target address and the value to be burned corresponding to the target address into the supplementary burning map container, and conducting supplementary burning on the data in the supplementary burning map container.
7. The high-accuracy OTP burning system for camera modules as claimed in claim 6, wherein the burning data obtaining module is further configured to:
storing the test data to the opened shared memory area;
downloading the test data from the shared memory area, analyzing the test data into a burning mapping table comprising a plurality of key value pairs, wherein each key value pair consists of one burning address and the value to be burnt corresponding to the burning address, serializing the burning mapping table and storing the serialized burning mapping table into the shared memory area;
and downloading the key value pairs in the burning mapping table from the shared memory area, and deserializing the key value pairs to obtain each burning address and the value to be burned corresponding to each burning address.
8. The high-accuracy camera module OTP burning system according to claim 7, wherein the burning data obtaining module is further configured to:
uploading the key-value pair to a cloud server;
the camera module OTP burns record system still includes:
and the burning data detection module is used for reading the burnt values corresponding to all the burning addresses after the burning supplement is finished, carrying out corresponding fixed value and Checksum summation check, downloading the key value pair from the cloud server if an error occurs, obtaining each burning address and the value to be burnt corresponding to the burning address according to the key value pair, and carrying out the burning supplement on the burning addresses with the values to be burnt different from the burnt values and the values to be burnt corresponding to the burning addresses until the value to be burnt corresponding to each burning address is the same as the burnt value.
9. An electronic device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the high accuracy OTP burning method for camera modules according to any one of claims 1-5.
10. A computer-readable storage medium, which when executed, implements the high-accuracy OTP burning method for camera modules according to any one of claims 1 to 5.
CN202111643901.9A 2021-12-29 2021-12-29 High-accuracy camera module OTP (one time programmable) burning method and system Pending CN114449254A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111643901.9A CN114449254A (en) 2021-12-29 2021-12-29 High-accuracy camera module OTP (one time programmable) burning method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111643901.9A CN114449254A (en) 2021-12-29 2021-12-29 High-accuracy camera module OTP (one time programmable) burning method and system

Publications (1)

Publication Number Publication Date
CN114449254A true CN114449254A (en) 2022-05-06

Family

ID=81365931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111643901.9A Pending CN114449254A (en) 2021-12-29 2021-12-29 High-accuracy camera module OTP (one time programmable) burning method and system

Country Status (1)

Country Link
CN (1) CN114449254A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115002328A (en) * 2022-07-01 2022-09-02 江西盛泰精密光学有限公司 Camera module data burning fool-proof detection method and system
CN117979151A (en) * 2024-04-02 2024-05-03 南昌同兴达精密光电有限公司 Lens shading correction data processing method and system
WO2024124620A1 (en) * 2022-12-13 2024-06-20 宜宾市天珑通讯有限公司 Method for automatically inspecting otp data, and inspection device and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115002328A (en) * 2022-07-01 2022-09-02 江西盛泰精密光学有限公司 Camera module data burning fool-proof detection method and system
WO2024124620A1 (en) * 2022-12-13 2024-06-20 宜宾市天珑通讯有限公司 Method for automatically inspecting otp data, and inspection device and storage medium
CN117979151A (en) * 2024-04-02 2024-05-03 南昌同兴达精密光电有限公司 Lens shading correction data processing method and system
CN117979151B (en) * 2024-04-02 2024-06-04 南昌同兴达精密光电有限公司 Lens shading correction data processing method and system

Similar Documents

Publication Publication Date Title
CN114449254A (en) High-accuracy camera module OTP (one time programmable) burning method and system
CN110955661B (en) Data fusion method and device, readable storage medium and electronic equipment
CN107741903A (en) Application compatibility method of testing, device, computer equipment and storage medium
CN111104246B (en) Method, device, computer equipment and storage medium for improving verification efficiency of error detection and correction of DRAM
CN114281793A (en) Data verification method, device and system
CN111615688A (en) Assertion verification code binding method and device
WO2018188222A1 (en) A2l file merging method and device
CN112363936A (en) Method and device for testing differential coverage rate, computer equipment and storage medium
CN115827568B (en) Method for acquiring data of logic system design, electronic equipment and storage medium
CN111045948A (en) Method, apparatus and storage medium for checking interface signal between modules
CN115827636B (en) Method for storing and reading simulation data of logic system design from waveform database
US20080281777A1 (en) Complex datastore with bitmap checking
CN110806979A (en) Interface return value checking method, device, equipment and storage medium
CN114817218A (en) Data verification method and system, electronic device and readable storage medium
US20180039571A1 (en) Semiconductor test apparatus for controlling tester
US10055341B2 (en) To-be-stubbed target determining apparatus, to-be-stubbed target determining method and non-transitory recording medium storing to-be-stubbed target determining program
CN114579147A (en) Burning verification method and device, terminal equipment and storage medium
CN110489885B (en) Operation method, device and related product
CN114356061B (en) Power failure detection method, device, system and detection equipment
CN112579336B (en) Database exception recovery method and device, computing device and storage medium
CN109446100B (en) Method and device for managing script file of equipment
US20230221365A1 (en) Method and apparatus of testing circuit, and storage medium
CN108132951B (en) Data access method and data access device
CN116880963A (en) Method for detecting connection errors between multiple hardware simulation tools
CN118245312A (en) Time sequence data processing method, multi-host compatible method, device and computer equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination