Embodiment
At first with reference to Fig. 1, it has shown the outward appearance of the telephone device 50 of tool software upgrading function of the present invention.As shown in the figure, these telephone device 50 phones have a telephone set 49 and a flash memory card 21; This telephone set 49 its lateral parts have a flash memory card 21 card slot draw-in groove 490. so that a telephone set 49 and a flash memory card 21 (being shown in Fig. 2) can link together.And insert telephone set 49 behind the flash memory card 21, can transmit download message and program via telephone wire, and can be with transmission and the information of coming shows.
Fig. 2 is a block schematic diagram, has wherein shown the basic structure of the telephone device of tool software upgrading function of the present invention; With annexation between each parts of telephone set basic structure that this telephone device is described and the annexation between telephone set basic structure and flash memory card.
At this, correlation between each parts of each basic structure of the telephone set 49 of telephone device 50 and telephone set 49 are described as follows with the annexation of flash memory card 21.
Telephone set 49 comprises a central processing unit 11, one read-only memorys 12, one random access memory 13, all die change group 14, one phone basic functional units 15, and a modulator-demodulator 16.
This central processing unit 11 as CPU to be connected with each parts, this central processing unit 11 mainly is system program and the function program in order to execution telephone device 50, and the row data communication of going forward side by side is handled, patrolled oar and calculation process, coordinates the control and the coordination of each connected parts of control and treatment.When flash memory card 21 do not peg graft with telephone set 49 or flash memory card 21 in when there is no new edition telephone set upgrade software program, system program and function program that the telephone sets 49 that central processing unit 11 will be carried out storages in the read-only memory 12 set when originally dispatching from the factory; If the telephone set upgrade software program of new edition is arranged in this flash memory card 21, then central processing unit 11 will be carried out the new edition telephone set upgrade software program in this flash memory card 21 and not carry out original software program in the telephone set read-only memory 12.But when this telephone device 50 is carried out download action, central processing unit 11 will be carried out downloading of tool download function in the read-only memory 12, to carry out the download action of telephone device 50.
This read-only memory 12 is with central processing unit 11 and switch module 14 couplings, the system program and the function program of the telephone set that set when the stored telephone machine originally dispatched from the factory in this read-only memory 12, only can read the program in the read-only memory 12 and can not do, but stored programs can not disappear because of the interruption of power supply supply in this read-only memory 12 its moving strength that carry out write-in program.
Random access memory 13 has the access memory of expansion zone and directly is coupled with central processing unit 11; Running parameter and userspersonal information when this random access memory 13 is worked in order to store central processing unit 11, and when downloading as the odd-job district, can do random access memory 13 and repeat to read and write activity, but program in this random access memory 13 or information can disappear because of the interruption of power supply supply.
This switches module 14 and also directly is coupled with central processing unit 11, read-only memory 12 and flash memory card 21 respectively.This switches module 14 is one to select the signal switch control unit, makes telephone set 49 select to carry out original program in the read-only memorys 12 by control signal SW1, SW2 and still carries out program in the flash memory card 21; Switch-over control signal SW1 and SW2 are respectively the address selecting signal of read-only memory 12 and flash memory card 21, and binary signal is mutual anti-phase relation.
This telephone set basic functional units 15 and central processing unit 11 couplings have that basic telephone set dials, dials and connects, hangs up, functions such as conversation and jingle bell.
This modulator-demodulator 16 also is coupled with central processing unit 11, and the modulation and demodulation of the analog and digital signal of responsible handle data communication, make telephone device 50 carry out data communication and download or information via telephone wire and network system and far-end server.
Flash memory card 21 in the telephone device 50, the program, information that can download new edition telephone set upgrade software program in the far-end server, difference in functionality by the download action of carrying out telephone set 49 and via telephone wire are in this flash memory card 21.
With reference to Fig. 3, the situation that the telephone device of tool software upgrading function of the present invention is connected with the network of telephone wire, LAN, far-end server is described.The multifunctional telephone device 50 of tool software upgrading function of the present invention is after flash memory card 21 inserts the draw-in groove 490 of telephone set 49, this telephone device 50 in use, connect a telephone wire 51 and again via local area network (LAN) 52, so that multifunctional telephone device 50 can be by network connectivity with far-end server 53.Because the write activity that can carry out repeatedly this flash memory card 21, so the program of the new edition telephone set upgrade software program that can repeatedly be provided from far-end server 53, difference in functionality, message transmission are to telephone device 50 and can be with in the program of this new edition telephone set upgrade software program, difference in functionality, the download of information flash memory card 21 in the telephone device 50.Can store program, the information material of new edition telephone set upgrade software program and difference in functionality in the flash memory card 21 in this telephone device 50 simultaneously, think the program/information of new film telephone set upgrade software program/difference in functionality that this telephone device 50 is different, reach the multifunction purpose that the telephone device software upgrading function is provided.
Fig. 4 shows the download action of telephone device 50 of tool software upgrading function of the present invention and the operation sequence of change action, download new edition telephone set upgrade software program, the program of difference in functionality, the information that far-end server 53 is provided in order to the telephone device 50 that this tool software upgrading function is described, and after downloading successfully, the switching read-only memory 12 of telephone device 50 and the operation sequence flow process of flash memory card 21.
As shown in Figure 4, the telephone device 50 of tool software upgrading function of the present invention is after telephone set 49 energisings, at first carry out the system initialization of telephone device 50, there is no any version telephone set software program in the flash memory card 21 at this moment, make SW1 signal effectively (working), system promptly carries out telephone sets 49 in the read-only memory 12 when dispatching from the factory default system program and function program.If user not selecting system carries out downloading when carrying out download action in the read-only memory 12, then system will carry out system program and the function program that is presetted when dispatching from the factory in the read-only memory 12; But if user's selecting system is carried out and to be downloaded when carrying out download action the action below then system will carry out in the read-only memory 12:
At first with the address, expansion access memory block of random access memory 13 in flash memory card 21 map addresses telephone devices 50 systems, so that flash memory card 21 employed address spaces are different from the address space in the read-only memory 12, in system carries out read-only memory 12 during the program of tool download function, can write in the flash memory card 21 and (also write expansion access memory block) downloading the program of resulting new edition telephone set software program, difference in functionality or information.This download action is via the modulator-demodulator in the telephone set 49 16 and telephone wire 51, LAN 52, make this telephone device 50 and far-end server 53 network connectivities, so as with the program of the new edition telephone set upgrade software program in the far-end server 53, difference in functionality or download of information in flash memory card 21.After this download action finishes, will check error detection to the new edition telephone set upgrade software program of having downloaded, the program or the information of difference in functionality, whether successful to judge download action; If check failure, then carry out the program in the read-only memory 12 again; If check success, then show success in the sixth of the twelve Earthly Branches and inerrably the program of new edition telephone set upgrade software program, difference in functionality or download of information in flash memory card 21.After download action is finished, will carry out change action, by the operation sequence flow process of the switching read-only memory 12 that carries out next telephone device 50 with flash memory card 21.
In the operation sequence flow process of the switching read-only memory 12 of this telephone device 50 and flash memory card 21, at first be that an address switchover program is copied in the zone in telephone set 49 random access memory 13.This action is that a key action purpose can not make when being to switch SW1, SW2 signal telephone set 49 systems when machine (deadlock).Telephone set 49 systems one of carry out in the random access memory 13 the address switchover program in the zone then, mat switches module 14 makes signal SW1 invalid, signal SW2 is effective, because this moment, the address switchover program was one of in random access memory 13 in the zone, so can not have influence on the execution of changeover program when switching SW1, SW2 signal.After change action is finished, with the map addresses of flash memory card 21 on the address space identical with read-only memory 13, owing to switched to flash memory card 21 zones, so telephone set 49 systems will carry out the program in the flash memory card 21, thereby so far, the program of whole telephone set software program escalation process or download difference in functionality or information process are promptly accused and are finished.
If telephone device 50 does not cut off the power supply, then will carry out new edition telephone set upgrade software or program in the flash memory card 21 always.If restart after telephone device 50 outages, there are new edition telephone set upgrade software after the download or program and system to detect when in the draw-in groove 490 flash memory card 21 being arranged in the flash memory card 21, new edition telephone set upgrade software or the program of looking in the flash memory card 21 will be picked up, so that there is the version number of telephone set software or program in a certain zone in flash memory card 21, the upgraded edition this shop of each software or program can be upgraded thereupon; If new edition, then telephone set system goes to new edition telephone set upgrade software or the program of carrying out in the flash memory card 21, and the change action among this address change action and Fig. 4 during download is identical.When software in the execution flash memory card 21 or program, can operate the random access memory 13 in the telephone set 49 equally, also can other zone with the non-store electricity phone software of canned data unloading in the random access memory 13 to the flash memory card 21 in.But when user's desire was carried out download action, then telephone set system still must be carried out downloading in the read-only memory 12, to carry out download action.
For example, when the user is interesting for the stock market information on the network, and when wishing to show stock market informations by this telephone device 50, the user can download network on about in the software of the quotations on the stock market flash memory card 21 in the telephone device 50, the software program that utilizes this telephone device 50 to carry out after downloading, and utilize this telephone device 50 to reach the standard grade to be connected, and can on telephone set 49, demonstrate quotations on the stock market with the dialing of network.Owing to use the flash memory card 21 that repeatedly to read and to write but not read-only memory 12, thereby the user can repeatedly download (or information) according to actual demand in flash memory card 21, utilizes this telephone device 50 to reach the purpose of software upgrading according to actual needs.
Fig. 5 has shown the download action among the embodiment of telephone device of tool software upgrading function of the present invention and the operation sequence of change action.This flow process is in order to illustrate after telephone set 49 inserts flash memory cards 21, and when there is no any version telephone set software program in this flash memory card 21, download stock market information program and address switchover action related procedure relevant for carrying out in the whole telephone set system:
At first, behind telephone set 49 power connections, carry out the initialization of telephone set system, owing to inserted flash memory card 21 in telephone set 49 draw-in grooves 490, so telephone set system will detect the program in the flash memory card 21 or the version of telephone set software program, because of there is no any version telephone set software program in this flash memory card 21, carry out the program that is presetted when dispatching from the factory in the read-only memory 12 so switch effective SW1 signal military order central processing unit 11 of module 14, its step is described as follows;
Steps A: the user selects whether to carry out download action, carries out the program of tool download function in the read-only memory 12;
If not, the action that then do not download, telephone set system will be carried out the program in the read-only memory 12;
If yes, then the user imports the order that downloads, and telephone set system will be carried out the program of tool download function in the read-only memory 12;
Step B: with the expansion access memory district of the map addresses in the flash memory card 21 in random access memory 13, (400000~7FFFFFH) with to expand the access memory address space identical to make the address space of this flash memory card 21, and be different from the address space of read-only memory 12, just telephone set system will be sought address and carry out write activity to flash memory card 21 this sector address space;
Step C: the telephone number that the network of input LAN 52 is reached the standard grade and dialled, utilize modulator-demodulator 16 in the telephone set 49 to carry out data communication after waiting to put through, can make telephone set 49 and far-end server 53 network connectivities via telephone wire 51, LAN 52, treat to download after line is finished the stock market information program in the far-end server 53;
Step D: the stock market information program that will come from far-end server 53 downloads writes the flash memory card 21;
Step e: after waiting download still to finish, will check error detection to downloading the stock market information program of being come, whether correct, complete to determine the program of downloading;
If carry out and to check error detection and realize wrongly, or interrupt downloading, then turn to the program of carrying out in the read-only memory 12, whether carry out one time download action again with decision;
Detect wrong and realize errorlessly if carry out to check, expression is downloaded successfully, then the step below the continuation;
Step F: address switchover program copy one of in the read-only memory 12 duplicated one of write in the random access memory 13 the address space zone (in the 300000H~300FFFH), so that can not cause telephone set system to work as machine when switching SW1, SW2 signal;
Step G: telephone set system will be carried out address switchover program (from address 300000H) and the executive program change action in one of random access memory 13 address space zone, make the SW2 signal that switches module 14 be changed to useful signal, and the SW1 signal is changed to invalid signals, because the address switchover program that carry out this moment is to be arranged in random access memory 13, so can not cause telephone set system to work as machine when switching SW1, SW2 signal;
Step H: after change action is finished, flash memory 21 map addresses are in the random access memory 13 of read-only memory 12, make forward part flash memory card 21 identical address space be arranged with read-only memory 12, and the rear section flash memory card 21 with random access memory 13 identical address space (address space in the flash memory card can be mapped between address space 0000000H-3FFFFFFH) is arranged;
Step I: telephone set system jumps in the flash memory card 21, to carry out the program of being downloaded in the flash memory card 21 and coming.
Shown in Figure 6 is the address assignment schematic diagram of the embodiment shown in Fig. 5, in order to the corresponding relation between the mutual address space of 21 on explanation read-only memory 12, random access memory 13 and flash memory card.As can be seen from Figure 6, read-only memory 12 in region D in the flash memory card 21 and the telephone set 49 uses identical physical address, between the 000000H-2FFFFFH of address, because physical address space is identical, so any one constantly can only control make the two one of address space for effect is arranged, and this control action is to finish by switching interlocking SW unit, module 14 address, make when telephone set system is wished executive program, only can be from read-only memory 12 or flash memory card 21 select a program of carrying out in it in the two.The shared address space of random access memory 13 is between address space 300000H-3FFFFFH, regional A wherein is between address space 300000H-300FFFH, as an odd-job district, when switching the selection signal relevant with read-only storage calendar 12 and flash memory card 21, the telephone set system program can deposit an address switchover program among this regional A in.Area B is to expand the access memory zone one of in the random access memory 13, and its address space is between 400000 H-7FFFFFH.Program or the information downloaded write in the process of flash memory card 21, what central processing unit 11 was carried out is from read-only memory 12 and the program of coming, at this moment, flash memory card 21 can not with read-only memory 12 multiplexing same address spaces, and, the regional A in the random access memory 13 deposits in because having an address switchover program, so the map addresses of flash memory card 21 one can be expanded access memory area B Japan and China in the random access memory 13, make that the address space of flash memory 21 is between 400000H-7FFFFFH, and inequality with the address space of read-only memory 12 and regional A.
When the user is interesting for the futures information on the networking, and when wishing to show futures information by this telephone device 50, the user can download on the networking about in the software of the forward quotations flash memory card 21 in the telephone device 50, with the software program that utilizes this telephone device 50 to carry out after downloading, utilize this telephone device 50 to reach the standard grade and be connected, and can on telephone set 49, demonstrate forward quotations with the dialing of network.Owing to use the flash memory card 21 that can repeatedly read and write, be not to be read-only memory 12, thereby the visual actual demand of user and repeatedly download or information in flash memory card 21.
Fig. 7 has shown the download action of another embodiment of telephone device of tool software upgrading function of the present invention and the operation sequence of change action.This operation sequence flow process has new edition telephone set upgrade software program in order to explanation when the fast erasable card 21 that telephone set 49 inserts, and tax is bright as follows now relevant for carrying out related procedure when downloading futures information programme and address switchover action in the whole system:
At first, behind telephone set 49 power connections, carry out the initialization of telephone set system, owing to inserted flash memory card 21 in the telephone set draw-in groove 490, so telephone set system will be checked the program in the flash memory card 21 or the version of telephone set software program, when new edition telephone set upgrade software program was arranged in this flash memory card 21, then central processing unit 11 can be carried out the new edition telephone set upgrade software program in the flash memory card 21, and its step is as follows;
Steps A: the user selects whether to carry out download action, carries out the program of tool download function in the read-only memory 12;
If not, the action that then do not download, telephone set system will be carried out the program in the flash memory card 21;
If yes, then the user imports the order that downloads, and telephone set system will be carried out the program of tool download function in the read-only memory 12;
Step B: with the expansion access memory district in the map addresses random access memory in the flash memory card 21 12, make the address space (400000H-8FFFFFH) of this flash memory card 21 identical with expansion access memory address space, and inequality with the address space of read-only memory 12, just telephone set system will be sought the address and flash memory card 21 is carried out write activity this sector address space;
Step C: the telephone number that the network of input LAN 52 is reached the standard grade and dialled, utilize modulator-demodulator 16 in the telephone set 49 to carry out data communication after waiting to put through, can make telephone set 49 and far-end watch a device 53 network connectivities via telephone wire 51, LAN 52, treat to download after line is finished the futures information programme in the far-end server 53;
Step D: the futures information programme that will come from far-end server 53 downloads writes the flash memory card 21;
Step e: whether after action to be downloaded is finished, it is correct, complete to determine the program of downloading to check error detection to the futures information programme that download is come;
If carry out and to check error detection and realize wrongly, or interrupt downloading, then turn to the program of carrying out in the read-only memory 12, whether carry out one time download action again with decision;
If carry out and to check error detection and realize errorlessly, expression is downloaded successfully, then the step below the continuation;
Step F: address switchover program copy one of in the read-only memory 12 duplicated one of write in the random access memory 13 in the address space zone (300000H-30FFFH), so that can not cause telephone set system to work as machine when switching SW1, SW2 signal;
Step G: telephone set system will be carried out address switchover program (from address 300000H) and the executive program change action in the address space zone of random access memory 13, make the SW2 signal that switches module 14 be changed to useful signal, and the SW1 signal is changed to invalid signals, because the address switchover program that carry out this moment is to be arranged in random access memory 13, so can not cause telephone set system to work as machine when switching SW1, SW2 signal;
Step H: after change action is finished, flash memory card 21 map addresses are in read-only reservoir 12 and random access memory 13, make the flash memory card 21 of forward part identical address space be arranged, and the flash memory card 21 of rear section have identical address space (address space in the flash memory card 21 can be mapped between address space 000000H-4FFFFFH) with random access memory 13 with read-only memory 12;
Step I: telephone set system jumps in the flash memory card 21 to carry out the program of being downloaded in the flash memory card 21 and coming.
Fig. 8 has shown that the address assignment signal of the embodiment among Fig. 7 is stranded, in order to should concern between the mutual address space of 21 on explanation read-only memory 12, random access memory 13 and flash memory card.As can be known from Fig. 8, read-only memory 12 in region D in the flash memory card 21 and the telephone set uses identical physical address, between the 000000H-2FFFFFH of address, because physical address space is identical, so any one constantly can only control make the two one of address space for effect is arranged, and this control action is to finish by switching interlocking SW unit, module 14 address, make when telephone set system is wished executive program, only can be from read-only memory 12 or flash memory card 21 select a program of carrying out in it in the two.The shared address space of random access memory 13 is between address space 300000H-3FFFFFH, regional A wherein be between address space 30000H-300FFFH as an odd-job district, when switching the selection signal relevant with read-only memory 12 and flash memory card 21, the telephone set system program can deposit an address switchover program among this regional A in.Area B is to expand the access memory zone one of in the random access memory 13, and its address space is between 400000H-8FFFFFH.When in the process that the program that will download or information are written to flash memory card 21, what centre was buried device 11 execution is from read-only memory 12 and the program of coming, and this moment, flash memory card 21 can not can not same address space with read-only memory 12, and since the regional A in the random access memory 13 have an address switchover program and deposit in, so the map addresses of flash memory card 21 is expanded in the access memory area B one of in the random access memory 13, promptly be to make the address space of flash memory card 21 for inequality with the address space of read-only memory 12 and regional A between 400000-8FFFFFH.
After the user inserts telephone set draw-in groove 490 with flash memory card 21, can be by telephone wire 51, local networking 52 and make this telephone set 49 can with far-end server 53 network connectivities, and the new edition telephone set upgrade software program in the far-end server 53 can downloaded is in flash memory card 21.When successfully download this new plate telephone set upgrade software program in the flash memory card 21 after, telephone set system will be carried out all works that move, so that telephone set system transfers to carry out the flash memory card 21 interior new edition telephone set upgrade software programs of being downloaded, and do not carry out the telephone set software program that presets when dispatching from the factory in the read-only memory 12.Need not take apart telephone set with replace read-only memory in the telephone set and maybe can wipe and the situation of programmable read only memory under, the user can repeatedly download new edition telephone set upgrade software program in the far-end server 53 in flash memory card 21 because of actual demand, purpose with the new edition software upgrading that reaches telephone device, and this telephone device is had be different from the function that presets when dispatching from the factory, and can be by the upgrading of new edition telephone set software program so that telephone device 50 has multi-functional.
Fig. 9 shows the download action among the another embodiment of telephone device of tool software upgrading function of the present invention and the operation sequence of change action.This flow cup journey is in order to illustrate after telephone set 49 inserts flash memory cards 21, and there is no any version telephone set software program in this flash memory card 21, the related procedure in the whole telephone set system when carry out downloading the action of new edition telephone set upgrade software program and address switchover is described as follows:
At first, behind telephone set 49 power connections, carry out the initialization of telephone set system, in telephone set draw-in groove 490, inserted flash memory card 21, so telephone set system will be checked the program in the flash memory card 21 or the version of telephone set software program, in this flash memory card 21, there is no any version telephone set software program, so switch the program that will be presetted when effective SW1 signal of module 14 will make central processing unit 11 carry out dispatching from the factory in the read-only memorys 12;
Steps A: the user selects whether to carry out download action, carries out the program of tool download function in the read-only memory 12;
If not, the action that then do not download, telephone set system will be carried out the program in the read-only memory 12;
If yes, then the user imports the order that downloads, and telephone set system will be carried out the program of tool download function in the read-only memory 12;
Step B: with the expansion access memory district of the map addresses in the flash memory card 21 in random access memory 13, make that promptly the address space (400000H-9FFFFFHH) of this flash memory card 21 is identical with expansion access memory address space, and inequality with the address space of read-only memory 12, just telephone set system will carry out write activity to flash memory card 21 to this searching address, sector address space;
Step C: the telephone number of reaching the standard grade and dial in the networking of input LAN 52, utilize modulator-demodulator 16 in the telephone set 49 to carry out data communication after waiting to put through, can make telephone set 49 and far-end server 53 network connectivities via telephone wire 51, LAN 52, treat to download after line is finished the new edition telephone set upgrade software program in the far-end server 53;
Step D: the new edition telephone set upgrade software program that will come from far-end server 53 downloads writes the flash memory card 21;
Step e: etc. after download action finishes, will examine error detection to downloading the new edition telephone set upgrade software program of being come, whether correct, complete with the new edition telephone set upgrade software program of determining download;
If carry out and to check error detection and realize wrongly, or interrupt downloading, then turn to the program of carrying out in the read-only memory 12, whether carry out one time download action again with decision;
If carry out and to check error detection and realize errorlessly, expression is downloaded successfully, then the step below the continuation;
Step F: address switchover program copy one of in the read-only memory 12 duplicated one of write in the random access memory 13 in the address space zone (300000H-300FFFH), so that can not cause telephone set system to work as machine when switching SW1, SW2 signal;
Step G: telephone set system will be carried out address switchover program (from address 300000H) and the executive program change action in the address space zone of random access memory 13, make the SW2 signal that switches module 14 be changed to useful signal, and the SW1 signal is changed to invalid signals, the address switchover program that carry out this moment is to be arranged in random access memory 13, does not cause telephone set system to work as machine so conform to when switching SW1, SW2 signal;
Step H: after change action is finished, flash memory card 21 map addresses are in read-only memory card 12 and random access memory 13, make the flash memory card 21 of forward part identical address space be arranged, and the flash memory card 21 of rear section have identical address space (address space in the flash memory card 21 can be mapped between address space 0000000H-5FFFFFH) with random access memory 13 with read-only memory 12;
Step I: telephone set system jumps in the flash memory card 21 to carry out the new edition telephone set upgrade software program of being downloaded in the flash memory card 21 and coming.
Figure 10 has shown the address assignment schematic diagram of embodiment shown in Figure 9, in order to the corresponding relation between the mutual address space between explanation read-only memory 12, random access memory 13 and flash memory card.As can be known from Fig. 10, read-only memory 12 in region D in the flash memory card 21 and the telephone set 49 uses identical physical address, between the 000000H-2FFFFFH of address because physical address space is identical, any one constantly can only control make the two one of address space effect is arranged.And this control action is to finish by switching interlocking SW unit, module 14 address, makes when telephone set system is wished executive program, only can be from read-only memory 12 or flash memory card 21 select a program of carrying out in it in the two.The shared address space of random access memory 13 is between address space 300000H-3FFFFFH, regional A wherein is from being the odd-job district between address space 300000H-300FFFH, when switching the selection signal of recording with read-only memory 12 and flash memory Ka21Guan, the telephone set system program will deposit an address switchover program among this regional A in.Area B is to expand the access memory zone one of in the random access memory 13, and its address space is between 400000H-9FFFFFH.When in the process that the program that will download or information write flash memory card 21, what central processing unit 11 was carried out is the program of coming from read-only memory 12, and this moment flash memory card 21 can not with read-only memory 12 multiplexing same address spaces, and since the regional A in the random access memory 13 have an address switchover program and deposit in, so the map addresses of flash memory card 21 is expanded in the access memory area B one of in the random access memory 13, promptly be to make the address space of flash memory card 21 between 400000H-9FFFFFH and inequality with the address space of read-only memory 12 and regional A.
Figure 11 shows the download action among the embodiment again of telephone device 50 of tool software upgrading function of the present invention and the operation sequence of change action.This flow process is in order to illustrate after telephone set 49 inserts flash memory cards 21, and when in this flash memory card 21 new edition telephone set software program being arranged, the related procedure in the whole system when carrying out the action of down loading updating version telephone set upgrade software program and address switchover is described as follows now:
At first, behind telephone set 49 power connections, carry out the initialization of telephone set system, in telephone set draw-in groove 490, inserted flash memory card 21, so telephone set system will be checked the program in the flash memory card 21 or the version of telephone set software program, new edition telephone set upgrade software program is arranged in this flash memory card 21, and then central processing unit 11 will be carried out the new edition telephone set upgrade software program in the flash memory card 21;
Steps A: the user selects whether to carry out download action, carries out the program of tool download function in the read-only memory 12;
If not, the action that then do not download, telephone set system will be carried out program in the flash memory card 21;
If yes, then the user imports the order that downloads, and telephone set system will be carried out the program of tool download function in the read-only memory 12;
Step B: with the expansion access memory in the map addresses random access memory in the flash memory card 21 13, even the address space of this flash memory card 21 (400000H-AFFFFFH) is identical with expansion access memory address space, and inequality with the address space of read-only memory 12, just telephone set system will be sought the address and flash memory card 21 is carried out write activity this sector address space;
Step C: the telephone number that the network at input local networking 52 is reached the standard grade and dialled, utilize the modulator-demodulator 16 in the telephone set 49 to lead to transmission after waiting to put through to carry out data, can make telephone set 49 and far-end server 53 network connectivities via telephone wire 51, LAN 52, treat to download after line is finished the new edition telephone set upgrade software program in the far-end server 53;
Step D: the new edition telephone set upgrade software program that will come from far-end server 53 downloads writes the flash memory card card 21;
Step e: etc. after download action finishes, will check error detection to downloading the new edition telephone set upgrading software program of being come, whether correct, complete with the new edition telephone set machine upgrade software program of determining download;
If carry out and to check error detection and realize wrongly, or interrupt downloading, then turn to the program of carrying out in the read-only memory 12, whether carry out download action again one time with decision;
If carry out and to check error detection and realize errorlessly, expression is downloaded successfully, then the step below the continuation;
Step F: address switchover program copy one of in the read-only memory 12 duplicated one of write in the random access memory 13 in the address space zone (300000H-300FFFH), so that can cause telephone set system to work as machine when switching SW1, SW2 signal;
Step G: telephone set system will be carried out address switchover program (from address 300000H) and the executive program change action in one of random access memory 13 address space zone, make the signal of the SW2 that switches module 14 be changed to useful signal, and the signal of SW1 is changed to invalid signals, and because the address switchover program of carrying out this moment is to be arranged in random access memory 13, so can not cause telephone set system to work as machine when switching SW1, SW2 signal;
Step H: after change action is finished, flash memory card 21 map addresses are in read-only memory 12 and random access memory 13, make the flash memory card 21 of portion's part identical address space be arranged, and there is identical address space (address space in the flash memory card 21 can be mapped between locational space 000000H-6FFFFFH) rear section at flash memory card 21 and random access memory 13 with read-only memory 12;
Step I: telephone set system forwards the telephone set new edition upgrade software program that the address is come to download in the execution flash memory card in the flash memory card 21 to.
Figure 12 shows the address assignment schematic diagram of embodiment among Figure 11, in order to the corresponding relation between the mutual address space of 21 on explanation read-only memory 12, random access memory 13 and fast erasable access memory card.As can be known from Fig. 12, read-only memory 12 in region D in the flash memory card 21 and the telephone set 49 uses identical physical address, between the 000000H-2FFFFFH of address, because physical address space is identical, when when carving any a period of time, can only control make the two one of address space for effect is arranged, and this control action is finished by switching interlocking SW unit, module 14 address, make when telephone set system is wished executive program, only can be from read-only memory 12 or in the flash memory card 21 either-or carry out program in it.The shared address space of random access memory 13 is between address space 300000H-3FFFFFH, regional A wherein is from being an odd-job district between address space 300000H-3FFFFF, when switching the selection signal relevant with read-only memory 12 and flash memory card 21, the telephone set system program will deposit an address switchover program among this regional A in.Area B is the expansion access memory zone in the random access memory 13, and its address space is between 400000H-AFFFFFH.When the program that will download or information write the process of flash memory card 21, what central processing unit 11 was carried out is from read-only memory 12 and the program of coming, and this moment flash memory card 21 can not with read-only memory 12 multiplexing same address spaces, and since the regional A in the random access memory 13 have an address switchover program and deposit in, so, promptly be to make the address space of flash memory card 21 for inequality with the address space of read-only memory 12 and regional A between 400000H-AFFFFFH with the map addresses of fast erasable flash memory card 21 expanding in the access memory zone 8 in the random access memory 13.
Combine it, the telephone device of tool software upgrading function of the present invention as from the foregoing, at ordinary times, when telephone set did not insert fast erasable storage, this telephone set was carried out the program of setting in its interior read-only memory and the function that sets when dispatching from the factory can be provided when dispatching from the factory.And when inserting the flash memory card, need not open telephone set replacing read-only memory wherein, can use via telephone wire, LAN words device and far-end server network connectivity with system's new edition upgrade software of the telephone device in the download far-end server or program (or information) in the flash memory card.So compared with the prior art, the telephone device of tool software upgrading function of the present invention has following advantage:
(1) telephone device of tool software upgrading function of the present invention can do not need to take apart telephone set with the situation of replacing read-only memory in the telephone set or Erarable Programmable Read only Memory under, only need insert the flash memory card and via telephone wire, network system and network connectivity can be downloaded new edition telephone set upgrade software program in the far-end server to carry out the software upgrading of telephone device, so very convenient.
(2) telephone device of tool software upgrading function of the present invention is after inserting the flash memory card in the telephone set draw-in groove, the networking line be can utilize and required program of user or information downloaded in the flash memory card from the networking, and can repeatedly stick into capable write activity to this flash memory, so it is multi-functional that the telephone device of tool software upgrading function of the present invention is had.
(3) telephone device of prior art will be taken telephone set apart and telephone apparatus had be different from the new edition upgrade software program of former setting program when dispatching from the factory to replace different read-only memorys or Erarable Programmable Read only Memory, application program or personal information, different therewith, the flash memory card that telephone device of the present invention has, can not need to take apart under the situation of telephone set, this flash memory card is inserted in the telephone set draw-in groove, with online and can be repeatedly stick into row and download write activity to this flash memory via network, can reach the software upgrading of telephone set new edition and download different programs, the purpose of personal information can be saved the material of replacing read-only memory or Erarable Programmable Read only Memory and replace expense and cost of labor.
(4) telephone device of tool software upgrading function of the present invention has instant validity, just the user can answer required and at any time the software program in the download network in the flash memory card, and the read-only memory or the Erarable Programmable Read only Memory that do not need to rely on the market achieve the goal, and have more elasticity in the use.In brief, should different demand users can select own required function, by telephone wire and network system and can download software program or information in the far-end server, and have known technology device advantage such as ageing, the instantaneity that can't possess and user's elasticity.
The above is preferred embodiment of the present invention only, is not in order to limit scope of the present invention.All other do not break away from the equivalence of being finished under the disclosed spirit and changes or modification, all should be included in the claim scope.