Method for handover control and deviceTechnical field
The disclosure relates to communication technical field, particularly relates to method for handover control and device.
Background technology
General-purpose serial bus USB Type-C is referred to as USB-C, and it is the specification of a kind of novel USB cable and connector, and defining a whole set of the brand-new USB physical specification comprising connector, port, container and cable etc., is a part for USB3.0 interface.Following Type-CtoType-C interface, namely direct-connected two ends are all Type-C interfaces, become in the future and become more and more popular.
But in correlation technique, when two electronic equipments are direct-connected by Type-C interface, main equipment and be random definition from equipment, and once determine just cannot arbitrarily change.
Summary of the invention
In view of this, present disclose provides method for handover control and device, with solve two electronic equipments in correlation technique direct-connected by Type-C interface after, the problem that master slave mode cannot be changed.
According to the first aspect of disclosure embodiment, provide a kind of method for handover control, it is characterized in that, described method is used for the first electronic equipment, and described first electronic equipment has the first general-purpose serial bus USB Type-C interface, and described method comprises:
When detecting that a described USBType-C interface is connected with the 2nd USBType-C interface of the second electronic equipment, obtain the current master slave mode of described first electronic equipment;
The slide block icon be activated is shown by graphic user interface GUI;
When contact information being detected on described slide block icon, switch the described master slave mode of described first electronic equipment.
Alternatively, the described master slave mode of described first electronic equipment of described switching comprises:
Change the level of the mark ID pin in a described USBType-C interface, after enumerating between a described USBType-C interface and described 2nd USBType-C interface, switch the described master slave mode of described first electronic equipment.
Alternatively, described when contact information being detected on described slide block icon, described method also comprises:
Send the first steering order to described 2nd USBType-C interface by a described USBType-C interface, make described second electronic equipment switch the master slave mode of self according to described first steering order.
Alternatively, after the current master slave mode of described first electronic equipment of described acquisition, described method also comprises:
Receive described second electronic equipment is sent to a described USBType-C interface the second steering order by described 2nd USBType-C interface;
According to described second steering order, switch the described master slave mode of described first electronic equipment.
Alternatively, described method also comprises:
Described gui interface shows described master slave mode.
Alternatively, described method also comprises:
When detect a described USBType-C interface disconnect be connected with described 2nd USBType-C interface described time, described gui interface shows not-connected status.
Alternatively, when detect a described USBType-C interface disconnect be connected with described 2nd USBType-C interface described time, described method also comprises:
Lock described slide block icon.
According to the second aspect of disclosure embodiment, provide a kind of switching control, described device is used for the first electronic equipment, and described first electronic equipment has the first general-purpose serial bus USB Type-C interface, and described device comprises:
Acquisition module, for when detecting that a described USBType-C interface is connected with the 2nd USBType-C interface of the second electronic equipment, obtains the current master slave mode of described first electronic equipment;
Display module, for showing the slide block icon be activated by graphic user interface GUI;
First handover module, for when contact information being detected on described slide block icon, switches the described master slave mode of described first electronic equipment.
Alternatively, described first handover module comprises:
Switching submodule, for changing the level of the mark ID pin in a described USBType-C interface, after enumerating between a described USBType-C interface and described 2nd USBType-C interface, switch the described master slave mode of described first electronic equipment.
Alternatively, described device also comprises:
Sending module, for sending the first steering order to described 2nd USBType-C interface by a described USBType-C interface, makes described second electronic equipment switch the master slave mode of self according to described first steering order.
Alternatively, described device also comprises:
Receiver module, to be sent to the second steering order of a described USBType-C interface by described 2nd USBType-C interface for receiving described second electronic equipment;
Second handover module, for according to described second steering order, switches the described master slave mode of described first electronic equipment.
Alternatively, described device also comprises:
First display module, for showing described master slave mode on described gui interface.
Alternatively, described device also comprises:
Second display module, for when detect a described USBType-C interface disconnect be connected with described 2nd USBType-C interface described time, described gui interface shows not-connected status.
Alternatively, described device also comprises:
Locking module, for when detect a described USBType-C interface disconnect be connected with described 2nd USBType-C interface described time, lock described slide block icon.
According to the third aspect of disclosure embodiment, provide a kind of switching control, for the first electronic equipment, described first electronic equipment has the first general-purpose serial bus USB Type-C interface, comprising: processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
When detecting that a described USBType-C interface is connected with the 2nd USBType-C interface of the second electronic equipment, obtain the current master slave mode of described first electronic equipment;
The slide block icon be activated is shown by graphic user interface GUI;
When contact information being detected on described slide block icon, switch the described master slave mode of described first electronic equipment.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
In disclosure embodiment, when the first electronic equipment is connected by respective USBType-C interface with the second electronic equipment, whether the slide block icon that the gui interface that the first electronic equipment detects described first electronic equipment shows there is contact information, when contact information being detected on described slide block icon, described first electronic equipment carries out master slave mode switching automatically, achieve the object controlling electronic equipment master slave mode and switch, improve Consumer's Experience.
In disclosure embodiment, on described gui interface, can show the current residing master slave mode of electronic equipment in real time, facilitate user freely to choose and whether carry out master slave mode switching, Consumer's Experience is good.
In disclosure embodiment, user only needs to click slide block icon on the gui interface of any one electronic equipment, and two electronic equipments that just can control to be connected by Type-C interface carry out freely switching of master slave mode automatically, and simple to operate, Consumer's Experience is good.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows and meets embodiment of the present disclosure, and is used from instructions one and explains principle of the present disclosure.
Fig. 1 is a kind of method for handover control process flow diagram of the disclosure according to an exemplary embodiment;
Fig. 2 is the another kind of method for handover control process flow diagram of the disclosure according to an exemplary embodiment;
Fig. 3 A-3C is the schematic diagram of the gui interface in the switching control procedure of the disclosure according to an exemplary embodiment;
Fig. 4 is the another kind of method for handover control process flow diagram of the disclosure according to an exemplary embodiment;
Fig. 5 is a kind of switching control block diagram of the disclosure according to an exemplary embodiment;
Fig. 6 is the another kind of switching control block diagram of the disclosure according to an exemplary embodiment;
Fig. 7 is the another kind of switching control block diagram of the disclosure according to an exemplary embodiment;
Fig. 8 is the another kind of switching control block diagram of the disclosure according to an exemplary embodiment;
Fig. 9 is the another kind of switching control block diagram of the disclosure according to an exemplary embodiment;
Figure 10 is the another kind of switching control block diagram of the disclosure according to an exemplary embodiment;
Figure 11 is the another kind of switching control block diagram of the disclosure according to an exemplary embodiment;
Figure 12 is a kind of structural representation for switching control of the disclosure according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
The term used in the disclosure is only for the object describing specific embodiment, and the not intended to be limiting disclosure." one ", " described " and " being somebody's turn to do " of the singulative used in disclosure and the accompanying claims book is also intended to comprise most form, unless context clearly represents other implications.It is also understood that term "and/or" used herein refer to and comprise one or more project of listing be associated any or all may combine.
Term first, second, third, etc. may be adopted although should be appreciated that to describe various information in the disclosure, these information should not be limited to these terms.These terms are only used for the information of same type to be distinguished from each other out.Such as, when not departing from disclosure scope, the first information also can be called as the second information, and similarly, the second information also can be called as the first information.Depend on linguistic context, word as used in this " if " can be construed as into " ... time " or " when ... time " or " in response to determining ".
As shown in Figure 1, Fig. 1 is a kind of method for handover control according to an exemplary embodiment, and described method is used for the first electronic equipment, and wherein said first electronic equipment has the first general-purpose serial bus USB Type-C interface, comprises the following steps:
In a step 101, when detecting that a described USBType-C interface is connected with the 2nd USBType-C interface of the second electronic equipment, the current master slave mode of described first electronic equipment is obtained.
The electronic equipment related in disclosure embodiment can be the various equipment being provided with USBType-C interface, such as, and smart mobile phone, panel computer, personal digital assistant (PersonalDigitalAssistant, PDA) etc.
In this step, whether the USBType-C interface that the first electronic equipment can detect self by correlation technique is connected with the 2nd USBType-C interface of the second electronic equipment, when establishing described connection, obtain the current master slave mode being randomly assigned to described first electronic equipment.Understand the master slave mode residing for current described first electronic equipment for the ease of user, alternatively, described master slave mode can be shown on the gui interface of described first electronic equipment.
In disclosure embodiment, user by any one in following two kinds of modes, can switch the described master slave mode of described first electronic equipment.
< mode one > initiates to switch by the first electronic equipment
In a step 102, the slide block icon be activated is shown by graphic user interface gui interface.
In this step, when detecting that the first electronic equipment is connected by USBType-C interface with the second electronic equipment, activate described slide block icon, and shown the described slide block icon be activated by described gui interface.
In order to promote Consumer's Experience, alternatively, while described slide block icon can being shown on described gui interface, around described slide block icon, show the current residing described master slave mode of described first electronic equipment.Such as show described master slave mode on the left side of described slide block icon.
In step 103, when contact information being detected on described slide block icon, switch the described master slave mode of described first electronic equipment.
In this step, described first electronic equipment can detect on described slide block icon whether there is contact information by correlation technique, when user clicks described slide block icon, described first electronic equipment detects described contact information, now can by the level of the mark ID pin in the described USBType-C interface of change, after enumerating between a described USBType-C interface and described 2nd USBType-C interface, described first electronic equipment is allowed to carry out the switching of master slave mode.
In correlation technique, the described mark ID pin level of general acquiescence is 1, is in pull-up state.When two electronic equipments are connected by USBType-C interface, be in the described ID pin in the electronic equipment drop-down USBType-C interface of master status, its level changes to 0; Be in from the described mark ID pin level the electronic equipment USBType-C interface of equipment state constant.
When needs carry out master slave mode switching, be in the described ID pin in the electronic equipment pull-up USBType-C interface of master status, its level changes to 1 before; Meanwhile, be in from the described ID pin the electronic equipment of equipment state drop-down USBType-C interface, its level changes to 0 before, can enumerate, thus complete the switching of master-slave equipment state between the USBType-C interface of two electronic equipments.In disclosure embodiment, the first electronic equipment can by carrying out the switching of master slave mode with upper type.
Described first electronic equipment is after switching master slave mode, the current described master slave mode of described first electronic equipment can be shown equally on the described gui interface of described first electronic equipment, alternatively, described master slave mode is shown, so that user confirms the current residing state of described first electronic equipment around described slide block icon.
In addition, it should be noted that, when described first electronic equipment and described second electronic equipment to be connected by USBType-C interface and Random assignment master slave mode time, suppose that described first electronic equipment is in master status, now described second electronic equipment is in from equipment state.If user clicks the slide block icon that the described gui interface of described first electronic equipment shows, need by described first electronic equipment by described master status switch to described from equipment state time, accordingly, described second electronic equipment also needs to switch described master status by described from equipment state.Namely, when contact information being detected on described slide block icon, while the described step 103 of execution, described method also comprises (not shown in figure 1):
At step 104, send the first steering order to described 2nd USBType-C interface by a described USBType-C interface, make described second electronic equipment switch the master slave mode of self according to described first steering order.
When user clicks described slide block icon, while first electronic equipment carries out master slave mode switching, described first electronic equipment can send the two USBType-C interface of the first steering order to described second electronic equipment by the USBType-C interface of self, described second electronic equipment, when receiving described first steering order, is synchronously switched by above-mentioned master slave mode switching mode.
In aforesaid way, user is by controlling to the operation of described first electronic equipment the switching that two electronic equipments carry out master slave mode.In the disclosed embodiments, user can also carry out master slave mode switching by controlling two electronic equipments to the operation of described second electronic equipment, as follows.
< mode two > initiates to switch by the second electronic equipment
After completing described step 101, described method also comprises (not shown in figure 1):
In step 102 ' in, receive described second electronic equipment is sent to a described USBType-C interface the second steering order by described 2nd USBType-C interface.
In this step, described second electronic equipment is when a USBType-C interface of the 2nd USBType-C interface and described first electronic equipment that detect self connects, the slide block icon be activated can be shown equally by the gui interface of described second electronic equipment, and around described slide block icon, showing the current master slave mode of described second electronic equipment, the described slide block icon wherein the second electronic equipment shown can be identical with the described slide block icon that described first electronic equipment shows.
User can click the described slide block icon on described second electronic equipment gui interface, the master slave mode of now the second electronic equipment automatic switchover self.Meanwhile, described second electronic equipment can send the described USBType-C interface of described second steering order to described first electronic equipment by described 2nd USBType-C interface.
Certainly, in this way, described first electronic equipment can show the slide block icon be activated on the gui interface of self, and show the current residing described master slave mode of the first electronic equipment around described slide block icon after, just receives described second steering order.I.e. described step 102 ' just can perform after completing steps 102.
In step 103 ', according to described second steering order, switch the described master slave mode of described first electronic equipment.
Described first electronic equipment, when receiving described second steering order, is switched by above-mentioned master slave mode switching mode.Certainly, when described first electronic equipment switches master slave mode, the current master slave mode of described first electronic equipment can be shown on described first electronic equipment gui interface equally.
In addition, in the disclosed embodiments, alternatively, being connected with described 2nd the described of USBType-C interface once detect that the described USBType-C interface of described first electronic equipment disconnects, not-connected status can being shown on the gui interface of described first electronic equipment.Further, can slide block icon described in genlocing.
In above-described embodiment, when the first electronic equipment is connected by respective USBType-C interface with the second electronic equipment, user can click the slide block icon shown on the gui interface of described first electronic equipment or described second electronic equipment, thus control the switching that two electronic equipments complete master slave mode automatically, improve Consumer's Experience.
As shown in Figure 2, Fig. 2 is the another kind of method for handover control according to an exemplary embodiment, and described method is used for the first electronic equipment, and wherein said first electronic equipment has the first general-purpose serial bus USB Type-C interface, comprises the following steps:
In step 201, when detecting that a described USBType-C interface is connected with the 2nd USBType-C interface of the second electronic equipment, the current master slave mode of described first electronic equipment is obtained.
In this step, whether the USBType-C interface that the first electronic equipment can detect self by correlation technique is connected with the 2nd USBType-C interface of the second electronic equipment, when establishing described connection, obtain the current master slave mode being randomly assigned to described first electronic equipment.
In step 202., graphic user interface GUI shows described master slave mode.
First electronic equipment, according to correlation technique, described gui interface shows described master slave mode, so that user determines the need of the switching carrying out master slave mode.
In step 203, described gui interface shows the slide block icon be activated.
In this step, when detecting that the first electronic equipment is connected by USBType-C interface with the second electronic equipment, activate described slide block icon, and shown the described slide block icon be activated by described gui interface.
Described step 202 and described step 203 can synchronously perform, and show the current residing described master slave mode of described first electronic equipment around described slide block icon.Such as described master slave mode is master status, now can at the left side of described slide block icon display main equipment, and wherein slide block is positioned at the left side of described slide block icon, as shown in Figure 3A.
In step 204, detect on described slide block icon whether have contact information, when described contact information being detected on described slide block icon, synchronous execution step 205 and step 206.
When user clicks described slide block icon, described first electronic equipment detects contact information by correlation technique on described slide block icon, now determines that needing to perform step 205 carries out master slave mode switching.
In step 205, the described master slave mode of described first electronic equipment is switched.
In this step, can by the level of the mark ID pin in the described USBType-C interface of change, after enumerating between a described USBType-C interface and described 2nd USBType-C interface, switch the described master slave mode of described first electronic equipment.
In step 206, send the first steering order to described 2nd USBType-C interface by a described USBType-C interface, make described second electronic equipment switch the master slave mode of self according to described first steering order.
When user clicks described slide block icon, first electronic equipment carries out master slave mode and switches simultaneously, described first electronic equipment can send the two USBType-C interface of the first steering order to described second electronic equipment by the USBType-C interface of self, described second electronic equipment, when receiving described first steering order, is synchronously switched by above-mentioned master-slave equipment state switching mode.
In step 207, described gui interface shows the current master slave mode of described first electronic equipment.
Described first electronic equipment after handover, current described master slave mode can be shown equally around described slide block icon on described gui interface, such as described first electronic equipment is current switches to from equipment state by master status, then now can in the display of the left side of described slide block icon from equipment, wherein slide block is positioned at the right of described slide block icon, as shown in Figure 3 B.
In a step 208, when detect a described USBType-C interface disconnect be connected with described 2nd USBType-C interface described time, described gui interface shows not-connected status.
Wherein, described step 208 is not limited to perform after described step 207.In disclosure embodiment, being connected with described 2nd the described of USBType-C interface once detect that a described USBType-C interface of described first electronic equipment disconnects, just can showing not-connected status on described gui interface.
In described step 209, when detect a described USBType-C interface disconnect be connected with described 2nd USBType-C interface described time, lock described slide block icon.
Above-mentioned steps 208 and step 209 can synchronously perform, described first electronic equipment detects that a described USBType-C interface disconnects when being connected with described 2nd USBType-C interface described, while described gui interface shows not-connected status, described slide block icon is locked by correlation technique, make user can not sliding slider to carry out the switching of master slave mode, as shown in Figure 3 C.
In above-described embodiment, when the first electronic equipment is connected by respective USBType-C interface with the second electronic equipment, described first electronic equipment shows the slide block icon be activated on gui interface, detect on described slide block icon and whether there is contact information, when contact information being detected on described slide block icon, described first electronic equipment automatic switchover master slave mode, send the first steering order to described second electronic equipment simultaneously, make described second electronic equipment switch the master slave mode of self according to described first steering order.In said process, user only needs to click slide block icon on the first electronic equipment, and two electronic equipments that just can control to be connected by Type-C interface carry out freely switching of master slave mode automatically, and simple to operate, Consumer's Experience is good.
It should be noted that in the above embodiments, slide block icon is the mode switched that horizontally slips, but in actual applications, according to the actual requirements or personalized customization, can arrange and slide up and down the mode such as switching, tilt slide switching, do not limit.
As shown in Figure 4, Fig. 4 is the another kind of method for handover control according to an exemplary embodiment, and described method is used for the first electronic equipment, and wherein said first electronic equipment has the first general-purpose serial bus USB Type-C interface, comprises the following steps:
In step 401, when detecting that a described USBType-C interface is connected with the 2nd USBType-C interface of the second electronic equipment, the current master slave mode of described first electronic equipment is obtained.
In this step, whether the USBType-C interface that the first electronic equipment can detect self by correlation technique is connected with the 2nd USBType-C interface of the second electronic equipment, when establishing described connection, obtain the current master slave mode being randomly assigned to described first electronic equipment.
In step 402, graphic user interface GUI shows described master slave mode.
First electronic equipment, according to correlation technique, described gui interface shows described master slave mode, so that user determines the need of the switching carrying out master slave mode.
In step 403, described gui interface shows the slide block icon be activated.
In this step, when detecting that the first electronic equipment is connected by USBType-C interface with the second electronic equipment, activate described slide block icon, and shown the described slide block icon be activated by described gui interface.
Described step 402 and described step 403 can synchronously perform, around described slide block icon, show described master slave mode.Such as described master slave mode is master status, now can show main equipment on the left side of the described slide block icon of described first electronic equipment, as shown in Figure 3A.
Due in the disclosed embodiments, the state of the first electronic equipment switches and is controlled by the second electronic equipment, and therefore described step 403 also can not perform, namely after completing described step 402, and directly execution subsequent step 404.
In step 404, described second electronic equipment is sent to a described USBType-C interface the second steering order by described 2nd USBType-C interface is received.
In the manner, described second electronic equipment is when a USBType-C interface of the 2nd USBType-C interface and described first electronic equipment that detect self connects, the slide block icon be activated can be shown equally by the gui interface of described second electronic equipment, and around described slide block icon, showing the current master slave mode of described second electronic equipment, the described slide block icon wherein the second electronic equipment shown can be identical with the described slide block icon that described first electronic equipment shows.The master slave mode that such as described second electronic equipment is current is from equipment state, now can show from equipment on the left side of the slide block icon of described second electronic equipment, as shown in Figure 3 B.
User can click the described slide block icon on described second electronic equipment gui interface, and now the second electronic equipment carries out the switching of master slave mode automatically, after switching as shown in Figure 3A.Meanwhile, described second electronic equipment can send the described USBType-C interface of described second steering order to described first electronic equipment by described 2nd USBType-C interface.
In step 405, according to described second steering order, switch the described master slave mode of described first electronic equipment.
Described first electronic equipment, when receiving described second steering order, is switched by above-mentioned master slave mode switching mode.
In a step 406, described gui interface shows the current master slave mode of described first electronic equipment.
Described first electronic equipment after handover, described master slave mode can be shown equally around described slide block icon on described gui interface, such as described first electronic equipment is current switches to from equipment state by master status, then now can show from equipment on the left side of the described slide block icon of described first electronic equipment, as shown in Figure 3 B.
In step 407, when detect a described USBType-C interface disconnect be connected with described 2nd USBType-C interface described time, described gui interface shows not-connected status.
Wherein, described step 407 is not limited to perform after described step 406 equally.Being connected with described 2nd the described of USBType-C interface once detect that a described USBType-C interface of described first electronic equipment disconnects, just can showing not-connected status on the described gui interface of described first electronic equipment.
In a step 408, when detect a described USBType-C interface disconnect be connected with described 2nd USBType-C interface described time, lock described slide block icon.
Above-mentioned steps 407 and step 408 can synchronously perform, described first electronic equipment detects that a described USBType-C interface disconnects when being connected with described 2nd USBType-C interface described, while described gui interface shows not-connected status, described slide block icon is locked, as shown in Figure 3 C by correlation technique.
In above-described embodiment, user only needs to click slide block icon on the second electronic equipment, and two electronic equipments that just can control to be connected by Type-C interface carry out freely switching of master slave mode automatically, and simple to operate, Consumer's Experience is good.
Corresponding with aforementioned method for handover control embodiment, the disclosure additionally provides the embodiment of switching control.
As shown in Figure 5, Fig. 5 is a kind of switching control block diagram of the disclosure according to an exemplary embodiment, described device is used for described device and is used for the first electronic equipment, described first electronic equipment has the first general-purpose serial bus USB Type-C interface, and described device comprises: acquisition module 510, output module 520 and the first handover module 530.
Wherein, described acquisition module 510, is configured to, when detecting that a described USBType-C interface is connected with the 2nd USBType-C interface of the second electronic equipment, obtain the current master slave mode of described first electronic equipment;
Described output module 520, is configured to show by gui interface the slide block icon be activated;
Described first handover module 530, is configured to, when contact information being detected on described slide block icon, switch the described master slave mode of described first electronic equipment.
In above-described embodiment, when the first electronic equipment is connected by respective USBType-C interface with the second electronic equipment, whether the slide block icon that detection gui interface exports exists contact information, when contact information being detected on described slide block icon, described first electronic equipment carries out the switching of master slave mode automatically, achieve the object controlling electronic equipment master slave mode and switch, improve Consumer's Experience.
As shown in Figure 6, Fig. 6 is the another kind of switching control block diagram of the disclosure according to an exemplary embodiment, and this embodiment is on aforementioned basis embodiment illustrated in fig. 5, and described first handover module 530 comprises:
Switching submodule 531, be configured to the level of the mark ID pin changed in a described USBType-C interface, after enumerating between a described USBType-C interface and described 2nd USBType-C interface, switch the described master slave mode of described first electronic equipment.
In above-described embodiment, electronic equipment by the level of the mark ID pin in change USBType-C interface, after enumerating, can control the switching that electronic equipment carries out master slave mode automatically, improves Consumer's Experience between two USBType-C interfaces.
As shown in Figure 7, Fig. 7 is the another kind of switching control block diagram of the disclosure according to an exemplary embodiment, and this embodiment is on aforementioned basis embodiment illustrated in fig. 5, and described device also comprises: sending module 540.
Wherein, described sending module 540, is configured to send the first steering order to described 2nd USBType-C interface by a described USBType-C interface, makes described second electronic equipment switch the master slave mode of self according to described first steering order.
In above-described embodiment, first electronic equipment is while carrying out master slave mode switching, control the second electronic equipment and carry out corresponding switching, user is made only to need to click slide block icon on the first electronic equipment, the master slave mode that just can realize two electronic equipments switches, realize easy, Consumer's Experience is good.
As shown in Figure 8, Fig. 8 is the another kind of switching control block diagram of the disclosure according to an exemplary embodiment, and this embodiment is on aforementioned basis embodiment illustrated in fig. 5, and described device also comprises: receiver module 550 and the second handover module 560.
Wherein, described receiver module 550, is configured to receive described second electronic equipment is sent to a described USBType-C interface the second steering order by described 2nd USBType-C interface;
Described second handover module 560, is configured to, according to described second steering order, switch the described master slave mode of described first electronic equipment.
In above-described embodiment, when user can click slide block icon on the second electronic equipment, send described first electronic equipment of the second steering order control by the second electronic equipment and carry out corresponding master slave mode switching, realize easy, Consumer's Experience is good.
As shown in Figure 9, Fig. 9 is the another kind of switching control block diagram of the disclosure according to an exemplary embodiment, and this embodiment is on aforementioned basis embodiment illustrated in fig. 5, and described device also comprises: the first display module 570.
Wherein, described first display module 570, is configured to show described master slave mode on described gui interface.
In above-described embodiment, on the gui interface of the first electronic equipment, the current residing state of described first electronic equipment can be shown in real time, improve Consumer's Experience.
As shown in Figure 10, Figure 10 is the another kind of switching control block diagram of the disclosure according to an exemplary embodiment, and this embodiment is on aforementioned basis embodiment illustrated in fig. 5, and described device also comprises: the second display module 580.
Wherein, described second display module 580, be configured to when detect a described USBType-C interface disconnect be connected with described 2nd USBType-C interface described time, described gui interface shows not-connected status.
As shown in figure 11, Figure 11 is the another kind of switching control block diagram of the disclosure according to an exemplary embodiment, and this embodiment is on aforementioned basis embodiment illustrated in fig. 10, and described device also comprises: locking module 590.
Wherein, described locking module 590, be configured to when detect a described USBType-C interface disconnect be connected with described 2nd USBType-C interface described time, lock described slide block icon.
In above-described embodiment, can when the connection that a USBType-C interface disconnects with the 2nd USBType-C interface being detected, the current residing state of described first electronic equipment of display, locks described slide block icon simultaneously, improves Consumer's Experience in real time.
Accordingly, the disclosure also provides a kind of switching control, and for the first electronic equipment, described first electronic equipment has the first general-purpose serial bus USB Type-C interface, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
When detecting that a described USBType-C interface is connected with the 2nd USBType-C interface of the second electronic equipment, obtain the current master slave mode of the first electronic equipment;
The slide block icon be activated is shown by gui interface;
When contact information being detected on described slide block icon, switch the described master slave mode of described first electronic equipment.
As shown in figure 12, Figure 12 is a kind of block diagram for switching control 1200 of the disclosure according to an exemplary embodiment.Such as, device 1200 can be various intelligent terminal, and this terminal can be specially mobile phone, computing machine, digital broadcast terminal, messaging devices, smart jack, intelligent sphygmomanometer, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Figure 12, device 1200 can comprise following one or more assembly: processing components 1202, storer 1204, power supply module 1206, multimedia groupware 1208, audio-frequency assembly 1210, the interface 1212 of I/O (I/O), sensor module 1214, and communications component 1216.
The integrated operation of the usual control device 1200 of processing components 1202, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 1202 can comprise one or more processor 1220 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 1202 can comprise one or more module, and what be convenient between processing components 1202 and other assemblies is mutual.Such as, processing components 1202 can comprise multi-media module, mutual with what facilitate between multimedia groupware 1208 and processing components 1202.
Storer 1204 is configured to store various types of data to be supported in the operation of device 1200.The example of these data comprises for any application program of operation on device 1200 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 1204 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that power supply module 1206 is device 1200 provide electric power.Power supply module 1206 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 1200 and be associated.
Multimedia groupware 1208 is included in the screen providing an output interface between described device 1200 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 1208 comprises a front-facing camera and/or post-positioned pick-up head.When device 1200 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 1210 is configured to export and/or input audio signal.Such as, audio-frequency assembly 1210 comprises a microphone (MIC), and when device 1200 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 1204 further or be sent via communications component 1216.In certain embodiments, audio-frequency assembly 1210 also comprises a loudspeaker, for output audio signal.
I/O interface 1212 is for providing interface between processing components 1202 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 1214 comprises one or more sensor, for providing the state estimation of various aspects for device 1200.Such as, sensor module 1214 can detect the opening/closing state of device 1200, the relative positioning of assembly, such as described assembly is display and the keypad of device 1200, the position of all right pick-up unit 1200 of sensor module 1214 or device 1200 assemblies changes, the presence or absence that user contacts with device 1200, the temperature variation of device 1200 orientation or acceleration/deceleration and device 1200.Sensor module 1214 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 1214 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 1214 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer, microwave remote sensor or temperature sensor.
Communications component 1216 is configured to the communication being convenient to wired or wireless mode between device 1200 and other equipment.Device 1200 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 1216 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 1216 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 1200 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 1204 of instruction, above-mentioned instruction can perform said method by the processor 1220 of device 1200.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
Those skilled in the art, at consideration instructions and after putting into practice invention disclosed herein, will easily expect other embodiment of the present disclosure.The disclosure is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
The foregoing is only preferred embodiment of the present disclosure, not in order to limit the disclosure, all within spirit of the present disclosure and principle, any amendment made, equivalent replacements, improvement etc., all should be included within scope that the disclosure protects.