Summary of the invention
Purpose of the present invention promptly is to provide a kind of update method of application software of wireless terminal device, making wireless terminal device carry out application software by air interface downloads, do not need labor intensive to operate, save time to reach, the purpose of manpower and money to the scene.
Reach the update method of application software of the wireless terminal device of foregoing invention purpose, be to utilize wireless terminal device to access the ability of radio data network, carry out application software by air interface and download, and carry out the renewal of application software by wireless terminal device automatically.Wherein the mode of this application software download is to build at wireless terminal device to put an information sending and receiving module, it is online to be responsible for setting up the radio data network air interface, reception is from the software upgrading order and the program code to be updated of server, and transmission is upgraded the result to server.This radio data network has the data information transfer function, can carry out the transmission of wireless data data by air interface and wireless terminal device, and can carry out the data information transmission by internet and server.And server is responsible for providing the communication information between software upgrading order setting, transmission and reception and the wireless terminal device, and downloads program code to be updated and carry out software upgrading to wireless terminal device.
After the software upgrading order and program code to be updated of wireless terminal device reception from server, promptly carry out the renewal of application software automatically, its method is to build at wireless terminal device to put a control module and a program code memory modules, this control module is responsible for the program code configuration to be updated that the information sending and receiving module is received and is stored into refresh routine code memory module, and carries out automatic updating steps; This program code memory modules is responsible for store applications original program code and program code to be updated.
The update method of the application software of wireless terminal device proposed by the invention when comparing mutually with other prior art, has more and gets the row advantage ready:
1, the present invention can allow wireless terminal device increase or revise the needed function of user automatically and flexibly newly.
2, the present invention can utilize the limited system resource of wireless terminal device fully, makes the application software function extend to the limit of system, has significantly promoted the use value of wireless terminal device.
Embodiment
See also Fig. 1, Fig. 1 is the system architecture diagram of the update method of the application software of implementing wireless terminal device of the present invention, and its composition comprises:wireless terminal device 1,server 50 and as thewireless network module 40 of wireless transmission interface.Wherein thiswireless terminal device 1 comprises information sending and receivingmodule 10,control module 20 and program code memory modules 30.Information sending and receivingmodule 10 is responsible for setting up wireless network towireless network module 40, and to carry out wireless data online, the software upgrading order ofreception server 50 and program code to be updated, and transmit and upgrade the result and giveserver 50;Control module 20 is responsible for the program code configuration to be updated that information sending and receivingmodule 10 is received and is stored into refresh routine code memory module; Programcode memory modules 30 is responsible for store applications original program code and program code to be updated.And thiswireless network module 40 has the data information transfer function, can carry out the transmission of wireless data data by air interface andwireless terminal device 1, and can carry out the data information transmission by internet and server 50.Thisserver 50 is responsible for providing the communication information between software upgrading order setting, transmission and reception and thewireless terminal device 1, and downloads program code to be updated and carry out the renewal of software forwireless terminal device 1.
See also shown in the figure two, be the flow chart of the update method of the application software of implementing wireless terminal device of the present invention, its step comprises:
Step 1:server 50 is wanted lastest imformation with application software earlier, is sent towireless terminal device 1 bywireless network module 40;
Step 2: 1 information sending and receivingmodule 10 in the wireless terminal device, receive lastest imformation after,circular control module 20 prepare to be upgraded application software;
Step 3: information sending and receivingmodule 10 sends wireless messages,notification server 50, and wireless terminal device receives more new data in wait, and sets up the wireless network channel;
Step 4:server 50 bywireless network module 40, is done wireless transmission with the package transfer mode with the more new data of application software;
Step 5: information sending and receivingmodule 10 is combined into more new data of application software one by one with the package of receiving, passes tocontrol module 20;
Step 6:control module 20 is according to new data more, and control programcode memory module 30 is carried out the renewal operation of application software;
Step 7: treat that programcode memory modules 30 is finished and upgrade the Application Software Program code,control module 20 restarts the application software after the renewal.
After the software upgrading order and program code to be updated of wireless terminal device reception fromserver 50, promptly carry out the renewal of application software automatically, and carry out automatic updating steps, and programcode memory modules 30, the program code after the renewal of responsible store applications.
As an alternative, whether information sending and receivingmodule 10 can initiatively need to carry out the renewal of application software to server lookup termly/aperiodically.If inquiry is found to carry out the renewal of application software, then begin to carry out above-mentioned step of updating.
See also shown in Figure 3, program code memory modules allocation plan for the update method of the application software of implementing wireless terminal device of the present invention, its configuration mode is that programcode memory modules 30 is cut into n memory block (Bank), each memory block size is a N byte, this n memory block can be divided into a common memory block 0 (Bank 0) and n-1 memory block, from this n-1 memory block, choose m-1 memory block more arbitrarily, form a memory block group.All there are its numbering (IBANK) and program code addressing space (internal address) thereof in each memory block group.This program code addressing space is the value of taking advantage of of m memory block and block size, total m * N byte, whereincommon memory block 0 is addressed in the 0th~(N-1) byte, and program code address N~(m * N-1) memory configurations of byte then is to select index PSBANK to decide according to program code space block to select which memory block group.(n-1, m-1) setting of kind memory block group is available, wherein n 〉=2m and there is IBANK=C in this memory block group.
See also shown in Figure 4, program code update method schematic diagram for the update method of the application software of implementing wireless terminal device of the present invention, at first programcode memory modules 30 is configured to the refresh routinecode memory module 320 that stores thememory modules 310 of original program code and store program code to be updated bycontrol module 20, whereinmemory modules 310 comprises the C (n-1 thatcommon memory block 0 reaches from the program code memory modules, m-1) plant a certain memory block group (being made as the group of IBANK=P) that chooses in the memory block group at this, its program code space block selects index PSBANK to be P, and the refreshroutine code 314 of application software can be stored in the either memory block among the P ofmemory block group 312.
Wherein refresh routinecode memory module 320 comprises and gets rid ofmemory block 0 and the P312 of memory block group n-m memory block in addition,program code 322 to be updated then is stored in the either memory block in the Q of memory block group (group of IBANK=Q) 324 and all the other n-2m+1 memory block, wherein the Q ofmemory block group 324 chooses the memory block group that m-1 memory block formed from n-m memory block of refresh routinecode memory module 320, and the refreshroutine code 326 of application software can be stored in the either memory block among the Q ofmemory block group 324.
Control module 20 is then promptly carried out step of updating after program code to be updated is disposed, and at first chooses the Q of memory block group that is made up of m-1 memory block in refresh routinecode memory module 320
324, and in refresh routinecode memory module 320, choosememory block 328 in remaining n-2m+1 memory block,control module 20 is stored inmemory field 328 with the top n byte ofprogram code 322 to be updated, and all the other bytes ofprogram code 322 to be updated are stored in the Q ofmemory block group 324, after successfully having stored whole program codes to be updated 322, the refreshroutine code 314 of carrying out application software copies tomemory block 328 in theprogram code 322 to be updated thecommon memory block 0 oforiginal program code 310, and select index PSBANK to change to Q the program code space block oforiginal program code 310 by P, restart application software, promptly finish the refresh routine of application software.
See also Fig. 5 and shown in Figure 6, Fig. 5 and Fig. 6 are respectively the configuration of program code memory modules and the program code update method of the update method of the application software of implementing wireless terminal device of the present invention and implement illustration, present embodiment is that programcode memory modules 80 is cut into 4 memory blocks (Bank), each memory block size is a 32k byte, total C (3,1)=3 kind of memory block group is available, whereinmemory block group 1 710 comprisesmemory block 1,memory block group 2 720 comprisesmemory block 2, andmemory block group 3 730 comprisesmemory block 3.
This programcode memory modules 80 comprises anoriginal program code 810 and a refresh routine code memory module 820.Original program code 810 is stored incommon memory block 0 and thememory block group 1 812, the program code space block selection index PSBANK that isoriginal program code 810 is 1, and wherein application software refreshroutine code 814 is stored in thememory block 1 of memory block group 1812.Refresh routinecode memory module 820 comprises 2 memory blocks,program code 822 wherein to be updated is stored in memory block group 3824 and thememory block 2, and wherein the refreshroutine code 826 of application software is stored in thememory block 3 of memory block group 3824.
Control module 20 is chosen memory block group 3824 in refresh routinecode memory module 820, and in refresh routinecode memory module 820 remaining memory blocks, choosememory block 2, and preceding 32k byte that will thisprogram code 822 to be updated is stored inmemory block 2, all the other bytes of thisprogram code 822 to be updated are stored in thememory block 3 of memory block group 3824, after successfully having stored whole program codes to be updated 822, carry out thecommon memory block 0 that application software refreshroutine code 814 copies to thememory block 2 in theprogram code 822 to be updatedoriginal program code 810, and select index PSBANK to change to 3 the program code space block oforiginal program code 810 by 1, restart application software, promptly finish the application software refresh routine.
But above-listed detailed description is at the specifying an of embodiment of the present invention, and for this embodiment is not in order to limiting claim of the present invention, does not allly break away from the equivalence that skill spirit of the present invention does and implements or change, all should be contained in the claim of the present invention.