Embodiment
The method and apparatus of realization mobile phone USB according to the embodiment of the invention being bound below in conjunction with accompanying drawing provides description more specifically.
According to one embodiment of present invention, a kind of method that realizes that mobile phone USB binds is provided.Fig. 1 illustrates the process flow diagram according to the method for the realization mobile phone USB binding of this embodiment of the invention, and the method that present embodiment provides comprises following content:
S110, carry out USB when connecting at mobile phone, whether the prompting user launches the USB binding function, and wherein, said USB binding function is that mobile phone is connected to the function that other equipment provide service on net through USB;
Specifically, when mobile phone is connected to computing equipment (for example computing machine, other mobile phones, portable mobile apparatus etc.) through the USB connecting line, can point out the user whether to launch the USB binding function in the mobile phone earlier.In a preferred exemplary of the present invention, can inquire whether the user launches the USB binding function through the form of graphical dialog.
The operational order of S120, reception user input, said operational order is used to indicate whether to launch the USB binding function;
Specifically, can receive the operational order that is used to indicate whether to launch the USB binding function that the user imports through input equipment.For example, the user can import said operational order through touching specific region in the graphical interfaces or the specific button of pushing on the cell phone keyboard.
When if the USB binding function is launched in the said operational order indication of S130, then start the USB binding function of mobile phone;
Specifically, if the USB binding function is launched in user's decision, then can start the USB binding function of mobile phone for the user.
When if the USB binding function is not launched in the said operational order indication of S140, then start the access facility of the memory unit in the mobile phone;
Specifically, if the USB binding function is not launched in user's decision, then can be merely the access facility that the user enables the memory unit in the mobile phone.
Like this, through carry out directly pointing out the user whether need launch the USB binding function of mobile phone when USB connects at mobile phone, can make the user launch the USB binding function of mobile phone easily.
In addition, in the method that the realization mobile phone USB according to the foregoing description binds, can utilize various suitable processing to start the USB binding function of mobile phone according to different situations.
Specifically, when the mobile phone of An Zhuo system connected through USB, mobile phone was in the google pattern of acquiescence, i.e. USB port pattern.Under this USB port pattern; If ADB is (Android Debug Bridge; The tall and erect debugging of peace bridge) be enabled, can start the USB binding function of mobile phone through ADB order or SCSI (small computer system interface) order, so as with mobile phone from the USB port mode switch to the USB binding pattern; And if ADB is under an embargo, then can start the USB binding function of mobile phone through scsi command so that with mobile phone from the USB port mode switch to the USB binding pattern.
In one embodiment of the invention, under the situation that mobile phone is under the USB port pattern and ADB is enabled, can use any in ADB order or the scsi command, with mobile phone from the USB port mode switch to the USB binding pattern.
In another embodiment of the present invention, mobile phone be under the USB port pattern and the forbidden situation of ADB under, can use scsi command, mobile phone is switched to the USB binding pattern.As a concrete example, can, mobile phone increase do_scsi_command function branch such as SC_SWTETHER in driving, to realize from the USB port mode switch to the USB binding pattern.
Thus, realized mobile phone is switched to the USB binding pattern.
The embodiments of the invention of more than describing are merely example, the invention is not restricted to this but can also carry out other suitable remodeling or modifications.For example, with reference to figure 2, in another embodiment of the present invention, also be included in the access facility that further enables the memory unit in the mobile phone under the situation of the USB binding function that enables mobile phone.Fig. 2 shows the process flow diagram according to the method for the realization mobile phone USB binding of this embodiment.
In method shown in Figure 2, the step S110 that describes among the processing of step S210, S220, S230, S240 and Fig. 1, S120, S130, S140 are similar, no longer give unnecessary details so that instructions keeps succinct at this.
As shown in Figure 2; Under the situation of the USB binding function that enables mobile phone; This side also comprises: step S250, ADB port of increase, and wherein, said USB binding function takies the data that an ADB port transmits said service on net; Said USB binding function transmits the data in the said memory unit through an ADB port that increases, so that mobile phone is realized the access facility of USB binding function and memory unit simultaneously;
As an example; Under the situation that mobile phone USB binding function is activated, (be that mobile phone is in the USB binding pattern; Wherein the USB binding function takies an ADB port); Can increase the ADB port, the ADB port through said increase transmits the data in the said memory unit, so that carry out data interaction with mobile phone.Thus, mobile phone is realized the access facility of USB binding function and memory unit simultaneously.
Through enabling the access facility of the memory unit in the mobile phone by this way, can be implemented under the situation of USB binding function of mobile phone simultaneously to the access of memory unit in the mobile phone, be user-friendly to.
The embodiments of the invention of more than describing are merely example, the invention is not restricted to this but can also carry out other suitable remodeling or modifications.For example, with reference to figure 3, in another embodiment of the present invention, can also comprise the processing of the USB binding function of closing mobile phone.Fig. 3 shows the process flow diagram according to the method for the realization mobile phone USB binding of this embodiment.
In method shown in Figure 3, the step S210 that describes among the processing of step S310, S320, S330, S340, S350 and Fig. 2, S220, S230, S240, S350 are similar, no longer give unnecessary details so that instructions keeps succinct at this.
As shown in Figure 3; Under the situation that mobile phone USB binding function is enabled; If the user hopes to close the USB binding function, the user can indicate (for example, through the touch operation of mobile phone interface being sent the instruction of closing the USB binding function) to close the USB binding function of mobile phone.In this case, as a preferred exemplary,, can utilize ADB port (for example, increase be used for realizing ADB port) to close the USB binding function of mobile phone to the access of the memory unit of mobile phone for example at step S360 place.
Thus, the user can close the USB binding function of mobile phone easily.
The method of binding with above-mentioned realization mobile phone USB is similar, and with reference to figure 4, the embodiment of the invention also provides corresponding device thereof.Fig. 4 shows the device of realizing that according to an embodiment of the invention mobile phone USB binds.
As shown in Figure 4, the device of binding according to the realization mobile phone USB of the embodiment of the invention can comprise Tip element 410, receiving element 420, bind start unit 430 and access start unit 440.
Wherein, Tip element 410 can be when mobile phone carries out the USB connection, and whether the prompting user launches the USB binding function, and wherein, said USB binding function is that mobile phone is connected to the function that other equipment provide service on net through USB.Receiving element 420 can be used to receive the operational order of user's input, and said operational order is used to indicate whether to launch the USB binding function.Indicate when launching the USB binding function if binding start unit 430 can be used for said operational order, then start the USB binding function of mobile phone.Do not launch the USB binding function if access start unit 440 can be used for said operational order indication, then start the access facility of the memory unit in the mobile phone.
Like this, the device through the realization mobile phone USB according to the embodiment of the invention binds can make the user launch the USB binding function of mobile phone easily.
In said apparatus; Binding start unit can be further used for: when mobile phone is in the USB port pattern; And when the tall and erect debugging of peace bridge ADB is enabled; Start the USB binding function of mobile phone through ADB order or small computer system interface scsi command, so as with mobile phone from the USB port mode switch to the USB binding pattern; Perhaps be in the USB port pattern when mobile phone, and the tall and erect debugging of peace bridge ADB is when being under an embargo, starts the USB binding function of mobile phone through scsi command, so as with mobile phone from the USB port mode switch to the USB binding pattern.
In an example of the present invention, under the situation that mobile phone is under the google pattern and ADB is enabled, bind start unit and can use any in ADB order or the scsi command, mobile phone is switched to the USB binding pattern.
In another example of the present invention, mobile phone be under the google pattern and the forbidden situation of ADB under, bind start unit and can use scsi command, mobile phone is switched to the USB binding pattern.As a concrete example, can, mobile phone increase do_scsi_command function branch such as SC_SWTETHER in driving, to realize switching to the USB binding pattern.
Thus, realized mobile phone is switched to the USB binding pattern.
The embodiments of the invention of more than describing are merely example, the invention is not restricted to this but can also carry out other suitable remodeling or modifications.
In another embodiment of the present invention, the device of above-mentioned realization mobile phones universal serial bus USB binding can also comprise that port increases the unit.Fig. 5 illustrates the device according to the realization mobile phone USB binding of this embodiment of the invention.As shown in Figure 5, the device of binding according to the realization mobile phone USB of this embodiment comprises Tip element 510, receiving element 520, bind start unit 530, access start unit 540 and port increases unit 550.Wherein, Tip element 510, receiving element 520, bind start unit 530, access start unit 540 with Tip element 410, receiving element 420 shown in Figure 4, bind start unit 430, access start unit 440 is similar, repeat no more so that instructions keeps succinctly at this.
Said port increases the unit and is used to increase an ADB port; Wherein, Said USB binding function takies the data that an ADB port transmits said service on net; Said USB binding function transmits the data in the said memory unit through an ADB port that increases, so that mobile phone is realized the access facility of USB binding function and memory unit simultaneously.
Through enabling the access facility of the memory unit in the mobile phone by this way, can be implemented under the situation of USB binding function of mobile phone the access of memory unit in the mobile phone, be user-friendly to.
In another embodiment of the present invention, the device of above-mentioned realization mobile phones universal serial bus USB binding can also can further include closing unit.Said closing unit is used to utilize an ADB port of increase to close the USB binding function of mobile phone.Fig. 6 illustrates the device according to the realization mobile phone USB binding of this embodiment of the invention.
As shown in Figure 6, the device of binding according to the realization mobile phone USB of this embodiment comprises Tip element 610, receiving element 620, binds start unit 630, access start unit 640, port increase unit 650 and closing unit 660.Wherein, Tip element 610, receiving element 620, bind that start unit 630, access start unit 640, port increase unit 650 and Fig. 4, parts shown in Figure 5 are similar, repeat no more so that instructions keeps succinct at this.
As a preferred exemplary, closing unit 660 can utilize ADB port (for example, increase be used for realizing the ADB port to the access of the memory unit of mobile phone) to close the USB binding function of mobile phone.
Thus, the user can close the USB binding function of mobile phone easily.
Said apparatus according to the embodiment of the invention is corresponding with method technically, can no longer give unnecessary details so that instructions keeps succinct at this referring to the detailed description of method about the ins and outs of device.
An alternative embodiment of the invention also provides a kind of mobile phone.The said mobile phone of said mobile phone comprises the device of binding according to any described realization mobile phones universal of the foregoing description serial bus USB.In addition, said mobile phone also comprises: radio circuit, voicefrequency circuit, power circuit.
Wherein, said radio circuit can be set up communicating by letter of mobile phone and wireless network, realizes the Data Receiving and the transmission of mobile phone and wireless network; Said voicefrequency circuit can be gathered sound and the sound of gathering is converted into voice data; So that said mobile phone sends said voice data through said radio circuit to wireless network; And/or with said mobile phone through said radio circuit from the voice data that wireless network receives, be reduced to sound and play this sound to the user; Said power circuit can be used to each circuit or the device power supply of said mobile phone.
Although above to be example with the mobile phone be described the method and apparatus of realization mobile phones universal serial bus USB binding function according to the present invention, the present invention only is limited to mobile phone, but can be applied to use any user terminal of An Zhuo system.
An alternative embodiment of the invention also provides the terminal device of a kind of An Zhuo of use system.This terminal device for example can comprise: according to the device of the described realization general-purpose serial bus USB binding of any the foregoing description; Power supply, said power supply are used for said power terminal equipment; Shell; Circuit board, said circuit board is placed in said enclosure; Input/output device, said input/output device is placed on the said shell, and is electrically connected with said circuit board; Communication unit, said communication unit and external network communicate.
Specifically, said input/output device for example can be the combination of touch-screen or keyboard and display screen etc.
Said communication unit for example can be the parts of any appropriate such as WiFi module, 3G communications component, bluetooth module.
In addition, the terminal device according to the use An Zhuo system of the embodiment of the invention can also comprise selectable unit (SU)s such as microphone, loudspeaker.
In specific embodiment of the present invention, said terminal device for example can be human-computer interaction terminal, e-book or other suitable terminal devices.
It should be appreciated by those skilled in the art that the function that is divided into of apparatus module is divided in the embodiment of the invention, actual concrete structure can be the fractionation or the merging of above-mentioned functions module.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
The scheme of the content record of claim also is the protection domain of the embodiment of the invention.
One of ordinary skill in the art will appreciate that all or part of processing in the foregoing description method is to instruct relevant hardware to accomplish through program, described program can be stored in a kind of computer-readable recording medium.
The above is merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.