Background technology
Flourish along with wireless communication technique, for example: the wireless mobile communication devices of mobile phone (mobile phone), intelligent mobile phone (smartphone), personal digital assistant PDA (Personal Digital Assistant) etc. has become one of information products indispensable in majority's daily life.And the mobile communcations system of a new generation no longer only limits to provide voice service, but further provide data, services, simultaneously, the frequency range that data, services can be supported also promotes gradually, the demand of using for network in the hope of satisfying the user, present full-fledged third generation mobile technology for example, comprise Wideband Code Division Multiple Access (WCDMA) access (Wideband Code Division Multiple Access, W-CDMA), CDMA access-2000 (Code division multiple Access-2000), and Time Division-Synchronous Code Division Multiple Access access technology such as (Time Division-Synchronous Code Division Multiple Access), the data, services of high frequency range all can be provided.By the wireless mobile communication devices of the above-mentioned mobile communication technology of any support, the user just can obtain network service anywhere.
Because the common screen of wireless mobile communication devices of cell phone type is less and computing power is limited, therefore in some cases, the user can be inclined to choice for use notebook computer (Notebook) or the easy net machine of portable (Netbook) to satisfy its user demand, if the easy net machine of notebook computer or portable is internally mounting wireless communication module not, wireless Internet card, module or the dongle of the circumscribed of then can arranging in pairs or groups.Generally speaking, wireless Internet card can have according to its mobile communication technology of supporting corresponding demand, with the Wideband Code Division Multiple Access (WCDMA) access technology, wireless Internet card need the person of being combined with subscriber identity module (SubscriberIdentity Module, SIM) card, with CDMA access-2000 (CDMA2000) technology, wireless Internet card then need the person's of being combined with identity module (User Identity Module, UIM) card, wireless Internet card is obtained the identification authentication data of this user's access network again from user identity module card or user's identity module card, to carry out gateway program.
The software of wireless Internet card or firmware may need to upgrade in good time, yet, design with present wireless Internet card, when the wireless Internet card that is inserted with user identity module card or user's identity module card connects upper notebook computer or the easy net machine of portable, can carry out immediately gateway program.In more detail, after wireless Internet card received power initiation from the interface of notebook computer, wireless Internet card can read the user ID data in the subscriber identity module immediately, and the software of execution itself or firmware connecting wireless network.And the operating system on the notebook computer and driver also start after detecting wireless Internet card immediately, in order to network by wireless Internet card.In this process, the chance that does not allow the user get involved.If the software of wireless Internet card or firmware need to upgrade, then must under the state that is not connected in the easy net machine of notebook computer or portable, disassemble out the shell of wireless Internet card, upgrade in manual mode.Therefore, the utmost point need have a kind of mechanism can allow wireless Internet card comply with its demand optionally to carry out gateway program or software/firmware and upgrade.
Embodiment
What these chapters and sections were narrated is to implement best mode of the present invention, and purpose is to illustrate spirit of the present invention but not in order to limit protection scope of the present invention, protection scope of the present invention is as the criterion when looking appended the claim person of defining.
Fig. 1 is according to the described wireless Internet access environment of one embodiment of the invention.In wireless Internet access environment 10, when user's 100 wishs use electronic calculator 200 to carry out network related application or service, user identity module card (SIM) or user's identity module card (UIM) can be inserted in the wireless internet accessing device 300, again wireless internet accessing device 300 is connected to electronic calculator 200, obtain wireless network resource and the further the Internet (Internet) 500 of access service network 400 and its connection by wireless internet accessing device 300 from service network 400, serve to electronic calculator 200 so that radio communication connection to be provided.Electronic calculator 200 can be the electronic installation that notebook computer, the easy net machine of portable, desktop PC (desktop) or workstation/server etc. have arithmetic capability.
Wherein, wireless internet accessing device 300 can change by the renewal of soft/firmware its operating mode or setting, for example: operate choosing of frequency range, select the wireless communication technique of running and from a plurality of wireless communication techniques of supporting, set running priority etc., therefore, when user's 100 wishs upgrade wireless internet accessing device 300 soft/during firmware, then renewal of the present invention can be inserted wireless internet accessing device 300 with pseudo-card, after wireless internet accessing device 300 connects upper electronic calculator 200, wireless internet accessing device of the present invention 300 can upgrade with pseudo-card in identification, then by electronic calculator 200 upgrade wireless internet accessing devices 300 soft/firmware.
Wireless internet accessing device 300 can comprise Jie's connection module, in order to connect wireless internet accessing device 300 to electronic calculator 200, on the implementation, this Jie's connection module can be universal serial bus (Universal SerialBus, USB), universal asynchronous receiving-transmitting transmitter (Universal AsynchronousReceiver/Transmitter, UART), bluetooth transceiver (Bluetooth transceiver) or other message medium (media).
Fig. 2 is according to the described wireless internet accessing device of one embodiment of the invention.First Jie's connection module 310, second Jie's connection module 320, wireless module 330 and update module 340 have been comprised in the wireless internet accessing device 300.On the mechanism design of an example of present embodiment, wireless internet accessing device 300 has a groove, and first Jie's connection module 310 namely is arranged at this groove inner face, in order to connect the user's identification card 311 that inserts.Second Jie's connection module 320 couples the electronic calculator 200 of wireless module 330 to one outsides.Wireless module 330 is connected to storage module 350 and is coupled to user's identification card 311 by first Jie's connection module 310, and the function that wireless module 330 has wireless telecommunications can provide the radio communication connection service, wherein storage module 350 required software and firmware when storing wireless internet accessing device 300 functional operation.Update module 340 is coupled to wireless module 330 and is coupled to user's identification card 311 by first Jie's connection module 310, and judge whether to make wireless internet accessing device 300 to enter a wait state according to the user's identification card 311 that inserts, carry out the renewal of software or firmware to receive from the instruction of electronic calculator 200, or this startup wireless module 330 is to provide radio communication connection to serve to electronic calculator 200.Although the second figure is with the expression of coming in 350 minutes of first Jie's connection module 310, second Jie's connection module 320, wireless module 330, update module 340 and storage module, but those skilled in the art can understand in certain embodiments, can be with above-mentioned some or all block merging on a chip.
User's identification card 311 can be user identity module card, user's identity module card or renewal of the present invention and blocks with pseudo-.In one embodiment, standard according to international standard ISO/IEC 7816-3, user's identification card 311 comprises 6 contacts at least, is respectively: power supply (Vcc) contact, replacement (Rst) contact, clock (CLK) contact, ground connection (Gnd) contact, program voltage (Vpp) contact and data (I/O) contact.What pay particular attention to is, in order to realize software of the present invention and firmware update, the described renewal of one embodiment of the invention is the standard of abideing by international standard ISO/IEC 7816-3 with pseudo-card, its card contact also comprises 6 contacts as mentioned above, but replacement contact, clock contact and data contact are made as short circuit, so that its potential state is consistent.
Above-mentionedly judge whether to carry out the step that software/firmware upgrades by update module 340 according to the user's identification card 311 that inserts, then be based on above-mentioned renewal and carry out with the pseudo-design that blocks.At first, update module 340 can be selected replacement contact, clock contact and data contact all are made as universal input output (General Purpose I/O, GPIO) input pattern, select again the one of replacement contact and clock contact to be made as the output mode that universal input is exported, so far, then the one of selected replacement contact and clock contact can be considered as output contact, two other contact then is considered as inputting the contact.Then, take the potential state of output contact as a reference potential state, update module 340 attempts changing the reference potential states, and whether at least one the potential state that then detects in two input contacts changes with the reference potential state; If, then update module 340 makes wireless internet accessing device 300 enter waiting status, until reception is from the update instruction of electronic calculator 200, upgrade again software stored in the storage module 350 or firmware, if not, then update module 340 starts wireless module 330, makes it provide radio communication connection to serve to electronic calculator 200 by second Jie's connection module 320.
That is to say, if the user's identification card that inserts 311 is for upgrading with pseudo-card, then owing to upgrade with the replacement contact on the pseudo-card, the clock contact, and data contact is set as short circuit, when so update module 340 is made as noble potential with reference to potential state, the potential state that reads from the input contact also is noble potential, and when update module 340 is made as electronegative potential with reference to potential state, the potential state that reads from the input contact also is electronegative potential, therefore, update module 340 can identify present user's identification card 311 for upgrading with pseudo-card, and carry out according to this above-mentioned soft/the firmware step of updating.Otherwise, if the user's identification card that inserts 311 is user identity module card or user's identity module card, then because the replacement contact on this card, the clock contact, and data contact is not set as short circuit, the change of its potential state will meet the standard of international standard ISO/IEC 7816-3, generally speaking, the potential state of data contact (clock cycle) accumulative total that must circulate at clock reaches some (for example: per 400 clocks circulation) Shi Caihui changes (by noble potential to electronegative potential, or by electronegative potential to noble potential), perhaps, through the clock circulation of some, the potential state of data contact just can change after the potential state of replacement contact changes.So between these three contacts about user identity module card or user's identity module card, the change of its potential state will can not be that the potential state one of one contact changes, then the potential state of two contacts just changes in addition.In other words, update module 340 is by changing the reference potential state, the potential state that can detect the input contact does not change to some extent along with the reference potential state, therefore, update module 340 can identify present user's identification card 311 and be user identity module card or user's identity module card, and start wireless module 330, so that being provided, radio communication connection serves to electronic calculator 200.
In one embodiment, update module 340 is behind the potential state that changes output contact, whether the potential state that can detect simultaneously two input contacts has along with the reference potential state changes, if having along with the reference potential state, the potential state of two input contacts changes, judge that then user's identification card 311 is for upgrading with pseudo-card, otherwise, judge that then user's identification card 311 is user identity module card or user's identity module card.For instance: the contact of can selecting to reset is output contact, all be set to the input pattern of universal input output in replacement contact, clock contact and data contact after, update module 340 is set as the replacement contact output mode of universal input output again, change the potential state of output contact (being the replacement contact), whether the potential state that then reads input contact (being the clock contact with data contact) also and then changes.Perhaps, the selectable clocking contact is output contact, all be set to the input pattern of universal input output in replacement contact, clock contact and data contact after, update module 340 is set as the clock contact output mode of universal input output again, change the potential state of output contact (being the clock contact), whether the potential state that then reads input contact (being the replacement contact with data contact) also and then changes.
In another embodiment, update module 340 is behind the potential state that changes output contact, whether the potential state that can only detect the one of above-mentioned two input contacts has along with the reference potential state changes, if have, judge that then user's identification card 311 is for upgrading with pseudo-card, otherwise, judge that then user's identification card 311 is user identity module card or user's identity module card.Those skilled in the art should understand, block with pseudo-in renewal of the present invention, it inputs selecting of contact and output contact and the design of short circuit is not limited to international standard ISO IEC 7816-3 institute standard card, also be applicable to the chip card of other specification of similar contact structure, such as: the standards such as ISO IEC 7816-4, GSM 11.11, GSM 11.12.Moreover, the present invention selects and the design of short circuit be not limited to reset contact, clock contact and data contact about input contact and output contact, also can select other contact in the card, as long as do not conflict with formulating standard of this card to some extent with the running of output contact in the input contact.
In other embodiments, the step that can repeat the potential state of above-mentioned change output contact and detect the potential state of input contact, for example: repeating in three times the situation, be made as height with the potential state of output contact the first time first, whether the potential state of then observing the input contact also is high, potential state with output contact is made as low for the second time, whether the potential state of then observing the input contact also is low, again the potential state of output contact is made as height for the third time, whether the potential state of then observing the input contact also be height.Through the check that so repeats, the probability that can effectively get rid of erroneous judgement user identification card 311, because have only at user's identification card 311 when upgrading with pseudo-card, just might continuous several times all detecting the potential state of inputting the contact can change with the potential state of output contact.In addition, update module 340 is when the step of the potential state that detects the input contact, the potential state that can further judge the input contact changes whether change into synchronous generation with the potential state of output contact, judges that to promote whether user's identification card 311 is as upgrading the correctness with pseudo-card.
In one embodiment, storage module 350 can be integrated in the wireless module 330, in order to store about wireless module 330 runnings soft/firmware, and by above-mentioned soft/firmware upgrades to change its function setting, comprising: the wireless communication technique of the choosing of running frequency range, selected running and set running priority etc. from a plurality of wireless communication techniques of supporting.For instance: wireless module 330 can be supported the communications protocol of a plurality of wireless communication techniques, as: global system for mobile communications (Global System for Mobile Communications, GSM), general packet wireless service (General packet radio service, GPRS), Wideband Code Division Multiple Access (WCDMA) access, CDMA access-2000 and timesharing-S-CDMA—Synchronous Code Division Multiple Access access technology such as (Time Division-Synchronous Code Division Multiple Access).
In another embodiment, storage module 350 can be independent of outside the wireless module 330, in order to the system that stores wireless internet accessing device 300 soft/firmware, and by above-mentioned soft/firmware upgrades to change its function setting.Or, wireless internet accessing device 300 can comprise two kinds of above-mentioned storage modules simultaneously, one is the storage module that is integrated in the wireless module 330, in order to store about wireless module 330 runnings soft/firmware, it is two for being independent of outside the wireless module 330, in order to store about the system of wireless internet accessing device 300 soft/firmware.On the implementation, storage module 350 can be a nonvolatile memory (Non-volatileMemory), for example: ROM (read-only memory) (Read Only Memory, ROM), the storer of suitable use in the small-sized movable device such as reprogrammable ROM (Erasable Electronic Programmable Read Only Memory, EEPROM) or flash memory (such as NOR Flash Memory, NAND Flash Memory).
Fig. 3 is the process flow diagram according to the described software of one embodiment of the invention and firmware update.This software and firmware update software or the firmware in order to upgrade wireless internet accessing device 300, and wireless internet accessing device 300 comprises storage module 350, and provides radio communication connection to serve to electronic calculator 200 according to storage module 350 stored software or firmwares.The execution in step of this software and firmware update is as follows: at first, by first Jie's connection module 310 user's identification card 311 is connected to wireless internet accessing device 300 (step S10), user's identification card 311 includes at least one input contact and an output contact.Then, take the potential state of output contact as a reference potential state, update module 340 changes these reference potential states (step S20), for example, is made as noble potential or electronegative potential with reference to potential state; Then, update module 340 detect again the input contact potential state whether change (step S30) with the reference potential state; In the time of further, if the potential state of input contact changes with the reference potential state, user's identification card 311 that meaning is namely inserted is for upgrading with pseudo-card, then according to the instruction renewal storage module 350 of electronic calculator 200 stored software or firmware (step S40).Therefore, software of the present invention and firmware update can be finished the renewal of soft/firmware in the situation that need not disassemble out wireless internet accessing device 300.
Further specify step S40, when update module 340 judges that the potential state of input contact can change with the reference potential state really, then make wireless internet accessing device 300 enter a wait state, and wireless internet accessing device 300 also passes through second Jie's connection module 320 and transmits message first-class to be updated to electronic calculator 200, electronic calculator 200 is when the message to be updated such as receiving, can pass through graphical user interface (Graphical User Interface, GUI) display reminding to user 100.Again manual operation of user 100 selects a updating file of executive software or firmware to upgrade at electronic calculator 200.Perhaps, electronic calculator 200 also can be when the message to be updated such as receiving, then the updating file that automatic searching can be used upgrades.
Software of the present invention and firmware update can be undertaken by the instruction of universal input output, and only need four road instructions: the first instruction is made as replacement contact, clock contact and data contact the input pattern (namely setting the input contact) of universal input output, the second instruction is made as the one contact output mode (namely setting output contact) of universal input output, the 3rd road instruction changes the potential state of output contact, and the 4th road instruction detects the potential state of input contact.The instruction required time of per pass universal input output is neither to surpass 1 microsecond, and the instruction of universal input output can namely be finished in starting (Boot) program.Therefore with regard to required time, the execution efficient of software of the present invention and firmware update obviously be better than general soft/firmware update.
Though the present invention discloses as above with various embodiment, however its only for example with reference to but not in order to limiting scope of the present invention, any those skilled in the art, without departing from the spirit and scope of the present invention, when doing a little change and retouching.Therefore above-described embodiment is not to limit scope of the present invention, and protection scope of the present invention is as the criterion when looking appended the claim scope person of defining.