Embodiment
Below in conjunction with accompanying drawing to a preferred embodiment of the present invention will be described in detail.Terminal device in the preferred embodiments of the present invention all is example with the mobile phone, but the present invention also can be used for other similar terminal devices, such as digital camera, data card etc.
Fig. 1 is the schematic flow sheet according to the USB port mode switching method of first embodiment of the invention.As shown in the figure, this flow process comprises:
Step S101 is connected with computing machine by USB port, and provides the operation interface that comprises a plurality of port mode operating instruction options to computing machine;
Step S102 receives operating instruction, and starts wherein a kind of port mode of described a plurality of port modes according to the operating instruction that receives;
Step S103 is if receive the instruction that finishes current port mode then provide described operation interface to computing machine once more.
In the present embodiment, terminal devices such as mobile phone are after connecting computing machine by USB port, can eject an operation interface on computers, can comprise a plurality of port mode operating instruction options on this operation interface, after terminal received the operating instruction that the user sends according to these options, for example the user had selected the USB flash disk pattern, and then terminal starts the USB flash disk pattern according to this operating instruction, when receiving the instruction that finishes the USB flash disk pattern, just provide above-mentioned operation interface to computing machine once more.
The method of present embodiment can be restarted terminal, also not need under the situation of the USB connecting line between manual disconnected end of user and the computing machine not needing, make terminal between multiple USB port pattern, switch easily, to move different functional modes, greatly simplified the USB port mode switch process of terminal, convenient for users to use.
Fig. 2 is the schematic flow sheet of another embodiment of USB port mode switching method of the present invention.As shown in the figure, this flow process is as follows:
Mobile phone is connected on the PC after (S201) by USB port, according to whether the USB driver has been installed among the PC, mobile phone will be mapped as two kinds of different port modes, but all comprise a CDROM port under two kinds of patterns, therefore at this moment mobile phone moves as CDROM, and in PC, move boot automatically, eject an operation interface (S202).
Comprise a plurality of options on this operation interface, for example " switch to USB flash disk ", " switching to MTP " etc.At this moment if the user has selected " switching to USB flash disk " option, then mobile phone receives the instruction (S203) that moves under the USB flash disk pattern, thereby as USB flash disk operation (S204).
Wherein, MTP (Media transfers protocol) is a media transmission protocol, is mainly used in transmission and management of media file.Support that at present the two kinds of media players that have only of MTP are WMP 10 (Windows Media Player 10) and WMP 11 (Windows Media Player11).The application of present most of MTP equipment all is based on usb protocol.
After the user finishes using to the mobile phone USB flash disk, select the operation withdrawed from according to the prompting withdrawed from the mobile phone, directly withdraw from the USB flash disk pattern, this moment, mobile phone received the instruction (S205) that finishes the USB flash disk pattern, thereby refresh USB port, come back to the S02 step, the ejection operation interface.
At this moment if the user has selected " switching to MTP " option, then mobile phone receives the instruction (S206) that moves under the MTP pattern, thereby operates in (S207) under the MTP pattern.
When the user after finishing using under the MTP pattern, select the operation withdrawed from according to the prompting withdrawed from the mobile phone, directly withdraw from the MTP pattern, this moment, mobile phone received the instruction (S205) that finishes the MTP pattern, thereby refresh USB port, come back to the S202 step, the ejection operation interface.
Can also comprise in the operation interface and withdraw from option, the user just can select withdraw from option when operation interface ejects like this, thereby finishes being connected between mobile phone and the PC.
Fig. 3 is the schematic flow sheet of another embodiment of USB port mode switching method of the present invention.
At first a plurality of port modes to the terminal device of for example mobile phone describe.Mobile phone can be shown the port mode that shoots out at the equipment manager of PC and specifically comprise following several: 1, Modem, PCUI, three ports of CDROM after connecting PC; 2, CDROM port; 3, being used as USB flash disk and CDROM port uses; 4, being used as MTP equipment uses.Below above-mentioned various port is described:
The effect of Modem port is that mobile phone is used as a radio modem, and by this port, mobile phone can be realized getting online without being tethered to a cable;
The PCUI port: support 27.007 part of standards AT command level in the 3GPP agreement, can be for the tracking Control of PC side software programming realization to mobile phone; In the present embodiment, the software of PC side is called PC assistant, and it can order (ATCommands) to carry out convenient communication with mobile phone by AT, and wherein the AT order is a Modem commands language of all modem manufacturer's employings; The user can use PC assistant and service on net simultaneously, and reason is that mobile phone can map out Modem, PCUI and three ports of CDROM simultaneously;
CDROM: the port is to be a CD with mobile phone part FLASH spatial mappings, stores the driver of mobile phone, can realize that mobile phone installs driving automatically to PC by the mode of automatic installation, thereby not need to provide additional driving CD to the user;
USB flash disk: mobile phone is used as the Mass Storage (high capacity memory) of a standard, and by this interface, the user can be by the external memory device on the pc access mobile phone, such as the SD storage card;
MTP equipment: can utilize PC that the files such as media file in the MTP equipment are managed.
As shown in Figure 3, after mobile phone was connected on the PC by the USB line, the operation that the user can carry out had:
By being installed in daemon software " PC assistant " operating handset easily on the PC;
Can mobile phone be installed automatically by the CDROM port is driven on the PC;
Switch to Modem, PCUI, behind CDROM three port modes, can realize service on net, the AT command access mobile phone by standard, carry out various flexible Application, such as editor's phone directory, transmission note, backup and recovery user profile etc. realize tracking and printing to the performance of mobile phone miscellaneous service, Debugging message, mobile phone;
Realize that by MTP equipment mobile phone links to each other with PC, by the file of PC on can managing mobile phone, for example operated from a distance etc. can realize the synchronous of file, for example transmits content, enumerates file etc. fast.
Below in conjunction with Fig. 3 to mobile phone how to be implemented in three port modes (Modem, PCUI, CDROM), the mutual handoff procedure between two port modes (CDROM and USB flash disk), a port mode (CDROM) and the MTP equipment describes.
Mobile phone is connected to PC (S301) afterwards by the USB connecting line, and mobile phone will detect the USB driver (S302) whether mobile phone is installed on the PC automatically.
If the USB driver is not installed, this moment, mobile phone shone upon a CDROM port automatically to PC (S304), and CDROM moves ejection operation interface (S305) automatically, and the user can select corresponding option of operation as required.
If mobile phone detects the USB driver has been installed among the PC, then has been mapped as three port modes (S303), and moved ejection operation interface (S305) automatically by the CDROM port in three ports, the user can select corresponding option of operation as required.
Can comprise four options on the above-mentioned operation interface, be respectively: switch to USB flash disk, switch to MTP, start PC assistant and directly withdraw from.Be exactly to select the port that uses mobile phone different accordingly to the selection of option in fact.Wherein, having selected to switch to what use behind the USB flash disk option is the function of mobile phone when being in two port modes, and having selected to start what use behind PC assistant's option is the function of mobile phone when being in three port modes.
If the user has selected to switch to MTP (S306), mobile phone can send the prompted dialog frame to the user, whether the inquiry user switches to MTP pattern (S307), if the user selects not switch then gets back to the S302 step, if the user selects to switch to the MTP pattern, then mobile phone switches to MTP pattern (S308), and at this moment mobile phone switches to MTP equipment, and the media-player software that the user can use the PC side is come media file and catalogue on the operating handset such as media player 11; After the user uses, by the prompt options on the operating handset, directly withdraw from MTP pattern (S309), mobile phone this moment refresh port is again got back to the S302 step.
If the user has selected to switch to USB flash disk (S310), mobile phone can judge whether there is SD card (S311) in the mobile phone, if do not have the SD card then point out the user to insert SD card (S312), then points out the user whether to enter the card reader pattern.Confirm that through the user back mobile phone switches to the USB flash disk state (S313) of two-port pattern.This moment, mobile phone used as common U.After the user uses, by the prompt options on the operating handset, directly withdraw from USB flash disk (S314), mobile phone this moment refresh port is again got back to the S302 step.
The user can also select withdraw from option (S315) when operation interface ejects, finish being connected between mobile phone and the PC.
If the user has selected startup PC assistant (S316), check then whether PC assistant has been installed in (S317) among the PC, if not then PC assistant (S318) is installed automatically.Judge then whether the USB driver is installed in (S319) among the PC, if not then USB driver (S320) is installed automatically in PC.After the drive installation success, mobile phone switches to three port modes (S321), and mobile phone this moment refresh port is again got back to the S303 step.Be installed among the PC if detect the USB driver when mobile phone is connected to PC, also promptly in the S305 step during ejection operation interface mobile phone be in three port modes, then directly operation PC assistant (S322) is just after the S319 step.
In the S317 step, automatically detect by the automatic running program among the mobile phone CDROM whether PC assistant's software has been installed on the PC, if not, be not install on the PC, then start the program that PC assistant is installed automatically, at this moment the user can have three kinds of selections: install, this is not installed and do not reresent installation later on, supposes that here under normal circumstances the user can finish PC assistant's installation.
Automatic running program among the CDROM detect on the PC PC assistant's software has been installed after, can detect PC and go up whether mounted PC assistant's software is latest edition with respect to the PC assistant's version in the mobile phone, if need to find upgrading PC assistant is installed, then start the upgrading installation process automatically, at this moment the user also can have three kinds of selections: upgrading, this is not upgraded and do not reresent upgrading later on, supposes that here the upgrading that user under the normal condition can finish PC assistant installs.If the automatic running program among the CDROM detects the latest edition whether PC assistant's software has been installed on the PC, then can start the PC assistant's software on the PC automatically.Above process has made things convenient for user's normal use.
The method of present embodiment make the user need not the plug terminal with computing machine between the USB connecting line, also need not restart terminal and just can realize the switching of terminal between its different USB port pattern, greatly simplified the USB port mode switch process of terminal, convenient for users to use; The user also need not to go for CD everywhere again and can install and use driver and function software simultaneously, and is convenient succinct, can encourage the user to pass through function software and use surfing Internet with cell phone on computers; Consider the processing power problem of different chips for cell phone, some business can not be simultaneously concurrent, but supported freely switching of port just can realize concurrent between business approx, and the speed that needs only the port switching satisfies its business need and just can realize.
Fig. 4 is the structural representation of an embodiment of USB port mode switching terminal of the present invention.As shown in the figure, this terminal comprises:
Boundary element 1 when it is used for described terminal and is connected with computing machine by USB port, provides the operation interface that comprises a plurality of port mode operating instruction options to computing machine;
Receiving element 2, it is used to receive operating instruction;
Start unit 3, it is used for starting according to the operating instruction that described receiving element 2 receives wherein a kind of port mode of described a plurality of port modes;
Wherein, described receiving element 2 also is used to receive the instruction that finishes current port mode, when described boundary element 1 also is used for described receiving element 2 and receives the instruction of the current port mode of described end, provides described operation interface to computing machine once more.
In the present embodiment, terminal devices such as mobile phone are after connecting computing machine by USB port, can eject an operation interface on computers by boundary element 1, can comprise a plurality of port mode operating instruction options on this operation interface, after receiving element 2 receives the operating instruction that the user sends according to these options, for example the user has selected the USB flash disk pattern, then start the USB flash disk pattern according to this operating instruction by start unit 3, when receiving element 2 receives the instruction that finishes the USB flash disk pattern, provide above-mentioned operation interface to computing machine once more by boundary element 1.
The terminal of present embodiment can not need to restart, do not need to disconnect yet and computing machine between the situation of USB connecting line under, between multiple USB port pattern, switch easily, to move different functional modes, greatly simplified the USB port mode switch process of terminal, convenient for users to use.
Fig. 5 is the structural representation of another embodiment of USB port mode switching terminal of the present invention.As shown in the figure, this terminal also comprises except comprising boundary element shown in Figure 41, receiving element 2 and start unit 3:
Detecting unit 4, its be used for described terminal by USB port with after computing machine is connected, whether the USB driver is installed on the detection computations machine;
Installation unit 5, it is used for detecting when on the described computing machine USB driver not being installed when described detecting unit 4, for computing machine is installed described USB driver.
In the present embodiment, terminal with after computing machine is connected, by on the detecting unit 4 detection computations machines whether the USB driver being installed, is not installed the USB driver if detect by USB port, is that computing machine is installed the USB driver by installation unit 5 then.The terminal of present embodiment can make the user need not to go to seek everywhere again and drive CD, can install and use driver easily, has further facilitated the use of user to terminal.
In another embodiment of USB port mode switching terminal of the present invention, as shown in Figure 5, above-mentioned start unit 3 specifically is used for the operating instruction according to described receiving element 2 receptions, starts the function software pattern in described a plurality of port mode.This can user-friendly terminal the function software function.In addition, in this embodiment, can be after described start unit 3 starts described function software pattern by detecting unit 4, whether described function software is installed on the detection computations machine, if when detecting on the described computing machine not fitting operation software, then for computing machine described function software is installed by installation unit 5; If detecting unit 4 detects function software is installed on the computing machine, whether the version that then detects the described function software of installing in the described computing machine is lower, if detect the version of described function software when low, by the described function software of installation unit 5 for computing machine installation latest edition; In addition, if detecting unit 4 detects and function software has been installed on the computing machine but the USB driver is not installed, then for computing machine the USB driver is installed by installation unit 5, if detecting unit 4 detects and function software both had been installed on the computing machine USB driver also has been installed, then described start unit 3 also is used to start described function software.In the present embodiment, can be easily to the function software on the computing machine install, version auto-update and startup and the installation of carrying out the USB driver automatically, further facilitated user's use.
In another embodiment of USB port mode switching terminal of the present invention, as shown in Figure 4, described start unit 3 specifically is used for the operating instruction according to described receiving element 2 receptions, starts the media transmission protocol port mode in described a plurality of port mode.When receiving element 2 receives the instruction that finishes the media transmission protocol pattern, provide described operation interface to computing machine once more by described boundary element 1.The terminal of present embodiment has made things convenient for the use of user to the media transmission protocol port mode of terminal, has simplified user's use.
More than be the preferred embodiments of the present invention; but the present invention is not limited to above-mentioned particular implementation example; do not deviating under spirit of the present invention and the real situation thereof; skilled personnel can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong within the claims protection domain of the present invention.