CN105183274A - Switching control method and device - Google Patents

Switching control method and device Download PDF

Info

Publication number
CN105183274A
CN105183274A CN201510497933.0A CN201510497933A CN105183274A CN 105183274 A CN105183274 A CN 105183274A CN 201510497933 A CN201510497933 A CN 201510497933A CN 105183274 A CN105183274 A CN 105183274A
Authority
CN
China
Prior art keywords
interface
electronic equipment
usbtype
slave mode
master slave
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510497933.0A
Other languages
Chinese (zh)
Other versions
CN105183274B (en
Inventor
冯炜
熊达蔚
万旎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510497933.0A priority Critical patent/CN105183274B/en
Publication of CN105183274A publication Critical patent/CN105183274A/en
Application granted granted Critical
Publication of CN105183274B publication Critical patent/CN105183274B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a switching control method and device. The method comprises the following steps: when a situation that a first USB (Universal Serial Bus) Type-C interface is connected with a second USB Type-C interface of second electronic equipment is detected, obtaining the current master/slave state of first electronic equipment; displaying the master/slave state through a GUI (Graphical User Interface); receiving a trigger instruction of an operation body on the GUI; and according to the trigger instruction, switching the master/slave state of first electronic equipment. When the trigger instruction is received through the GUI, the first electronic equipment automatically switches the master/slave state so as to realize a switching purpose of the master/slave state of the electronic equipment to improve user experience.

Description

Method for handover control and device
Technical 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;
Described master slave mode is shown by graphic user interface GUI;
Receive the triggering command of operating body at described gui interface;
According to described triggering command, switch the described master slave mode of described first electronic equipment.
Alternatively, after obtaining the current master slave mode of described first electronic equipment, described method also comprises:
The preset icon be activated is shown by described gui interface.
Alternatively, described reception operating body, in the triggering command of described gui interface, comprising:
Described triggering command is received by described preset icon.
Alternatively, the described master slave mode of described first electronic equipment of described switching, comprising:
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 reception operating body is after the triggering command of described gui interface, and 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 equipment.
Alternatively, described method also comprises:
When detect a described USBType-C interface disconnect be connected with described 2nd USBType-C interface described time, by described graphic user interface GUI display not-connected status.
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;
First display module, for showing described master slave mode by graphic user interface GUI;
First receiver module, for receiving the triggering command of operating body at described gui interface;
First handover module, for according to described triggering command, switches the described master slave mode of described first equipment.
Alternatively, described device also comprises:
Second display module, for showing the preset icon be activated by described gui interface.
Alternatively, described first receiver module comprises:
Receive submodule, for receiving described triggering command by described preset icon.
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, switches the described master slave mode of described first 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:
Second 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 equipment.
Alternatively, described device also comprises:
3rd display module, for when detect a described USBType-C interface disconnect be connected with described 2nd USBType-C interface described time, by described graphic user interface GUI display not-connected status.
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;
Described master slave mode is shown by graphic user interface GUI;
Receive the triggering command of operating body at described gui interface;
According to described triggering command, 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, first electronic equipment shows the master slave mode of described first electronic equipment of Random assignment by graphic user interface GUI, operating body is user such as, triggering command is sent by described gui interface, make described first electronic equipment switch described master slave mode gui interface, achieve the object controlling electronic equipment master slave mode and switch, improve Consumer's Experience.
In disclosure embodiment, the preset icon be activated can be shown on graphic user interface GUI, when operating body clicks described preset icon, first electronic equipment is determined to receive triggering command, automatically carry out master slave mode switching, simple to operate, Consumer's Experience is good.
In disclosure embodiment, can show the current master slave mode of electronic equipment in real time on graphic user interface GUI, facilitate user to select whether to carry out master slave mode switching, Consumer's Experience is good.
In disclosure embodiment, operating body only needs to click preset icon on 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 graphic user interface GUI 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 current master slave mode being randomly assigned to described first electronic equipment.
In a step 102, described master slave mode is shown by graphic user interface GUI.
For the ease of operating body, such as user, understands the described master slave mode residing for current described first electronic equipment, alternatively, can show described master slave mode on the graphic user interface GUI 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 equipment.
< mode one > initiates to switch by the first electronic equipment
In step 103, the preset icon be activated is shown by described 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 preset icon, and shown the described preset icon be activated by described gui interface.Further, the described preset icon be activated can be shown in the drop-down menu hurdle of described gui interface.
In order to promote Consumer's Experience, alternatively, while described preset icon can being shown on gui interface, around described preset icon, show the current residing described master slave mode of described first electronic equipment.Such as show described master slave mode in the below of described preset icon.
If user needs the switching being carried out master-slave equipment state by described first electronic equipment, described method also comprises (not shown in figure 1):
At step 104, the triggering command of operating body at described gui interface is received.
Alternatively, described step 104 can comprise:
In step 104-1, receive described triggering command by described preset icon.
In one embodiment, triggering command wherein can be clicking operation, including but not limited to clicking, double-click etc.Such as, when user clicks the described preset icon on described gui interface, the first electronic equipment can receive described triggering command according to correlation technique by described preset icon, and now the first electronic equipment is determined to need to carry out master slave mode switching.
In step 105, according to described triggering command, switch the described master slave mode of described first electronic equipment.
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, 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.
In disclosure embodiment, when described first electronic equipment has carried out the switching of described master slave mode, the current master slave mode of described first electronic equipment can be shown equally on the described gui interface of described first electronic equipment, alternatively, around described preset icon, show described master slave mode.
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 preset 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 receive operating body after the triggering command of described gui interface, while the described step 105 of execution, described method also comprises (not shown in figure 1):
In step 106, 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 such as user clicks described preset icon to operating body, 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 after receiving described first steering order, by the master slave mode of above-mentioned master-slave equipment state switching mode synchronism switching self.
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 preset icon be activated can be shown equally by the graphic user interface GUI of described second electronic equipment, and around described preset icon, showing the current master slave mode of described second electronic equipment, the described preset icon wherein the second electronic equipment shown can be identical with the described preset icon that described first electronic equipment shows.
User can click the described preset icon on described second electronic equipment gui interface, and now the second electronic equipment carries out master slave mode switching automatically.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 preset icon be activated on the gui interface of self, and show the current residing master slave mode of described first electronic equipment around described preset 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, after receiving described second steering order, is switched by above-mentioned master slave mode switching mode.Certainly, after described first electronic equipment switches, the current residing master slave mode of described first electronic equipment can be shown equally on described first electronic equipment gui interface.
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.
In above-described embodiment, when the first electronic equipment is connected by respective USBType-C interface with the second electronic equipment, operating body can send triggering command by the preset 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 described 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 preset 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 preset icon, and shown the described preset icon be activated by described gui interface.Further, the described preset icon be activated can be shown in the drop-down menu hurdle of gui interface.
Described step 202 and described step 203 can synchronously perform, around described preset icon, show described master slave mode.Such as described master slave mode is master status, now can show main equipment in the below of described preset icon, as shown in Figure 3A.
In step 204, the triggering command of operating body is received by described preset icon.
When clicking the Type-C icon in Fig. 3 A as user, described first electronic equipment detects according to correlation technique and receives described triggering command by described preset icon, now determines the switching needing to carry out master slave mode.
In step 205, according to described triggering command, switch the described master slave mode of described first equipment.
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, described first electronic equipment is allowed to carry out the switching of master slave mode.
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 carry out the master-slave swap of self according to described first steering order.
Above-mentioned step 205 and step 206 can synchronously perform.When user clicks described preset 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, after 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 described master slave mode of described first electronic equipment.
After described first electronic equipment carries out master slave mode switching, the current master slave mode of described first electronic equipment can be shown equally around described preset 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 in the below of described preset 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, 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 preset icon be activated on gui interface, received the triggering command of operating body such as user by described preset icon after, described first electronic equipment carries out the switching of master slave mode automatically, send the first steering order to described second electronic equipment, the master slave mode making described second electronic equipment carry out self according to described first steering order switches simultaneously.In said process, user only needs to click preset 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.
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 equipment state.
In step 403, described gui interface shows the preset 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 preset icon, and shown the described preset icon be activated by described gui interface.Further, the described preset icon be activated can be shown in the drop-down menu hurdle of gui interface.
Described step 402 and described step 403 can synchronously perform, around described preset icon, show described master slave mode.The master slave mode that such as described first electronic equipment is current is master status, now can show main equipment in the below of described preset icon, 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 preset icon be activated can be shown equally by the gui interface of described second electronic equipment, and around described preset icon, showing the current master slave mode of described second electronic equipment, the described preset icon wherein the second electronic equipment shown can be identical with the described preset 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 in the below of described preset icon, as shown in Figure 3 B.
Operating body, such as user can click the described preset icon on described second electronic equipment gui interface, and now the second electronic equipment carries out master slave mode switching 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, after receiving described second steering order, is switched by above-mentioned master-slave equipment state switching mode.
In a step 406, described gui interface shows the current described master slave mode of described first electronic equipment.
Described first electronic equipment is after switching master slave mode, described master slave mode can be shown equally around described preset 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 in the below of described preset icon, 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, as shown in Figure 3 C.
In above-described embodiment, user only needs to click preset 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, first display module 520, first receiver module 530 and the first handover module 540.
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 first display module 520, is configured to show described master slave mode by graphic user interface GUI;
Described first receiver module 530, is configured to receive the triggering command of operating body at described gui interface;
Described first handover module 540, is configured to according to described triggering command, switches the described master slave mode of described first equipment.
In above-described embodiment, when the first electronic equipment is connected by respective USBType-C interface with the second electronic equipment, the triggering command of operating body such as user is received by gui interface, and then described first electronic equipment is according to described triggering command, automatic switchover master slave mode, 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 device also comprises: the second display module 550.
Wherein, described second display module 550, is configured to show by described gui interface the preset icon be activated.
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. 6, and described first receiver module 530 comprises: receive submodule 531.
Wherein, described reception submodule 531, is configured to receive described triggering command by described preset icon.
In above-described embodiment, operating body only needs to click preset icon on the first electronic equipment, and just can determine that the master slave mode needing to carry out electronic equipment switches, simple to operate, 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 first handover module 540 comprises:
Switching submodule 541, 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 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 of electronic equipment master slave mode, improves Consumer's Experience between two USBType-C interfaces.
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: sending module 560.
Wherein, described sending module 560, 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 only needs to click preset icon on the first electronic equipment, the master slave mode that just synchronously can realize two electronic equipments switches, realize easy, Consumer's Experience is good.
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 receiver module 570 and the second handover module 580.
Wherein, described second receiver module 570, 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 580, is configured to, according to described second steering order, switch the described master slave mode of described first equipment.
In above-described embodiment, user can click preset icon on the second electronic equipment, and 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 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. 5, and described device also comprises: the 3rd display module 590.
Wherein, described 3rd display module 590, 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.
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.
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;
Described master slave mode is shown by graphic user interface GUI;
Receive the triggering command of operating body at described gui interface;
According to described triggering command, switch the described master slave mode of described first equipment.
As shown in figure 12, Figure 12 is a kind of structural representation for switching control 1200 of the disclosure according to an exemplary embodiment.Such as, device 1200 can be 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.

Claims (15)

1. a method for handover control, 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;
Described master slave mode is shown by graphic user interface GUI;
Receive the triggering command of operating body at described gui interface;
According to described triggering command, switch the described master slave mode of described first electronic equipment.
2. the method for claim 1, is characterized in that, after obtaining the current master slave mode of described first electronic equipment, described method also comprises:
The preset icon be activated is shown by described gui interface.
3. method as claimed in claim 2, it is characterized in that, described reception operating body, in the triggering command of described gui interface, comprising:
Described triggering command is received by described preset icon.
4. the method for claim 1, is characterized in that, the described master slave mode of described first electronic equipment of described switching, comprising:
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 equipment.
5. the method for claim 1, is characterized in that, described reception operating body is after the triggering command of described gui interface, and 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.
6. the method for claim 1, is characterized in that, 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.
7. the method for claim 1, is characterized in that, described method also comprises:
When detect a described USBType-C interface disconnect be connected with described 2nd USBType-C interface described time, by described graphic user interface GUI display not-connected status.
8. a switching control, is characterized in that, 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;
First display module, for showing described master slave mode by graphic user interface GUI;
First receiver module, for receiving the triggering command of operating body at described gui interface;
First handover module, for according to described triggering command, switches the described master slave mode of described first electronic equipment.
9. device as claimed in claim 8, it is characterized in that, described device also comprises:
Second display module, for showing the preset icon be activated by described gui interface.
10. device as claimed in claim 9, it is characterized in that, described first receiver module comprises:
Receive submodule, for receiving described triggering command by described preset icon.
11. devices as claimed in claim 8, it is characterized in that, 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, switches the described master slave mode of described first equipment.
12. devices as claimed in claim 8, it is characterized in that, 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.
13. devices as claimed in claim 8, it is characterized in that, described device also comprises:
Second 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 equipment.
14. devices as claimed in claim 8, it is characterized in that, described device also comprises:
3rd display module, for when detect a described USBType-C interface disconnect be connected with described 2nd USBType-C interface described time, by described graphic user interface GUI display not-connected status.
15. 1 kinds of switching controls, is characterized in that, 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;
Described master slave mode is shown by graphic user interface GUI;
Receive the triggering command of operating body at described gui interface;
According to described triggering command, switch the described master slave mode of described first electronic equipment.
CN201510497933.0A 2015-08-13 2015-08-13 Method for handover control and device Active CN105183274B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510497933.0A CN105183274B (en) 2015-08-13 2015-08-13 Method for handover control and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510497933.0A CN105183274B (en) 2015-08-13 2015-08-13 Method for handover control and device

Publications (2)

Publication Number Publication Date
CN105183274A true CN105183274A (en) 2015-12-23
CN105183274B CN105183274B (en) 2019-01-11

Family

ID=54905386

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510497933.0A Active CN105183274B (en) 2015-08-13 2015-08-13 Method for handover control and device

Country Status (1)

Country Link
CN (1) CN105183274B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107977331A (en) * 2016-10-25 2018-05-01 中兴通讯股份有限公司 A kind of control method, device and terminal
CN108268409A (en) * 2016-12-30 2018-07-10 维沃移动通信有限公司 A kind of method and mobile terminal of mobile terminal connection
CN113419515A (en) * 2021-06-22 2021-09-21 上海星融汽车科技有限公司 Master-slave mode switching method, electronic equipment and vehicle diagnostic instrument

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101526930A (en) * 2008-10-13 2009-09-09 建荣集成电路科技(珠海)有限公司 USB interface master-slave machine detection device and detection method
US8447890B1 (en) * 2009-10-30 2013-05-21 Cypress Semiconductor Corporation Operation of multiple masters/hosts through a hub
CN103744821A (en) * 2014-01-10 2014-04-23 广东欧珀移动通信有限公司 Method and device for realizing USB OTG (Universal Serial Bus On-The-Go) function of mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101526930A (en) * 2008-10-13 2009-09-09 建荣集成电路科技(珠海)有限公司 USB interface master-slave machine detection device and detection method
US8447890B1 (en) * 2009-10-30 2013-05-21 Cypress Semiconductor Corporation Operation of multiple masters/hosts through a hub
CN103744821A (en) * 2014-01-10 2014-04-23 广东欧珀移动通信有限公司 Method and device for realizing USB OTG (Universal Serial Bus On-The-Go) function of mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107977331A (en) * 2016-10-25 2018-05-01 中兴通讯股份有限公司 A kind of control method, device and terminal
CN108268409A (en) * 2016-12-30 2018-07-10 维沃移动通信有限公司 A kind of method and mobile terminal of mobile terminal connection
CN113419515A (en) * 2021-06-22 2021-09-21 上海星融汽车科技有限公司 Master-slave mode switching method, electronic equipment and vehicle diagnostic instrument

Also Published As

Publication number Publication date
CN105183274B (en) 2019-01-11

Similar Documents

Publication Publication Date Title
CN105068958A (en) Switching control method and device
CN105468152A (en) Terminal operation control method and device based on wearable equipment, and equipment
CN104318741A (en) Bluetooth device control method and device
CN104703295A (en) Network access method and network access device
CN105338083A (en) Interface display method and interface display device
CN105224494A (en) Method for handover control and device
CN104853136A (en) Video communication method and device
CN105392213A (en) Method and apparatus for connection of controlled intelligent device
CN105094577A (en) Method and apparatus for application switching
CN105163366A (en) Wireless network connection method and device
CN105117033A (en) Connection method and device of external equipment
CN105159672A (en) Remote assistance method and client
CN105433904A (en) Sleep state detection method, device and system
CN104618511A (en) Intelligent device detection method and device
CN105094541A (en) Method, device and system for terminal control
CN104486451A (en) Application program recommendation method and device
CN105487805A (en) Object operating method and device
CN104506443A (en) Router setting interface display method and device
CN105472706A (en) Method and device for connection establishment
CN105068467A (en) Method and device for controlling intelligent equipment
CN104468971A (en) Method and device for connecting playing source
CN104837154A (en) Wireless access point control method and device
CN104461568A (en) Electronic accessory recognition device and method
CN105183309A (en) Switching control method and device
CN105224171A (en) icon display method, device and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant