CN113326051B - Chip serial number burning device and method - Google Patents

Chip serial number burning device and method Download PDF

Info

Publication number
CN113326051B
CN113326051B CN202110628212.4A CN202110628212A CN113326051B CN 113326051 B CN113326051 B CN 113326051B CN 202110628212 A CN202110628212 A CN 202110628212A CN 113326051 B CN113326051 B CN 113326051B
Authority
CN
China
Prior art keywords
serial number
data
burning
number generator
chip
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
CN202110628212.4A
Other languages
Chinese (zh)
Other versions
CN113326051A (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.)
Shenzhen Angke Technology Co ltd
Original Assignee
Shenzhen Angke 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 Shenzhen Angke Technology Co ltd filed Critical Shenzhen Angke Technology Co ltd
Priority to CN202110628212.4A priority Critical patent/CN113326051B/en
Publication of CN113326051A publication Critical patent/CN113326051A/en
Application granted granted Critical
Publication of CN113326051B publication Critical patent/CN113326051B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Abstract

The application relates to a chip serial number burning device and a method, wherein a chip driving module sends serial number request information to a serial number generator when performing chip burning action; the serial number generator receives the serial number request information and sends serial number record group generation information to a designated serial number generator; the appointed sequence number generator receives the sequence number record group generation information, generates a sequence number record group and returns the sequence number record group to the sequence number generator; the sequence number generator reads the current sequence number from the sequence number record group and sends the current sequence number to the data processing module; and the data processing module puts the current serial number into a burning data stream, so that the chip driving module writes the burning data stream into a chip. The device and the method for burning the serial number of the chip have better compatibility and higher flexibility.

Description

Chip serial number burning device and method
Technical Field
The application relates to the technical field of chip burning, in particular to a chip serial number burning device and method.
Background
The Serial Number is a data area on a certain chip in a batch of chips, for example, the total data capacity of the certain chip is 1Mbytes, the file burned by a customer is 512KBytes, but the customer hopes that the first 16 bytes are different in each chip in the burning process, and follow a regular change, for example, each chip increases by 1 in a stepping manner, the first is 0x01, the second is 0x02, and so on, the data of the position where each change occurs is usually called Serial Number (Serial Number) and is marked as SN. For serial number writing in chip writing data, the serial number writing is generally completed independently after the whole data writing is completed, but a programming device (or writing device) generally supports chips with different models of multiple manufacturers, serial number generating rules of each customer are different, a general mode is needed to be compatible with various generating rules, the serial number writing method is suitable for the writing condition of multiple chips, writing operations of some chips are OTP operations, namely the chips can only be written once, if a previous serial number placement area is written with other non-customer expected values, the subsequent writing again is failed, and the problem of poor compatibility of the traditional serial number writing scheme can be seen.
Disclosure of Invention
Accordingly, it is necessary to provide a chip serial number burning device and method with good compatibility and high flexibility, aiming at the technical problems.
One aspect of the present application provides a chip serial number burning device, including: the device comprises a serial number generator, a plurality of serial number generators, a chip driving module and a data processing module, wherein the chip driving module and the data processing module are arranged on burning equipment;
when the chip driving module performs chip burning action, serial number request information is sent to the serial number generator; the serial number generator receives the serial number request information and sends serial number record group generation information to a designated serial number generator; the appointed serial number generator is a serial number generator selected by a user; the appointed sequence number generator receives the sequence number record group generation information, generates a sequence number record group and returns the sequence number record group to the sequence number generator; the sequence number generator reads the current sequence number from the sequence number record group and sends the current sequence number to the data processing module; and the data processing module puts the current serial number into a burning data stream, so that the chip driving module writes the burning data stream into a chip.
In one embodiment, after receiving information that the writing of the data fed back by the chip is successful, the chip driving module reads current data on the chip, compares the current data with the recording data stream, and if the current data is consistent with the recording data stream, sends sequence number completion information to the sequence number generator; and/or the serial number generator releases the appointed serial number generator after receiving serial number completion information of all chips to be burned in the current batch.
In one embodiment, the chip driving module obtains a first data range of initial burning data and sends the first data range to the data processing module; the data processing module acquires a second data range of the current serial number, identifies an intersection part between the first data range and the second data range, and merges serial number data of the intersection part into the initial burning data to obtain a burning data stream.
In one embodiment, the sequence number record set includes an array of multiple sets of record sequence numbers.
In one embodiment, the serial number generator allocates and initializes the serial number generator after the chip driving module receives the recording request, so that the designated serial number generator is initialized.
Specifically, the specified sequence number generator initializes the present generator to receive a configuration file; displaying a setting interface, and reading sequence parameters set by a user in the form of an interactive interface; reading setting completion information input by a user through the interactive interface, recovering initialization, closing the interactive interface, and generating a serial number group according to the configuration file and the sequence parameters.
Specifically, after the specified sequence number generator obtains the burning information setting instruction, sequentially calling an SNCreateWindow interface, an SNShowWindow interface, an SNInitCtrlsValue interface, an SNGetCtrlsValue interface and an SNDestroyWindow interface, and calling an SNPreLoad interface; the SNCreateWindow interface is used for requesting the sequence number generator to create a window for information setting for a client, the SNShowWindow interface is used for requesting the sequence number generator to display the created window, the SNInitCtrlsValue interface is used for requesting the sequence number generator to set the initial value of a control on the window, the SNGetCtrlsValue interface is used for requesting the sequence number generator to return to the final setting of the client, the SNDestroyWindow interface is used for requesting the sequence number generator to destroy the created window, the SNPreLoad interface is used for requesting the sequence number generator to preload, and the preloading allows the generator to perform initialization preparation of a sequence number generating environment according to the setting; the appointed sequence number generator also calls the SNQuery interface and the SNTellResult interface in sequence, and returns to execute the process of calling the SNQuery interface when the sequence number is required to be acquired in the current burning period until the sequence number is not required to be acquired in the current burning period; the SNQuery interface is used for requesting the serial number generator to return serial number data, wherein the serial number data comprises a plurality of serial number records, and one serial number record comprises a chip address input by a user, the number of bytes occupied by the serial number and content; the SNTellResult interface is used for informing the burning result of the serial number generator.
Specifically, the sequence number generator calls an SNUnLoad interface after the sequence number is not required to be acquired in the current burning period; the SNUnLoad interface informs the generator of recycling resources and does not call other interfaces.
The application provides a chip serial number burning method in another aspect, which comprises the following steps:
when the burning device performs chip burning action, sending serial number request information to serial number determining equipment;
the serial number generator receives the serial number request information and sends serial number record group generation information to a designated serial number generator; the appointed serial number generator is a serial number generator selected by a user;
a designated sequence number generator receives the sequence number record group generation information, generates a sequence number record group and returns the sequence number record group to the sequence number generator;
the sequence number generator reads the current sequence number from the sequence number record group and sends the current sequence number to the data processing module;
and the burning device puts the current serial number into a burning data stream, so that the chip driving module writes the burning data stream into a chip.
In one embodiment, the method for burning a chip serial number further includes:
after receiving information that the data fed back by the chip is successfully written, the burning device reads current data on the chip, compares the current data with the burning data stream, and if the current data is consistent with the burning data stream, sends serial number completion information to the serial number generator;
and/or the number of the groups of groups,
and the serial number generator releases the appointed serial number generator after receiving serial number completion information of all chips to be burned in the current batch.
According to the chip serial number burning device and method, the serial number generator and serial number generator combination mode is adopted, the serial number generation rule is restrained to the serial number generator, the continuous change of the serial number generation rule is prevented from influencing the burning flow of burning equipment, the data processing module is added to the chip burning and serial number generator, the serial number is fused into the burning data flow, the influence on the driving processing flow due to the position difference or the chip difference of the serial number is avoided, the compatibility influence on a chip burning equipment system caused by different users on the different serial number generation rule can be solved, meanwhile, the differential processing of serial number burning by chip driving is shielded, the flexibility is high, and the chip burning device can be suitable for various user demands.
Drawings
The above, as well as additional purposes, features, and advantages of exemplary embodiments of the present disclosure will become readily apparent from the following detailed description when read in conjunction with the accompanying drawings. Several embodiments of the present disclosure are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which like reference numerals refer to similar or corresponding parts and in which:
FIG. 1 is a schematic diagram of a chip serial number burning device according to an embodiment;
FIG. 2 is a schematic diagram illustrating an operation of a device for burning serial numbers of chips according to an embodiment;
FIG. 3 is a timing diagram of the operation of the device for burning serial numbers of chips according to one embodiment;
FIG. 4 is a schematic diagram of various merge scenarios in one embodiment;
FIG. 5 is an interface call flow diagram of the sequence number generator in one embodiment;
FIG. 6 is a diagram of an interface method call flow diagram of one embodiment.
Detailed Description
The following description of the technical solutions in the embodiments of the present disclosure will be made clearly and completely with reference to the accompanying drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are some embodiments of the present disclosure, but not all embodiments. Based on the embodiments in this disclosure, all other embodiments that a person skilled in the art would obtain without making any inventive effort are within the scope of protection of this disclosure.
Specific embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
As shown in fig. 1, a first aspect of the present application provides a chip serial number burning device, including: a serial number generator 102, a plurality of serial number generators (serial number generator 1 103, serial number generator 2 104, and serial number generator N105 shown in fig. 1), and a chip driving module 107 data processing module 108 provided in the recording apparatus 101;
when the chip driving module 107 performs a chip burning operation, sending serial number request information to the serial number generator 102;
the serial number generator 102 receives the serial number request information and sends serial number record group generation information to a designated serial number generator; the appointed serial number generator is a serial number generator selected by a user;
the designated sequence number generator receives the sequence number record group generation information, generates a sequence number record group, and returns the sequence number record group to the sequence number generator 102;
the sequence number generator 102 reads a current sequence number from the sequence number record set and sends the current sequence number to the data processing module 108;
the data processing module 108 places the current serial number into a stream of burned data, so that the chip driving module writes the stream of burned data into the chip 106.
One of the sequence number generators realizes a sequence number generation rule, if a new sequence number generation rule is added, the sequence number generator is realized again, and when the sequence number generator 102 receives the sequence number request information, the sequence number generator selected by a user (such as an operator) according to actual requirements can be read through an interactive interface or the like to determine a designated sequence number generator. The above-mentioned serial number generator 02 and serial number generator are logically divided into blocks with respect to the chip driving module 107 and the data processing module 108, and may be configured independently of the physical file (for example, the serial number generator 02 and serial number generator are configured on a serial number determining device independent of the burning device 101), or may be integrated into one physical file (for example, the serial number generator 02 and serial number generator are configured on the burning device 101), which is not limited herein. The interface provided by the serial number generator has at least three functions of Init (generator), querySN (request serial number), deInit (clear generator), other interfaces can be expanded according to the needs without providing necessary realization according to the situation; the column number record group and/or the serial number storage mode generated by the device is not limited to the use of an array, and other data structures such as a linked list can be used.
Specifically, the working process of the above-mentioned chip serial number writing device may also refer to fig. 2, where the chip driving module 107 reads or writes data to the data processing module 108 through 111, and reads or writes data to the chip 106 through 112. The serial number generator 102 is a software program module independent of the burning device 101, and is responsible for providing the data processing module 108 with the chip location, the number of bytes occupied and the content to which the serial number is written by the customer, the data processing module 108 combines these serial number data into the whole burning data stream, and transmits the data to the chip driving module 107, and the chip driving module 107 does not need to know where the serial number is in the burning data stream, and directly writes the data into the chip according to the communication protocol provided by the chip manual. The serial number generator interfaces with serial number generators 1-N, each serial number generator (serial number generator 1 103, serial number generator 2 and serial number generator N105 shown in fig. 1) needs to provide consistent serial number data output information for the serial number generator according to the agreed interface definition, one serial number generator realizes one serial number generation rule, and if a new serial number generation rule exists, one serial number generator is realized again. 109 denotes a sequence number generator and a call specification intermediate the sequence number generator.
The combination mode of the serial number generator and the serial number generator is adopted by the chip serial number burning device, the serial number generation rule is restricted to the serial number generator, the continuous change of the serial number generation rule is prevented from influencing the burning flow of the burning equipment, the data processing module is added to the chip burning and serial number generator, the serial number is fused into the burning data flow, the influence on the driving processing flow due to the position difference or the chip difference of the serial number is avoided, the compatibility influence on the chip burning equipment system caused by different users on the different serial number generation rule can be solved, meanwhile, the differential processing of the serial number burning by chip driving is shielded, the flexibility is high, and the chip burning device can be suitable for various user demands.
In one embodiment, after receiving the information that the writing of the data fed back by the chip is successful, the chip driving module reads the current data on the chip, compares the current data with the recording data stream, and if the current data is consistent with the recording data stream, sends serial number completion information to the serial number generator; and/or the serial number generator releases the appointed serial number generator after receiving serial number completion information of all chips to be burned in the current batch.
In this embodiment, after all the chips to be burned in the current batch are burned, the serial number generator can clean the corresponding designated serial number generator (DeInit), and finally clean the generator, release the resources, and call the Init in a peer-to-peer manner.
Specifically, referring to the timing chart shown in fig. 3, the working process of the chip serial number burning device includes:
1. the method comprises the steps that a chip driving module receives a burning request sent by a chip in burning setting;
2. the sequence number generator assigns and initializes a sequence number generator (fig. 3 specifically an assigned sequence number generator N);
3. the chip driving module in the burning setting sends serial number request information to the serial number generator to request to generate a serial number;
4. the serial number generator receives serial number request information and sends serial number record group generation information to the serial number generator N;
6. the serial number generator N receives serial number record group generation information, generates a serial number record group and returns the serial number record group to the serial number generator;
5. the serial number generator reads the current serial number from the serial number record group and sends the current serial number to the data processing module;
7. the data processing module puts the current serial number into a burnt data stream;
8. the chip driving module writes the burnt data stream into the chip;
9. the chip informs whether the data writing is successful;
10. the chip driving module reads data in the chip;
12. the chip driving module compares the read data with an original data stream (a burnt data stream);
13. the chip driving module reports a result according to the comparison result; after judging that the serial number is successfully written into the chip, sending serial number completion information to a serial number generator;
14. after all the chips to be burned in the current batch are burned, the serial number generator releases the designated serial number generator (i.e. the serial number generator N shown in fig. 3).
Specifically, the sequence number record group includes an array of a plurality of sets of record sequence numbers.
In this embodiment, when the serial number generator requests the serial number generator to generate a serial number record group, one serial number record includes a chip address where the client wants the serial number to be written, the number of bytes occupied by the serial number, and the content, and the serial number record group is an array including a plurality of serial number records. Thus, the requirement that a chip can have data of a plurality of places as serial numbers possibly desired by a customer can be met.
Before requesting a sequence number group, the sequence number generator needs to be initialized by calling the allocation and initialization method provided by the generator after the corresponding user (such as an external client) selects the designated generator, and a designated configuration file is allowed to be imported to the sequence number generator for informing the initialization parameters during initialization. And finally, when the serial number is not used any more, the corresponding interface is required to be called for releasing the serial number generator. To prevent errors in writing data, after the chip data is written successfully, the data needs to be read back from the chip and compared with the original data stream to determine that the data is written correctly into the chip.
In one embodiment, the chip driving module obtains a first data range of initial burning data and sends the first data range to the data processing module; the data processing module acquires a second data range of the current serial number, identifies an intersection part between the first data range and the second data range, and merges serial number data of the intersection part into the initial burning data to obtain a burning data stream.
The embodiment can realize the combination of the current serial number and the corresponding initial data stream, and obtain the accurate and complete burnt data stream. Specifically, the process of merging the serial number data carried by the current serial number into the corresponding burnt data stream may be as follows:
1. the chip driving module acquires the start position (StartAddress) and the Length (Length) of the recording data (initial recording data) to determine a first data range;
2. the data processing module obtains whether serial number data exists in a first data range [ StartAddress, startAddress +Length-1] of the request when the chip driving module requests, wherein "[ ]" represents a closed interval, for example, the Length from StartAddress being 0 is 10 bytes, and the Length is represented as [0,9]. Assuming that the range of the sequence number data is [ SNStartAddress, SNStartAddress +SNLength-1], wherein SNStartAddress is the starting position of the sequence number data, SNLength is the length, if two intervals have an intersection, merging the sequence number data of the intersection part into returned request data, and the non-intersection part data in the request data range is derived from the original archive data.
In one example, assume that the now drive requests to read data of [0,9], which is originally 0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a, and the valid range of sequence number data is four bytes from address 0, which is 0x12,0x34,0x56,0x78. Then after merging, the drive will get 10 bytes of data, 0x12,0x34,0x56,0x78,0x05,0x06,0x07,0x08,0x09,0x0a, where the 0x beginning indicates that the value is 16-ary data. If the valid range of sequence numbers is four bytes from address 8, the values are 0x12,0x34,0x56,0x78, then 0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x12,0x34 will be obtained by the merge driving. The following describes various cases of the merging case:
case 1: (snstartaddress+snlength-1) < StartAddress, no intersection, no merging, as shown in fig. 4 (a).
Case 2 (StartAddress+Length-1) < SNStartAddress, no intersection, no merging, as shown in FIG. 4 (b).
Case 3: SNStartAddress < StartAddress ]
And (snstartaddress+snlength-1) > = (startaddress+length-1). The sequence number data is merged at [ StartAddress, startAddress +Length-1], as shown in FIG. 4 (c), where the hatched data is merged.
Case 4: SNStartAddress < StartAddress ]
And (SNStartAddress+SNLength-1) < (StartAddress+Length-1).
The sequence number located [ StartAddress, SNStartAddress +SNLength-1] data is merged as shown in FIG. 4 (d), where the shaded data is merged.
Case 5: SNStartAddress > StartAddress
And (SNStartAddress+SNLength-1) > StartAddress+Length-1. The sequence number located [ SNStartAddress, startAddress +Length-1] data is merged as shown in FIG. 4 (e), where the shaded data is merged.
In one embodiment, the serial number generator allocates and initializes the serial number generator after the chip driver module receives the burn request, so that the designated serial number generator is initialized.
As one embodiment, the specified sequence number generator initializes the present generator to receive a configuration file; displaying a setting interface, and reading sequence parameters set by a user in the form of an interactive interface; reading setting completion information input by a user through the interactive interface, recovering initialization, closing the interactive interface, and generating a serial number group according to the configuration file and the sequence parameters.
In one example, in the chip serial number burning process, the interface call flow of each serial number generator including the designated serial number generator may be shown with reference to fig. 5, where the interface method provided by the serial number generator includes:
1. an initialization generator (Init) allows to transfer a configuration file containing the creation information.
2. A setup interface (ShowDialog) is presented that allows the builder to interface with the operator for parameter settings.
3. A setting (DoOK) is determined, and the method is invoked after the operator setting is completed.
4. Restoration initialization (DoReset), the operator performs restoration setting initialization.
5. Closing the setup interface (closedialogs), closing the interactive interface.
6. And (3) requesting a serial number (QuerySN), wherein the request generator generates a serial number group, and transmits the current chip burning number, the UID of the chip and the custom CID. The burn number starts from 1 and is incremented by 1 each time. The UID of the chip is the identity card of each chip, the chips manufactured by the chip manufacturer are solidified in the chips leaving the factory, and the chips of the same model and batch are different. CID is a customer-defined ID (Custom ID), such as a two-dimensional code on a PCBA board, so that in order to track board information, different two-dimensional codes exist on different boards, the two-dimensional codes participate in serial number generation calculation, and the chip and the PCBA board are bound.
7. The producer (DeInit) is cleaned up, and at the end, the producer is cleaned up, the resources are released, and the resource is called with the Init in a peer-to-peer mode.
In this example, the implementation of the corresponding interface adopts a dynamic library manner, so that the dynamic loading of the burning software can be facilitated, the work of the serial number generator is independent of the burning software, and the serial number generator can work normally when any chip and a plurality of chips are burned simultaneously. The serial number generator has a lock function, and can ensure the data integrity during concurrent access. The specific serial number data recording position and length are configured through an interface, and are determined by a client according to the actual condition of self-recording, if a plurality of chips are recorded simultaneously, the serial number data recording position and length expected by the simultaneously recorded chips are ensured to be the same.
As an embodiment, after the specified sequence number generator obtains the burning information setting instruction, sequentially calling an SNCreateWindow interface, an SNShowWindow interface, an SNInitCtrlsValue interface, an SNGetCtrlsValue interface, and an sndestrewingw interface, and calling an SNPreLoad interface; the SNCreateWindow interface is used for requesting the sequence number generator to create a window for information setting of a client, wherein the information setting comprises a sequence number burning address, a length, a group number, an initialization file selection and the like; the SNShowWindow interface is used for requesting the sequence number generator to display the window which is already created; the SNInitCtrlsValue interface is used for requesting the sequence number generator to set the initial value of the control on the window; the SNGetCtrlsValue interface is used for requesting the serial number generator to return to the final setting of the client; the SNDestroyWindow interface is used for requesting the sequence number generator to destroy the created window; the SNPreLoad interface is used for requesting the pre-loading of the serial number generator, and the pre-loading allows the generator to perform initialization preparation of a serial number generation environment according to the setting, including resource allocation, initialization of corresponding variables and the like;
the appointed sequence number generator also calls the SNQuery interface and the SNTellResult interface in sequence, and returns to execute the process of calling the SNQuery interface when the sequence number is required to be acquired in the current burning period until the sequence number is not required to be acquired in the current burning period; the SNQuery interface is used for requesting the serial number generator to return serial number data, wherein the serial number data comprises a plurality of serial number records, and one serial number record comprises a chip address input by a user, the number of bytes occupied by the serial number and content; the SNTellResult interface is used for informing the burning result of the serial number generator.
Specifically, the sequence number generator calls an SNUnLoad interface after the sequence number is not required to be acquired in the current burning period; the SNUnLoad interface informs the generator of recycling resources and does not call other interfaces.
The interface method call flow provided in this embodiment may refer to fig. 6, where the interface convention provided by the sequence number generator to the sequence number generator includes initialization (SNPreLoad) and release (snuload), allowing the same generator to generate different outputs under the action of different configuration files (the interface displayed by SNShowWindow allows the client to set), and may allow a call to obtain multiple sets of sequence numbers to be burned into the same chip.
Another aspect of the present application provides a method for burning a serial number of a chip, including:
when the burning device performs chip burning action (such as triggering a burning execution command when a burning function button on a corresponding control end or a burning function button on a programmer is pressed), sending serial number request information to the serial number determining device;
the serial number generator receives the serial number request information and sends serial number record group generation information to a designated serial number generator; the appointed serial number generator is a serial number generator selected by a user;
a designated sequence number generator receives the sequence number record group generation information, generates a sequence number record group and returns the sequence number record group to the sequence number generator;
the sequence number generator reads the current sequence number from the sequence number record group and sends the current sequence number to the data processing module;
and the burning device puts the current serial number into a burning data stream, so that the chip driving module writes the burning data stream into a chip.
In one embodiment, the method for burning a chip serial number further includes:
after receiving information that the data fed back by the chip is successfully written, the burning device reads current data on the chip, compares the current data with the burning data stream, and if the current data is consistent with the burning data stream, sends serial number completion information to the serial number generator;
and/or the number of the groups of groups,
and the serial number generator releases the appointed serial number generator after receiving serial number completion information of all chips to be burned in the current batch.
The chip serial number burning method provided by the application has all the beneficial effects of each chip serial number burning device provided by the embodiment, and is not described in detail herein.
In the foregoing description of the present specification, the terms "fixed," "mounted," "connected," or "connected" are to be construed broadly, unless explicitly stated or limited otherwise. For example, in terms of the term "coupled," it may be fixedly coupled, detachably coupled, or integrally formed; can be mechanically or electrically connected; either directly or indirectly through intermediaries, or in communication with each other or in interaction with each other. Therefore, unless otherwise specifically defined in the specification, a person skilled in the art can understand the specific meaning of the above terms in the present application according to the specific circumstances.
Those skilled in the art will also appreciate from the foregoing description that terms such as "upper," "lower," "front," "rear," "left," "right," "length," "width," "thickness," "vertical," "horizontal," "top," "bottom," "inner," "outer," "axial," "radial," "circumferential," "center," "longitudinal," "transverse," "clockwise," or "counterclockwise" and the like are used herein for the purpose of facilitating description and simplifying the description of the present application, and thus do not necessarily have to have, configure, or operate in, the specific orientations, and thus are not to be construed or construed as limiting the present application.
In addition, the terms "first" or "second" and the like used in the present specification to refer to the numbers or ordinal numbers are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present specification, the meaning of "plurality" means at least two, for example, two, three or more, etc., unless explicitly defined otherwise.
While various embodiments of the present application have been shown and described herein, it will be obvious to those skilled in the art that such embodiments are provided by way of example only. Many modifications, changes, and substitutions will now occur to those skilled in the art without departing from the spirit and scope of the application. It should be understood that various alternatives to the embodiments of the application described herein may be employed in practicing the application. The appended claims are intended to define the scope of the application and to cover such modular compositions, equivalents, or alternatives falling within the scope of the claims.

Claims (8)

1. The chip serial number burning device is characterized by comprising: the device comprises a serial number generator, a plurality of serial number generators, a chip driving module and a data processing module, wherein the chip driving module and the data processing module are arranged on burning equipment;
when the chip driving module performs chip burning action, serial number request information is sent to the serial number generator;
the serial number generator receives the serial number request information and sends serial number record group generation information to a designated serial number generator; the appointed serial number generator is a serial number generator selected by a user; the serial number generator is used for realizing a serial number generation rule;
the appointed sequence number generator receives the sequence number record group generation information, generates a sequence number record group and returns the sequence number record group to the sequence number generator; wherein the serial number record group is an array containing a plurality of serial number records;
the sequence number generator reads the current sequence number from the sequence number record group and sends the current sequence number to the data processing module;
the data processing module puts the current serial number into a burning data stream, so that the chip driving module writes the burning data stream into a chip; wherein,
the chip driving module acquires a first data range of initial burning data and sends the first data range to the data processing module; the first data range is determined by the initial position and the length of the initial burning data;
the data processing module acquires a second data range of the current serial number, identifies an intersection part between the first data range and the second data range, and merges serial number data of the intersection part into the initial burning data to obtain a burning data stream; the second data range is determined by the starting position and the length of the current sequence number data.
2. The device for burning serial numbers of chips as defined in claim 1, wherein,
after receiving information that the data fed back by the chip is successfully written, the chip driving module reads current data on the chip, compares the current data with the burnt data stream, and if the current data is consistent with the burnt data stream, sends serial number completion information to the serial number generator;
and/or the number of the groups of groups,
and the serial number generator releases the appointed serial number generator after receiving serial number completion information of all chips to be burned in the current batch.
3. The apparatus according to claim 1 or 2, wherein the serial number generator assigns and initializes the serial number generator after the chip driving module receives the burning request, so that the designated serial number generator is initialized.
4. The chip serial number burning apparatus of claim 3 wherein the specified serial number generator initializes a present generator to receive a configuration file; displaying a setting interface, and reading sequence parameters set by a user in the form of an interactive interface; reading setting completion information input by a user through the interactive interface, recovering initialization, closing the interactive interface, and generating a serial number group according to the configuration file and the sequence parameters.
5. The device for burning a serial number of a chip according to claim 3, wherein after the specified serial number generator obtains the instruction for setting burning information, the device calls an SNCreateWindow interface, an SNShowWindow interface, an SNInitCtrlsValue interface, an SNGetCtrlsValue interface, and an SNDestroyWindow interface in sequence, and calls an SNPreLoad interface; the SNCreateWindow interface is used for requesting the sequence number generator to create a window for information setting for a client, the SNShowWindow interface is used for requesting the sequence number generator to display the created window, the SNInitCtrlsValue interface is used for requesting the sequence number generator to set the initial value of a control on the window, the SNGetCtrlsValue interface is used for requesting the sequence number generator to return to the final setting of the client, the SNDestroyWindow interface is used for requesting the sequence number generator to destroy the created window, the SNPreLoad interface is used for requesting the sequence number generator to preload, and the preloading allows the generator to perform initialization preparation of a sequence number generating environment according to the setting;
the appointed sequence number generator also calls the SNQuery interface and the SNTellResult interface in sequence, and returns to execute the process of calling the SNQuery interface when the sequence number is required to be acquired in the current burning period until the sequence number is not required to be acquired in the current burning period; the SNQuery interface is used for requesting the serial number generator to return serial number data, wherein the serial number data comprises a plurality of serial number records, and one serial number record comprises a chip address input by a user, the number of bytes occupied by the serial number and content; the SNTellResult interface is used for informing the burning result of the serial number generator.
6. The device for burning serial numbers of chips as defined in claim 5, wherein said serial number generator calls the snuload interface after the current burning cycle does not require acquisition of serial numbers; the SNUnLoad interface informs the generator of recycling resources and does not call other interfaces.
7. The method for burning the serial number of the chip is characterized by comprising the following steps of:
when the burning device performs chip burning action, sending serial number request information to serial number determining equipment;
the serial number generator receives the serial number request information and sends serial number record group generation information to a designated serial number generator; the appointed serial number generator is a serial number generator selected by a user; the serial number generator is used for realizing a serial number generation rule;
a designated sequence number generator receives the sequence number record group generation information, generates a sequence number record group and returns the sequence number record group to the sequence number generator; wherein the serial number record group is an array containing a plurality of serial number records;
the sequence number generator reads the current sequence number from the sequence number record group and sends the current sequence number to the data processing module;
the burning device puts the current serial number into a burning data stream, so that a chip driving module writes the burning data stream into a chip; wherein,
the chip driving module acquires a first data range of initial burning data and sends the first data range to the data processing module; the first data range is determined by the initial position and the length of the initial burning data;
the data processing module acquires a second data range of the current serial number, identifies an intersection part between the first data range and the second data range, and merges serial number data of the intersection part into the initial burning data to obtain a burning data stream; the second data range is determined by the starting position and the length of the current sequence number data.
8. The method for burning a serial number of a chip according to claim 7, further comprising:
after receiving information that the data fed back by the chip is successfully written, the burning device reads current data on the chip, compares the current data with the burning data stream, and if the current data is consistent with the burning data stream, sends serial number completion information to the serial number generator;
and/or the number of the groups of groups,
and the serial number generator releases the appointed serial number generator after receiving serial number completion information of all chips to be burned in the current batch.
CN202110628212.4A 2021-06-06 2021-06-06 Chip serial number burning device and method Active CN113326051B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110628212.4A CN113326051B (en) 2021-06-06 2021-06-06 Chip serial number burning device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110628212.4A CN113326051B (en) 2021-06-06 2021-06-06 Chip serial number burning device and method

Publications (2)

Publication Number Publication Date
CN113326051A CN113326051A (en) 2021-08-31
CN113326051B true CN113326051B (en) 2023-11-24

Family

ID=77419782

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110628212.4A Active CN113326051B (en) 2021-06-06 2021-06-06 Chip serial number burning device and method

Country Status (1)

Country Link
CN (1) CN113326051B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101667126A (en) * 2008-09-03 2010-03-10 神讯电脑(昆山)有限公司 Method for burning computer serial number
CN104916327A (en) * 2015-05-22 2015-09-16 深圳创维-Rgb电子有限公司 Method and system of simultaneously burning multiple television KEY codes on line
CN107341411A (en) * 2017-06-13 2017-11-10 广州视源电子科技股份有限公司 The product ID generation method and device of a kind of electronic equipment
CN109189402A (en) * 2018-07-11 2019-01-11 厦门华联电子股份有限公司 The automatic programming system of product software, method and burning server
CN109901851A (en) * 2019-02-28 2019-06-18 广州小鹏汽车科技有限公司 A kind of firmware burning system and method
CN110471676A (en) * 2019-08-22 2019-11-19 深圳市讯盾科技有限公司 MAC Address method for burn-recording and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
IL154346A (en) * 2003-02-06 2010-06-16 Eyal Cohen Method and system for protecting against illegal copy and/or use of digital content stored on optical or other media
US7730197B2 (en) * 2006-06-30 2010-06-01 International Business Machines Corporation Server-based acquisition and usage of dynamic MAC addresses in a virtualized ethernet environment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101667126A (en) * 2008-09-03 2010-03-10 神讯电脑(昆山)有限公司 Method for burning computer serial number
CN104916327A (en) * 2015-05-22 2015-09-16 深圳创维-Rgb电子有限公司 Method and system of simultaneously burning multiple television KEY codes on line
CN107341411A (en) * 2017-06-13 2017-11-10 广州视源电子科技股份有限公司 The product ID generation method and device of a kind of electronic equipment
CN109189402A (en) * 2018-07-11 2019-01-11 厦门华联电子股份有限公司 The automatic programming system of product software, method and burning server
CN109901851A (en) * 2019-02-28 2019-06-18 广州小鹏汽车科技有限公司 A kind of firmware burning system and method
CN110471676A (en) * 2019-08-22 2019-11-19 深圳市讯盾科技有限公司 MAC Address method for burn-recording and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
徐岳清.TM32系列单片机脱机批量烧录器的设计与实现.《长春工程学院学报(自然科学版)》.第16卷(第1期),第115-119页. *

Also Published As

Publication number Publication date
CN113326051A (en) 2021-08-31

Similar Documents

Publication Publication Date Title
CA2483287C (en) Automated software testing system and method
US6308146B1 (en) System and method for simulating user input to control the operation of an application
US5455903A (en) Object oriented customer information exchange system and method
EP0920015A2 (en) Multimedia program editing and presenting system
US6453450B1 (en) Timing diagram compiler and runtime environment for interactive generation of executable test programs for logic verification
CN104317618A (en) Firmware partitioning method and device
CN113326051B (en) Chip serial number burning device and method
CN115543282A (en) Page code generation method and device, storage medium and computer equipment
CN107491311B (en) Method and system for generating page file and computer equipment
JP2000216854A (en) Method, verification module, server, control module and storage means for verifying configuration data for communication system
CA2493929A1 (en) Object-oriented design method for the time-effective and cost-effective development of production-grade embedded systems based on a standardized system architecture
CN112587929B (en) Game copy generation method, device and equipment
CN111708527B (en) Method, device and medium for generating configuration file of firmware
CN111905372B (en) Game trigger creation method, game running method and device
US7458068B2 (en) Vertical requirements development system and method
CN111611684B (en) Method, system, device and storage medium for generating interference zone logic block
JPS60128530A (en) User menu display processing system
KR102367197B1 (en) Method for providing dentistry image and dentistry image processing device therefor
CN109901846A (en) A kind of method for burn-recording of software
US7305655B2 (en) Vertical requirements development system and method
CN115543804A (en) Method and device for generating ticker script, storage medium and computer equipment
CN116340125A (en) Behavior path series connection method and device based on clues and electronic equipment
CN117573453A (en) System and method for verifying modularized FLASH function
CN116304134A (en) Quick playing method of multimedia file, terminal equipment and storage medium
CN116955193A (en) Interface testing method, device, equipment and storage medium

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