CN108664430B - Equipment identification method and device, storage medium and electronic equipment - Google Patents
Equipment identification method and device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN108664430B CN108664430B CN201810490318.0A CN201810490318A CN108664430B CN 108664430 B CN108664430 B CN 108664430B CN 201810490318 A CN201810490318 A CN 201810490318A CN 108664430 B CN108664430 B CN 108664430B
- Authority
- CN
- China
- Prior art keywords
- interface
- preset
- type
- pin
- electronic device
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 53
- 238000001514 detection method Methods 0.000 claims abstract description 101
- 230000006870 function Effects 0.000 claims description 14
- 238000004590 computer program Methods 0.000 claims description 11
- 238000012545 processing Methods 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 10
- 230000005540 biological transmission Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 230000006399 behavior Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000009977 dual effect Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 238000005260 corrosion Methods 0.000 description 1
- 230000007797 corrosion Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
Images
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/382—Information transfer, e.g. on bus using universal interface adapter
- G06F13/385—Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
-
- 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/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0042—Universal serial bus [USB]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Power Sources (AREA)
- Telephone Function (AREA)
Abstract
The application discloses a device identification method and device, a storage medium and an electronic device. The method can be applied to electronic equipment, and when the condition that the Type-C interface of the external equipment is not connected to the Type-C interface of the electronic equipment is not detected, no detection voltage exists in a configuration channel pin of the Type-C interface of the electronic equipment, and the method comprises the following steps: detecting whether a preset trigger operation is received, wherein the preset trigger operation is an operation received from a user and used for indicating that external equipment identification is required; if the preset trigger operation is received, providing a first detection voltage for a configuration channel pin in a Type-C interface of the electronic equipment; and after the first detection voltage is provided for the configuration channel pin, the external equipment is identified through the configuration channel pin. The embodiment can effectively solve the problem that the electronic equipment cannot identify the external equipment.
Description
Technical Field
The present application belongs to the field of terminal technologies, and in particular, to a device identification method and apparatus, a storage medium, and an electronic device.
Background
At present, USB interfaces used on a plurality of terminal devices are all Type-C interfaces. The highlight of the Type-C interface is the slimmer design, faster transmission speed (up to 10Gbps), and more aggressive power transmission. And, Type-C interface supports and all can insert "positive and negative to insert" function from positive and negative both sides. However, in some cases, a problem may occur that the Type-C interface of the external device has been accessed to the Type-C interface of the electronic device, but the electronic device cannot identify the external device.
Disclosure of Invention
The embodiment of the application provides an equipment identification method and device, a storage medium and electronic equipment, and can effectively solve the problem that the electronic equipment cannot identify external equipment.
The embodiment of the application provides an equipment identification method, which is applied to electronic equipment, and when a Type-C interface of external equipment is not detected to be connected to a Type-C interface of the electronic equipment, a configuration channel pin of the Type-C interface of the electronic equipment has no detection voltage, and the method comprises the following steps:
detecting whether a preset trigger operation is received, wherein the preset trigger operation is an operation which is received from a user and used for indicating that external equipment identification is required;
if the preset trigger operation is received, providing a first detection voltage for a configuration channel pin in a Type-C interface of the electronic equipment;
and after the first detection voltage is provided for the configuration channel pin, identifying external equipment through the configuration channel pin.
The embodiment of the application provides an identification apparatus of equipment, is applied to electronic equipment, when not detecting that there is the Type-C interface of external equipment to insert the Type-C interface of electronic equipment, the configuration channel pin of the Type-C interface of electronic equipment does not have detection voltage, the apparatus includes:
the device comprises a detection module, a processing module and a processing module, wherein the detection module is used for detecting whether a preset trigger operation is received or not, and the preset trigger operation is an operation which is received from a user and used for indicating that external equipment identification is needed;
the configuration module is used for providing a first detection voltage for a configuration channel pin in a Type-C interface of the electronic equipment if the preset trigger operation is received;
and the identification module is used for identifying the external equipment through the configuration channel pin after the first detection voltage is provided for the configuration channel pin.
The embodiment of the application provides a storage medium, wherein a computer program is stored on the storage medium, and when the computer program is executed on a computer, the computer is enabled to execute the steps in the identification method of the device provided by the embodiment of the application.
The embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the processor is configured to execute the steps in the identification method of the device provided in the embodiment of the present application by calling the computer program stored in the memory.
In the embodiment of the application, when the external device adopting the Type-C interface needs to be identified, the user can send out the preset trigger operation to the electronic device. When it is detected that the preset trigger operation is received from the user, the electronic device may provide a first detection voltage for a configuration channel pin in a Type-C interface of the electronic device, so as to identify the external device. That is, this application can effectively solve when the Type-C interface of external equipment has accessed the Type-C interface of electronic equipment, but electronic equipment can't carry out the problem of discerning to external equipment.
Drawings
The technical solution and the advantages of the present invention will be apparent from the following detailed description of the embodiments of the present invention with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of an identification method of a device according to an embodiment of the present application.
Fig. 2 is a pin arrangement diagram of a Type-C female socket interface in the related art.
Fig. 3 is another schematic flow chart of an identification method of a device according to an embodiment of the present disclosure.
Fig. 4 to fig. 6 are schematic scene diagrams of an identification method of a device according to an embodiment of the present application.
Fig. 7 is a schematic flowchart of a further method for identifying a device according to this embodiment.
Fig. 8 is a schematic structural diagram of an identification device of an apparatus provided in an embodiment of the present application.
Fig. 9 is another schematic structural diagram of an identification device of an apparatus provided in an embodiment of the present application.
Fig. 10 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Fig. 11 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present invention are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the invention and should not be taken as limiting the invention with regard to other embodiments that are not detailed herein.
It is understood that the execution subject of the embodiment of the present application may be an electronic device such as a smart phone or a tablet computer.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating an identification method of a device according to an embodiment of the present disclosure. The device identification method can be applied to electronic devices. When the Type-C interface of the external equipment is not detected to be accessed into the Type-C interface of the electronic equipment, the configuration channel pin of the Type-C interface of the electronic equipment has no detection voltage. The flow of the device identification method provided in this embodiment may include the following steps:
in step S101, it is detected whether a preset trigger operation is received, the preset trigger operation being an operation received from a user to indicate that external device identification is required.
At present, USB interfaces used on a plurality of terminal devices are all Type-C interfaces. The highlight of the Type-C interface is the slimmer design, faster transmission speed (up to 10Gbps), and more aggressive power transmission. And, Type-C interface supports and all can insert "positive and negative to insert" function from positive and negative both sides.
Referring to fig. 2, fig. 2 is a pin arrangement diagram of a Type-C female socket interface in the related art. The signal processing method comprises the following steps of TX1+, TX1-, RX1+, RX1-, TX2+, TX2-, RX2+ and RX 2-are four pairs of differential signal pins, D + and D-are differential signal pins compatible with the USB2.0 standard, VBUS is a power supply pin, CC1 and CC2 are configuration channel pins, and SBU1 and SBU2 are bus pins. Through configuring the channel pins, the electronic equipment can perform identification of external equipment, role distinction of master and slave equipment, insertion identification of front and back sides and the like.
In this embodiment, when it is not detected that the Type-C interface of the external device is connected to the Type-C interface of the electronic device, the configuration channel pin of the Type-C interface of the electronic device has no detection voltage. That is to say, in this embodiment, the electronic device does not perform access detection of the Type-C interface of the external device through the configuration channel pin of the Type-C interface, but performs access detection of the Type-C interface of the external device through other manners. Only when detecting that there is the Type-C interface of external equipment to insert electronic equipment's Type-C interface, electronic equipment can provide detection voltage for its Type-C interface to external equipment discerns.
However, in some cases, a problem may occur that the Type-C interface (e.g., Type-C male connector) of the external device has already been connected to the Type-C interface (e.g., Type-C female socket interface) of the electronic device, but the Type-C interface of the electronic device cannot identify the external device.
In step S101 of the embodiment of the present application, for example, the electronic device may first detect whether a preset trigger operation is received from a user. The preset trigger operation is an operation for indicating that the external equipment needs to be identified.
If the preset trigger operation is detected not to be received, the electronic equipment can execute other operations.
If the preset trigger operation is detected to be received, the process proceeds to step S102.
In step S102, if the preset trigger operation is received, a first detection voltage is provided to a configuration channel pin in a Type-C interface of the electronic device.
In step S103, after the first detection voltage is provided to the configuration channel pin, the external device is identified through the configuration channel pin.
For example, steps S102 and S103 may include;
when the external device needs to be identified, the user can send a preset trigger operation to the electronic device. When the electronic device receives a preset trigger operation for indicating that the external device identification is required from a user, the electronic device can provide a first detection voltage for a configuration channel pin in a Type-C interface of the electronic device.
After providing the first detection voltage for the configuration channel pin in the Type-C interface of the electronic device, the electronic device may identify the external device through the configuration channel pin to determine what kind of device the external device is specific. For example, in some embodiments, the external device may be a device such as a headset using a Type-C interface or a USB flash drive using a Type-C interface.
It should be noted that the Type-C interface has three roles, which are a downlink interface, an uplink interface, and a dual role interface. When the Type-C interface of the electronic equipment is used as a downlink interface, the electronic equipment is used as main equipment, can supply power for the accessed external Type-C equipment, sends data to the external Type-C equipment, reads the data from the external Type-C equipment and the like. When the Type-C interface of the electronic equipment is used as an uplink interface, the electronic equipment is used as slave equipment, power can be obtained from the accessed external Type-C equipment, and data and the like are provided for the external Type-C equipment. When the Type-C interface of the electronic equipment is used as a dual role interface, the electronic equipment can be dynamically switched between the master equipment and the slave equipment.
For example, in this embodiment, the Type-C interface of the electronic device may be configured as a downlink interface, that is, the electronic device serves as a master device. When the Type-C interface of the external device is configured as an uplink interface, that is, the external Type-C device is used as a slave device, a configuration channel pin of the Type-C interface of the external device is connected with a pull-down resistor (the pull-down resistor may be a single resistor, or may be formed by connecting a plurality of resistors in series and/or in parallel).
It is easy to understand that, when the Type-C interface of the external device is connected to the Type-C interface of the electronic device, the configuration channel pin of the Type-C interface of the electronic device is connected to the configuration channel pin of the Type-C interface of the external device, so that the configuration channel pin of the electronic device is connected to the pull-down resistor of the configuration channel pin of the external device, and the voltage on the configuration channel pin of the electronic device is pulled down.
And for external devices with different functions (such as earphones and U disks adopting a Type-C interface) the resistance values of the pull-down resistors connected with the configuration channel pins are different. Therefore, when external devices with different functions are connected to the electronic device, the voltage of the configuration channel pin of the electronic device is pulled down to different degrees. Therefore, the electronic device can identify what kind of device the external device is by the voltage variation value of its configuration channel pin.
It can be understood that, in the embodiment of the present application, when it is required to identify an external device that uses a Type-C interface, a user may send a preset trigger operation to an electronic device. When it is detected that the preset trigger operation is received from the user, the electronic device may provide a first detection voltage for a configuration channel pin in a Type-C interface of the electronic device, so as to identify the external device. That is, this application can effectively solve when the Type-C interface of external equipment has accessed the Type-C interface of electronic equipment, but electronic equipment can't carry out the problem of discerning to external equipment.
In addition, since the electronic device in the related art continuously provides the detection voltage to the configuration channel pin of the Type-C interface, the detection voltage is generally not lower than 1.5V. Thus, if exposed to a humid environment, the configuration channel pins of the Type-C interface of the electronic device are very susceptible to corrosion. In this embodiment, when it is not detected that the Type-C interface of the external device is connected to the Type-C interface of the electronic device, the configuration channel pin of the Type-C interface of the electronic device has no detection voltage. That is, the Type-C interface of the electronic device is not always live. Therefore, the scheme of the embodiment can also protect the configuration channel pins of the Type-C interface of the electronic equipment from being corroded.
Referring to fig. 3, fig. 3 is another schematic flow chart of an apparatus identification method according to an embodiment of the present disclosure. The device identification method can be applied to electronic devices. The electronic equipment provides a second detection voltage for a preset pin of a Type-C interface of the electronic equipment, and the preset pin is a non-configuration channel pin.
When the Type-C interface of the external equipment is connected with the Type-C interface of the electronic equipment, the voltage value of the preset pin of the electronic equipment is changed. When the voltage value of the preset pin is detected to change, the electronic equipment can determine that the Type-C interface of the external equipment is connected to the Type-C interface of the electronic equipment, and trigger the configuration channel pin of the electronic equipment to provide first detection voltage so as to identify the external equipment. Wherein the second detection voltage is less than the first detection voltage.
And when the Type-C interface of the external equipment is not detected to be accessed into the Type-C interface of the electronic equipment, the pin of the configuration channel of the Type-C interface of the electronic equipment has no detection voltage. That is, when it is not detected that the Type-C interface of the external device is connected to the Type-C interface of the electronic device, the electronic device does not provide the first detection voltage for the configuration channel pin of the Type-C interface of the electronic device.
In addition, in this embodiment, a preset switch is provided on the electronic device. For example, the preset switch may be a virtual switch implemented by software, or may be a physical switch implemented by hardware, and so on. When the preset switch is turned on, the electronic device executes a step of providing a first detection voltage for a configuration channel pin in a Type-C interface of the electronic device. When the preset switch is closed, the electronic device executes the step of disconnecting the external device.
The flow of the device identification method provided in this embodiment may include:
in step S201, when it is detected that the voltage value of the preset pin changes, the electronic device determines that the Type-C interface of the external device is connected to the Type-C interface of the electronic device, and triggers to provide a first detection voltage for the configuration channel pin of the electronic device.
Referring to fig. 2, in one embodiment, one or two of the pins a1, a12, B1, and B12 may be modified to change the modified pins to non-Ground (GND) pins and provide a second detection voltage to the modified pins. The second detection voltage may be a voltage with a very low value, such as 0.1V or 0.2V, etc. For example, the a1 pin may be modified such that the a1 pin becomes a non-Ground (GND) pin and a second detection voltage is provided to the a1 pin. The modified pin can be used for realizing the access detection of the Type-C interface of the external equipment. For example, the modified pin may be referred to as an access detection pin.
Since the a1, a12, B1, B12 of external devices employing a standard (fully functional) Type-C interface are all Ground (GND) pins. Therefore, when the Type-C interface of the external device is connected to the Type-C interface of the electronic device, the voltage of the A1 pin of the Type-C interface of the electronic device is pulled down, so that the connection of the external device adopting the Type-C interface is detected.
However, some external devices currently available on the market have a non-standard (non-fully functional) Type-C interface. Some of the ground pins on the Type-C interface of these external devices may not be connected to the chip of the Type-C interface, i.e., these ground pins are in the NC (not connected) state. In this way, when the Type-C interfaces of the external devices are connected to the Type-C interface of the electronic device, the voltage of the connection detection pin (e.g., the modified a1 pin) of the electronic device is not pulled low, so that the electronic device may consider that no Type-C interface of the external device is currently connected, and the electronic device may not recognize the external device using the Type-C interface.
In this embodiment, when it is detected that the voltage value of the preset pin changes, for example, when it is detected that the voltage value of the a1 pin is pulled low, the electronic device may determine that a Type-C interface of an external device is accessed to the Type-C interface of the electronic device at this time. The electronic device may then provide a first detection voltage for its configuration channel pin.
After providing the first detection voltage for the configuration channel pin, step S204 may be entered.
In step S202, the electronic device detects whether a preset switch is turned on, wherein it is determined that a preset trigger operation is received when the preset switch is turned on, the preset trigger operation being an operation received from a user to indicate that external device identification is required.
For example, when the voltage value of the preset pin is not detected to change, the electronic device may detect whether the preset switch is turned on. When the preset switch is turned on, it can be determined that the electronic device receives a preset trigger operation from a user, where the preset trigger operation is an operation for indicating that external device identification is required.
If it is detected that the preset switch is not opened, it may be considered that the identification of the external device is not currently required.
If it is detected that the preset switch is turned on, the process proceeds to step S203.
In step S203, if it is detected that the preset switch is turned on, the electronic device determines that a preset trigger operation is received, and provides a first detection voltage for a configuration channel pin in a Type-C interface of the electronic device.
For example, when the electronic device detects that the preset switch is turned on by the user, it may be determined that the electronic device receives a preset trigger operation, that is, the external device needs to be identified currently. At this time, the electronic device may provide a first detection voltage for a configuration channel pin in a Type-C interface thereof.
In step S204, after providing the first detection voltage to the configuration channel pin of the electronic device, the electronic device identifies the external device through the configuration channel pin.
For example, after providing the first detection voltage to the configuration channel pin in the Type-C interface of the electronic device, the electronic device may identify the external device through the configuration channel pin to determine what kind of device the external device is specific. For example, in some embodiments, the external device may be a device such as a headset using a Type-C interface or a USB flash drive using a Type-C interface.
In step S205, if the external device is identified as a usb disk, the electronic device controls the preset switch to maintain an operable state.
For example, the electronic device may control the preset switch to maintain an operable state if the electronic device recognizes that the current external device is a usb disk through a change in a voltage value of a configuration channel pin of a Type-C interface of the electronic device. That is, the electronic apparatus may keep the preset switch in a state of being allowed to be operated. That is, the preset switch may allow the user to switch from the turned-on state to the turned-off state or from the turned-off state to the turned-on state at this time.
In step S206, when it is detected that the preset switch is turned off, the electronic device turns off the read-write function of the usb disk.
For example, after recognizing that the current external device is a usb disk and keeping the preset switch in an operable state, if the electronic device detects that the preset switch is switched from an opened state to a closed state, the electronic device may close the read-write function of the usb disk. That is, after the read-write function of the usb disk is turned off, the electronic device cannot read or write the usb disk. If the user still needs to read and write the USB flash disk, the user needs to re-insert the USB flash disk into the electronic device.
In step S207, if it is detected that the preset switch is not turned off and the usb disk is disconnected from the electronic device, the electronic device turns off the preset switch after a preset duration.
For example, after recognizing that the current external device is a usb disk and keeping the preset switch in an operable state, if the electronic device detects that the preset switch is not turned off by a user and the usb disk is disconnected from the electronic device, for example, the user directly pulls out the usb disk from the electronic device, the electronic device may turn off the preset switch after a preset duration.
In one embodiment, the preset time period may be 5 minutes or 10 minutes, and so on. It should be noted that, when it is detected that the preset switch is not turned off by the user and the usb disk is disconnected from the electronic device, the preset switch is turned off after a preset time period, so that the user may be prevented from frequently operating the preset switch. For example, after the user uses the first usb disk, the user directly pulls the first usb disk out of the electronic device, and needs to insert the second usb disk into the electronic device for reading and writing. In this embodiment, the mode that the preset switch is turned off after the preset duration after the first usb disk is directly pulled out from the electronic device can avoid that the user needs to turn on the preset switch again. If the preset switch is directly closed after the first USB flash disk is directly pulled out of the electronic equipment, when a user needs to insert the second USB flash disk into the electronic equipment for reading and writing, the user probably needs to open the preset switch again, and therefore the operation burden of the user is increased.
In one embodiment, the preset duration may allow the user to modify and adjust, or the electronic device may record the behavior habit of the user and then adjust the preset duration according to the behavior habit of the user. For example, the electronic device obtains, through statistics, that the user rarely inserts the usb disk into the electronic device for reading and writing within 24 hours after pulling out the usb disk, and then the electronic device may adjust the preset duration to 2 minutes. Or, the electronic device obtains, through statistics, that the user will generally insert the usb disk into the electronic device for reading and writing within 2 hours after pulling out the usb disk in the last period of time, and then the electronic device may adjust the preset duration to 10 minutes, and so on.
In step S208, if it is determined that the external device is not a usb disk, the electronic device controls the preset switch to enter an inoperable state.
For example, after providing the first detection voltage for the configuration channel pin in the Type-C interface of the electronic device, the electronic device recognizes that the currently accessed external device is not a usb disk, for example, the external device is a device such as an earphone using the Type-C interface, and then the electronic device may control the preset switch to enter the inoperable state. That is, at this time, the electronic device does not allow the preset switch to be switched to another state regardless of whether the preset switch is currently in the turned-on state or the turned-off state.
For example, the currently accessed external device is an earphone adopting a Type-C interface, a user is listening to music using the earphone, and the like, if the preset switch is in a turned-off state at this time, if the preset switch is in an operable state, if the user carelessly switches the preset switch from the turned-off state to the turned-on state, the electronic device is triggered to provide a first detection voltage for a configuration channel pin in the Type-C interface of the electronic device, and the electronic device is triggered to re-identify the external device. In this way, the playing of music is interrupted, thereby affecting the user experience.
Or, the currently accessed external device is an earphone adopting a Type-C interface, the user is listening to music using the earphone, and the like, if the preset switch is in an opened state at this time, if the preset switch is in an operable state, if the user carelessly switches the preset switch from the opened state to a closed state, the electronic device is triggered to disconnect from the external device. This can also interrupt the playing of music, affecting the user experience.
In step S209, when it is detected that the external device is disconnected from the electronic device, the electronic device controls the preset switch to be switched from the inoperable state to the operable state.
For example, after recognizing that the external device is not a usb disk and controlling the preset switch to enter the inoperable state, if it is detected that the external device is disconnected from the electronic device, the electronic device may switch the preset switch from the inoperable state to the operable state.
For example, the external device is an earphone adopting a Type-C interface, and after the user listens to music, the user dials the earphone out of the electronic device, and at this time, the preset switch may be changed from an inoperable state to an operable state. For example, if the preset switch is currently in the turned-on state, the user may be allowed to switch the preset switch to the turned-off state.
In one embodiment, the step of the electronic device controlling the preset switch to switch from the inoperable state to the operable state when the external device is detected to be disconnected from the electronic device in S209 may include:
when the external device is detected to be disconnected from the electronic device through the configuration channel pin of the electronic device, the electronic device controls the preset switch to be switched from the inoperable state to the operable state.
For example, when the earphone adopting the Type-C interface is disconnected from the electronic device, the voltage of the configuration channel pin of the Type-C interface of the electronic device may become high, that is, the electronic device may detect that the electronic device is disconnected from the earphone through the voltage change of the configuration channel pin of the Type-C interface, and at this time, the electronic device may control the preset switch to be switched from the inoperable state to the operable state.
Referring to fig. 4 to 6, fig. 4 to 6 are schematic views of scenes of an identification method of a device according to an embodiment of the present application.
For example, the electronic device provided in this embodiment is an electronic device using a Type-C interface. And, the user has reformed the a1 pin of the Type-C interface of the electronic device, so that the a1 pin becomes a non-Ground (GND) pin, and the reformed a1 pin is provided with a second detection voltage. The modified pin can be used for realizing the access detection of the Type-C interface of the external equipment. For example, in this embodiment, the modified a1 pin may be referred to as an access detection pin (preset pin). Since the a1, a12, B1, B12 of external devices employing a standard (fully functional) Type-C interface are all Ground (GND) pins. Therefore, when the Type-C interface of the external device is connected to the Type-C interface of the electronic device, the voltage of the A1 pin of the Type-C interface of the electronic device is pulled down, so that the connection of the external device adopting the Type-C interface is detected.
When the Type-C interface of the external equipment is determined to be accessed into the Type-C interface of the electronic equipment, the electronic equipment can provide first detection voltage for the configuration channel pin of the electronic equipment so as to identify the external equipment. Wherein the second detection voltage is less than the first detection voltage. And when the fact that the Type-C interface of the external equipment is not detected to be connected with the Type-C interface of the electronic equipment, the electronic equipment cannot provide a first detection voltage for a configuration channel pin of the Type-C interface of the electronic equipment.
Meanwhile, a preset switch is arranged on the electronic equipment. For example, the preset switch may be a virtual switch implemented by software. When the preset switch is turned on, the electronic device executes a step of providing a first detection voltage for a configuration channel pin in a Type-C interface of the electronic device. When the preset switch is closed, the electronic device executes the step of disconnecting the external device.
For example, as shown in fig. 4, the user accesses the earphone adopting the Type-C interface to the electronic device adopting the Type-C interface provided in the present embodiment. Wherein, the Type-C interface of the earphone is not a fully functional Type-C interface, and the A1 pin (GND pin) and the B1 pin (GND pin) of the Type-C interface of the earphone are in an NC state.
In this case, although the user has accessed the Type-C interface of the headset into the Type-C interface of the electronic device, the voltage of the access detection pin (i.e., the a1 pin) of the electronic device is not pulled low because the a1 pin and the B1 pin of the Type-C interface of the headset are in the NC state. Therefore, the electronic device may consider that there is no Type-C interface access of the external device currently, i.e., the electronic device does not recognize the headset.
At this time, when the user finds that the electronic device does not recognize the earphone, the user may enter the preset switch of the setting interface and then switch the preset switch from the turned-off state to the turned-on state, as shown in fig. 5.
When it is detected that the user switches the preset switch to the turned-on state, the electronic device may provide a first detection voltage to a configuration channel pin in a Type-C interface of the electronic device.
After providing the first detection voltage for the configuration channel pin in the Type-C interface of the electronic device, the electronic device may handshake with the external device through the configuration channel pin (i.e., establish a communication connection with the external device). After the handshake with the external device is successful, the electronic device can identify the external device through the configuration channel pin of the electronic device to determine what kind of device the external device is specific. For example, in this embodiment, the electronic device recognizes that the external device is an earphone.
After the external device is identified as the earphone, the electronic device can control the preset switch to enter the non-operable state. For example, the electronic device may lock a preset switch, thereby prohibiting a user from switching the state of the preset switch. For example, a user is currently listening to music stored in an electronic device using headphones. By controlling the preset switch to enter the inoperable state, the situation that the user carelessly switches the preset switch from the turned-on state to the turned-off state to trigger the electronic equipment to be disconnected from the earphone can be avoided, and the music playing can be interrupted to influence the user experience.
And then, the electronic equipment can detect whether the user pulls the earphone out of the electronic equipment or not through a configuration channel pin of the Type-C interface of the electronic equipment. For example, after a while, as shown in fig. 6, the user pulls the earphone out of the electronic device, the voltage of the configuration channel pin of the electronic device becomes high, so that the electronic device detects that the earphone is disconnected from the electronic device. In this case, the electronic apparatus may switch the preset switch from the inoperable state to the operable state. For example, the user directly pulls out the earphone from the electronic device, in this case, the electronic device may switch the preset switch to the turned-off state after 5 minutes if it is not detected that the Type-C interface of the other external device is connected to the Type-C interface of the electronic device. The above operation flow is shown in fig. 7.
In one embodiment, after the preset switch is switched from the inoperable state to the operable state, the electronic device may then detect whether an external device is connected through the preset pin.
In one embodiment, as shown in fig. 7, if the electronic device detects that the Type-C interface of the external device is connected to the Type-C interface of the electronic device through the preset pin, the electronic device may provide a first detection voltage for its configuration channel pin, perform a handshake with the external device through the configuration channel pin (i.e., establish a communication connection), and confirm whether the handshake between the two is successful.
If the handshake between the two devices is successful, the electronic device may identify the external device and detect whether the external device is a usb disk. If the external device is detected not to be the USB flash disk, the electronic device can keep the preset switch in an operable state. And then, if the preset switch is detected to be closed by the user, the electronic equipment can close the read-write function of the USB flash disk. If it is detected that the user directly pulls out the USB flash disk from the electronic device, the electronic device can control the preset switch to enter the turned-off state after the preset duration.
If the handshake between the electronic device and the external device is unsuccessful, the electronic device may then detect whether the external device is accessed through the preset pin. Alternatively, the electronic device may attempt to handshake with the external device again, and so on.
In one embodiment, if the preset pin does not detect the external device access using the Type-C interface, the electronic device may then detect whether the external device is accessed through the preset pin.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an identification device of an apparatus according to an embodiment of the present disclosure. The identification means of the device may be applied to an electronic device. When the Type-C interface of the external equipment is not detected to be accessed into the Type-C interface of the electronic equipment, the pin of the configuration channel of the Type-C interface of the electronic equipment has no detection voltage. The apparatus identification means 300 may comprise: a detection module 301, a configuration module 302, and an identification module 303.
The detecting module 301 is configured to detect whether a preset trigger operation is received, where the preset trigger operation is an operation received from a user and used to indicate that external device identification is required.
The configuration module 302 is configured to provide a first detection voltage for a configuration channel pin in a Type-C interface of the electronic device if the preset trigger operation is received.
The identifying module 303 is configured to identify an external device through the configuration channel pin after the first detection voltage is provided for the configuration channel pin.
In one embodiment, a second detection voltage is provided for a preset pin of a Type-C interface of the electronic device, where the preset pin is a pin without a configured channel, and the second detection voltage is smaller than the first detection voltage; when a Type-C interface of external equipment is connected to a Type-C interface of the electronic equipment, the voltage value of the preset pin changes; when the voltage value of the preset pin is detected to change, determining that a Type-C interface of external equipment is connected to the Type-C interface of the electronic equipment, providing the first detection voltage for the configuration channel pin, and identifying the external equipment.
In one embodiment, a preset switch is provided on the electronic device. The step of detecting whether a preset trigger operation is received may include:
detecting whether the preset switch is turned on, wherein when the preset switch is turned on, it is determined that a preset trigger operation is received.
Referring to fig. 9, fig. 9 is another schematic structural diagram of an identification device of an apparatus according to an embodiment of the present disclosure. In an embodiment, the apparatus 300 for identifying a device may further include: a control module 304.
The control module 304 is configured to control the preset switch to keep an operable state if the external device is identified as a usb disk; and when the preset switch is detected to be closed, controlling the electronic equipment to close the read-write function of the USB flash disk.
In one embodiment, the control module 304 may be further configured to: if the preset switch is not turned off and the USB flash disk is disconnected with the electronic equipment, the preset switch is turned off after a preset time.
In another embodiment, the control module 304 may be further configured to: and if the external equipment is not the USB flash disk, controlling the preset switch to enter an inoperable state.
In one embodiment, the control module 304 may be further configured to: and when the external equipment is detected to be disconnected with the electronic equipment, controlling the preset switch to be switched from the inoperable state to the operable state.
In one embodiment, the control module 304 may be configured to: when the external equipment is detected to be disconnected from the electronic equipment through the configuration channel pin of the electronic equipment, the preset switch is controlled to be switched from the inoperable state to the operable state.
The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed on a computer, the computer is caused to execute the steps in the identification method of the device provided by the embodiment.
The embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the processor is configured to execute the steps in the identification method of the device provided in this embodiment by calling the computer program stored in the memory.
For example, the electronic device may be a mobile terminal such as a tablet computer or a smart phone. Referring to fig. 10, fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
The electronic device 400 may include a display unit 401, a memory 402, a processor 403, and the like. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 10 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The display unit 401 may include a display screen or the like.
The memory 402 may be used to store applications and data. The memory 402 stores applications containing executable code. The application programs may constitute various functional modules. The processor 403 executes various functional applications and data processing by running an application program stored in the memory 402.
The processor 403 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device.
In this embodiment, when it is not detected that the Type-C interface of the external device is accessed to the Type-C interface of the electronic device, a configuration channel pin of the Type-C interface of the electronic device has no detection voltage, the processor 403 in the electronic device loads executable code corresponding to one or more processes of an application program into the memory 402 according to the following instructions, and the processor 403 runs the application program stored in the memory 402, so as to implement the steps of:
detecting whether a preset trigger operation is received, wherein the preset trigger operation is an operation which is received from a user and used for indicating that external equipment identification is required; if the preset trigger operation is received, providing a first detection voltage for a configuration channel pin in a Type-C interface of the electronic equipment; and after the first detection voltage is provided for the configuration channel pin, identifying external equipment through the configuration channel pin.
Referring to fig. 11, the electronic device 500 may include a display unit 501, a memory 502, a processor 503, an input unit 504, an output unit 505, and the like.
The display unit 501 may include, for example, a display screen.
The memory 502 may be used to store applications and data. Memory 502 stores applications containing executable code. The application programs may constitute various functional modules. The processor 503 executes various functional applications and data processing by running an application program stored in the memory 502.
The processor 503 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 502 and calling the data stored in the memory 502, thereby performing overall monitoring of the electronic device.
The input unit 504 may be used to receive input numbers, character information, or user characteristic information (such as a fingerprint), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
The output unit 505 may be used to display information input by or provided to a user and various graphical user interfaces of the electronic device, which may be made up of graphics, text, icons, video, and any combination thereof. The output unit may include a display panel.
In this embodiment, when it is not detected that the Type-C interface of the external device is accessed to the Type-C interface of the electronic device, a configuration channel pin of the Type-C interface of the electronic device has no detection voltage, the processor 503 in the electronic device loads executable code corresponding to one or more processes of an application program into the memory 502 according to the following instructions, and the processor 503 runs the application program stored in the memory 502, so as to implement the steps:
detecting whether a preset trigger operation is received, wherein the preset trigger operation is an operation which is received from a user and used for indicating that external equipment identification is required; if the preset trigger operation is received, providing a first detection voltage for a configuration channel pin in a Type-C interface of the electronic equipment; and after the first detection voltage is provided for the configuration channel pin, identifying external equipment through the configuration channel pin.
In one embodiment, a second detection voltage is provided for a preset pin of a Type-C interface of the electronic device, where the preset pin is a pin without a configured channel, and the second detection voltage is smaller than the first detection voltage; when a Type-C interface of external equipment is connected to a Type-C interface of the electronic equipment, the voltage value of the preset pin changes; when the voltage value of the preset pin is detected to change, determining that a Type-C interface of external equipment is connected to the Type-C interface of the electronic equipment, providing the first detection voltage for the configuration channel pin, and identifying the external equipment.
In one embodiment, a preset switch is provided on the electronic device, and when the processor 503 executes the step of detecting whether a preset trigger operation is received, it may execute: detecting whether the preset switch is turned on, wherein when the preset switch is turned on, it is determined that a preset trigger operation is received.
In one embodiment, after the step of identifying the external device, the processor 503 may further perform: if the external equipment is identified to be the USB flash disk, controlling the preset switch to keep an operable state; and when the preset switch is detected to be closed, controlling the electronic equipment to close the read-write function of the USB flash disk.
In one embodiment, after the step of controlling the preset switch to maintain the operable state, the processor 503 may further perform: if the preset switch is not turned off and the USB flash disk is disconnected with the electronic equipment, the preset switch is turned off after a preset time.
In one embodiment, after the step of identifying the external device, the processor 503 may further perform: and if the external equipment is not the USB flash disk, controlling the preset switch to enter an inoperable state.
In an embodiment, after the step of controlling the preset switch to enter the inoperable state if the external device is identified as not a usb disk, the processor 503 may further perform: and when the external equipment is detected to be disconnected with the electronic equipment, controlling the preset switch to be switched from the inoperable state to the operable state.
In one embodiment, when the processor 503 performs the step of controlling the preset switch to switch from the non-operable state to the operable state when detecting that the external device is disconnected from the electronic device, it may perform: when the external equipment is detected to be disconnected from the electronic equipment through the configuration channel pin of the electronic equipment, the preset switch is controlled to be switched from the inoperable state to the operable state.
In the above embodiments, the descriptions of the embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the identification method for the device, and are not described herein again.
The identification apparatus of the device provided in the embodiment of the present application and the identification method of the device in the above embodiments belong to the same concept, and any method provided in the identification method embodiment of the device may be run on the identification apparatus of the device, and a specific implementation process thereof is described in detail in the identification method embodiment of the device, and is not described herein again.
It should be noted that, for the identification method of the device described in the embodiment of the present application, it can be understood by those skilled in the art that all or part of the process of implementing the identification method of the device described in the embodiment of the present application may be implemented by controlling the relevant hardware through a computer program, where the computer program may be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor, and during the execution, the process of the embodiment of the identification method of the device may be included. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
For the identification device of the apparatus in the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The method, the apparatus, the storage medium, and the electronic device for identifying a device provided in the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (10)
1. The device identification method is applied to electronic equipment, and is characterized in that when a Type-C interface of external equipment is not detected to be accessed to a Type-C interface of the electronic equipment, a configuration channel pin of the Type-C interface of the electronic equipment has no detection voltage, a preset pin of the Type-C interface of the electronic equipment provides a second detection voltage, the preset pin is a non-configuration channel pin, and the preset pin is used for realizing the access detection of the Type-C interface of the external equipment, and the method comprises the following steps:
detecting whether a preset trigger operation is received, wherein the preset trigger operation is an operation which is received from a user and used for indicating that external equipment identification is required; if the preset trigger operation is received, providing a first detection voltage for a configuration channel pin in a Type-C interface of the electronic equipment, wherein the second detection voltage is smaller than the first detection voltage;
or when detecting that a second detection voltage value of the preset pin changes, determining that a Type-C interface of an external device is connected to a Type-C interface of the electronic device, and providing a first detection voltage for a configuration channel pin in the Type-C interface of the electronic device, where the change of the second detection voltage value of the preset pin includes that the second detection voltage value of the preset pin is pulled down;
and after the first detection voltage is provided for the configuration channel pin, identifying external equipment through the configuration channel pin.
2. The device identification method according to claim 1, wherein a preset switch is provided on the electronic device;
the step of detecting whether a preset trigger operation is received includes: detecting whether the preset switch is turned on, wherein when the preset switch is turned on, it is determined that a preset trigger operation is received.
3. The device identification method according to claim 2, further comprising, after the step of identifying the external device:
if the external equipment is identified to be the USB flash disk, controlling the preset switch to keep an operable state;
and when the preset switch is detected to be closed, controlling the electronic equipment to close the read-write function of the USB flash disk.
4. The device identification method according to claim 3, further comprising, after the step of controlling the preset switch to maintain an operable state:
if the preset switch is not turned off and the USB flash disk is disconnected with the electronic equipment, the preset switch is turned off after a preset time.
5. The device identification method according to claim 2, further comprising, after the step of identifying the external device:
and if the external equipment is not the USB flash disk, controlling the preset switch to enter an inoperable state.
6. The device identification method according to claim 5, further comprising, after the step of controlling the preset switch to enter an inoperable state if the external device is not a USB flash drive, the step of:
and when the external equipment is detected to be disconnected with the electronic equipment, controlling the preset switch to be switched from the inoperable state to the operable state.
7. The device identification method according to claim 6, wherein the step of controlling the preset switch to switch from the inoperable state to the operable state when the disconnection of the external device from the electronic device is detected comprises:
when the external equipment is detected to be disconnected from the electronic equipment through the configuration channel pin of the electronic equipment, the preset switch is controlled to be switched from the inoperable state to the operable state.
8. The utility model provides an identification means of equipment, is applied to electronic equipment, its characterized in that, when not detecting the Type-C interface that has external equipment and inserts the Type-C interface of electronic equipment, the configuration channel pin of the Type-C interface of electronic equipment does not have detection voltage, the preset pin of the Type-C interface of electronic equipment provides the second detection voltage, the preset pin is non-configuration channel pin, the preset pin is used for realizing the access detection of the Type-C interface of external equipment, the device includes:
the device comprises a detection module, a processing module and a processing module, wherein the detection module is used for detecting whether a preset trigger operation is received or not, and the preset trigger operation is an operation which is received from a user and used for indicating that external equipment identification is needed;
the configuration module is configured to provide a first detection voltage for a configuration channel pin in a Type-C interface of the electronic device if the preset trigger operation is received, where the second detection voltage is smaller than the first detection voltage; or, the device is further configured to determine that a Type-C interface of an external device is connected to a Type-C interface of the electronic device when it is detected that a second detection voltage value of the preset pin changes, and provide a first detection voltage for a configuration channel pin in the Type-C interface of the electronic device, where the change of the second detection voltage value of the preset pin includes that the second detection voltage value of the preset pin is pulled down;
and the identification module is used for identifying the external equipment through the configuration channel pin after the first detection voltage is provided for the configuration channel pin.
9. A storage medium having stored thereon a computer program, the computer program, when executed on a computer, causing the computer to perform the method of any one of claims 1 to 7.
10. An electronic device comprising a memory, a processor, wherein the processor is configured to perform the method of any one of claims 1 to 7 by invoking a computer program stored in the memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810490318.0A CN108664430B (en) | 2018-05-21 | 2018-05-21 | Equipment identification method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810490318.0A CN108664430B (en) | 2018-05-21 | 2018-05-21 | Equipment identification method and device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108664430A CN108664430A (en) | 2018-10-16 |
CN108664430B true CN108664430B (en) | 2020-09-08 |
Family
ID=63777175
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810490318.0A Expired - Fee Related CN108664430B (en) | 2018-05-21 | 2018-05-21 | Equipment identification method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108664430B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112333327B (en) * | 2020-11-20 | 2022-01-07 | Oppo广东移动通信有限公司 | Equipment detection method, device, storage medium, electronic equipment, external equipment and system |
CN112558741A (en) * | 2020-12-15 | 2021-03-26 | 维沃移动通信有限公司 | Protection method, protection device, electronic apparatus, readable storage medium, and chip |
CN116049055B (en) * | 2022-05-26 | 2023-09-08 | 荣耀终端有限公司 | Access identification method of electronic equipment interface and electronic equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN204391372U (en) * | 2015-01-07 | 2015-06-10 | 浙江大学 | The portable wiring board of easily extensible |
CN205406887U (en) * | 2016-03-14 | 2016-07-27 | 重庆蓝岸通讯技术有限公司 | Bull USB charging wire |
CN105975039A (en) * | 2016-04-29 | 2016-09-28 | 乐视控股(北京)有限公司 | Method and device for controlling power supply of Type-C interface, and electronic equipment |
CN106374581A (en) * | 2016-10-31 | 2017-02-01 | 维沃移动通信有限公司 | Voltage output method for charger and charger |
CN106786960A (en) * | 2017-01-13 | 2017-05-31 | 广东欧珀移动通信有限公司 | Charge control method, device and terminal |
CN107239106A (en) * | 2017-05-31 | 2017-10-10 | 珠海市魅族科技有限公司 | A kind of recognition methods of power supply adaptor and device |
CN107300965A (en) * | 2017-05-12 | 2017-10-27 | 青岛海信移动通信技术股份有限公司 | The implementation method and device of a kind of USB interface waterproof |
CN107341122A (en) * | 2017-07-25 | 2017-11-10 | 广东欧珀移动通信有限公司 | Equipment access processing method, equipment access processing unit and mobile terminal |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9588560B2 (en) * | 2014-05-28 | 2017-03-07 | Nokia Technologies Oy | Baseband PD communication over USB standard a connector |
US9984030B2 (en) * | 2014-12-31 | 2018-05-29 | Xiaomi Inc. | Electronic device and data transmission system |
CN106291210B (en) * | 2015-05-22 | 2020-05-05 | 快捷半导体(苏州)有限公司 | USB interface detector, USB interface detection method, USB connector and electronic equipment |
KR102386551B1 (en) * | 2015-07-27 | 2022-04-15 | 삼성전자주식회사 | Connecting Device and Method for Recognizing Device |
-
2018
- 2018-05-21 CN CN201810490318.0A patent/CN108664430B/en not_active Expired - Fee Related
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN204391372U (en) * | 2015-01-07 | 2015-06-10 | 浙江大学 | The portable wiring board of easily extensible |
CN205406887U (en) * | 2016-03-14 | 2016-07-27 | 重庆蓝岸通讯技术有限公司 | Bull USB charging wire |
CN105975039A (en) * | 2016-04-29 | 2016-09-28 | 乐视控股(北京)有限公司 | Method and device for controlling power supply of Type-C interface, and electronic equipment |
CN106374581A (en) * | 2016-10-31 | 2017-02-01 | 维沃移动通信有限公司 | Voltage output method for charger and charger |
CN106786960A (en) * | 2017-01-13 | 2017-05-31 | 广东欧珀移动通信有限公司 | Charge control method, device and terminal |
CN107300965A (en) * | 2017-05-12 | 2017-10-27 | 青岛海信移动通信技术股份有限公司 | The implementation method and device of a kind of USB interface waterproof |
CN107239106A (en) * | 2017-05-31 | 2017-10-10 | 珠海市魅族科技有限公司 | A kind of recognition methods of power supply adaptor and device |
CN107341122A (en) * | 2017-07-25 | 2017-11-10 | 广东欧珀移动通信有限公司 | Equipment access processing method, equipment access processing unit and mobile terminal |
Non-Patent Citations (1)
Title |
---|
一种可自动识别WIN8系统USB设备的设计与实现;肖蕾蕾等;《山西电子技术》;20150820(第3期);第37-38,61页 * |
Also Published As
Publication number | Publication date |
---|---|
CN108664430A (en) | 2018-10-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108920397B (en) | Device identification method and device, storage medium and electronic device | |
CN108664430B (en) | Equipment identification method and device, storage medium and electronic equipment | |
US8959272B2 (en) | Interposer and intelligent multiplexer to provide a plurality of peripherial buses | |
US9141141B2 (en) | Portable device and peripheral extension dock | |
CN109672950B (en) | Power saving circuit and power saving method based on Type-C earphone | |
EP1912125B1 (en) | Electronic machine, connected machine identifying method for electronic machine and control system | |
KR20160137352A (en) | Usb interface detector, detecting method, usb connector, and electronic device | |
WO2017113683A1 (en) | Usb data line comprising extension interface and control method thereof | |
CN108228509B (en) | USB interface switching device and electronic equipment | |
EP2857929B1 (en) | Information processing apparatus, information processing system, and power control method | |
CN108681514B (en) | Device detection method and device, storage medium and electronic device | |
CN109062846B (en) | Universal serial bus device and operation method thereof | |
CN203552220U (en) | Touch device of multiplex touch display screen | |
CN107480084A (en) | Type C mobile terminals charge and data transmission method, device and storage medium | |
US10289290B2 (en) | Apparatus and method for displaying a portion of a plurality of background applications | |
CN107272864B (en) | Reset circuit, battery and electronic equipment | |
CN109753470A (en) | A kind of control method, micro-control unit and computer storage medium | |
CN105589823A (en) | Method, apparatus and circuit for realizing USB (universal serial bus) interface multiplexing MHL (mobile high-definition link) | |
CN110442539B (en) | Mobile phone OTG switching method and device | |
WO2019071380A1 (en) | Sleep control method, terminal, and computer readable medium | |
CN104182189A (en) | Electronic equipment and information-processing method | |
CN109074141B (en) | Computing device with hot plug prediction circuit | |
EP2682872B1 (en) | Interposer and intelligent multiplexer to provide a plurality of peripherial buses | |
CN105446903A (en) | Information processing method and electronic device | |
CN105247499A (en) | Systems and methods for recovering higher speed communication between devices |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200908 |