CN105068958A - Switching control method and device - Google Patents
Switching control method and device Download PDFInfo
- Publication number
- CN105068958A CN105068958A CN201510497881.7A CN201510497881A CN105068958A CN 105068958 A CN105068958 A CN 105068958A CN 201510497881 A CN201510497881 A CN 201510497881A CN 105068958 A CN105068958 A CN 105068958A
- Authority
- CN
- China
- Prior art keywords
- electronic equipment
- interface
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
The invention provides a switching control method and device. The switching control 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; and when one section of continuous contact information is detected in an edge touch area, switching the master/slave state of the first electronic equipment. When the one section of continuous contact information is detected in the edge touch area, the first electronic equipment automatically switches master/slave state, a switching purpose of the master/slave state of the electronic equipment is realized, and user experience is improved.
Description
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, during to solve that in correlation technique, two electronic equipments are direct-connected by Type-C interface, 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, 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;
When one section of continuous print contact information being detected in touch area, edge, switch the described master slave mode of described first electronic equipment.
Alternatively, the described master slave mode of described first electronic equipment 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 one section of continuous print contact information being detected in touch area, edge, 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 master slave mode is shown in the informing of graphic user interface GUI.
Alternatively, described method also comprises:
When detect a described USBType-C interface disconnect be connected with described 2nd USBType-C interface described time, in the informing of graphic user interface GUI, show 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 handover module, for when one section of continuous print contact information being detected in touch area, edge, 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 in the informing of graphic user interface GUI.
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, in the informing of graphic user interface GUI, show 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 the first electronic equipment;
When one section of continuous print contact information being detected in touch area, edge, 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 described first electronic equipment Edge detected touch area has continuous print contact information, when one section of continuous print contact information being detected in touch area, described edge, described first electronic equipment automatic switchover master slave mode, achieve the object controlling electronic equipment master slave mode and switch, improve Consumer's Experience.
In disclosure embodiment, in the informing of gui interface, can show the current residing master slave mode of electronic equipment in real time, facilitate user's unrestricted choice whether to carry out master slave mode switching, Consumer's Experience is good.
In disclosure embodiment, user only needs to carry out slide in the touch area, edge of any one electronic equipment, 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 scene schematic diagram in the switching control procedure of the disclosure according to an exemplary embodiment;
Fig. 5 is the another kind of method for handover control process flow diagram of the disclosure according to an exemplary embodiment;
Fig. 6 is a 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 in the informing of described first electronic equipment gui interface.
In disclosure embodiment, user by any one in following two kinds of modes, can switch the master slave mode of the first electronic equipment.
< mode one > initiates to switch by the first electronic equipment
In a step 102, when one section of continuous print contact information being detected on touch area, edge, switch the described master slave mode of described first electronic equipment.
In disclosure embodiment, edge touch control operation all supported by electronic equipment.In this step, if user has carried out slide in touch area, edge, then described first electronic equipment can detect one section of continuous print contact information by correlation technique in touch area, described edge, 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 equipment 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 mode between the USBType-C interface of two electronic equipments.Therefore, in disclosure embodiment, the first electronic equipment can by switching with upper type.
Described first electronic equipment after handover, can show described master slave mode equally in the informing of gui interface.
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.When user has carried out slide in the touch area, edge of described first electronic equipment, 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 one section of continuous print contact information being detected on touch area, edge, while the described step 102 of execution, described method also comprises (not shown in figure 1):
In step 103, 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 has carried out slide in touch area, described edge, while first electronic equipment switches master slave mode, 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 aforesaid way, user carries out master slave mode switching by controlling two electronic equipments to the operation of described first electronic equipment.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 the manner, described second electronic equipment, when a USBType-C interface of the 2nd USBType-C interface and described first electronic equipment that detect self connects, can show the current master slave mode of described second electronic equipment equally in the informing of the gui interface of described second electronic equipment.
User can carry out slide in the touch area, described edge of described second electronic equipment, and now the second electronic equipment detects one section of continuous print contact information, automatically can carry out the switching of master slave mode.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, after described first electronic equipment can show in the informing of gui interface that described first electronic equipment is current and is in described master slave mode, described second steering order is just received.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, the current master slave mode of described first electronic equipment can be shown in the informing of 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 a described USBType-C interface of described first electronic equipment disconnects, not-connected status can being shown in the informing of the gui interface of the first electronic equipment.
In above-described embodiment, when the first electronic equipment is connected by respective USBType-C interface with the second electronic equipment, user can carry out slide in the touch area, edge of described first electronic equipment or described second electronic equipment, thus control two electronic equipments complete master slave mode switching 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., in the informing of gui interface, described master slave mode is shown.
First electronic equipment, according to correlation technique, shows described master slave mode in the informing of gui interface, so that user determines the need of the switching carrying out master slave mode.Such as, in the informing of described first electronic equipment, " connected by Type-C interface, current device is as Host main equipment " is shown, as shown in Figure 3A.
In step 203, detect on touch area, described edge whether have one section of continuous print contact information, when one section of continuous print contact information being detected on touch area, described edge, synchronous execution step 204 and step 205.
When user has carried out slide in touch area, described edge, as shown in Figure 4, described first electronic equipment can detect one section of continuous print contact information by correlation technique on touch area, described edge, now determines that needing to perform step 204 carries out state switching.
In step 204, 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, described first electronic equipment is allowed to carry out the switching of master slave mode.
In step 205, 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 has carried out slide in touch area, described edge, 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 step 206, in the informing of gui interface, show 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 touch area, described edge on described gui interface, such as, in the informing of described first electronic equipment show " connected by Type-C interface; current device as Device from equipment ", as shown in Figure 3 B.
In step 207, when detect a described USBType-C interface disconnect be connected with described 2nd USBType-C interface described time, in the informing of gui interface, show not-connected status.
Wherein, described step 207 is not limited to perform after described step 206.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 in the informing of gui interface.Such as, in the informing of described first electronic equipment, " Type-C interface disconnects " is shown, 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 current residing master slave mode in the informing of gui interface, detect on touch area, described edge and whether there is one section of continuous print contact information, when one section of continuous print contact information being detected on touch area, described edge, described first electronic equipment carries out master slave mode switching automatically, send the first steering order to described second electronic equipment simultaneously, described second electronic equipment is made to switch the master slave mode of self according to described first steering order.In said process, user only needs to carry out slide in touch area, edge 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 5, Fig. 5 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 501, 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 502, in the informing of gui interface, described master slave mode is shown.
First electronic equipment is according to correlation technique, and the master slave mode shown in the informing of gui interface, as shown in Figure 3A, so that user determines the need of the switching carrying out master slave mode.
In step 503, 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 current master slave mode of described second electronic equipment can be shown equally, as shown in Figure 3 B by the informing of the gui interface of described second electronic equipment.
User can carry out slide in the touch area, described edge of described second electronic equipment, the master slave mode of now the second electronic equipment automatic switchover self, 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 504, 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 step 505, in the informing of gui interface, show the current master slave mode of described first electronic equipment.
Described first electronic equipment after handover, can show described master slave mode, as shown in Figure 3 B equally in the informing of described gui interface.
In step 506, when detect a described USBType-C interface disconnect be connected with described 2nd USBType-C interface described time, in the informing of gui interface, show not-connected status.
Wherein, described step 506 is not limited to perform when described step 505 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 in the informing of described gui interface, as shown in Figure 3 C.
In above-described embodiment, user only needs edge touch area on the second electronic equipment to carry out slide, 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 6, Fig. 6 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 610 and the first handover module 620.
Wherein, described acquisition module 610, 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 handover module 620, is configured to, when one section of continuous print contact information being detected on touch area, described edge, 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 first electronic equipment Edge detected touch area exists continuous print contact information, when one section of continuous print contact information being detected on touch area, described edge, described first electronic equipment automatic switchover master slave mode, achieve the object controlling electronic equipment master slave mode and switch, improve Consumer's Experience.
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 handover module 620 comprises:
Switching submodule 621, 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 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. 6, and described device also comprises: sending module 630.
Wherein, described sending module 630, 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 edge touch area on the first electronic equipment to carry out slide, the master slave mode that just can realize two electronic equipments switches, 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. 6, and described device also comprises: receiver module 640 and the second handover module 650.
Wherein, described receiver module 640, 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 650, is configured to, according to described second steering order, switch the described master slave mode of described first electronic equipment.
In above-described embodiment, user can carry out slide in edge touch area 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 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. 6, and described device also comprises: the first display module 660.
Wherein, described first display module 660, is configured to show described master slave mode in the informing of gui interface.
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. 6, and described device also comprises: the second display module 670.
Wherein, described second display module 670, be configured to when detect a described USBType-C interface disconnect be connected with described 2nd USBType-C interface described time, in the informing of gui interface, show 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;
When one section of continuous print contact information being detected on touch area, described edge, 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 120 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 120 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 (13)
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;
When one section of continuous print contact information being detected in touch area, edge, switch the described master slave mode of described first electronic equipment.
2. the method for claim 1, is characterized in that, the described master slave mode of described first electronic equipment 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.
3. the method for claim 1, is characterized in that, described when one section of continuous print contact information being detected in touch area, edge, 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.
4. 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.
5. the method for claim 1, is characterized in that, described method also comprises:
Described master slave mode is shown in the informing of graphic user interface GUI.
6. 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, in the informing of graphic user interface GUI, show not-connected status.
7. 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 handover module, for when one section of continuous print contact information being detected in touch area, edge, switches the described master slave mode of described first electronic equipment.
8. device as claimed in claim 7, 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, switch the described master slave mode of described first electronic equipment.
9. device as claimed in claim 7, 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.
10. device as claimed in claim 7, it is characterized in that, 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.
11. devices as claimed in claim 7, it is characterized in that, described device also comprises:
First display module, for showing described master slave mode in the informing of graphic user interface GUI.
12. devices as claimed in claim 7, it is characterized in that, 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, in the informing of graphic user interface GUI, show not-connected status.
13. 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 the first electronic equipment;
When one section of continuous print contact information being detected in touch area, edge, switch the described master slave mode of described first electronic equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510497881.7A CN105068958B (en) | 2015-08-13 | 2015-08-13 | Method for handover control and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510497881.7A CN105068958B (en) | 2015-08-13 | 2015-08-13 | Method for handover control and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105068958A true CN105068958A (en) | 2015-11-18 |
CN105068958B CN105068958B (en) | 2019-04-16 |
Family
ID=54498334
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510497881.7A Active CN105068958B (en) | 2015-08-13 | 2015-08-13 | Method for handover control and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105068958B (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105487955A (en) * | 2015-11-24 | 2016-04-13 | 英业达科技有限公司 | Test jig and test method for universal serial bus type C port |
CN105872902A (en) * | 2016-04-20 | 2016-08-17 | 乐视控股(北京)有限公司 | Switching device and switching system |
CN105872900A (en) * | 2016-04-20 | 2016-08-17 | 乐视控股(北京)有限公司 | Switching device |
CN105872903A (en) * | 2016-04-20 | 2016-08-17 | 乐视控股(北京)有限公司 | Switching device |
CN105956458A (en) * | 2016-04-28 | 2016-09-21 | 乐视控股(北京)有限公司 | Interaction control method and device for terminals |
CN106897239A (en) * | 2015-12-21 | 2017-06-27 | 小米科技有限责任公司 | state switching method and device |
CN107436853A (en) * | 2016-05-28 | 2017-12-05 | 深圳市京泉华科技股份有限公司 | The control method of USB Type C/PD connectors |
CN107818064A (en) * | 2016-09-14 | 2018-03-20 | 展汇科技股份有限公司 | Support the operation method of the hub of the USB of principal and subordinate's conversion |
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 |
CN108563594A (en) * | 2018-03-26 | 2018-09-21 | 联想(北京)有限公司 | A kind of data transmission method, device and USB adapter |
CN109416676A (en) * | 2016-06-29 | 2019-03-01 | 三星电子株式会社 | For determining the method and its electronic equipment of the role of electronic equipment |
WO2019084824A1 (en) * | 2017-10-31 | 2019-05-09 | 华为技术有限公司 | Electronic device having usb type-c interface, control method, and readable storage medium |
Citations (4)
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 |
CN101989246A (en) * | 2009-07-29 | 2011-03-23 | 鸿富锦精密工业(深圳)有限公司 | Electronic device capable of automatically switching master and slave equipment modes of universal serial bus (USB) |
CN102750248A (en) * | 2012-06-21 | 2012-10-24 | 中兴通讯股份有限公司 | USB (Universal Serial Bus) equipment working mode switching method and USB equipment |
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 |
-
2015
- 2015-08-13 CN CN201510497881.7A patent/CN105068958B/en active Active
Patent Citations (4)
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 |
CN101989246A (en) * | 2009-07-29 | 2011-03-23 | 鸿富锦精密工业(深圳)有限公司 | Electronic device capable of automatically switching master and slave equipment modes of universal serial bus (USB) |
CN102750248A (en) * | 2012-06-21 | 2012-10-24 | 中兴通讯股份有限公司 | USB (Universal Serial Bus) equipment working mode switching method and USB equipment |
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 (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105487955A (en) * | 2015-11-24 | 2016-04-13 | 英业达科技有限公司 | Test jig and test method for universal serial bus type C port |
CN105487955B (en) * | 2015-11-24 | 2018-05-04 | 英业达科技有限公司 | The test method of measurement jig and C type USB ports |
RU2649971C1 (en) * | 2015-12-21 | 2018-04-06 | Сяоми Инк. | Method and device for state switching |
CN106897239A (en) * | 2015-12-21 | 2017-06-27 | 小米科技有限责任公司 | state switching method and device |
EP3185131A1 (en) * | 2015-12-21 | 2017-06-28 | Xiaomi Inc. | Method and device for switching state |
US10572424B2 (en) | 2015-12-21 | 2020-02-25 | Xiaomi Inc. | Method and apparatus for switching state |
CN105872903A (en) * | 2016-04-20 | 2016-08-17 | 乐视控股(北京)有限公司 | Switching device |
CN105872900A (en) * | 2016-04-20 | 2016-08-17 | 乐视控股(北京)有限公司 | Switching device |
CN105872902A (en) * | 2016-04-20 | 2016-08-17 | 乐视控股(北京)有限公司 | Switching device and switching system |
CN105956458A (en) * | 2016-04-28 | 2016-09-21 | 乐视控股(北京)有限公司 | Interaction control method and device for terminals |
CN107436853A (en) * | 2016-05-28 | 2017-12-05 | 深圳市京泉华科技股份有限公司 | The control method of USB Type C/PD connectors |
EP3783499A3 (en) * | 2016-06-29 | 2021-05-26 | Samsung Electronics Co., Ltd. | Method for determining role of electronic device and electronic device thereof |
CN109416676A (en) * | 2016-06-29 | 2019-03-01 | 三星电子株式会社 | For determining the method and its electronic equipment of the role of electronic equipment |
CN107818064A (en) * | 2016-09-14 | 2018-03-20 | 展汇科技股份有限公司 | Support the operation method of the hub of the USB of principal and subordinate's conversion |
CN107818064B (en) * | 2016-09-14 | 2021-03-09 | 展汇科技股份有限公司 | Operation method of universal serial bus concentrator supporting master-slave conversion |
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 |
CN110520854A (en) * | 2017-10-31 | 2019-11-29 | 华为技术有限公司 | A kind of electronic equipment, control method and the readable storage medium storing program for executing of USB Type C interface |
WO2019084824A1 (en) * | 2017-10-31 | 2019-05-09 | 华为技术有限公司 | Electronic device having usb type-c interface, control method, and readable storage medium |
CN110520854B (en) * | 2017-10-31 | 2021-03-30 | 华为技术有限公司 | Electronic equipment with USB Type C interface, control method and readable storage medium |
US11036670B2 (en) | 2017-10-31 | 2021-06-15 | Huawei Technolgies Co., Ltd. | Electronic device having USB Type-C interface, control method, and readable storage |
CN108563594A (en) * | 2018-03-26 | 2018-09-21 | 联想(北京)有限公司 | A kind of data transmission method, device and USB adapter |
CN108563594B (en) * | 2018-03-26 | 2022-03-25 | 联想(北京)有限公司 | Data transmission method and device and USB adapter |
Also Published As
Publication number | Publication date |
---|---|
CN105068958B (en) | 2019-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105068958A (en) | Switching control method and device | |
CN105224494A (en) | Method for handover control and device | |
CN104318741A (en) | Bluetooth device control method and device | |
CN105468152A (en) | Terminal operation control method and device based on wearable equipment, and equipment | |
CN105117033A (en) | Connection method and device of external equipment | |
CN104703295A (en) | Network access method and network access device | |
CN104853136A (en) | Video communication method and device | |
CN105373464A (en) | Charging warning method and device of wearable equipment | |
CN105433904A (en) | Sleep state detection method, device and system | |
CN105163366A (en) | Wireless network connection method and device | |
CN104486451A (en) | Application program recommendation method and device | |
CN104468971A (en) | Method and device for connecting playing source | |
CN105071473A (en) | USB charging method and device | |
CN104837154A (en) | Wireless access point control method and device | |
CN105472706A (en) | Method and device for connection establishment | |
CN104461568A (en) | Electronic accessory recognition device and method | |
CN105120505A (en) | Method, apparatus and system for making intelligent equipment accessed to router | |
CN105224171A (en) | icon display method, device and terminal | |
CN105068467A (en) | Method and device for controlling intelligent equipment | |
CN105487680A (en) | Terminal screen capture method and apparatus and terminal | |
CN105183309A (en) | Switching control method and device | |
CN105228201A (en) | The changing method of relay router and device | |
CN106532367A (en) | Power consumption warning method and device of smart socket | |
CN105187671A (en) | Recording method and device | |
CN104881342A (en) | Terminal testing method and device |
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 |