CN102724326A - Method for all application programs to utilize uniform download interface under WINCE - Google Patents

Method for all application programs to utilize uniform download interface under WINCE Download PDF

Info

Publication number
CN102724326A
CN102724326A CN2012102248939A CN201210224893A CN102724326A CN 102724326 A CN102724326 A CN 102724326A CN 2012102248939 A CN2012102248939 A CN 2012102248939A CN 201210224893 A CN201210224893 A CN 201210224893A CN 102724326 A CN102724326 A CN 102724326A
Authority
CN
China
Prior art keywords
download
application program
request message
request
downloading
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.)
Granted
Application number
CN2012102248939A
Other languages
Chinese (zh)
Other versions
CN102724326B (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.)
Jiangsu Kuailu Saige Chesheng Navigation Technology Co ltd
Original Assignee
HUNAN SAIGE NAVIGATION TECHNOLOGY RESEARCH 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 HUNAN SAIGE NAVIGATION TECHNOLOGY RESEARCH Co Ltd filed Critical HUNAN SAIGE NAVIGATION TECHNOLOGY RESEARCH Co Ltd
Priority to CN201210224893.9A priority Critical patent/CN102724326B/en
Publication of CN102724326A publication Critical patent/CN102724326A/en
Application granted granted Critical
Publication of CN102724326B publication Critical patent/CN102724326B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method for all application programs to utilize a uniform download interface under WINCE, and the method is characterized by comprising the following steps of establishing a download processing module which runs on a background, receiving a download request of each application program, downloading the data according to a download queue and priority, and feeding the download status back to each application program terminal in time. Each application program can call the uniform download interface to complete the downloading only by including multiple macro definitions. The method has technical effects that codes are simple, and each application program is free from writing a great amount of download processing codes; and the maintainability is high, and only the processing program of a download center is modified when the download processing is changed or a new function is added. The universality is strong, application program development personnel is unnecessary for caring the data download way and the realization method of the data download way, and the uniform download interface can be directly utilized only by simply declaring several macro definitions.

Description

Each application program is used the method for unified download interface under a kind of WINCE
Technical field
The present invention relates to the embedded product field of software development, each application program is used the method for unified download interface under particularly a kind of WINCE.
Background technology
The download function of existing each application software of WINCE all is to call download api function separately to realize download function; Each application program all need repeat to write download code separately; Safeguard processing such as downloading time-out, continuation, success, failure, code redundancy is high, is unfavorable for safeguarding.
Along with popularizing of Internet development and WINCE terminal, application program is more and more heavier to the dependence of network, again because independent mutually between the software of each application program; All need write network data and download this section code, all need call a series of system interface functions (like AfxParseURL, GetHttpConnection; OpenRequest, SendRequest, QueryInfoStatusCode; Read, Close or the like), accomplish the function that data are downloaded.In addition, because network formats is inequality, CDMA is arranged at present; GSM; Network formats such as CDMA2000, WCDMA, TD-SCDMA, the module that the WINCE terminal of different network formats connects is different, and the data download process also can be different; Need bring in constant renewal in code for each application program of compatible disparate modules and satisfy the demands, maintenance cost is high.If adopt unified download interface handling procedure; Then each application program need not to be concerned about which type of network formats the WINCE terminal adopts; Dispose which type of hardware module; The convenient transplanting and code reuse makes things convenient for the misarrangement and the debugging of program, can improve the development efficiency of application program and the stability of program.
Summary of the invention
Need repeat to write the technical problem of downloading code in order to solve existing WINCE application software for realizing downloads, the present invention provides each application program under the strong WINCE of succinct convenience and extensibility to use the method for unification download interface.
In order to realize above-mentioned technical purpose, technical scheme of the present invention is that each application program is used the method for unified download interface under a kind of WINCE, may further comprise the steps:
Each application program is used the method for unified download interface under a kind of WINCE, may further comprise the steps:
Steps A: set up a download process module that is used to handle each application program download request on the backstage;
Step B: each application program unification is sent to the download process module with download request, download process resume module download request, and disposition fed back to each application program;
Step C: the download process module will respond download request and download successful data and be kept in the local directory with the form of file, directly handled by the application program of proposition download request.
Described method, the download process module described in the steps A comprises download request receiving element, download unit and download state feedback unit.
Described method; The download process module is accepted the downloading request message that each application program sends over through the download request receiving element and is stored among the step B, then the data parameters that is comprised in the downloading request message is carried out dissection process to judge whether being effective download request.
Described method, described download request receiving element stores the mode of downloading request message with formation by the order that receives, and according to the order of first in first out the data parameters that downloading request message comprised in the formation is carried out dissection process then.
Described method, described data parameters comprises window handle, downloads id, url, four parameters of belt paths long filenames.
Described method, describedly the data parameter is carried out dissection process comprise:
1) whether inspection handle parameter greater than zero, meets the requirements greater than zero, undesirable smaller or equal to zero;
2) inspection download the id parameter whether greater than zero and not with the download request that has existed in id repeat; Greater than zero and not with the download request that has existed in id repeat then to meet the requirements, smaller or equal to zero or repeat then undesirable with id in the download request that has existed;
3) whether inspection url parameter meets the requirement of RFC2616 protocol specification, meets the RFC2616 protocol specification and then meets the requirements, and it is then undesirable not meet the RFC2616 protocol specification;
4) whether the path in the inspection belt paths long filenames parameter exists, and the path existence then meets the requirements, and the path does not exist then undesirable;
Above-mentioned four inspections are if wherein have at least one association parameter undesirable; Then the download request receiving element is judged as invalid downloading request message with this downloading request message; If four association parameters all meet the requirements, then the download request receiving element is judged as effective downloading request message with this downloading request message.
Described method; The download request receiving element will be judged as effective downloading request message and be sent to download unit; Download module carries out data download according to effective downloading request message, and the download status information that will download success or failed download according to the download situation then is sent to the download state feedback unit.
Described method, download request receiving element are judged as download state message to the download state feedback unit that invalid downloading request message is then directly sent invalid download.
Described method, download state feedback unit feed back to the download status information that is received the application program of sending download request information.
Technique effect of the present invention is that code is succinct, need not each application program and writes a large amount of download process codes; Maintainable high, if download process changes or adds new function, only need to revise the download center handling procedure.Highly versatile only needs the several macrodefinitions of simple statement just can directly use unified download interface.
Below in conjunction with accompanying drawing the present invention is described further.
Description of drawings
Fig. 1 is a structural representation of the present invention;
Fig. 2 is a handling process sketch map of the present invention.
Embodiment
The present invention includes following steps:
Steps A: set up a download process module that is used to handle each application program download request on the backstage, the download process module comprises download request receiving element, download unit and download state feedback unit.
Step B: each application program unification is sent to the download process module with download request, download process resume module download request, and disposition fed back to each application program.Concrete processing procedure does; The download process module is accepted the downloading request message that each application program sends over through the download request receiving element and is stored; Then the data parameters that is comprised in the downloading request message is carried out dissection process to judge whether being effective download request; If successively receive a plurality of download requests; Then the download request receiving element stores the mode of downloading request message with formation by the order that receives, and according to the order of first in first out the data parameters that downloading request message comprised in the formation is carried out dissection process then.Data parameters comprises window handle, downloads id, url, and four parameters of belt paths long filenames, concrete parameter are resolved to handle and are comprised:
1) whether inspection handle parameter greater than zero, meets the requirements greater than zero, undesirable smaller or equal to zero;
2) inspection download the id parameter whether greater than zero and not with the download request that has existed in id repeat; Greater than zero and not with the download request that has existed in id repeat then to meet the requirements, smaller or equal to zero or repeat then undesirable with id in the download request that has existed;
3) whether inspection url parameter meets the requirement of RFC2616 protocol specification, meets the RFC2616 protocol specification and then meets the requirements, and it is then undesirable not meet the RFC2616 protocol specification;
4) whether the path in the inspection belt paths long filenames parameter exists, and the path existence then meets the requirements, and the path does not exist then undesirable;
Above-mentioned four inspections of carrying out; If wherein have at least one association parameter undesirable; Then the download request receiving element is judged as invalid downloading request message with this downloading request message; If four association parameters all meet the requirements, then the download request receiving element is judged as effective downloading request message with this downloading request message.
The download request receiving element will be judged as effective downloading request message and be sent to download unit; Download module carries out data download according to effective downloading request message, and the download status information that will download success or failed download according to the download situation then is sent to the download state feedback unit.
The download request receiving element is judged as download state message to the download state feedback unit that invalid downloading request message is then directly sent invalid download.
Step C: the download process module will respond download request and download successful data and be kept in the local directory with the form of file, directly handled by the application program of proposition download request.
When reality was used, each application program only need comprise several macrodefinitions can call unified download interface completion download.

Claims (10)

1. each application program is used the method for unified download interface under the WINCE, it is characterized in that, may further comprise the steps:
Steps A: set up a download process module that is used to handle each application program download request on the backstage;
Step B: each application program unification is sent to the download process module with download request, download process resume module download request, and disposition fed back to each application program;
Step C: the download process module will respond download request and download successful data and be kept in the local directory with the form of file, directly handled by the application program of proposition download request.
2. method according to claim 1 is characterized in that, the download process module described in the steps A comprises download request receiving element, download unit and download state feedback unit.
3. method according to claim 2; It is characterized in that; The download process module is accepted the downloading request message that each application program sends over through the download request receiving element and is stored among the step B, then the data parameters that is comprised in the downloading request message is carried out dissection process to judge whether being effective download request.
4. method according to claim 3; It is characterized in that; Described download request receiving element stores the mode of downloading request message with formation by the order that receives, and according to the order of first in first out the data parameters that downloading request message comprised in the formation is carried out dissection process then.
5. according to claim 3 or 4 described methods, it is characterized in that described data parameters comprises window handle, download id, url, four parameters of belt paths long filenames.
6. according to claim 3 or 4 described methods, it is characterized in that, describedly the data parameter is carried out dissection process comprise:
1) whether inspection handle parameter greater than zero, meets the requirements greater than zero, undesirable smaller or equal to zero;
2) inspection download the id parameter whether greater than zero and not with the download request that has existed in id repeat; Greater than zero and not with the download request that has existed in id repeat then to meet the requirements, smaller or equal to zero or repeat then undesirable with id in the download request that has existed;
3) whether inspection url parameter meets the requirement of RFC2616 protocol specification, meets the RFC2616 protocol specification and then meets the requirements, and it is then undesirable not meet the RFC2616 protocol specification;
4) whether the path in the inspection belt paths long filenames parameter exists, and the path existence then meets the requirements, and the path does not exist then undesirable;
Above-mentioned four inspections are if wherein have at least one association parameter undesirable; Then the download request receiving element is judged as invalid downloading request message with this downloading request message; If four association parameters all meet the requirements, then the download request receiving element is judged as effective downloading request message with this downloading request message.
7. according to claim 3 or 4 described methods; It is characterized in that; The download request receiving element will be judged as effective downloading request message and be sent to download unit; Download module carries out data download according to effective downloading request message, and the download status information that will download success or failed download according to the download situation then is sent to the download state feedback unit.
8. according to claim 3 or 4 described methods, it is characterized in that the download request receiving element is judged as download state message to the download state feedback unit that invalid downloading request message is then directly sent invalid download.
9. method according to claim 7 is characterized in that, the download state feedback unit feeds back to the download status information that is received the application program of sending download request information.
10. method according to claim 8 is characterized in that, the download state feedback unit feeds back to the download status information that is received the application program of sending download request information.
CN201210224893.9A 2012-07-02 2012-07-02 Method for all application programs to utilize uniform download interface under WINCE Expired - Fee Related CN102724326B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210224893.9A CN102724326B (en) 2012-07-02 2012-07-02 Method for all application programs to utilize uniform download interface under WINCE

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210224893.9A CN102724326B (en) 2012-07-02 2012-07-02 Method for all application programs to utilize uniform download interface under WINCE

Publications (2)

Publication Number Publication Date
CN102724326A true CN102724326A (en) 2012-10-10
CN102724326B CN102724326B (en) 2015-02-25

Family

ID=46949986

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210224893.9A Expired - Fee Related CN102724326B (en) 2012-07-02 2012-07-02 Method for all application programs to utilize uniform download interface under WINCE

Country Status (1)

Country Link
CN (1) CN102724326B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793380A (en) * 2012-10-26 2014-05-14 北京新媒传信科技有限公司 Method and system for downloading picture in application
CN104572144A (en) * 2013-10-16 2015-04-29 北大方正集团有限公司 Application downloading method and device
CN105183527A (en) * 2015-10-23 2015-12-23 上海斐讯数据通信技术有限公司 Equipment version upgrading method and system
WO2019037398A1 (en) * 2017-08-21 2019-02-28 深圳创维-Rgb电子有限公司 Application download management method, storage medium and smart device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1791102A (en) * 2003-12-18 2006-06-21 腾讯科技(深圳)有限公司 Network download tool

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1791102A (en) * 2003-12-18 2006-06-21 腾讯科技(深圳)有限公司 Network download tool

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793380A (en) * 2012-10-26 2014-05-14 北京新媒传信科技有限公司 Method and system for downloading picture in application
CN104572144A (en) * 2013-10-16 2015-04-29 北大方正集团有限公司 Application downloading method and device
CN105183527A (en) * 2015-10-23 2015-12-23 上海斐讯数据通信技术有限公司 Equipment version upgrading method and system
WO2019037398A1 (en) * 2017-08-21 2019-02-28 深圳创维-Rgb电子有限公司 Application download management method, storage medium and smart device

Also Published As

Publication number Publication date
CN102724326B (en) 2015-02-25

Similar Documents

Publication Publication Date Title
US11360833B2 (en) Method and system for transforming input data streams
CN103200026B (en) The upgrade method and system of firmware
CN102724326A (en) Method for all application programs to utilize uniform download interface under WINCE
CN1869932A (en) Computer processing system for implementing data update and data update method
CN101459528A (en) On-line up-grading method and system for network terminal device
CN103530097B (en) The implementation method and device of a kind of component across middleware platform
CN105227647A (en) Distributed software upgrading method
CN102314469A (en) Method for implementing cross-domain request callback
CN104461516A (en) Data processing method and device
CN101211360A (en) System and method for processing a plurality of data form of report forms data source
CN104166570B (en) A kind of method, equipment and the system of online updating file
CN102984055B (en) The soft reboot upgrade method of a kind of ISSU and equipment
CN105320577A (en) Data backup and recovery method, system and device
CN112114816A (en) Distributed compiling system and method
CN1750667A (en) Method for obtaining updating power information of mobile terminal
CN105718569A (en) Method, device and system for uploading compound document
CN105005481A (en) Method and system for processing workflow to-do task
CN104519011B (en) Semiconductor equipment manages system and its protocol conversion module, semiconductor equipment management method
CN107124446A (en) Application program method for down loading, server and terminal
CN102629200A (en) Processing method for Web system off-line using
CN102752312A (en) Method for decompressing swf files in batches
CN104468810A (en) Method for monitoring high-performance computing resource based on loongson platform
CN103440134A (en) Webkit kernel-based storage resource service local extension method
CN112948065B (en) Kubernetes-based scheduling automation system management device
CN101158908A (en) Equipment software upgrade automatic realizing system and 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
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 410205 Second Floor of Chuangfu Building, Changsha Science and Technology Achievement Conversion Base, No. 2 Lugu Lujing Road, Changsha High-tech Development Zone, Changsha City, Hunan Province

Patentee after: Hunan Xiaotaisaige Navigation Technology Co.,Ltd.

Address before: 410205 Second Floor of Chuangfu Building, Changsha Science and Technology Achievement Conversion Base, No. 2 Lugu Lujing Road, Changsha High-tech Development Zone, Changsha City, Hunan Province

Patentee before: Hunan Saige Navigation Technology Co.,Ltd.

CP01 Change in the name or title of a patent holder
TR01 Transfer of patent right

Effective date of registration: 20190627

Address after: Room 512 and 514, Huashen Building, 11 Ningnan Avenue, Yuhuatai District, Nanjing City, Jiangsu Province, 210000

Patentee after: JIANGSU KUAILU SAIGE CHESHENG NAVIGATION TECHNOLOGY Co.,Ltd.

Address before: 410205 Second Floor of Chuangfu Building, Changsha Science and Technology Achievement Conversion Base, No. 2 Lugu Lujing Road, Changsha High-tech Development Zone, Changsha City, Hunan Province

Patentee before: Hunan Xiaotaisaige Navigation Technology Co.,Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150225

CF01 Termination of patent right due to non-payment of annual fee