CN112099812B - Flash material identification and identification method, system, equipment and medium - Google Patents

Flash material identification and identification method, system, equipment and medium Download PDF

Info

Publication number
CN112099812B
CN112099812B CN202010986633.XA CN202010986633A CN112099812B CN 112099812 B CN112099812 B CN 112099812B CN 202010986633 A CN202010986633 A CN 202010986633A CN 112099812 B CN112099812 B CN 112099812B
Authority
CN
China
Prior art keywords
time
data
flash material
terminal
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010986633.XA
Other languages
Chinese (zh)
Other versions
CN112099812A (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.)
Xiamen Ziguang Zhanrui Technology Co ltd
Original Assignee
Xiamen Ziguang Zhanrui 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 Xiamen Ziguang Zhanrui Technology Co ltd filed Critical Xiamen Ziguang Zhanrui Technology Co ltd
Priority to CN202010986633.XA priority Critical patent/CN112099812B/en
Publication of CN112099812A publication Critical patent/CN112099812A/en
Application granted granted Critical
Publication of CN112099812B publication Critical patent/CN112099812B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The invention discloses a method, a system, equipment and a medium for identifying and marking Flash materials, wherein the identification method comprises the following steps: extracting time data of Flash materials from a terminal; judging whether the timing data is within a preset time range: if so, judging the Flash material to be a new Flash material, and if not, judging the Flash material to be a second-hand Flash material. The burning tool can extract time data, judge whether the time from the first burning of the terminal to the current time exceeds the preset data range according to the time data, and identify whether the Flash material is a new Flash material or a second-hand Flash material according to the judgment result. The invention can accurately judge whether the Flash material is the second-hand material according to the time data of the Flash material sent by the terminal, and avoids the situation that the new Flash material is judged to be the second-hand Flash material by starting the RPMB function.

Description

Flash material identification method, system, equipment and medium
Technical Field
The invention relates to the field of Flash material identification, in particular to a method, a system, equipment and a medium for identifying and marking Flash materials.
Background
During the production of the terminal device in the production line, there may be second-hand Flash (Flash memory) material (it should be understood that the Flash material herein may be understood as a Flash chip) mixed in production, and finally, the Flash material flows to the terminal user. The second-hand Flash materials easily cause various problems, so that the cost of research and development analysis is increased, the public praise of product brands is influenced, and enterprise loss is caused. Therefore, when the first station of the chip mounter burns the system version of the terminal through the burning tool, whether the Flash material in the terminal is a second-hand material or not is checked.
Whether a Flash material in the terminal is a second-hand material is generally checked by whether a function of a RPMB (Protected Memory Block) in an eMMC (Embedded Memory) is started or not, and since the function of the RPMB is started when a burning tool burns, a system version is considered to be burnt when the RPMB is detected to be started, namely the Flash material in the terminal is the second-hand material.
Because the RPMB function can not be closed after being started, if the Flash material is not a second-hand material in the production process, namely the Flash material is not a second-hand material, but the RPMB is opened when the system version is required to be burned again due to the problem of software, the burning tool can judge that the Flash material is a second-hand material, so that the burning process is intercepted, and the burning is prevented from continuing. Under the condition, the Flash material cannot be used, and the terminal may need to be sent to a research and development part from a factory for analysis, so that the Flash material is wasted, time is consumed, the economic loss is serious, and the production efficiency of the factory is reduced.
Disclosure of Invention
The invention aims to overcome the defect that a burning tool can identify a new Flash material as a second-hand material when a system version of a terminal needs to be repeatedly burned in the production process in the prior art, so that the burning process cannot be normally carried out.
The invention solves the technical problems through the following technical scheme:
the invention discloses a Flash material identification method, which is applied to a burning tool and comprises the following steps:
extracting time data of the Flash material from a terminal, wherein the Flash material is arranged in the terminal, the time data comprises timing data, and the timing data is used for representing the time length from the first burning of the terminal to the current time;
judging whether the timing data is within a preset time range: if so, judging that the Flash material is a new Flash material, and if not, judging that the Flash material is a second-hand Flash material.
Preferably, the initial value of the timing data is a preset initial time;
the step of extracting the time data of the Flash material from the terminal further comprises the following steps: judging whether the timing data is preset initial time or not:
if not, executing a step of judging whether the timing data is within a preset time range;
if so, allowing the terminal to be burned for the first time;
updating the timing data when the terminal is burned for the first time;
generating new time data, the new time data including the updated timing data;
and sending the new time data to the Flash material of the terminal.
Preferably, the time data further includes a time identifier, the time identifier is used to characterize a writer of the time data, and the step of extracting the time data of the Flash material from the terminal further includes:
judging whether the time mark is matched with a target mark: and if so, executing the step of judging whether the timing data is within a preset time range.
Preferably, the initial value of the time identifier is a preset initial identifier;
the step of extracting the time data of the Flash material from the terminal further comprises the following steps: judging whether the time identification is a preset initial identification:
if not, executing a step of judging whether the time identifier is matched with the target identifier;
if so, updating the value of the time identifier to be the value of the target identifier;
allowing the terminal to be burned for the first time;
updating the timing data when the terminal is subjected to first burning;
generating new time data, wherein the new time data comprises the updated time identifier and the updated timing data;
and sending the new time data to a Flash material of the terminal.
Preferably, the timing data is generated by a timestamp, and the timestamp is used for starting timing from the first burning of the terminal.
Preferably, in the step of determining whether the timing data is within a preset time range, if the determination result is yes, the identification method further includes:
checking whether the time data is complete: and if so, executing the step of judging the Flash material to be a new Flash material.
Preferably, in the step of determining whether the time identifier matches the target identifier, if the determination result is negative, the identification method further includes:
judging whether the RPMB function of the terminal is opened: if not, the Flash material is judged to be a new Flash material, and if so, the Flash material is judged to be a second-hand Flash material.
Preferably, before the step of determining whether the timing data is within a preset time range, the method further comprises:
and setting a preset time range, wherein the preset time range does not exceed the production time for carrying out one-time production on the terminal.
The invention also provides a method for identifying the Flash material, which is applied to a terminal, wherein the Flash material is arranged in the terminal, and the method comprises the following steps:
extracting time data from the Flash material and sending the time data to a burning tool, wherein the time data comprises timing data which is used for representing the time length from the time of first burning of the terminal to the current time;
and the time data is used for the burning tool to judge whether the Flash material is a second-hand material.
Preferably, the initial value of the timing data is a preset initial time, and the identification method further includes:
receiving new time data when the terminal is subjected to first burning, wherein the new time data comprises updated timing data, and the updated timing data is generated when the terminal is subjected to first burning.
Preferably, the time data includes a time identifier, the time identifier is used for representing a writer of the time data, and the time identifier is used for the burning tool to determine whether the time identifier matches with the target identifier.
Preferably, the initial value of the time identifier is a preset initial identifier, and the identification method further includes:
and receiving new time data when the terminal is subjected to first burning, wherein the new time data comprises an updated time identifier and updated timing data, and the updated timing data is generated when the terminal is subjected to first burning.
Preferably, the timing data is generated by a timestamp, and the timestamp is used for starting timing after the terminal is burned for the first time.
The invention also provides a Flash material identification system, which is characterized in that the identification system is applied to a burning tool and comprises the following components: the time data extraction module and the timing data judgment module;
the time data extraction module is used for extracting time data of the Flash material from a terminal, the Flash material is arranged in the terminal, the time data comprises timing data, and the timing data is used for representing the time length from the first burning of the terminal to the current time;
the timing data judgment module is used for judging whether the timing data is positioned in a preset time range: if so, judging that the Flash material is a new Flash material, and if not, judging that the Flash material is a second-hand Flash material.
Preferably, the initial value of the timing data is a preset initial time, and the identification system further comprises an initial time judgment module, a burning permission module, a timing data updating module, a time data updating module and a first time data sending module;
the time data extraction module is also used for calling the initial time judgment module, the initial time judgment module is used for judging whether the timing data is preset initial time, if not, the time data judgment module is called, if yes, the burning permission module is called, and the burning permission module is used for allowing the terminal to be burned for the first time;
the timing data updating module is used for updating the timing data when the terminal is subjected to first burning;
the time data updating module is used for generating new time data, and the new time data comprises the updated timing data;
and the first time data sending module is used for sending the new time data to the Flash material of the terminal.
Preferably, the time data further includes a time identifier, the time identifier is used to characterize a writer of the time data, the recognition system further includes a target identifier matching module, the time data extraction module is further used to invoke the target identifier matching module, and the target identifier matching module is used to determine whether the time identifier matches with the target identifier: and if so, calling the timing data judgment module.
Preferably, the initial value of the time identifier is a preset initial identifier, and the identification system further includes an initial identifier determination module, a target identifier update module, a burning permission module, a timing data update module, a time data update module, and a first time data transmission module;
the time data extraction module is further configured to call the initial identifier determination module, and the initial identifier determination module is configured to determine whether the time identifier is a preset initial identifier: if not, calling the target identification matching module, and if so, calling the target identification updating module;
the target identification updating module is used for updating the value of the time identification to be the value of the target identification;
the burning permission module is used for allowing the terminal to be burned for the first time;
the timing data updating module is used for updating the timing data when the terminal is burned for the first time;
the time data updating module is used for generating new time data, and the new time data comprises the updated time identifier and the updated timing data;
the first time data sending module is used for sending the new time data to the Flash material of the terminal.
Preferably, the timing data is generated by a time stamp, and the time stamp is used for starting timing from the first burning of the terminal.
Preferably, the identification system further comprises a verification module, and the timing data judgment module is further configured to call the verification module when a judgment result of judging whether the timing data is within a preset time range is yes;
the checking module is used for checking whether the time data is complete: if yes, calling the timing data judgment module to judge that the Flash material is a new Flash material.
Preferably, the identification system further includes an RPMB determination module, the target identifier matching module is further configured to call the RPMB determination module when the result of determining whether the time identifier matches the target identifier is negative, and the RPMB determination module is further configured to determine whether the RPMB function of the terminal is turned on: if not, calling the timing data judgment module to judge that the Flash material is a new Flash material, and if so, calling the timing data judgment module to judge that the Flash material is a second-hand Flash material.
Preferably, the identification system further comprises a time range presetting module for setting a preset time range, wherein the preset time range does not exceed the production time for carrying out one-time production on the terminal.
The invention also provides an identification system of the Flash material, the identification system is applied to a terminal, the Flash material is arranged in the terminal, and the identification system comprises: the second time data sending module is used for extracting time data from the Flash material and sending the time data to the burning tool, wherein the time data comprises timing data, and the timing data is used for representing the time from the first burning of the terminal to the current time;
and the time data is used for the burning tool to judge whether the Flash material is a second-hand material.
Preferably, the initial value of the timing data is a preset initial time, and the identification system further includes: the time data receiving module is used for receiving new time data when the terminal is subjected to first burning, the new time data comprises updated timing data, and the updated timing data is generated when the terminal is subjected to first burning.
Preferably, the time data includes a time identifier, the time identifier is used for characterizing a writer of the time data, and the time identifier is used for the burning tool to determine whether the time identifier matches with the target identifier.
Preferably, the initial value of the time identifier is a preset initial identifier, and the identifier system further includes: the time data receiving module is used for receiving new time data when the terminal is subjected to first burning, the new time data comprises an updated time identifier and updated timing data, and the updated timing data is generated when the terminal is subjected to first burning.
Preferably, the timing data is generated by a timestamp, and the timestamp is used for starting timing after the terminal is burned for the first time.
The invention also provides electronic equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the identification method of the Flash material or the identification method of the Flash material when executing the computer program.
The present invention also provides a computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the method for identifying a Flash material as described above or the steps of the method for identifying a Flash material as described above.
The positive progress effects of the invention are as follows: the terminal can send the time data of the Flash material to the burning tool, and the burning tool can judge whether the time from the first burning to the current time of the terminal exceeds the preset data range according to the time data, so that whether the Flash material is a new Flash material or a second-hand Flash material can be identified according to the judgment result. The invention can accurately judge whether the Flash material is the second-hand material according to the time data of the Flash material sent by the terminal, thereby avoiding the situation that the new Flash material is judged to be the second-hand Flash material by starting the RPMB function.
Drawings
Fig. 1 is a flowchart of a Flash material identification method in embodiment 1 of the present invention.
Fig. 2 is a flowchart of a Flash material identification method further optimized in embodiment 1.
Fig. 3 is a flowchart of a Flash material identification method further optimized in embodiment 1.
Fig. 4 is a schematic block diagram of a Flash material identification system according to embodiment 3.
Fig. 5 is a schematic block diagram of the Flash material identification system in embodiment 4.
Fig. 6 is a schematic structural diagram of an electronic device according to embodiment 5 of the present invention.
Detailed Description
The invention is further illustrated by the following examples, which are not intended to limit the scope of the invention.
Example 1
The embodiment provides a Flash material identification method, which is applied to a burning tool and includes, as shown in fig. 1:
step 101, extracting time data of the Flash material from the terminal, and executing step 102.
The terminal is provided with a Flash material, time data are stored in the Flash material, the time data comprise timing data, the initial value of the timing data is preset initial time, such as-1, 0 and the like, and the preset initial time can be set as required.
In this embodiment, when the terminal needs to be burned, the burning tool is triggered to generate a burning starting instruction, at this time, the terminal establishes a communication connection with the burning tool, the burning starting instruction is sent to the terminal by the burning tool, the terminal extracts time data from the Flash material after receiving the burning starting instruction, and then further sends the time data to the burning tool.
In practical application, the Flash material can be identified as a new material under two conditions, in the first condition, the terminal is not burned yet, namely, the burning start instruction at the time is the first burning start instruction, in this condition, because the Flash material is the new Flash material before the terminal is burned for the first time, the time data stored in the Flash material is in an un-updated state, and the timing data at the time is an initial value, namely, the initial time is preset. Therefore, when actually performing the determination, it may be determined whether the Flash material is a new Flash material according to whether the extracted timing data is the preset initial time, and when the timing data is the preset initial time, it may be determined that the Flash material is a new Flash, and the first burning of the terminal is allowed, specifically, as shown in fig. 2, after step 101 and before step 102, the method may further include:
step 111, judging whether the timing data is the preset initial time, if not, executing step 102, and if so, executing step 112.
And step 112, allowing the terminal to be burned for the first time, and updating the timing data when the terminal is burned for the first time.
It should be understood that when the timing data is determined to be the preset initial time in step 111, step 103 may be executed to determine that the Flash material is a new Flash material.
And step 113, generating new time data.
Wherein the new time data comprises updated timing data. The new timing data may be generated by a timing tool, such as a timestamp, where the timestamp is used for starting timing from the first burning of the terminal, and the timing data generated by the timing tool may replace a preset initial time.
And step 114, sending the new time data to the Flash material of the terminal.
At the moment, the burning tool writes the time data including the updated timing data into the terminal, and the terminal receives the new time data and stores the new time data in the Flash material instead of the initial time data. In a specific embodiment, the burning tool may encapsulate the new time data into a data packet in a protocol message format (e.g., a 0x96 message format) and send the data packet to the terminal, and the terminal, after receiving the data packet, parses the data packet to obtain the time data, and stores the time data in the Flash material. After that, when the burning tool is triggered again to generate the burning start instruction, the process returns to step 101 to continue to execute the process of determining whether the Flash material is a second-hand material.
In this embodiment, whether the terminal is allowed to be burned for the first time can be judged according to whether the timing data is the preset initial time, the Flash material can be confirmed to be a new Flash material while the terminal is judged to be burned for the first time, meanwhile, the timing function of the timing data can be started, and the Flash secondary material can be continuously judged by sending the new time data including the updated timing data to the terminal and receiving the time data including the continuously updated timing data in the subsequent burning process.
In the second case, the terminal has already been burned, that is, the burning start instruction at this time is a non-first burning start instruction, in this case, a software version of the system needs to be updated, for example, a problem of writing a google key (google key) on a main board of the terminal may exist due to a defect of a software system of the produced terminal, but at this time, the system is not a hardware problem of the Flash material, in order to avoid misjudging the new Flash material as the second-hand Flash material in the prior art by means of RPMB, in this embodiment, it is determined whether the Flash material in this case is the second-hand Flash material through step 102. It should be understood that, in this case, after step 101, step 111 may be executed to determine whether the timing data is the preset initial time, but at this time, the determination result of step 111 is no, and thus step 102 will be executed continuously.
Step 102, judging whether the timing data is within a preset time range: if yes, go to step 103, otherwise go to step 104.
And 103, judging the Flash material to be a new Flash material.
After the Flash material is determined to be a new Flash material, the subsequent production process can be continued, if the terminal can be subjected to burning, if the burning tool is triggered again to generate a burning starting instruction in the subsequent process, the step 101 is returned again to extract the time data in the Flash material, and it should be understood that the timing data in the time data continuously keeps a real-time updating state after the first burning.
And 104, judging the Flash material to be a second-hand Flash material.
After the Flash material is determined to be the second-hand material, the prompt message can be sent to prevent the follow-up production flow from being carried out.
In the embodiment, whether the Flash material is the second-hand Flash material or not can be judged according to the time length recorded by the timing data, so that the situation that the new Flash material without hardware defects is judged as the second-hand Flash material by mistake due to repeated burning caused by the defects of system software is avoided.
Optionally, the time data in this embodiment may further include a time identifier, where the time identifier is used to represent a writer of the time data, and after step 101, in the first case, that is, the terminal has not been burned, at this time, the time data stored in the Flash material is in an un-updated state, and the time identifier at this time is an initial value, that is, the initial identifier is preset. Therefore, when actually performing the determination, it may be determined whether the Flash material is a new Flash material according to whether the extracted time identifier is the preset initial identifier, and when the time identifier is the preset initial identifier, it may be determined that the Flash material is a new Flash, and the first burning of the terminal is allowed, specifically, as shown in fig. 3, after step 101 and before step 102, the method may further include:
step 121, judging whether the time identifier is a preset initial identifier: if not, go to step 131, and if yes, go to step 122.
And step 122, updating the value of the time identifier to the value of the target identifier.
And step 112, allowing the terminal to be burned for the first time, and updating the timing data when the terminal is burned for the first time.
And step 113, generating new time data.
At this time, the new time data includes the updated time stamp and the updated time count data.
And step 114, sending the new time data to the Flash material of the terminal.
In this embodiment, only step 111 may be executed to determine whether the currently required recording is the first recording, only step 121 may be executed to determine whether the currently required recording is the first recording, and also step 111 and step 121 may be executed simultaneously to determine whether the currently required recording is the first recording, when only step 111 is executed to determine, step 112 and step 113 need to be further executed to complete the update of the timing data, when only step 121 is executed to determine, step 121 and step 114 need to be further executed to complete the update of the timing data, when both steps 111 and step 121 are executed to determine, when the determination results of steps 111 and 121 are yes, the currently required recording is the first recording, and step 121 to step 114 need to be further executed to complete the update of the timing data.
In this embodiment, whether the terminal is allowed to be burned for the first time may be further determined according to whether the time identifier is the preset initial identifier, and the Flash may be determined as a new Flash material while it is determined that the terminal is burned for the first time.
In the second case, the terminal has been burned, that is, the determination result in step 121 is no, at this time, the following steps are executed:
step 131, judging whether the time mark is matched with the target mark: if yes, executing the step 102, otherwise, judging whether the Flash material is a second-hand material according to the RPMB.
The target identification is used for representing a target writer, and when the time identification is matched with the target identification, the time identification can be confirmed to be legal data written by the target writer, so that whether the Flash material is a second-hand Flash material can be judged according to the recorded frequent time of the timing data. However, when the time identifier is not legal data written by the target writer, even if the timing data records the time value at the moment, the time value at the moment is illegal and unreliable data, so that in order to avoid misjudgment of the second-hand Flash material, whether the Flash material is the second-hand Flash material cannot be judged through the timing data at the moment, and as an alternative, at the moment, whether the Flash material is the second-hand Flash material can be judged through the RPMB so as to ensure the functional integrity of the identification method of the Flash material in the embodiment.
It should be understood that the above methods in this embodiment are all established on the basis that the burning tool supports reading and writing time data, but for some old versions of burning tools, because the old versions of burning tools do not support the reading and writing function of time data, in this case, RPMB may also be used as an alternative scheme to determine whether the Flash material is a second-hand Flash material to ensure the functional integrity of the identification method of the Flash material in this embodiment.
In this embodiment, the step of determining whether the Flash material is a second-hand material according to the RPMB specifically may include: judging whether the RPMB function of the terminal is opened: if not, go to step 103, and if yes, go to step 104.
Optionally, in step 102, if it is determined that the timing data is within the preset time range: the identification method may further include: and checking whether the time data is complete, executing a step 103 to judge that the Flash material is a new Flash material when the checking result is complete, and executing a step 104 to judge that the Flash material is a second-hand Flash material when the checking result is incomplete. Specific checking methods can adopt mature algorithms used for checking whether data are complete, such as Crc (cyclic redundancy check algorithm), Lrc (longitudinal redundancy check algorithm), BCC (block check word element algorithm) and the like.
Example 2
The embodiment provides an identification method of a Flash material, which is applied to a terminal, wherein the Flash material is arranged in the terminal, and the identification method comprises the following steps:
and extracting time data from the Flash material and sending the time data to a burning tool, wherein the time data comprises timing data, the timing data is used for indicating the time from the first burning of the terminal to the current time, and the time data is used for judging whether the Flash material is a second-hand material or not by the burning tool.
When the terminal needs to be burned, the burning tool can generate a burning starting instruction and send the burning starting instruction to the terminal, and after the terminal receives the burning starting instruction, the terminal extracts time data in the Flash material and sends the time data to the burning tool.
In practical application, the Flash material can be identified as a new material under two conditions, in the first condition, the terminal is not burned, at the moment, the timing data is an initial value, namely, the initial time is preset, and in this condition, the time data sent to the burning tool is the time data with the specific value being the preset initial time. The burning tool can execute step 101 in embodiment 1 to receive the time data, and can determine whether burning is allowed or not, determine whether Flash is a new Flash material or not according to steps 111 to 114, generate new time data in the process of first burning, and send the new time data to the terminal.
Correspondingly, when the terminal is subjected to first burning, the terminal can receive new time data including the updated timing data and write the new time data into the Flash material.
The second case is that the terminal has been burned, in this case, after receiving the burning start instruction, the terminal will also send the time data in the Flash material to the burning tool, because the timing data in the time data starts to be timed when the terminal is burned for the first time, the timing data records the time length from the first burning to the current time, and after the terminal sends the data to the burning tool, the burning tool can judge whether the Flash material is a second-hand material according to the steps 101-102 in the embodiment 1.
Optionally, the time data in this embodiment may further include a time identifier, where the time identifier is used to characterize a writer of the time data, so that the burning tool may determine whether the time data matches with a target identifier used to characterize a target writer.
In the first case, the terminal is not burned, the time identifier is an initial value, i.e., a preset time identifier, and in this case, the time data sent to the burning tool includes the time data with a specific value of the preset time identifier.
After receiving the time data in step 101, the burning tool may determine that the time identifier is the preset initial identifier in step 121, update the value of the time identifier to the value of the target identifier in step 122, and update the timing data when burning the terminal for the first time in step 112. And transmits the time data including the updated time stamp to the Flash material of the terminal through step 123. And the terminal receives the new time data and stores the new time data into the Flash material.
In the second case, after the terminal is burned, the terminal also sends the time data in the Flash material to the burning tool after receiving the burning start instruction, because the identification data in the time data is set as the target time identification in the process of burning the terminal for the first time, the timing data in the time data records the time length from the first burning to the current time, and after the terminal sends the time data to the burning tool, the burning tool can continuously judge whether the Flash material is the second-hand material according to the steps 101 to 102 in the embodiment 1.
In the embodiment, when a burning starting instruction sent by the burning tool is received, the terminal extracts the time data from the Flash material and sends the time data to the burning tool, so that the burning tool can judge whether the Flash material is a second-hand material according to the time data, the time data can be updated when the burning tool burns the terminal for the first time, the new time data is written into the Flash material of the terminal, and when repeated burning is carried out in the same secondary production process, the time data can be extracted from the Flash material again to be identified, so that the new Flash material is prevented from being mistakenly judged as the second-hand Flash material.
Example 3
The embodiment provides an identification system of Flash materials, which is applied to a burning tool, and as shown in fig. 4, the identification system includes: a time data extraction module 301 and a timing data judgment module 302.
The time data extraction module 301 is configured to extract time data of a Flash material from a terminal, where the Flash material is disposed in the terminal, the time data includes timing data, and the timing data is used to indicate a time length from when the terminal is first burned to the current time. The terminal is provided with a Flash material, time data are stored in the Flash material, the time data comprise timing data, the initial value of the timing data is preset initial time, such as-1, 0 and the like, and the preset initial time can be set as required.
In this embodiment, when the terminal needs to be burned, the burning tool is triggered to generate a burning start instruction, at this time, the terminal device establishes a communication connection with the burning tool, the burning tool sends the burning start instruction to the terminal, the terminal extracts time data from the Flash material after receiving the burning start instruction, and further sends the time data to the burning tool, in a specific implementation manner, the terminal may package the time data into a data packet in a number 0x96 message format and send the data packet to the burning tool, and the time data extraction module 301 analyzes the data packet after receiving the data packet, so as to obtain the time data.
In practical application, the Flash material can be identified as a new material under two conditions, in the first condition, the terminal is not burned yet, namely, the burning start instruction at the moment is the first burning start instruction, in this condition, because the Flash material is the new Flash material before the terminal is burned for the first time, the time data stored in the Flash material is in an un-updated state, and the timing data at the moment is an initial value, namely, the initial time is preset. Therefore, when the judgment is actually carried out, whether the Flash material is the new Flash material can be determined according to whether the extracted timing data is the preset initial time, and when the timing data is the preset initial time, the Flash material can be determined to be the new Flash, so that the terminal is allowed to be burned for the first time.
Specifically, the identification system further includes an initial time determining module 303, a burning permission module 304, a timing data updating module 305, a time data updating module 306, and a first time data sending module 307;
the time data extraction module 301 further uses a calling initial time judgment module 303, the initial time judgment module 303 is used for judging whether the timing data is a preset initial time, if not, the time data judgment module is called, if yes, the burning permission module 304 is called, the burning permission module 304 is used for allowing the terminal to be burned for the first time, the timing data updating module 305 is used for updating the timing data when the terminal is burned for the first time, the time data updating module 306 is used for generating new time data, the new time data comprises updated timing data, and the first time data sending module 307 is used for sending the new time data to a Flash material of the terminal.
At this time, the first time data sending module 307 writes the time data including the updated timing data into the terminal, and the terminal receives the new time data and stores the new time data in the Flash material instead of the initial time data. In a specific implementation manner, the first time data sending module 307 may encapsulate new time data into a data packet in a protocol message (for example, in a message format of 0x 96), and send the data packet to the terminal, and after receiving the data packet, the terminal parses the data packet so as to obtain time data, and stores the time data in the Flash material. After that, when the burning tool is triggered again to generate a burning starting instruction, the time data extraction module 301 and the timely data judgment module are continuously called to judge whether the Flash material is a second-hand material.
In this embodiment, the initial time determining module 303 may determine whether to allow the terminal to be subjected to the first burning according to whether the timing data is the preset initial time, and may determine that the Flash material is the new Flash material while determining that the Flash material is subjected to the first burning, and may start a timing function of the timing data, and send the new time data including the updated timing data to the terminal through the first time data sending module 307, and may continue to determine the Flash secondary material by receiving the time data including the continuously updated timing data through the time data extracting module 301 in a subsequent burning process.
In the second case, the terminal has already been burned at this time, that is, the burning start instruction at this time is a non-first burning start instruction, in this case, a software system of the produced terminal may have a defect, for example, a problem of writing a google key occurs on a main board of the terminal, and a system software version needs to be updated, but at this time, the problem is not a hardware problem of the Flash material itself, so as to avoid misjudging a new Flash material as a second-hand Flash material in the prior art by means of an RPMB, in this embodiment, the timing data determination module 302 is used to determine whether the Flash material in this case is a second-hand Flash material. It should be understood that in this case, the time data extracting module 301 may still call the initial time determining module 303 to determine whether the timing data is the preset initial time, but at this time, if the determination result is no, the initial time determining module 303 will continue to call the timing data determining module 302.
The timing data determining module 302 is configured to determine whether the timing data is within a preset time range: if so, judging the Flash material to be a new Flash material, and if not, judging the Flash material to be a second-hand Flash material.
Since the second-hand Flash material is a reusable hardware device, the service time of the second-hand Flash material far exceeds that of the new Flash material, in this embodiment, whether the Flash material in the terminal is the second-hand Flash material can be judged according to whether the timing data is in the preset time range.
In a specific embodiment, the identification system may further include a time range presetting module 308, configured to generate a preset time range according to a production duration of one production for the terminal, that is, the preset time range is set not to exceed the production duration of one production for the terminal. Under normal conditions, the repeated burning of the system version cannot exceed the production time of one-time production, but because the first burning of the second-hand Flash material is not completed in the production process, the timing data in the second-hand Flash material generally exceeds the production time of one-time production, in this embodiment, the time range presetting module 308 sets the preset time range according to the production time of one-time production, so that the effect of distinguishing the second-hand Flash material from the new Flash material can be achieved.
In this embodiment, after determining that the Flash material is a new Flash material, the timing data determining module 302 may continue to perform a subsequent production process, for example, perform burning on the terminal, and subsequently, if the burning tool is triggered again to generate a burning start instruction, the time data extracting module 301 may be called again to extract the time data in the Flash material, it should be understood that the timing data in the time data continuously maintains a real-time updated state after the first burning. And the timing data judgment module 302 can send prompt information to prevent the subsequent production flow from proceeding after determining that the Flash material is the second-hand material.
In this embodiment, the timing data determining module 302 may determine whether the Flash material is a second-hand Flash material according to the timing data record, so as to avoid that a new Flash material without hardware defects is determined as the second-hand Flash material by mistake due to repeated burning caused by defects of system software.
Optionally, the time data in this embodiment may further include a time identifier, where the time identifier is used to represent a writer of the time data, and in the first case, that is, the terminal is not burned yet, at this time, the time data stored in the Flash material is in an un-updated state, and the time identifier at this time is an initial value, that is, the initial identifier is preset. Therefore, when the judgment is actually carried out, whether the Flash material is a new Flash material can be determined according to whether the extracted time identifier is the preset initial identifier, and when the time identifier is the preset initial identifier, the Flash material can be confirmed to be a new Flash, so that the terminal is allowed to be burned for the first time.
Specifically, the recognition system further includes an initial identifier determining module 309 and a target identifier updating module 310. The time data extraction module 301 is further configured to invoke an initial identifier determination module 309, where the initial identifier determination module 309 is configured to determine whether the time identifier is a preset initial identifier: if not, calling the target identification matching module, and if so, calling the target identification updating module 310;
the target identifier updating module 310 is configured to update the value of the time identifier to be the value of the target identifier, and invoke the burning permission module 304; the burning permission module 304 is configured to allow the terminal to be burned for the first time, and call the timing data update module 305, the timing data update module 305 is configured to update the timing data when the terminal is burned for the first time, the time data update module 306 is configured to generate new time data, the new time data includes an updated time identifier and updated timing data, and the first time data sending module 307 is configured to send the new time data to a Flash material of the terminal.
In this embodiment, the time data extraction module 301 may only call the initial time judgment module 303 to judge whether the current burning needs to be performed is the first burning, may only call the initial identifier judgment module 309 to judge whether the current burning needs to be performed is the first burning, and may also call the initial time judgment module 303 and the initial identifier judgment module 309 to judge whether the current burning needs to be performed is the first burning.
In this embodiment, the initial time determining module 303 and the initial identifier determining module 309 may further determine whether to allow the terminal to be subjected to the first burning according to whether the time identifier is a preset initial identifier, and may determine that Flash is a new Flash material while determining that the Flash is subjected to the first burning.
In the second case, the terminal has been burned, that is, the initial identifier determining module 309 determines whether the time identifier is the preset initial identifier, if not, the initial identifier determining module 309 is further configured to invoke a target identifier matching module, and the target identifier matching module is configured to determine whether the time identifier matches the target identifier: if yes, the timing data determination module 302 is called, otherwise, the RPMB determination module 311 is called.
The target identifier represents a target writer, and when the target identifier determination module determines that the time identifier matches the target identifier, the target identifier determination module can determine that the time identifier is legal data written by the target writer, so that the timing data determination module 302 can determine whether the Flash material is a second-hand Flash material according to the recorded time of the timing data. However, when the time identifier is not legal data written by the target writer, even if the time value is recorded in the timing data at this time, the time value at this time is illegal and unreliable data, and in order to avoid misjudgment on the second-hand Flash material, it cannot be judged whether the Flash material is the second-hand Flash material at this time through the timing data.
It should be understood that the above systems in this embodiment are all established on the basis that the burning tool supports reading and writing time data, but for some old versions of burning tools, because the old versions of burning tools do not support the reading and writing function of time data, in this case, the RPMB determining module 311 may also be called to determine whether the Flash material is a second-hand Flash material by using RPMB as an alternative to ensure the integrity of the function of the Flash material identification system in this embodiment. Specifically, the RPMB determining module 311 is configured to determine whether the RPMB function of the terminal is turned on: if not, the timing data judgment module 302 is called to judge that the Flash material is a new Flash material, and if so, the timing data judgment module 302 is called to judge that the Flash material is a second-hand Flash material.
Optionally, the identification system further includes a checking module 312, the timing data determining module 302 is further configured to invoke the checking module 312 when a determination result of determining whether the timing data is located within the preset time range is yes, and the checking module 312 is configured to check whether the time data is complete: if yes, the timing data judgment module 302 is called to judge the Flash material as a new Flash material. The specific verification method of the verification module 312 may adopt a mature algorithm such as Crc, Lrc, BCC, etc. for verifying whether the data is complete, and in this embodiment, the integrity of the time data is verified, so that the time data is prevented from being maliciously tampered, thereby affecting the accurate identification of the second-hand Flash material.
Example 4
The embodiment provides an identification system for Flash materials, which is characterized in that the identification system method is applied to a terminal, the Flash materials are arranged in the terminal, and as shown in fig. 5, the identification system comprises: the second time data sending module 401 and the time data receiving module 402 are used for extracting time data from the Flash material and sending the time data to the burning tool, the time data comprises timing data, the timing data is used for indicating the time from the first burning of the terminal to the current time, and the time data is used for the burning tool to judge whether the Flash material is a second-hand material.
When the terminal needs to be burned, the burning tool can generate a burning starting instruction and send the burning starting instruction to the terminal, and after the terminal receives the burning starting instruction, the terminal extracts time data in the Flash material and sends the time data to the burning tool.
In practical application, in two cases, the Flash material is identified as a new material, in the first case, the terminal is not burned, at this time, the timing data is an initial value, that is, the initial time is preset, and in this case, the time data sent to the burning tool by the second time data sending module 401 is the time data including the specific value of the initial time. The burning tool may call the time data extraction module 301 in embodiment 3 to receive the time data, and may determine whether burning is allowed or not and whether Flash is a new Flash material according to the initial time determination module 303 and the burning permission module 304, generate new time data in the process of first burning through the timing data update module 305 and the time data update module 306, and send the new time data to the terminal through the first time data sending module 307.
Correspondingly, when the terminal is burned for the first time, the terminal receives new time data including updated timing data through the time data receiving module 402, and writes the new time data into the Flash material.
In the second case, after the terminal is burned at the moment, after a burning start instruction is received, the terminal can also send the time data in the Flash material to the burning tool through the second time data sending module 401, because the timing data in the time data starts to time when the terminal is burned for the first time, the timing data records the time from the first burning to the current time, and after the terminal sends the data to the burning tool, the burning tool can judge whether the Flash material is the second-hand Flash material according to the received time data.
Optionally, the time data in this embodiment may further include a time identifier, where the time identifier is used to characterize a writer of the time data, so that the burning tool may determine whether the time identifier matches a target identifier used to characterize a target writer.
In the first case, the terminal is not burned, at this time, the time identifier is an initial value, that is, a preset time identifier, and in this case, the time data sent to the burning tool by the second time data sending module 401 is the time data including the specific value of the preset time identifier.
After receiving the time data through the time data extraction module 301, the burning tool may determine that the time identifier is the preset initial identifier through the initial identifier determination module 309, update the value of the time identifier to the value of the target identifier through the target identifier update module 310, and update the timing data when the terminal is burned for the first time through the timing data update module 305. And the time data including the updated time identification is transmitted to the Flash material of the terminal through the first time data transmission module 307. The terminal receives new time data through the time data receiving module 402 and stores the new time data into the Flash material.
In the second case, after the terminal is burned, the terminal also sends the time data in the Flash material to the burning tool through the second time data sending module 401 after receiving the burning start instruction, because the identification data in the time data is set as the target time identification in the process of burning the terminal for the first time, the timing data in the time data records the time from the burning for the first time to the current time, and after the second time data sending module 401 sends the time data to the burning tool, the burning tool can continue to judge whether the Flash material is the second-hand material according to the identification system in embodiment 3.
In the embodiment, when a burning starting instruction sent by the burning tool is received, the time data sending module extracts time data from the Flash material and sends the time data to the burning tool, so that the burning tool can judge whether the Flash material is a second-hand material according to the time data, the time data can be updated when the burning tool burns the terminal for the first time, new time data is written into the Flash material of the terminal, and when repeated burning is carried out in the same secondary production process, the time data can be extracted from the Flash material again to be identified, so that the new Flash material is prevented from being judged as the second-hand Flash material by mistake.
Example 5
The embodiment of the present invention further provides an electronic device, which may be represented in a form of a computing device (for example, may be a server device), and includes a memory, a processor, and a computer program that is stored in the memory and is executable on the processor, where when the processor executes the computer program, the method for identifying a Flash material in embodiment 1 or the method for identifying a Flash material in embodiment 2 of the present invention may be implemented.
Fig. 6 shows a schematic diagram of a hardware structure of the present embodiment, and as shown in fig. 6, the electronic device 9 specifically includes:
at least one processor 91, at least one memory 92, and a bus 93 for connecting the different system components (including the processor 91 and the memory 92), wherein:
the bus 93 includes a data bus, an address bus, and a control bus.
Memory 92 includes volatile memory, such as Random Access Memory (RAM)921 and/or cache memory 922, and can further include Read Only Memory (ROM) 923.
Memory 92 also includes a program/utility 925 having a set (at least one) of program modules 924, such program modules 924 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The processor 91 executes various functional applications and data processing, such as a Flash material identification method in embodiment 1 or a Flash material identification method in embodiment 2 of the present invention, by running the computer program stored in the memory 92.
The electronic device 9 may further communicate with one or more external devices 94, such as a keyboard, pointing device, etc. Such communication may be through an input/output (I/O) interface 95. Also, the electronic device 9 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 96. The network adapter 96 communicates with the other modules of the electronic device 9 via the bus 93. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 9, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
It should be noted that although in the above detailed description several units/modules or sub-units/modules of the electronic device are mentioned, such a division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the units/modules described above may be embodied in one unit/module, according to embodiments of the application. Conversely, the features and functions of one unit/module described above may be further divided into embodiments by a plurality of units/modules.
Example 6
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of the method for identifying a Flash material in embodiment 1 or the method for identifying a Flash material in embodiment 2 of the invention are realized.
More specific examples, among others, that the readable storage medium may employ may include, but are not limited to: a portable disk, a hard disk, random access memory, read only memory, erasable programmable read only memory, optical storage device, magnetic storage device, or any suitable combination of the foregoing.
In a possible implementation manner, the present invention can also be implemented in a form of a program product, which includes a program code, and when the program product runs on a terminal device, the program code is configured to enable the terminal device to execute a step of implementing the method for identifying a Flash material in embodiment 1 or the method for identifying a Flash material in embodiment 2 of the present invention.
Where program code for carrying out the invention is written in any combination of one or more programming languages, the program code may be executed entirely on the user device, partly on the user device, as a stand-alone software package, partly on the user device and partly on a remote device or entirely on the remote device.
While specific embodiments of the invention have been described above, it will be understood by those skilled in the art that this is by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.

Claims (24)

1. A Flash material identification method is applied to a burning tool and comprises the following steps:
extracting time data of the Flash material from a terminal, wherein the Flash material is arranged in the terminal, the time data comprises timing data, and the timing data is used for representing the time from the first burning of the terminal to the current time;
judging whether the timing data is within a preset time range: if yes, determining that the Flash material is a new Flash material, and if not, determining that the Flash material is a second-hand Flash material;
the timing data is generated through a timestamp, and the timestamp is used for starting timing after the terminal is subjected to first burning.
2. The method for identifying Flash materials according to claim 1, wherein the initial value of the timing data is a preset initial time;
the step of extracting the time data of the Flash material from the terminal further comprises the following steps: judging whether the timing data is preset initial time or not:
if not, executing a step of judging whether the timing data is within a preset time range;
if so, allowing the terminal to be burned for the first time;
updating the timing data when the terminal is subjected to first burning;
generating new time data, the new time data including the updated timing data;
and sending the new time data to the Flash material of the terminal.
3. The method for identifying Flash material according to claim 1, wherein the time data further includes a time identifier, the time identifier is used to characterize a writer of the time data, and the step of extracting the time data of the Flash material from the terminal further includes:
judging whether the time mark is matched with a target mark: and if so, executing the step of judging whether the timing data is within a preset time range.
4. The method for identifying Flash materials according to claim 3, wherein the initial value of the time identifier is a preset initial identifier;
the step of extracting the time data of the Flash material from the terminal further comprises the following steps: judging whether the time identification is a preset initial identification:
if not, executing a step of judging whether the time identifier is matched with the target identifier;
if so, updating the value of the time identifier to be the value of the target identifier;
allowing the terminal to be burned for the first time;
updating the timing data when the terminal is burned for the first time;
generating new time data, wherein the new time data comprises the updated time identifier and the updated timing data;
and sending the new time data to a Flash material of the terminal.
5. The method for identifying Flash materials according to claim 1, wherein in the step of determining whether the timing data is within a preset time range, if so, the method further comprises:
checking whether the time data is complete: and if so, executing the step of judging the Flash material to be a new Flash material.
6. The method for identifying Flash materials according to claim 3, wherein in the step of determining whether the time identifier matches the target identifier, if the determination result is negative, the method further comprises:
judging whether the RPMB function of the terminal is opened: if not, the Flash material is judged to be a new Flash material, and if so, the Flash material is judged to be a second-hand Flash material.
7. The method for identifying Flash materials according to claim 1, wherein before the step of determining whether the timing data is within a preset time range, the method further comprises:
and setting a preset time range, wherein the preset time range does not exceed the production time for carrying out one-time production on the terminal.
8. A method for identifying Flash materials is characterized in that the method is applied to a terminal, the Flash materials are arranged in the terminal, and the method comprises the following steps:
extracting time data from the Flash material and sending the time data to a burning tool, wherein the time data comprises timing data which is used for representing the time length from the time of first burning of the terminal to the current time;
the time data is used for the burning tool to judge whether the Flash material is a second-hand material, and the burning tool judges whether the timing data is in a preset time range: if so, judging that the Flash material is a new Flash material, and if not, judging that the Flash material is a second-hand Flash material;
the timing data is generated through a time stamp, and the time stamp is used for carrying out first burning on the terminal and starting timing.
9. The method for identifying Flash material according to claim 8, wherein the initial value of the timing data is a preset initial time, and the method further comprises:
receiving new time data when the terminal is subjected to first burning, wherein the new time data comprises updated timing data, and the updated timing data is generated when the terminal is subjected to first burning.
10. The method for identifying Flash material according to claim 8, wherein the time data includes a time identifier, the time identifier is used to characterize a writer of the time data, and the time identifier is used for the burning tool to determine whether the time identifier matches a target identifier.
11. The method for identifying Flash materials according to claim 10, wherein the initial value of the time identifier is a preset initial identifier, and the method further comprises:
and receiving new time data when the terminal is subjected to first burning, wherein the new time data comprises an updated time identifier and updated timing data, and the updated timing data is generated when the terminal is subjected to first burning.
12. The identification system of the Flash material is applied to a burning tool and comprises the following components: the time data extraction module and the timing data judgment module;
the time data extraction module is used for extracting time data of the Flash material from a terminal, the Flash material is arranged in the terminal, the time data comprises timing data, and the timing data is used for representing the time length from the first burning of the terminal to the current time;
the timing data judgment module is used for judging whether the timing data is positioned in a preset time range: if yes, determining that the Flash material is a new Flash material, and if not, determining that the Flash material is a second-hand Flash material;
the timing data is generated through a time stamp, and the time stamp is used for starting timing after the terminal is subjected to first burning.
13. The Flash material identification system according to claim 12, wherein the initial value of the timing data is a preset initial time, the identification system further comprises an initial time judgment module, a burning permission module, a timing data update module, a time data update module, and a first time data transmission module;
the time data extraction module is also used for calling the initial time judgment module, the initial time judgment module is used for judging whether the timing data is preset initial time, if not, the time data judgment module is called, if yes, the burning permission module is called, and the burning permission module is used for allowing the terminal to be burned for the first time;
the timing data updating module is used for updating the timing data when the terminal is burned for the first time;
the time data updating module is used for generating new time data, and the new time data comprises the updated timing data;
and the first time data sending module is used for sending the new time data to the Flash material of the terminal.
14. The Flash material recognition system of claim 12, wherein the time data further includes a time identifier, the time identifier is used to characterize a writer of the time data, the recognition system further includes a target identifier matching module, the time data extraction module is further used to invoke the target identifier matching module, and the target identifier matching module is used to determine whether the time identifier matches a target identifier: and if so, calling the timing data judgment module.
15. The Flash material identification system according to claim 14, wherein the initial value of the time stamp is a preset initial stamp, the identification system further comprises an initial stamp determining module, a target stamp updating module, a burning permission module, a timing data updating module, a time data updating module, and a first time data sending module;
the time data extraction module is further configured to call the initial identifier determination module, where the initial identifier determination module is configured to determine whether the time identifier is a preset initial identifier: if not, calling the target identification matching module, and if so, calling the target identification updating module;
the target identification updating module is used for updating the value of the time identification to be the value of the target identification;
the burning permission module is used for allowing the terminal to be burned for the first time;
the timing data updating module is used for updating the timing data when the terminal is subjected to first burning;
the time data updating module is used for generating new time data, and the new time data comprises the updated time identifier and the updated timing data;
and the first time data sending module is used for sending the new time data to the Flash material of the terminal.
16. The Flash material identification system according to claim 12, wherein the identification system further comprises a check module, and the timing data determination module is further configured to call the check module when a determination result of determining whether the timing data is within a preset time range is yes;
the checking module is used for checking whether the time data is complete: if yes, calling the timing data judgment module to judge that the Flash material is a new Flash material.
17. The Flash material recognition system according to claim 14, wherein the recognition system further includes an RPMB determination module, the target identifier matching module is further configured to invoke the RPMB determination module when the result of determining whether the time identifier matches the target identifier is negative, and the RPMB determination module is further configured to determine whether an RPMB function of the terminal is turned on: if not, calling the timing data judgment module to judge that the Flash material is a new Flash material, and if so, calling the timing data judgment module to judge that the Flash material is a second-hand Flash material.
18. The Flash material identification system according to claim 12, further comprising a time range presetting module for setting a preset time range, wherein the preset time range does not exceed a production time for one-time production of the terminal.
19. The utility model provides an identification system of Flash material which characterized in that, identification system is applied to in the terminal, be provided with in the terminal the Flash material, identification system includes: the second time data sending module is used for extracting time data from the Flash material and sending the time data to a burning tool, wherein the time data comprises timing data, and the timing data is used for representing the time length from the first burning of the terminal to the current time;
the time data is used for the burning tool to judge whether the Flash material is a second-hand material, and the burning tool judges whether the timing data is in a preset time range: if so, judging that the Flash material is a new Flash material, and if not, judging that the Flash material is a second-hand Flash material;
the timing data is generated through a timestamp, and the timestamp is used for starting timing after the terminal is burned for the first time.
20. The Flash material identification system according to claim 19, wherein the initial value of the timing data is a preset initial time, the identification system further comprising: the time data receiving module is used for receiving new time data when the terminal is subjected to first burning, the new time data comprises updated timing data, and the updated timing data is generated when the terminal is subjected to first burning.
21. The Flash material identification system of claim 19, wherein the time data includes a time identifier, the time identifier is used for characterizing a writer of the time data, and the time identifier is used for the burning tool to determine whether the burning tool matches a target identifier.
22. The Flash material identification system according to claim 21, wherein the initial value of the time identifier is a preset initial identifier, and the identification system further comprises: the time data receiving module is used for receiving new time data when the terminal is subjected to first burning, the new time data comprises an updated time identifier and updated timing data, and the updated timing data is generated when the terminal is subjected to first burning.
23. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method for identifying a Flash material according to any one of claims 1 to 7 or the method for identifying a Flash material according to any one of claims 8 to 11 when executing the computer program.
24. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for identifying a Flash item of any of claims 1 to 7 or the method for identifying a Flash item of any of claims 8 to 11.
CN202010986633.XA 2020-09-18 2020-09-18 Flash material identification and identification method, system, equipment and medium Active CN112099812B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010986633.XA CN112099812B (en) 2020-09-18 2020-09-18 Flash material identification and identification method, system, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010986633.XA CN112099812B (en) 2020-09-18 2020-09-18 Flash material identification and identification method, system, equipment and medium

Publications (2)

Publication Number Publication Date
CN112099812A CN112099812A (en) 2020-12-18
CN112099812B true CN112099812B (en) 2022-08-23

Family

ID=73759854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010986633.XA Active CN112099812B (en) 2020-09-18 2020-09-18 Flash material identification and identification method, system, equipment and medium

Country Status (1)

Country Link
CN (1) CN112099812B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102590730A (en) * 2012-01-16 2012-07-18 中冶南方(武汉)自动化有限公司 Modularized open PCBA (Printed Circuit Board Assembly) functional circuit test platform, system and method
CN111339158A (en) * 2020-02-21 2020-06-26 北京字节跳动网络技术有限公司 Method and device for processing information, electronic equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6907496B2 (en) * 2002-05-02 2005-06-14 International Business Machines Corporation Method and apparatus for auto-detection of a configuration of a flash memory
CN106559186A (en) * 2016-03-21 2017-04-05 天地融科技股份有限公司 Data transmission method and system, main communication apparatus and from communication apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102590730A (en) * 2012-01-16 2012-07-18 中冶南方(武汉)自动化有限公司 Modularized open PCBA (Printed Circuit Board Assembly) functional circuit test platform, system and method
CN111339158A (en) * 2020-02-21 2020-06-26 北京字节跳动网络技术有限公司 Method and device for processing information, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112099812A (en) 2020-12-18

Similar Documents

Publication Publication Date Title
CN107870860B (en) Buried point verification system and method
CN111314174A (en) Network dial testing method and device based on block chain and SDN edge computing network system
CN110007941A (en) A kind of the MCU firmware and upgrade method of Intelligent refuse classification recovery system
CN109462661B (en) Data synchronization method and device, computer equipment and storage medium
CN110147354B (en) Batch data editing method, device, computer equipment and storage medium
CN108133026B (en) Multi-data processing method, system and storage medium
CN112099812B (en) Flash material identification and identification method, system, equipment and medium
CN107621945A (en) A kind of method and device for the mark for determining ios device
CN112416408A (en) Firmware upgrading method, device, equipment and computer readable storage medium
US10691569B2 (en) System and method for testing a data storage device
CN108920297A (en) A kind of method and system diagnosing PCIE error information in black box log
CN111460436B (en) Unstructured data operation method and system based on blockchain
CN115437571A (en) Data writing method and device, computer equipment and storage medium
CN114237991A (en) Main/standby service switching method, device, equipment and medium based on cold standby mode
CN113918384A (en) Data saving method, device, equipment and storage medium
CN113110958A (en) Intelligent power terminal based system file verification method
CN114143308A (en) File uploading information processing method and device, computer equipment and storage medium
WO2020119138A1 (en) Method for verifying credibility of bios restored file and relevant device
CN111538371A (en) Real-time clock device, working method thereof and USB (universal serial bus) equipment
CN111428260A (en) File security access control method and system based on chip protection device
CN109901117A (en) A kind of radar method for restarting and device
US20240094938A1 (en) Electronic apparatus, system, and method for erasing data stored in storage device of electronic apparatus
WO2018233517A1 (en) Method, device, and server for automatic notification of message signing
CN112463071B (en) Method and device for selectively clearing nonvolatile storage
CN110309025B (en) APP breakdown repairing method and related 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
GR01 Patent grant
GR01 Patent grant