Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Reference picture 2, Fig. 2 are the mass production device structural representation for the hardware running environment that scheme of the embodiment of the present invention is related to.
As shown in Fig. 2 the mass production device can include:Processor 1001, such as CPU, communication bus 1002, user interface
1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is used to realize the connection communication between these components.
User interface 1003 can include display screen (Display), input block such as keyboard (Keyboard), optional user interface
1003 can also include wireline interface, the wave point of standard.Network interface 1004 can optionally connect including the wired of standard
Mouth, wave point (such as WI-FI interfaces).Memory 1005 can be high-speed RAM memory or stable memory
(non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor
1001 storage device.
It will be understood by those skilled in the art that the mass production device structure shown in Fig. 2 does not form the limit to mass production device
It is fixed, it can include than illustrating more or less parts, either combine some parts or different parts arrangement.
As shown in Fig. 2 as in a kind of memory 1005 of storage medium can include operating system, network service mould
Block, Subscriber Interface Module SIM and volume production program.
In the mass production device shown in Fig. 2, network interface 1004 is mainly used in connecting external equipment, is carried out with external equipment
Data communicate;User interface 1003 is mainly used in connecting user terminal, enters row data communication with terminal;The mass production device passes through
Processor 1001 calls the volume production program stored in memory 1005, and performs following operate:
General controls chip obtains the chip type for treating volume production chip;
Corresponding general volume production file is chosen according to the chip type;
The general volume production file is run, so that the general volume production file treats that volume production chip carries out bad block and swept to described
Retouch, and generate the first scan data;
General encoding and decoding are obtained, run the general encoding and decoding, so that the general encoding and decoding are to the described first scanning number
According to being encoded, the second scan data of generation;
General controls code is obtained, volume production core is treated to described according to the general controls code and second scan data
Piece carries out volume production.
Further, processor 1001 can call the volume production program stored in memory 1005, also perform following operate:
The first information is sent to main frame according to the chip type and obtains instruction, so that the first letter described in the response of host
Breath obtains instruction;
Receive the first response message of the main frame, and the general encoding and decoding according to first response information acquisition.
Further, processor 1001 can call the volume production program stored in memory 1005, also perform following operate:
The general encoding and decoding are extracted from the storage chip of local according to the chip type.
Further, processor 1001 can call the volume production program stored in memory 1005, also perform following operate:
The general volume production file is run, so that the acquisition of information of volume production file generated second instructs;
The second acquisition of information instruction is received, is carried according to second acquisition of information instruction from the storage chip of local
Take the general encoding and decoding.
Further, processor 1001 can call the volume production program stored in memory 1005, also perform following operate:
The instruction of 3rd acquisition of information is sent to the main frame according to the chip type, so that the described in the response of host
Three acquisition of information instruct;
Receive the second response message of the main frame, and the general controls generation according to second response information acquisition
Code.
Further, processor 1001 can call the volume production program stored in memory 1005, also perform following operate:
The general controls code is extracted from the storage chip of local according to the chip type.
Further, processor 1001 can call the volume production program stored in memory 1005, also perform following operate:
The general volume production file is run, so that the acquisition of information of volume production file generated the 4th instructs;
The 4th acquisition of information instruction is received, is carried according to the 4th acquisition of information instruction from the storage chip of local
Take the general controls code.
The present embodiment can be carried out by such scheme by a set of general volume production file to different types of storage device
Volume production, so as to reduce volume production cost.
Based on above-mentioned hardware configuration, the mass production method embodiment of the invention based on general volume production system is proposed.
Reference picture 3, Fig. 3 are the schematic flow sheet of the mass production method first embodiment of the invention based on general volume production system.
In the first embodiment, the mass production method based on general volume production system comprises the following steps:
Step S10, general controls chip obtain the chip type for treating volume production chip;
It should be noted that the chip type of general flash chip be divided into single layer cell (Single Level Cell,
SLC), multilevel-cell (Multi Level Cell, MLC) and three-layer unit (Trinary Level Cell, TLC), wherein,
SLC deposits 1 bit data in 1 memory storage unit, and MLC deposits 2 bit's in 1 memory storage unit
Data, and TLC deposits 3 bit data in 1 memory storage unit.
The fast long lifespan of SLC speed, about 100,000 erasing and writing lifes, MLC speed General Lifes are general, about 3000 to 10000 times
Erasing and writing life, the slow short life of TLC speed, about 500 erasing and writing lifes, K9A, K9B, K9C are TLC in the flash of Samsung, if
Start for K5, be then SLC;The flash of SanDisk Corporation is TLC mostly, and model there is not rule;Toshiba flash types
Number the 9th be that T is exactly TLC, be that D is exactly MLC, is that S is exactly SLC;HY front three is that H2E is exactly TLC;MT's is
It 8 is TLC that 4th, which is, such as MT28.
From the foregoing, it will be observed that treating that the type of volume production chip is different, the volume production program for treating volume production chip progress volume production also can be corresponding
Difference, such as when carrying out volume production to the chips of MLC types, corresponding volume production program can be used to carry out volume production.
In the present embodiment, can be different to supporting by the general controls chip by setting a general controls chip
The code encoding/decoding mode of control chip, the data of the different coding in different types of storage chip are solved so as to realize
Code.
Step S20, corresponding general volume production file is chosen according to the chip type;
It should be noted that the default volume production file can be in advance in the volume production file being locally stored, according to getting
Treat that the chip type of volume production chip extracts corresponding volume production file, such as detect and treat that volume production chip is the K5 that Samsung dispatches from the factory
During the chip type of model, according to K5 models treat volume production chip extraction corresponding to volume production file.The volume production file can be amount
Stages of labor sequence.
In the specific implementation, treat the superperformance of volume production chip to realize, when treating volume production chip and carrying out volume production, lead to
Cross suitable volume production program and treat volume production chip and carry out volume production, so as to preferably play the performance for treating volume production chip, such as
When treating volume production chip and carrying out volume production, suitable volume production program is selected, it is more accurate to treat the bad block scan of volume production chip, may be used also
The data processing speed after volume production chip after volume production is improved, so as to effectively improve the performance for treating volume production chip.
It is understood that in order to from be locally extracted to volume production file, storage chip can be set, volume production file is stored in
In storage chip, so as to effectively be managed volume production file, before volume production is carried out, storage chip is accessed, from storage core
Lift volume production file in piece, be easy to efficiently be managed for volume production program, and improve volume production speed.
Volume production is carried out to different types of storage chip in order to realize, passes through the general volume production file of setting, volume production text
Part may be provided in main frame, when carrying out volume production, is obtained by mass production device from main frame, can also be set directly at mass production device
In, directly extracted from local by mass production device.
Step S30, the general volume production file is run, so that the general volume production file treats that volume production chip is carried out to described
Bad block scan, and generate the first scan data;
The volume production schematic flow sheet of storage chip as shown in Figure 4, when volume production file treats volume production chip progress volume production,
Control chip obtains volume production file from main frame, and wherein volume production file includes general coding/decoding module and common apparatus control generation
Code, runs the volume production file, according to the volume production flow of the volume production file, starts volume production program, general controls chip according to
The volume production program is converted into order and the data of operation storage chip, wherein order can be the order of behaviour's storage chip, data
Can be the data of scanning storage chip.
Control chip loads corresponding volume production program according to storage chip type and held to control chip, and according to volume production program
The corresponding order of row and data, according to the execution flow of volume production program, it is converted into the operational order of respective stored chip.For example measure
Stages of labor sequence has a flow for writing data, and write operation is converted into carrying out storage chip the finger of write operation by general controls chip
Make the data of code and operation scanning storage chip.
It should be noted that being generally used for scanning the data of storage chip, it can all pass through general controls chip and carry out once
Data encoding, or even plus the operation being once randomized, so as to make the data of write-in storage chip be random data, Yi Jijing
The data of coding are crossed, by decoding after reading out, the error rate of data can be obtained, so data are write than passing through program, read
Access will height according to the efficiency for carrying out data check again.
In the specific implementation, storage chip before dispatching from the factory, it has all been block that the block in storage chip, which is not, wherein having
Block, also there is bad block,, then because can by data when carrying out data storage if be not scanned to the block in storage chip
Can be stored in bad block, so as to cause loss of data, influence the quality of storage chip, but storage chip is carried out volume production it
Before, bad block scan is carried out to storage chip, identifies the bad block in storage chip, and recorded, so as to improve storage chip
Volume production quality, more conducively user uses storage device.
Step S40, obtains general encoding and decoding, runs the general encoding and decoding, so that the general encoding and decoding are to described the
One scan data are encoded, the second scan data of generation;
It should be noted that when carrying out bad block scan, bad block scan data are got, coding/decoding module can sweep bad block
Retouch data encoded after decoding accordingly, for different types of storage device, the volume of the bad block data of scanning
Decoding process also can be different, in the present embodiment, by setting general edit code module, so as to support different encoding and decoding sides
The data of formula, the bad block that adaptation is got after can the data be decoded is being encoded afterwards, and volume production is being treated in burning
In chip, so as to which the encoding and decoding of different type storage device can be realized.
Continue as shown in figure 4, when using general coding/decoding module, can be by two ways, one kind is pre- in main frame
There is general coding/decoding module, general coding/decoding module is obtained from main frame, another way is that general volume is prestored in local
Decoder module, can be directly from being locally extracted the general coding/decoding module that prestores.
Step S50, general controls code is obtained, according to the general controls code and second scan data to described
Treat that volume production chip carries out volume production.
Continue as shown in figure 4, when carrying out volume production, in order to get common apparatus control routine, can by two ways,
One kind is that common apparatus control routine is prestored in main frame, and general coding/decoding module is obtained from main frame, and another way is
Common apparatus control routine is prestored in local, can be directly from the common apparatus control routine that prestores be locally extracted.
In the specific implementation, for the ease of managing the common apparatus control routine, it is provided with general mass production device special
With storage chip, common apparatus control routine is stored with the Special memory chip, by extract common apparatus control routine from
And it can be exchanged into the control command to different type storage device.
The present embodiment proposition can carry out volume production by a set of general volume production file to different types of storage device, from
And reduce volume production cost.
Further, as shown in figure 5, proposing the mass production method of the invention based on general volume production system based on first embodiment
Second embodiment, it is in the present embodiment, described to obtain general encoding and decoding, specifically include:
Step S401, the first information is sent to main frame according to the chip type and obtains instruction, so that the response of host
The first information obtains instruction;
In the present embodiment, the general encoding and decoding are arranged in main frame, and general controls chip passes through the amount for the treatment of that gets
The chip type of chip is produced, generalized edit code is obtained from main frame according to the chip type.
In order to get general encoding and decoding, the general controls chip sends acquisition of information instruction, acquisition of information instruction
In with content information is obtained, such as obtain general encoding and decoding, the acquisition of information that main frame gets the transmission of general controls chip refers to
Order, instructs according to acquisition of information, is responded accordingly.
In the specific implementation, main frame gets the instruction of the general encoding and decoding of acquisition sent by control chip, main frame root
Responded accordingly according to general coding and decoding instruction is obtained, that is, send the general encoding and decoding in local.
Step S402, the first response message of the main frame is received, and led to according to first response information acquisition
Use encoding and decoding.
It should be noted that getting the response message of main frame transmission in general controls chip, taken in the response message
With general encoding and decoding, general controls chip extracts general encoding and decoding from response message, so as to the bad block data to scanning
Handled, using application end software, embedded software or certain chip, by the code encoding/decoding mode of a variety of correcting data errors one
Supported in individual module.
In the present embodiment, general encoding and decoding are provided with main frame, the encoding and decoding can support the volume of different type storage device
Decoding process, bad block data in scan different types storage device is handled accordingly so as to realize.
Further, as shown in fig. 6, proposing the mass production method of the invention based on general volume production system based on first embodiment
3rd embodiment, it is in the present embodiment, described to obtain general encoding and decoding, specifically include:
Step S403, the general encoding and decoding are extracted from the storage chip of local according to the chip type.
In the present embodiment, the general encoding and decoding are arranged in general mass production device, and general controls chip passes through acquisition
To the chip type for treating volume production chip, generalized edit code is extracted from local according to the chip type.
In the specific implementation, set Special memory chip in general mass production device, preserved by the Special memory chip
General encoding and decoding, so as to realize the management to general encoding and decoding, it is used to protect storage region can be preset in general controls chip
General encoding and decoding are deposited, so as to which when carrying out volume production, volume production efficiency can be improved directly from being locally extracted to general encoding and decoding.
Wherein, the step S403, is specifically included:
Step S404, the general volume production file is run, so that the acquisition of information of volume production file generated second instructs;
Step S405, the second acquisition of information instruction is received, according to second acquisition of information instruction depositing from local
The general encoding and decoding are extracted in storage chip.
In order to get the general encoding and decoding locally to prestore, by running general volume production file, according to general volume production file
General controls chip is controlled, so that general controls chip extracts corresponding general encoding and decoding from local.
In the present embodiment, general encoding and decoding are provided with general mass production device, the encoding and decoding can support different type to deposit
The code encoding/decoding mode of equipment is stored up, bad block data in scan different types storage device is handled accordingly so as to realize.
Further, as shown in fig. 7, being based on first embodiment, second embodiment or 3rd embodiment, base of the present invention is proposed
It is in the present embodiment, described to be illustrated based on first embodiment in the mass production method fourth embodiment of general volume production system
Step S50, is specifically included:
Step S501, the instruction of the 3rd acquisition of information is sent to the main frame according to the chip type, so that the main frame
Respond the 3rd acquisition of information instruction;
In the present embodiment, the general controls code is arranged in main frame, and general controls chip is treated by what is got
The chip type of volume production chip, general controls code is obtained from main frame according to the chip type.
In order to get general controls code, the general controls chip sends acquisition of information instruction, and the acquisition of information refers to
With content information, such as acquisition general controls code is obtained in order, the information that main frame gets the transmission of general controls chip obtains
Instruction fetch, instructed according to acquisition of information, responded accordingly.
In the specific implementation, main frame gets the instruction of the acquisition general controls code sent by control chip, main frame
Responded accordingly according to general controls code command is obtained, that is, send the general controls code in local.
Step S502, the second response message of the main frame is received, and led to according to second response information acquisition
Use control routine.
It should be noted that getting the response message of main frame transmission in general controls chip, taken in the response message
With general controls code, general controls chip extracts general controls code from response message, so as to different types of
Storage device is controlled, and the storage device control routine required for different storage device is stored in into general storage device
In, it is outside to be obtained by general interface.
In the present embodiment, general controls code is provided with main frame, the general controls code can be supported to deposit different type
The control of equipment is stored up, scan different types storage device is controlled accordingly so as to realize.
Further, as shown in figure 8, being based on first embodiment, second embodiment or 3rd embodiment, base of the present invention is proposed
It is in the present embodiment, described to be illustrated based on first embodiment in the embodiment of mass production method the 5th of general volume production system
Step S50, is specifically included:
Step S503, the general controls code is extracted from the storage chip of local according to the chip type.
In the present embodiment, the general controls code is arranged in general mass production device, and general controls chip is by obtaining
That gets treats the chip type of volume production chip, and general controls code is extracted from local according to the chip type.
In the specific implementation, set Special memory chip in general mass production device, preserved by the Special memory chip
General controls code, so as to realize the management to general controls code, used storage region can be preset in general controls chip
In preserving general controls code, so as to which when carrying out volume production, volume production can be improved directly from being locally extracted to general controls code
Efficiency.
Wherein, the step S503, is specifically included:
Step S504, the general volume production file is run, so that the acquisition of information of volume production file generated the 4th instructs;
Step S505, the 4th acquisition of information instruction is received, according to the 4th acquisition of information instruction depositing from local
The general controls code is extracted in storage chip.
In order to get the general controls code locally to prestore, by running general volume production file, according to general volume production text
Part controls general controls chip, so that general controls chip extracts corresponding general controls code from local, difference is deposited
Storage device control routine required for storage equipment is stored in general storage device, and outside can be obtained by general interface
Take.
In the present embodiment, it is provided with general controls code in general mass production device, the general controls code can be supported pair
The control of different type storage device, scan different types storage device is controlled accordingly so as to realize.
In addition, the embodiment of the present invention also proposes a kind of volume production system, the volume production system includes:Main frame, connection unit, treat
Volume production chip and mass production device as described above, the connection unit connect the main frame and the mass production device.The master
Machine can be attached with the mass production device by specific connected mode, and the specific connected mode can be to support different type
Connected mode, such as USB, netting twine etc..
In addition, the embodiment of the present invention also proposes a kind of storage medium, it is stored with the storage medium based on general volume production
The volume production program of system, following operation is realized when the volume production program based on general volume production system is executed by processor:
General controls chip obtains the chip type for treating volume production chip;
Corresponding general volume production file is chosen according to the chip type;
The general volume production file is run, so that the general volume production file treats that volume production chip carries out bad block and swept to described
Retouch, and generate the first scan data;
General encoding and decoding are obtained, run the general encoding and decoding, so that the general encoding and decoding are to the described first scanning number
According to being encoded, the second scan data of generation;
General controls code is obtained, volume production core is treated to described according to the general controls code and second scan data
Piece carries out volume production.
Further, following operation is also realized when the volume production program based on general volume production system is executed by processor:
The first information is sent to main frame according to the chip type and obtains instruction, so that the first letter described in the response of host
Breath obtains instruction;
Receive the first response message of the main frame, and the general encoding and decoding according to first response information acquisition.
Further, following operation is also realized when the volume production program based on general volume production system is executed by processor:
The general encoding and decoding are extracted from the storage chip of local according to the chip type.
Further, following operation is also realized when the volume production program based on general volume production system is executed by processor:
The general volume production file is run, so that the acquisition of information of volume production file generated second instructs;
The second acquisition of information instruction is received, is carried according to second acquisition of information instruction from the storage chip of local
Take the general encoding and decoding.
Further, following operation is also realized when the volume production program based on general volume production system is executed by processor:
The instruction of 3rd acquisition of information is sent to the main frame according to the chip type, so that the described in the response of host
Three acquisition of information instruct;
Receive the second response message of the main frame, and the general controls generation according to second response information acquisition
Code.
Further, following operation is also realized when the volume production program based on general volume production system is executed by processor:
The general controls code is extracted from the storage chip of local according to the chip type.
Further, following operation is also realized when the volume production program based on general volume production system is executed by processor:
The general volume production file is run, so that the acquisition of information of volume production file generated the 4th instructs;
The 4th acquisition of information instruction is received, is carried according to the 4th acquisition of information instruction from the storage chip of local
Take the general controls code.
The present embodiment can be carried out by such scheme by a set of general volume production file to different types of storage device
Volume production, so as to reduce volume production cost.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or system including a series of elements not only include those key elements, and
And also include the other element being not expressly set out, or also include for this process, method, article or system institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Other identical element also be present in the process of key element, method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone,
Computer, server, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.