Background technology
Mobile communication portable terminal device (MS:MOBILE STATION) be a kind ofly can directly carry by the individual, whenever and wherever possible with the tip device of the other side's instant messaging, move freely in the service area (SERVICE AREA) that it can form at the corresponding base station (RAN:RADIO ACCESS NETWORK) of the system of registering by networking, under the control and supervision of mobile switching centre (MSC:MOBILE SWITCHING CENTER), utilize communication path and the other side of setting up by exchange (SWITCHING) to carry out radio communication simultaneously.
The time ratio that described portable terminal device is used to communicate by letter is shorter, and the most of the time is the standby for the communication of not knowing when to take place, carries that its utilization rate or utilization factor are generally lower.
For improving as above lower utilization rate or utilization factor, developed diversified value-added service, described value-added service is the exploitation of mobile communication service provider and provides that some is portable terminal device manufacturer exploitation and provides a bit.For example, manufacturer's exploitation and the value-added service that provides comprise camera, bluetooth, WLAN (wireless local area network), TV reception, radio, recreation, electronic calculator, calendar etc., and exploitation of mobile communication service provider and the value-added service that provides then comprise word message, image message, game on line, wireless Internet, caller identification etc.And described value-added service is also being continually developed and is being added new function, and its performance is also improving constantly and upgrading.
In described portable terminal device, multiple application program recorded and stored is respectively used when needed in assigned region, when making a mistake because of surrounding enviroment or during update functions, downloads and recorded and stored new application program accordingly.
Described a plurality of application program is according to both definite sequences, fitly recorded and stored is in the range of distribution of storer, when upgrading a part of application program or making a mistake, even minimum modification, also need to stop the portable terminal device function, again download whole application programs then and carry out record, have the problem that needs the long period.
Therefore, need a kind of technology of exploitation, when needs are new function to a part of application program update, when maybe needing to revise mistake, under the portable terminal device user mode, only dynamically are written into corresponding application, thereby save the application program update time.
With reference to the accompanying drawings, illustrate that the application program of portable terminal device is written into mode under the prior art.
Fig. 1 is the application records mode key diagram of the portable terminal device storer of prior art, and Fig. 2 is the application program loading method process flow diagram of the portable terminal device of prior art, all is used to illustrate prior art.
With reference to described Fig. 1, the application records mode of the portable terminal device storer of prior art is described, for example, from No. 0000 the address that storage address begins, record A-application program is from the next address of the end of record (EOR) of A-application program, record B-application program, from the next address of the end of record (EOR) of B-application program, record C-application program, in this way repeatedly.
Though have as upper type and to make the size or the capacity of the storer that a plurality of application programs occupy realize minimized advantage, but, in application-specific, make a mistake, in the time of need being written into again, or in application-specific, add new function when upgrading, need stop all operations of portable terminal device, all application programs to recorded and stored in the storer are carried out initialization, comprise the application program that to revise (MODIFY) or upgrade (UPDATE) interior, again download all application programs, carry out recorded and stored, therefore existing not only needs the long period, also can't use the problem of portable terminal device.
Below with reference to described Fig. 2, the program loading method of the portable terminal device of prior art is described.
In the time will downloading to mobile communication portable terminal device (seeing step S10) to application program, initialization (seeing step S20) is carried out in the range of distribution of the memory section that has for one in the portable terminal device, be used in the recorded and stored application program, download each application program (seeing step S30) that will download successively, as above successively a plurality of application programs of download according to both definite sequences fitly successively recording storage in the range of distribution of memory section (seeing step S40).
As above successively recorded and stored in a plurality of application programs of the memory section of portable terminal device,, judge whether again the application program (seeing step S50) of down loading updating when application-specific makes a mistake maybe will improve performance the time.
Judging in (step S50), in the time will upgrading corresponding program, then return the 2nd step (seeing step S20), the respective regions of the memory section of recorded and stored application program is all carried out initialization, download the series of steps of whole application programs and recorded and stored successively again.
Therefore, in the prior art that as above constitutes, in portable terminal device in a plurality of application programs of recorded and stored, maybe need to improve performance and when upgrading, the application program of former recorded and stored is all carried out initialization when application-specific makes a mistake, download again and comprise all application programs of upgrading application program, recorded and stored is in assigned region successively, therefore, the problem of existence is very loaded down with trivial details, needs the long period.
In addition, as above all application programs are carried out initialization, download new application program and recorded and stored, so, other function of portable terminal device, the problem that existence may waste an opportunity can't be used during this period.
Summary of the invention
The object of the present invention is to provide a kind of programme dynamic loading device and method of portable terminal device, in the storer of portable terminal device, divide and be used in the zone of recorded and stored application program and unnecessary zone, carry out recorded and stored, the address of managing application program separately and being write down, when application-specific makes a mistake or when improving function and will upgrade, under the state of other application work, the dynamic download application program is carried out recorded and stored to assigned region.
For achieving the above object, the invention provides: a kind of programme dynamic loading device of portable terminal device, it is characterized in that, comprise: control part, the integral body that monitors portable terminal device is used, command signal to the key region portion input is analyzed, and intercepts and captures according to the analysis of command signal and activates interface portion, comprises application's data with the serial mode input; Activate address management department, the unnecessary address number that management has been added; Activate memory section, recorded and stored is in the zone of appointment; Activate and dynamically be written into portion, under other application program user mode, dynamically be written into the zone of the appointment of memory section, upgrade recorded and stored.
The present invention also provides: a kind of programme dynamic loading device of portable terminal device, it is characterized in that, and comprise following several sections: memory section, using the required application records of portable terminal device to be stored in assigned region, upgrade, export; Control part is connected to described memory section, adds unnecessary zone for each application program, carries out record in assigned region, monitors dynamically to be written under user mode; Interface portion is connected to described control part, with the application program of serial mode input download; Address administration portion is connected to described control part, and record management is carried out in the address of distributing to each application program of recorded and stored in the memory section; Dynamically be written into portion, be connected to described control part, use at portable terminal device under the state of other application program, the application program that dynamically is written into memory section is upgraded; Key region portion is connected to described control part, the command signal that command signal that input control portable terminal device uses and control dynamically are written into.
Described address administration portion activates under the control of described control part, takies the assigned region of described memory section, and start address and end address, the redundant address of each application program of institute's recorded and stored carried out recorded and stored management and output.
The described portion that dynamically is written into activates under the control of described control part, normally use at portable terminal device under the state of application program of memory section, in the addresses distributed scope of obsolete application program, dynamically be written into the application program of serial mode input and upgrade.
Described memory section activates under the control of described control part, according to address information, uses the required application's data recorded and stored of mobile communication and value-added service in the zone of distributing appointment comprising, and upgrades and exports.
Described interface portion activates under the control of described control part, and with the USB (universal serial bus) mode or the universal asynchronous reception send mode of serial mode, output comprises application's data.
Described control part monitors following series of steps according to the command signal from described key region portion input, promptly, activate interface portion, the address number that the program data record that inserts with serial mode is stored in the memory section of the address administration portion output line output of going forward side by side, by the portion that dynamically is written into that activates, dynamically be written into the routine data of recorded and stored in the address number of appointment of memory section.
The present invention also provides: the dynamic loading method of a kind of program of portable terminal device, it is characterized in that, comprise the steps: when downloading a plurality of programs and recorded and stored in order to use portable terminal device, be the unnecessary address of each application assigned, with the address area of serial mode input recorded and stored in the appointment of initialized memory section; When upgrading a part of application program, under the normal state that uses of other application program, the application program with the serial mode input dynamically is written into appropriate address.
The present invention provides again: the dynamic loading method of a kind of program of portable terminal device is characterized in that comprise following several steps: the beginning step under the supervision of portable terminal device control part, when downloading routine data, judges whether dynamically to be written into; Be written into step, be written into, then confirm the address that to upgrade, dynamically to be written into the addresses distributed that application program update that mode imports is recorded in storer if described step is judged as dynamically;
Input step is not dynamically to be written into if described beginning step is judged, then memory section is carried out initialization, adds for the corresponding application programs size and distributes unnecessary zone; Recording step is distributed to each address number of application program and is carried out record management separately to described step, download successively with serial mode, is stored in the appropriate address number of memory area.
Described beginning step comprises the steps: that the control part of described portable terminal device judges whether that a plurality of application records that will download are kept at the step of addresses distributed number; When judged result is the down load application program, judge whether under other application program user mode the step of upgrading for a part of application program of selecting that dynamically is written into.
Described be written into step comprise the steps: when described beginning step judged result be when upgrading a part of application program and dynamically be written into, activate address management department, confirm the step of the address number of corresponding application programs; Normally use when portable terminal device under the state of other application program, control part is in the application program that will upgrade with the serial mode input, according to the appropriate address of the application program of confirming number, dynamically be written into the memory section zone of appointment, upgrade the step of recorded and stored.
Described input step comprise the steps: when described beginning step judged result when dynamically not being written into application program, the respective regions of the memory section of recorded and stored application program is carried out initialized step; Size information to each application program of control part input is analyzed, and appends the step of distributing unnecessary zone.
Described recording step comprises the steps: that the control part of described input step is distributing to the address of each application program and the step that redundant address information Input Address management department carries out record management in addition; Control part is downloaded a plurality of application programs successively with serial mode, according to addresses distributed number, application records is stored in the step in zone of the appointment of memory section.
Beneficial effect of the present invention is, under the normal state that uses of certain applications program in the portable terminal device, only control the address of corresponding application programs, the application program that needs upgrade is carried out dynamic download, can carry out application program update rapidly, improve service quality and reliability.
Embodiment
The programme dynamic loading device and the method for portable terminal device of the present invention are described with reference to the accompanying drawings.
Fig. 3 is the programme dynamic loading device function constitution map of portable terminal device of the present invention, Fig. 4 is the application records mode key diagram of portable terminal device storer of the present invention, Fig. 5 is the dynamic loading method process flow diagram of the program of portable terminal device of the present invention, all is used in explanation the present invention.
At first, the programme dynamic loading device of portable terminal device of the present invention is described with reference to described Fig. 3.Control part uses the integral body of mobile communication portable terminal device and monitors, the command signal of key region portion input is analyzed, and according to the command signal analysis result is activated interface portion, comprises application's data with the serial mode input; Activate address management department, the unnecessary address number that management has been added; Activate memory section, recorded and stored is in the zone of appointment; Activate and dynamically be written into portion, under other application program user mode, dynamically be written into the zone of the appointment of memory section, upgrade recorded and stored.
The portable terminal device programme dynamic loading device of described formation comprises interface portion 100, control part 110, memory section 120, key region portion 130, dynamically is written into portion 140, address administration portion 150.Wherein, interface portion 100 is to use portable terminal device required, is used in the application program of downloading with the serial mode input.Interface portion 100 is under state of activation, and with USB (universal serial bus) (USB) mode or universal asynchronous reception transmission (UART) mode of serial mode, input comprises application's data.
Control part 110 is connected interface portion 100, is used in to each application program to add unnecessary zone, carries out record in assigned region, at other application program normal operating condition of portable terminal device, monitors dynamically to be written into.Control part 110 monitors following action according to the command signal of key region portion 130 input: activate interface portion 100, with the program data record of serial mode input in the address number of the memory section 120 of the address administration portion 150 outputs line output of going forward side by side; Dynamically be written into the routine data of recorded and stored in the address number of the appointment of memory section 120 by the portion that dynamically is written into 140 that activates.
Memory section 120 is connected to control part 110, is used in a plurality of application records are kept at assigned region, upgrades and exports.Memory section 120 is according to address information, comprising the appointed area that the application's data of using mobile communication and value-added service records distribution, upgrades and exports.
Key region portion 130 is connected to control part 110, the command signal that command signal that input control portable terminal device uses and control dynamically are written into.
Dynamically be written into the f40 of portion and be connected to control part 110, be under the normal operating condition when other application program of portable terminal device, dynamically be written into the application program that portion 140 dynamically is written into memory section 120 and upgrade.Dynamically be written into portion 140 under the application program normal operating condition of portable terminal device memory section,, dynamically be written into the application program of serial mode input and upgrade at the address realm of unallocated application program.
Address administration portion 150 is connected to control part 110, and record management is carried out in the address of each application program that is used in recorded and stored of distribution in the memory section 120.The start address of each application program of the range of distribution recorded and stored that 150 pairs in address administration portion is that be activated, take memory section 120 and end address, redundant address carry out other recorded and stored and manage and export.
With reference to the accompanying drawings, describe the application program dynamic loading device of the portable terminal device of the present invention that as above constitutes in detail.
The control part 110 control key region portion 130 of mobile communication portable terminal device, the command signal that inserts is analyzed, judge whether to download and comprise application's data, the application program of judge downloading is to use the required all application programs of portable terminal device, still normally uses under the state of other application program at the specific program that only dynamically is written into the appointment that is used to upgrade at portable terminal device.
Judgement for control part 110, if control part 110 judged results are to include all required application's data recorded and stored of use portable terminal device in assigned region with what download, then activate control interface portion 100, input comprises: the corresponding information of the size of a plurality of application programs that import, information to input is analyzed, activate control address management department 150, manage following action, promptly, for the zone is appended in the memory size distribution that each application program is required, the address number that is used for specifying the memory size of as above appending distribution and normal memory size separately recorded and stored in address administration portion 150, the line output of going forward side by side.
Promptly, address administration portion 150 following action of management in the control of control part 110 with under monitoring, that is, and by each application program unit, start-of-record address number that each application program of recorded and stored begins and end address number, append the unnecessary address number of distribution, export and upgrade.
110 pairs of memory section 120 recorded and stored of control part are used the zone of APPLICATION application program and are carried out initialization, adopt USB (universal serial bus) (USB:UNIVERSAL SERIALBUS) or universal asynchronous reception to send the serial mode of (UART:UNIVERSAL ASYNCHRONOUSRECEIVE/TRANSMIT) mode by interface portion 100, import corresponding a plurality of application program successively, successively the application records with serial mode input is kept at and the assigned address of the address number corresponding memory portion 120 of address administration portion 150 outputs number respectively, when in case of necessity, the application program of output record.
Address number recorded and stored according to 150 outputs of address management department is carried out recorded and stored in the application program of the range of distribution of memory section 120 mode shown in Figure 4 as described.
Promptly, as described shown in the example of Fig. 4, in the zone of appointment, the unnecessary zone of appending distribution is the renewal (UPDATE) for application program and revises (MODIFY) etc. and prepare the A-application program according to the required start-of-record address number of the recorded and stored of application program and end address recorded and stored.Other application programs such as B-application program, C-application program have the unnecessary memory area that appends distribution also in the same manner.
As mentioned above, for all application programs of portable terminal device have been prepared the interpolation assigned region, therefore, when upgrading or revise, corresponding application programs can use the unnecessary memory area of these interpolations.
The address number of 150 pairs of each application programs of address administration portion recorded and stored in the range of distribution of memory section 120 is carried out record management and output, therefore, can only dynamically be written into the corresponding application that (DYNAMIC LOAD) needs renewal or revise.
Use the surrounding enviroment of portable terminal device can't limit the place, in particular place, electric spark, high-intensity magnetic field, static, electromagnetic wave etc. may flow into the memory section 120 of portable terminal device, or respond to its generation, or cause information to run off.Under as above environment, the various application programs that normal recordings is preserved in the memory section 120 may make a mistake (ERROR), or operational failure takes place.
In addition, each application program is further to improve performance, carries out edition upgrading (VERSION UP), when generation as above improves or makes a mistake, need change or revise corresponding program.
If the control command that key region portion 130 inputs require the renewal redaction or mistake is made amendment, 110 of control parts activate interface portion 100, the information of the application program that will upgrade with serial mode input, information to input is analyzed, activate address management department 150 and search for, confirm the address number of corresponding application programs.
Control part 110 dynamically is written into portion 140 to the input of the address number of the application program of confirming, dynamically being written into portion 140 dynamically is written under the control of control part 110, promptly, in the user mode of other application program in keeping use, specify the address of the application program that needs renewal, the application program of serial mode input is replaced the application program of memory section 120.
Therefore, as above the present invention of Gou Chenging distributes unnecessary zone for appending with each application program of serial mode input, address administration portion 150 is in the address of record management assigned region separately, with the address number of its recorded and stored in the appointment of memory section 120.
When needs changes or revise or when upgrading the application program of as above recorded and stored, the input of appropriate address information dynamically is written into portion 140, dynamically be written into portion 140 when keeping other application program user mode, upgrade dynamically being written into of application program, thereby have the simple, convenient and rapid advantage of renewal of the application program of making.
Below with reference to described Fig. 5, the dynamic loading method of application program of portable terminal device of the present invention is described.
This method is made of following steps: when downloading a plurality of application programs and recorded and stored for use mobile communication portable terminal device, be the unnecessary address of each application assigned, import with serial mode, recorded and stored is in the address area through the appointment of initialized memory section, when upgrading a part of application program, under the normal state that uses of other application program, the application program with the serial mode input dynamically is written into appropriate address.
The dynamic loading method of portable terminal device program comprises the beginning step, is written into step, input step, recording step.Wherein, the beginning step is under the supervision of portable terminal device control part, when downloading routine data, judges whether dynamically to be written into.The beginning step specifically comprises following several steps: judge whether to download (DOWNLOAD) a plurality of application programs, recorded and stored is at the step S100 of addresses distributed number; When described step S100 judged result is the down load application program, judge whether under other application program user mode, dynamically be written into the step S110 of DYNAMIC LOAD for a part of application program of upgrading the UPDATE selection.
Being written into step is if it is dynamically to be written into that described beginning step is judged as, and then confirms the address that will upgrade, dynamically to be written into the addresses distributed that application program update that mode imports records storer.Be written into step and comprise the steps: to activate address management department 150, confirm the step S120 of the address number of corresponding application programs when when upgrading a part of application program and dynamically be written into; Control part normally uses under the state of other application program at portable terminal device, the application program (APPLICATION PROGRAM) that will upgrade with serial (SERIAL) mode input, according to the appropriate address of the application program of confirming number, dynamically be written into memory section 120 zones of appointment, upgrade the step S130 of recorded and stored.
Input step is if described beginning step is not judged as dynamically to be written into, and then memory section is carried out initialization, appends for corresponding application programs and distributes unnecessary zone.Input step comprises the steps: when dynamically not being written into application program, and the respective regions of memory section 120 recorded and stored application programs is carried out initialized step S140; The size information of control part 110 each application program of input is also analyzed, and appends the step 150 of distributing unnecessary zone.
Recording step is that each address number of the application program of distributing to described input step is carried out record management in addition, downloads successively with serial mode, is saved in the appropriate address number of memory area.Recording step comprises the steps: that control part is distributing to the address of each application program and the step S160 that redundant address information access address management department carries out record management in addition; Control part 110 is downloaded a plurality of application programs successively with serial mode, and according to addresses distributed number, recorded and stored is in the step in the zone of the appointment of memory section 120.
The dynamic loading method of program of the portable terminal device of the present invention that as above constitutes is described with reference to the accompanying drawings.
The control part 110 of mobile communication portable terminal device judges whether to download various application programs and recorded and stored at assigned region (seeing step S100), when the judged result of described step S100 is the down load application program, judge whether to upgrade dynamically being written into of a part of application program (seeing step S110).
When the judged result of described step S110 is when downloading all application programs, control part 110 carries out initialization (seeing step S 140) with the respective regions of the memory section 120 of recorded and stored application program when activating interface portion 100 and memory section 120.
Control part 110 activates control address management department 150, for the required memory area of each application program of downloading input distributes the unnecessary zone (seeing step S150) of appending, specify each application program will be in the address number of the range of distribution of memory section 120 recorded and stored, in address administration portion 150, write down the address number information of appointment separately and manage, simultaneously, to control part 110 outputs (seeing step S160).Control part 110 is according to the address number information of the appointment that inserts from address administration portion, a plurality of application programs that interface portion is downloaded input successively with serial mode successively recorded and stored in the zone of the appointment of memory section (seeing step S170).
As above for using the required unnecessary zone of all application assigned, behind the zone of the appointment of memory section, portable terminal device just can use the service of selecting in a plurality of value-added services that comprise the mobile communication service with its recorded and stored.
Application-specific when the portable terminal device that as above normally uses in order to upgrade, or application-specific makes a mistake, in order to upgrade, in the time of will under portable terminal device normally uses the state of other application program, carrying out dynamic download (seeing step S110), control part 110 activates control address management department, affirmation will promptly, confirm to comprise the regional address number (seeing step S120) that is used for unnecessary region allocation dynamically to be written into the address of the corresponding application programs that mode upgrades.
The interface portion 100 of control part 110 by activating, the corresponding application that is used to upgrade with serial mode input, activate control and dynamically be written into portion 140, normally use at portable terminal device under the state of other application program, the application program of upgrading dynamically is loaded into the addresses distributed zone (seeing step S130) of memory section 120.
Therefore, the present invention has following advantage, that is, append the unnecessary zone of distribution for each application program, recorded and stored is in memory section 120,150 pairs in the address administration portion as above address of each application program of recorded and stored manages, when upgrading application-specific (APPLICATION PROGRAM), control activates and dynamically is written into portion 140, normally uses at portable terminal device under the state of other application program, dynamically be written into, upgrade the application program of the address of appointment.
In sum, the present invention has following effect, promptly, during the content of a plurality of application programs that in upgrading portable terminal device, constitute, under the normal state that uses of other application program, only control the address of corresponding application programs, carry out dynamic download, therefore can carry out application program update rapidly.
In addition, the present invention also has the convenient effect in the following use, that is, can be the application modification of portable terminal device the renewal application program that function is improved immediately, has therefore improved service quality and reliability, has improved preference degree.
Above embodiment only is used to describe implementation process of the present invention in detail, is not to be used to limit protection scope of the present invention.