WO2018120498A1 - 一种转接装置以及设备识别方法和设备识别装置 - Google Patents

一种转接装置以及设备识别方法和设备识别装置 Download PDF

Info

Publication number
WO2018120498A1
WO2018120498A1 PCT/CN2017/080130 CN2017080130W WO2018120498A1 WO 2018120498 A1 WO2018120498 A1 WO 2018120498A1 CN 2017080130 W CN2017080130 W CN 2017080130W WO 2018120498 A1 WO2018120498 A1 WO 2018120498A1
Authority
WO
WIPO (PCT)
Prior art keywords
usb interface
signal pin
channel configuration
configuration signal
resistance
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.)
Ceased
Application number
PCT/CN2017/080130
Other languages
English (en)
French (fr)
Inventor
刘峰
杨江涛
许建军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to HK18109668.2A priority Critical patent/HK1250283B/zh
Priority to US16/474,655 priority patent/US10817449B2/en
Priority to EP17886456.7A priority patent/EP3553897B1/en
Priority to CN201780005422.XA priority patent/CN108513688B/zh
Publication of WO2018120498A1 publication Critical patent/WO2018120498A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/387Information transfer, e.g. on bus using universal interface adapter for adaptation of different data processing systems to different peripheral devices, e.g. protocol converters for incompatible systems, open system
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • G06F13/4295Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus using an embedded synchronisation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/66Structural association with built-in electrical component
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Definitions

  • the present application relates to the field of data processing, and in particular, to an adapter device, a device identification method, and a device identification device.
  • Electronic products are usually charged through interfaces, data connections with other external devices, etc. With the diversification of electronic products, the types of interfaces for electronic products are various. In order to realize the connection between electronic devices using different interfaces, a device called a switching device is usually used, and the switching device can transfer different standard interfaces to realize interconnection between the two electronic devices.
  • the first device can be connected to the second device through the switching device.
  • the USB TYPE-C interface of the switching device is connected to the first device, and the MICRO-USB interface is connected to the second device, and the first device is connected.
  • the USB TYPE-C Universal Serial Bus Type C, TYPE-C
  • the universal serial bus interface is defined.
  • the first device needs to realize the identification of the DFP device and the UFP device in the same switching device, the current USB TYPE-C interface on the market is transferred to the MICRO-USB interface.
  • the DFP and UFP functions of the adapter are not implemented in accordance with the USB TYPE-C protocol. Therefore, the same device cannot meet the DFP (Downstream Facing-Port, downlink) according to the USB TYPE-C protocol.
  • the data stream port is identified by the device and the Upstream Facing-Port (UFP) device, which limits the user's use.
  • UFP Upstream Facing-Port
  • the embodiment of the present application provides an adapter device, a device identification method, and a device identification device, which can simultaneously satisfy the first device to identify the DFP device and the UFP device according to the USB TYPE-C protocol in the same switching device.
  • a switching device includes: a first USB interface and a second USB interface, wherein the first USB interface is a USB TYPE-C interface, and the second USB interface includes an identification ID (identification) a foot; wherein, the power signal pin VBUS of the first USB interface is electrically connected to the power signal pin VBUS of the second USB interface; the first channel configuration signal pin of the first USB interface passes through the first resistor and the second USB interface The ID pin is electrically connected; the ID pin of the second USB interface is electrically connected to the power signal pin VBUS of the second USB interface through the second resistor; wherein the resistance of the first resistor satisfies the first device according to the USB TYPE-C protocol Standard for the identification of UFP devices, The sum of the resistance of one resistor and the resistance of the second resistor satisfies the standard for the first device to recognize the DFP device according to the USB TYPE-C protocol, and the first device is a device with a USB TYPE-C interface.
  • the first USB interface is a USB TYPE-C interface
  • the second USB interface can be electrically connected to the second device.
  • the first resistor is connected in series with the first USB interface.
  • the first resistor and the second resistor are connected in series to the first channel configuration signal pin of the first USB interface and the power signal pin of the second USB interface.
  • the resistance of the first resistor satisfies the standard of the first device in accordance with the USB TYPE-C protocol for identifying the UFP device
  • the sum of the resistance of the first resistor and the resistance of the second resistor satisfies the first device according to
  • the USB TYPE-C protocol identifies the DFP device. Therefore, the switching device can simultaneously satisfy the first device to identify the DFP device and the UFP device according to the USB TYPE-C protocol.
  • the switching device is electrically connected to the USB interface of the first device through the first USB interface, and the switching device is electrically connected to the USB interface of the second device through the second USB interface.
  • the ID pin of the second USB interface is electrically connected to the ID pin of the USB interface of the second device through the switching device; when the ID pin of the USB interface of the second device is floating on the second device side, the first device The second device is identified as a DFP device; when the ID pin of the USB interface of the second device is grounded on the second device side, the first device identifies the second device as a UFP device.
  • the first resistor and the second device are respectively connected to the first and second USB interfaces of the switching device, and the ID pin of the USB interface of the second device is floating on the second device side
  • the resistor is connected in series between the first channel configuration signal pin of the first USB interface and the power signal pin VBUS of the second USB interface, and pulls up the voltage of the first channel configuration signal pin, and the first device can follow the USB
  • the TYPE-C protocol identifies that the second device is a DFP device; when the first device and the second device are respectively connected to the first and second USB interfaces of the switching device, and the ID pin of the USB interface of the second device is on the second device side
  • the first resistor is connected in series between the first channel configuration signal pin of the first USB interface and the ID pin of the second USB interface, and is grounded through the ID pin of the second USB interface, and the first resistor is connected to the first channel.
  • the voltage of the configuration signal pin is pulled down, and the first device can identify the second device inserted by the second USB
  • the resistance of the first resistor is 5.1 ⁇ (1 ⁇ a)K ⁇
  • the resistance of the second resistor is 51 ⁇ (1 ⁇ b)K ⁇ , where a ⁇ [0,0.2], b ⁇ [0,0.2].
  • the resistance of the first resistor is 5.1 K ⁇
  • the resistance of the second resistor is 51 K ⁇ .
  • the second channel configuration signal pin of the first USB interface is floating; wherein the first channel configuration signal pin is USB TYPE-C in the USB TYPE-C protocol.
  • the channel configuration signal pin CC1 of the interface, the second channel configuration signal pin is the channel configuration signal pin CC2 of the USB TYPE-C interface in the USB TYPE-C protocol; or the first channel configuration signal pin is USB TYPE-C
  • the channel configuration signal pin CC2 of the USB TYPE-C interface in the protocol, and the second channel configuration signal pin are the channel configuration signal pin CC1 of the USB TYPE-C interface in the USB TYPE-C protocol.
  • CC1 and CC2 Two channel configuration signal pins (CC1 and CC2) are included in the USB TYPE-C interface, and CC1 and CC2 can be used as the first channel configuration signal pins to implement the solution in the first aspect, thereby improving the implementation of the switching device structure. Flexibility.
  • the first data signal pin D+ of the first USB interface is electrically connected to the first data signal pin D+ of the second USB interface; the second of the first USB interface The data signal pin D- is electrically connected to the second data signal pin D- of the second USB interface.
  • the second USB interface includes at least one of the following interfaces: a MICRO-USB interface and a mini-USB interface.
  • the first USB interface of the switching device is a male port or a female port
  • the second USB interface is a male port or a female parent port
  • the USB TYPE of the first device is The C interface is the female port
  • the USB interface of the first device is the male port
  • the USB interface of the second device is the female port
  • the second USB interface is the female port
  • the USB interface of the second device is a male port.
  • a device identification method using any of the above switching devices including: when the switching device is electrically connected to the second device through the second USB interface, and the switching device passes the first USB interface and the first When a device is electrically connected, the first device identifies the second device as a UFP device or a DFP device according to an equivalent electrical parameter of the first channel configuration signal pin of the first device.
  • the first USB interface is a USB TYPE-C interface
  • the second USB interface can be electrically connected to the second device.
  • the first resistor is connected in series with the first USB interface.
  • the first resistor and the second resistor are connected in series to the first channel configuration signal pin of the first USB interface and the power signal pin of the second USB interface
  • the resistance of the first resistor satisfies the standard of the first device in accordance with the USB TYPE-C protocol for identifying the UFP device
  • the sum of the resistance of the first resistor and the resistance of the second resistor satisfies the first device according to The standard of the identification of the DFP device by the USB TYPE-C protocol.
  • the switching device when the switching device is electrically connected to the second device through the second USB interface, and the switching device is electrically connected to the first device through the first USB interface, the first The device identifies the second device as a UFP device or a DFP device according to an equivalent electrical parameter of the first channel configuration signal pin of the first device. Therefore, the switching device can simultaneously satisfy the first device to identify the DFP device and the UFP device according to the USB TYPE-C protocol.
  • the equivalent electrical parameter of the first channel configuration signal pin includes one or more of the following: in series with the first channel configuration signal pin, etc.
  • the first device identifies the second device as a UFP device or a DFP device according to the equivalent electrical parameter of the first channel configuration signal pin of the first device, including: The device identifies the second device as a UFP device or a DFP device according to the resistance value of the equivalent resistance in series with the first channel configuration signal pin; the equivalent electrical parameter of the first channel configuration signal pin is a configuration signal with the first channel The resistance of the equivalent resistor in series with the pin, the first device determines the equivalent resistance in series with the first channel configuration signal pin according to the voltage of the first channel configuration signal pin and the current flowing through the first channel configuration signal pin Resistance.
  • a specific implementation manner is: the first device identifies the second device as a UFP device or a DFP device according to the equivalent electrical parameter of the first channel configuration signal pin of the first device, including: when in series with the first channel configuration signal pin When the resistance of the equivalent resistance is the first resistance, the first device identifies the second device as The UFP device, the first resistance value satisfies the standard for the first device to recognize the UFP device according to the USB TYPE-C protocol.
  • a specific implementation manner is: the first device identifies the second device as a UFP device or a DFP device according to the equivalent electrical parameter of the first channel configuration signal pin of the first device: when the ID of the USB interface of the second device is When the foot is grounded on the second device side, the first device identifies that the second device is a UFP device.
  • the first device and the second device are respectively connected to the first and second USB interfaces of the switching device, and the ID pin of the USB interface of the second device is grounded on the second device side, the first resistor is connected in series to the first USB interface.
  • the first channel configuration signal pin and the second USB interface ID pin are grounded through the ID pin of the second USB interface, and the first resistor pulls down the voltage of the first channel configuration signal pin, first
  • the device can identify the second device inserted by the second USB interface of the switching device according to the USB TYPE-C protocol as a UFP device.
  • a specific implementation manner is: the first device identifies the second device as a UFP device or a DFP device according to the equivalent electrical parameter of the first channel configuration signal pin of the first device, including: when in series with the first channel configuration signal pin When the resistance of the equivalent resistance is the second resistance value, the first device identifies that the second device is a DFP device, and the second resistance value satisfies a criterion for the first device to identify the DFP device according to the USB TYPE-C protocol.
  • a specific implementation manner is: the first device identifies the second device as a UFP device or a DFP device according to the electrical parameter, and includes: when the ID pin of the USB interface of the second device is floating on the second device side, the first device identifies The second device is a DFP device.
  • the first resistor and the second resistor are connected in series Between the first channel configuration signal pin of the first USB interface and the power signal pin VBUS of the second USB interface, the voltage of the first channel configuration signal pin is pulled up, and the first device can follow the USB TYPE-
  • the C protocol identifies the second device as a DFP device.
  • the first device supplies power to the UFP device.
  • the prompt information of the charging or data service transmission is displayed through the display interface of the first device.
  • the method further includes: the first device acquiring the first channel configuration signal pin floating.
  • the first device acquires the first channel configuration signal pin floating, so that the insertion of the switching device does not occur.
  • the first device After affecting the first device, after the second USB interface of the switching device is electrically connected to the second device, the first device identifies the second device according to the foregoing solution; and the second USB interface and the second device of the first switching device The device is electrically connected, and then the first USB interface of the switching device is electrically connected to the first device, and the first device directly identifies the second device according to the foregoing solution, so the switching device electrically connects the interface with the corresponding external device first. Connections do not affect the identification of DFP devices and UFP devices by the first device in accordance with the USB TYPE-C protocol.
  • a device identifying apparatus includes: an acquiring unit, configured to: when a second USB interface of the switching device is inserted into a second device, and a first USB interface of the switching device is inserted into the first device, Obtaining electrical parameters of the first channel configuration signal pin; processing unit, configured to The electrical parameter acquired by the obtaining unit identifies the second device.
  • the first USB interface of the switching device is a USB TYPE-C interface
  • the second device can be connected to the second device. According to the connection relationship, the first resistor is connected in series.
  • the first resistor and the second resistor are connected in series to the first channel configuration signal pin of the first USB interface and the second USB interface
  • the power signal pin is between VBUS, and the resistance of the first resistor satisfies the standard for identifying the UFP device according to the TYPE-C protocol of the first device, and the sum of the resistance of the first resistor and the resistance of the second resistor satisfies the first A device is in accordance with the USB TYPE-C protocol for the identification of the DFP device.
  • the first device acquires The first channel configures the electrical parameter of the signal pin; the first device identifies the second device according to the electrical parameter, so the switching device can simultaneously satisfy the first device to identify the DFP device and the UFP device according to the USB TYPE-C protocol.
  • the principle and the beneficial effects of the device can be referred to the first aspect and the possible method embodiments of the first aspect and the beneficial effects. Therefore, the implementation of the device can be referred to the first The aspects and implementations of the various possible methods of the first aspect are not repeated here.
  • an embodiment of the present application provides a device identification apparatus, including: a processor, a memory, a bus, and an interface circuit; the memory is configured to store a computer execution instruction, the interface circuit, the processor, and the memory Through the bus connection, when the first device is running, the processor executes the computer-executed instructions stored by the memory to cause the first device to perform any one of the device identification methods of the first aspect.
  • the processor invokes instructions stored in the memory to implement the solutions in the first aspect and the possible method designs of the first aspect, and the implementation and benefits of the problem can be solved by the terminal. Referring to the first aspect and the implementation manners and the beneficial effects of the possible methods of the first aspect, the implementation of the terminal can be referred to the implementation of the method, and the repeated description is not repeated.
  • an embodiment of the present application provides a computer storage medium, including instructions, when executed on a computer, causing the computer to perform any one of the device identification methods in the first aspect.
  • an embodiment of the present application provides a computer program product comprising instructions, when executed on a computer, causing the computer to perform any one of the device identification methods of the first aspect.
  • FIG. 1 is a schematic diagram of a usage scenario of an adapter device according to an embodiment of the present application.
  • FIG. 2 is a schematic structural diagram of an adapter device according to an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of an adapter device according to another embodiment of the present application.
  • FIG. 4 is a schematic diagram of a connection manner between a first device and an adapter device according to an embodiment of the present application
  • FIG. 5 is a schematic diagram of a connection manner between a first device and an adapter device according to another embodiment of the present application.
  • FIG. 6 is a schematic diagram of a connection manner between a first device and a second device by using a switching device according to an embodiment of the present application
  • FIG. 7 is a schematic diagram of a connection manner between a first device and a second device by using a switching device according to another embodiment of the present disclosure
  • FIG. 8 is a schematic structural diagram of a device identification apparatus according to an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a device identification apparatus according to another embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a device identification apparatus according to still another embodiment of the present application.
  • the interconnection between electronic devices needs to be transferred through the switching device. This is due to the variety of interface types of the electronic products, and the switching device can transfer different standard interfaces. As shown in FIG. 1 , the switching device provided by the embodiment of the present application is generally applied to a scenario in which the first device D1 and the second device D2 implement device interconnection through the switching device SW.
  • the Universal Serial Bus (USB) interface of the first device D1 is a Universal Serial Bus Type C (USB TYPE-C) interface
  • the second The USB interface of the device D2 is a USB interface including an identification ID pin
  • the switching device SW has two USB interfaces, respectively a first USB interface P1 and a second USB interface P2; wherein the first USB interface P1 is a USB TYPE- The C interface, the second USB interface P2 is a USB interface with an ID identification pin.
  • the first device D1 is connected to the first USB interface P1 of the switching device SW through the USB TYPE-C interface, and the second device D2 is connected to the second USB interface P2 of the switching device via the USB interface, and the first device D1 is in accordance with the USB TYPE-
  • the C protocol identifies the second device D2 as an Upstream Facing-Port (UFP) device or a Downstream Facing-Port (DFP) device.
  • UFP Upstream Facing-Port
  • DFP Downstream Facing-Port
  • the first USB interface P1 of the switching device SW is a male port or a female port
  • the second USB interface P2 is a male port or a female port
  • the USB interface of the first device when the first USB interface P1 is a male port, the USB interface of the first device
  • the USB interface of the first device is a male port that matches the first USB interface P1
  • the second USB interface P2 when the second USB interface P2 is a male port, The USB interface of the second device is a female port that matches the second USB interface P2; when the second USB interface P2 is a female port, the USB interface of the second device is a male port that matches the second USB interface P2.
  • the switching device SW includes: a first USB interface P1 and a second USB interface. P2, wherein the first USB interface P1 is a USB TYPE-C interface, and the second USB interface P2 includes an identification ID pin.
  • the second USB interface P2 may be a MICRO-USB interface and a mini-USB interface; the first USB interface P1 is used to connect the first device, and the second USB interface P2 is used to connect the USB interface with the identification ID pin.
  • Second device may be a MICRO-USB interface and a mini-USB interface; the first USB interface P1 is used to connect the first device, and the second USB interface P2 is used to connect the USB interface with the identification ID pin.
  • the power signal pin VBUS of the first USB interface P1 is electrically connected to the power signal pin VBUS of the second USB interface P2;
  • the first channel configuration signal pin (CC1/CC2) of the first USB interface P1 passes the first resistor R1 is electrically connected to the identification ID pin of the second USB interface P2;
  • the ID pin of the second USB interface P2 is electrically connected to the power signal pin VBUS of the second USB interface P2 through the second resistor R2;
  • the resistance of the first resistor R1 satisfies the standard of the UFP device identified by the first device according to the USB TYPE-C protocol, and the sum of the resistance of the first resistor R1 and the resistance of the second resistor R2 meets the first device according to the USB.
  • the standard for the identification of DFP devices by the TYPE-C protocol is the standard for the identification of DFP devices by the TYPE-C protocol.
  • the second channel configuration signal pin (CC2/CC1) of the first USB interface P1 is floating; wherein the embodiment of the present application provides the following two specific implementation manners:
  • the first channel configuration signal pin is the channel configuration signal pin CC1 of the TYPE-C interface in the USB TYPE-C protocol
  • the second channel configuration signal pin is the TYPE in the USB TYPE-C protocol.
  • the first channel configuration signal pin is the channel configuration signal pin CC2 of the USB TYPE-C interface in the USB TYPE-C protocol
  • the second channel configuration signal pin is the TYPE in the TYPE-C protocol.
  • the channel configuration signal pin CC1 of the -C interface includes two channel configuration signal pins (CC1 and CC2), wherein both CC1 and CC2 can be used as the first channel configuration signal pin to implement the solution in the first aspect.
  • the pin of the USB TYPE-C interface is defined to be symmetrical, when the first device is connected to the second device through the switching device, and the first device is connected in the forward direction with the switching device, the USB of the first device CC1 in the TYPE-C interface is electrically connected to CC1 in the USB TYPE-C interface of the switching device, and CC2 in the USB TYPE-C interface of the first device is electrically connected to CC2 in the USB TYPE-C interface of the switching device. As shown in FIG.
  • the first device when the first device is connected in the forward direction with the switching device, the first device can identify the type of the second device through the pin CC1; when the first device is connected in reverse connection with the switching device, the first device can The type of the second device is identified by pin CC2. In the above manner, when the first device is connected in the forward direction with the switching device, the first device can identify the type of the second device through the pin CC2; when the first device is connected in reverse connection with the switching device, the first device The type of the second device can be identified by pin CC1.
  • connection manners of the other pins in the first USB interface P1 and the second USB interface P2 are as follows with reference to FIG. 2 and FIG. 3 , wherein the first USB interface may further have other pins.
  • the present application The embodiment and the reference figure are not shown:
  • the first data signal pin D+ of the first USB interface P1 is connected to the first data signal pin D+ of the second USB interface P2; the second data signal pin D of the first USB interface P1 is connected to the second USB interface P2.
  • the first USB interface P1 further includes a ground pin GND for grounding
  • the second USB interface P2 further includes a ground pin GND for grounding.
  • the switching device is electrically connected to the USB interface of the first device through the first USB interface, and the switching device is electrically connected to the USB interface of the second device through the second USB interface, and the ID pin of the second USB interface
  • the adapter device is electrically connected to the ID pin of the USB interface of the second device; the ID pin of the USB interface of the second device includes two states, floating (x) or ground (GND), respectively. Identify the two states of the second device separately. For example: if the USB interface of the second device is MICRO-USB interface. Referring to FIG.
  • the ID pin of the USB interface of the second device is the ground GND
  • the USB interface of the second device is the A-type MICRO-USB interface
  • the USB interface of the second device is connected to the second USB interface of the switching device.
  • the first device identifies the second device as a UFP device.
  • the ID pin of the USB interface of the second device is floating ( ⁇ )
  • the USB interface of the second device is a B-type MICRO-USB interface
  • the USB interface of the second device is a second interface of the second device.
  • the first device identifies that the second device is a DFP device.
  • the Mini-USB interface is similar to the ID pin function of the MICRO-USB interface and will not be described again.
  • the first device identifies the second device as DFP.
  • the device recognizes that the second device is a UFP device when the ID pin of the USB interface of the second device is grounded on the second device side.
  • the first resistor and the second device are respectively connected to the first and second USB interfaces of the switching device, and the ID pin of the USB interface of the second device is floating on the second device side, the first resistor and the second device The resistor is connected in series between the first channel configuration signal pin of the first USB interface and the power signal pin VBUS of the second USB interface, and pulls up the voltage of the first channel configuration signal pin, and the first device can follow the USB
  • the TYPE-C protocol identifies the second device as a DFP device.
  • the first resistor is connected in series to the first USB interface.
  • the first channel configuration signal pin and the second USB interface ID pin are grounded through the ID pin of the second USB interface, and the first resistor pulls down the voltage of the first channel configuration signal pin, first
  • the device can identify the second device inserted by the second USB interface of the switching device according to the USB TYPE-C protocol as a UFP device.
  • the resistance of the first resistor is designed to be 5.1 ⁇ (1 ⁇ a)K ⁇ , and the second resistance is 51 ⁇ (1 ⁇ b)K ⁇ , where a ⁇ [0,0.2 ], b ⁇ [0,0.2].
  • the resistance of the first resistor R1 is 5.1 K ⁇
  • the second resistor R2 is 51 K ⁇ .
  • the first USB interface is a USB TYPE-C interface, and can be electrically connected to the first device, and the second USB interface can be electrically connected to the second device.
  • the first resistor is connected in series to the first USB interface.
  • the second resistor is connected in series between the ID pin of the second USB interface and the power signal pin VBUS of the second USB interface, and The resistance of a resistor satisfies the standard of the UFP device identified by the first device according to the USB TYPE-C protocol, and the sum of the resistance of the first resistor and the resistance of the second resistor satisfies the first device according to the USB TYPE-C protocol to the DFP.
  • the standard of identification of the device therefore, when the ID pin of the USB interface of the second device is floating on the second device side, the first device identifies the second device as a DFP device; when the ID pin of the USB interface of the second device When the second device side is grounded, the first device identifies that the second device is a UFP device, so the switching device can simultaneously satisfy the first device to identify the DFP device and the UFP device according to the USB TYPE-C protocol.
  • an embodiment of the present application provides a device identification method using the foregoing switching device, including:
  • the switching device When the switching device is electrically connected to the second device through the second USB interface, and the switching device passes When the first USB interface is electrically connected to the first device, the first device identifies the second device as a UFP device or a DFP device according to an equivalent electrical parameter of the first channel configuration signal pin of the first device.
  • the equivalent electrical parameter of the first channel configuration signal pin includes one or more of the following: a resistance value of the equivalent resistance in series with the first channel configuration signal pin, and a first channel configuration signal pin The voltage and / or current flowing through the first channel configuration signal pin.
  • Step 101 specifically includes: the first device identifies the second device as a UFP device or a DFP device according to a resistance value of the equivalent resistance in series with the first channel configuration signal pin.
  • the equivalent electrical parameter of the first channel configuration signal pin is the resistance of the equivalent resistance in series with the first channel configuration signal pin, and the first device configures the voltage of the signal pin according to the first channel and flows through the first channel configuration.
  • the current at the signal pin determines the resistance of the equivalent resistor in series with the first channel configuration signal pin. and / or
  • the first device identifies the second device as a UFP device or a DFP device according to the voltage of the first channel configuration signal pin. and / or
  • the first device identifies the second device as a UFP device or a DFP device according to the current flowing through the first channel configuration signal pin. and / or
  • the first device identifies the second device as a UFP device or a DFP device according to the voltage of the first channel configuration signal pin and the current flowing through the first channel configuration signal pin. and / or
  • the first device identifies the second device as a UFP device or a DFP device according to the resistance of the equivalent resistance in series with the first channel configuration signal pin and the current flowing through the first channel configuration signal pin. and / or
  • the first device identifies the second device as a UFP device or a DFP device according to the resistance of the equivalent resistance in series with the first channel configuration signal pin and the voltage of the first channel configuration signal pin. and / or
  • the first device identifies the second device according to the resistance of the equivalent resistance in series with the first channel configuration signal pin, the voltage of the first channel configuration signal pin, and/or the current flowing through the first channel configuration signal pin.
  • UFP device or DFP device are examples of the first device.
  • the following uses the first device to identify the second device as a UFP device or a DFP device according to the resistance value of the equivalent resistance in series with the first channel configuration signal pin:
  • the identification of the UFP device according to step 101 is specifically as follows:
  • the first device identifies the second device as The first resistance value of the UFP device satisfies the standard for identifying the UFP device by the first device according to the USB TYPE-C protocol; it can be understood that the first resistance value is the resistance value of the first resistor R1.
  • the ID pin of the USB interface of the second device is grounded on the second device side, such that the ID of the USB interface of the second device is electrically connected to the second USB interface of the switching device, and the ID of the second USB interface of the switching device
  • the pin is grounded, such that the first resistor is connected in series between the first channel configuration signal pin of the first USB interface and the ID pin of the second USB interface, and pulls down the voltage of the first channel configuration signal pin, first
  • the device can identify the second device inserted by the second USB interface of the switching device according to the USB TYPE-C protocol as a UFP device.
  • the identification of the DFP device according to step 101 is specifically as follows:
  • the resistance of the equivalent resistor connected in series with the first channel configuration signal pin is the second resistance value
  • the first device identifies the second device as DFP
  • the second resistance value of the device satisfies the standard for the first device to recognize the DFP device according to the USB TYPE-C protocol. It can be understood that the second resistance is the sum of the resistance of the first resistor R1 and the resistance of the second resistor R2.
  • the ID pin of the USB interface of the second device is floated on the second device side, such that the ID pin of the USB interface of the second device is electrically connected to the second USB interface of the switching device, and the second USB interface of the switching device
  • the ID pin is floated such that the first resistor and the second resistor are connected in series between the first channel configuration signal pin of the first USB interface and the power signal pin VBUS of the second USB interface, and the signal signal pin is configured for the first channel.
  • the voltage is pulled up, and the first device can identify the second device as a DFP device according to the USB TYPE-C protocol.
  • the first USB interface is a USB TYPE-C interface
  • the second USB interface is electrically connected to the second device.
  • the first resistor is connected in series with the first USB interface.
  • the second resistor is connected in series between the ID pin of the second USB interface and the power signal pin VBUS of the second USB interface, and the first resistor The resistance value satisfies the standard that the first device recognizes the UFP device according to the USB TYPE-C protocol, and the sum of the resistance of the first resistor and the resistance of the second resistor satisfies the first device according to the USB TYPE-C protocol to the DFP device.
  • the switching device when the switching device is electrically connected to the second device through the second USB interface, and the switching device is electrically connected to the first device through the first USB interface, the first device is in accordance with the first channel of the first device
  • the equivalent electrical parameter of the configuration signal pin identifies that the second device is a UFP device or a DFP device. Therefore, the switching device can simultaneously satisfy the first device to identify the DFP device and the UFP device according to the USB TYPE-C protocol.
  • the first device supplies power to the UFP device as a DFP device.
  • the first device functions as a UFP device to display prompt information of charging or data service transmission through the display interface of the first device.
  • the operating sequence is as follows: firstly, the USB interface of the second device is electrically connected to the second USB interface of the switching device.
  • the USB interface of the first device is electrically connected to the first USB interface of the switching device;
  • the operation sequence is two: firstly, the USB interface of the first device is electrically connected to the first USB interface of the switching device, and then the second device is The USB interface is electrically connected to the second USB interface of the adapter.
  • the second device is directly identified based on the above method; and when the operation sequence is two, since the first USB interface of the switching device is first electrically connected to the USB interface of the first device, Before the USB interface is electrically connected to the USB interface of the second device, the method further includes: acquiring, by the first device, the first channel configuration signal pin floating. In the process of using the switching device, if the first USB interface of the switching device is first electrically connected to the USB interface of the first device, the first device acquires the first channel configuration signal pin floating, so that the switching device The first USB interface is electrically connected to the USB interface of the first device, and after the second USB interface of the switching device is electrically connected to the USB interface of the second device, the first device is in accordance with the above scheme.
  • the second device performs the identification; firstly, the USB interface of the second device is electrically connected to the second USB interface of the switching device, and then the USB interface of the first device is electrically connected to the first USB interface of the switching device, then the first device
  • the second device is directly identified according to the above scheme. Therefore, the switching device does not recognize the DFP device and the UFP device according to the USB TYPE-C protocol, regardless of whether the interface is first inserted into the corresponding external device. Have an impact.
  • An embodiment of the present application provides a device identification apparatus for performing the above device identification method.
  • the device identification device may be the first device itself or the device identification device may be a functional entity integrated in the first device.
  • the embodiment of the present application may divide the function module into the device identification device according to the foregoing method example. For example, each function module may be divided according to each function, or two or more functions may be integrated into one processing module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present application is schematic, and is only a logical function division, and the actual implementation may have another division manner.
  • FIG. 8 is a schematic diagram showing a possible structure of the device identification device 80 involved in the foregoing embodiment.
  • the device identification device 8 includes an interface module 811 and a processing module 812. .
  • the processing module 812 is configured to support the device identification device to perform step 101;
  • the interface module 811 is configured to support the device identification device to implement the function of the USB interface of the first device, for example, connected to the first USB interface P1 of the switching device SW, and
  • the device and the second device perform data transmission and the like. All the related content of the steps involved in the foregoing method embodiments may be referred to the functional descriptions of the corresponding functional modules, and details are not described herein again.
  • FIG. 9 shows a possible structural diagram of the device identification device 90 involved in the above embodiment.
  • the device identification device includes a communication unit 911, a processing unit 912, and a storage unit 913.
  • the processing unit 912 is configured to control and manage the action of the device identification device.
  • the processing unit 912 is configured to support the device identification device to perform the process 101 in FIG. 5;
  • the communication unit 911 is configured to support the function of implementing the USB interface of the first device.
  • the communication unit 911 includes a USB interface physical structure connected to the first USB interface of the switching device, such as an interface circuit, and the communication unit 911 can communicate with a functional module or a physical structure connected thereto, for example, the first USB with the switching device SW
  • the interface P1 is connected, and data transmission and the like are performed by the switching device and the second device.
  • the storage unit 913 is configured to store program codes and data of the device identification device.
  • the processing unit 912 may be a processor or a controller, and may be, for example, a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), and an application-specific integrated circuit (application-specific). Integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
  • the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
  • the communication unit 911 may be an interface circuit or the like.
  • the storage unit 913 may be a memory.
  • the device identification device When the processing unit 912 is a processor, the communication unit 911 is an interface circuit, and the storage unit 913 is a memory, the device identification device according to the embodiment of the present application may be a device identification device as described below.
  • the device identification device 100 includes: a processor 1001, a memory 1002, a bus 1003, and an interface circuit 1004.
  • the memory 1002 is configured to store a computer execution instruction, and the interface is electrically
  • the processor 1001 and the memory 1002 are connected by a bus 1003.
  • the processor 1001 executes a computer execution instruction stored in the memory 1002 to cause the device identification device to perform the device identification method as described above.
  • the bus 1003 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus.
  • PCI peripheral component interconnect
  • EISA extended industry standard architecture
  • the bus 1003 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in FIG. 10, but it does not mean that there is only one bus or one type of bus.
  • the embodiment of the present application further provides a storage medium, which may include a memory 1002.
  • the device identification device provided by the embodiment of the present application can be used to perform the foregoing device identification method. Therefore, the technical effects of the device can be referred to the foregoing method embodiments.
  • the above embodiments it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • a software program it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions.
  • the computer program instructions When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are generated in whole or in part.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transmission to another website site, computer, server or data center via wired (eg coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg infrared, wireless, microwave, etc.).
  • the computer readable storage medium can be any available media that can be accessed by a computer or a data storage device that includes one or more servers, data centers, etc. that can be integrated with the media.
  • the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)) or the like.
  • a magnetic medium eg, a floppy disk, a hard disk, a magnetic tape
  • an optical medium eg, a DVD
  • a semiconductor medium such as a solid state disk (SSD)

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Information Transfer Systems (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Facsimiles In General (AREA)
  • Power Sources (AREA)

Abstract

一种转接装置以及设备识别方法和设备识别装置,涉及数据处理领域,能够在同一个转接装置中同时满足第一设备按照USB TYPE-C协议对DFP设备和UFP设备进行识别。转接装置,包括:第一USB接口和第二USB接口,第一USB接口的VBUS与第二USB接口的VBUS电连接;第一USB接口的第一通道配置信号引脚通过第一电阻与第二USB接口的ID引脚电连接;第二USB接口的ID引脚通过第二电阻与第二USB接口的电源信号引脚VBUS电连接;第一电阻的阻值满足第一设备按照USB TYPE-C协议对UFP设备的识别的标准,第一电阻的阻值和第二电阻的阻值之和满足第一设备按照USB TYPE-C协议对DFP设备的识别的标准。

Description

一种转接装置以及设备识别方法和设备识别装置
本申请要求于2016年12月30日提交中国专利局、申请号为201611262634.X、发明名称为“一种接口转接器件”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及数据处理领域,尤其涉及一种转接装置以及设备识别方法和设备识别装置。
背景技术
电子产品通常通过接口进行充电、与其他外部设备的数据连接等等,随着电子产品的多样化,电子产品的接口类型也是多种多样。为实现使用不同接口的电子设备之间的连接,通常用到一种叫转接装置的设备,转接装置可以将不同标准的接口进行转接,从而实现两个电子设备之间的互联。
现有技术中,第一设备可以通过转接装置与第二设备连接,此时,转接装置的USB TYPE-C接口连接第一设备,MICRO–USB接口连接第二设备,连接后第一设备对第二设备识别,需要能够实现DFP和UFP功能。然而,USB TYPE-C(Universal Serial Bus TYPE-C,通用串行总线类型C,简称:TYPE-C)协议并未对USB TYPE-C接口转接MICRO–USB(MICRO–Universal Serial Bus,微型处理器通用串行总线)接口做定义,由于第一设备要通过在同一个转接装置中需要实现对DFP设备和UFP设备的识别,而当前市面上的USB TYPE-C接口转MICRO-USB接口的转接装置的DFP和UFP功能并未完全按照USB TYPE-C协议规范实现,因此在同一个转接装置中并不能同时满足第一设备按照USB TYPE-C协议对DFP(Downstream Facing-Port,下行数据流端口)设备和UFP(Upstream Facing-Port,上行数据流端口)设备进行识别,对用户使用造成限制。
发明内容
本申请的实施例提供一种转接装置以及设备识别方法和设备识别装置,能够在同一个转接装置中同时满足第一设备按照USB TYPE-C协议对DFP设备和UFP设备进行识别。
为达到上述目的,本申请的实施例采用如下技术方案:
第一方面,一种转接装置,包括:第一USB接口和第二USB接口,其中所述第一USB接口为USB TYPE-C接口,第二USB接口中包含识别ID(identification,识别)引脚;其中,第一USB接口的电源信号引脚VBUS与第二USB接口的电源信号引脚VBUS电连接;第一USB接口的第一通道配置信号引脚通过第一电阻与第二USB接口的ID引脚电连接;第二USB接口的ID引脚通过第二电阻与第二USB接口的电源信号引脚VBUS电连接;其中,第一电阻的阻值满足第一设备按照USB TYPE-C协议对UFP设备的识别的标准,第 一电阻的阻值和第二电阻的阻值之和满足第一设备按照USB TYPE-C协议对DFP设备的识别的标准,第一设备为具有USB TYPE-C接口的设备。在上述方案中,第一USB接口为USB TYPE-C接口可以与第一设备电连接,第二USB接口可以与第二设备电连接,按照上述连接关系,第一电阻串联于第一USB接口的第一通道配置信号引脚与第二USB接口的ID引脚之间,第一电阻和第二电阻串联于第一USB接口的第一通道配置信号引脚与第二USB接口的电源信号引脚VBUS之间,并且,第一电阻的阻值满足第一设备按照USB TYPE-C协议对UFP设备的识别的标准,第一电阻的阻值和第二电阻的阻值之和满足第一设备按照USB TYPE-C协议对DFP设备的识别的标准,因此该转接装置可以同时满足第一设备按照USB TYPE-C协议对DFP设备和UFP设备进行识别。
结合第一方面,在第一种可能的实现方式中,转接装置通过第一USB接口与第一设备的USB接口电连接,转接装置通过第二USB接口与第二设备的USB接口电连接,第二USB接口的ID引脚通过转接装置与第二设备的USB接口的ID引脚电连接;当第二设备的USB接口的ID引脚在第二设备侧浮接时,第一设备识别第二设备为DFP设备;当第二设备的USB接口的ID引脚在第二设备侧接地时,第一设备识别第二设备为UFP设备。由于,当第一设备、第二设备分别连接转接装置的第一、第二USB接口,且第二设备的USB接口的ID引脚在第二设备侧浮接时,第一电阻和第二电阻串联于第一USB接口的第一通道配置信号引脚与第二USB接口的电源信号引脚VBUS之间,对第一通道配置信号引脚的电压起上拉作用,第一设备可以按照USB TYPE-C协议识别第二设备为DFP设备;当第一设备、第二设备分别连接转接装置的第一、第二USB接口,且第二设备的USB接口的ID引脚在第二设备侧接地时,第一电阻串联于第一USB接口的第一通道配置信号引脚与第二USB接口的ID引脚之间,通过第二USB接口的ID引脚接地,第一电阻对第一通道配置信号引脚的电压起下拉作用,第一设备可以按照USB TYPE-C协议识别转接装置的第二USB接口插入的第二设备为UFP设备。
结合第一方面,在第二种可能的实现方式中,第一电阻的阻值为5.1×(1±a)KΩ,第二电阻的阻值为51×(1±b)KΩ,其中,a∈[0,0.2],b∈[0,0.2]。示例性的,第一电阻的阻值为5.1KΩ,所述第二电阻的阻值为51KΩ。
结合第一方面,在第三种可能的实现方式中,第一USB接口的第二通道配置信号引脚浮接;其中,第一通道配置信号引脚为USB TYPE-C协议中USB TYPE-C接口的通道配置信号引脚CC1,第二通道配置信号引脚为USB TYPE-C协议中USB TYPE-C接口的通道配置信号引脚CC2;或者,第一通道配置信号引脚为USB TYPE-C协议中USB TYPE-C接口的通道配置信号引脚CC2,第二通道配置信号引脚为USB TYPE-C协议中USB TYPE-C接口的通道配置信号引脚CC1。在USB TYPE-C接口中包含两个通道配置信号引脚(CC1和CC2),其中CC1和CC2均可作为第一通道配置信号引脚实现第一方面中的方案,提高了转接装置结构实现的灵活性。
结合第一方面,在第四种可能的实现方式中,第一USB接口的第一数据信号引脚D+与第二USB接口的第一数据信号引脚D+电连接;第一USB接口的第二数据信号引脚D-与第二USB接口的第二数据信号引脚D-电连接。
结合第一方面,在第五种可能的实现方式中,所述第二USB接口至少包括以下各接口中的任一:MICRO-USB接口和mini-USB接口。
此外,转接装置的第一USB接口为公口或母口,第二USB接口为公口或恶母口;可以理解的是,第一USB接口为公口时,第一设备的USB TYPE-C接口为母口;第一USB接口为母口时,第一设备的USB接口为公口;第二USB接口为公口时,第二设备的USB接口为母口;第二USB接口为母口时,第二设备的USB接口为公口。
第二方面,提供一种使用上述任一转接装置的设备识别方法,包括:包括:当转接装置通过第二USB接口与第二设备电连接,且转接装置通过第一USB接口与第一设备电连接时,第一设备依据第一设备的第一通道配置信号引脚的等效电参数识别第二设备为UFP设备或DFP设备。在上述方案中,第一USB接口为USB TYPE-C接口可以与第一设备电连接,第二USB接口可以与第二设备电连接,按照上述连接关系,第一电阻串联于第一USB接口的第一通道配置信号引脚与第二USB接口的ID引脚之间,第一电阻和第二电阻串联于第一USB接口的第一通道配置信号引脚与第二USB接口的电源信号引脚VBUS之间,并且,第一电阻的阻值满足第一设备按照USB TYPE-C协议对UFP设备的识别的标准,第一电阻的阻值和第二电阻的阻值之和满足第一设备按照USB TYPE-C协议对DFP设备的识别的标准,因此,当转接装置通过第二USB接口与第二设备电连接,且转接装置通过第一USB接口与第一设备电连接时,第一设备依据第一设备的第一通道配置信号引脚的等效电参数识别第二设备为UFP设备或DFP设备。所以该转接装置可以同时满足第一设备按照USB TYPE-C协议对DFP设备和UFP设备进行识别。
结合第二方面,在第一种可能的实现方式中,第一通道配置信号引脚的等效电参数包括以下各项中的一项或多项:与第一通道配置信号引脚串联的等效电阻的阻值、第一通道配置信号引脚的电压、和/或流经第一通道配置信号引脚的电流。
结合第二方面,在第二种可能的实现方式中,第一设备依据第一设备的第一通道配置信号引脚的等效电参数识别第二设备为UFP设备或DFP设备,包括:第一设备依据与第一通道配置信号引脚串联的等效电阻的阻值识别所述第二设备为UFP设备或DFP设备;第一通道配置信号引脚的等效电参数为与第一通道配置信号引脚串联的等效电阻的阻值,第一设备依据第一通道配置信号引脚的电压以及流经第一通道配置信号引脚的电流确定与第一通道配置信号引脚串联的等效电阻的阻值。
一种具体的实现方式为:第一设备依据第一设备的第一通道配置信号引脚的等效电参数识别第二设备为UFP设备或DFP设备包括:当与第一通道配置信号引脚串联的等效电阻的阻值为第一阻值时,第一设备识别第二设备为 UFP设备,第一阻值满足第一设备按照USB TYPE-C协议对UFP设备的识别的标准。一种具体的实现方式为:第一设备依据第一设备的第一通道配置信号引脚的等效电参数识别第二设备为UFP设备或DFP设备包括:当第二设备的USB接口的ID引脚在第二设备侧接地时,第一设备识别第二设备为UFP设备。当第一设备、第二设备分别连接转接装置的第一、第二USB接口,且第二设备的USB接口的ID引脚在第二设备侧接地时,第一电阻串联于第一USB接口的第一通道配置信号引脚与第二USB接口的ID引脚之间,通过第二USB接口的ID引脚接地,第一电阻对第一通道配置信号引脚的电压起下拉作用,第一设备可以按照USB TYPE-C协议识别转接装置的第二USB接口插入的第二设备为UFP设备。
一种具体的实现方式为:第一设备依据第一设备的第一通道配置信号引脚的等效电参数识别第二设备为UFP设备或DFP设备包括:当与第一通道配置信号引脚串联的等效电阻的阻值为第二阻值时,第一设备识别第二设备为DFP设备,第二阻值满足所述第一设备按照USB TYPE-C协议对DFP设备的识别的标准。一种具体的实现方式为:第一设备依据电参数识别第二设备为UFP设备或DFP设备包括:当第二设备的USB接口的ID引脚在第二设备侧浮接时,第一设备识别第二设备为DFP设备。当第一设备、第二设备分别连接转接装置的第一、第二USB接口,且第二设备的USB接口的ID引脚在第二设备侧浮接时,第一电阻和第二电阻串联于第一USB接口的第一通道配置信号引脚与第二USB接口的电源信号引脚VBUS之间,对第一通道配置信号引脚的电压起上拉作用,第一设备可以按照USB TYPE-C协议识别第二设备为DFP设备。
此外,当识别第二设备为UFP设备后,第一设备向UFP设备供电。当识别第二设备为DFP设备后,通过第一设备的显示界面显示充电或数据业务传输的提示信息。
结合第二方面,在第三种可能的实现方式中,当所述转接装置通过第一USB接口与第一设备电连接,并在所述转接装置通过第二USB接口与第二设备电连接之前,所述方法还包括:第一设备获取所述第一通道配置信号引脚浮接。在使用转接装置的过程中,若先将转接装置的第一USB接口与第一设备电连接,则第一设备获取第一通道配置信号引脚浮接,这样转接装置的插入不会对第一设备产生影响,之后转接装置的第二USB接口与第二设备电连接后,第一设备按照上述方案对第二设备进行识别;而先转接装置的第二USB接口与第二设备电连接,然后转接装置的第一USB接口与第一设备电连接,则第一设备直接按照上述方案对第二设备进行识别,因此转接装置无论先将那个接口与对应的外部设备电连接,均不会对第一设备按照USB TYPE-C协议对DFP设备和UFP设备进行识别产生影响。
第三方面,提供一种设备识别装置,包括:获取单元,用于当所述转接装置的第二USB接口插入第二设备且所述转接装置的第一USB接口插入第一设备时,获取所述第一通道配置信号引脚的电参数;处理单元,用于依据所 述获取单元获取的电参数识别所述第二设备。在上述方案中,转接装置的第一USB接口为USB TYPE-C接口可以连接第一设备,转接装置的第二USB接口可以连接第二设备,按照上述连接关系,第一电阻串联于第一USB接口的第一通道配置信号引脚与第二USB接口的ID引脚之间,第一电阻和第二电阻串联于第一USB接口的第一通道配置信号引脚与第二USB接口的电源信号引脚VBUS之间,并且,第一电阻的阻值满足第一设备按照TYPE-C协议对UFP设备的识别的标准,第一电阻的阻值和第二电阻的阻值之和满足第一设备按照USB TYPE-C协议对DFP设备的识别的标准,因此,当转接装置的第二USB接口插入第二设备且转接装置的第一USB接口插入第一设备时,第一设备获取第一通道配置信号引脚的电参数;第一设备依据电参数识别第二设备,所以该转接装置可以同时满足第一设备按照USB TYPE-C协议对DFP设备和UFP设备进行识别。基于同一发明构思,由于该装置解决问题的原理以及有益效果可以参见上述第一方面和第一方面的各可能的方法实施方式以及所带来的有益效果,因此该装置的实施可以参见上述第一方面和第一方面的各可能的方法的实施方式,重复之处不再赘述。
第四方面,本申请实施例提供一种设备识别装置,包括:处理器、存储器、总线和接口电路;所述存储器用于存储计算机执行指令,所述接口电路、所述处理器与所述存储器通过所述总线连接,当所述第一设备运行时,所述处理器执行所述存储器存储的所述计算机执行指令,以使所述第一设备执行第一方面中任意一种设备识别方法。基于同一发明构思,所述处理器调用存储在所述存储器中的指令以实现上述第一方面和第一方面的各可能的方法设计中的方案,由于该终端解决问题的实施方式以及有益效果可以参见上述第一方面和第一方面的各可能的方法的实施方式以及有益效果,因此该终端的实施可以参见方法的实施,重复之处不再赘述。
第五方面,本申请实施例提供了一种计算机存储介质,包括指令,当其在计算机上运行时,使得所述计算机执行第一方面中任意一种设备识别方法。
第六方面,本申请实施例提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得所述计算机执行第一方面中任意一种设备识别方法。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍。
图1为本申请的实施例提供的一种转接装置的使用场景示意图;
图2为本申请的实施例提供的一种转接装置的结构示意图;
图3为本申请的另一实施例提供的一种转接装置的结构示意图;
图4为本申请的实施例提供的一种第一设备与转接装置的连接方式示意图;
图5为本申请的另一实施例提供的第一设备与转接装置的连接方式示意 图;
图6为本申请的实施例提供的一种第一设备通过转接装置与第二设备的连接方式示意图;
图7为本申请的另一实施例提供的第一设备通过转接装置与第二设备的连接方式示意图;
图8为本申请的实施例提供的一种设备识别装置的结构示意图;
图9为本申请的另一实施例提供的一种设备识别装置的结构示意图;
图10为本申请的又一实施例提供的一种设备识别装置的结构示意图。
具体实施方式
下面结合附图,对本申请的实施例进行描述。
通常电子设备之间的互联需要通过转接装置进行转接,这是由于电子产品的接口类型多种多样,而转接装置可以将不同标准的接口进行转接。如图1所示,本申请的实施例提供的转接装置通常应用到如下场景,该场景中第一设备D1与第二设备D2通过转接装置SW实现设备互联。在本申请的具体实施方式中,第一设备D1的通用串行总线(Universal Serial Bus,USB)接口为通用串行总线类型C(Universal Serial Bus TYPE-C,USB TYPE-C)接口,第二设备D2的USB接口为包含识别ID引脚的USB接口;转接装置SW具有两个USB接口,分别为第一USB接口P1和第二USB接口P2;其中,第一USB接口P1为USB TYPE-C接口,第二USB接口P2为具有ID识别引脚的USB接口。第一设备D1通过USB TYPE-C接口与转接装置SW的第一USB接口P1连接,第二设备D2通过USB接口与转接装置的第二USB接口P2连接,第一设备D1按照USB TYPE-C协议识别第二设备D2为上行数据流端口(Upstream Facing-Port,UFP)设备或下行数据流端口(Downstream Facing-Port,DFP)设备。可以理解的是,转接装置SW的第一USB接口P1为公口或母口,第二USB接口P2为公口或母口;第一USB接口P1为公口时,第一设备的USB接口为与第一USB接口P1匹配的母口;第一USB接口P1为母口时,第一设备的USB接口为与第一USB接口P1匹配的公口;第二USB接口P2为公口时,第二设备的USB接口为与第二USB接口P2匹配的母口;第二USB接口P2为母口时,第二设备的USB接口为与第二USB接口P2匹配的公口。
具体参照图1、2、3所示,本申请的实施例提供一种转接装置SW,应用于图1所示的场景,该转接装置SW包括:第一USB接口P1和第二USB接口P2,其中第一USB接口P1为USB TYPE-C接口,第二USB接口P2中包含识别ID引脚。示例性的,第二USB接口P2可以为MICRO-USB接口和mini-USB接口;第一USB接口P1用于连接第一设备,第二USB接口P2用于连接具有识别ID引脚的USB接口的第二设备。
其中,第一USB接口P1的电源信号引脚VBUS与第二USB接口P2的电源信号引脚VBUS电连接;第一USB接口P1的第一通道配置信号引脚(CC1/CC2)通过第一电阻R1与第二USB接口P2的识别ID引脚电连接;第二USB接口P2的ID引脚通过第二电阻R2与第二USB接口P2的电源信号引脚VBUS电连接;
其中,第一电阻R1的阻值满足第一设备按照USB TYPE-C协议对UFP设备的识别的标准,第一电阻R1的阻值和第二电阻R2的阻值之和满足第一设备按照USB TYPE-C协议对DFP设备的识别的标准。
此外,如图2、3所示,第一USB接口P1的第二通道配置信号引脚(CC2/CC1)浮接;其中,本申请的实施例提供以下两种具体实现方式:
方式一:参照图2所示,第一通道配置信号引脚为USB TYPE-C协议中TYPE-C接口的通道配置信号引脚CC1,第二通道配置信号引脚为USB TYPE-C协议中TYPE-C接口的通道配置信号引脚CC2。
方式二:参照图3所示,第一通道配置信号引脚为USB TYPE-C协议中USB TYPE-C接口的通道配置信号引脚CC2,第二通道配置信号引脚为TYPE-C协议中TYPE-C接口的通道配置信号引脚CC1。这样,在USB TYPE-C接口中包含两个通道配置信号引脚(CC1和CC2),其中,CC1和CC2均可作为第一通道配置信号引脚实现第一方面中的方案提高了转接装置结构实现的灵活性。
此外,由于USB TYPE-C接口的引脚定义为对称的,因此,当第一设备通过转接装置与第二设备连接,且第一设备与转接装置正向连接时,第一设备的USB TYPE-C接口中的CC1与转接装置的USB TYPE-C接口中的CC1电连接,第一设备的USB TYPE-C接口中的CC2与转接装置的USB TYPE-C接口中的CC2电连接,如图4所示;当第一设备通过转接装置与第二设备连接,且第一设备与转接装置反向连接时,第一设备的USB TYPE-C接口中的CC1与转接装置的USB TYPE-C接口中的CC2电连接,第一设备的USB TYPE-C接口中的CC2与转接装置的USB TYPE-C接口中的CC1电连接,如图5所示。
采用上述方式一时:当第一设备与转接装置正向连接时,第一设备可以通过引脚CC1识别第二设备的类型;当第一设备与转接装置反向连接时,第一设备可以通过引脚CC2识别第二设备的类型。采用上述方式二时:当第一设备与转接装置正向连接时,第一设备可以通过引脚CC2识别第二设备的类型;当第一设备与转接装置反向连接时,第一设备可以通过引脚CC1识别第二设备的类型。
此外,第一USB接口P1和第二USB接口P2中其他引脚的连接方式,参照图2、3所示具体如下,其中,第一USB接口还可以具有其它引脚,为了便于说明,本申请实施例以及参照图中未示出:
第一USB接口P1的第一数据信号引脚D+连接第二USB接口P2的第一数据信号引脚D+;第一USB接口P1的第二数据信号引脚D-连接第二USB接口P2的第二数据信号引脚D-。此外,第一USB接口P1还包括用于接地的接地引脚GND,第二USB接口P2还包括用于接地的接地引脚GND。
上述的转接装置中转接装置通过第一USB接口与第一设备的USB接口电连接,转接装置通过第二USB接口与第二设备的USB接口电连接,第二USB接口的ID引脚通过转接装置与第二设备的USB接口的ID引脚电连接;第二设备的USB接口的ID引脚包含两种状态,分别为浮接(×)或接地(GND),这两种状态分别标识第二设备的两种状态。例如:若第二设备的USB接口为 MICRO-USB接口。参照图6所示,第二设备的USB接口的ID引脚为接地GND则第二设备的USB接口为A型MICRO-USB接口,第二设备的USB接口与转接装置的第二USB接口电连接时,第一设备识别第二设备为UFP设备。参照图7所示,第二设备的USB接口的ID引脚为浮接(×)则第二设备的USB接口为B型MICRO-USB接口,第二设备的USB接口与转接装置的第二USB接口电连接时,第一设备识别第二设备为DFP设备。Mini-USB接口与MICRO-USB接口的ID引脚功能类似不再赘述。
因此,当第二设备的USB接口与转接装置的第二USB接口电连接,且第二设备的USB接口的ID引脚在第二设备侧浮接时,第一设备识别第二设备为DFP设备;当第二设备的USB接口的ID引脚在第二设备侧接地时,第一设备识别第二设备为UFP设备。
由于,当第一设备、第二设备分别连接转接装置的第一、第二USB接口,且第二设备的USB接口的ID引脚在第二设备侧浮接时,第一电阻和第二电阻串联于第一USB接口的第一通道配置信号引脚与第二USB接口的电源信号引脚VBUS之间,对第一通道配置信号引脚的电压起上拉作用,第一设备可以按照USB TYPE-C协议识别第二设备为DFP设备。
当第一设备、第二设备分别连接转接装置的第一、第二USB接口,且第二设备的USB接口的ID引脚在第二设备侧接地时,第一电阻串联于第一USB接口的第一通道配置信号引脚与第二USB接口的ID引脚之间,通过第二USB接口的ID引脚接地,第一电阻对第一通道配置信号引脚的电压起下拉作用,第一设备可以按照USB TYPE-C协议识别转接装置的第二USB接口插入的第二设备为UFP设备。
此外,根据USB TYPE-C协议规定,设计第一电阻的阻值为5.1×(1±a)KΩ,所述第二电阻为51×(1±b)KΩ,其中,a∈[0,0.2],b∈[0,0.2]。例如,第一电阻R1的阻值为5.1KΩ,第二电阻R2为51KΩ。
在上述方案中,第一USB接口为USB TYPE-C接口,可以与第一设备电连接,第二USB接口可以与第二设备电连接,按照上述连接关系,第一电阻串联于第一USB接口的第一通道配置信号引脚与第二USB接口的ID引脚之间,第二电阻串联于第二USB接口的ID引脚与第二USB接口的电源信号引脚VBUS之间,并且,第一电阻的阻值满足第一设备按照USB TYPE-C协议对UFP设备的识别的标准,第一电阻的阻值和第二电阻的阻值之和满足第一设备按照USB TYPE-C协议对DFP设备的识别的标准,因此,当第二设备的USB接口的ID引脚在第二设备侧浮接时,第一设备识别第二设备为DFP设备;当第二设备的USB接口的ID引脚在第二设备侧接地时,第一设备识别第二设备为UFP设备,所以该转接装置可以同时满足第一设备按照USB TYPE-C协议对DFP设备和UFP设备进行识别。
基于上述提供的转接装置,本申请的实施例提供一种使用上述转接装置的设备识别方法,包括:
101、当转接装置通过第二USB接口与第二设备电连接,且转接装置通过 第一USB接口与第一设备电连接时,第一设备依据第一设备的第一通道配置信号引脚的等效电参数识别所述第二设备为UFP设备或DFP设备。
其中,第一通道配置信号引脚的等效电参数包括以下各项中的一项或多项:与第一通道配置信号引脚串联的等效电阻的阻值、第一通道配置信号引脚的电压和/或流经第一通道配置信号引脚的电流。
步骤101具体包括:第一设备依据与第一通道配置信号引脚串联的等效电阻的阻值识别第二设备为UFP设备或DFP设备。第一通道配置信号引脚的等效电参数为与第一通道配置信号引脚串联的等效电阻的阻值,第一设备依据第一通道配置信号引脚的电压以及流经第一通道配置信号引脚的电流确定与第一通道配置信号引脚串联的等效电阻的阻值。和/或
第一设备依据第一通道配置信号引脚的电压识别第二设备为UFP设备或DFP设备。和/或
第一设备依据流经第一通道配置信号引脚的电流识别第二设备为UFP设备或DFP设备。和/或
第一设备依据第一通道配置信号引脚的电压、流经第一通道配置信号引脚的电流识别第二设备为UFP设备或DFP设备。和/或
第一设备依据与第一通道配置信号引脚串联的等效电阻的阻值、流经第一通道配置信号引脚的电流识别第二设备为UFP设备或DFP设备。和/或
第一设备依据与第一通道配置信号引脚串联的等效电阻的阻值、第一通道配置信号引脚的电压识别第二设备为UFP设备或DFP设备。和/或
第一设备依据与第一通道配置信号引脚串联的等效电阻的阻值、第一通道配置信号引脚的电压、和/或流经第一通道配置信号引脚的电流识别第二设备为UFP设备或DFP设备。
以下以第一设备依据与第一通道配置信号引脚串联的等效电阻的阻值识别第二设备为UFP设备或DFP设备为例进行说明:
按照步骤101对UFP设备的识别具体为:
当第二设备的USB接口的ID引脚在第二设备侧接地时,与第一通道配置信号引脚串联的等效电阻的阻值为第一阻值时,第一设备识别第二设备为UFP设备,第一阻值满足第一设备按照USB TYPE-C协议对UFP设备的识别的标准;可以理解的是,第一阻值为第一电阻R1的阻值。
第二设备的USB接口的ID引脚在第二设备侧接地,这样第二设备的USB接口的ID引脚电连接转接装置的第二USB接口时,转接装置的第二USB接口的ID引脚接地,这样第一电阻串联于第一USB接口的第一通道配置信号引脚与第二USB接口的ID引脚之间,对第一通道配置信号引脚的电压起下拉作用,第一设备可以按照USB TYPE-C协议识别转接装置的第二USB接口插入的第二设备为UFP设备。
按照步骤101对DFP设备的识别具体为:
当第二设备的USB接口的ID引脚在第二设备侧浮接时,与第一通道配置信号引脚串联的等效电阻的阻值为第二阻值,第一设备识别第二设备为DFP 设备,第二阻值满足第一设备按照USB TYPE-C协议对DFP设备的识别的标准。可以理解的是,第二阻值为第一电阻R1的阻值与第二电阻R2的阻值之和。
第二设备的USB接口的ID引脚在第二设备侧浮接,这样第二设备的USB接口的ID引脚电连接转接装置的第二USB接口时,转接装置的第二USB接口的ID引脚浮接,这样第一电阻和第二电阻串联于第一USB接口的第一通道配置信号引脚与第二USB接口的电源信号引脚VBUS之间,对第一通道配置信号引脚的电压起上拉作用,第一设备可以按照USB TYPE-C协议识别第二设备为DFP设备。
上述方法中,第一USB接口为USB TYPE-C接口可以与第一设备电连接,第二USB接口可以与第二设备电连接,按照上述连接关系,第一电阻串联于第一USB接口的第一通道配置信号引脚与第二USB接口的ID引脚之间,第二电阻串联于第二USB接口的ID引脚与第二USB接口的电源信号引脚VBUS之间,并且,第一电阻的阻值满足第一设备按照USB TYPE-C协议对UFP设备的识别的标准,第一电阻的阻值和第二电阻的阻值之和满足第一设备按照USB TYPE-C协议对DFP设备的识别的标准,因此,当转接装置通过第二USB接口与第二设备电连接,且转接装置通过第一USB接口与第一设备电连接时,第一设备依据第一设备的第一通道配置信号引脚的等效电参数识别第二设备为UFP设备或DFP设备。所以该转接装置可以同时满足第一设备按照USB TYPE-C协议对DFP设备和UFP设备进行识别。
此外,当识别第二设备为UFP设备后,第一设备作为DFP设备向UFP设备供电。当识别第二设备为DFP设备后,第一设备作为UFP设备通过第一设备的显示界面显示充电或数据业务传输的提示信息。
在实际使用该转接装置的过程中,由于人的操作习惯不同,可能存在如下两种操作顺序,操作顺序一:先将第二设备的USB接口与转接装置的第二USB接口电连接,再将第一设备的USB接口与转接装置的第一USB接口电连接;操作顺序二:先将第一设备的USB接口与转接装置的第一USB接口电连接,再将第二设备的USB接口与转接装置的第二USB接口电连接。
针对操作顺序一直接基于上述方法识别第二设备;而采用操作顺序二时,由于先将当转接装置的第一USB接口与第一设备的USB接口电连接,因此在将转接装置的第二USB接口与第二设备的USB接口电连接之前,还包括:第一设备获取第一通道配置信号引脚浮接。在使用转接装置的过程中,若先将转接装置的第一USB接口与第一设备的USB接口电连接,则第一设备获取第一通道配置信号引脚浮接,这样转接装置的第一USB接口与第一设备的USB接口电连接不会对第一设备产生影响,之后转接装置的第二USB接口与第二设备的USB接口电连接后,第一设备按照上述方案对第二设备进行识别;而先将第二设备的USB接口与转接装置的第二USB接口电连接,再将第一设备的USB接口与转接装置的第一USB接口电连接,则第一设备直接按照上述方案对第二设备进行识别,因此转接装置无论先将那个接口插入对应的外部设备,均不会对第一设备按照USB TYPE-C协议对DFP设备和UFP设备进行识别 产生影响。
本申请的实施例提供一种设备识别装置,用于执行上述设备识别方法。该设备识别装置可以为第一设备本身或者该设备识别装置可以为集成于第一设备中的一个功能实体。本申请实施例可以根据上述方法示例对设备识别装置进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
在采用对应各个功能划分各个功能模块的情况下,图8示出了上述实施例中所涉及的设备识别装置80的一种可能的结构示意图,设备识别装置8包括:接口模块811、处理模块812。处理模块812用于支持设备识别装置执行步骤101;接口模块811用于支持设备识别装置实现第一设备的USB接口的功能,例如,与转接装置SW的第一USB接口P1连接,并通过转接装置与第二设备进行数据传输等。其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
在采用集成的单元的情况下,图9示出了上述实施例中所涉及的设备识别装置90的一种可能的结构示意图。设备识别装置包括:通信单元911、处理单元912和存储单元913。处理单元912用于对设备识别装置的动作进行控制管理,例如,处理单元912用于支持设备识别装置执行图5中的过程101;通信单元911用于支持实现第一设备的USB接口的功能。此外通信单元911包含与转接装置的第一USB接口连接的USB接口实体结构,例如接口电路,通信单元911能够与其连接的功能模块或实体结构通信,例如,与转接装置SW的第一USB接口P1连接,并通过转接装置与第二设备进行数据传输等。存储单元913,用于存储设备识别装置的程序代码和数据。
其中,处理单元912可以是处理器或控制器,例如可以是中央处理器(central processing unit,CPU),通用处理器,数字信号处理器(digital signal processor,DSP),专用集成电路(application-specific integrated circuit,ASIC),现场可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。通信单元911可以是接口电路等。存储单元913可以是存储器。
当处理单元912为处理器,通信单元911为接口电路,存储单元913为存储器时,本申请实施例所涉及的设备识别装置可以为如下所述的设备识别装置。
参照图10所示,该设备识别装置100,包括:处理器1001、存储器1002、总线1003和接口电路1004;存储器1002用于存储计算机执行指令,接口电 路1004、处理器1001与存储器1002通过总线1003连接,当设备识别装置运行时,处理器1001执行存储器1002存储的计算机执行指令,以使设备识别装置执行如上述的设备识别方法。总线1003可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。总线1003可以分为地址总线、数据总线、控制总线等。为便于表示,图10中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
本申请实施例还提供一种存储介质,该存储介质可以包括存储器1002。
由于本申请实施例提供的设备识别装置可用于执行上述设备识别方法,因此其所能获得的技术效果可参考上述方法实施例,本申请实施例在此不再赘述。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件程序实现时,可以全部或部分地以计算机程序产品的形式来实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可以用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带),光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。
尽管在此结合各实施例对本申请进行了描述,然而,在实施所要求保护的本申请过程中,本领域技术人员通过查看所述附图、公开内容、以及所附权利要求书,可理解并实现所述公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。
尽管结合具体特征及其实施例对本申请进行了描述,显而易见的,在不脱离本申请的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本申请的示例性说明,且视为已覆盖本申请范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。

Claims (29)

  1. 一种转接装置,其特征在于,包括:第一USB接口和第二USB接口,其中所述第一USB接口为USB TYPE-C接口,所述第二USB接口中包含识别ID引脚;
    其中,所述第一USB接口的电源信号引脚VBUS与所述第二USB接口的电源信号引脚VBUS电连接;所述第一USB接口的第一通道配置信号引脚通过第一电阻与所述第二USB接口的ID引脚电连接;所述第二USB接口的ID引脚通过第二电阻与所述第二USB接口的电源信号引脚VBUS电连接;
    其中,所述第一电阻的阻值满足第一设备按照USB TYPE-C协议对UFP设备的识别的标准,所述第一电阻的阻值和第二电阻的阻值之和满足所述第一设备按照USB TYPE-C协议对DFP设备的识别的标准;所述第一设备为具有USB TYPE-C接口的设备。
  2. 根据权利要求1所述的转接装置,其特征在于,所述转接装置通过所述第一USB接口与所述第一设备的USB接口电连接,所述转接装置通过所述第二USB接口与所述第二设备的USB接口电连接,所述第二USB接口的ID引脚通过所述转接装置与所述第二设备的USB接口的ID引脚电连接;当所述第二设备的USB接口的ID引脚在所述第二设备侧浮接时,所述第一设备识别所述第二设备为DFP设备;当所述第二设备的USB接口的ID引脚在所述第二设备侧接地时,所述第一设备识别所述第二设备为UFP设备。
  3. 根据权利要求1或2所述的转接装置,其特征在于,所述第一电阻的阻值为5.1×(1±a)KΩ,所述第二电阻的阻值为51×(1±b)KΩ,其中,a∈[0,0.2],b∈[0,0.2]。
  4. 根据权利要求1-3任一项所述的转接装置,其特征在于,所述第一电阻的阻值为5.1KΩ,所述第二电阻的阻值为51KΩ。
  5. 根据权利要求1-4任一项所述的转接装置,其特征在于,
    所述第一USB接口的第二通道配置信号引脚浮接;
    其中,所述第一通道配置信号引脚为USB TYPE-C协议中USB TYPE-C接口的通道配置信号引脚CC1,第二通道配置信号引脚为USB TYPE-C协议中USB TYPE-C接口的通道配置信号引脚CC2;或者,所述第一通道配置信号引脚为USB TYPE-C协议中USB TYPE-C接口的通道配置信号引脚CC2,第二通道配置信号引脚为USB TYPE-C协议中USB TYPE-C接口的通道配置信号引脚CC1。
  6. 根据权利要求1-5任一项所述的转接装置,其特征在于,所述第一USB接口的第一数据信号引脚D+与所述第二USB接口的第一数据信号引脚D+电连接;
    所述第一USB接口的第二数据信号引脚D-连接与第二USB接口的第二数据信号引脚D-电连接。
  7. 根据权利要求1-6任一项所述的转接装置,其特征在于,所述第二USB接口至少包括以下各接口中的任一:MICRO-USB接口或mini-USB接口。
  8. 一种使用如权利要求1-7任一项所述的转接装置的设备识别方法,其 特征在于,包括:当所述转接装置通过第二USB接口与第二设备电连接,且所述转接装置通过第一USB接口与第一设备电连接时,所述第一设备依据所述第一设备的第一通道配置信号引脚的等效电参数识别所述第二设备为UFP设备或DFP设备。
  9. 根据权利要求8所述的设备识别方法,其特征在于,所述第一通道配置信号引脚的等效电参数包括以下各项中的一项或多项:与所述第一通道配置信号引脚串联的等效电阻的阻值、所述第一通道配置信号引脚的电压或流经所述第一通道配置信号引脚的电流。
  10. 根据权利要求8或9所述的设备识别方法,其特征在于,
    所述第一设备依据所述第一设备的第一通道配置信号引脚的等效电参数识别所述第二设备为UFP设备或DFP设备,包括:
    所述第一设备依据与所述第一通道配置信号引脚串联的等效电阻的阻值识别所述第二设备为UFP设备或DFP设备;
    所述第一通道配置信号引脚的等效电参数为与所述第一通道配置信号引脚串联的等效电阻的阻值,
    所述第一设备依据所述第一通道配置信号引脚的电压以及流经所述第一通道配置信号引脚的电流确定与所述第一通道配置信号引脚串联的等效电阻的阻值。
  11. 根据权利要求8-10任一项所述的设备识别方法,其特征在于,
    所述第一设备依据所述第一设备的第一通道配置信号引脚的等效电参数识别所述第二设备为UFP设备或DFP设备包括:
    当与所述第一通道配置信号引脚串联的等效电阻的阻值为第一阻值时,所述第一设备识别所述第二设备为UFP设备,所述第一阻值满足第一设备按照USB TYPE-C协议对UFP设备的识别的标准。
  12. 根据权利要求8-10任一项所述的设备识别方法,所述第一设备依据所述第一设备的第一通道配置信号引脚的等效电参数识别所述第二设备为UFP设备或DFP设备包括:
    当所述第二设备的USB接口的ID引脚在所述第二设备侧接地时,所述第一设备识别所述第二设备为UFP设备。
  13. 根据权利要求8-10任一项所述的设备识别方法,其特征在于,
    所述第一设备依据所述第一设备的第一通道配置信号引脚的等效电参数识别所述第二设备为UFP设备或DFP设备包括:
    当与所述第一通道配置信号引脚串联的等效电阻的阻值为第二阻值时,所述第一设备识别所述第二设备为DFP设备,所述第二阻值满足所述第一设备按照USB TYPE-C协议对DFP设备的识别的标准。
  14. 根据权利要求8-10任一项所述的设备识别方法,其特征在于,所述第一设备依据所述电参数识别所述第二设备为UFP设备或DFP设备包括:
    当所述第二设备的USB接口的ID引脚在所述第二设备侧浮接时,所述第一设备识别所述第二设备为DFP设备。
  15. 根据权利要求11或12所述的设备识别方法,所述方法还包括:
    当识别所述第二设备为UFP设备后,所述第一设备向所述UFP设备供电。
  16. 根据权利要求13或14所述的设备识别方法,所述方法还包括:当识别所述第二设备为DFP设备后,通过所述第一设备的显示界面显示充电或数据业务传输的提示信息。
  17. 根据权利要求8所述的设备识别方法,其特征在于,
    当所述转接装置通过第一USB接口与第一设备电连接,并在所述转接装置通过第二USB接口与第二设备电连接之前,所述方法还包括:所述第一设备获取所述第一通道配置信号引脚浮接。
  18. 一种设备识别装置,其特征在于,包括:处理单元,其中所述处理单元连接第一设备的USB接口;
    当所述转接装置通过第二USB接口与第二设备电连接,且所述转接装置通过第一USB接口与第一设备电连接时,所述处理单元依据所述第一设备的第一通道配置信号引脚的等效电参数识别所述第二设备为UFP设备或DFP设备。
  19. 根据权利要求18所述的设备识别装置,其特征在于,所述第一通道配置信号引脚的等效电参数包括以下各项中的一项或多项:与所述第一通道配置信号引脚串联的等效电阻的阻值、所述第一通道配置信号引脚的电压或流经所述第一通道配置信号引脚的电流。
  20. 根据权利要求18或19所述的设备识别装置,其特征在于,
    所述处理单元具体用于依据与所述第一通道配置信号引脚串联的等效电阻的阻值识别所述第二设备为UFP设备或DFP设备;
    所述第一通道配置信号引脚的等效电参数为与所述第一通道配置信号引脚串联的等效电阻的阻值,
    所述处理单元具体还用于依据所述第一通道配置信号引脚的电压以及流经所述第一通道配置信号引脚的电流确定与所述第一通道配置信号引脚串联的等效电阻的阻值。
  21. 根据权利要求19-20任一项所述的设备识别装置,其特征在于,
    所述处理单元具体用于当确定与所述第一通道配置信号引脚串联的等效电阻的阻值为第一阻值时,识别所述第二设备为UFP设备,所述第一阻值满足第一设备按照USB TYPE-C协议对UFP设备的识别的标准。
  22. 根据权利要求19-20任一项所述的设备识别装置,所述处理单元具体用于当确定所述第二设备的USB接口的ID引脚在所述第二设备侧接地时,所述第一设备识别所述第二设备为UFP设备。
  23. 根据权利要求19-20任一项所述的设备识别装置,所述处理单元具体用于当确定与所述第一通道配置信号引脚串联的等效电阻的阻值为第二阻值时,所述第一设备识别所述第二设备为DFP设备,所述第二阻值满足所述第一设备按照USB TYPE-C协议对DFP设备的识别的标准。
  24. 根据权利要求19-20任一项所述的设备识别装置,所述处理单元具体用于当确定所述第二设备的USB接口的ID引脚在所述第二设备侧浮接时,所 述第一设备识别所述第二设备为DFP设备。
  25. 根据权利要求21或22所述的设备识别装置,其特征在于,还包括:控制单元,用于当所述处理单元识别所述第二设备为UFP设备后,所述第一设备向所述UFP设备供电。
  26. 根据权利要求23或24所述的设备识别装置,其特征在于,还包括:控制单元,当所述处理单元识别所述第二设备为DFP设备后,通过显示控制界面显示充电或数据业务传输的提示信息。
  27. 一种设备识别装置,其特征在于,包括:处理器、存储器、总线和接口电路;所述存储器用于存储计算机执行指令,所述接口电路、所述处理器与所述存储器通过所述总线连接,当所述第一设备运行时,所述处理器执行所述存储器存储的所述计算机执行指令,以使所述第一设备执行如权利要求8-17中任意一项所述的设备识别方法。
  28. 一种计算机存储介质,其特征在于,包括指令,当其在计算机上运行时,使得所述计算机执行如权利要求8-17中任一项所述的设备识别方法。
  29. 一种包含指令的计算机程序产品,其特征在于,当其在计算机上运行时,使得所述计算机执行如权利要求8-17中任一项所述的设备识别方法。
PCT/CN2017/080130 2016-12-30 2017-04-11 一种转接装置以及设备识别方法和设备识别装置 Ceased WO2018120498A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
HK18109668.2A HK1250283B (zh) 2016-12-30 2017-04-11 一种转接装置以及设备识别方法和设备识别装置
US16/474,655 US10817449B2 (en) 2016-12-30 2017-04-11 Adaption apparatus, and device identification method and apparatus
EP17886456.7A EP3553897B1 (en) 2016-12-30 2017-04-11 Adaptor, device identifying method and device identifying apparatus
CN201780005422.XA CN108513688B (zh) 2016-12-30 2017-04-11 一种转接装置以及设备识别方法和设备识别装置

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611262634.X 2016-12-30
CN201611262634 2016-12-30

Publications (1)

Publication Number Publication Date
WO2018120498A1 true WO2018120498A1 (zh) 2018-07-05

Family

ID=62706701

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/080130 Ceased WO2018120498A1 (zh) 2016-12-30 2017-04-11 一种转接装置以及设备识别方法和设备识别装置

Country Status (4)

Country Link
US (1) US10817449B2 (zh)
EP (1) EP3553897B1 (zh)
CN (1) CN108513688B (zh)
WO (1) WO2018120498A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI691846B (zh) * 2018-10-04 2020-04-21 宏碁股份有限公司 電子裝置與電子系統

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10725939B2 (en) * 2017-02-13 2020-07-28 Microchip Technology Incorporated Host-detecting USB hub
CN112186398B (zh) * 2019-06-13 2022-11-08 佛山市顺德区美的电热电器制造有限公司 连接装置、家电设备、家电设备的信号处理方法及装置
CN110247264B (zh) * 2019-06-21 2020-09-25 闪耀现实(无锡)科技有限公司 连接器及利用连接器进行充电控制的方法
CN111651392B (zh) * 2020-05-21 2022-01-28 上海龙旗科技股份有限公司 一种用于连接可穿戴设备的方法、系统及设备
CN119473944B (zh) * 2024-11-08 2025-10-17 苏州元脑智能科技有限公司 一种外部设备的识别方法以及服务器

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340110A (zh) * 2008-04-29 2009-01-07 北京中星微电子有限公司 一种usb otg器件电源及其实现方法
CN204946001U (zh) * 2015-08-05 2016-01-06 庄忆芳 USB Type-C转换模块
CN105867593A (zh) * 2016-05-17 2016-08-17 深圳慧能泰半导体科技有限公司 一种USB Type-C接口电路及其控制装置

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI398759B (zh) * 2009-07-22 2013-06-11 Htc Corp 電源供應裝置、可判斷電源供應裝置的種類之可攜式電子裝置及其相關判斷方法
CN201773967U (zh) * 2010-06-30 2011-03-23 深圳富泰宏精密工业有限公司 通用串行总线连接结构
US9817772B2 (en) * 2012-12-20 2017-11-14 Icron Technologies Corporation Systems and methods for exchanging USB information with selected remote devices
CN103106167B (zh) * 2013-01-22 2015-12-02 矽力杰半导体技术(杭州)有限公司 一种usb设备及其控制方法
CN104023294B (zh) * 2014-05-30 2017-08-11 广东欧珀移动通信有限公司 终端中的接口复用装置和转接板
US9798689B2 (en) * 2014-11-03 2017-10-24 Icron Technologies Corporation Systems and methods for enabling communication between USB type-C connections and legacy connections over an extension medium
US9984030B2 (en) 2014-12-31 2018-05-29 Xiaomi Inc. Electronic device and data transmission system
KR102239572B1 (ko) * 2015-01-27 2021-04-13 삼성전자주식회사 전자 장치들 간 양방향 데이터 통신 방법 및 장치
KR102391100B1 (ko) * 2015-06-10 2022-04-27 삼성전자주식회사 인터페이스 제공 방법 및 장치
CN205178219U (zh) * 2015-10-27 2016-04-20 重庆蓝岸通讯技术有限公司 一种可以加快USB充电速度的Micro USB线
KR102511514B1 (ko) * 2016-02-03 2023-03-20 삼성전자주식회사 다양한 충전 방식을 이용한 고속 충전 방법 및 장치
CN205565238U (zh) 2016-04-26 2016-09-07 苏州科利科技发展有限公司 Type-C对Micro-A USB转换连接器
US10955888B2 (en) * 2018-01-29 2021-03-23 Via Labs, Inc. Universal serial bus device and method for dynamically defining a power source or sink status for downstream facing ports

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340110A (zh) * 2008-04-29 2009-01-07 北京中星微电子有限公司 一种usb otg器件电源及其实现方法
CN204946001U (zh) * 2015-08-05 2016-01-06 庄忆芳 USB Type-C转换模块
CN105867593A (zh) * 2016-05-17 2016-08-17 深圳慧能泰半导体科技有限公司 一种USB Type-C接口电路及其控制装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3553897A4

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI691846B (zh) * 2018-10-04 2020-04-21 宏碁股份有限公司 電子裝置與電子系統

Also Published As

Publication number Publication date
HK1250283A1 (zh) 2018-12-07
US10817449B2 (en) 2020-10-27
EP3553897A1 (en) 2019-10-16
CN108513688A (zh) 2018-09-07
EP3553897A4 (en) 2019-12-18
CN108513688B (zh) 2020-02-14
EP3553897B1 (en) 2020-11-11
US20200004709A1 (en) 2020-01-02

Similar Documents

Publication Publication Date Title
WO2018120498A1 (zh) 一种转接装置以及设备识别方法和设备识别装置
CN109643265B (zh) 自动配置计算设备的通用串行总线(usb)c型端口
TWI476416B (zh) 用於電子裝置之排線連結之偵測裝置、系統與方法
CN106104506B (zh) 用于在usb c型接口中进入附件对接模式的方法、装置和计算机程序产品
CN107203448B (zh) 一种测试PCIe switch芯片暴力热插拔功能的方法及系统
CN107807892B (zh) 一种usb type-c转usb3.0的方法及转接头
CN107797955A (zh) 半导体设备及其操作方法
CN109298266B (zh) 测试系统、测试方法、测试装置及存储介质
CN104636296A (zh) 通过通信控制引脚的串行通信
WO2021227635A1 (zh) Usb接口切换装置、切换方法及终端设备
JP2018536239A (ja) ユニバーサルシリアルバス(usb)ケーブルにおけるデータフローの増大
CN103098039B (zh) 高速外围器件互连总线端口配置方法及设备
CN107038137A (zh) 一种热插拔的设备及方法
WO2017161750A1 (zh) 一种移动设备
WO2023045389A1 (zh) 一种网卡适配电路、网卡适配方法以及相关装置
CN204576500U (zh) 一种兼容i2c通信的usb通信电路和系统
CN111417034A (zh) 一种交换机及其交换板卡热插拔方法、装置和系统
CN109062846A (zh) 通用串行总线装置及其操作方法
CN115733216A (zh) 一种移动电源芯片及相关的检测电路和电子设备
CN104221001B (zh) 外围协议协商
US10515025B2 (en) Communication protocol adapter
CN204314872U (zh) 适配器
HK1250283B (zh) 一种转接装置以及设备识别方法和设备识别装置
CN103036124A (zh) 测试用的转接模具及其相关测试方法
CN108197056A (zh) C型通用串行总线传输线及传输装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17886456

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2017886456

Country of ref document: EP

Effective date: 20190708