CN105045634A - Smartphone software download method - Google Patents

Smartphone software download method Download PDF

Info

Publication number
CN105045634A
CN105045634A CN201510489211.0A CN201510489211A CN105045634A CN 105045634 A CN105045634 A CN 105045634A CN 201510489211 A CN201510489211 A CN 201510489211A CN 105045634 A CN105045634 A CN 105045634A
Authority
CN
China
Prior art keywords
software
file
mobile phone
port
smartphone
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
CN201510489211.0A
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 UNISCOPE COMMUNICATION TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI UNISCOPE 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 UNISCOPE COMMUNICATION TECHNOLOGY Co Ltd filed Critical SHANGHAI UNISCOPE COMMUNICATION TECHNOLOGY Co Ltd
Priority to CN201510489211.0A priority Critical patent/CN105045634A/en
Publication of CN105045634A publication Critical patent/CN105045634A/en
Pending legal-status Critical Current

Links

Abstract

The present invention discloses a smartphone software download method comprising the following steps: acquiring each file name and a corresponding check code of software to be downloaded; reading each file name from a file containing the software, and calculating the check code of each file; comparing the file names and the check codes obtained in the previous two steps, if the file names and the check codes are same, considering that there is no mistake, otherwise, ending the operation namely prohibiting a user from continuing operation; acquiring a port number enumerated by a smartphone; and querying a key field of the port number according to the port number in a registry so as to determine a corresponding download mode. Compared with the prior art, the smartphone software download method ensures the correctness of the software to be downloaded by verifying the software to be downloaded on the one hand, and determines the corresponding download mode according to the port number enumerated by the smartphone on the other hand, thereby avoiding the problem of software download errors caused by download that is carried out by manually selecting configuration files.

Description

Smartphone software method for down loading
[technical field]
The invention belongs to electronic technology field, particularly smartphone software method for down loading.
[background technology]
In the software download and upgrade-system of smart mobile phone, now original Multi-serial port download tool configured port is in the art inconvenient, and the pattern automatically residing for the port type of smart mobile phone and smart mobile phone can not carry out corresponding download flow process automatically, but need manual mode to select the configuration file of corresponding download to control the corresponding flow process downloaded.So, in the fabrication process, when download or upgrade software, bother very much, needs are manual selects corresponding configuration file to control the flow process downloaded or upgrade, once select mistake configuration file, software download will be made mistakes, and can cause the existence of indiscoverable problem.So in order to enhance productivity and stability, be necessary to develop a kind of smartphone software method for down loading in fact.
[summary of the invention]
The object of the present invention is to provide a kind of smartphone software method for down loading, adopt manual option and installment file to carry out downloading and the problem of the software download mistake caused in order to solve in prior art.
For achieving the above object, implement smartphone software method for down loading of the present invention to comprise the steps:
Obtain for downloading each file name of software and the check code of correspondence;
From the file at software place, read each file name one by one, and calculate the check code of each file;
The filename obtained in above-mentioned two steps and check code are compared, as identical, think errorless and proceed subsequent step, if not identical, terminate, namely forbid that user continues operation;
Obtain the port numbers that smart mobile phone is enumerated out;
In registration table, go the critical field of inquiring about port numbers according to this port numbers to determine corresponding downloading mode.
According to above-mentioned principal character, if smart mobile phone port shows key word Diagnostics, then enter the download flow process of this type of port type according to this key word, and then complete downloading task.
According to above-mentioned principal character, if port shows key word QDLoader, then enter the download flow process of this kind of port type according to this key word, and then complete downloading task.
According to above-mentioned principal character, the method also comprises according to above-mentioned port type, determine the pattern residing for smart mobile phone, if the port numbers that smart mobile phone is enumerated out shows Diagnostics key word, so mobile phone is just in power on mode, if display QDLoader key word, so mobile phone is just in urgent downloading mode.
Compared with prior art, one aspect of the present invention is by verifying for downloading software, thus guarantee the correctness for downloading software, and determine corresponding downloading mode according to the port numbers that acquisition smart mobile phone is enumerated out, thus the problem of the software download mistake avoided adopting manual option and installment file to carry out downloading and cause.
[accompanying drawing explanation]
Fig. 1 is the schematic flow sheet implementing smartphone software method for down loading of the present invention.
[embodiment]
Refer to shown in Fig. 1, for implementing the schematic flow sheet of smartphone software method for down loading of the present invention.Implement smartphone software method for down loading of the present invention to comprise the steps:
Obtain for downloading each file name of software and the check code of correspondence;
From the file at software place, read each file name one by one, and calculate the check code of each file;
The filename obtained in above-mentioned two steps and check code are compared, as identical, think errorless and proceed subsequent step, if not identical, terminate, namely forbid that user continues operation;
Obtain the port numbers that smart mobile phone is enumerated out;
In registration table, go the critical field of inquiring about port numbers according to this port numbers to determine corresponding downloading mode.
In the specific implementation, because the software of smart mobile phone is when compiling is issued, automatically each file can be carried out MD5 verification, and generate the check code of each file, afterwards these check codes are kept in a file (bin.md5), when loading software, first from bin.md5 file, the title of each file and the MD5 check code of correspondence is read, and then one by one from the file at software place, read each file name, and calculate the check code of each file, the file name finally above-mentioned two steps obtained and corresponding MD5 check code contrast between two, as identical, think errorless, contrast not identical, think file corruption or lost, then forbid that user continues operation.
Judge the port type (i.e. com port type, such as Diagnostics Type C OM, QDLoader Type C OM etc.) of smart mobile phone afterwards, according to port type, automatically control the download flow process that mobile phone-downloaded will be carried out.Specifically according to the port numbers that each mobile phone is enumerated out, then the critical field being clipped to and going to inquire about according to this port numbers port numbers in registration table is divided, such as port shows Diagnostics9091, then enter the download flow process of Diagnostics port type according to this Diagnostics9091, and then complete downloading task.As port shows QDLoader9008, then according to the download flow process of this QDLoader port type, and then complete downloading task.
As enumerate out when mobile phone be Diagnostics mouth time, then carry out " the urgent downloading mode of power on mode-> " flow process, and can automatically according to the relation that physics port address maps, selected Diagnostics type mouth is switched to corresponding QDLoader type mouth, and then starts to download.When mobile phone enumerate out be QDLoader type mouth time, then directly enter emergency mode to download.
Those of ordinary skill in the art can recognize, in conjunction with the method step described by embodiment disclosed herein, can realize with electronic hardware, computer software or the combination of the two, in order to the interchangeability of hardware and software is clearly described, generally describe composition and the step of each example in the above description according to function.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use diverse ways realize described function to each specific application, but this realization should not thought and exceeds scope of the present invention.
In conjunction with the software module that the method step of embodiment disclosed herein description can use hardware, processor to perform, or the combination of the two realizes.Software module can be placed in random access memory (RAM), internal memory, ROM (read-only memory) (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, CD-ROM or any other forms of storage medium well known in the art.
Be understandable that, for those of ordinary skills, can be equal to according to technical scheme of the present invention and inventive concept thereof and replace or change, and all these change or replace the protection domain that all should belong to the claim appended by the present invention.

Claims (4)

1. a smartphone software method for down loading, comprises the steps:
Obtain for downloading each file name of software and the check code of correspondence;
From the file at software place, read each file name one by one, and calculate the check code of each file;
The filename obtained in above-mentioned two steps and check code are compared, as identical, think errorless and proceed subsequent step, if not identical, terminate, namely forbid that user continues operation;
Obtain the port numbers that smart mobile phone is enumerated out;
In registration table, go the critical field of inquiring about port numbers according to this port numbers to determine corresponding downloading mode.
2., according to smartphone software method for down loading according to claim 1, it is characterized in that: if smart mobile phone port shows key word Diagnostics, then enter the download flow process of this type of port type according to this key word, and then complete downloading task.
3., according to smartphone software method for down loading according to claim 1, it is characterized in that: if port shows key word QDLoader, then enter the download flow process of this kind of port type according to this key word, and then complete downloading task.
4. according to smartphone software method for down loading according to claim 1, it is characterized in that: the method also comprises according to above-mentioned port type, determine the pattern residing for smart mobile phone, if the port numbers that smart mobile phone is enumerated out shows Diagnostics key word, so mobile phone is just in power on mode, if display QDLoader key word, so mobile phone is just in urgent downloading mode.
CN201510489211.0A 2015-08-11 2015-08-11 Smartphone software download method Pending CN105045634A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510489211.0A CN105045634A (en) 2015-08-11 2015-08-11 Smartphone software download method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510489211.0A CN105045634A (en) 2015-08-11 2015-08-11 Smartphone software download method

Publications (1)

Publication Number Publication Date
CN105045634A true CN105045634A (en) 2015-11-11

Family

ID=54452198

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510489211.0A Pending CN105045634A (en) 2015-08-11 2015-08-11 Smartphone software download method

Country Status (1)

Country Link
CN (1) CN105045634A (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101035044A (en) * 2007-02-02 2007-09-12 中兴通讯股份有限公司 Making method of the CDMA network card downloading software based on the stream downloading protocol
US20080183878A1 (en) * 2007-01-31 2008-07-31 Sudip Kumar Panda System And Method For Dynamic Patching Of Network Applications
CN101262677A (en) * 2008-04-30 2008-09-10 中兴通讯股份有限公司 A method for transmitting data to terminal device
CN101387992A (en) * 2008-10-27 2009-03-18 深圳华为通信技术有限公司 Starting method and apparatus for data card
CN101526928A (en) * 2009-04-10 2009-09-09 中兴通讯股份有限公司 Interface switching device of data card equipment based on preinstall drive module and method thereof
CN101655924A (en) * 2009-09-21 2010-02-24 中兴通讯股份有限公司 Method for recognizing data card, data card and system
CN101882110A (en) * 2010-06-30 2010-11-10 中兴通讯股份有限公司 Method for downloading data and terminal equipment
US8005929B1 (en) * 2009-02-27 2011-08-23 Symantec Operating Corporation Software update checking method
CN102646063A (en) * 2012-03-05 2012-08-22 青岛海信移动通信技术股份有限公司 Method and device for downloading software of mobile terminal
CN103412914A (en) * 2013-08-05 2013-11-27 广州仙海网络科技有限公司 Network client side
CN103617063A (en) * 2013-12-10 2014-03-05 Tcl通讯(宁波)有限公司 Software updating method and device for mobile terminals
CN103685554A (en) * 2013-12-25 2014-03-26 浙江云巢科技有限公司 Upgrading method, device and system
CN103677938A (en) * 2013-12-25 2014-03-26 上海卓悠网络科技有限公司 Emergent downloading method and device
CN104102510A (en) * 2014-07-15 2014-10-15 国家电网公司 Integration and configuration system for IEC (international electrotechnical commission) 61850 network processor chips

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080183878A1 (en) * 2007-01-31 2008-07-31 Sudip Kumar Panda System And Method For Dynamic Patching Of Network Applications
CN101035044A (en) * 2007-02-02 2007-09-12 中兴通讯股份有限公司 Making method of the CDMA network card downloading software based on the stream downloading protocol
CN101262677A (en) * 2008-04-30 2008-09-10 中兴通讯股份有限公司 A method for transmitting data to terminal device
CN101387992A (en) * 2008-10-27 2009-03-18 深圳华为通信技术有限公司 Starting method and apparatus for data card
US8005929B1 (en) * 2009-02-27 2011-08-23 Symantec Operating Corporation Software update checking method
CN101526928A (en) * 2009-04-10 2009-09-09 中兴通讯股份有限公司 Interface switching device of data card equipment based on preinstall drive module and method thereof
CN101655924A (en) * 2009-09-21 2010-02-24 中兴通讯股份有限公司 Method for recognizing data card, data card and system
CN101882110A (en) * 2010-06-30 2010-11-10 中兴通讯股份有限公司 Method for downloading data and terminal equipment
CN102646063A (en) * 2012-03-05 2012-08-22 青岛海信移动通信技术股份有限公司 Method and device for downloading software of mobile terminal
CN103412914A (en) * 2013-08-05 2013-11-27 广州仙海网络科技有限公司 Network client side
CN103617063A (en) * 2013-12-10 2014-03-05 Tcl通讯(宁波)有限公司 Software updating method and device for mobile terminals
CN103685554A (en) * 2013-12-25 2014-03-26 浙江云巢科技有限公司 Upgrading method, device and system
CN103677938A (en) * 2013-12-25 2014-03-26 上海卓悠网络科技有限公司 Emergent downloading method and device
CN104102510A (en) * 2014-07-15 2014-10-15 国家电网公司 Integration and configuration system for IEC (international electrotechnical commission) 61850 network processor chips

Similar Documents

Publication Publication Date Title
US7774382B2 (en) Method and apparatus for configuring a control device, and corresponding control device
JP2017504879A (en) Method and apparatus for creating differential update package, system differential update method and apparatus
EP3001309A1 (en) Application migration method, device and system for mobile terminal
CN108196878A (en) Generation method, device, electronic equipment and the storage medium of application program installation kit
KR20190050993A (en) Update escalation system and method
JP4575416B2 (en) Test data generation system, test data generation method, and test data generation program
CN107870827B (en) Data quality control method and device based on verification
US11068450B2 (en) Infinite versioning by automatic coalescing
CN104866391A (en) Terminal information backup method and apparatus based on incremental information system
CN102750156A (en) Program burning method and system
CN102999349A (en) Software upgrading method
CN105117499A (en) File display method and device based on cloud disk
CN105955773A (en) System upgrading method and device
CN105045634A (en) Smartphone software download method
CN109582338A (en) BIOS option amending method, device, equipment and storage medium
CN115168217A (en) Defect discovery method and device for source code file
CN111147091B (en) Antenna tuning switch logic control method, system and terminal
CN109656542B (en) Smbios information checking method and system
US9930521B2 (en) Method for updating preferred roaming list of UIM card
CN109491706B (en) Data acquisition method and related device
CN112394963B (en) Method for updating domestic platform SMBIOS and BIOS device
CN111585810A (en) Operator parameter file customization method, customization device and readable storage medium
CN112749159A (en) Form generation method and device, electronic equipment and storage medium
JP7089549B2 (en) Firmware update method and its firmware update system
CN108334344B (en) Client upgrading method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151111