Summary of the invention
The object of the present invention is to provide a kind of method, system and portable terminal that user interface is provided, be intended to solve the comparatively loaded down with trivial details problem of method that prior art provides.
The present invention is achieved in that a kind of method that user interface is provided, and described method comprises the steps:
Whether detect the I/O port has annex to connect;
When detecting the type that detects the annex that connects when the I/O port has annex to connect;
According to the type of the annex of described connection, analyze the relevant application of type with the annex of described connection;
The user interface of the application relevant with the type of the annex of described connection is provided.
Another object of the present invention is to provide a kind of system that user interface is provided, described system comprises:
The coupling detecting unit, whether be used to detect the I/O port has annex to connect;
The type of attachment detecting unit is used for detecting the type of the annex that connects when detecting the I/O port and have annex to connect;
The related application analytic unit is used for the type according to the annex of described connection, analyzes the relevant application of type with the annex of described connection;
User interface provides the unit, is used to provide the user interface that can operate the application relevant with the type of the annex of described connection.
Another object of the present invention is to provide and comprise the aforesaid portable terminal that the system of user interface is provided.
In the present invention, the user inserts annex behind portable terminal, can directly wake portable terminal up, provides and the user interface of the annex correlation function that inserts, makes things convenient for the user to select to use, and has increased the ease for use of portable terminal.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
In embodiments of the present invention, when portable terminal has detected the annex connection when standby, can wake portable terminal automatically up, and analyze the type of the annex connected and the application relevant with described annex, provide the user interface of corresponding function to select again for the user, increase the ease for use of portable terminal, strengthened user experience.
Fig. 1 is the method that user interface is provided that the embodiment of the invention provides, and details are as follows:
Whether in step S101, detecting the I/O port has annex to connect.
Whether portable terminal detects the I/O port has annex to connect, described annex is earphone, usb data line, memory device etc., wherein, there is a pin to be electrically connected on the pin that can wake CPU up in the interface of annex, after annex inserts this interface, can be connected with the pin that can wake CPU up by the corresponding pin in the interface.
In step S102, when detecting the I/O port and have annex to connect, detect the type of the annex that connects.
As one embodiment of the present of invention, under the situation of mobile terminal standby, the user inserts earphone, the hardware detection of portable terminal is after have earphone to be connected to portable terminal, and notice CPU wakes portable terminal up, and automatic unlocking, bright screen, and in level signal of the I/O of portable terminal port generation, this level signal is sent to CPU, after CPU receives this level signal, analyzes the type of the annex that produces this level signal.As an alternative embodiment of the invention, what the user play is the medium of storing on the computing machine, connect computing machine and portable terminal by the usb data line, the hardware check of portable terminal is after the connection of usb data line, automatic unlocking, bright screen, and in level signal of the I/O of portable terminal port generation, this level signal is sent to CPU, after CPU receives this level signal, analyze the type of the annex that produces this level signal.
In step S103,, analyze the relevant application of type with the annex of described connection according to the type of the annex that connects.
As one embodiment of the present of invention, under the situation of mobile terminal standby, the user inserts earphone, the hardware detection of portable terminal is after have earphone to be connected to portable terminal, produce a level signal at the I/O of portable terminal port, this level signal is sent to CPU, after CPU receives this level signal, analyze the type of the annex that produces this level signal, after the type that analyzes the annex of connection is earphone, analyze relative application, judge whether the screen of portable terminal locks, if non-locking, execution in step S104 then, otherwise, automatic unlocking, bright screen, call and the earphone application corresponding, as " player ", radio ", " voice call "; " dial (of a telephone) ", the user interface of feature lists such as " recreation " or function selecting frame.As an alternative embodiment of the invention, what the user play is the medium of storing on the computing machine, connect computing machine and portable terminal by the usb data line, the hardware check of portable terminal is after the connection of usb data line, produce a level signal at the I/O of portable terminal port, this level signal is sent to CPU, after CPU receives this level signal, analyze the type of the annex that produces this level signal, after the type that analyzes the annex of connection is USB device, analyze relative application, automatic unlocking, bright screen, and call and usb data line application corresponding, as " USB flash disk ", " MODEM ", the user interface of feature lists such as " data sync " or function selecting frame.
In step S104, provide the user interface that to operate the application relevant with the type of the annex of described connection.
The structure of the system that user interface is provided that Fig. 2 provides for the embodiment of the invention for convenience of explanation, only shows the relevant part of the embodiment of the invention.Wherein, the system that user interface is provided can be the software unit that is built in portable terminal, the unit of hardware cell or soft or hard combination.In the present embodiment, this provides the system of user interface to comprise:coupling detecting unit 21, type ofattachment detecting unit 22, related applicationanalytic unit 23, user interface provideunit 24.
Wherein, type ofattachment detecting unit 22 comprises: level signal produces subelement and type of attachment is analyzed subelement.
Whethercoupling detecting unit 21 is used to detect the I/O port has annex to connect, under situation at mobile terminal standby, the user inserts annex, such as earphone or usb data line, the hardware detection of portable terminal is after have annex to be connected to portable terminal, notice CPU wakes portable terminal up, and the level signal of passing through type ofattachment detecting unit 22 produces subelement in level signal of the I/O of portable terminal port generation, this level signal is sent to CPU, after CPU receives this level signal, analyze the type that the subelement analysis produces the annex of this level signal by type of attachment, again by the type of related applicationanalytic unit 23 according to the annex that connects, analyze the relevant application of type with the annex of described connection, the user interface of the application relevant with the type of the annex of described connection is providedunit 24 to provide can to operate by user interface.
As a preferred embodiment of the present invention, this provides the system of user interface also to comprise: separate lock unit, be used in the type of related applicationanalytic unit 23 according to the annex that connects, analyze after the application relevant with the type of the annex of described connection, whether the screen of judging portable terminal locks, if locking, then release, otherwise triggeruser interface unit 24 is provided, directly carry out the described step that the user interface that can operate the application relevant with the type of the annex of described connection is provided.
In embodiments of the present invention, when portable terminal has detected the annex connection when standby, can wake portable terminal automatically up, and analyze the type of the annex connected and the application relevant with described annex, provide the user interface of corresponding function to select again for the user, increase the ease for use of portable terminal, strengthened user experience.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.