[go: up one dir, main page]

CN102567039A - Method for realizing batch upgrading of dual-core terminal - Google Patents

Method for realizing batch upgrading of dual-core terminal Download PDF

Info

Publication number
CN102567039A
CN102567039A CN2010106190995A CN201010619099A CN102567039A CN 102567039 A CN102567039 A CN 102567039A CN 2010106190995 A CN2010106190995 A CN 2010106190995A CN 201010619099 A CN201010619099 A CN 201010619099A CN 102567039 A CN102567039 A CN 102567039A
Authority
CN
China
Prior art keywords
terminal
packet
upgrading
processor chip
host processor
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
Application number
CN2010106190995A
Other languages
Chinese (zh)
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.)
SHANGHAI THREE FLAG COMMUNICATION TECHNOLOGY CO LTD
Original Assignee
SHANGHAI THREE FLAG COMMUNICATION 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 SHANGHAI THREE FLAG COMMUNICATION TECHNOLOGY CO LTD filed Critical SHANGHAI THREE FLAG COMMUNICATION TECHNOLOGY CO LTD
Priority to CN2010106190995A priority Critical patent/CN102567039A/en
Publication of CN102567039A publication Critical patent/CN102567039A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method for realizing the batch upgrading of a dual-core terminal, wherein the dual-core terminal comprises a host processor chip and an auxiliary processor chip, an external interface which is utilized by the host processor chip for being communicated with a personal computer (PC) is a serial port, and the external interface which is utilized by the auxiliary processor chip for being communicated with the PC is a universal serial bus (USB) interface. The invention mainly aims to provide the method for realizing the batch upgrading of the dual-core terminal, the upgrading mode of the host processor chip is optimized, and the communication protocol difference of a dual-core processor and the PC is taken into consideration, so the software for realizing the one-step batch upgrading of the dual-core terminal is obtained.

Description

A kind of batch upgrading method of core terminal
Technical field
The present invention relates to the terminal flash upgrade technique, relate in particular to a kind of batch upgrading method of core terminal.
Background technology
Increasing along with the progress of mobile technology and terminal user; Common mobile terminal can't satisfy the widespread demand of user to termination function, and intelligent mobile terminal has become the trend in epoch, and intelligent mobile terminal has dual core processor mostly and adopts open operating system to make communication and application function become very powerful; Need be when manufacturer manufactures product to the terminal software batch upgrade; Because the communication protocol during double-core platform difference upgrading terminals also has than big-difference, the upgrading mode is identical will certainly bring the huge workload and the input of respective resources if the communication protocol of modification final drive makes, and the reliability of modification also can't be guaranteed; If adopt identical communication protocol can't have the characteristics of original communication protocol simultaneously; As, the image file of application processor is very big, and megabytes of data more than 100 is arranged approximately; What adopt originally is that USB interface comes upgrade software; Upgrading efficient is very high, if the serial port protocol upgrade image upgrading mode that adopts cellular processor not only complicacy but also used time of upgrade software be intolerable, in addition because the interface that the processor of different platform shows on PC is different; When upgrading simultaneously, a plurality of terminals can't confirm that which two interface is from same equipment, so which terminal what just can't judge that upgrading accomplishes is.
The method that is directed against the core terminal batch upgrade of different communication protocol at present adopts the method for single processor chips segmentation upgrading mostly; Can not a batch upgrade core terminal software; At first use a upgrading tool batch upgrade nuclear mirror image wherein; Re-use another nuclear mirror image of another kind of upgrading tool batch upgrade after finishing, upgrading first nuclear owing to all will travel through all byte datas of whole image file during the complicated each upgrading of communication protocol, need expend the resource of PC end processor during mirror image in a large number; And the segmentation production cost of upgrading not only is high, and user's operation is also very numerous and diverse.
Summary of the invention
Deficiency to the prior art existence; Fundamental purpose of the present invention is to provide a kind of batch upgrading method of core terminal; Optimize the upgrading mode of host processor chip,, realize the software of disposable batch upgrade core terminal in conjunction with the difference of dual core processor and PC communication protocol.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of batch upgrading method of core terminal; Core terminal comprises host processor chip and auxilliary processor chips; The external interface of communicating by letter between host processor chip and the PC is a serial ports, and the external interface of communicating by letter between auxilliary processor chips and the PC is a USB interface, and described this method comprises:
A, be temporary file according to the original image file of serial ports and terminal primary processor Data Transport Protocol conversion host processor chip to be upgraded;
Communication serial port between B, initialization PC and the terminal host processor chip, and record communication string slogan;
C, the control of communication instruction of sending the terminal host processor chip through serial ports make it get into downloading mode;
The partition table of D, the Flash through the serial ports inquiry terminal, and upgrading covers original partition table, will occur the USB interface of communicating by letter with auxilliary processor chips when restarting the terminal once more on the PC;
E, send the image file of image file packet upgrading terminals host processor chip through serial ports;
F, to send the steering order restart the terminal shows the auxilliary processor chips at terminal on PC interface be USB interface;
G, search any USB interface that is not used and initialization, the Data Transport Protocol upgrade image file through this USB interface and auxilliary processor chips is also restarted the terminal, with the serial ports that on PC, occurs once more communicating by letter with host processor chip;
H, search and write down the string slogan on the current PC,, otherwise continue to search the string slogan, if the time of searching surpasses the time-out time that presets then the failure of upgrading if then corresponding terminal staging identical with original records string slogan finishes.
Wherein, change the image file of host processor chip to be upgraded in the steps A, comprising: the size according to sending packet reads original image file;
The packet that traversal reads converts the special byte 0x7E in the packet into two byte 0x7D and 0x5E, and the packet size after the record conversion; The beginning and end of the packet after conversion adds a byte 0x7E respectively, and the size of record current data packet; Create temporary file, the size of packet with two bytes (0xFFFF) expression, two bytes of the size of expression packet and the packet after changing write temporary file; Circulation is read original file data bag, translation data bag, is write temporary file successively.
Wherein, record communication string slogan comprises the port numbers that all terminals to be upgraded show among the step B on PC.
Wherein, The partition table of the Flash of inquiry terminal is further comprising the steps of among the step D: judge whether whether the terminal flash partition table identical with partition table to be upgraded; If, and the mirror image of the host processor chip of only upgrading, the partition table file of then not upgrading; If not, then do not upgrade and cover original partition table.
Wherein, sending the image file packet in the step e comprises:
Read preceding two bytes of the temporary file after process is changed and calculate this two byte data represented sizes;
Read the packet of corresponding size in the file according to the size of data of the sign of preceding two bytes; Circulation is read temporary file and is sent packet to the terminal successively.
Wherein, Search USB interface among the step G; Comprise: judge and search the USB interface whether terminal is arranged on the PC to occur; Whether with corresponding terminal corresponding, as long as the USB interface at the terminal that appearance is not used on PC just sends the image file that processor chips are assisted in the data upgrading through this interface if not distinguishing the terminal USB interface that finds.
The present invention is through the image file of the preceding conversion of upgrading host processor chip; No longer need travel through the data of each byte of image file during each the upgrading; And the partition table of the covering whole terminal Flash that when upgrading host processor chip image file, upgrades; Make the terminal restart back PC and go up the USB interface that occurs with auxilliary processor communication; Search any USB interface that is not used and initialization; Data Transport Protocol upgrade image file through this USB interface and auxilliary processor chips is also restarted the terminal, and with the serial ports that on PC, occurs once more communicating by letter with host processor chip, corresponding terminal software upgrading finishes if this string slogan is identical with original records string slogan.The present invention has reduced the resource consumption of PC end processor; Need not revise final drive, according to the different communication protocol of characteristics employing of terminal handler, upgrading efficient is higher; Can disposable upgrading core terminal software during batch upgrade, the while simple to operate has also been reduced cost.
The practical implementation method:
A kind of batch upgrading method of core terminal comprises:
A, be temporary file according to the original image file of serial ports and terminal primary processor Data Transport Protocol conversion host processor chip to be upgraded;
Communication serial port between B, initialization PC and the terminal host processor chip, and record communication string slogan;
C, the control of communication instruction of sending the terminal host processor chip through serial ports make it get into downloading mode;
The partition table of D, the Flash through the serial ports inquiry terminal, and upgrading covers original partition table, will occur the USB interface of communicating by letter with auxilliary processor chips when restarting the terminal once more on the PC;
E, send the image file of image file packet upgrading terminals host processor chip through serial ports;
F, to send the steering order restart the terminal shows the auxilliary processor chips at terminal on PC interface be USB interface;
G, search any USB interface that is not used and initialization, the Data Transport Protocol upgrade image file through this USB interface and auxilliary processor chips is also restarted the terminal, with the serial ports that on PC, occurs once more communicating by letter with host processor chip;
H, search and write down the string slogan on the current PC,, otherwise continue to search the string slogan, if the time of searching surpasses the time-out time that presets then the failure of upgrading if then corresponding terminal staging identical with original records string slogan finishes.
Wherein, change the image file of host processor chip to be upgraded in the steps A, comprising: the size according to sending packet reads original image file;
The packet that traversal reads converts the special byte 0x7E in the packet into two byte 0x7D and 0x5E, and the packet size after the record conversion; The beginning and end of the packet after conversion adds a byte 0x7E respectively, and the size of record current data packet; Create temporary file, the size of packet with two bytes (0xFFFF) expression, two bytes of the size of expression packet and the packet after changing write temporary file; Circulation is read original file data bag, translation data bag, is write temporary file successively.
Wherein, record communication string slogan comprises the port numbers that all terminals to be upgraded show among the step B on PC.
Wherein, The partition table of the Flash of inquiry terminal is further comprising the steps of among the step D: judge whether whether the terminal flash partition table identical with partition table to be upgraded; If, and the mirror image of the host processor chip of only upgrading, the partition table file of then not upgrading; If not, then do not upgrade and cover original partition table.
Wherein, sending the image file packet in the step e comprises:
Read preceding two bytes of the temporary file after process is changed and calculate this two byte data represented sizes;
Read the packet of corresponding size in the file according to the size of data of the sign of preceding two bytes; Circulation is read temporary file and is sent packet to the terminal successively.
Wherein, search USB interface among the step G, comprising:
Judge and search the USB interface whether terminal is arranged on the PC and occur; Whether with corresponding terminal corresponding, as long as the USB interface at the terminal that appearance is not used on PC just sends the image file that processor chips are assisted in the data upgrading through this interface if not distinguishing the terminal USB interface that finds.

Claims (6)

1. the batch upgrading method of a core terminal; It is characterized in that; Described core terminal comprises host processor chip and auxilliary processor chips; The external interface of communicating by letter between host processor chip and the PC is a serial ports, and the external interface of communicating by letter between auxilliary processor chips and the PC is a USB interface, and this method comprises:
A, be temporary file according to the original image file of serial ports and terminal primary processor Data Transport Protocol conversion host processor chip to be upgraded;
Communication serial port between B, initialization PC and the terminal host processor chip, and record communication string slogan;
C, the control of communication instruction of sending the terminal host processor chip through serial ports make it get into downloading mode;
The partition table of D, the Flash through the serial ports inquiry terminal, and upgrading covers original partition table;
E, send the image file of image file packet upgrading terminals host processor chip through serial ports;
F, to send the steering order restart the terminal shows the auxilliary processor chips at terminal on PC interface be USB interface;
G, search any USB interface that is not used and initialization, the Data Transport Protocol upgrade image file through this USB interface and auxilliary processor chips is also restarted the terminal;
H, search and write down the string slogan on the current PC,, otherwise continue to search the string slogan, if the time of searching surpasses the time-out time that presets then the failure of upgrading if then corresponding terminal staging identical with original records string slogan finishes.
2. the batch upgrading method of a kind of core terminal according to claim 1 is characterized in that: the image file of conversion host processor chip to be upgraded in the described steps A, and comprising: the size according to sending packet reads original image file; The packet that traversal reads converts the special byte 0x7E in the packet into two byte 0x7D and 0x5E, and the packet size after the record conversion; The beginning and end of the packet after conversion adds a byte 0x7E respectively, and the size of record current data packet; Create temporary file, the size of packet with two bytes (0xFFFF) expression, two bytes of the size of expression packet and the packet after changing write temporary file; Circulation is read original file data bag, translation data bag, is write temporary file successively.
3. the batch upgrading method of a kind of core terminal according to claim 1, it is characterized in that: record communication string slogan comprises the port numbers that all terminals to be upgraded show among the described step B on PC.
4. the batch upgrading method of a kind of core terminal according to claim 1, it is characterized in that: the partition table of the Flash of inquiry terminal is further comprising the steps of among the described step D: judge whether whether the terminal flash partition table identical with partition table to be upgraded; If, and the mirror image of the host processor chip of only upgrading, the partition table file of then not upgrading; If not, then do not upgrade and cover original partition table.
5. the batch upgrading method of a kind of core terminal according to claim 1 is characterized in that: send the image file packet in the described step e and comprise: read preceding two bytes of the temporary file after process is changed and calculate this two byte data represented sizes; Read the packet of corresponding size in the file according to the size of data of the sign of preceding two bytes; Circulation is read temporary file and is sent packet to the terminal successively.
6. the batch upgrading method of a kind of core terminal according to claim 1; It is characterized in that: search USB interface among the described step G; Comprise: judge and search the USB interface whether terminal is arranged on the PC to occur whether do not distinguish the terminal USB interface that finds corresponding with corresponding terminal.
CN2010106190995A 2010-12-30 2010-12-30 Method for realizing batch upgrading of dual-core terminal Pending CN102567039A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010106190995A CN102567039A (en) 2010-12-30 2010-12-30 Method for realizing batch upgrading of dual-core terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010106190995A CN102567039A (en) 2010-12-30 2010-12-30 Method for realizing batch upgrading of dual-core terminal

Publications (1)

Publication Number Publication Date
CN102567039A true CN102567039A (en) 2012-07-11

Family

ID=46412548

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010106190995A Pending CN102567039A (en) 2010-12-30 2010-12-30 Method for realizing batch upgrading of dual-core terminal

Country Status (1)

Country Link
CN (1) CN102567039A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888825A (en) * 2012-12-20 2014-06-25 天津三星电子有限公司 Television set
CN104461609A (en) * 2014-10-30 2015-03-25 天津铂创国茂电子科技发展有限公司 Method for updating configuration of remote controller through network
CN105302591A (en) * 2014-08-01 2016-02-03 联创汽车电子有限公司 Communication method of double-MCU (Microcontroller Unit)-architecture system updating program
WO2016033941A1 (en) * 2014-09-05 2016-03-10 中兴通讯股份有限公司 Boot on-line upgrading apparatus and method
CN105426198A (en) * 2014-09-09 2016-03-23 联创汽车电子有限公司 Vehicle onboard double-control-chip system and auxiliary control chip program update method therefor
CN110286935A (en) * 2019-08-02 2019-09-27 爱士惟新能源技术(扬中)有限公司 A kind of dual chip program renewing device and method
CN110389772A (en) * 2018-04-23 2019-10-29 中车株洲电力机车研究所有限公司 Double-core MCU application program updating method
CN112506550A (en) * 2020-12-21 2021-03-16 江苏徐工信息技术股份有限公司 Vehicle controller rapid OTA method
CN113254051A (en) * 2021-07-12 2021-08-13 浙江华网俊业科技有限公司 Multi-terminal point-to-point pushing method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1758187A (en) * 2005-11-25 2006-04-12 北京中星微电子有限公司 Virtual serial port device
US20100049900A1 (en) * 2008-08-20 2010-02-25 Incomm Technologies Co., Ltd. Memory card and non-volatile memory controller thereof
EP2192485A1 (en) * 2008-11-25 2010-06-02 Research in Motion System and method for over-the-air software loading in mobile device
CN101815988A (en) * 2007-10-04 2010-08-25 无极公司 Firmware image update and management

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1758187A (en) * 2005-11-25 2006-04-12 北京中星微电子有限公司 Virtual serial port device
CN101815988A (en) * 2007-10-04 2010-08-25 无极公司 Firmware image update and management
US20100049900A1 (en) * 2008-08-20 2010-02-25 Incomm Technologies Co., Ltd. Memory card and non-volatile memory controller thereof
EP2192485A1 (en) * 2008-11-25 2010-06-02 Research in Motion System and method for over-the-air software loading in mobile device

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888825B (en) * 2012-12-20 2017-01-11 天津三星电子有限公司 Television set
CN103888825A (en) * 2012-12-20 2014-06-25 天津三星电子有限公司 Television set
CN105302591B (en) * 2014-08-01 2018-06-19 联创汽车电子有限公司 The communication means of Double MCUs Architecture system update program
CN105302591A (en) * 2014-08-01 2016-02-03 联创汽车电子有限公司 Communication method of double-MCU (Microcontroller Unit)-architecture system updating program
WO2016033941A1 (en) * 2014-09-05 2016-03-10 中兴通讯股份有限公司 Boot on-line upgrading apparatus and method
CN105426198A (en) * 2014-09-09 2016-03-23 联创汽车电子有限公司 Vehicle onboard double-control-chip system and auxiliary control chip program update method therefor
CN105426198B (en) * 2014-09-09 2018-09-07 联创汽车电子有限公司 Vehicle-mounted dual-control chip system and its auxiliary control chip method for updating program
CN104461609A (en) * 2014-10-30 2015-03-25 天津铂创国茂电子科技发展有限公司 Method for updating configuration of remote controller through network
CN110389772A (en) * 2018-04-23 2019-10-29 中车株洲电力机车研究所有限公司 Double-core MCU application program updating method
CN110389772B (en) * 2018-04-23 2022-12-13 中车株洲电力机车研究所有限公司 Dual-core MCU application program upgrading method
CN110286935A (en) * 2019-08-02 2019-09-27 爱士惟新能源技术(扬中)有限公司 A kind of dual chip program renewing device and method
CN110286935B (en) * 2019-08-02 2024-03-26 爱士惟新能源技术(扬中)有限公司 Dual-chip program updating device and method
CN112506550A (en) * 2020-12-21 2021-03-16 江苏徐工信息技术股份有限公司 Vehicle controller rapid OTA method
CN113254051A (en) * 2021-07-12 2021-08-13 浙江华网俊业科技有限公司 Multi-terminal point-to-point pushing method
CN113254051B (en) * 2021-07-12 2021-09-21 浙江华网俊业科技有限公司 Multi-terminal point-to-point pushing method

Similar Documents

Publication Publication Date Title
CN102567039A (en) Method for realizing batch upgrading of dual-core terminal
US8650332B2 (en) Method for switching working mode, USB device, and host device
TWI393009B (en) Data sharing and transfer systems and methods
US20100106881A1 (en) Hot plug ad hoc computer resource allocation
CN101051279B (en) Peripheral device operation method, peripheral device and host
US20110191499A1 (en) USB to SD Bridge
WO2021244194A1 (en) Register reading/writing method, chip, subsystem, register group, and terminal
TW201227516A (en) System and method for facilitating wireless communication during a pre-boot phase of a computing device
CN102609222A (en) Flash memory control method based on command descriptors
JP2018514867A (en) Central processing unit with DSP engine and improved context switch capability
CN101431828B (en) WiMAX network card and its starting method
CN105677375A (en) Update control device, terminal, terminal update method and system
US9092334B2 (en) Method for shortening enumeration of tightly coupled USB device
CN101281454A (en) A device for binding computing resources and storage resources
TWI547804B (en) Method and system for transferring data between a host device and an external device
CN104834619A (en) I2C (Inter-Integrated Circuit) bus circuit, implementation method and electronic equipment
CN103561116B (en) Use the method that restructural PXI serial communication card realizes remote reconstruction
CN106569972A (en) USB interface-based JTAG one-chip microcomputer wireless emulator and method
CN201518112U (en) Major-minor interface type mainboard
WO2008134973A1 (en) Peripheral equipment operating method, peripheral equipment and host
CN105607874A (en) SATA (Serial advanced technology attachment) protocol acceleration module, host and hard disk communication method, as well as solid state drive controller
US7680909B2 (en) Method for configuration of a processing unit
CN110493646A (en) Method, apparatus, TV and the system of TV upgrading are carried out by external equipment
CN111694600A (en) Mirror image file design, chip operation method, system, device and medium
CN106681761B (en) Interactive upgrading method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120711