CN104102530B - Method and system for improving burning speed of electronic product - Google Patents

Method and system for improving burning speed of electronic product Download PDF

Info

Publication number
CN104102530B
CN104102530B CN201410371445.0A CN201410371445A CN104102530B CN 104102530 B CN104102530 B CN 104102530B CN 201410371445 A CN201410371445 A CN 201410371445A CN 104102530 B CN104102530 B CN 104102530B
Authority
CN
China
Prior art keywords
data block
thread
equipment end
equipment
host side
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201410371445.0A
Other languages
Chinese (zh)
Other versions
CN104102530A (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.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201410371445.0A priority Critical patent/CN104102530B/en
Publication of CN104102530A publication Critical patent/CN104102530A/en
Application granted granted Critical
Publication of CN104102530B publication Critical patent/CN104102530B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a method and a system for improving the burning speed of an electronic product, which comprises a host end and an equipment end, wherein in the process of transmitting each data block in all data blocks to be burnt from the host end to the equipment end and finally writing the data blocks into a memory, the execution processes of processing threads of the host end and the equipment end are all the same as the execution of a previous thread on a previous data block and the execution of a next thread, and the previous thread is started on a next data block until all data blocks to be burnt are written into the memory of the equipment end, so that the concurrent operation of each transmission thread in the burning process of a plurality of data blocks is realized, the next thread is not required to be executed until the previous thread is completed, and the burning speed of firmware is improved. The burning process of each data block adopts a multithread concurrent transmission mode, so that the processing process of each data block can be performed concurrently, the time consumed by firmware burning is shortened, and the production cost is reduced.

Description

A kind of method and system for improving electronic product replication rate
Technical field
The present invention relates to electronic product firmware burning technical field, more particularly to a kind of electronic product replication rate that improves Method and system.
Background technology
With enriching for electronic product content, the firmware of electronic product is increasing, and several G firmware produces by electronics easily The burning process of product becomes very long wait.Existing firmware burning instrument realizes that firmware burns using the method for synchronous transfer Record, the method for this synchronous transfer firmware burning includes two main bodys of host side and equipment end, for host side, it is main including from A data block is read in PC, then waits USB device end to be ready to, the data block is then sent to equipment end by USB;It is right It is main to include waiting host side to send data block in equipment end, data block is received from USB interface, then data block write-in is deposited Reservoir (FLASH/eMMC/SD).Read a data block from PC from host side above to begin, write the data block to equipment end Memory stops, and as transmits the complete procedure of a data block.Each step during this will wait previous step Next step could be started by having performed.After all steps terminate, i.e., after the process terminates, next data could be started The transmitting procedure of block, until the memory at all data blocks all write device ends of firmware data.Therefore electronic product firmware burns Total recordable time of record is exactly the cumulative of each Step Time corresponding to each of the above transmitting procedure, and this causes electronic product Firmware burning needs to consume the plenty of time, adds the production cost of electronic product.
The content of the invention
It is an object of the invention to propose a kind of method and system for improving electronic product replication rate, it is possible to increase firmware The speed of burning, shorten the time of firmware burning consumption, reduce production cost.
In a first aspect, the invention provides a kind of method for improving electronic product replication rate, including:
Each data block treated in all data blocks of burning performs following thread successively:
The reading thread of host side:Host side read block and is stored to host buffer from External memory equipment;
The USB transmission thread of host side:Host side inquires about host buffer, when there is the data block of storage host buffer, Then the data block of storage is read from host buffer and exported to USB output ends, refer to send the transmission of usb data block Order;
The USB transmission thread of equipment end:Equipment end receives the usb data block transmission instruction, is received and terminated by USB Receive the data block;
The write-in thread of equipment end:The data block that equipment end receives USB is stored to equipment buffering area, and slave unit Buffering area reads the data block write-in memory of storage;
Wherein, while a upper thread has been performed to previous data block and has started to perform next thread, to latter Individual data BOB(beginning of block) performs a upper thread, until the memory all data block write device ends for treating burning.
Wherein, before each data block in all data blocks for treating burning performs following thread successively, in addition to:
Host buffer is established, the main frame buffer information amount threshold value of host buffer is set;
Equipment buffering area is established, the equipment buffer information amount threshold value of equipment buffering area is set.
Wherein, the main frame buffer information amount threshold value is 4-8 data block size, and the equipment buffer information amount threshold value is 4-8 data block size.
Wherein, the reading thread of the host side, in addition to:
Host side detects the currently stored data block size of host buffer, when currently stored data block size is equal to main frame Buffer information amount threshold value, then the reading thread of host side enter suspended state.
Wherein, the USB transmission thread of the host side, in addition to:
Host side inquire about the currently stored data block size in host buffer, when currently stored data block size be equal to 0, then lead The USB transmission thread of generator terminal enters suspended state.
Wherein, the USB transmission thread of the equipment end, in addition to:
The currently stored data block size of equipment end detection device buffering area, when currently stored data block size delays equal to equipment Information content threshold value is rushed, then the USB transmission thread of equipment end enters suspended state.
Wherein, the write-in thread of the equipment end, in addition to:
The currently stored data block size of equipment end query facility buffering area, when currently stored data block size be equal to 0, then set The write-in thread at standby end enters suspended state.
Second aspect, the invention provides a kind of system for improving electronic product replication rate, including host side and equipment End,
The host side, for performing the reading thread of host side and the USB transmission thread of host side;The host side Reading thread includes:Host side read block and is stored to host buffer from External memory equipment;The host side USB transmission thread includes:Host side inquires about host buffer, when there is the data block of storage host buffer, is then buffered from main frame Area reads the data block of storage and exported to USB output ends, to send the transmission instruction of usb data block;
The equipment end, for performing the USB transmission thread of equipment end and the write-in thread of equipment end;The equipment end USB transmission thread includes:Equipment end receives the usb data block transmission instruction, and the data are received by USB receiving terminals Block;The write-in thread of the equipment end includes:The data block that equipment end receives USB is stored to equipment buffering area, and from Equipment buffering area reads the data block write-in memory of storage;
Wherein, each data block in all data blocks that will treat burning is transmitted to equipment end from host side and finally write-in is deposited During reservoir, each processing thread implementation procedure of host side and equipment end is to have performed upper one to previous data block Individual thread and while start to perform next thread, performs a upper thread, until handle to the latter data BOB(beginning of block) Treat the memory at all data block write device ends of burning.
Wherein, the host side, it is additionally operable to establish host buffer, the main frame buffer information amount threshold of host buffer is set Value;
The equipment end, it is additionally operable to establish equipment buffering area, the equipment buffer information amount threshold value of equipment buffering area is set.
Wherein, the main frame buffer information amount threshold value is 4-8 data block size, and the equipment buffer information amount threshold value is 4-8 data block size.
Wherein, the host side, the currently stored data block size of host side detection host buffer is additionally operable to, when current Data storage block size is equal to main frame buffer information amount threshold value, then the reading thread of host side enters suspended state.
Wherein, the host side, the host side inquiry currently stored data block size in host buffer is additionally operable to, is deposited when currently Store up data block size and be equal to 0, then the USB transmission thread of host side enters suspended state.
Wherein, the equipment end, the currently stored data block size of equipment end detection device buffering area is additionally operable to, is deposited when currently Storage data block size is equal to equipment buffer information amount threshold value, then the USB transmission thread of equipment end enters suspended state.
Wherein, the equipment end, the currently stored data block size of equipment end query facility buffering area is additionally operable to, is deposited when currently Store up data block size and be equal to 0, then the write-in thread of equipment end enters suspended state.
The beneficial effects of the present invention are:A kind of method and system for improving electronic product replication rate, including host side And equipment end, each data block in all data blocks that will treat burning are transmitted to equipment end from host side and finally write memory During, each processing thread implementation procedure of host side and equipment end is that a upper line has been performed to previous data block Journey and while start to perform next thread, a upper thread is performed to the latter data BOB(beginning of block), until waiting to burn The memory at all data block write device ends of record, to realize the concurrent of each transmission thread during multiple data block burnings Operation, complete just to carry out next thread without needing to wait for a upper thread, improve the speed of firmware burning.Each data block Burning process using multi-thread concurrent transmission by the way of, make the processing procedure of each data block can concurrently carry out, shorten The time of firmware burning consumption and reduce production cost.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, institute in being described below to the embodiment of the present invention The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention Example, for those of ordinary skill in the art, on the premise of not paying creative work, it can also be implemented according to the present invention The content of example and these accompanying drawings obtain other accompanying drawings.
Fig. 1 is that the flow of method one embodiment of raising electronic product replication rate provided in an embodiment of the present invention is shown It is intended to.
Fig. 2 is that the flow of second embodiment of method of raising electronic product replication rate provided in an embodiment of the present invention is shown It is intended to.
Fig. 3 is the structural representation of the system of raising electronic product replication rate provided in an embodiment of the present invention.
Fig. 4 is the timing diagram of the system of raising electronic product replication rate provided in an embodiment of the present invention.
Embodiment
For make present invention solves the technical problem that, the technical scheme that uses and the technique effect that reaches it is clearer, below The technical scheme of the embodiment of the present invention will be described in further detail with reference to accompanying drawing, it is clear that described embodiment is only It is part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those skilled in the art exist The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Fig. 1 is refer to, it is first implementation of method of raising electronic product replication rate provided in an embodiment of the present invention The schematic flow sheet of example.The method of the raising electronic product replication rate of the embodiment of the present invention, host side can be PC, pen Remember this computer or tablet personal computer etc..Equipment end can be mobile phone, digital camera, mp3, mp4, e-book, PSP or USB flash disk etc..
The method of the raising electronic product replication rate, including:
Step S111, each data block treated in all data blocks of burning performs following thread successively:
Firmware (Firmware) is exactly the program write in EROM or EEPROM (programmable read only memory).Generally these The program preserved in hardware directly can not be read or changed by user, typically also It is not necessary to carry out upgrading behaviour to firmware Make.But with the continuous development of technology, modification firmware with adapt to the hardware environment constantly updated into users it is urgent highly necessary Ask, so, the programmable and erasable read-only storage EPROM (Erasable Programmable ROM) of repeatable write-in, EEPROM and Flash occur.These chips can repeat to write with a brush dipped in Chinese ink, and allow firmware to be able to change and upgrade.Firmware modification and The process of upgrading is also referred to as firmware burning process, and firmware modification and the speed upgraded are also referred to as firmware burning speed, firmware modification The firmware burning time is also referred to as with the time of upgrading.The firmware burning time is mainly determined by firmware size and replication rate.When solid Part size is constant, then the firmware burning time mainly determined by replication rate.
Step S101, the reading thread of host side:Host side read block and is stored to master from External memory equipment Machine buffering area;
Step S102, the USB transmission thread of host side:Host side inquires about host buffer, when there is storage host buffer Data block, then from host buffer read storage the data block simultaneously export to USB output ends, to send usb data Block transmission instruction;
Step S101 and step S102 are described mainly for host side, specifically illustrate host side and send, transmit number According to the process of block.
Step S103, the USB transmission thread of equipment end:Equipment end receives the usb data block transmission instruction, passes through USB receiving terminals receive the data block;
Step S104, the write-in thread of equipment end:The data block that equipment end receives USB is stored to equipment and buffered Area, and slave unit buffering area reads the data block write-in memory of storage;
Step S103 and step S104 will be described for equipment end, specifically illustrate equipment end and receive, write data The process of block.
Step S112, wherein, a upper thread has been performed to previous data block and has started to perform the same of next thread When, a upper thread is performed to the latter data BOB(beginning of block), until all data block write device ends for treating burning Memory.
The method provided by the invention for improving electronic product replication rate, by each data in all data blocks for treating burning During block transmits to equipment end from host side and finally writes memory, each processing thread of host side and equipment end is held Row process is while a upper thread has been performed to previous data block and has started to perform next thread, to latter number A upper thread is performed according to BOB(beginning of block), until the memory at all data block write device ends for treating burning, to realize Each concurrently operation of transmission thread during multiple data block burnings, without need to wait for a upper thread complete just to carry out it is next Individual thread, improve the speed of firmware burning.The burning process of each data block is made every by the way of multi-thread concurrent transmission The processing procedure of individual data block can be carried out concurrently, shortened the time of firmware burning consumption and reduced production cost.
Fig. 2 is refer to, it is second implementation of method of raising electronic product replication rate provided in an embodiment of the present invention The schematic flow sheet of example.The main distinction of the method one embodiment of the embodiment of the present invention with improving electronic product replication rate It is, adds host side and equipment end enters the specific steps of suspended state.
The method of the raising electronic product replication rate, including:
Step S211, host buffer is established, the main frame buffer information amount threshold value of host buffer is set;
Equipment buffering area is established, the equipment buffer information amount threshold value of equipment buffering area is set.
Preferably, the main frame buffer information amount threshold value is 4-8 data block size, the equipment buffer information amount threshold value For 4-8 data block size.
Certainly, main frame buffer information amount threshold value and equipment buffer information the amount threshold value can also be that other data blocks are big It is small, such as 10 data block sizes or 15 data block sizes.The determination of specific threshold size need to be according to host side and equipment end Performance and memory size determine.
The packet for treating burning is divided into N number of data block, N >=2.Current network is packet switch connectionless networks. In packet network, individual data is divided into multiple data blocks, and these data blocks are referred to as wrapping, and it includes sender and reception The address information of person, transmit in one or more networks, and reconfigured in destination.The transmission of these bags is only each other It is vertical, it is independent of each other, and arrived at generally along different routes.Data are generally divided into thousands of bags, generally its In some bags can lose in the transmission.Agreement allows the generation of such case, and contains requirement and retransmit and lose in the transmission The method of the packet of mistake.
Step S212, each data block treated in all data blocks of burning performs following thread successively:
Step S201, the reading thread of host side:Host side read block and is stored to master from External memory equipment Machine buffering area;
Step S202, the currently stored data block size of host side detection host buffer, when currently stored data block is big Small to be equal to main frame buffer information amount threshold value, then the reading thread of host side enters suspended state;
Step S203, the USB transmission thread of host side:Host side inquires about host buffer, when there is storage host buffer Data block, then from host buffer read storage the data block simultaneously export to USB output ends, to send usb data Block transmission instruction;
Step S204, the host side inquiry currently stored data block size in host buffer, when currently stored data block size Equal to 0, then the USB transmission thread of host side enters suspended state;
Step S205, the USB transmission thread of equipment end:Equipment end receives the usb data block transmission instruction, passes through USB receiving terminals receive the data block;
Step S206, the currently stored data block size of equipment end detection device buffering area, when currently stored data block size Equal to equipment buffer information amount threshold value, then the USB transmission thread of equipment end enters suspended state;
Step S207, the write-in thread of equipment end:The data block that equipment end receives USB is stored to equipment and buffered Area, and slave unit buffering area reads the data block write-in memory of storage;
Step S208, the currently stored data block size of equipment end query facility buffering area, when currently stored data block size Equal to 0, then the write-in thread of equipment end enters suspended state;
Step S213, wherein, a upper thread has been performed to previous data block and has started to perform the same of next thread When, a upper thread is performed to the latter data BOB(beginning of block), until all data block write device ends for treating burning Memory.
The method provided by the invention for improving electronic product replication rate, during each data block burning, passes through Establish the mode of buffering area, realize the concurrently operation of each thread, without waiting for a upper thread complete can start into The next thread of row.During multiple data block burnings, by way of multi-thread concurrent transmission, the total burning of reduction is realized Record the effect of time.
By way of multi-thread concurrent transmission, (host side data block is read the thread of each transmission of data blocks, USB is passed Defeated, equipment end memory write) can concurrently it carry out, total transmission speed is only limited by that most slow thread, generally For the write-in thread of equipment end.By experiment results proved, the method for existing synchronous transfer firmware burning, replication rate is only capable of Reach 2.8MBytes/s, using the method for raising electronic product replication rate provided by the invention, replication rate can reach 7.8MBytes/s, bulk velocity improve 179%.
The method provided by the invention for improving electronic product replication rate, according to the data storage block size of host buffer With the data storage block size of equipment buffering area, adjust host side in real time and equipment end enters suspended state, to realize data block Each thread is concurrently run smooth in transmitting procedure, improves the speed of firmware burning.
It is below the embodiment of the system provided in an embodiment of the present invention for improving electronic product replication rate.Improve electronics production The embodiment of the system of product replication rate and the embodiment of the method for above-mentioned raising electronic product replication rate belong to same design, The detail content of not detailed description in the embodiment of the system of electronic product replication rate is improved, may be referred to above-mentioned raising electronics The embodiment of the method for product replication rate.
Fig. 3 is refer to, it is the structural representation of the system of raising electronic product replication rate provided in an embodiment of the present invention Figure.
The system of the raising electronic product replication rate, including host side and equipment end,
The host side, for performing the reading thread of host side and the USB transmission thread of host side;The host side Reading thread includes:Host side read block and is stored to host buffer from External memory equipment;The host side USB transmission thread includes:Host side inquires about host buffer, when there is the data block of storage host buffer, is then buffered from main frame Area reads the data block of storage and exported to USB output ends, to send the transmission instruction of usb data block;
The equipment end, for performing the USB transmission thread of equipment end and the write-in thread of equipment end;The equipment end USB transmission thread includes:Equipment end receives the usb data block transmission instruction, and the data are received by USB receiving terminals Block;The write-in thread of the equipment end includes:The data block that equipment end receives USB is stored to equipment buffering area, and from Equipment buffering area reads the data block write-in memory of storage;
Wherein, each data block in all data blocks that will treat burning is transmitted to equipment end from host side and finally write-in is deposited During reservoir, each processing thread implementation procedure of host side and equipment end is to have performed upper one to previous data block Individual thread and while start to perform next thread, performs a upper thread, until handle to the latter data BOB(beginning of block) Treat the memory at all data block write device ends of burning.
Fig. 4 is refer to, it is the timing diagram of the system of raising electronic product replication rate provided in an embodiment of the present invention.
Wherein, the host side, it is additionally operable to establish host buffer, the main frame buffer information amount threshold of host buffer is set Value;
The equipment end, it is additionally operable to establish equipment buffering area, the equipment buffer information amount threshold value of equipment buffering area is set.
Wherein, the main frame buffer information amount threshold value is 4-8 data block size, and the equipment buffer information amount threshold value is 4-8 data block size.
The system provided by the invention for improving electronic product replication rate, including host side and equipment end, will treat burning During each data block in all data blocks is transmitted to equipment end from host side and finally writes memory, host side and set Each processing thread implementation procedure at standby end be previous data block has been performed a upper thread and starting perform it is next While thread, a upper thread is performed to the latter data BOB(beginning of block), until all data blocks write-in for treating burning The memory of equipment end, to realize each concurrently operation for transmitting thread during multiple data block burnings, on needing to wait for One thread is completed just to carry out next thread, improves the speed of firmware burning.The burning process of each data block uses more The mode of thread concurrent transmission, makes the processing procedure of each data block can concurrently carry out, and shortens firmware burning consumption Time and reduction production cost.
It is below another embodiment of the system provided in an embodiment of the present invention for improving electronic product replication rate.
The system of the raising electronic product replication rate, including host side and equipment end,
The host side, for performing the reading thread of host side and the USB transmission thread of host side;The host side Reading thread includes:Host side read block and is stored to host buffer from External memory equipment;The host side USB transmission thread includes:Host side inquires about host buffer, when there is the data block of storage host buffer, is then buffered from main frame Area reads the data block of storage and exported to USB output ends, to send the transmission instruction of usb data block;
The equipment end, for performing the USB transmission thread of equipment end and the write-in thread of equipment end;The equipment end USB transmission thread includes:Equipment end receives the usb data block transmission instruction, and the data are received by USB receiving terminals Block;The write-in thread of the equipment end includes:The data block that equipment end receives USB is stored to equipment buffering area, and from Equipment buffering area reads the data block write-in memory of storage;
Wherein, each data block in all data blocks that will treat burning is transmitted to equipment end from host side and finally write-in is deposited During reservoir, each processing thread implementation procedure of host side and equipment end is to have performed upper one to previous data block Individual thread and while start to perform next thread, performs a upper thread, until handle to the latter data BOB(beginning of block) Treat the memory at all data block write device ends of burning.
Wherein, the host side, it is additionally operable to establish host buffer, the main frame buffer information amount threshold of host buffer is set Value;
The equipment end, it is additionally operable to establish equipment buffering area, the equipment buffer information amount threshold value of equipment buffering area is set.
Wherein, the host side, the currently stored data block size of host side detection host buffer is additionally operable to, when current Data storage block size is equal to main frame buffer information amount threshold value, then the reading thread of host side enters suspended state.
Wherein, the host side, the host side inquiry currently stored data block size in host buffer is additionally operable to, is deposited when currently Store up data block size and be equal to 0, then the USB transmission thread of host side enters suspended state.
Wherein, the equipment end, the currently stored data block size of equipment end detection device buffering area is additionally operable to, is deposited when currently Storage data block size is equal to equipment buffer information amount threshold value, then the USB transmission thread of equipment end enters suspended state.
Wherein, the equipment end, the currently stored data block size of equipment end query facility buffering area is additionally operable to, is deposited when currently Store up data block size and be equal to 0, then the write-in thread of equipment end enters suspended state.
The system provided by the invention for improving electronic product replication rate, host side establish host buffer, and equipment end is built Standby buffering area is erected, according to the data storage block size of host buffer and the data storage block size of equipment buffering area, in real time Adjustment host side and equipment end enter suspended state, and to realize during transmission of data blocks, each thread is concurrently run smooth, Improve the speed of firmware burning.
A kind of method and system for improving electronic product replication rate, it is possible to increase the speed of firmware burning, shorten firmware The time of burning consumption, reduce production cost.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment To complete, by program the hardware of correlation can also be instructed to complete, the program can be stored in a computer-readable storage medium In matter, storage medium can include memory, disk or CD etc..
Above content is only presently preferred embodiments of the present invention, for one of ordinary skill in the art, according to the present invention's Thought, there will be changes, this specification content should not be construed as to the present invention in specific embodiments and applications Limitation.

Claims (4)

  1. A kind of 1. method for improving electronic product replication rate, it is characterised in that including:
    Each data block treated in all data blocks of burning performs following thread successively:
    The reading thread of host side:Host side read block and is stored to host buffer from External memory equipment;
    The USB transmission thread of host side:Host side inquires about host buffer, when there is the data block of storage host buffer, then from Host buffer is read the data block of storage and exported to USB output ends, to send the transmission instruction of usb data block;
    The USB transmission thread of equipment end:Equipment end receives the usb data block transmission instruction, and institute is received by USB receiving terminals State data block;
    The write-in thread of equipment end:The data block that equipment end receives USB is stored to equipment buffering area, and slave unit buffers Read the data block write-in memory of storage in area;
    Wherein, while a upper thread has been performed to previous data block and has started to perform next thread, to latter number A upper thread is performed according to BOB(beginning of block), until the memory all data block write device ends for treating burning;
    The USB transmission thread of the host side, in addition to:
    Host side inquires about the currently stored data block size in host buffer, when currently stored data block size is equal to 0, then host side USB transmission thread enter suspended state;
    The write-in thread of the equipment end, in addition to:
    The currently stored data block size of equipment end query facility buffering area, when currently stored data block size is equal to 0, then equipment end Write-in thread enter suspended state;
    Before each data block in all data blocks for treating burning performs following thread successively, in addition to:
    Host buffer is established, the main frame buffer information amount threshold value of host buffer is set;
    Equipment buffering area is established, the equipment buffer information amount threshold value of equipment buffering area is set;
    The reading thread of the host side, in addition to:
    Host side detects the currently stored data block size of host buffer, when currently stored data block size buffers equal to main frame Information content threshold value, then the reading thread of host side enter suspended state;
    The USB transmission thread of the equipment end, in addition to:
    The currently stored data block size of equipment end detection device buffering area, when currently stored data block size is equal to equipment buffering letter Breath amount threshold value, then the USB transmission thread of equipment end enter suspended state.
  2. 2. the method according to claim 1 for improving electronic product replication rate, it is characterised in that the main frame buffering letter Breath amount threshold value is 4-8 data block size, and the equipment buffer information amount threshold value is 4-8 data block size.
  3. A kind of 3. system for improving electronic product replication rate, it is characterised in that including host side and equipment end, the main frame End, for performing the reading thread of host side and the USB transmission thread of host side;The reading thread of the host side includes:It is main Generator terminal read block and is stored to host buffer from External memory equipment;The USB transmission thread of the host side includes: Host side inquires about host buffer, when there is the data block of storage host buffer, is then read from host buffer described in storage Data block is simultaneously exported to USB output ends, to send the transmission instruction of usb data block;
    The equipment end, for performing the USB transmission thread of equipment end and the write-in thread of equipment end;The USB of the equipment end Transmission thread includes:Equipment end receives the usb data block transmission instruction, and the data block is received by USB receiving terminals;Institute Stating the write-in thread of equipment end includes:The data block that equipment end receives USB is stored to equipment buffering area, and slave unit is delayed Rush the data block write-in memory that area reads storage;
    Wherein, each data block in all data blocks that will treat burning is transmitted to equipment end from host side and finally writes memory During, each processing thread implementation procedure of host side and equipment end is that a upper line has been performed to previous data block Journey and while start to perform next thread, a upper thread is performed to the latter data BOB(beginning of block), until waiting to burn The memory at all data block write device ends of record;
    The host side, the host side inquiry currently stored data block size in host buffer is additionally operable to, when currently stored data block Size is equal to 0, then the USB transmission thread of host side enters suspended state;
    The equipment end, the currently stored data block size of equipment end query facility buffering area is additionally operable to, when currently stored data block Size is equal to 0, then the write-in thread of equipment end enters suspended state;
    The host side, it is additionally operable to establish host buffer, the main frame buffer information amount threshold value of host buffer is set;
    The equipment end, it is additionally operable to establish equipment buffering area, the equipment buffer information amount threshold value of equipment buffering area is set;
    The host side, the currently stored data block size of host side detection host buffer is additionally operable to, when currently stored data Block size is equal to main frame buffer information amount threshold value, then the reading thread of host side enters suspended state;
    The equipment end, the currently stored data block size of equipment end detection device buffering area is additionally operable to, when currently stored data block Size is equal to equipment buffer information amount threshold value, then the USB transmission thread of equipment end enters suspended state.
  4. 4. the system according to claim 3 for improving electronic product replication rate, it is characterised in that the main frame buffering letter Breath amount threshold value is 4-8 data block size, and the equipment buffer information amount threshold value is 4-8 data block size.
CN201410371445.0A 2014-07-30 2014-07-30 Method and system for improving burning speed of electronic product Expired - Fee Related CN104102530B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410371445.0A CN104102530B (en) 2014-07-30 2014-07-30 Method and system for improving burning speed of electronic product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410371445.0A CN104102530B (en) 2014-07-30 2014-07-30 Method and system for improving burning speed of electronic product

Publications (2)

Publication Number Publication Date
CN104102530A CN104102530A (en) 2014-10-15
CN104102530B true CN104102530B (en) 2017-11-21

Family

ID=51670702

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410371445.0A Expired - Fee Related CN104102530B (en) 2014-07-30 2014-07-30 Method and system for improving burning speed of electronic product

Country Status (1)

Country Link
CN (1) CN104102530B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933603B (en) * 2015-12-29 2024-03-05 深圳市博巨兴微电子科技有限公司 Chip burning method, device and microcontroller
CN109165025A (en) * 2018-08-01 2019-01-08 京信通信系统(中国)有限公司 The offline method for burn-recording of chip, device, system, computer storage medium and equipment
CN110399143A (en) * 2019-07-29 2019-11-01 Oppo广东移动通信有限公司 Brush machine method, apparatus, computer storage medium and the system of terminal device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1641782A (en) * 2004-01-08 2005-07-20 财团法人工业技术研究院 Optical disk recording device and its control method
CN101655894A (en) * 2008-08-19 2010-02-24 上海华虹集成电路有限责任公司 Method for improving throughput of grouping algorithm on general serial bus encryption lock
CN101692217A (en) * 2009-09-16 2010-04-07 东莞市步步高教育电子产品有限公司 Method and device for burning chip
CN103412781A (en) * 2013-08-27 2013-11-27 信利光电股份有限公司 Burning method for one-time programmable (OTP) chips

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1641782A (en) * 2004-01-08 2005-07-20 财团法人工业技术研究院 Optical disk recording device and its control method
CN101655894A (en) * 2008-08-19 2010-02-24 上海华虹集成电路有限责任公司 Method for improving throughput of grouping algorithm on general serial bus encryption lock
CN101692217A (en) * 2009-09-16 2010-04-07 东莞市步步高教育电子产品有限公司 Method and device for burning chip
CN103412781A (en) * 2013-08-27 2013-11-27 信利光电股份有限公司 Burning method for one-time programmable (OTP) chips

Also Published As

Publication number Publication date
CN104102530A (en) 2014-10-15

Similar Documents

Publication Publication Date Title
CN202870808U (en) FPGA realization device of SPI serial port module
KR20170063332A (en) Solid state drive of enhanced multi-stream operations and operation method therof
CN107426322A (en) A kind of PUSH message target matching method, server, terminal and computer-readable recording medium
CN109558344B (en) DMA transmission method and DMA controller suitable for network transmission
RU2617388C2 (en) Method, terminal and electronic device for e-book document processing
CN104102530B (en) Method and system for improving burning speed of electronic product
CN104461716B (en) The access method and multi-core heterogeneous system of a kind of multi-core heterogeneous system
CN106797557B (en) Data transmission method and terminal
EP2124155A3 (en) Information processing apparatus, information processing system, method of processing information, and computer program
CN106649024A (en) Method and device for real-time monitoring of application performance
CN104361143B (en) A kind of portable data acquisition card and its method
CN103473145B (en) Terminal crash reset method, device and terminal
CN106294225A (en) A kind of method for reading data, opposite equip. and controller
CN110532294A (en) Ticket merging method, device, equipment and computer readable storage medium
TW201110135A (en) Method for establishing a communication channel between a host device and a memory device, associated memory device and controller thereof, and associated host device and host device application
CN113377288B (en) Hardware queue management system and method, solid state disk controller and solid state disk
CN103399832A (en) Ordering method of out-of-order return data between buses
CN205898154U (en) District navigation is with mapping and application system
CN109408426B (en) Flexible and universal serial communication method and system
CN109074187A (en) Determination method, capacitance touch-control device and the electronic device of touch control detection wrong report point
US20160085683A1 (en) Data receiving device and data receiving method
CN103902471B (en) Data buffer storage treating method and apparatus
CN116467235B (en) DMA-based data processing method and device, electronic equipment and medium
US10276177B2 (en) Technologies for privately processing voice data using a repositioned reordered fragmentation of the voice data
CN104375783A (en) EEPROM data writing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171121