CN101135972A - Method for upgrading terminal flash software - Google Patents
Method for upgrading terminal flash software Download PDFInfo
- Publication number
- CN101135972A CN101135972A CNA2006100623633A CN200610062363A CN101135972A CN 101135972 A CN101135972 A CN 101135972A CN A2006100623633 A CNA2006100623633 A CN A2006100623633A CN 200610062363 A CN200610062363 A CN 200610062363A CN 101135972 A CN101135972 A CN 101135972A
- Authority
- CN
- China
- Prior art keywords
- data
- terminal
- packet
- flash
- upgraded
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The method comprises: establishing the data connection between the terminal and computer; the computer controls the terminal to enter a download mode; erasing the flash memory in the terminal; transmitting the data packets until the amount of the data packets reaches a threshold; processing the received data; after completing the data processing, returning to the previous step until all data packets are sent out; retransmitting the unconfirmed data packet until being confirmed.
Description
Technical field
The present invention relates to the communication electronic applications, especially the method for terminal software being upgraded by computing machine.
Background technology
At present, global digital mobile user has reached 1,300,000,000, and this numeral is expected to double in the coming years.Simultaneously, the user is also sharply rising to the demand of portable terminal, and the competition in portable terminal market is also more and more fierce.Portable terminal manufacturer requires constantly to shorten the portable terminal R﹠D cycle, and usually needs large batch of portable terminal is carried out software upgrading for reply supply of material pressure, to satisfy the new demand that the client constantly proposes.In the portable terminal production run, its software download efficient has just become the key factor of restriction production cycle.Present portable terminal one side physical connection mode adopts serial device interfaces mostly or employing USB is mapped as serial device interfaces and computing machine carries out data communication, and the transfer efficiency of serial device interfaces is relatively low, be limited only by the amplitude that adopts the method that improves serial communication speed to improve transfer efficiency, and under higher serial communication speed, transmit data reliability also be difficult to guarantee.On the other hand, what adopt on communications protocol layers is that " stopping etc. " agreement is carried out data transmission, promptly once sends the request of erasable data, up to receiving that correct response just can issue the request of next erasable data.Like this, updating mobile terminal Flash data communication all is the mode of serial communication on Physical layer and protocol layer, and the speed of transmission data is lower naturally, makes that the cycle of software upgrading is short inadequately.
In order to improve the speed of update mobile terminal Flash, higher requirement has been proposed for the method for update mobile terminal data transmission.
Summary of the invention
Technical matters to be solved by this invention provides the data transmission method of a kind of terminal device flash software upgrading, and it is slow to solve its software upgrading speed, inefficient problem.
Technical scheme of the present invention comprises the steps:
Step 1 makes terminal and computing machine set up data and is connected;
Step 2, the computer control terminal makes it enter downloading mode;
Step 3 is wiped terminal flash storer;
Step 4 handles sending packet, reaches threshold value up to the data packet number that sends with respect to receiving data packet number;
Step 5 handles receiving data; After handling, get back to step 4, finish up to all data transmissions;
Step 6 is transmitted unacknowledged data packet, again up to affirmation.
The present invention once receives and dispatches a plurality of packets under the prerequisite that does not change active computer and terminal physical connection, change relative parallel mode transmission data into by absolute serial.Utilize terminal to wipe the back and be the characteristics of 0xff entirely, disregard for the redundant data packets of 0xff sending entirely, thereby guarantee to have increased substantially updating speed.
Description of drawings
Fig. 1 is the process flow diagram of one embodiment of the present of invention;
Fig. 2 is the mode synoptic diagram that incomplete reception packet is carried out packaging.
Embodiment
With embodiment the present invention is described in further detail with reference to the accompanying drawings below:
Fig. 1 is the data download method process flow diagrams of one embodiment of the present of invention about terminal equipment software upgrade.
101, terminal device is connected to computing machine by serial device interfaces.
102, computer control terminal enters downloading mode, and flash is driven RAM district and the operation flash driving that is read into terminal, sets up data with driving and is connected.
103, issue erasing instruction by computing machine, corresponding flash storage space is emptied, the storage space content that is cleared should be 0xFF.
104, by computing machine read in terminal to be written a 1Kbit size packet and analyze, if this bag data content all be 0xFF, then this bag is abandoned and does not send out, otherwise, packet is formed Frame, be sent to terminal by serial line interface.Note the sequence number that all send packet simultaneously.
105, computing machine judges whether with respect to receive data packet number surpass threshold value, if do not surpass, then repeat 104 to 105 if sending quantity of data packets, otherwise, continue following steps.
106, the data that terminal is returned are handled.Computing machine all receives the data that serial ports receives in the buffer memory come in, and is split into several response packets according to packet header/bag tail tag will, and record response packet sequence number.After if data split, find incomplete response packet at the end that receives bag, then this incomplete response packet is pieced together with the data that receive next time, the data continued access that is about to next time receive makes it can constitute a complete data frame in the back of this incomplete response packet.Piece together mode as shown in Figure 2.Wherein, m+n forms the complete data frame of a response packet.
107, judge whether all data send and finish,, then repeat 104 to 107 if do not finish, otherwise, following steps carried out.
108, computing machine will send bag sequence number and the contrast of response packet sequence number, note the bag sequence number of transmission unconfirmed, and resend these unacknowledged data packets.
109, restart terminal device, confirm software upgrade success.
Claims (5)
1. the method that terminal flash software is upgraded comprises the steps:
Step 1 makes terminal and computing machine set up data and is connected;
Step 2, the computer control terminal makes it enter downloading mode;
Step 3 is wiped terminal flash storer;
Step 4 handles sending packet, reaches threshold value up to the data packet number that sends with respect to receiving data packet number;
Step 5 handles receiving data; After handling, get back to step 4, finish up to all data transmissions;
Step 6 is transmitted unacknowledged data packet, again up to affirmation.
2. the described method that terminal flash software is upgraded of claim 1 is characterized in that,
Described step 2 comprises that flash is driven the RAM district and the operation flash that are read into terminal to be driven, and sets up data with driving and is connected.
3. the described method that terminal flash software is upgraded of claim 1 is characterized in that,
Described step 3 is to issue erasing instruction by computing machine, and corresponding flash storage space is emptied, and the storage space content that is cleared is 0xFF.
4. the described method that terminal flash software is upgraded of claim 1, it is characterized in that, in described step 4, read in by computing machine terminal to be written a 1Kbit size packet and analyze, if the content of these bag data all is 0xFF, then this bag is abandoned and do not send out; Otherwise, packet is formed Frame, be sent to terminal by serial line interface, note the sequence number that all send packet simultaneously.
5. the described method that terminal flash software is upgraded of claim 1, it is characterized in that, processing in described step 5 receives data, be meant that computing machine all receives the data that serial ports receives in the buffer memory come in, and be split into several response packets, and record response packet sequence number according to packet header/bag tail tag will; After if data split, find incomplete response packet at the end that receives bag, then this incomplete response packet is pieced together with the data that receive next time, make it can constitute a complete data frame.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2006100623633A CN101135972A (en) | 2006-08-29 | 2006-08-29 | Method for upgrading terminal flash software |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2006100623633A CN101135972A (en) | 2006-08-29 | 2006-08-29 | Method for upgrading terminal flash software |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101135972A true CN101135972A (en) | 2008-03-05 |
Family
ID=39160081
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2006100623633A Pending CN101135972A (en) | 2006-08-29 | 2006-08-29 | Method for upgrading terminal flash software |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101135972A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101930375A (en) * | 2010-08-26 | 2010-12-29 | 深圳市共进电子有限公司 | Self-adaptive program data updating method of memory space in single user optical network unit |
CN102538824A (en) * | 2011-12-29 | 2012-07-04 | 北京遥测技术研究所 | Method suitable for MEMS IMU repeated multiple calibrating |
CN104618432A (en) * | 2014-12-30 | 2015-05-13 | 北京红马传媒文化发展有限公司 | Event sending and receiving handling method and system |
CN106293621A (en) * | 2016-08-01 | 2017-01-04 | 飞天诚信科技股份有限公司 | A kind of firmware upgrade method and device |
CN109522040A (en) * | 2018-09-27 | 2019-03-26 | 宁波三星智能电气有限公司 | A kind of elongated remote upgrade method of number-of-packet for ammeter |
CN109542495A (en) * | 2018-11-12 | 2019-03-29 | 青岛海信电器股份有限公司 | A kind of method for upgrading software and device |
CN114509966A (en) * | 2021-12-30 | 2022-05-17 | 北京无线电测量研究所 | Asynchronous high-speed serial port real-time continuous data acquisition system |
-
2006
- 2006-08-29 CN CNA2006100623633A patent/CN101135972A/en active Pending
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101930375A (en) * | 2010-08-26 | 2010-12-29 | 深圳市共进电子有限公司 | Self-adaptive program data updating method of memory space in single user optical network unit |
CN102538824A (en) * | 2011-12-29 | 2012-07-04 | 北京遥测技术研究所 | Method suitable for MEMS IMU repeated multiple calibrating |
CN104618432A (en) * | 2014-12-30 | 2015-05-13 | 北京红马传媒文化发展有限公司 | Event sending and receiving handling method and system |
CN106293621A (en) * | 2016-08-01 | 2017-01-04 | 飞天诚信科技股份有限公司 | A kind of firmware upgrade method and device |
CN106293621B (en) * | 2016-08-01 | 2019-02-15 | 飞天诚信科技股份有限公司 | A kind of firmware upgrade method and device |
CN109522040A (en) * | 2018-09-27 | 2019-03-26 | 宁波三星智能电气有限公司 | A kind of elongated remote upgrade method of number-of-packet for ammeter |
CN109542495A (en) * | 2018-11-12 | 2019-03-29 | 青岛海信电器股份有限公司 | A kind of method for upgrading software and device |
CN114509966A (en) * | 2021-12-30 | 2022-05-17 | 北京无线电测量研究所 | Asynchronous high-speed serial port real-time continuous data acquisition system |
CN114509966B (en) * | 2021-12-30 | 2023-11-03 | 北京无线电测量研究所 | Asynchronous high-speed serial port real-time continuous data acquisition system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101135972A (en) | Method for upgrading terminal flash software | |
CN106886438A (en) | System remote update method based on FPGA | |
CN101807155B (en) | Embedded software on-line updating method | |
CN104620564A (en) | Transmission of multiple protocol data elements via an interface utilizing a data tunnel | |
CN100454813C (en) | Method for transmitting data file between computer and mobile terminal | |
CN102137123A (en) | Device and method for realizing process-to-process communication of different application programs on mobile terminal | |
CN103559066A (en) | CANOPEN-protocol-based embedded software upgrading method | |
CN101790252A (en) | Method and system for updating firmware | |
CN101276316B (en) | Apparatus, method, and system for controlling communication between host device and USB device | |
CN1685327A (en) | IC card, data transfer device, data transfer method, and data transfer method program | |
US8250223B2 (en) | Portable electronic device and method for downloading a firmware loader from a host computer | |
CN112566282B (en) | Internet of things information transmission method and platform | |
CN103716219A (en) | Field bus communication system based on RS485 protocol | |
CN106452833A (en) | Data transmission method for realizing RTU multi-protocol dynamic loading | |
CN104469501A (en) | Set top box automatic set-up method based on serial communication protocol | |
WO2019179093A1 (en) | Method for obtaining device identifier in nb-iot, and device | |
CN101605128A (en) | The method that the LINUX master-slave equipment communicates by Ethernet interface | |
CN101931700B (en) | Method for realizing communication between smart mobile phone chips and smart mobile phone | |
CN111800488B (en) | Data transmission method and system based on UDP (user Datagram protocol) and IPV6 (Internet protocol video protocol) | |
CN101086700A (en) | Wire/radio network product web page code loading system and method | |
CN103838587A (en) | Control system remote upgrading method and device based on GPRS | |
CN1920848A (en) | Method and device for information interaction between host and smart card | |
CN101997646B (en) | USB and NAND FLASH based data packaging and transmitting method | |
CN101145968B (en) | Data transmission and receiving method between network management system and transmission device | |
CN100414556C (en) | Method and apparatus for host machine and smart card to conduct information interaction |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Open date: 20080305 |