WO2017182001A1 - 一种接口配置的方法、装置和计算机存储介质 - Google Patents

一种接口配置的方法、装置和计算机存储介质 Download PDF

Info

Publication number
WO2017182001A1
WO2017182001A1 PCT/CN2017/081524 CN2017081524W WO2017182001A1 WO 2017182001 A1 WO2017182001 A1 WO 2017182001A1 CN 2017081524 W CN2017081524 W CN 2017081524W WO 2017182001 A1 WO2017182001 A1 WO 2017182001A1
Authority
WO
WIPO (PCT)
Prior art keywords
access device
controller
chip
mhl
device type
Prior art date
Application number
PCT/CN2017/081524
Other languages
English (en)
French (fr)
Inventor
袁赛峰
Original Assignee
深圳市中兴微电子技术有限公司
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 深圳市中兴微电子技术有限公司 filed Critical 深圳市中兴微电子技术有限公司
Publication of WO2017182001A1 publication Critical patent/WO2017182001A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R24/00Two-part coupling devices, or either of their cooperating parts, characterised by their overall structure
    • H01R24/60Contacts spaced along planar side wall transverse to longitudinal axis of engagement
    • 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/64Means for preventing incorrect coupling
    • H01R13/641Means for preventing incorrect coupling by indicating incorrect coupling; by indicating correct or full engagement
    • 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
    • H01R13/665Structural association with built-in electrical component with built-in electronic circuit
    • 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
    • H01R13/665Structural association with built-in electrical component with built-in electronic circuit
    • H01R13/6691Structural association with built-in electrical component with built-in electronic circuit with built-in signalling means

Definitions

  • the present invention relates to the field of intelligent terminal technologies, and in particular, to a method, an apparatus, and a computer storage medium for interface configuration.
  • the smart mobile terminal is configured with a data interface, such as a Micro Universal Serial Bus 2.0 (Micro USB 2.0) interface, which is a 5 pin (5 metal pin contacts) interface solution.
  • a data interface such as a Micro Universal Serial Bus 2.0 (Micro USB 2.0) interface, which is a 5 pin (5 metal pin contacts) interface solution.
  • the interface provides a charging function for the mobile phone and a data transmission function with a computer and the like, and an external serial bus (USB, Universal Serial Bus) such as a mouse, a keyboard, or a USB flash drive can be externally connected through the OTG (On The Go) line. It can also output audio and video to large-screen devices such as monitors and TVs through the mobile high-definition video interface (MHL) to the standard high-definition multimedia interface (HDMI).
  • MHL mobile high-definition video interface
  • HDMI high-definition multimedia interface
  • the interface can only support the above functions separately, and cannot support USB and MHL functions at the same time.
  • the interface adopts a tongue-shaped design, which has a front and a back, and the data cable plug must be aligned before being inserted, which is inconvenient for the user to use.
  • embodiments of the present invention are intended to provide a method, apparatus, and computer storage medium for interface configuration.
  • an embodiment of the present invention provides a method for configuring an interface, where the method includes:
  • the power supply pin of any plugged surface sends an access signal to the power controller of the terminal device;
  • the access device type indication pin when only the first access device accesses any of the insertion faces, and the any insertion face is the first insertion face, the access device type indication pin according to the any insertion face Receiving a signal status forwarded by the chip select controller connected to the socket, identifying a device type of the access device, and determining an operating state of the any insertion surface, including:
  • the access device type indicating pin of the first insertion face When the access device type indicating pin of the first insertion face receives the command transmission signal state of the MHL chip controller through the chip select controller, the first access device recognizes as a USB device, and the first insertion Enter the first USB working state;
  • the access device type indicating pin of the first insertion face receives the command transmission signal state voltage of the MHL chip controller through the chip select controller is pulled down, and the resistance value of the pull-down resistor of the command transmission signal is When the first value is confirmed, if the first access device is an MHL device, the first insertion surface enters an MHL working state;
  • the access device type indicating pin of the first insertion face receives the command transmission signal state voltage of the MHL chip controller through the chip select controller is pulled down, and the resistance value of the pull-down resistor of the command transmission signal is If the first access device is not the MHL device, the device identification fails.
  • the access device type indicating pin of the first insertion face receives the command transmission signal state voltage of the MHL chip controller through the chip select controller is pulled down, and the resistance value of the pull-down resistor of the command transmission signal is not
  • the first value is, the first access device is identified as a USB device, The first insertion surface enters a second USB working state.
  • the device that identifies the first access device is After the type, it also includes:
  • the power supply pin of the second insertion surface sends an access signal to the power controller of the terminal device;
  • the access device type indication pin of the second insertion plane is connected to the second signal forwarded by the chip select controller;
  • the access device type indication pin of the second insertion plane is connected to the second signal forwarded by the chip select controller, including:
  • the access device type indication pin of the second insertion plane is connected to the command transmission signal of the MHL chip controller through the chip select controller;
  • the access device type indication pin of the second insertion plane is connected to the air interface signal of the USB chip by the chip select controller.
  • the working state of the second insertion surface includes:
  • the access device type indication pin of the second insertion surface receives the command transmission signal state of the MHL chip controller through the chip selection controller, and determines the working state of the second insertion surface;
  • the access device type indicating pin of the second insertion surface receives the air interface signal of the USB chip through the chip selection controller, identifies the device type of the second access device, and determines the working of the second insertion surface. status.
  • the access device type indication pin of the second insertion surface receives the command transmission signal state of the MHL chip controller through the chip selection controller, and determines the working of the second insertion surface.
  • Status including:
  • the access device type indicating pin of the second insertion face When the access device type indicating pin of the second insertion face receives the command transmission signal of the MHL chip controller suspended by the chip select controller, the access device type indicating pin of the second insertion face is disconnected Connection to the command transmission signal of the MHL chip controller;
  • the access device type indicating pin of the second insertion face receives the command transmission signal of the MHL chip controller through the chip select controller, the voltage of the command transmission signal is pulled down, and the pull-down resistance of the command transmission signal is blocked.
  • the value is the first value, if it is confirmed that the second access device is an MHL device, the second insertion surface enters an MHL working state;
  • the access device type indicating pin of the second insertion face receives the command transmission signal of the MHL chip controller through the chip select controller, the voltage of the command transmission signal is pulled down, and the pull-down resistance of the command transmission signal is blocked. If the value is the first value, if the second access device is not the MHL device, the second access device fails to be identified;
  • the access device type indicating pin of the second insertion face receives the command transmission signal of the MHL chip controller through the chip select controller, the voltage of the command transmission signal is pulled down, and the pull-down resistance of the command transmission signal is blocked.
  • the second access device identifies the failure.
  • the access device type indication pin of the second insertion plane receives the air interface signal of the USB chip through the chip selection controller, identifies the second access device type, and determines the second insertion.
  • Working status including:
  • the second insertion surface enters a USB working state
  • the access device type indicating pin of the second insertion face disconnects from the USB chip.
  • the method further includes:
  • the power supply pins of the first insertion surface and the second insertion surface send an access signal to the power controller of the terminal device;
  • the access device type indication pin of the first insertion plane and the first letter forwarded by the chip select controller Number is connected;
  • the access device type of the first insertion plane indicates that the pin receives the first signal state forwarded by the chip select controller, identifies the device type of the first access device, and determines the working state of the first insertion surface;
  • the access device type indication pin of the second insertion plane is connected to the second signal forwarded by the chip select controller;
  • the access device type indicating pin of the first insertion plane receives the first signal state forwarded by the chip select controller, identifies the device type of the first access device, and determines the first insertion surface.
  • Working status including:
  • the access device type indication pin of the first insertion plane receives the command transmission signal state of the MHL chip controller through the chip selection controller, and determines the first access device type of the first insertion plane;
  • the access device type of the first insertion face is identified as a USB device, disconnecting the access device type indication pin of the first insertion face from the command transmission signal of the MHL chip controller;
  • the access device type indicating pin of the first insertion surface is connected to the air interface of the USB chip through the chip select controller, and the first insertion surface enters a USB working state;
  • the access device type of the first insertion face is identified as an MHL device, maintaining a connection of the access device type indication pin of the first insertion face with a command transmission signal of the MHL chip controller, An insertion face enters the MHL working state.
  • the access device type indication pin of the first insertion plane receives the command transmission signal state of the MHL chip controller through the chip selection controller, and determines the first access device type of the first insertion plane, including:
  • the access device type indicating pin of the first insertion face When the access device type indicating pin of the first insertion face receives the command transmission signal state of the MHL chip controller through the chip select controller, the first access device recognizes that a USB device, the first insertion surface enters a first USB working state;
  • the access device type indicating pin of the first insertion face receives the command transmission signal state voltage of the MHL chip controller through the chip select controller is pulled down, and the pull-down resistance of the command transmission signal is blocked
  • the value is the first value, if it is confirmed that the first access device is an MHL device, the first insertion surface enters an MHL working state
  • the access device type indicating pin of the first insertion face receives the command transmission signal state voltage of the MHL chip controller through the chip select controller is pulled down, and the pull-down resistance of the command transmission signal is blocked
  • the value is the first value, if it is confirmed that the first access device is not an MHL device, the device identification fails;
  • the access device type indicating pin of the first insertion face receives the command transmission signal state voltage of the MHL chip controller through the chip select controller is pulled down, and the pull-down resistance of the command transmission signal is blocked
  • the first access device is recognized as a USB device, and the first insertion surface enters a second USB working state.
  • the access device type indication pin of the second insertion plane is connected to the second signal forwarded by the chip selection controller according to the device type of the first access device, including:
  • the access device type indication pin of the second insertion plane is connected to the command transmission signal of the MHL chip controller by the chip select controller;
  • the access device type indication pin of the second insertion face is connected to the command air interface signal of the USB chip by the chip select controller.
  • the second signal state forwarded by the chip select controller received by the access device type indicating pin of the second insertion surface is used, the device type of the second access device is identified, and the The working state of the second insertion surface includes:
  • the access device type indication pin of the second insertion surface receives the command transmission signal state of the MHL chip controller through the chip selection controller, and determines the working state of the second insertion surface;
  • the access device type indication pin of the second insertion plane receives the air interface signal of the USB chip through the chip selection controller, identifies the second access device type, and determines the second The working state of the insertion face.
  • the access device type indication pin of the second insertion surface receives the command transmission signal state of the MHL chip controller through the chip selection controller, and determines the working state of the second insertion surface, including:
  • the access device type indicating pin of the second insertion face When the access device type indicating pin of the second insertion face receives the command transmission signal of the MHL chip controller suspended by the chip select controller, the access device type indicating pin of the second insertion face is disconnected from the MHL The connection of the command signal of the chip controller;
  • the access device type indicating pin of the second insertion face receives the command transmission signal of the MHL chip controller through the chip select controller, the voltage of the command transmission signal is pulled down, and the pull-down resistance of the command transmission signal is blocked.
  • the value is the first value, if it is confirmed that the second access device is an MHL device, the second insertion surface enters an MHL working state;
  • the access device type indicating pin of the second insertion face receives the command transmission signal of the MHL chip controller through the chip select controller, the voltage of the command transmission signal is pulled down, and the pull-down resistance of the command transmission signal is blocked. If the value is the first value, if the second access device is not the MHL device, the second access device fails to be identified;
  • the access device type indicating pin of the second insertion face receives the command transmission signal of the MHL chip controller through the chip select controller, the voltage of the command transmission signal is pulled down, and the pull-down resistance of the command transmission signal is blocked.
  • the second access device identifies the failure.
  • the access device type indication pin of the second insertion plane receives the air interface signal of the USB chip through the chip selection controller, identifies the second access device type, and determines the working state of the second insertion surface.
  • the second insertion surface enters a USB working state
  • the access device type indicating pin of the second insertion face disconnects from the USB chip.
  • the embodiment of the present invention further provides an apparatus for configuring an interface, where the apparatus includes: a sending module and a processing module;
  • the sending module is configured to insert any device that is oriented to the terminal device when the access device accesses
  • the power controller sends an access signal
  • the processing module is configured to be connected to a signal forwarded by any of the insertion planes and the chip select controller;
  • the processing module is configured to: when the first insertion plane receives the command transmission signal state of the MHL chip controller through the chip selection controller, the first access device is identified as a USB device, The first insertion surface enters a first USB working state;
  • the command transmission signal state voltage of the MHL chip controller is pulled low, and the resistance value of the pull-down resistor of the command transmission signal is the first value, if confirmed
  • the first access device is an MHL device, and the first insertion surface enters an MHL working state
  • the command transmission signal state voltage of the MHL chip controller is pulled low, and the resistance value of the pull-down resistor of the command transmission signal is the first value, if confirmed If the first access device is not an MHL device, the device identification fails;
  • the first insertion face receives a command transmission signal state voltage of the MHL chip controller through the chip select controller, and the resistance value of the pull-down resistor of the command transmission signal is not the first value
  • the first access device is identified as a USB device, and the first insertion surface enters a second USB working state.
  • the sending module is configured to: when the second access device accesses, the second power supply controller that is inserted into the terminal device sends an access signal;
  • the processing module is configured to: according to the device type of the first access device, the second insertion surface and the second signal forwarded by the chip select controller are turned on;
  • the processing module is configured to: if the first access device has been identified as a USB device, the second insertion plane passes the command of the chip select controller and the MHL chip controller The transmission signal is turned on;
  • the second insertion surface is connected to the air interface signal of the USB chip through the chip select controller.
  • the processing module is configured to receive, by the chip selection controller, a command transmission signal state of the MHL chip controller by the chip insertion controller, and determine an operation state of the second insertion surface;
  • the second insertion surface receives the air interface signal of the USB chip through the chip selection controller, identifies the device type of the second access device, and determines the working state of the second insertion surface.
  • the processing module is configured to: when the second insertion surface receives the command transmission signal of the MHL chip controller by the chip selection controller, the second insertion surface is disconnected from the MHL chip controller.
  • the second insertion surface enters an MHL working state
  • the second access device fails to identify;
  • the second access device identifies the failure.
  • the processing module is configured to enter the USB working state if the second insertion faces the USB device successfully.
  • the second insertion surface disconnects from the USB chip.
  • the sending module is configured to send, when the first access device and the second access device are simultaneously accessed, the first insertion plane and the second insertion power controller sent to the terminal device Access signal
  • the processing module is configured to be connected to the first signal that is forwarded by the first insertion plane and the chip select controller;
  • the first insertion plane receives the first signal state forwarded by the chip selection controller, identifies the device type of the first access device, and determines an operation state of the first insertion surface;
  • the second insertion surface and the second signal forwarded by the chip select controller are turned on according to the device type of the first access device
  • the processing module is configured to receive, by the chip selection controller, a command transmission signal state of the MHL chip controller by the chip selection controller, and determine a first access device type of the first insertion surface;
  • the first insertion surface is connected to the air interface of the USB chip by the chip selection controller, and the first insertion surface enters a USB working state;
  • the access device type of the first insertion face is identified as an MHL device, maintaining a connection of the first insertion face with a command transmission signal of the MHL chip controller, and the first insertion face enters the MHL work status.
  • the processing module is configured to: when the first insertion plane receives the command transmission signal state of the MHL chip controller through the chip selection controller, the first access device is identified as a USB device, The first insertion surface enters a first USB working state;
  • the first insertion face receives a command transmission signal state voltage of the MHL chip controller through the chip select controller, and the resistance value of the pull-down resistor of the command transmission signal is the first value, If it is confirmed that the first access device is an MHL device, the first insertion surface enters an MHL working state;
  • the device identification fails;
  • the first insertion face receives a command transmission signal state voltage of the MHL chip controller through the chip select controller, and the resistance value of the pull-down resistor of the command transmission signal is not the first value
  • the first access device is identified as a USB device, and the first insertion surface enters a second USB working state.
  • the processing module is configured to: when the first access device type is identified as a USB device, the second insertion surface is connected to a command transmission signal of the MHL chip controller by the chip select controller;
  • the second insertion face is connected to the command air interface signal of the USB chip by the chip select controller.
  • the processing module is configured to receive, by the chip selection controller, a command transmission signal state of the MHL chip controller by the chip insertion controller, and determine an operation state of the second insertion surface;
  • the access device type indication pin of the second insertion plane receives the air interface signal of the USB chip through the chip selection controller, identifies the second access device type, and determines the second insertion surface. Working status.
  • the processing module is configured to: when the second insertion surface receives the command transmission signal of the MHL chip controller through the chip selection controller, the second insertion surface is disconnected from the command of the MHL chip controller. The connection of the transmitted signal;
  • the second insertion surface enters an MHL working state
  • the second access device fails to identify;
  • the second access device identifies the failure.
  • the processing module is configured to enter the USB working state if the second insertion faces the USB device successfully.
  • the access device type indicating pin of the second insertion face disconnects from the USB chip.
  • an embodiment of the present invention provides a method for configuring an interface, which is applied to an interface configuration device, where the interface configuration device includes a socket portion, and the socket portion includes two insertion surfaces that are rotated mirror images, and two insertion surfaces.
  • the interface configuration device includes a socket portion, and the socket portion includes two insertion surfaces that are rotated mirror images, and two insertion surfaces.
  • Each includes a power supply pin and an access device type indicating pin, and the method includes:
  • the access signal is received through the power supply pin of any of the insertion faces;
  • the command transmission signal is a chip selection controller connected to the socket through any one of the insertions
  • the access device type indication pin receives the command transmission signal and forwards it.
  • the device when only the first access device accesses the first insertion plane of the two insertion planes, the device identifies the device type of the access device according to the state of the command transmission signal, and determines the The working state of an insert face, including:
  • the first access device When the state of the command transmission signal is floating, the first access device is identified as a USB device, and the first insertion surface is determined to enter a first USB working state;
  • the ingress device is an MHL device, and determining that the first insertion face enters an MHL working state
  • the device identification fails.
  • the first access device identifies the USB device, and determines that the first insertion surface enters the second USB working state.
  • the method further includes:
  • the access signal is received through the power supply pin of the second insertion surface
  • the access device type indication pin of the second insertion plane is connected to the controller that is not corresponding to the first access device by using the chip selection controller according to the device type of the first access device.
  • the access device type indication pin of the second insertion plane and the MHL chip controller are turned on by the chip select controller;
  • the access device type indication pin of the second insertion plane and the USB chip are turned on by the chip select controller.
  • the device type of the second access device is determined according to the state of the second signal, and the working state of the second insertion surface is determined, including:
  • the USB chip is connected to the access device type indicating pin of the second insertion surface through the chip select controller, according to the state of the air interface signal of the second insertion surface received by the chip select controller, The device type of the second access device is identified, and the working state of the second insertion surface is determined.
  • the command according to the second insertion plane received by the chip selection controller The state of the transmitted signal determines the working state of the second insertion face, including:
  • the second access device is an MHL device, and confirms that the second insertion surface enters an MHL working state
  • the second access device fails to identify;
  • the determining, according to the state of the air interface signal of the second insertion plane received by the chip selection controller, the second access device type, determining the working state of the second insertion surface including:
  • the second insertion surface enters a USB working state
  • the connection of the access device type indication pin of the second insertion surface to the USB chip is disconnected by the chip selection controller.
  • the method comprises:
  • the access device type indicating pin of the second insertion face is a controller corresponding to the non-first access device
  • the access device type of the second insertion plane indicates that the pin receives the second signal and forwards it.
  • the access device type indication pin of the MHL chip controller and the first insertion surface is turned on by the chip selection controller;
  • the access device type of the first insertion face is identified as a USB device, disconnecting the access device type indication pin of the first insertion face with the MHL chip controller;
  • the access device type indicating pin of the first insertion surface and the USB chip are turned on by the chip selection controller, and the first insertion surface enters a USB working state;
  • the access device type of the first insertion face When the access device type of the first insertion face is identified as an MHL device, maintaining a connection of the access device type indication pin of the first insertion face with the MHL chip controller, the first insertion face enters MHL working status.
  • the determining, according to the state of the command transmission signal of the first insertion plane, determining the first access device type of the first insertion plane including:
  • the first access device When the state of the command transmission signal of the first insertion plane is floating, the first access device is identified as a USB device, and determining that the first insertion surface enters a first USB working state;
  • the state of the command transmission signal of the first insertion surface is that the voltage is pulled down, and the resistance value of the pull-down resistor on the access device type indicating pin of the first insertion surface is the first value, if the confirmation is The first access device is an MHL device, and then determining that the first insertion surface enters an MHL working state;
  • the device identification fails;
  • the first access device is identified as a USB device, and the first insertion surface is determined to enter a second USB working state.
  • the access device type indication pin of the second insertion plane is controlled by the chip selection controller to be corresponding to the first access device. , including:
  • the access device type indication pin of the second insertion plane is turned on by the chip select controller and the MHL chip controller;
  • the access device type indication pin of the second insertion plane and the USB chip are turned on by the chip select controller.
  • the device type of the second access device is determined according to the state of the second signal of the second insertion surface, and determining the working state of the second insertion surface includes:
  • the USB chip when the USB chip is connected to the access device type indicating pin of the second insertion surface through the chip select controller, according to the state of the air interface signal of the second input surface received by the chip select controller, The second access device type performs identification to determine an operating state of the second insertion surface.
  • the determining, according to the state of the command transmission signal of the second insertion plane received by the chip selection controller, the working state of the second insertion surface including:
  • the second access device fails to identify;
  • the determining, according to the air interface signal of the second insertion plane received by the chip selection controller, the second access device type, determining the working state of the second insertion surface including:
  • the second insertion surface enters a USB working state
  • the connection of the access device type indication pin of the second insertion surface to the USB chip is disconnected by the chip selection controller.
  • an embodiment of the present invention further provides an interface configuration apparatus, including a socket portion, the socket portion includes two insertion faces that are rotated mirror images, and both insertion faces include a power supply pin and an access device type. Indicating a pin, the device comprising: a receiving module and a processing module; wherein
  • the receiving module is configured to receive an access signal through a power supply pin of any insertion surface when the access device is accessed;
  • the processing module is configured to identify a device type of the access device according to a status of the command transmission signal, and determine an working state of the any insertion surface; the command transmission signal is a chip selection control connected to the socket The device receives the command transmission signal and forwards it through the access device type indicating pin of any of the insertion faces.
  • the processing module is configured to: when only the first access device accesses the first insertion surface of the two insertion faces, when the state of the command transmission signal is floating, the first The access device is identified as a USB device, and the first insertion surface enters a first USB working state;
  • the state of the command transmission signal is that the voltage is pulled low, and the resistance value of the pull-down resistor on the access device type indicating pin of the first insertion surface is the first value, if the first The access device is an MHL device, and determining that the first insertion surface enters an MHL working state;
  • the device identification fails;
  • the first access device Recognized as a USB device, determining that the first insertion face enters a second USB operation.
  • the receiving module is configured to connect the first access device to the first insertion surface of the two insertion planes, and the second access device accesses the second insertion surface of the two insertion surfaces.
  • the access signal is received through the power supply pin of the second insertion surface;
  • the processing module is configured to: according to the device type of the first access device, control, by using a chip select controller, the second plug-in access device type indication pin and the non-first access device And determining, according to a state of the second signal, a device type of the second access device, determining an operating state of the second insertion surface; the second signal is that the chip select controller passes the second The access device type of the plug-in indicates that the pin receives the second signal and forwards it.
  • the processing module is configured to: when the first access device has been identified as a USB device, the access device type indication pin of the second insertion plane is turned on by the chip selection controller.
  • the MHL chip controller or if the first access device has been identified as an MHL device, the access device type indicating pin of the second plug-in surface and the USB chip are turned on by the chip select controller.
  • the processing module is configured to be received by the chip select controller when the MHL chip controller is connected to the second plug-in access device type indicating pin by the chip select controller. Determining, by the command of the second insertion surface, a state of the signal, determining an operating state of the second insertion surface;
  • USB chip when the USB chip is connected to the second plug-in access device type indicating pin through the chip select controller, according to the state of the air interface signal of the second insertion surface received by the chip select controller, Identifying, by the device type of the second access device, determining the second insertion surface Working status.
  • the processing module is configured to: when the first access device accesses any side, the second access device accesses the other side of any of the faces, and the any one of the faces is the first insertion face, the any face When the other side is the second insertion plane, identifying the device type of the first access device, and determining the working state of the first access surface; identifying the device type of the first access device, and determining After the working state of the first access device is performed, the access device type indication pin of the second insertion plane is turned on by the chip selection controller according to the device type of the first access device. a controller corresponding to the first access device;
  • the device receives the second signal and forwards it through the access device type indicating pin of the second insertion surface.
  • an embodiment of the present invention further provides an interface configuration apparatus, including a socket portion, where the socket portion includes two insertion surfaces that are rotated mirror images, and both insertion surfaces include a power supply pin and an access device type. Indicating the pin, the device further includes:
  • a processor configured to receive an access signal through a power supply pin of any of the insertion planes when the access device is accessed; and identify a device type of the access device according to a status of the command transmission signal, and determine the An operation state of the insertion face; the command transmission signal is that the chip select controller connected to the socket receives the command transmission signal and forwards through the access device type indication pin of the any insertion face.
  • an embodiment of the present invention further provides a computer storage medium, the computer storage medium comprising a set of instructions, when the instruction is executed, causing at least one processor to perform the method of configuring the interface.
  • Embodiments of the present invention provide a method, an apparatus, and a computer storage medium for configuring an interface, modifying a metal pin contact of a data interface socket and a plug, and designing another side of the data line of the connection plug to be simultaneously connectable Into the fork line of the USB device and MHL device. It realizes the simultaneous support of USB and MHL functions, and the interface is not divided into front and back, which is convenient for users.
  • FIG. 1 is a schematic structural diagram of a socket and a plug of an interface configuration apparatus according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of connection between a plug and an interface of an interface configuration device according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of connection structure of an access device type identification circuit according to an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of an interface configuration method according to an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of determining an working state of a first insertion surface according to an embodiment of the present disclosure
  • FIG. 6 is a schematic flowchart diagram of another interface configuration method according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic flowchart of turning on a second signal according to an embodiment of the present invention.
  • FIG. 8 is a schematic flowchart of determining an working state of a second insertion surface according to an embodiment of the present invention.
  • FIG. 9 is a schematic flowchart of determining an working state of a second insertion surface as an MHL according to an embodiment of the present invention.
  • FIG. 10 is a schematic flowchart of determining a working state of a second insertion surface as a USB according to an embodiment of the present disclosure
  • FIG. 11 is a schematic flowchart diagram of another interface configuration method according to an embodiment of the present disclosure.
  • FIG. 12 is a schematic flowchart of determining an operating state of a first insertion surface according to an embodiment of the present disclosure
  • FIG. 13 is a schematic flowchart of turning on a second signal according to an embodiment of the present invention.
  • FIG. 14 is a schematic flowchart of determining an operating state of a second insertion surface according to an embodiment of the present invention.
  • FIG. 15 is a schematic structural diagram of an interface configuration apparatus according to an embodiment of the present invention.
  • the interface device may include: a socket and a plug.
  • the socket part is located on the terminal device, replacing the existing terminal device data interface, such as a Micro USB 2.0 interface; the plug portion is located at one end of the data line, and each metal pin point matches the metal pin contact of the socket portion .
  • FIG. 2 it is shown The other end of the data cable that connects the plug.
  • the other end of the data cable is connected to the USB device through one side of the fork line, and the MHL device is connected to the other side.
  • the access position of the device is not fixed, and the two sides can be interchanged at will.
  • MHL is a video and audio standard interface for connecting portable consumer electronic devices. It uses a signal cable to display audio and video signals on devices such as HDTVs through standard HDMI input.
  • the embodiment of the present invention adopts an interface scheme of 10 pins (10 metal pin contacts), both sides. Each 5pin.
  • the socket is divided into two sides, and there are two insertion faces, and each of the pins on each side is numbered sequentially by 1, 2, 3, 4, and 5.
  • the order of the interface contacts above the socket is 5, 4, 3, 2, 1. Since the 5 signal lines on the interface above the socket are the rotating mirror images of the 5 signal lines on the lower interface, the 5 contacts on the lower interface are from left to right.
  • the order of arrangement is 1, 2, 3, 4, 5.
  • the functions of the five pins are power supply to the terminal device, negative differential signal, positive differential signal, type indicating the access device, and signal ground.
  • a pin with pin number 1 is used to supply power to the terminal device.
  • this pin is VCC, which means the power supply is 5 volts.
  • this pin is VBUS, which also means that the power supply is 5 volts.
  • a pin numbered 2 that functions as a negative differential signal. When used as a USB function, this pin is D-, indicating that the differential data line is negative; when used as the MHL function, this pin is MHL-, indicating that the differential video signal is negative and corresponds to the HDMI signal line RX0-.
  • a pin numbered 3 that functions as a positive differential signal. When used as a USB function, this pin is D+, indicating that the differential data line is positive; when used as the MHL function, this pin is MHL+, indicating that the differential video signal is positive and corresponds to the HDMI signal line RX0+.
  • Pin with pin number 4 which is the access device type indicator pin.
  • This pin has two states, one is ID, which means air interface, and the other is CBUS, which means that the command transmits signals.
  • the USB chip has a matching ID
  • the MHL chip has a matching CBUS.
  • the ID of the USB chip is connected to this pin, it functions as a USB function.
  • the CBUS of the MHL chip is connected to this pin, it functions as an MHL function.
  • a pin numbered 5 that functions as a signal ground. When used as both the USB function and the MHL function, it is GND, indicating the signal ground.
  • the plug portion in Fig. 1 adopts a hardware shape corresponding to the socket, and five metal contacts are distributed on both sides.
  • the metal contact signal line of the plug has a one-to-one correspondence with the socket, one side is 1, 2, 3, 4, 5, and the other side is 5, 4, 3, 2, 1.
  • the terminal device intelligently distinguishes the type of the accessed device through the fourth signal line ID/CBUS.
  • the power controller, the high-speed switch, the chip select controller, the MHL chip controller, and the USB chip jointly control the identification of the access device type.
  • the side of the socket is A side, the other side is B side, and both sides of A and B are rotating mirror images.
  • the power controller is connected to the A side of the socket and the 1st pin of the B side, respectively, and is configured to supply power to the terminal device.
  • One side of the high-speed switch is connected to the A side and the B side of the socket, and the other side is connected to the USB chip and the MHL chip controller to transmit differential signals.
  • the A and B sides of the socket are respectively connected to the 2nd pin and the 3rd pin;
  • the differential data line connected to the USB chip is negative and differential data.
  • the line is positive, corresponding to the USB functions of the A and B sides of the socket, and the 2nd and 3rd pins of the socket; when connected to the MHL chip controller, the differential video signal of the MHL chip controller is connected to the negative and differential video signals. It is the same as the switching control line, which also corresponds to the MHL function of pins 2 and 3 on the A and B sides of the socket.
  • the chip select controller is connected to the A side and the B side of the socket, and the other side is connected to the USB respectively.
  • the chip and the MHL chip controller identify the type of access device. Wherein, when connected to the A side and the B side of the socket, the A side of the socket and the 4th pin of the B side are respectively connected; when connected with the USB chip, the air signal signal line connecting the USB chip is respectively connected with the A side and the B side of the socket.
  • the USB function of the No. 4 pin corresponds to; when connected with the MHL chip controller, the command transmission signal and the switching control line of the MHL chip controller are connected, and the command transmission signal of the MHL chip controller is connected to the socket A respectively.
  • the face corresponds to the MHL function of pin 4 on the B side.
  • the chip select controller further includes a USB_ID switch configured to select a USB device or an MHL device.
  • the socket portion of the interface device is arbitrarily connected to both sides of the plug portion, and the same numbered pins have the same function.
  • the 4th pin that is, the access device type indication pin is connected to the USB chip or the MHL chip controller through the chip select controller to identify the type of the access device. Since the bifurcation line of the data line has two interfaces, two different types of devices can be accessed. Therefore, the embodiment of the present invention is divided into three cases according to the access order of the access device. In the first case, any interface of the data line bifurcation line is inserted into one access device, and the other interface is not inserted into any access device; in the second case, one of the bifurcation lines of the data line first recognizes the inserted device. After the first access device, the other interface is inserted into the second access device. In the third case, the two interfaces of the data line are simultaneously inserted into the first access device and the second access device.
  • the connection relationship between the chips shown in FIG. 3 and the pins of the socket can be obtained, and the two sides of the socket cannot simultaneously identify the same Type of device.
  • the access device type is a USB device
  • the B side of the socket can no longer be recognized as the access device type of the USB device.
  • the interface device provided by the embodiment of the invention simultaneously supports the USB and MHL functions, and can be connected to the large-screen display device of the MHL, connected to the USB mouse keyboard and the mobile hard disk, and the terminal device is used as the host computer. It opens up a wider space for applications such as office and entertainment for terminal devices such as smartphones and tablets.
  • the interface device can be intelligently recognized and inserted into the device, and the plug is not divided into front and back, and the user can insert it at will, which greatly brings convenience.
  • an embodiment of the present invention provides a method for configuring an interface, where While the plug of the device is inserted into the socket, any interface of the bifurcation line of the data line is inserted into an access device.
  • the A surface is used as the first insertion surface
  • the B surface is used as the second insertion surface as an example.
  • the method may include:
  • the corresponding pin A of the A side of the socket sends an access signal to the power controller of the terminal device.
  • the power controller of the terminal device After receiving the access signal sent by the pin 1 of the A side to the power controller, the power controller of the terminal device detects the access of the first access device and sends an interrupt request to the central processing unit (CPU). .
  • CPU central processing unit
  • the access device type indication pin according to any one of the insertion planes receives a signal status forwarded by a chip select controller connected to the socket, identifies a device type of the access device, and determines any one of the Working state of the insert face
  • the access device type indicating pin of any of the insertion faces is connected to a signal forwarded by the chip select controller.
  • the CPU of the terminal device sends a connection command to the MHL chip controller, and the command transmission signal of the MHL chip controller and the No. 4 pin of the A side are turned on by the chip select controller.
  • the terminal device recognizes the access device through the pin 4, that is, the ID of the USB or the CBUS signal line of the MHL, the command transmission signal of the MHL chip controller and the pin 4 of the A side are turned on by the chip select controller. To determine the type of access device.
  • the No. 4 pin of the A side is suspended or the voltage is pulled low, and it is judged that the working state of the A side is the USB working state or the MHL working state.
  • step S102 includes steps S1021 to S1024:
  • the access device type indication pin of the first insertion surface receives the command transmission signal state of the MHL chip controller through the chip selection controller, the first access device is identified as a USB device.
  • the first insertion surface enters a first USB working state.
  • the 4th pin CBUS/USB_ID has a pull-up resistor
  • the USB_ID pin remains high
  • the MHL is disconnected.
  • the pin contacts of the USB port of the computer and other devices are 4, that is, 4 pins
  • the 5 signal lines of the A side are connected to the 4 signal lines of the USB port.
  • the 4th foot of the A side, CBUS/USB_ID, is suspended. Then the 4th pin of the A side remains high, then the A side enters the first USB working state.
  • the first USB working state indicates that the terminal device connected to the A side is used as a USB device (USB-DEVICE).
  • the command transmission signal voltage of the MHL chip controller is pulled low. If the pull-down resistor of the command transmission signal is 1K ⁇ , the handshake process is started, and it is confirmed by the handshake process whether the first access device is an MHL device.
  • the chip select controller continues to connect the command transmission signal of the MHL chip controller with the No. 4 pin of the A side, the USB switch changes the connection state to the MHL state, and the A side enters the MHL operation. status. Received by the chip select controller
  • the access device type indicating pin of the first insertion face receives the command transmission signal state voltage of the MHL chip controller through the chip select controller, the voltage is pulled down, and the pull-down resistance of the command transmission signal is At 1 K ⁇ , if it is confirmed that the first access device is not an MHL device, the device identification fails.
  • the USB switch maintains the initial state, and the insertion surface of the access device stays on the default USB side, and the device cannot recognize the device.
  • the command transmission signal voltage of the MHL chip controller is pulled low. If the pull-down resistor of the command transmission signal is not 1K ⁇ , the chip select controller disconnects the command transmission signal of the MHL chip controller from the A-side pin No. 4, and turns on the USB chip air interface signal and the A-side pin No. 4, USB. The switch remains in the connected state and remains in the USB state, and the A side enters the second USB working state.
  • the access device sends an access signal to the power controller of the terminal device through the power supply pin of any plug-in surface.
  • the power controller receives the access signal through the power supply pin of any of the input faces.
  • the power controller of the terminal device receives the access signal through the corresponding pin A of the A side corresponding to the socket.
  • the power controller of the terminal device After receiving the access signal through the pin 1 of the A side, the power controller of the terminal device detects the access of the first access device, and sends an interrupt request to the CPU to be recognized by the MHL chip under the control of the CPU.
  • the device type of the access device is determined, and the working state of any of the insertion faces is determined, that is, S102 is performed.
  • the device type of the access device is identified, and the working state of any of the insertion faces is determined.
  • the command transmission signal is that the chip select controller connected to the socket receives the command transmission signal and forwards through the access device type indication pin of any of the insertion faces.
  • the received command transmission signal refers to a command transmission signal in a certain state.
  • the access device type indicating pin of any of the insertion faces is connected to the chip select controller.
  • the CPU of the terminal device sends a connection command to the MHL chip controller to
  • the CBUS signal line of the MHL chip controller and the No. 4 pin of the A side are turned on by the chip select controller.
  • the terminal device recognizes the access device through the pin 4, that is, the ID of the USB or the CBUS of the MHL, the CBUS signal line of the MHL chip and the pin 4 of the A side are turned on by the chip select controller to judge The type of access device.
  • the MHL chip controller determines whether the state of the signal on the A side is a USB working state or an MHL working state according to whether the state of the signal transmitted by the command is floating or the voltage is pulled low.
  • step S102 includes steps S1021 to S1024. among them,
  • the first access device is identified as a USB device, and the first insertion surface is determined to enter a first USB working state.
  • the 4th pin CBUS/USB_ID has a pull-up resistor, the USB_ID pin remains high, and the USB_ID switch and the high-speed switch both hit the USB side, and the MHL is disconnected.
  • the connection status of the pin 4 on the A side and the level of the signal are judged.
  • the pin contacts of the USB interface of the computer and the like are 4, that is, 4 pins
  • the 5 signal lines of the A side are connected to the 4 signal lines of the USB interface
  • the 4th pin CBUS/USB_ID of the A side is suspended. Then the 4th pin of the A side remains high, then the A side enters the first USB working state.
  • the first USB working state indicates that the terminal device connected to the A side is used as a USB device (USB-DEVICE).
  • the voltage of the command transmission signal is pulled down.
  • the resistance value of the pull-down resistor on the access device type indication pin (pin 4) of the A side is the first value (For example, 1K ⁇ )
  • the handshake process is started, and the first access device is confirmed by the handshake process. MHL equipment.
  • the chip select controller continues to turn on the CBUS signal line of the MHL chip controller and the No. 4 pin of the A side, and the MHL chip controller controls the USB_ID by switching the control signal transmitted by the control line.
  • the switch changes the connection status to the MHL status, and the A side enters the MHL working state.
  • the USB_ID switch maintains the initial state, and the insertion surface of the access device stays on the default USB side, and the access device cannot recognize the device.
  • the state of the command transmission signal is that the voltage is pulled down, and the resistance value of the pull-down resistor on the access device type indicating pin of the first insertion surface is not the first value (for example, 1K ⁇ )
  • the first access device is identified as a USB device, and the first insertion surface enters a second USB working state.
  • the MHL chip controller controls the chip select controller to disconnect the CBUS signal line of the MHL chip controller from the A-side pin 4 by switching the control line transmission control signal, and turns on the air interface signal line of the USB chip. (ID signal line) and the No. 4 pin on the A side, the USB_ID switch remains in the connected state, and still in the USB state, the A side enters the second USB working state.
  • USB-HOST USB host device
  • the MHL chip controller detects the resistance of the pull-down resistor and stores it in a register to obtain the resistance of the pull-down resistor from the register.
  • the No. 2 pin and the No. 3 pin of the A side or the B side of the socket are connected to the MHL chip controller or the USB chip through a high speed switch.
  • the A-side pin 2 and pin 3 pass the high-speed switcher and the MHL chip controller, the differential video signal negative and differential audio and video When the signals are connected, the transmitted signal is a differential video signal.
  • the transmitted signal is a differential data signal.
  • the differential signal is a signal transmitted on two data lines, and the two signals have equal amplitudes and opposite phases.
  • Embodiments of the present invention provide a method for configuring an interface, modifying a metal pin contact of a data interface socket and a plug, and designing the other side of the data line of the connection plug to be a USB device and an MHL device simultaneously Fork line. It realizes the simultaneous support of USB and MHL functions, and the interface is not divided into front and back, which is convenient for users.
  • an embodiment of the present invention provides a method for configuring an interface, wherein when a plug of an interface device is inserted into a socket, one of the interfaces of the data line (which may be referred to as a first interface) is first identified. After the inserted first access device, another interface (which may be referred to as a second interface) is inserted into the second access device.
  • a plug of an interface device is inserted into a socket
  • one of the interfaces of the data line which may be referred to as a first interface
  • another interface (which may be referred to as a second interface) is inserted into the second access device.
  • the A surface is used as the first insertion surface
  • the B surface is used as the second insertion surface as an example.
  • the method may include:
  • the power supply pin of the second insertion surface sends an access signal to the power controller of the terminal device.
  • the corresponding B-side pin 1 of the socket sends an access signal to the power controller of the terminal device.
  • the power controller of the terminal device After receiving the access signal sent by the pin 1 of the B side to the power controller, the power controller of the terminal device detects the access of the second access device and sends an interrupt request to the CPU.
  • the CPU first determines the type of the first access device.
  • the access device type indication pin of the second insertion plane is connected to the second signal forwarded by the chip select controller according to the device type of the first access device.
  • step S202 includes steps S2021 and S2022:
  • the second insertion The access device type indication pin of the face is connected to the command transmission signal of the MHL chip controller through the chip select controller.
  • the CPU of the terminal device sends a connection command to the MHL chip controller, and the command transmission signal of the MHL chip controller and the No. 4 pin of the B side are turned on by the chip select controller.
  • the connection state of the first insertion plane is the access device type indication pin of the first insertion plane, and the optical interface of the USB chip is connected through the chip selection controller, so the second Access devices can only be MHL devices.
  • the No. 4 pin of the B side is connected to the command transmission signal of the MHL chip controller through the chip selection controller, and is used to determine whether the type of the second access device is an MHL device.
  • the access device type indication pin of the second insertion plane is connected to the air interface signal of the USB chip by the chip select controller.
  • the first access device is identified as an MHL device.
  • the connection state of the first insertion surface is the access device type indication pin of the first insertion surface, and the command transmission signal of the MHL chip controller is connected by the chip selection controller. Therefore, the second access device can only be a USB device.
  • the No. 4 pin of the B side is connected to the air port of the USB chip through the chip select controller, and whether the device type of the B side is a USB device is recognized.
  • step S203 includes steps S2031 and S2032:
  • the access device type indication pin of the second insertion plane receives a command transmission signal state of the MHL chip controller through a chip select controller, and determines an operation state of the second insertion surface.
  • the No. 4 pin on the B side transmits the signal state according to the command of the MHL chip controller, or the voltage is pulled low, and it is judged that the working state of the B surface is the MHL working state or is unrecognizable.
  • step S2031 includes steps S20311 to S20314:
  • the command transmission signal of the MHL chip controller is empty, then the 4th pin of the B side remains high. Since the first access device has been identified as a USB device, the second device fails to recognize, disconnecting the pin 4 of the B side from the command transmission signal of the MHL chip controller.
  • the access device type indication pin of the second insertion face receives the command transmission signal of the MHL chip controller through the chip select controller, the voltage of the command transmission signal is pulled down, and the pull-down resistance of the command transmission signal is At 1 K ⁇ , if it is confirmed that the second access device is an MHL device, the second insertion face enters an MHL working state.
  • the handshake process is started, and it is confirmed by the handshake process whether the second access device is an MHL device.
  • the chip select controller continues to connect the command transmission signal of the MHL chip controller with the pin 4 of the B side, the USB switch changes the connection state to the MHL state, and the B side acts as the MHL device. use.
  • the access device type indication pin of the second insertion plane receives the command transmission signal of the MHL chip controller through the chip selection controller, the voltage of the command transmission signal is pulled down, and the pull-down resistance of the command transmission signal is At 1 K ⁇ , if it is confirmed that the second access device is not an MHL device, the second access device fails to recognize.
  • the USB switch remains in the initial state, and the insertion surface of the access device stays on the default USB side, and the device cannot recognize the device.
  • the second access device can only be identified as an MHL device. Under the above conditions, the second access device cannot be identified as an MHL device, and thus the second access device fails to recognize.
  • the access device type indication pin of the second insertion plane receives the air interface signal of the USB chip through the chip selection controller, and identifies the device type of the second access device, The working state of the second insertion face is determined.
  • step S20321 When the No. 4 pin of the B side receives the air interface signal of the USB chip, it directly identifies whether the type of the second access device is a USB device. If the second insertion is successful for the USB device identification, step S20321 is performed; if the second insertion is performed In the case that the USB device identification is unsuccessful, step S20322 is performed.
  • step S2032 includes steps S20321 and S20322:
  • the B side enters the USB working state.
  • the A-side access device is an MHL device
  • the B-side access device is a USB device.
  • the access device type indication pin of the second insertion plane disconnects from the USB chip.
  • the second access device sends an access signal to the power controller of the terminal device through the power supply pin of the second insertion surface.
  • the power controller receives the access signal through the power supply pin of the second insertion face.
  • the corresponding B-side pin 1 of the socket receives the access signal from the power controller of the terminal device.
  • the power controller of the terminal device After receiving the access signal through the pin 1 of the B side, the power controller of the terminal device detects the access of the second access device, and sends an interrupt request to the CPU to identify the second access under the control of the CPU.
  • the device type of the device and determine the working state of the second insertion face that is, perform the following steps.
  • the CPU first determines the type of the first access device.
  • the access device type indication pin of the second insertion plane and the controller not corresponding to the first access device are turned on by the chip selection controller according to the device type of the first access device. .
  • the purpose of the access device type indicating pin of the second insertion face and the controller corresponding to the first access device is to: the corresponding controller identifies the type of the second access device And confirm the working state of the second insertion face.
  • step S202 includes steps S2021 and S2022. among them,
  • the access device type indication pin of the second insertion plane and the MHL chip controller are turned on by the chip select controller.
  • the CPU of the terminal device sends a connection command to the MHL chip controller, and the CBUS signal line of the MHL chip controller and the No. 4 pin of the B side are turned on by the chip select controller.
  • the connection state of the first insertion surface is the access device type indication pin of the first insertion surface through the chip interface controller and the air interface signal line of the USB chip (ID signal) The line is connected, so the second access device can only be an MHL device.
  • the No. 4 pin of the B side is connected to the CBUS signal line of the MHL chip controller through the chip select controller, so as to determine whether the type of the second access device is an MHL device.
  • the access device type indication pin of the second insertion plane and the USB chip are turned on by the chip select controller.
  • the first access device is identified as an MHL device.
  • the access device type indicating pin of the first insertion surface is connected to the CBUS signal line of the MHL chip controller through the chip select controller. Therefore, the second access device can only be a USB device.
  • the No. 4 pin of the B side is connected to the air interface signal line (ID signal line) of the USB chip through the chip selection controller, and whether the device type of the B side is a USB device is recognized.
  • the device type of the second access device is identified according to the state of the second signal, and the working state of the second insertion face is determined.
  • the second signal is that the chip select controller receives the second signal and forwards through the access device type indicating pin of the second insertion plane.
  • the second signal refers to a signal in a certain state.
  • step S203 includes steps S2031 and S2032. among them,
  • the MHL chip controller when the MHL chip controller is connected to the access device type indicating pin of the second insertion face by the chip select controller, the MHL chip transmits a signal according to a command received by the chip select controller. a state of determining the working state of the second insertion face.
  • the MHL chip controller transmits a signal according to the received command to be suspended or the voltage is pulled low, and it is determined that the working state of the B surface is the MHL working state or is unrecognizable.
  • step S2031 includes steps S20311 to S20314. among them,
  • the pin 4 of the B side remains at a high level.
  • the MHL chip controller sends a control command to the chip select controller by switching the control line to disconnect the B face 4
  • the pin is connected to the CBUS signal line of the MHL chip controller.
  • the handshake process is started, and the handshake process determines whether the second access device is an MHL device.
  • the chip select controller continues to connect the command transmission signal of the MHL chip controller with the pin 4 of the B side, the USB_ID switch changes the connection state to the MHL state, and the B side acts as the MHL device. use.
  • the USB_ID switcher remains in the initial state, and the insertion surface of the access device stays on the default USB side, and the second connection The incoming device is not recognized.
  • the second access device can only be identified as an MHL device. Under the above conditions, the second access device cannot be identified as an MHL device, and thus the second access device fails to recognize.
  • USB chip when the USB chip is connected to the access device type indicating pin of the second insertion surface by the chip select controller, the USB chip according to the air interface signal received by the chip select controller ( a state of the second signal), identifying a device type of the second access device, and determining an operating state of the second insertion surface.
  • the USB chip directly identifies whether the type of the second access device is a USB device through the air interface signal received by the No. 4 pin on the B side. If the second insertion is successful for the USB device, the step S20321 is performed; if the second insertion is performed In the case that the USB device identification is unsuccessful, step S20322 is performed.
  • step S2032 includes steps S20321 and S20322. among them,
  • the B side enters the USB working state.
  • the A-side access device is an MHL device
  • the B-side access device is a USB device.
  • the No. 2 pin and the No. 3 pin of the A side or the B side of the socket are connected to the MHL chip controller or the USB chip through a high speed switch.
  • the transmitted signal is a differential video signal.
  • the transmitted signal is a differential data signal.
  • the differential signal is a signal transmitted on two data lines, and the two signals have equal amplitudes and opposite phases.
  • the second access device accesses the other side of either side, and any one of the faces is the first insertion face, and the other side of the either face Identifying a device type of the first access device, determining a working state of the first access device, identifying a device type of the first access device, and determining the first After the working state of the access plane, the access device type indication pin of the second insertion plane is connected to the non-first connection by the chip selection controller according to the device type of the first access device.
  • the chip select controller receives the second signal and forwards through the access device type indicating pin of the second insertion plane.
  • Embodiments of the present invention provide a method for configuring an interface, modifying a metal pin contact of a data interface socket and a plug, and designing the other side of the data line of the connection plug to be a USB device and an MHL device simultaneously Fork line. It realizes the simultaneous support of USB and MHL functions, and the interface is not divided into front and back, which is convenient for users.
  • an embodiment of the present invention provides a method for configuring an interface, where two interfaces of a data line bifurcation line (which may be referred to as a first interface and a second) are configured when a plug of the interface device is inserted into the socket.
  • the interface inserts the first access device and the second access device simultaneously.
  • the A surface is used as the first insertion surface
  • the B surface is used as the second insertion surface as an example.
  • the method may include:
  • the power supply pins of the first insertion surface and the second insertion surface send an access signal to a power controller of the terminal device.
  • the controller sends an access signal.
  • the power controller of the terminal device After receiving the access signal sent by the pin 1 of the A side and the B side to the power controller, the power controller of the terminal device detects that the first access device and the second access device access, and sends an interrupt request to the CPU. .
  • the first access device and the second access device are simultaneously inserted into the socket, and the CPU needs to determine the access types of the A side and the B side.
  • the access device type indication pin of the first insertion plane is connected to a first signal forwarded by the chip select controller.
  • the chip selection controller When the CPU judges the device type of the access device, the chip selection controller first identifies the device type of the A side.
  • the access device type indication pin of the first insertion plane receives the first signal state forwarded by the chip select controller, identifies the device type of the first access device, and determines the working state of the first insertion surface. .
  • step S303 includes steps S3031 to S3034:
  • the access device type indication pin of the first insertion plane receives a command transmission signal state of the MHL chip controller by using a chip selection controller, and determines a first access device type of the first insertion plane.
  • the steps of determining the first access device type of the A side are the same as the steps S1021 to S1024 in the first embodiment, and details are not described herein again.
  • the access device type of the A side has been recognized as a USB device, it is necessary to disconnect the command pin transmission signal of the No. 4 pin of the A side and the MHL chip controller, so that the A side is ready to be connected with the USB chip.
  • the access device type indication pin of the first insertion surface is connected to the air interface of the USB chip by the chip selection controller, and the first insertion surface enters a USB working state.
  • the A side When the 4th pin of the A side is connected to the air port of the USB chip through the chip select controller, the A side is Connect to the USB device and enter the USB working state. At this time, the B side can only work in the MHL state.
  • the access device type of the A side has been identified as an MHL device
  • the A side enters the MHL working state.
  • the second access device on the B side can only be a USB device.
  • the access device type indication pin of the second insertion plane is connected to the second signal forwarded by the chip select controller according to the device type of the first access device.
  • step S304 includes steps S3041 to S3042:
  • the access device type indication pin of the second insertion plane is connected to a command transmission signal of the MHL chip controller by a chip select controller.
  • the No. 4 pin on the B side is connected to the command transmission signal of the MHL chip controller through the chip select controller, and is used to identify whether the access device on the B side is an MHL device.
  • the 4th pin on the B side is connected to the command air interface of the USB chip through the chip select controller, and it is determined whether the second access device on the B side is a USB device. .
  • step S305 includes steps S3051 to S3052:
  • the access device type indication pin of the second insertion surface receives a command transmission signal state of the MHL chip controller through a chip select controller, and determines an operation state of the second insertion surface.
  • the No. 4 pin on the B side transmits the signal state according to the command of the MHL chip controller, or the voltage is pulled low, and it is judged that the working state of the B surface is the MHL working state or is unrecognizable.
  • step S3051 The specific implementation process of the step S3051 is the same as the steps S20311 to S20314, and is not described in detail in the embodiment of the present invention.
  • the access device type indication pin of the second insertion plane receives an air interface signal of the USB chip by using a chip selection controller, and identifies the second access device type to determine the second insertion surface. Working status.
  • step S3052 The specific implementation process of the step S3052 is the same as the steps S20321 to S20322, and details are not described herein again.
  • first access device and the second access device respectively send an access signal to the power controller of the terminal device through the power supply pin of the first insertion surface and the power supply pin of the second insertion surface.
  • the power controller receives the access signal through the power supply pin of the first insertion face and the power supply pin of the second insertion face.
  • the terminal device receives the access signal.
  • the power controller of the terminal device After receiving the access signal by the pin 1 of the A side and the B side, the power controller of the terminal device detects that the first access device and the second access device access, and sends an interrupt request to the CPU.
  • the MHL chip controller and the access device type indication pin of the first insertion face are turned on by the chip select controller.
  • the device type of the A side is first identified by the chip select controller.
  • the MHL chip controller controls the chip select controller to turn on the CBUS signal line of the MHL chip controller and the No. 4 pin of the A side by switching the control signal transmitted by the control line.
  • the device type of the first access device is identified according to a state of the command transmission signal of the first insertion surface, and an operation state of the first insertion surface is determined.
  • the command transmission signal of the first insertion plane is that the chip selection controller receives the command transmission signal and forwards through the access device type indication pin of the first insertion plane.
  • step S303 includes steps S3031 to S3034. among them,
  • the steps of determining the first access device type of the A side are the same as the steps S1021 to S1024 in the first embodiment, and details are not described herein again.
  • the type of access device on the A side has been identified as a USB device, it is necessary to disconnect the pin 4 of the A side from the CBUS signal line of the MHL chip controller, so that the A side is ready to be connected to the USB chip.
  • the access device type indicating pin of the first insertion surface and the USB chip are turned on by the chip select controller, and the first insertion surface enters a USB working state.
  • the A side When the 4th pin of the A side is connected to the air interface signal line (ID signal line) of the USB chip through the chip select controller, the A side is connected to the USB device and enters the USB working state. At this time, the B side can only work in the MHL state.
  • the access device type of the A side has been identified as an MHL device
  • the A side enters the MHL working state.
  • the second access device on the B side can only be a USB device.
  • the access device type indication pin of the second insertion plane is connected to the controller that is not corresponding to the first access device by using a chip selection controller according to the device type of the first access device. .
  • the purpose of the access device type indicating pin of the second insertion face and the controller corresponding to the first access device is to: the corresponding controller identifies the type of the second access device And confirm the working state of the second insertion face.
  • step S304 includes steps S3041 to S3042. among them,
  • the access device type indication pin of the second insertion plane is turned on by the chip select controller and the MHL chip controller.
  • the pin 4 of the B-side is connected to the CBUS signal line of the MHL chip controller through the chip select controller for identifying the B-side. Whether the access device is an MHL device.
  • the pin 4 on the B side is connected to the air interface signal line (ID signal line) of the USB chip through the chip select controller, and the second connection of the B side is judged. Whether the incoming device is a USB device.
  • the device type of the second access device is identified according to the second signal state, and the working state of the second insertion surface is determined.
  • the second signal is that the chip select controller receives the second signal and forwards through the access device type indicating pin of the second insertion plane.
  • the second signal refers to a signal in a certain state.
  • step S305 includes steps S3051 to S3052. among them,
  • the MHL chip controller when the MHL chip controller is connected to the access device type indicating pin of the second insertion face by the chip select controller, the MHL chip transmits a signal according to a command received by the chip select controller ( The state of the second signal) determines the operating state of the second insertion face.
  • the MHL chip controller transmits a signal according to the received command to be suspended or the voltage is pulled low, and it is determined that the working state of the B surface is the MHL working state or is unrecognizable.
  • step S3051 The specific implementation process of the step S3051 is the same as the steps S20311 to S20314, and is not described in detail in the embodiment of the present invention.
  • the USB chip when the USB chip is connected to the access device type indicating pin of the second insertion face by the chip select controller, the USB chip is according to an air port received by the chip select controller. a state of the signal (second signal), identifying the second access device type, and determining an operating state of the second insertion surface.
  • step S3052 The specific implementation process of the step S3052 is the same as the steps S20321 to S20322, and details are not described herein again.
  • the No. 2 pin and the No. 3 pin of the A side or the B side of the socket are connected to the MHL chip controller or the USB chip through a high speed switch.
  • the transmitted signal is a differential video signal.
  • the transmitted signal is a differential data signal.
  • the differential signal is a signal transmitted on two data lines, and the two signals have equal amplitudes and opposite phases.
  • Embodiments of the present invention provide a method for configuring an interface, modifying a metal pin contact of a data interface socket and a plug, and designing the other side of the data line of the connection plug to be a USB device and an MHL device simultaneously Fork line. It realizes the simultaneous support of USB and MHL functions, and the interface is not divided into front and back, which is convenient for users.
  • the solution provided by the embodiment of the present invention is implemented by a processor, and the processor includes the foregoing power controller, MHL chip controller, USB chip, CPU, and the like.
  • an embodiment of the present invention provides an apparatus 15 for interface configuration.
  • the socket portion of the interface configuration device includes two insertion faces that are rotated mirror images, and both insertion faces include a power supply pin and an access device type indication pin.
  • the interface The configured device 15 includes: a sending module 1501 and a processing module 1502; wherein
  • the sending module 1501 is configured to: when the access device accesses, any power controller inserted into the terminal device sends an access signal;
  • the processing module 1502 is configured to connect any of the insertion planes and the signal forwarded by the chip select controller;
  • the processing module 1502 is configured to: when the first insertion plane receives the command transmission signal state of the MHL chip controller through the chip selection controller, the first access device is identified as a USB device. The first insertion surface enters a first USB working state;
  • the first insertion surface receives the command transmission signal state voltage of the MHL chip controller through the chip selection controller is pulled down, and the pull-down resistance of the command transmission signal is 1 K ⁇ , if the An access device is an MHL device, and the first insertion surface enters an MHL working state;
  • the first insertion surface receives the command transmission signal state voltage of the MHL chip controller through the chip selection controller is pulled down, and the pull-down resistance of the command transmission signal is 1 K ⁇ , if the If the access device is not an MHL device, the device identification fails;
  • the first connection The incoming device is identified as a USB device, and the first insertion face enters a second USB working state.
  • the sending module 1501 is configured to: when the second access device accesses, the second power supply controller that is inserted into the terminal device sends an access signal;
  • the processing module 1502 is configured to: according to the device type of the first access device, the second insertion surface and the second signal forwarded by the chip select controller are turned on;
  • the processing module 1502 is configured to: if the first access device has been identified as a USB device, the second insertion plane is connected to a command transmission signal of the MHL chip controller by the chip select controller;
  • the second insertion surface is connected to the air interface signal of the USB chip by the chip select controller.
  • the processing module 1502 is configured to receive, by the chip selection controller, a command transmission signal state of the MHL chip controller by the chip insertion controller, and determine an operation state of the second insertion surface;
  • the second insertion surface receives the air interface signal of the USB chip by the chip selection controller, identifies the device type of the second access device, and determines an operation state of the second insertion surface.
  • the processing module 1502 is configured to: when the second insertion plane receives the command transmission signal of the MHL chip controller by the chip selection controller, the access device type indication of the second insertion surface The pin is disconnected from the command transmission signal of the MHL chip controller;
  • the second access device fails to identify
  • the processing module 1502 is configured to enter the USB working state if the second insertion faces the USB device successfully.
  • the access device type indicating pin of the second insertion face disconnects from the USB chip.
  • the sending module 1501 is configured to: when the first access device and the second access device access the same, the first insertion surface and the second power supply controller that is inserted into the terminal device send an access signal. ;
  • the processing module 1502 is configured to connect, by the first insertion plane, the first signal forwarded by the chip select controller;
  • the first insertion plane receives the first signal state forwarded by the chip selection controller, identifies the device type of the first access device, and determines an operation state of the first insertion surface;
  • the second insertion surface and the second signal forwarded by the chip select controller are turned on according to the device type of the first access device
  • the processing module 1502 is configured to receive, by the chip selection controller, a command transmission signal state of the MHL chip controller by the chip selection controller, and determine a first access device type of the first insertion plane. ;
  • the first insertion surface is connected to the air interface of the USB chip by the chip selection controller, and the first insertion surface enters a USB working state;
  • the access device type of the first insertion face is identified as an MHL device, maintaining a connection of the first insertion face with a command transmission signal of the MHL chip controller, and the first insertion face enters the MHL work status.
  • the processing module 1502 is configured to: when the first insertion plane receives the command transmission signal state of the MHL chip controller through the chip selection controller, the first access device is identified as a USB device. The first insertion surface enters a first USB working state;
  • the first insertion surface receives the command transmission signal state voltage of the MHL chip controller through the chip selection controller is pulled down, and the pull-down resistance of the command transmission signal is 1 K ⁇ , if the If the access device is not an MHL device, the device identification fails;
  • the first connection The incoming device is identified as a USB device, and the first insertion face enters a second USB working state.
  • the processing module 1502 is configured to: when the first access device type is identified as a USB device, the second insertion plane is connected to a command transmission signal of the MHL chip controller by a chip select controller. through;
  • the second insertion face is connected to the command air interface signal of the USB chip by the chip select controller.
  • the processing module 1502 is configured to receive, by the chip selection controller, a command transmission signal state of the MHL chip controller by the chip insertion controller, and determine an operation state of the second insertion surface;
  • the processing module 1502 is configured to: when the second insertion plane receives the command transmission signal of the MHL chip controller through the chip selection controller, the second insertion surface is disconnected from the MHL chip controller. Command to transmit a signal connection;
  • the second access device fails to identify
  • the processing module 1502 is configured to: if the second insertion faces the USB device successfully, the second insertion surface enters a USB working state;
  • the access device type indicating pin of the second insertion face disconnects from the USB chip.
  • the interface configuration device includes:
  • the receiving module is configured to receive an access signal when the access device accesses
  • a processing module configured to identify a device type of the access device according to a status of the command transmission signal, and determine an operating state of the any insertion surface;
  • the command transmission signal is a chip selection controller connected to the socket
  • the access device type indicating pin of any of the insertion faces receives the command transmission signal and forwards it.
  • the processing module is configured to:
  • the first access device When the status of the command transmission signal is suspended, the first access device is identified as a USB device, and the first insertion surface is determined to enter a first USB working state;
  • the state of the command transmission signal is that the voltage is pulled low, and the resistance value of the pull-down resistor on the access device type indicating pin of the first insertion surface is the first value (for example, 1 K ⁇ ), if the The first access device is an MHL device, and then determining that the first insertion surface enters an MHL working state;
  • the state of the command transmission signal is that the voltage is pulled low, and the resistance value of the pull-down resistor on the access device type indicating pin of the first insertion surface is the first value (1K ⁇ ), if the first If the access device is not an MHL device, the device identification fails;
  • the first The access device is identified as a USB device, and the first insertion surface enters a second USB working state.
  • the first access device accesses the first insertion face of the two insertion faces, and the second access device accesses the second insertion face of the two insertion faces, the first access device is identified After receiving the device type of the device, the receiving module is configured to receive an access signal through the power supply pin of the second insertion surface when the second access device is accessed;
  • the processing module is configured to switch on, by the chip selection controller, a controller corresponding to the first access device according to the device type of the first access device;
  • the processing module is configured to:
  • the access device type indication pin of the second insertion plane and the MHL chip controller are turned on by the chip select controller;
  • the chip selection controller accesses the device type indication pin and the USB chip of the second insertion plane through the chip select controller.
  • the processing module is configured to:
  • the USB chip When the USB chip is connected to the access device type indicating pin of the second insertion surface by the chip select controller, according to the state of the air interface signal (second signal) received by the chip select controller, The device type of the second access device is identified, and the working state of the second insertion surface is determined.
  • the processing module is configured to:
  • the state of the command transmission signal of the second insertion face is that the voltage is pulled down, and the resistance of the pull-down resistor on the access device type indicating pin of the second insertion face is the first value (for example, 1 K ⁇ ) If it is confirmed that the second access device is an MHL device, determining that the second insertion surface enters an MHL working state;
  • the state of the command transmission signal is that the voltage is pulled down, and the resistance of the pull-down resistor on the access device type indicating pin of the second insertion surface is the first value (for example, 1 K ⁇ ), if the If the second access device is not an MHL device, the second access device fails to identify;
  • the processing module is configured to:
  • the second insertion surface enters a USB working state
  • the connection of the access device type indication pin of the second insertion surface to the USB chip is disconnected by the chip selection controller.
  • the processing module is configured to: when the first access device accesses any side, the second access device accesses the other side of any of the faces, and the any one of the faces is the first insertion face, Identifying a device type of the first access device, determining a working state of the first access device, and identifying a device type of the first access device, and determining a device type of the first access device, and After determining the working state of the first access device, according to the device type of the first access device, the access device type indication pin and the non-second of the second insertion plane are turned on by the chip selection controller. a controller corresponding to the first access device;
  • the device receives the second signal and forwards it through the access device type indicating pin of the second insertion surface.
  • the receiving module is configured to receive access through the power supply pins of the first insertion surface and the second insertion surface when the first access device and the second access device are simultaneously accessed. signal;
  • the processing module is configured to: connect, by the chip select controller, the MHL chip controller and the access device type indication pin of the first insertion surface;
  • the controller receives the command transmission signal and forwards through the access device type indication pin of the first insertion surface;
  • the second signal is that the chip select controller passes the second insertion surface
  • the access device type indicates that the pin receives the second signal and forwards it.
  • the processing module is configured to:
  • the access device type of the first insertion face is identified as an MHL device, maintaining a connection of the access device type indication pin of the first insertion face with the MHL chip controller, the first insertion Face into the MHL working state.
  • the processing module is configured to:
  • the first access device When the state of the command transmission signal of the first insertion plane is floating, the first access device is identified as a USB device, and determining that the first insertion surface enters a first USB working state;
  • the state of the command transmission signal of the first insertion face is that the voltage is pulled down, and the resistance value of the pull-down resistor on the access device type indicating pin of the first insertion face is the first value (for example, 1 K ⁇ ) If it is confirmed that the first access device is an MHL device, determining that the first insertion surface enters MHL working status;
  • the device identification fails;
  • the first access device is identified as a USB device, and the first insertion surface is determined to enter a second USB working state.
  • the processing module is configured to: when the first access device type is identified as a USB device, the access device type indication pin of the second insertion surface is turned on by the chip selection controller MHL chip controller;
  • the access device type indication pin of the second insertion face and the USB chip are turned on by the chip select controller.
  • the processing module is configured to:
  • the MHL chip controller When the MHL chip controller is connected to the access device type indicating pin of the second insertion face by the chip select controller, transmitting a signal according to a command received by the chip select controller (the second enemy signal) a state of determining an operating state of the second insertion face;
  • the second access device type When the USB chip is connected to the access device type indicating pin of the second insertion surface by the chip select controller, according to the state of the air interface signal (second signal) received by the chip select controller, The second access device type performs identification to determine an operating state of the second insertion surface.
  • the processing module is configured to:
  • the state of the command transmission signal of the second insertion face is that the voltage is pulled down, and the resistance of the pull-down resistor on the access device type indicating pin of the second insertion face is the first value (for example, 1 K ⁇ ) If it is confirmed that the second access device is an MHL device, determining that the second insertion surface enters MHL working status;
  • the second access device fails to identify;
  • the state of the command transmission signal of the second insertion surface is that the voltage is pulled down, and the resistance value of the pull-down resistor on the access device type indicating pin of the second insertion surface is not the first value (for example, 1K ⁇ )
  • the second access device identifies the failure.
  • the processing module is configured to:
  • the second insertion surface enters a USB working state
  • the connection of the access device type indication pin of the second insertion surface to the USB chip is disconnected by the chip selection controller.
  • the description of the device configuration of the interface provided by the embodiment of the present invention may be described with reference to the method of the interface configuration of the first embodiment to the third embodiment.
  • the sending module 1501 and the processing module 1502 may each be a processor such as a CPU, a Micro Processor Unit (MPU), or a Digital Signal Processor (DSP) located in the device 15 configured by the interface. ), or Field Programmable Gate Array (FPGA) implementation.
  • the receiving module and the processing module can be implemented by a processor located in the device configured by the interface.
  • the apparatus for configuring an interface provided by the embodiment of the present invention includes a socket portion, and the socket portion includes two insertion surfaces that are rotated mirror images, and both insertion surfaces include a power supply pin and a connection.
  • the device further includes:
  • a processor configured to receive an access signal through a power supply pin of any of the insertion planes when the access device is accessed; and identify a device type of the access device according to a status of the command transmission signal, and determine the An operation state of the insertion face; the command transmission signal is that the chip select controller connected to the socket receives the command transmission signal and forwards through the access device type indication pin of the any insertion face.
  • Embodiments of the present invention provide a method and apparatus for interface configuration, which modify a metal pin contact of a data interface socket and a plug, and design the other side of the data line of the connection plug to be simultaneously connected to the USB device and A fork line for MHL equipment. It realizes the simultaneous support of USB and MHL functions, and the interface is not divided into front and back, which is convenient for users.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • an embodiment of the present invention further provides a computer storage medium, where the computer saves
  • the storage medium includes a set of instructions that, when executed, cause at least one processor to perform the method of the interface configuration described in the embodiments of the present invention.
  • the solution provided by the embodiment of the invention modifies the metal pin contact of the data interface socket and the plug, and designs the other side of the data line of the connection plug to be a bifurcation line that can simultaneously access the USB device and the MHL device.
  • the USB and MHL functions are simultaneously supported, and the interface is independent of the front and back, which is convenient for users.

Landscapes

  • Engineering & Computer Science (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Power Sources (AREA)
  • Details Of Connecting Devices For Male And Female Coupling (AREA)
  • Information Transfer Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

一种接口配置的方法,包括:当接入设备接入时,任一插入面的供电引脚向终端设备的电源控制器发送接入信号(101);根据任一插入面的接入设备类型指示引脚接收到与插座连接的片选控制器所转发的信号状态,识别接入设备的设备类型,确定任一插入面的工作状态(102)。还公开了一种接口配置装置和计算机存储介质。

Description

一种接口配置的方法、装置和计算机存储介质
相关申请的交叉引用
本申请基于申请号为201610259589.6、申请日为2016年04月22日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本发明涉及智能终端技术领域,尤其涉及一种接口配置的方法、装置和计算机存储介质。
背景技术
随着智能移动终端的迅速普及,用户可以通过智能移动终端接入互联网,传输多种类型的数据,因此,用户对智能移动终端数据接口功能的多样性有着更高的需求。
现有技术中,智能移动终端配置有一个数据接口,如微型通用串行总线2.0(Micro USB 2.0,Micro Universal Serial Bus)接口,这是一种5pin(5个金属引脚触点)的接口方案。该接口为手机提供了充电功能和与电脑等设备进行数据传输的功能,还可以通过OTG(On The Go)线外接鼠标、键盘、U盘等通用串行总线(USB,Universal Serial Bus)设备,还能通过移动终端高清影音标准接口(MHL,Mobile High-Definition Link)转标准高清晰度多媒体接口(HDMI,High Definition Multimedia Interface)线将音视频输出到显示器、电视等大屏幕设备。然而,该接口只能分别支持上述功能,无法同时支持USB和MHL功能,同时该接口采用舌型设计,有正反面之分,数据线插头必须对准以后才能插入,不方便用户使用。
发明内容
为解决上述技术问题,本发明实施例期望提供一种接口配置的方法、装置和计算机存储介质。
本发明实施例的技术方案是这样实现的:
第一方面,本发明实施例提供了一种接口配置的方法,所述方法包括:
当接入设备接入时,任一插入面的供电引脚向终端设备的电源控制器发送接入信号;
根据所述任一插入面的接入设备类型指示引脚接收到与所述插座连接的片选控制器所转发的信号状态,识别所述接入设备的设备类型,确定所述任一插入面的工作状态。
上述方案中,当仅有第一接入设备接入任一插入面,并且所述任一插入面为第一插入面时,所述根据所述任一插入面的接入设备类型指示引脚接收到与所述插座连接的片选控制器所转发的信号状态,识别所述接入设备的设备类型,确定所述任一插入面的工作状态,包括:
当所述第一插入面的接入设备类型指示引脚通过片选控制器接收到MHL芯片控制器的命令传输信号状态悬空,所述第一接入设备识别为USB设备,所述第一插入面进入第一USB工作状态;
或者当所述第一插入面的接入设备类型指示引脚通过片选控制器接收到MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻的阻值是第一值时,若确认所述第一接入设备是MHL设备,则所述第一插入面进入MHL工作状态;
或者当所述第一插入面的接入设备类型指示引脚通过片选控制器接收到MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻的阻值是第一值时,若确认所述第一接入设备不是MHL设备,则设备识别失败;
或者当所述第一插入面的接入设备类型指示引脚通过片选控制器接收到MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻的阻值不是第一值时,所述第一接入设备识别为USB设备, 所述第一插入面进入第二USB工作状态。
上述方案中,当第二接入设备接入任一插入面的另外一面,并且所述任一插入面的另外一面为第二插入面时,在所述识别所述第一接入设备的设备类型之后,还包括:
当第二接入设备接入时,第二插入面的供电引脚向终端设备的电源控制器发送接入信号;
根据所述第一接入设备的设备类型,所述第二插入面的接入设备类型指示引脚与片选控制器转发的第二信号接通;
根据所述第二插入面的接入设备类型指示引脚接收到的所述片选控制器转发的第二信号状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态。
上述方案中,所述根据所述第一接入设备的设备类型,第二插入面的接入设备类型指示引脚与片选控制器转发的第二信号接通,包括:
若所述第一接入设备已经识别为USB设备,则所述第二插入面的接入设备类型指示引脚通过片选控制器与MHL芯片控制器的命令传输信号接通;
或者若所述第一接入设备已经识别为MHL设备,则所述第二插入面的接入设备类型指示引脚通过片选控制器与USB芯片的空口信号接通。
上述方案中,所述根据所述第二插入面的接入设备类型指示引脚接收到的所述片选控制器转发的第二信号状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态,包括:
所述第二插入面的接入设备类型指示引脚通过片选控制器接收MHL芯片控制器的命令传输信号状态,确定所述第二插入面的工作状态;
或者所述第二插入面的接入设备类型指示引脚通过片选控制器接收USB芯片的空口信号,对所述第二接入设备的设备类型进行识别,确定所述第二插入面的工作状态。
上述方案中,所述第二插入面的接入设备类型指示引脚通过片选控制器接收MHL芯片控制器的命令传输信号状态,确定所述第二插入面的工作 状态,包括:
当所述第二插入面的接入设备类型指示引脚通过片选控制器接收到所述MHL芯片控制器的命令传输信号悬空,所述第二插入面的接入设备类型指示引脚断开与MHL芯片控制器的命令传输信号的连接;
或者当所述第二插入面的接入设备类型指示引脚通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻的阻值为第一值时,若确认所述第二接入设备是MHL设备,则所述第二插入面进入MHL工作状态;
或者当所述第二插入面的接入设备类型指示引脚通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻的阻值为第一值时,若确认所述第二接入设备不是MHL设备,则所述第二接入设备识别失败;
或者当所述第二插入面的接入设备类型指示引脚通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻的阻值不为第一值时,所述第二接入设备识别失败。
上述方案中,所述第二插入面的接入设备类型指示引脚通过片选控制器接收所述USB芯片的空口信号,对所述第二接入设备类型进行识别,确定所述第二插入面的工作状态,包括:
若所述第二插入面对USB设备识别成功,则所述第二插入面进入USB工作状态;
若所述第二插入面对USB设备识别不成功,则所述第二插入面的接入设备类型指示引脚断开与USB芯片的连接。
上述方案中,当第一接入设备接入任一面,第二接入设备接入任一面的另外一面,并且所述任一面为第一插入面,所述任一面的另外一面为第二插入面时,所述方法还包括:
当第一接入设备与第二接入设备同时接入时,所述第一插入面和第二插入面的供电引脚向终端设备的电源控制器发送接入信号;
所述第一插入面的接入设备类型指示引脚与片选控制器转发的第一信 号接通;
所述第一插入面的接入设备类型指示引脚接收片选控制器转发的第一信号状态,识别所述第一接入设备的设备类型,确定所述第一插入面的工作状态;
根据所述第一接入设备的设备类型,所述第二插入面的接入设备类型指示引脚与片选控制器转发的第二信号接通;
根据所述第二插入面的接入设备类型指示引脚接收到的所述片选控制器转发的第二信号状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态。
上述方案中,所述第一插入面的接入设备类型指示引脚接收片选控制器转发的第一信号状态,识别所述第一接入设备的设备类型,确定所述第一插入面的工作状态,包括:
所述第一插入面的接入设备类型指示引脚通过片选控制器接收MHL芯片控制器的命令传输信号状态,确定所述第一插入面的第一接入设备类型;
当所述第一插入面的第一接入设备类型识别为USB设备时,断开所述第一插入面的接入设备类型指示引脚与所述MHL芯片控制器的命令传输信号的连接;
所述第一插入面的接入设备类型指示引脚通过片选控制器与USB芯片的空口接通,所述第一插入面进入USB工作状态;
当所述第一插入面的接入设备类型识别为MHL设备时,保持所述第一插入面的接入设备类型指示引脚与所述MHL芯片控制器的命令传输信号的连接,所述第一插入面进入MHL工作状态。
上述方案中,所述第一插入面的接入设备类型指示引脚通过片选控制器接收MHL芯片控制器的命令传输信号状态,确定第一插入面的第一接入设备类型,包括:
当所述第一插入面的接入设备类型指示引脚通过片选控制器接收到所述MHL芯片控制器的命令传输信号状态悬空,所述第一接入设备识别为 USB设备,所述第一插入面进入第一USB工作状态;
或者当所述第一插入面的接入设备类型指示引脚通过片选控制器接收到所述MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻的阻值是第一值时,若确认所述第一接入设备是MHL设备,则所述第一插入面进入MHL工作状态;
或者当所述第一插入面的接入设备类型指示引脚通过片选控制器接收到所述MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻的阻值是第一值时,若确认所述第一接入设备不是MHL设备,则设备识别失败;
或者当所述第一插入面的接入设备类型指示引脚通过片选控制器接收到所述MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻的阻值不是第一值时,所述第一接入设备识别为USB设备,所述第一插入面进入第二USB工作状态。
上述方案中,所述根据所述第一接入设备的设备类型,所述第二插入面的接入设备类型指示引脚与片选控制器转发的第二信号接通,包括:
当所述第一接入设备类型识别为USB设备时,所述第二插入面的接入设备类型指示引脚通过片选控制器与MHL芯片控制器的命令传输信号接通;
或者当所述第一插入面的接入设备类型识别为MHL设备时,所述第二插入面的接入设备类型指示引脚通过片选控制器与USB芯片的命令空口信号接通。
上述方案中,根据所述第二插入面的接入设备类型指示引脚接收到的所述片选控制器转发的第二信号状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态,包括:
所述第二插入面的接入设备类型指示引脚通过片选控制器接收MHL芯片控制器的命令传输信号状态,确定所述第二插入面的工作状态;
或者所述第二插入面的接入设备类型指示引脚通过片选控制器接收USB芯片的空口信号,对所述第二接入设备类型进行识别,确定所述第二 插入面的工作状态。
上述方案中,所述第二插入面的接入设备类型指示引脚通过片选控制器接收MHL芯片控制器的命令传输信号状态,确定所述第二插入面的工作状态,包括:
当所述第二插入面的接入设备类型指示引脚通过片选控制器接收到MHL芯片控制器的命令传输信号悬空,所述第二插入面的接入设备类型指示引脚断开与MHL芯片控制器的命令传输信号的连接;
或者当所述第二插入面的接入设备类型指示引脚通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻的阻值为第一值时,若确认所述第二接入设备是MHL设备,则所述第二插入面进入MHL工作状态;
或者当所述第二插入面的接入设备类型指示引脚通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻的阻值为第一值时,若确认所述第二接入设备不是MHL设备,则所述第二接入设备识别失败;
或者当所述第二插入面的接入设备类型指示引脚通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻的阻值不为第一值时,所述第二接入设备识别失败。
上述方案中,所述第二插入面的接入设备类型指示引脚通过片选控制器接收USB芯片的空口信号,对第二接入设备类型进行识别,确定所述第二插入面的工作状态,包括:
若所述第二插入面对USB设备识别成功,则所述第二插入面进入USB工作状态;
若所述第二插入面对USB设备识别不成功,则所述第二插入面的接入设备类型指示引脚断开与USB芯片的连接。
第二方面,本发明实施例还提供了一种接口配置的装置,所述装置包括:发送模块和处理模块;其中,
所述发送模块,配置为当接入设备接入时,任一插入面向终端设备的 电源控制器发送接入信号;
所述处理模块,配置为所述任一插入面与片选控制器转发的信号接通;
以及,根据所述任一插入面接收到与所述插座连接的片选控制器所转发的信号状态,识别所述接入设备的设备类型,确定所述任一插入面的工作状态。
上述方案中,所述处理模块,配置为当所述第一插入面通过片选控制器接收到MHL芯片控制器的命令传输信号状态悬空,所述第一接入设备识别为USB设备,所述第一插入面进入第一USB工作状态;
或者,当所述第一插入面通过片选控制器接收到MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻的阻值是第一值时,若确认所述第一接入设备是MHL设备,则所述第一插入面进入MHL工作状态;
或者,当所述第一插入面通过片选控制器接收到MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻的阻值是第一值时,若确认所述第一接入设备不是MHL设备,则设备识别失败;
或者,当所述第一插入面通过片选控制器接收到MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻的阻值不是第一值时,所述第一接入设备识别为USB设备,所述第一插入面进入第二USB工作状态。
上述方案中,所述发送模块,配置为当第二接入设备接入时,第二插入面向终端设备的电源控制器发送接入信号;
所述处理模块,配置为根据所述第一接入设备的设备类型,所述第二插入面与片选控制器转发的第二信号接通;
以及,根据所述第二插入面接收到的所述片选控制器转发的第二信号状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态。
上述方案中,所述处理模块,配置为若所述第一接入设备已经识别为USB设备,则所述第二插入面通过片选控制器与MHL芯片控制器的命令 传输信号接通;
或者,若所述第一接入设备已经识别为MHL设备,则所述第二插入面通过片选控制器与USB芯片的空口信号接通。
上述方案中,所述处理模块,配置为所述第二插入面通过片选控制器接收MHL芯片控制器的命令传输信号状态,确定所述第二插入面的工作状态;
或者,所述第二插入面通过片选控制器接收USB芯片的空口信号,对所述第二接入设备的设备类型进行识别,确定所述第二插入面的工作状态。
上述方案中,所述处理模块,配置为当所述第二插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号悬空,所述第二插入面断开与MHL芯片控制器的命令传输信号的连接;
或者,当所述第二插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻的阻值为第一值时,若确认所述第二接入设备是MHL设备,则所述第二插入面进入MHL工作状态;
或者,当所述第二插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻的阻值为第一值时,若确认所述第二接入设备不是MHL设备,则所述第二接入设备识别失败;
或者,当所述第二插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻的阻值不为第一值时,所述第二接入设备识别失败。
上述方案中,所述处理模块,配置为若所述第二插入面对USB设备识别成功,则所述第二插入面进入USB工作状态;
以及,若所述第二插入面对USB设备识别不成功,则所述第二插入面断开与USB芯片的连接。
上述方案中,所述发送模块,配置为当第一接入设备与第二接入设备同时接入时,所述第一插入面和第二插入面向终端设备的电源控制器发送 接入信号;
所述处理模块,配置为所述第一插入面与片选控制器转发的第一信号接通;
以及,所述第一插入面接收片选控制器转发的第一信号状态,识别所述第一接入设备的设备类型,确定所述第一插入面的工作状态;
以及,根据所述第一接入设备的设备类型,所述第二插入面与片选控制器转发的第二信号接通;
以及,根据所述第二插入面接收到的所述片选控制器转发的第二信号状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态。
上述方案中,所述处理模块,配置为所述第一插入面通过片选控制器接收MHL芯片控制器的命令传输信号状态,确定所述第一插入面的第一接入设备类型;
以及,当所述第一插入面的第一接入设备类型识别为USB设备时,断开所述第一插入面与所述MHL芯片控制器的命令传输信号的连接;
以及,所述第一插入面通过片选控制器与USB芯片的空口接通,所述第一插入面进入USB工作状态;
以及,当所述第一插入面的接入设备类型识别为MHL设备时,保持所述第一插入面与所述MHL芯片控制器的命令传输信号的连接,所述第一插入面进入MHL工作状态。
上述方案中,所述处理模块,配置为当所述第一插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号状态悬空,所述第一接入设备识别为USB设备,所述第一插入面进入第一USB工作状态;
或者,当所述第一插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻的阻值是第一值时,若确认所述第一接入设备是MHL设备,则所述第一插入面进入MHL工作状态;
或者,当所述第一插入面通过片选控制器接收到所述MHL芯片控制器 的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻的阻值是第一值时,若确认所述第一接入设备不是MHL设备,则设备识别失败;
或者,当所述第一插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻的阻值不是第一值时,所述第一接入设备识别为USB设备,所述第一插入面进入第二USB工作状态。
上述方案中,所述处理模块,配置为当所述第一接入设备类型识别为USB设备时,所述第二插入面通过片选控制器与MHL芯片控制器的命令传输信号接通;
或者,当所述第一插入面的接入设备类型识别为MHL设备时,所述第二插入面通过片选控制器与USB芯片的命令空口信号接通。
上述方案中,所述处理模块,配置为所述第二插入面通过片选控制器接收所述MHL芯片控制器的命令传输信号状态,确定所述第二插入面的工作状态;
或者,所述第二插入面的接入设备类型指示引脚通过片选控制器接收所述USB芯片的空口信号,对所述第二接入设备类型进行识别,确定所述第二插入面的工作状态。
上述方案中,所述处理模块,配置为当所述第二插入面通过片选控制器接收到MHL芯片控制器的命令传输信号悬空,所述第二插入面断开与MHL芯片控制器的命令传输信号的连接;
或者,当所述第二插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻的阻值为第一值时,若确认所述第二接入设备是MHL设备,则所述第二插入面进入MHL工作状态;
或者,当所述第二插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻的阻值为第一值时,若确认所述第二接入设备不是MHL设备,则所述第二接入设备识别失败;
或者,当所述第二插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻的阻值不为第一值时,所述第二接入设备识别失败。
上述方案中,所述处理模块,配置为若所述第二插入面对USB设备识别成功,则所述第二插入面进入USB工作状态;
以及,若所述第二插入面对USB设备识别不成功,则所述第二插入面的接入设备类型指示引脚断开与USB芯片的连接。
第三方面,本发明实施例提供了一种接口配置的方法,应用于接口配置装置,所述接口配置装置包括插座部分,所述插座部分包括两个呈旋转镜像的插入面,两个插入面均包括供电引脚和接入设备类型指示引脚,所述方法包括:
当接入设备接入时,通过任一插入面的供电引脚接收到接入信号;
根据命令传输信号的状态,识别所述接入设备的设备类型,确定所述任一插入面的工作状态;所述命令传输信号为与所述插座连接的片选控制器通过所述任一插入面的接入设备类型指示引脚接收到命令传输信号并转发的。
上述方案中,当仅有第一接入设备接入所述两个插入面的第一插入面时,所述根据命令传输信号的状态,识别所述接入设备的设备类型,确定所述任一插入面的工作状态,包括:
当所述命令传输信号的状态是悬空时,所述第一接入设备识别为USB设备,确定所述第一插入面进入第一USB工作状态;
或者当所述命令传输信号的状态是电压被拉低,且所述第一插入面的接入设备类型指示引脚上的下拉电阻的阻值是第一值时,若确认所述第一接入设备是MHL设备,则确定所述第一插入面进入MHL工作状态;
或者,当所述命令传输信号的状态是电压被拉低,且所述第一插入面的接入设备类型指示引脚上的下拉电阻的阻值是第一值时,若确认所述第一接入设备不是MHL设备,则设备识别失败;
或者,当所述命令传输信号的状态是电压被拉低,且所述第一插入面 的接入设备类型指示引脚上的下拉电阻的阻值不是第一值时,所述第一接入设备识别为USB设备,确定所述第一插入面进入第二USB工作状态。
上述方案中,当第一接入设备接入所述两个插入面的第一插入面,第二接入设备接入所述两个插入面的第二插入面时,识别所述第一接入设备的设备类型之后,所述方法还包括:
当第二接入设备接入时,通过第二插入面的供电引脚接收到接入信号;
根据所述第一接入设备的设备类型,通过片选控制器接通所述第二插入面的接入设备类型指示引脚与非所述第一接入设备对应的控制器;
根据第二信号的状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态;所述第二信号为所述片选控制器通过所述第二插入面的接入设备类型指示引脚接收到第二信号并转发的。
上述方案中,所述根据所述第一接入设备的设备类型,通过片选控制器接通第二插入面的接入设备类型指示引脚与非所述第一接入设备对应的控制器,包括:
若所述第一接入设备已经识别为USB设备,则通过所述片选控制器接通所述第二插入面的接入设备类型指示引脚与MHL芯片控制器;
或者,若所述第一接入设备已经识别为MHL设备,则通过所述片选控制器接通所述第二插入面的接入设备类型指示引脚与USB芯片。
上述方案中,所述根据第二信号的状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态,包括:
当MHL芯片控制器通过所述片选控制器与所述第二插入面的接入设备类型指示引脚接通时,根据通过所述片选控制器接收的第二插入面的命令传输信号的状态,确定所述第二插入面的工作状态;
或者当USB芯片通过所述片选控制器与所述第二插入面的接入设备类型指示引脚接通时,根据通过片选控制器接收的第二插入面的空口信号的状态,对所述第二接入设备的设备类型进行识别,确定所述第二插入面的工作状态。
上述方案中,所述根据通过所述片选控制器接收的第二插入面的命令 传输信号的状态,确定所述第二插入面的工作状态,包括:
当所述第二插入面的命令传输信号的状态是悬空时,通过所述片选控制器断开所述第二插入面的接入设备类型指示引脚与MHL芯片控制器的连接;
或者当所述第二插入面的命令传输信号的状态是电压被拉低,且所述第二插入面的接入设备类型指示引脚上的下拉电阻的阻值为第一值时,若确认所述第二接入设备是MHL设备,则确认所述第二插入面进入MHL工作状态;
或者当所述第二插入面的命令传输信号的状态是电压被拉低,且所述第二插入面的接入设备类型指示引脚上的下拉电阻的阻值为第一值时,若确认所述第二接入设备不是MHL设备,则所述第二接入设备识别失败;
或者当所述第二插入面的命令传输信号的状态是电压被拉低,且所述第二插入面的接入设备类型指示引脚上的下拉电阻的阻值不为第一值时,所述第二接入设备识别失败。
上述方案中,所述根据通过片选控制器接收的第二插入面的空口信号的状态,对所述第二接入设备类型进行识别,确定所述第二插入面的工作状态,包括:
若所述第二插入面对USB设备识别成功,则所述第二插入面进入USB工作状态;
若所述第二插入面对USB设备识别不成功,则通过所述片选控制器断开所述第二插入面的接入设备类型指示引脚与USB芯片的连接。
上述方案中,当第一接入设备接入任一面,第二接入设备接入任一面的另外一面,并且所述任一面为第一插入面,所述任一面的另外一面为第二插入面时,所述方法包括:
识别所述第一接入设备的设备类型,并确定所述第一接入面的工作状态;
识别所述第一接入设备的设备类型,并确定所述第一接入面的工作状态后,根据所述第一接入设备的设备类型,通过所述片选控制器接通所述 第二插入面的接入设备类型指示引脚与非所述第一接入设备对应的控制器;
根据所述第二插入面的第二信号的状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态;所述第二信号为所述片选控制器通过所述第二插入面的接入设备类型指示引脚接收到第二信号并转发的。
上述方案中,所述识别所述第一接入设备的设备类型,并确定所述第一接入面的工作状态时,
通过所述片选控制器接通MHL芯片控制器与所述第一插入面的接入设备类型指示引脚;
根据所述第一插入面的命令传输信号的状态,确定所述第一插入面的第一接入设备类型;
当所述第一插入面的第一接入设备类型识别为USB设备时,断开所述第一插入面的接入设备类型指示引脚与所述MHL芯片控制器连接;
通过所述片选控制器接通所述第一插入面的接入设备类型指示引脚与USB芯片,所述第一插入面进入USB工作状态;
当所述第一插入面的接入设备类型识别为MHL设备时,保持所述第一插入面的接入设备类型指示引脚与所述MHL芯片控制器的连接,所述第一插入面进入MHL工作状态。
上述方案中,所述根据所述第一插入面的命令传输信号的状态,确定第一插入面的第一接入设备类型,包括:
当所述第一插入面的命令传输信号的状态是悬空时,所述第一接入设备识别为USB设备,确定所述第一插入面进入第一USB工作状态;
或者当所述第一插入面的命令传输信号的状态是电压被拉低,且所述第一插入面的接入设备类型指示引脚上的下拉电阻的阻值是第一值时,若确认所述第一接入设备是MHL设备,则确定所述第一插入面进入MHL工作状态;
或者当所述第一插入面的命令传输信号的状态是电压被拉低,且所述 第一插入面的接入设备类型指示引脚上的下拉电阻的阻值是第一值时,若确认所述第一接入设备不是MHL设备,则设备识别失败;
或者当所述第一插入面的的命令传输信号的状态是电压被拉低,且所述第一插入面的接入设备类型指示引脚上的下拉电阻的阻值不是第一值时,所述第一接入设备识别为USB设备,确定所述第一插入面进入第二USB工作状态。
上述方案中,所述根据所述第一接入设备的设备类型,通过片选控制器接通所述第二插入面的接入设备类型指示引脚与所述第一接入设备对应的控制器,包括:
当所述第一接入设备类型识别为USB设备时,通过所述片选控制器接通所述第二插入面的接入设备类型指示引脚与所述MHL芯片控制器;
或者,当所述第一接入设备类型识别为MHL设备时,通过所述片选控制器接通所述第二插入面的接入设备类型指示引脚与USB芯片。
上述方案中,所述根据所述第二插入面的的第二信号的状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态,包括:
当MHL芯片控制器通过所述片选控制器与所述第二插入面的接入设备类型指示引脚接通时,根据通过所述片选控制器接收的第二插入面的命令传输信号的状态,确定所述第二插入面的工作状态;
或者,当USB芯片通过所述片选控制器与所述第二插入面的接入设备类型指示引脚接通时,根据通过片选控制器接收的第二输入面的空口信号的状态,对所述第二接入设备类型进行识别,确定所述第二插入面的工作状态。
上述方案中,所述根据通过所述片选控制器接收的第二插入面的命令传输信号的状态,确定所述第二插入面的工作状态,包括:
当所述第二插入面的命令传输信号的状态是悬空时,通过所述片选控制器断开所述第二插入面的接入设备类型指示引脚与MHL芯片控制器的连接;
或者当所述第二插入面的命令传输信号的状态是电压被拉低,且所述 第二插入面的接入设备类型指示引脚上的下拉电阻的阻值为第一值时,若确认所述第二接入设备是MHL设备,则确认所述第二插入面进入MHL工作状态;
或者当所述第二插入面的命令传输信号的状态是电压被拉低,且所述第二插入面的接入设备类型指示引脚上的下拉电阻的阻值为第一值时,若确认所述第二接入设备不是MHL设备,则所述第二接入设备识别失败;
或者当所述第二插入面的命令传输信号的电压被拉低,且所述第二插入面的接入设备类型指示引脚上的下拉电阻的阻值不为第一值时,所述第二接入设备识别失败。
上述方案中,所述根据通过片选控制器接收的第二插入面的空口信号,对第二接入设备类型进行识别,确定所述第二插入面的工作状态,包括:
若所述第二插入面对USB设备识别成功,则所述第二插入面进入USB工作状态;
若所述第二插入面对USB设备识别不成功,则通过所述片选控制器断开所述第二插入面的接入设备类型指示引脚与USB芯片的连接。
第四方面,本发明实施例还提供了一种接口配置的装置,包括插座部分,所述插座部分包括两个呈旋转镜像的插入面,两个插入面均包括供电引脚和接入设备类型指示引脚,所述装置包括:接收模块和处理模块;其中,
所述接收模块,配置为当接入设备接入时,通过任一插入面的供电引脚接收到接入信号;
所述处理模块,配置为根据命令传输信号的状态,识别所述接入设备的设备类型,确定所述任一插入面的工作状态;所述命令传输信号为与所述插座连接的片选控制器通过所述任一插入面的接入设备类型指示引脚接收到命令传输信号并转发的。
上述方案中,所述处理模块,配置为当仅有第一接入设备接入所述两个插入面的第一插入面时,当所述命令传输信号的状态是悬空时,所述第一接入设备识别为USB设备,所述第一插入面进入第一USB工作状态;
或者当所述的命令传输信号的状态是电压被拉低,且所述第一插入面的接入设备类型指示引脚上的下拉电阻的阻值是第一值时,若确认所述第一接入设备是MHL设备,则确定所述第一插入面进入MHL工作状态;
或者当所述命令传输信号的状态是电压被拉低,且所述第一插入面的接入设备类型指示引脚上的下拉电阻的阻值是第一值时,若确认所述第一接入设备不是MHL设备,则设备识别失败;
或者当所述命令传输信号的状态是电压被拉低,且所述第一插入面的接入设备类型指示引脚上的下拉电阻的阻值不是第一值时,所述第一接入设备识别为USB设备,确定所述第一插入面进入第二USB工作状。
上述方案中,所述接收模块,配置为第一接入设备接入所述两个插入面的第一插入面,第二接入设备接入所述两个插入面的第二插入面,当第二接入设备接入时,通过第二插入面的供电引脚接收到接入信号;
所述处理模块,配置为根据所述第一接入设备的设备类型,通过片选控制器接通所述第二插入面接入设备类型指示引脚与非所述第一接入设备对应的控制器;以及根据第二信号的状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态;所述第二信号为所述片选控制器通过所述第二插入面的接入设备类型指示引脚接收到第二信号并转发的。
上述方案中,所述处理模块,配置为若所述第一接入设备已经识别为USB设备,则通过所述片选控制器接通所述第二插入面的接入设备类型指示引脚与MHL芯片控制器;或者若所述第一接入设备已经识别为MHL设备,则通过所述片选控制器接通所述第二插入面的接入设备类型指示引脚与USB芯片。
上述方案中,所述处理模块,配置为当MHL芯片控制器通过所述片选控制器与所述第二插入面接入设备类型指示引脚接通时,根据通过所述片选控制器接收的第二插入面的命令传输信号的状态,确定所述第二插入面的工作状态;
或者当USB芯片通过所述片选控制器与所述第二插入面接入设备类型指示引脚接通时,根据通过片选控制器接收的第二插入面的的空口信号的状态,对所述第二接入设备的设备类型进行识别,确定所述第二插入面的 工作状态。
上述方案中,所述处理模块,配置为当第一接入设备接入任一面,第二接入设备接入任一面的另外一面,并且所述任一面为第一插入面,所述任一面的另外一面为第二插入面时,识别所述第一接入设备的设备类型,并确定所述第一接入面的工作状态;识别所述第一接入设备的设备类型,并确定所述第一接入面的工作状态后,根据所述第一接入设备的设备类型,通过所述片选控制器接通所述第二插入面的接入设备类型指示引脚与非所述第一接入设备对应的控制器;
以及,根据所述第二插入面的第二信号的状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态;所述第二信号为所述片选控制器通过所述第二插入面的接入设备类型指示引脚接收到第二信号并转发的。
第五方面,本发明实施例还提供了一种接口配置的装置,包括插座部分,所述插座部分包括两个呈旋转镜像的插入面,两个插入面均包括供电引脚和接入设备类型指示引脚,所述装置还包括:
处理器,配置为当接入设备接入时,通过任一插入面的供电引脚接收到接入信号;以及根据命令传输信号的状态,识别所述接入设备的设备类型,确定所述任一插入面的工作状态;所述命令传输信号为与所述插座连接的片选控制器通过所述任一插入面的接入设备类型指示引脚接收到命令传输信号并转发的。
第六方面,本发明实施例还提供了一种计算机存储介质,所述计算机存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行上述的接口配置的方法。
本发明实施例提供了一种接口配置的方法、装置和计算机存储介质,对数据接口插座和插头的金属引脚触点进行修改,并且将连接插头的数据线另一侧设计成一个可同时接入USB设备和MHL设备的分叉线。实现了同时支持USB和MHL功能,并且接口不分正反面,方便用户使用。
附图说明
图1为本发明实施例提供的接口配置装置插座与插头结构示意图;
图2为本发明实施例提供的接口配置装置插头与设备连接示意图;
图3为本发明实施例提供的接入设备种类识别电路连接示意图;
图4为本发明实施例提供的接口配置方法的流程示意图;
图5为本发明实施例提供的确定第一插入面工作状态的流程示意图;
图6为本发明实施例提供的另一种接口配置方法的流程示意图;
图7为本发明实施例提供的接通第二信号的流程示意图;
图8为本发明实施例提供的确定第二插入面工作状态的流程示意图;
图9为本发明实施例提供的确定第二插入面工作状态为MHL的流程示意图;
图10为本发明实施例提供的确定第二插入面工作状态为USB的流程示意图;
图11为本发明实施例提供的另一种接口配置方法的流程示意图;
图12为本发明实施例提供的确定第一插入面工作状态的流程示意图;
图13为本发明实施例提供的接通第二信号的流程示意图;
图14为本发明实施例提供的确定第二插入面工作状态的流程示意图;
图15为本发明实施例提供的接口配置装置结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。
参见图1,其示出了本发明实施例提供的一种接口装置,该接口装置可以包括:插座和插头两部分。其中,插座部分位于终端设备上,替换现有的终端设备数据接口,如Micro USB 2.0接口等;插头部分位于数据线的一端,其各金属引脚点与插座部分的金属引脚触点相匹配。参见图2,其示出 了连接插头的数据线另外一端。数据线另外一端通过分叉线一侧连接USB设备,另一侧连接MHL设备,设备接入位置并不固定,两侧可任意互换。
终端设备现有的数据接口不能同时支持USB和MHL功能。MHL是一种连接便携式消费电子装置的影音标准接口,使用一条信号电缆,通过标准HDMI输入就可以将影音信号呈现在高清电视等设备上。
参见图1的插座部分,不同于现有的Micro USB 2.0接口5pin(5个金属引脚触点)的接口方案,本发明实施例采用10pin(10个金属引脚触点)的接口方案,两边各5pin。
以图1中的插座部分为例,插座分为两侧,有两个插入面,每一侧各引脚都以1、2、3、4、5按顺序编号。插座上方接口触点编号顺序为5、4、3、2、1,由于插座上方接口的5根信号线是下方接口5根信号线的旋转镜像,因此下方接口的5个触点从左到右排列顺序为1、2、3、4、5。
5个引脚的功能分别为对终端设备供电、负差分信号、正差分信号、指示接入设备的类型和信号地线。
每一个触点对应的功能描述如表1所示:
表1
引脚编号 USB功能 MHL功能
1 VCC VBUS
2 D- MHL-
3 D+ MHL+
4 ID CBUS
5 GND GND
以表1为例,引脚编号为1的引脚,其功能为对终端设备供电。用作USB功能时,该引脚为VCC,表示电源正5伏;用作MHL功能时,该引脚为VBUS,同样表示电源正5伏。
引脚编号为2的引脚,其功能为负差分信号。用作USB功能时,该引脚为D-,表示差分数据线负;用作MHL功能时,该引脚为MHL-,表示差分影音信号负,与HDMI信号线RX0-对应。
引脚编号为3的引脚,其功能为正差分信号。用作USB功能时,该引脚为D+,表示差分数据线正;用作MHL功能时,该引脚为MHL+,表示差分影音信号正,与HDMI信号线RX0+对应。
引脚编号为4的引脚,其为接入设备类型指示引脚。该引脚有两种状态,一种为ID,表示空口,另一种为CBUS,表示命令传输信号。相对应的,USB芯片有与之匹配的ID,MHL芯片有与之匹配的CBUS。当USB芯片的ID与该引脚接通时,用作USB功能,当MHL芯片的CBUS与该引脚接通时,用作MHL功能。
引脚编号为5的引脚,其功能为信号地线。用作USB功能和MHL功能时都为GND,表示信号地线。
图1中的插头部分采用与插座对应的硬件形状,两侧各分布5个金属触点。插头的金属触点信号线作用与插座一一对应,一侧为1、2、3、4、5,另一侧为5、4、3、2、1。终端设备通过第4信号线ID/CBUS来智能区分接入的设备类型。
参见图3,其示出了终端设备对接入设备种类识别的选择方案,由电源控制器、高速切换器、片选控制器、MHL芯片控制器和USB芯片共同控制对接入设备种类的识别,插座一侧为A面,另一侧为B面,A、B两面是旋转镜像。
电源控制器分别连接插座的A面和B面的1号引脚,配置为对终端设备进行供电。
高速切换器的一侧分别连接插座的A面和B面,另一侧分别连接USB芯片和MHL芯片控制器,以传输差分信号。其中,与插座的A面和B面相连时,分别连接插座的A面和B面的2号引脚和3号引脚;与USB芯片相连时,连接USB芯片的差分数据线负与差分数据线正,分别与插座的A面和B面的2号引脚和3号引脚的USB功能相对应;与MHL芯片控制器相连时,连接MHL芯片控制器的差分影音信号负、差分影音信号正与切换控制线,同样与插座的A面和B面的2号引脚和3号引脚的MHL功能相对应。
片选控制器的一侧分别连接插座的A面和B面,另一侧分别连接USB 芯片与MHL芯片控制器,以识别接入设备类型。其中,与插座的A面和B面相连时,分别连接插座的A面和B面的4号引脚;与USB芯片相连时,连接USB芯片的空口信号线,分别与插座的A面和B面的4号引脚的USB功能相对应;与MHL芯片控制器相连时,连接MHL芯片控制器的命令传输信号与切换控制线,连接MHL芯片控制器的命令传输信号时,分别与插座的A面和B面的4号引脚的MHL功能相对应。此外,片选控制器还包括USB_ID切换器,配置为选择USB设备或MHL设备。
图1中接口装置的插座部分两侧与插头部分的两侧任意接入,相同编号的引脚功能相同。其中,4号引脚,即接入设备类型指示引脚通过片选控制器与USB芯片或MHL芯片控制器相连,以识别接入设备的类型。由于数据线的分叉线有两个接口,可以接入两个不同类型的设备,因此,本发明实施例按照接入设备的接入次序,分为三种情况进行说明。第一种情况为,数据线的分叉线任一接口插入一个接入设备,另外一个接口不插入任何接入设备;第二种情况为,数据线的分叉线其中一个接口先识别插入的第一接入设备后,另一个接口再插入第二接入设备;第三种情况为,数据线的分叉线两个接口同时插入第一接入设备和第二接入设备。
需要说明的是,由于终端设备内部只有一个USB芯片和一个MHL芯片控制器,由图3示出的各芯片之间与插座各引脚的连接关系可以得出,插座的两侧不能同时识别相同类型的设备。例如,当插座的A面已经识别接入设备类型为USB设备之后,插座的B面不能再识别为USB设备的接入设备类型。
本发明实施例提供的接口装置同时支持USB和MHL功能,可以在MHL输出到大屏幕显示设备的同时,接上USB鼠标键盘移动硬盘等,将终端设备当电脑主机使用。为用智能手机、平板电脑等终端设备的办公、娱乐等应用打开了更广阔的空间。另一方面,该接口装置可以智能识别接口插入设备,插头不分正反面,用户可以随手就插,使用上带来极大的方便。
实施例一
结合图1和图2,本发明实施例提供一种接口配置的方法,用于当接口 装置的插头插入插座的同时,数据线的分叉线任一接口插入一个接入设备。在识别插入的设备是USB设备或是MHL设备时,为方便起见,参见图3,本发明实施例将A面作为第一插入面,将B面作为第二插入面为例进行说明。如图4所示,所述方法可以包括:
S101、当接入设备接入时,任一插入面的供电引脚向终端设备的电源控制器发送接入信号。
需要说明的是,当第一接入设备插入数据线的分叉线第一接口时,插座相对应的A面1号引脚向终端设备的电源控制器发送接入信号。
接收到A面的1号引脚向电源控制器发送的接入信号后,终端设备的电源控制器检测到第一接入设备接入,向中央处理器(Central Processing Unit,CPU)发送中断请求。
S102、根据所述任一插入面的接入设备类型指示引脚接收到与所述插座连接的片选控制器所转发的信号状态,识别所述接入设备的设备类型,确定所述任一插入面的工作状态
具体地,所述任一插入面的接入设备类型指示引脚与片选控制器转发的信号接通。
终端设备的CPU向MHL芯片控制器发送连接命令,通过片选控制器接通MHL芯片控制器的命令传输信号和A面的4号引脚。
由于终端设备通过4号引脚,即USB的ID或MHL的CBUS信号线来识别接入设备,因此,通过片选控制器接通MHL芯片控制器的命令传输信号和A面的4号引脚来判断接入设备的类型。
A面的4号引脚根据MHL芯片控制器的命令传输信号状态是悬空或是电压被拉低,判断A面的工作状态是USB工作状态或是MHL工作状态。
具体地,当仅有第一接入设备插入任一插入面,并且所述任一插入面为第一插入面时,参见图5,步骤S102包括步骤S1021至S1024:
S1021、当所述第一插入面的接入设备类型指示引脚通过片选控制器接收到所述MHL芯片控制器的命令传输信号状态悬空,所述第一接入设备识别为USB设备,所述第一插入面进入第一USB工作状态。
默认状态下,4号引脚CBUS/USB_ID有上拉电阻,USB_ID脚保持高电平,USB切换器和高速切换器均打到USB一侧,此时MHL断开。
当A面连接电脑等设备的USB口时,确定A面的4号引脚连接状态和电平高低。
由于电脑等设备USB口的引脚触点是4个,即4pin,当A面的第一接入设备连接USB口时,A面的5根信号线连接USB口的4根信号线,此时,A面的第4脚CBUS/USB_ID悬空。那么A面的4号引脚仍保持高电平,则A面进入第一USB工作状态。
这里需要说明的是,第一USB工作状态表示连接A面的终端设备作为USB设备(USB-DEVICE)使用。
S1022、当所述第一插入面的接入设备类型指示引脚通过片选控制器接收到所述MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻是1KΩ时,若确认所述第一接入设备是MHL设备,则所述第一插入面进入MHL工作状态。
当A面连接MHL设备时,MHL芯片控制器的命令传输信号电压会被拉低。若命令传输信号的下拉电阻是1KΩ,开启握手过程,通过握手过程确认第一接入设备是否是MHL设备。
若第一接入设备是MHL设备,则片选控制器继续连接MHL芯片控制器的命令传输信号与A面的4号引脚,USB切换器将连接状态更改为MHL状态,A面进入MHL工作状态。接收到的所述片选控制器转发的
S1023、当所述第一插入面的接入设备类型指示引脚通过片选控制器接收到所述MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻是1KΩ时,若确认所述第一接入设备不是MHL设备,则设备识别失败。
若通过握手过程确定第一接入设备不是MHL设备,则USB切换器保持初始状态不变,此时接入设备的插入面停留在默认的USB侧,设备无法识别。
S1024、当所述第一插入面的接入设备类型指示引脚通过片选控制器接 收到所述MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻不是1KΩ时,所述第一接入设备识别为USB设备,所述第一插入面进入第二USB工作状态。
当A面连接OTG设备时,MHL芯片控制器的命令传输信号电压会被拉低。若命令传输信号的下拉电阻不是1KΩ,片选控制器断开MHL芯片控制器的命令传输信号与A面4号引脚的连接,接通USB芯片空口信号与A面的4号引脚,USB切换器保持连接状态不变,仍然是USB状态,则A面进入第二USB工作状态。
结合图3,上面的描述可以理解为:
在S101中,当接入设备接入时,通过任一插入面的供电引脚接收到接入信号。
可以理解为,接入设备通过任一插入面的供电引脚向终端设备的电源控制器发送接入信号。
也就是说,电源控制器通过任一插入面的供电引脚接收到接入信号。
结合表1可以看出,当第一接入设备插入数据线的分叉线第一接口时,通过插座相对应的A面1号引脚,终端设备的电源控制器接收到接入信号。
通过A面的1号引脚接收到接入信号后,终端设备的电源控制器检测到第一接入设备接入,此时向CPU发送中断请求,以便在CPU的控制下由MHL芯片识别所述接入设备的设备类型,并确定所述任一插入面的工作状态,即执行S102。
在S102中,根据命令传输信号的状态,识别所述接入设备的设备类型,确定所述任一插入面的工作状态。
其中,所述命令传输信号为与所述插座连接的片选控制器通过所述任一插入面的接入设备类型指示引脚接收到命令传输信号并转发的。
实际应用时,所述接收的命令传输信号是指某一状态下的命令传输信号。
这里,所述任一插入面的接入设备类型指示引脚与片选控制器接通。
实际应用时,终端设备的CPU向MHL芯片控制器发送连接命令,以 通过片选控制器接通MHL芯片控制器的CBUS信号线和A面的4号引脚。
由于终端设备通过4号引脚,即USB的ID或MHL的CBUS来识别接入设备,因此,通过片选控制器接通MHL芯片的CBUS信号线和A面的4号引脚,以便来判断接入设备的类型。
所述MHL芯片控制器根据命令传输信号的状态是悬空或是电压被拉低,判断A面的工作状态是USB工作状态或是MHL工作状态。
具体地,当仅有第一接入设备插入任一插入面,并且所述任一插入面为第一插入面时,参见图5,步骤S102包括步骤S1021至S1024。其中,
在S1021中,当所述命令传输信号的状态是悬空时,所述第一接入设备识别为USB设备,确定所述第一插入面进入第一USB工作状态。
实际应用时,默认状态下,4号引脚CBUS/USB_ID有上拉电阻,USB_ID脚保持高电平,USB_ID切换器和高速切换器均打到USB一侧,此时MHL断开。
当A面连接电脑等设备的USB接口时,判断A面的4号引脚连接状态和信号的电平高低。
由于电脑等设备USB接口的引脚触点是4个,即4pin,当所述第一接入设备的USB接口连接A面时,A面的5根信号线连接USB接口的4根信号线,此时,A面的第4脚CBUS/USB_ID悬空。那么A面的4号引脚仍保持高电平,则A面进入第一USB工作状态。
这里需要说明的是,第一USB工作状态表示连接A面的终端设备作为USB设备(USB-DEVICE)使用。
在S1022中,当所述命令传输信号的状态是电压被拉低,且所述第一插入面的接入设备类型指示引脚上的下拉电阻的阻值是第一值(比如1KΩ)时,若确认所述第一接入设备是MHL设备,则确定所述第一插入面进入MHL工作状态。
当A面连接MHL设备时,所述命令传输信号的电压会被拉低,此时若A面的接入设备类型指示引脚(4号引脚)上的下拉电阻的阻值是第一值(比如1KΩ),开启握手过程,通过握手过程确认第一接入设备是否是 MHL设备。
若第一接入设备是MHL设备,则片选控制器继续接通MHL芯片控制器的CBUS信号线与A面的4号引脚,MHL芯片控制器通过切换控制线传输的控制信号来控制USB_ID切换器将连接状态更改为MHL状态,A面进入MHL工作状态。
在S1023中,当所述命令传输信号的状态是电压被拉低,且所述第一插入面的接入设备类型指示引脚上的下拉电阻的阻值是第一值(比如1KΩ)时,若确认所述第一接入设备不是MHL设备,则设备识别失败。
若通过握手过程确定第一接入设备不是MHL设备,则USB_ID切换器保持初始状态不变,此时接入设备的插入面停留在默认的USB侧,接入设备无法识别。
在S1024中,当所述命令传输信号的状态是电压被拉低,且所述第一插入面的接入设备类型指示引脚上的下拉电阻的阻值不是第一值(比如1KΩ)时,所述第一接入设备识别为USB设备,所述第一插入面进入第二USB工作状态。
当A面连接OTG设备时,所述命令传输信号的电压会被拉低,此时若A面的接入设备类型指示引脚(4号引脚)上的下拉电阻的阻值不是第一值(比如1KΩ),MHL芯片控制器通过切换控制线传输控制信号来控制片选控制器断开MHL芯片控制器的CBUS信号线与A面4号引脚的连接,接通USB芯片的空口信号线(ID信号线)与A面的4号引脚,USB_ID切换器保持连接状态不变,仍然是USB状态,则A面进入第二USB工作状态。
这里需要说明的是,第二USB工作状态表示连接A面的终端设备作为USB主设备(USB-HOST)使用。
实际应用时,MHL芯片控制器会检测所述下拉电阻的阻值,并存入寄存器,以便从寄存器获取所述下拉电阻的阻值。
还需要说明的是:插座的A面或B面的2号引脚和3号引脚通过高速切换器与MHL芯片控制器或USB芯片相连。例如,当A面的2号引脚和3号引脚通过高速切换器与MHL芯片控制器的差分影音信号负和差分影音 信号正相连时,传输的信号为差分影音信号。当B面的2号引脚和3号引脚通过高速切换器与USB芯片的差分数据线负和差分数据线正相连时,传输的信号为差分数据信号。其中,差分信号为传输在两根数据线上的信号,这两个信号振幅相等,相位相反。
本发明实施例提供了一种接口配置的方法,对数据接口插座和插头的金属引脚触点进行修改,并且将连接插头的数据线另一侧设计成一个可同时接入USB设备和MHL设备的分叉线。实现了同时支持USB和MHL功能,并且接口不分正反面,方便用户使用。
实施例二
结合图1和图2,本发明实施例提供一种接口配置的方法,用于当接口装置的插头插入插座的同时,数据线的分叉线其中一个接口(可以称为第一接口)先识别插入的第一接入设备后,另一个接口(可以称为第二接口)再插入第二接入设备。在识别插入的设备是USB设备或是MHL设备时,为方便起见,参见图3,本发明实施例将A面作为第一插入面,将B面作为第二插入面为例进行说明。如图6所示,所述方法可以包括:
S201、当第二接入设备接入时,第二插入面的供电引脚向终端设备的电源控制器发送接入信号。
需要说明的是,当第二接入设备插入数据线的分叉线第二接口时,插座相对应的B面1号引脚向终端设备的电源控制器发送接入信号。
接收到B面的1号引脚向电源控制器发送的接入信号后,终端设备的电源控制器检测到第二接入设备接入,向CPU发送中断请求。
当插座的两侧先后插入第一接入设备和第二接入设备,并且两种接入设备同时使用时,CPU要先判断第一接入设备的类型。
S202、根据所述第一接入设备的设备类型,所述第二插入面的接入设备类型指示引脚与片选控制器转发的第二信号接通。
具体地,参见图7,步骤S202包括步骤S2021和S2022:
S2021、若所述第一接入设备已经识别为USB设备,则所述第二插入 面的接入设备类型指示引脚通过片选控制器与MHL芯片控制器的命令传输信号接通。
终端设备的CPU向MHL芯片控制器发送连接命令,通过片选控制器接通MHL芯片控制器的命令传输信号和B面的4号引脚。
由于已经确定第一接入设备为USB设备,此时,第一插入面的连接状态为第一插入面的接入设备类型指示引脚通过片选控制器与USB芯片的空口相连,因此第二接入设备只能为MHL设备。这里将B面的4号引脚通过片选控制器与MHL芯片控制器的命令传输信号接通,用于判断第二接入设备的类型是否是MHL设备。
S2022、若所述第一接入设备已经识别为MHL设备,则所述第二插入面的接入设备类型指示引脚通过片选控制器与USB芯片的空口信号接通。
由于第一接入设备识别为MHL设备,此时,第一插入面的连接状态为第一插入面的接入设备类型指示引脚通过片选控制器与MHL芯片控制器的命令传输信号相连,因此第二接入设备只能为USB设备。这里将B面的4号引脚通过片选控制器与USB芯片的空口接通,对B面的设备类型是否为USB设备进行识别。
S203、根据所述第二插入面的接入设备类型指示引脚接收到的所述片选控制器转发的第二信号状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态。
具体地,参见图8,步骤S203包括步骤S2031和S2032:
S2031、所述第二插入面的接入设备类型指示引脚通过片选控制器接收所述MHL芯片控制器的命令传输信号状态,确定所述第二插入面的工作状态。
B面的4号引脚根据MHL芯片控制器的命令传输信号状态是悬空或是电压被拉低,判断B面的工作状态是MHL工作状态或是无法识别。
具体地,参见图9,步骤S2031包括步骤S20311至S20314:
S20311、当所述第二插入面的接入设备类型指示引脚通过片选控制器接收到所述MHL芯片控制器的命令传输信号悬空,所述第二插入面的接入 设备类型指示引脚断开与MHL芯片控制器的命令传输信号的连接。
MHL芯片控制器的命令传输信号为空,那么B面的4号引脚保持高电平。由于第一接入设备已经识别为USB设备,因此第二设备识别失败,断开B面的4号引脚与MHL芯片控制器的命令传输信号的连接。
S20312、当所述第二插入面的接入设备类型指示引脚通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻为1KΩ时,若确认所述第二接入设备是MHL设备,则所述第二插入面进入MHL工作状态。
若命令传输信号的下拉电阻是1KΩ,开启握手过程,通过握手过程确认第二接入设备是否是MHL设备。
若第二接入设备是MHL设备,则片选控制器继续连接MHL芯片控制器的命令传输信号与B面的4号引脚,USB切换器将连接状态更改为MHL状态,B面作为MHL设备使用。
S20313、当所述第二插入面的接入设备类型指示引脚通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻为1KΩ时,若确认所述第二接入设备不是MHL设备,则所述第二接入设备识别失败。
若通过握手过程确定第二接入设备不是MHL设备,则USB切换器保持初始状态不变,此时接入设备的插入面停留在默认的USB侧,设备无法识别。
S20314、当所述第二插入面的接入设备类型指示引脚通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻不为1KΩ时,所述第二接入设备识别失败。
由于第一接入设备已经识别为USB设备,因此第二接入设备只能识别为MHL设备。在上述条件下,第二接入设备不能被识别为MHL设备,因此第二接入设备识别失败。
S2032、所述第二插入面的接入设备类型指示引脚通过片选控制器接收所述USB芯片的空口信号,对所述第二接入设备的设备类型进行识别,确 定所述第二插入面的工作状态。
当B面的4号引脚接收到USB芯片的空口信号后直接识别第二接入设备的类型是否是USB设备,若第二插入面对USB设备识别成功,则执行步骤S20321;若第二插入面对USB设备识别不成功,则执行步骤S20322。
具体地,参见图10,步骤S2032包括步骤S20321和S20322:
S20321、若所述第二插入面对USB设备识别成功,则所述第二插入面进入USB工作状态。
如果B面对USB设备识别成功,那么B面进入USB工作状态。此时A面接入设备为MHL设备,B面接入设备为USB设备。
S20322、若所述第二插入面对USB设备识别不成功,则所述第二插入面的接入设备类型指示引脚断开与USB芯片的连接。
结合图3,上面的描述可以理解为:
在S201中,当第二接入设备接入时,通过第二插入面的供电引脚接收到接入信号。
可以理解为,第二接入设备通过第二插入面的供电引脚向终端设备的电源控制器发送接入信号。
也就是说,电源控制器通过第二插入面的供电引脚接收到接入信号。
结合表1可以看出,当第二接入设备插入数据线的分叉线第二接口时,插座相对应的B面1号引脚,终端设备的电源控制器接收到接入信号。
通过B面的1号引脚接收到接入信号后,终端设备的电源控制器检测到第二接入设备接入,向CPU发送中断请求,以便在CPU的控制下识别所述第二接入设备的设备类型,并确定第二插入面的工作状态,即执行以下步骤。
当插座的两侧先后插入第一接入设备和第二接入设备,并且两种接入设备同时使用时,CPU要先判断第一接入设备的类型。
在S202中,根据所述第一接入设备的设备类型,通过片选控制器接通所述第二插入面的接入设备类型指示引脚和非所述第一接入设备对应的控制器。
接通所述第二插入面的接入设备类型指示引脚和非所述第一接入设备对应的控制器的目的是:以便所述对应的控制器对第二接入设备的类型进行识别,并确认第二插入面的工作状态。
具体地,参见图7,步骤S202包括步骤S2021和S2022。其中,
在S2021中,若所述第一接入设备已经识别为USB设备,则通过所述片选控制器接通所述第二插入面的接入设备类型指示引脚与MHL芯片控制器。
结合表1可以看出,终端设备的CPU向MHL芯片控制器发送连接命令,通过片选控制器接通MHL芯片控制器的CBUS信号线和B面的4号引脚。
由于已经确定第一接入设备为USB设备,此时,第一插入面的连接状态为第一插入面的接入设备类型指示引脚通过片选控制器与USB芯片的空口信号线(ID信号线)相连,因此第二接入设备只能为MHL设备。这里将B面的4号引脚通过片选控制器与MHL芯片控制器的CBUS信号线接通,以便后续判断第二接入设备的类型是否是MHL设备。
在S2022中,若所述第一接入设备已经识别为MHL设备,则通过所述片选控制器接通所述第二插入面的接入设备类型指示引脚与USB芯片。
由于第一接入设备识别为MHL设备,此时,第一插入面的连接状态为第一插入面的接入设备类型指示引脚通过片选控制器与MHL芯片控制器的CBUS信号线相连,因此第二接入设备只能为USB设备。这里将B面的4号引脚通过片选控制器与USB芯片的空口信号线(ID信号线)接通,对B面的设备类型是否为USB设备进行识别。
在S203中,根据第二信号的状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态。
其中,所述第二信号为所述片选控制器通过所述第二插入面的接入设备类型指示引脚接收到第二信号并转发的。
所述第二信号是指:某一状态下的信号。
具体地,参见图8,步骤S203包括步骤S2031和S2032。其中,
在S2031中,当MHL芯片控制器通过所述片选控制器与所述第二插入面的接入设备类型指示引脚接通时,所述MHL芯片根据通过片选控制器接收的命令传输信号的状态,确定所述第二插入面的工作状态。
所述MHL芯片控制器根据接收的命令传输信号的状态是悬空或是电压被拉低,判断B面的工作状态是MHL工作状态或是无法识别。
具体地,参见图9,步骤S2031包括步骤S20311至S20314。其中,
在S20311中,当所述命令传输信号的状态是悬空时,通过所述片选控制器断开所述第二插入面的接入设备类型指示引脚与MHL芯片控制器的连接。
当所述命令传输信号的状态为悬空时,B面的4号引脚保持高电平。此时,由于第一接入设备已经识别为USB设备,因此第二接入设备识别失败,所述MHL芯片控制器通过切换控制线给片选控制器发送控制命令,以断开B面的4号引脚与MHL芯片控制器的CBUS信号线的连接。
S20312、当所述命令传输信号的状态是电压被拉低,且所述第二插入面的接入设备类型指示引脚上的下拉电阻的阻值为第一值(比如1KΩ)时,若确认所述第二接入设备是MHL设备,则确定所述第二插入面进入MHL工作状态。
若所述第二插入面的接入设备类型指示引脚上的下拉电阻的阻值是第一值(比如1KΩ),开启握手过程,通过握手过程确认第二接入设备是否是MHL设备。
若第二接入设备是MHL设备,则片选控制器继续连接MHL芯片控制器的命令传输信号与B面的4号引脚,USB_ID切换器将连接状态更改为MHL状态,B面作为MHL设备使用。
S20313、当所述命令传输信号的状态是电压被拉低,且所述第二插入面的接入设备类型指示引脚上的下拉电阻的阻值为第一值(比如1KΩ)时,若确认所述第二接入设备不是MHL设备,则所述第二接入设备识别失败。
若通过握手过程确定第二接入设备不是MHL设备,则USB_ID切换器保持初始状态不变,此时接入设备的插入面停留在默认的USB侧,第二接 入设备无法识别。
S20314、当所述命令传输信号的状态是电压被拉低,且所述第二插入面的接入设备类型指示引脚上的下拉电阻不为第一值(比如1KΩ)时,所述第二接入设备识别失败。
由于第一接入设备已经识别为USB设备,因此第二接入设备只能识别为MHL设备。在上述条件下,第二接入设备不能被识别为MHL设备,因此第二接入设备识别失败。
S2032、当所述USB芯片通过所述片选控制器与所述第二插入面的接入设备类型指示引脚接通时,所述USB芯片根据通过所述片选控制器接收的空口信号(第二信号)的状态,对所述第二接入设备的设备类型进行识别,确定所述第二插入面的工作状态。
USB芯片通过B面的4号引脚接收到的空口信号来直接识别第二接入设备的类型是否是USB设备,若第二插入面对USB设备识别成功,则执行步骤S20321;若第二插入面对USB设备识别不成功,则执行步骤S20322。
具体地,参见图10,步骤S2032包括步骤S20321和S20322。其中,
在S20321中,若所述第二插入面对USB设备识别成功,则所述第二插入面进入USB工作状态。
如果B面对USB设备识别成功,那么B面进入USB工作状态。此时A面接入设备为MHL设备,B面接入设备为USB设备。
在S20322中,若所述第二插入面对USB设备识别不成功,则通过所述片选控制器断开所述第二插入面的接入设备类型指示引脚与USB芯片的连接。
如果B面对USB设备识别不成功,那么只有A面的第一接入设备,即仅A面工作在MHL状态。
需要说明的是:插座的A面或B面的2号引脚和3号引脚通过高速切换器与MHL芯片控制器或USB芯片相连。例如,当A面的2号引脚和3号引脚通过高速切换器与MHL芯片控制器的差分影音信号负和差分影音信号正相连时,传输的信号为差分影音信号。当B面的2号引脚和3号引 脚通过高速切换器与USB芯片的差分数据线负和差分数据线正相连时,传输的信号为差分数据信号。其中,差分信号为传输在两根数据线上的信号,这两个信号振幅相等,相位相反。
从上面的描述可以看出,当第一接入设备接入任一面,第二接入设备接入任一面的另外一面,并且所述任一面为第一插入面,所述任一面的另外一面为第二插入面时,识别所述第一接入设备的设备类型,并确定所述第一接入面的工作状态;识别所述第一接入设备的设备类型,并确定所述第一接入面的工作状态后,根据所述第一接入设备的设备类型,通过所述片选控制器接通所述第二插入面的接入设备类型指示引脚与非所述第一接入设备对应的控制器;根据所述第二插入面的第二信号的状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态;所述第二信号为所述片选控制器通过所述第二插入面的接入设备类型指示引脚接收到第二信号并转发的。
本发明实施例提供了一种接口配置的方法,对数据接口插座和插头的金属引脚触点进行修改,并且将连接插头的数据线另一侧设计成一个可同时接入USB设备和MHL设备的分叉线。实现了同时支持USB和MHL功能,并且接口不分正反面,方便用户使用。
实施例三
结合图1和图2,本发明实施例提供一种接口配置的方法,配置为当接口装置的插头插入插座的同时,数据线的分叉线两个接口(可以称为第一接口和第二接口)同时插入第一接入设备和第二接入设备。在识别插入的设备是USB设备或是MHL设备时,为方便起见,参见图3,本发明实施例将A面作为第一插入面,将B面作为第二插入面为例进行说明。如图11所示,所述方法可以包括:
S301、当第一接入设备与第二接入设备同时接入时,所述第一插入面和第二插入面的供电引脚向终端设备的电源控制器发送接入信号。
需要说明的是,当第一接入设备与第二接入设备同时插入数据线的分叉线两个接口时,插座相对应的A面和B面的1号引脚向终端设备的电源 控制器发送接入信号。
接收到A面和B面的1号引脚向电源控制器发送的接入信号后,终端设备的电源控制器检测到第一接入设备和第二接入设备接入,向CPU发送中断请求。
第一接入设备与第二接入设备同时插入插座,CPU需要判断A面和B面的接入类型。
S302、所述第一插入面的接入设备类型指示引脚与片选控制器转发的第一信号接通。
CPU对接入设备的设备类型进行判断时,通过片选控制器先对A面的设备类型进行识别。
S303、所述第一插入面的接入设备类型指示引脚接收片选控制器转发的第一信号状态,识别所述第一接入设备的设备类型,确定所述第一插入面的工作状态。
具体地,参见图12,步骤S303包括步骤S3031至S3034:
S3031、所述第一插入面的接入设备类型指示引脚通过片选控制器接收所述MHL芯片控制器的命令传输信号状态,确定所述第一插入面的第一接入设备类型。
判断A面的第一接入设备类型步骤与实施例一中的步骤S1021至S1024相同,这里不再赘述。
S3032、当第一插入面的第一接入设备类型识别为USB设备时,断开所述第一插入面的接入设备类型指示引脚与所述MHL芯片控制器的命令传输信号的连接。
由于A面的接入设备类型已经识别为USB设备,因此需要断开A面的4号引脚与MHL芯片控制器的命令传输信号的连接,让A面准备与USB芯片连接。
S3033、所述第一插入面的接入设备类型指示引脚通过片选控制器与USB芯片的空口接通,所述第一插入面进入USB工作状态。
当A面的4号引脚通过片选控制器与USB芯片的空口接通时,A面就 接入USB设备,进入USB工作状态。此时,B面只能工作在MHL状态。
S3034、当所述第一插入面的接入设备类型识别为MHL设备时,保持所述第一插入面的接入设备类型指示引脚与所述MHL芯片控制器的命令传输信号的连接,第一插入面进入MHL工作状态。
若A面的接入设备类型已经识别为MHL设备,则A面进入MHL工作状态。此时,B面的第二接入设备只能为USB设备。
S304、根据所述第一接入设备的设备类型,所述第二插入面的接入设备类型指示引脚与片选控制器转发的第二信号接通。
具体地,参见图13,步骤S304包括步骤S3041至S3042:
S3041、当所述第一接入设备类型识别为USB设备时,所述第二插入面的接入设备类型指示引脚通过片选控制器与所述MHL芯片控制器的命令传输信号接通。
在A面确认接入设备为USB设备之后,B面的4号引脚通过片选控制器与MHL芯片控制器的命令传输信号接通,用于识别B面的接入设备是否是MHL设备。
S3042、当所述第一插入面的接入设备类型识别为MHL设备时,所述第二插入面的接入设备类型指示引脚通过片选控制器与USB芯片的命令空口信号接通。
对B面的设备类型进行判断。由于B面的第二接入设备只能为USB设备,因此B面的4号引脚通过片选控制器与USB芯片的命令空口接通,判断B面的第二接入设备是否是USB设备。
S305、根据所述第二插入面的接入设备类型指示引脚接收到的所述片选控制器转发的第二信号状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态。
具体地,参见图14,步骤S305包括步骤S3051至S3052:
S3051、所述第二插入面的接入设备类型指示引脚通过片选控制器接收所述MHL芯片控制器的命令传输信号状态,确定所述第二插入面的工作状态。
B面的4号引脚根据MHL芯片控制器的命令传输信号状态是悬空或是电压被拉低,判断B面的工作状态是MHL工作状态或是无法识别。
这里步骤S3051具体的实现过程与步骤S20311至S20314相同,本发明实施例不再赘述。
S3052、所述第二插入面的接入设备类型指示引脚通过片选控制器接收所述USB芯片的空口信号,对所述第二接入设备类型进行识别,确定所述第二插入面的工作状态。
这里步骤S3052具体的实现过程与步骤S20321至S20322相同,本发明实施例不再赘述。
结合图3,上面的描述可以理解为:
在S301中,当第一接入设备与第二接入设备同时接入时,通过所述第一插入面和第二插入面的供电引脚接收到接入信号。
可以理解为,第一接入设备及第二接入设备分别通过所述第一插入面的供电引脚和第二插入面的供电引脚向终端设备的电源控制器发送接入信号。
也就是说,电源控制器通过第一插入面的供电引脚和第二插入面的供电引脚接收到接入信号。
结合表1可以看出,当第一接入设备与第二接入设备同时插入数据线的分叉线两个接口时,通过插座相对应的A面和B面的1号引脚,终端设备的电源控制器接收到接入信号。
通过接收到A面和B面的1号引脚接收到接入信号后,终端设备的电源控制器检测到第一接入设备和第二接入设备接入,向CPU发送中断请求。
第一接入设备与第二接入设备同时插入插座,需要判断A面和B面的设备接入类型。
在S302中,通过片选控制器接通MHL芯片控制器与所述第一插入面的接入设备类型指示引脚。
对接入设备的设备类型进行判断时,通过片选控制器先对A面的设备类型进行识别。
具体地,结合表1,MHL芯片控制器通过切换控制线传输的控制信号来控制片选控制器接通MHL芯片控制器的CBUS信号线与A面的4号引脚。
在S303中,根据所述第一插入面的命令传输信号的状态,识别所述第一接入设备的设备类型,确定所述第一插入面的工作状态。
其中,所述第一插入面的命令传输信号为所述片选控制器通过所述第一插入面的接入设备类型指示引脚接收到命令传输信号并转发的。
具体地,参见图12,步骤S303包括步骤S3031至S3034。其中,
在S3031中,根据所述第一插入面的命令传输信号的状态,确定所述第一插入面的第一接入设备类型。
判断A面的第一接入设备类型步骤与实施例一中的步骤S1021至S1024相同,这里不再赘述。
在S3032中,当第一插入面的第一接入设备类型识别为USB设备时,通过所述片选控制器断开所述第一插入面的接入设备类型指示引脚与所述MHL芯片控制器的连接。
由于A面的接入设备类型已经识别为USB设备,因此需要断开A面的4号引脚与MHL芯片控制器的CBUS信号线的连接,让A面准备与USB芯片连接。
在S3033中,通过片选控制器接通所述第一插入面的接入设备类型指示引脚与USB芯片,所述第一插入面进入USB工作状态。
当A面的4号引脚通过片选控制器与USB芯片的空口信号线(ID信号线)接通时,A面就接入USB设备,进入USB工作状态。此时,B面只能工作在MHL状态。
在S3034中,当所述第一插入面的接入设备类型识别为MHL设备时,保持所述第一插入面的接入设备类型指示引脚与所述MHL芯片控制器的连接,第一插入面进入MHL工作状态。
若A面的接入设备类型已经识别为MHL设备,则A面进入MHL工作状态。此时,B面的第二接入设备只能为USB设备。
在S304中,根据所述第一接入设备的设备类型,通过片选控制器接通所述第二插入面的接入设备类型指示引脚与非所述第一接入设备对应的控制器。
接通所述第二插入面的接入设备类型指示引脚和非所述第一接入设备对应的控制器的目的是:以便所述对应的控制器对第二接入设备的类型进行识别,并确认第二插入面的工作状态。
具体地,参见图13,步骤S304包括步骤S3041至S3042。其中,
在S3041中,当所述第一接入设备类型识别为USB设备时,通过所述片选控制器接通所述第二插入面的接入设备类型指示引脚与所述MHL芯片控制器。
结合表1可以看出,在A面确认接入设备为USB设备之后,通过片选控制器接通B面的4号引脚与MHL芯片控制器的CBUS信号线接通,用于识别B面的接入设备是否是MHL设备。
在S3042中,当所述第一插入面的接入设备类型识别为MHL设备时,通过所述片选控制器接通所述第二插入面的接入设备类型指示引脚与USB芯片。
对B面的设备类型进行判断。由于B面的第二接入设备只能为USB设备,因此B面的4号引脚通过片选控制器与USB芯片的空口信号线(ID信号线)接通,判断B面的第二接入设备是否是USB设备。
在S305中,根据第二信号状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态。
其中,所述第二信号为所述片选控制器通过所述第二插入面的接入设备类型指示引脚接收到第二信号并转发的。
所述第二信号是指:某一状态下的信号。
具体地,参见图14,步骤S305包括步骤S3051至S3052。其中,
在S3051中,所述MHL芯片控制器通过所述片选控制器与第二插入面的接入设备类型指示引脚接通时,所述MHL芯片根据通过片选控制器接收的命令传输信号(第二信号)的状态,确定所述第二插入面的工作状态。
所述MHL芯片控制器根据接收的命令传输信号的状态是悬空或是电压被拉低,判断B面的工作状态是MHL工作状态或是无法识别。
这里步骤S3051具体的实现过程与步骤S20311至S20314相同,本发明实施例不再赘述。
在S3052中,当所述USB芯片通过所述片选控制器与所述第二插入面的接入设备类型指示引脚接通时,所述USB芯片根据通过所述片选控制器接收的空口信号(第二信号)的状态,对所述第二接入设备类型进行识别,确定所述第二插入面的工作状态。
这里步骤S3052具体的实现过程与步骤S20321至S20322相同,本发明实施例不再赘述。
需要说明的是插座的A面或B面的2号引脚和3号引脚通过高速切换器与MHL芯片控制器或USB芯片相连。例如,当A面的2号引脚和3号引脚通过高速切换器与MHL芯片控制器的差分影音信号负和差分影音信号正相连时,传输的信号为差分影音信号。当B面的2号引脚和3号引脚通过高速切换器与USB芯片的差分数据线负和差分数据线正相连时,传输的信号为差分数据信号。其中,差分信号为传输在两根数据线上的信号,这两个信号振幅相等,相位相反。
本发明实施例提供了一种接口配置的方法,对数据接口插座和插头的金属引脚触点进行修改,并且将连接插头的数据线另一侧设计成一个可同时接入USB设备和MHL设备的分叉线。实现了同时支持USB和MHL功能,并且接口不分正反面,方便用户使用。
需要说明的是:本发明实施例提供的方案由处理器实现,而处理器包括上述的电源控制器、MHL芯片控制器、USB芯片、CPU等。
实施例四
参见图15,其示出了本发明实施例提供一种接口配置的装置15。如图1所示,所述接口配置装置的插座部分包括两个呈旋转镜像的插入面,两个插入面均包括供电引脚和接入设备类型指示引脚。如图15所示,所述接口 配置的装置15包括:发送模块1501和处理模块1502;其中,
所述发送模块1501,配置为当接入设备接入时,任一插入面向终端设备的电源控制器发送接入信号;
所述处理模块1502,配置为所述任一插入面与片选控制器转发的信号接通;
以及,根据所述任一插入面接收到与所述插座连接的片选控制器所转发的信号状态,识别所述接入设备的设备类型,确定所述任一插入面的工作状态。
上述方案中,所述处理模块1502,配置为当所述第一插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号状态悬空,所述第一接入设备识别为USB设备,所述第一插入面进入第一USB工作状态;
以及,当所述第一插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻是1KΩ时,若确认所述第一接入设备是MHL设备,则所述第一插入面进入MHL工作状态;
以及,当所述第一插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻是1KΩ时,若确认所述第一接入设备不是MHL设备,则设备识别失败;
以及,当所述第一插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻不是1KΩ时,所述第一接入设备识别为USB设备,所述第一插入面进入第二USB工作状态。
上述方案中,所述发送模块1501,配置为当第二接入设备接入时,第二插入面向终端设备的电源控制器发送接入信号;
所述处理模块1502,配置为根据所述第一接入设备的设备类型,所述第二插入面与片选控制器转发的第二信号接通;
以及,根据所述第二插入面接收到的所述片选控制器转发的第二信号状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状 态。
上述方案中,所述处理模块1502,配置为若所述第一接入设备已经识别为USB设备,则所述第二插入面通过片选控制器与MHL芯片控制器的命令传输信号接通;
以及,若所述第一接入设备已经识别为MHL设备,则所述第二插入面通过片选控制器与USB芯片的空口信号接通。
上述方案中,所述处理模块1502,配置为所述第二插入面通过片选控制器接收所述MHL芯片控制器的命令传输信号状态,确定所述第二插入面的工作状态;
以及,所述第二插入面通过片选控制器接收所述USB芯片的空口信号,对所述第二接入设备的设备类型进行识别,确定所述第二插入面的工作状态。
上述方案中,所述处理模块1502,配置为当所述第二插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号悬空,所述第二插入面的接入设备类型指示引脚断开与MHL芯片控制器的命令传输信号的连接;
以及,当所述第二插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻为1KΩ时,若确认所述第二接入设备是MHL设备,则所述第二插入面进入MHL工作状态;
以及,当所述第二插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻为1KΩ时,若确认所述第二接入设备不是MHL设备,则所述第二接入设备识别失败;
以及,当所述第二插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻不为1KΩ时,所述第二接入设备识别失败。
上述方案中,所述处理模块1502,配置为若所述第二插入面对USB设备识别成功,则所述第二插入面进入USB工作状态;
以及,若所述第二插入面对USB设备识别不成功,则所述第二插入面的接入设备类型指示引脚断开与USB芯片的连接。
上述方案中,所述发送模块1501,配置为当第一接入设备与第二接入设备同时接入时,所述第一插入面和第二插入面向终端设备的电源控制器发送接入信号;
所述处理模块1502,配置为所述第一插入面与片选控制器转发的第一信号接通;
以及,所述第一插入面接收片选控制器转发的第一信号状态,识别所述第一接入设备的设备类型,确定所述第一插入面的工作状态;
以及,根据所述第一接入设备的设备类型,所述第二插入面与片选控制器转发的第二信号接通;
以及,根据所述第二插入面接收到的所述片选控制器转发的第二信号状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态。
上述方案中,所述处理模块1502,配置为所述第一插入面通过片选控制器接收所述MHL芯片控制器的命令传输信号状态,确定所述第一插入面的第一接入设备类型;
以及,当所述第一插入面的第一接入设备类型识别为USB设备时,断开所述第一插入面与所述MHL芯片控制器的命令传输信号的连接;
以及,所述第一插入面通过片选控制器与USB芯片的空口接通,所述第一插入面进入USB工作状态;
以及,当所述第一插入面的接入设备类型识别为MHL设备时,保持所述第一插入面与所述MHL芯片控制器的命令传输信号的连接,所述第一插入面进入MHL工作状态。
上述方案中,所述处理模块1502,配置为当所述第一插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号状态悬空,所述第一接入设备识别为USB设备,所述第一插入面进入第一USB工作状态;
以及,当所述第一插入面通过片选控制器接收到所述MHL芯片控制器 的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻是1KΩ时,若确认所述第一接入设备是MHL设备,则所述第一插入面进入MHL工作状态;
以及,当所述第一插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻是1KΩ时,若确认所述第一接入设备不是MHL设备,则设备识别失败;
以及,当所述第一插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻不是1KΩ时,所述第一接入设备识别为USB设备,所述第一插入面进入第二USB工作状态。
上述方案中,所述处理模块1502,配置为当所述第一接入设备类型识别为USB设备时,所述第二插入面通过片选控制器与所述MHL芯片控制器的命令传输信号接通;
以及,当所述第一插入面的接入设备类型识别为MHL设备时,所述第二插入面通过片选控制器与USB芯片的命令空口信号接通。
上述方案中,所述处理模块1502,配置为所述第二插入面通过片选控制器接收所述MHL芯片控制器的命令传输信号状态,确定所述第二插入面的工作状态;
以及,配置为所述第二插入面通过片选控制器接收所述USB芯片的空口信号,对所述第二接入设备类型进行识别,确定所述第二插入面的工作状态。
上述方案中,所述处理模块1502,配置为当所述第二插入面通过片选控制器接收到MHL芯片控制器的命令传输信号悬空,所述第二插入面断开与MHL芯片控制器的命令传输信号的连接;
以及,当所述第二插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻为1KΩ时,若确认所述第二接入设备是MHL设备,则所述第二插入面进入MHL工作状态;
以及,当所述第二插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻为1KΩ时,若确认所述第二接入设备不是MHL设备,则所述第二接入设备识别失败;
以及,当所述第二插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻不为1KΩ时,所述第二接入设备识别失败。
上述方案中,所述处理模块1502,用于若所述第二插入面对USB设备识别成功,则所述第二插入面进入USB工作状态;
以及,若所述第二插入面对USB设备识别不成功,则所述第二插入面的接入设备类型指示引脚断开与USB芯片的连接。
结合图3,上面的描述可以理解为:
接口配置的装置包括:
接收模块,配置为当接入设备接入时,接收到接入信号;
处理模块,配置为根据命令传输信号的状态,识别所述接入设备的设备类型,确定所述任一插入面的工作状态;所述命令传输信号为与所述插座连接的片选控制器通过所述任一插入面的接入设备类型指示引脚接收到命令传输信号并转发的。
上述方案中,所述处理模块,配置为:
当所述命令传输信号的状态时悬空,所述第一接入设备识别为USB设备,确定所述第一插入面进入第一USB工作状态;
当所述命令传输信号的状态是电压被拉低,且所述第一插入面的接入设备类型指示引脚上的下拉电阻的阻值是第一值(比如1KΩ)时,若确认所述第一接入设备是MHL设备,则确定所述第一插入面进入MHL工作状态;
当所述命令传输信号的状态是电压被拉低,且所述第一插入面的接入设备类型指示引脚上的下拉电阻的阻值是第一值(1KΩ)时,若确认所述第一接入设备不是MHL设备,则设备识别失败;
当所述命令传输信号的状态是电压被拉低,且所述第一插入面的接入设备类型指示引脚上的下拉电阻的阻值不是第一值(比如1KΩ)时,所述第一接入设备识别为USB设备,所述第一插入面进入第二USB工作状态。
在一实施例中,当第一接入设备接入所述两个插入面的第一插入面,第二接入设备接入所述两个插入面的第二插入面时,识别所述第一接入设备的设备类型之后,所述接收模块,配置为当第二接入设备接入时,通过第二插入面的供电引脚接收到接入信号;
所述处理模块,配置为根据所述第一接入设备的设备类型,通过片选控制器接通和非所述第一接入设备对应的控制器;
以及,根据第二信号的状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态。
上述方案中,所述处理模块,配置为:
若所述第一接入设备已经识别为USB设备,则通过所述片选控制器接通所述第二插入面的接入设备类型指示引脚与MHL芯片控制器;
若所述第一接入设备已经识别为MHL设备,则通过所述片选控制器接通所述第二插入面的通过片选控制器接入设备类型指示引脚与USB芯片。
上述方案中,所述处理模块,配置为:
当MHL芯片控制器通过所述片选控制器与所述第二插入面的接入设备类型指示引脚接通时,根据通过片选控制器接收的命令传输信号(第二信号)的状态,确定所述第二插入面的工作状态;
USB芯片通过所述片选控制器与所述第二插入面的接入设备类型指示引脚接通时,根据通过片选控制器接收的空口信号(第二信号)的状态,对所述第二接入设备的设备类型进行识别,确定所述第二插入面的工作状态。
上述方案中,所述处理模块,配置为:
当所述第二插入面的命令传输信号的状态是悬空时,通过所述片选控制器断开所述第二插入面的接入设备类型指示引脚与MHL芯片控制器的连接;
当所述第二插入面的命令传输信号的状态是电压被拉低,且所述第二插入面的接入设备类型指示引脚上的下拉电阻的阻值为第一值(比如1KΩ)时,若确认所述第二接入设备是MHL设备,则确定所述第二插入面进入MHL工作状态;
当所述命令传输信号的状态是电压被拉低,且所述第二插入面的接入设备类型指示引脚上的下拉电阻的阻值为第一值(比如1KΩ)时,若确认所述第二接入设备不是MHL设备,则所述第二接入设备识别失败;
当所述命令传输信号的状态是电压被拉低,且所述第二插入面的接入设备类型指示引脚上的下拉电阻的阻值不为第一值(1KΩ)时,所述第二接入设备识别失败。
上述方案中,所述处理模块,配置为:
若所述第二插入面对USB设备识别成功,则所述第二插入面进入USB工作状态;
若所述第二插入面对USB设备识别不成功,则通过所述片选控制器断开所述第二插入面的接入设备类型指示引脚与USB芯片的连接。
在一实施例中,所述处理模块,配置为当第一接入设备接入任一面,第二接入设备接入任一面的另外一面,并且所述任一面为第一插入面,所述任一面的另外一面为第二插入面时,识别所述第一接入设备的设备类型,并确定所述第一接入面的工作状态;识别所述第一接入设备的设备类型,并确定所述第一接入面的工作状态后,根据所述第一接入设备的设备类型,通过所述片选控制器接通所述第二插入面的接入设备类型指示引脚与非所述第一接入设备对应的控制器;
以及,根据所述第二插入面的第二信号的状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态;所述第二信号为所述片选控制器通过所述第二插入面的接入设备类型指示引脚接收到第二信号并转发的。
在这种情况下,所述接收模块,配置为当第一接入设备与第二接入设备同时接入时,通过所述第一插入面和第二插入面的供电引脚接收到接入 信号;
所述处理模块,配置为通过片选控制器接通MHL芯片控制器与所述第一插入面的接入设备类型指示引脚;
根据所述第一插入面命令传输信号的状态,识别所述第一接入设备的设备类型,确定所述第一插入面的工作状态;所述第一插入面的命令传输信号为所述片选控制器通过所述第一插入面的接入设备类型指示引脚接收到命令传输信号并转发的;
根据所述第一接入设备的设备类型,通过片选控制器接通所述第二插入面的接入设备类型指示引脚与非所述第一接入设备对应的控制器;
以及,根据第二信号状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态;所述第二信号为所述片选控制器通过所述第二插入面的接入设备类型指示引脚接收到第二信号并转发的。
上述方案中,所述处理模块,配置为:
根据所述第一插入面的命令传输信号的状态,确定所述第一插入面的第一接入设备类型;
当所述第一插入面的第一接入设备类型识别为USB设备时,断开所述第一插入面与所述MHL芯片控制器的连接;通过片选控制器接通所述第一插入面的接入设备类型指示引脚与USB芯片,所述第一插入面进入USB工作状态;
以及,当所述第一插入面的接入设备类型识别为MHL设备时,保持所述第一插入面的接入设备类型指示引脚与所述MHL芯片控制器的连接,所述第一插入面进入MHL工作状态。
上述方案中,所述处理模块,配置为:
当所述第一插入面的命令传输信号的状态是悬空时,所述第一接入设备识别为USB设备,确定所述第一插入面进入第一USB工作状态;
当所述第一插入面的命令传输信号的状态是电压被拉低,且所述第一插入面的接入设备类型指示引脚上的下拉电阻的阻值是第一值(比如1KΩ)时,若确认所述第一接入设备是MHL设备,则确定所述第一插入面进入 MHL工作状态;
当所述第一插入面的命令传输信号的状态是电压被拉低,且所述第一插入面的接入设备类型指示引脚上的下拉电阻的阻值是第一值(比如1KΩ)时,若确认所述第一接入设备不是MHL设备,则设备识别失败;
当所述第一插入面的命令传输信号的状态是电压被拉低,且所述第一插入面的接入设备类型指示引脚上的下拉电阻的阻值不是第一值(1KΩ)时,所述第一接入设备识别为USB设备,确定所述第一插入面进入第二USB工作状态。
上述方案中,所述处理模块,配置为当所述第一接入设备类型识别为USB设备时,通过片选控制器接通所述第二插入面的接入设备类型指示引脚与所述MHL芯片控制器;
当所述第一插入面的接入设备类型识别为MHL设备时,通过所述片选控制器接通所述第二插入面的接入设备类型指示引脚与USB芯片。
上述方案中,所述处理模块,配置为:
当所述MHL芯片控制器通过所述片选控制器与所述第二插入面的接入设备类型指示引脚接通时,根据通过片选控制器接收的命令传输信号(敌第二信号)的状态,确定所述第二插入面的工作状态;
当所述USB芯片通过所述片选控制器与所述第二插入面的接入设备类型指示引脚接通时,根据通过片选控制器接收的空口信号(第二信号)的状态,对所述第二接入设备类型进行识别,确定所述第二插入面的工作状态。
上述方案中,所述处理模块,配置为:
当所述第二插入面的命令传输信号的状态是悬空时,通过所述片选控制器断开所述第二插入面的接入设备类型指示引脚与MHL芯片控制器的连接;
当所述第二插入面的命令传输信号的状态是电压被拉低,且所述第二插入面的接入设备类型指示引脚上的下拉电阻的阻值为第一值(比如1KΩ)时,若确认所述第二接入设备是MHL设备,则确定所述第二插入面进入 MHL工作状态;
当所述第二插入面的命令传输信号的状态是电压被拉低,且所述第二插入面的接入设备类型指示引脚上的下拉电阻的阻值为第一值(比如1KΩ)时,若确认所述第二接入设备不是MHL设备,则所述第二接入设备识别失败;
当所述第二插入面的命令传输信号的状态是电压被拉低,且所述第二插入面的接入设备类型指示引脚上的下拉电阻的阻值不为第一值(比如1KΩ)时,所述第二接入设备识别失败。
上述方案中,所述处理模块,配置为:
若所述第二插入面对USB设备识别成功,则所述第二插入面进入USB工作状态;
若所述第二插入面对USB设备识别不成功,则通过所述片选控制器断开所述第二插入面的接入设备类型指示引脚与USB芯片的连接。
具体地,本发明实施例提供的接口配置的装置说明可以参考实施例一至实施例三的接口配置的方法说明,本发明实施例在此不再赘述。
在实际应用中,所述发送模块1501、处理模块1502均可由位于接口配置的装置15中的处理器比如CPU、微处理器(Micro Processor Unit,MPU)、数字信号处理器(Digital Signal Processor,DSP)、或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。换句话说,所述接收模块及处理模块可由位于接口配置的装置中的处理器实现。
基于上面的硬件描述,可以理解到:本发明实施例提供的接口配置的装置,包括插座部分,所述插座部分包括两个呈旋转镜像的插入面,两个插入面均包括供电引脚和接入设备类型指示引脚,所述装置还包括:
处理器,配置为当接入设备接入时,通过任一插入面的供电引脚接收到接入信号;以及根据命令传输信号的状态,识别所述接入设备的设备类型,确定所述任一插入面的工作状态;所述命令传输信号为与所述插座连接的片选控制器通过所述任一插入面的接入设备类型指示引脚接收到命令传输信号并转发的。
处理器的具体实现过程可以参考实施例一至实施例三的接口配置的方法说明,本发明实施例在此不再赘述。
本发明实施例提供了一种接口配置的方法和装置,对数据接口插座和插头的金属引脚触点进行修改,并且将连接插头的数据线另一侧设计成一个可同时接入USB设备和MHL设备的分叉线。实现了同时支持USB和MHL功能,并且接口不分正反面,方便用户使用。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
基于此,本发明实施例还提供了一种计算机存储介质,所述计算机存 储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行本发明实施例所描述的接口配置的方法。
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。
工业实用性
本发明实施例提供的方案,对数据接口插座和插头的金属引脚触点进行修改,并且将连接插头的数据线另一侧设计成一个可同时接入USB设备和MHL设备的分叉线,并通过一系列接入设备类型的识别,实现了同时支持USB和MHL功能,并且接口不分正反面,方便用户使用。

Claims (50)

  1. 一种接口配置的方法,所述方法应用于接口配置装置的插座部分,所述插座部分包括两个呈旋转镜像的插入面,两个插入面均包括供电引脚和接入设备类型指示引脚,所述方法包括:
    当接入设备接入时,任一插入面的供电引脚向终端设备的电源控制器发送接入信号;
    根据所述任一插入面的接入设备类型指示引脚接收到与所述插座连接的片选控制器所转发的信号状态,识别所述接入设备的设备类型,确定所述任一插入面的工作状态。
  2. 根据权利要求1所述的方法,其中,当仅有第一接入设备接入任一插入面,并且所述任一插入面为第一插入面时,所述根据所述任一插入面的接入设备类型指示引脚接收到与所述插座连接的片选控制器所转发的信号状态,识别所述接入设备的设备类型,确定所述任一插入面的工作状态,包括:
    当所述第一插入面的接入设备类型指示引脚通过片选控制器接收到MHL芯片控制器的命令传输信号状态悬空,所述第一接入设备识别为USB设备,所述第一插入面进入第一USB工作状态;
    或者当所述第一插入面的接入设备类型指示引脚通过片选控制器接收到MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻的阻值是第一值时,若确认所述第一接入设备是MHL设备,则所述第一插入面进入MHL工作状态;
    或者当所述第一插入面的接入设备类型指示引脚通过片选控制器接收到MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻的阻值是第一值时,若确认所述第一接入设备不是MHL设备,则设备识别失败;
    或者当所述第一插入面的接入设备类型指示引脚通过片选控制器接收到MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻的阻值不是第一值时,所述第一接入设备识别为USB设备, 所述第一插入面进入第二USB工作状态。
  3. 根据权利要求1所述的方法,其中,当第二接入设备接入任一插入面的另外一面,并且所述任一插入面的另外一面为第二插入面时,在所述识别所述第一接入设备的设备类型之后,还包括:
    当第二接入设备接入时,第二插入面的供电引脚向终端设备的电源控制器发送接入信号;
    根据所述第一接入设备的设备类型,所述第二插入面的接入设备类型指示引脚与片选控制器转发的第二信号接通;
    根据所述第二插入面的接入设备类型指示引脚接收到的所述片选控制器转发的第二信号状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态。
  4. 根据权利要求3所述的方法,其中,所述根据所述第一接入设备的设备类型,第二插入面的接入设备类型指示引脚与片选控制器转发的第二信号接通,包括:
    若所述第一接入设备已经识别为USB设备,则所述第二插入面的接入设备类型指示引脚通过片选控制器与MHL芯片控制器的命令传输信号接通;
    或者,若所述第一接入设备已经识别为MHL设备,则所述第二插入面的接入设备类型指示引脚通过片选控制器与USB芯片的空口信号接通。
  5. 根据权利要求3所述的方法,其中,所述根据所述第二插入面的接入设备类型指示引脚接收到的所述片选控制器转发的第二信号状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态,包括:
    所述第二插入面的接入设备类型指示引脚通过片选控制器接收MHL芯片控制器的命令传输信号状态,确定所述第二插入面的工作状态;
    或者所述第二插入面的接入设备类型指示引脚通过片选控制器接收USB芯片的空口信号,对所述第二接入设备的设备类型进行识别,确定所述第二插入面的工作状态。
  6. 根据权利要求5所述的方法,其中,所述第二插入面的接入设备类 型指示引脚通过片选控制器接收MHL芯片控制器的命令传输信号状态,确定所述第二插入面的工作状态,包括:
    当所述第二插入面的接入设备类型指示引脚通过片选控制器接收到所述MHL芯片控制器的命令传输信号悬空,所述第二插入面的接入设备类型指示引脚断开与MHL芯片控制器的命令传输信号的连接;
    或者当所述第二插入面的接入设备类型指示引脚通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻的阻值为第一值时,若确认所述第二接入设备是MHL设备,则所述第二插入面进入MHL工作状态;
    或者当所述第二插入面的接入设备类型指示引脚通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻的阻值为第一值时,若确认所述第二接入设备不是MHL设备,则所述第二接入设备识别失败;
    或者当所述第二插入面的接入设备类型指示引脚通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻的阻值不为第一值时,所述第二接入设备识别失败。
  7. 根据权利要求5所述的方法,其中,所述第二插入面的接入设备类型指示引脚通过片选控制器接收所述USB芯片的空口信号,对所述第二接入设备类型进行识别,确定所述第二插入面的工作状态,包括:
    若所述第二插入面对USB设备识别成功,则所述第二插入面进入USB工作状态;
    若所述第二插入面对USB设备识别不成功,则所述第二插入面的接入设备类型指示引脚断开与USB芯片的连接。
  8. 根据权利要求1所述的方法,其中,当第一接入设备接入任一面,第二接入设备接入任一面的另外一面,并且所述任一面为第一插入面,所述任一面的另外一面为第二插入面时,所述方法还包括:
    当第一接入设备与第二接入设备同时接入时,所述第一插入面和第二插入面的供电引脚向终端设备的电源控制器发送接入信号;
    所述第一插入面的接入设备类型指示引脚与片选控制器转发的第一信号接通;
    所述第一插入面的接入设备类型指示引脚接收片选控制器转发的第一信号状态,识别所述第一接入设备的设备类型,确定所述第一插入面的工作状态;
    根据所述第一接入设备的设备类型,所述第二插入面的接入设备类型指示引脚与片选控制器转发的第二信号接通;
    根据所述第二插入面的接入设备类型指示引脚接收到的所述片选控制器转发的第二信号状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态。
  9. 根据权利要求8所述的方法,其中,所述第一插入面的接入设备类型指示引脚接收片选控制器转发的第一信号状态,识别所述第一接入设备的设备类型,确定所述第一插入面的工作状态,包括:
    所述第一插入面的接入设备类型指示引脚通过片选控制器接收MHL芯片控制器的命令传输信号状态,确定所述第一插入面的第一接入设备类型;
    当所述第一插入面的第一接入设备类型识别为USB设备时,断开所述第一插入面的接入设备类型指示引脚与所述MHL芯片控制器的命令传输信号的连接;
    所述第一插入面的接入设备类型指示引脚通过片选控制器与USB芯片的空口接通,所述第一插入面进入USB工作状态;
    当所述第一插入面的接入设备类型识别为MHL设备时,保持所述第一插入面的接入设备类型指示引脚与所述MHL芯片控制器的命令传输信号的连接,所述第一插入面进入MHL工作状态。
  10. 根据权利要求9所述的方法,其中,所述第一插入面的接入设备类型指示引脚通过片选控制器接收MHL芯片控制器的命令传输信号状态,确定第一插入面的第一接入设备类型,包括:
    当所述第一插入面的接入设备类型指示引脚通过片选控制器接收到所 述MHL芯片控制器的命令传输信号状态悬空,所述第一接入设备识别为USB设备,所述第一插入面进入第一USB工作状态;
    或者当所述第一插入面的接入设备类型指示引脚通过片选控制器接收到所述MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻的阻值是第一值时,若确认所述第一接入设备是MHL设备,则所述第一插入面进入MHL工作状态;
    或者当所述第一插入面的接入设备类型指示引脚通过片选控制器接收到所述MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻的阻值是第一值时,若确认所述第一接入设备不是MHL设备,则设备识别失败;
    或者当所述第一插入面的接入设备类型指示引脚通过片选控制器接收到所述MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻的阻值不是第一值时,所述第一接入设备识别为USB设备,所述第一插入面进入第二USB工作状态。
  11. 根据权利要求8所述的方法,其中,所述根据所述第一接入设备的设备类型,所述第二插入面的接入设备类型指示引脚与片选控制器转发的第二信号接通,包括:
    当所述第一接入设备类型识别为USB设备时,所述第二插入面的接入设备类型指示引脚通过片选控制器与MHL芯片控制器的命令传输信号接通;
    或者当所述第一插入面的接入设备类型识别为MHL设备时,所述第二插入面的接入设备类型指示引脚通过片选控制器与USB芯片的命令空口信号接通。
  12. 根据权利要求8所述的方法,其中,根据所述第二插入面的接入设备类型指示引脚接收到的所述片选控制器转发的第二信号状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态,包括:
    所述第二插入面的接入设备类型指示引脚通过片选控制器接收MHL芯片控制器的命令传输信号状态,确定所述第二插入面的工作状态;
    或者所述第二插入面的接入设备类型指示引脚通过片选控制器接收USB芯片的空口信号,对所述第二接入设备类型进行识别,确定所述第二插入面的工作状态。
  13. 根据权利要求12所述的方法,其中,所述第二插入面的接入设备类型指示引脚通过片选控制器接收MHL芯片控制器的命令传输信号状态,确定所述第二插入面的工作状态,包括:
    当所述第二插入面的接入设备类型指示引脚通过片选控制器接收到MHL芯片控制器的命令传输信号悬空,所述第二插入面的接入设备类型指示引脚断开与MHL芯片控制器的命令传输信号的连接;
    或者当所述第二插入面的接入设备类型指示引脚通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻的阻值为第一值时,若确认所述第二接入设备是MHL设备,则所述第二插入面进入MHL工作状态;
    或者当所述第二插入面的接入设备类型指示引脚通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻的阻值为第一值时,若确认所述第二接入设备不是MHL设备,则所述第二接入设备识别失败;
    或者当所述第二插入面的接入设备类型指示引脚通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻的阻值不为第一值时,所述第二接入设备识别失败。
  14. 根据权利要求12所述的方法,其中,所述第二插入面的接入设备类型指示引脚通过片选控制器接收USB芯片的空口信号,对第二接入设备类型进行识别,确定所述第二插入面的工作状态,包括:
    若所述第二插入面对USB设备识别成功,则所述第二插入面进入USB工作状态;
    若所述第二插入面对USB设备识别不成功,则所述第二插入面的接入设备类型指示引脚断开与USB芯片的连接。
  15. 一种接口配置的装置,所述装置包括:发送模块和处理模块;其 中,
    所述发送模块,配置为当接入设备接入时,任一插入面向终端设备的电源控制器发送接入信号;
    所述处理模块,配置为所述任一插入面与片选控制器转发的信号接通;
    以及,根据所述任一插入面接收到与所述插座连接的片选控制器所转发的信号状态,识别所述接入设备的设备类型,确定所述任一插入面的工作状态。
  16. 根据权利要求15所述的装置,其中,
    所述处理模块,配置为当所述第一插入面通过片选控制器接收到MHL芯片控制器的命令传输信号状态悬空,所述第一接入设备识别为USB设备,所述第一插入面进入第一USB工作状态;
    或者,当所述第一插入面通过片选控制器接收到MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻的阻值是第一值时,若确认所述第一接入设备是MHL设备,则所述第一插入面进入MHL工作状态;
    或者,当所述第一插入面通过片选控制器接收到MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻的阻值是第一值时,若确认所述第一接入设备不是MHL设备,则设备识别失败;
    或者,当所述第一插入面通过片选控制器接收到MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻的阻值不是第一值时,所述第一接入设备识别为USB设备,所述第一插入面进入第二USB工作状态。
  17. 根据权利要求15所述的装置,其中,
    所述发送模块,配置为当第二接入设备接入时,第二插入面向终端设备的电源控制器发送接入信号;
    所述处理模块,配置为根据所述第一接入设备的设备类型,所述第二插入面与片选控制器转发的第二信号接通;
    以及,根据所述第二插入面接收到的所述片选控制器转发的第二信号 状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态。
  18. 根据权利要求17所述的装置,其中,
    所述处理模块,配置为若所述第一接入设备已经识别为USB设备,则所述第二插入面通过片选控制器与MHL芯片控制器的命令传输信号接通;
    或者,若所述第一接入设备已经识别为MHL设备,则所述第二插入面通过片选控制器与USB芯片的空口信号接通。
  19. 根据权利要求17所述的装置,其中,
    所述处理模块,配置为所述第二插入面通过片选控制器接收MHL芯片控制器的命令传输信号状态,确定所述第二插入面的工作状态;
    或者,所述第二插入面通过片选控制器接收USB芯片的空口信号,对所述第二接入设备的设备类型进行识别,确定所述第二插入面的工作状态。
  20. 根据权利要求19所述的装置,其中,
    所述处理模块,配置为当所述第二插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号悬空,所述第二插入面断开与MHL芯片控制器的命令传输信号的连接;
    或者,当所述第二插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻的阻值为第一值时,若确认所述第二接入设备是MHL设备,则所述第二插入面进入MHL工作状态;
    或者,当所述第二插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻的阻值为第一值时,若确认所述第二接入设备不是MHL设备,则所述第二接入设备识别失败;
    或者,当所述第二插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻的阻值不为第一值时,所述第二接入设备识别失败。
  21. 根据权利要求19所述的装置,其中,
    所述处理模块,配置为若所述第二插入面对USB设备识别成功,则所述第二插入面进入USB工作状态;
    以及,若所述第二插入面对USB设备识别不成功,则所述第二插入面断开与USB芯片的连接。
  22. 根据权利要求15所述的装置,其中,
    所述发送模块,配置为当第一接入设备与第二接入设备同时接入时,所述第一插入面和第二插入面向终端设备的电源控制器发送接入信号;
    所述处理模块,配置为所述第一插入面与片选控制器转发的第一信号接通;
    以及,所述第一插入面接收片选控制器转发的第一信号状态,识别所述第一接入设备的设备类型,确定所述第一插入面的工作状态;
    以及,根据所述第一接入设备的设备类型,所述第二插入面与片选控制器转发的第二信号接通;
    以及,根据所述第二插入面接收到的所述片选控制器转发的第二信号状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态。
  23. 根据权利要求22所述的装置,其中,
    所述处理模块,配置为所述第一插入面通过片选控制器接收MHL芯片控制器的命令传输信号状态,确定所述第一插入面的第一接入设备类型;
    以及,当所述第一插入面的第一接入设备类型识别为USB设备时,断开所述第一插入面与所述MHL芯片控制器的命令传输信号的连接;
    以及,所述第一插入面通过片选控制器与USB芯片的空口接通,所述第一插入面进入USB工作状态;
    以及,当所述第一插入面的接入设备类型识别为MHL设备时,保持所述第一插入面与所述MHL芯片控制器的命令传输信号的连接,所述第一插入面进入MHL工作状态。
  24. 根据权利要求23所述的装置,其中,
    所述处理模块,配置为当所述第一插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号状态悬空,所述第一接入设备识别为USB设备,所述第一插入面进入第一USB工作状态;
    或者,当所述第一插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻的阻值是第一值时,若确认所述第一接入设备是MHL设备,则所述第一插入面进入MHL工作状态;
    或者,当所述第一插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻的阻值是第一值时,若确认所述第一接入设备不是MHL设备,则设备识别失败;
    或者,当所述第一插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号状态电压被拉低,并且所述命令传输信号的下拉电阻的阻值不是第一值时,所述第一接入设备识别为USB设备,所述第一插入面进入第二USB工作状态。
  25. 根据权利要求22所述的装置,其中,
    所述处理模块,配置为当所述第一接入设备类型识别为USB设备时,所述第二插入面通过片选控制器与MHL芯片控制器的命令传输信号接通;
    或者,当所述第一插入面的接入设备类型识别为MHL设备时,所述第二插入面通过片选控制器与USB芯片的命令空口信号接通。
  26. 根据权利要求22所述的装置,其中,
    所述处理模块,配置为所述第二插入面通过片选控制器接收MHL芯片控制器的命令传输信号状态,确定所述第二插入面的工作状态;
    或者,所述第二插入面的接入设备类型指示引脚通过片选控制器接收USB芯片的空口信号,对所述第二接入设备类型进行识别,确定所述第二插入面的工作状态。
  27. 根据权利要求26所述的装置,其中,
    所述处理模块,配置为当所述第二插入面通过片选控制器接收到MHL芯片控制器的命令传输信号悬空,所述第二插入面断开与MHL芯片控制器 的命令传输信号的连接;
    或者,当所述第二插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻的阻值为第一值时,若确认所述第二接入设备是MHL设备,则所述第二插入面进入MHL工作状态;
    或者,当所述第二插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻的阻值为第一值时,若确认所述第二接入设备不是MHL设备,则所述第二接入设备识别失败;
    或者,当所述第二插入面通过片选控制器接收到所述MHL芯片控制器的命令传输信号的电压被拉低,并且所述命令传输信号的下拉电阻的阻值不为第一值时,所述第二接入设备识别失败。
  28. 根据权利要求26所述的装置,其中,
    所述处理模块,配置为若所述第二插入面对USB设备识别成功,则所述第二插入面进入USB工作状态;
    以及,若所述第二插入面对USB设备识别不成功,则所述第二插入面的接入设备类型指示引脚断开与USB芯片的连接。
  29. 一种接口配置的方法,所述方法应用于接口配置装置,所述接口配置装置包括插座部分,所述插座部分包括两个呈旋转镜像的插入面,两个插入面均包括供电引脚和接入设备类型指示引脚,所述方法包括:
    当接入设备接入时,通过任一插入面的供电引脚接收到接入信号;
    根据命令传输信号的状态,识别所述接入设备的设备类型,确定所述任一插入面的工作状态;所述命令传输信号为与所述插座连接的片选控制器通过所述任一插入面的接入设备类型指示引脚接收到命令传输信号并转发的。
  30. 根据权利要求29所述的方法,其中,当仅有第一接入设备接入所述两个插入面的第一插入面时,所述根据命令传输信号的状态,识别所述接入设备的设备类型,确定所述任一插入面的工作状态,包括:
    当所述命令传输信号的状态是悬空时,所述第一接入设备识别为USB设备,确定所述第一插入面进入第一USB工作状态;
    或者当所述命令传输信号的状态是电压被拉低,且所述第一插入面的接入设备类型指示引脚上的下拉电阻的阻值是第一值时,若确认所述第一接入设备是MHL设备,则确定所述第一插入面进入MHL工作状态;
    或者当所述命令传输信号的状态是电压被拉低,且所述第一插入面的接入设备类型指示引脚上的下拉电阻的阻值是第一值时,若确认所述第一接入设备不是MHL设备,则设备识别失败;
    或者当所述命令传输信号的状态是电压被拉低,且所述第一插入面的接入设备类型指示引脚上的下拉电阻的阻值不是第一值时,所述第一接入设备识别为USB设备,确定所述第一插入面进入第二USB工作状态。
  31. 根据权利要求29所述的方法,其中,当第一接入设备接入所述两个插入面的第一插入面,第二接入设备接入所述两个插入面的第二插入面时,识别所述第一接入设备的设备类型之后,所述方法还包括:
    当第二接入设备接入时,通过第二插入面的供电引脚接收到接入信号;
    根据所述第一接入设备的设备类型,通过片选控制器接通所述第二插入面的接入设备类型指示引脚与非所述第一接入设备对应的控制器;
    根据第二信号的状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态;所述第二信号为所述片选控制器通过所述第二插入面的接入设备类型指示引脚接收到第二信号并转发的。
  32. 根据权利要求31所述的方法,其中,所述根据所述第一接入设备的设备类型,通过片选控制器接通第二插入面的接入设备类型指示引脚与非所述第一接入设备对应的控制器,包括:
    若所述第一接入设备已经识别为USB设备,则通过所述片选控制器接通所述第二插入面的接入设备类型指示引脚与MHL芯片控制器;
    或者,若所述第一接入设备已经识别为MHL设备,则通过所述片选控制器接通所述第二插入面的接入设备类型指示引脚与USB芯片。
  33. 根据权利要求31所述的方法,其中,所述根据第二信号的状态, 识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态,包括:
    当MHL芯片控制器通过所述片选控制器与所述第二插入面的接入设备类型指示引脚接通时,根据通过所述片选控制器接收的第二插入面的命令传输信号的状态,确定所述第二插入面的工作状态;
    或者当USB芯片通过所述片选控制器与所述第二插入面的接入设备类型指示引脚接通时,根据通过片选控制器接收的第二插入面的空口信号的状态,对所述第二接入设备的设备类型进行识别,确定所述第二插入面的工作状态。
  34. 根据权利要求33所述的方法,其中,所述根据通过所述片选控制器接收的第二插入面的命令传输信号的状态,确定所述第二插入面的工作状态,包括:
    当所述第二插入面的命令传输信号的状态是悬空时,通过所述片选控制器断开所述第二插入面的接入设备类型指示引脚与MHL芯片控制器的连接;
    或者当所述第二插入面的命令传输信号的状态是电压被拉低,且所述第二插入面的接入设备类型指示引脚上的下拉电阻的阻值为第一值时,若确认所述第二接入设备是MHL设备,则确认所述第二插入面进入MHL工作状态;
    或者当所述第二插入面的命令传输信号的状态是电压被拉低,且所述第二插入面的接入设备类型指示引脚上的下拉电阻的阻值为第一值时,若确认所述第二接入设备不是MHL设备,则所述第二接入设备识别失败;
    或者当所述第二插入面的命令传输信号的状态是电压被拉低,且所述第二插入面的接入设备类型指示引脚上的下拉电阻的阻值不为第一值时,所述第二接入设备识别失败。
  35. 根据权利要求33所述的方法,其中,所述根据通过片选控制器接收的第二插入面的空口信号的状态,对所述第二接入设备类型进行识别,确定所述第二插入面的工作状态,包括:
    若所述第二插入面对USB设备识别成功,则所述第二插入面进入USB工作状态;
    若所述第二插入面对USB设备识别不成功,则通过所述片选控制器断开所述第二插入面的接入设备类型指示引脚与USB芯片的连接。
  36. 根据权利要求29所述的方法,其中,当第一接入设备接入任一面,第二接入设备接入任一面的另外一面,并且所述任一面为第一插入面,所述任一面的另外一面为第二插入面时,所述方法包括:
    识别所述第一接入设备的设备类型,并确定所述第一接入面的工作状态;
    识别所述第一接入设备的设备类型,并确定所述第一接入面的工作状态后,根据所述第一接入设备的设备类型,通过所述片选控制器接通所述第二插入面的接入设备类型指示引脚与非所述第一接入设备对应的控制器;
    根据所述第二插入面的第二信号的状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态;所述第二信号为所述片选控制器通过所述第二插入面的接入设备类型指示引脚接收到第二信号并转发的。
  37. 根据权利要求36所述的方法,其中,所述识别所述第一接入设备的设备类型,并确定所述第一接入面的工作状态时,
    通过所述片选控制器接通MHL芯片控制器与所述第一插入面的接入设备类型指示引脚;
    根据所述第一插入面的命令传输信号的状态,确定所述第一插入面的第一接入设备类型;
    当所述第一插入面的第一接入设备类型识别为USB设备时,断开所述第一插入面的接入设备类型指示引脚与所述MHL芯片控制器连接;
    通过所述片选控制器接通所述第一插入面的接入设备类型指示引脚与USB芯片,所述第一插入面进入USB工作状态;
    当所述第一插入面的接入设备类型识别为MHL设备时,保持所述第一 插入面的接入设备类型指示引脚与所述MHL芯片控制器的连接,所述第一插入面进入MHL工作状态。
  38. 根据权利要求37所述的方法,其中,所述根据所述第一插入面的命令传输信号的状态,确定第一插入面的第一接入设备类型,包括:
    当所述第一插入面的命令传输信号的状态是悬空时,所述第一接入设备识别为USB设备,确定所述第一插入面进入第一USB工作状态;
    或者当所述第一插入面的命令传输信号的状态是电压被拉低,且所述第一插入面的接入设备类型指示引脚上的下拉电阻的阻值是第一值时,若确认所述第一接入设备是MHL设备,则确定所述第一插入面进入MHL工作状态;
    或者当所述第一插入面的命令传输信号的状态是电压被拉低,且所述第一插入面的接入设备类型指示引脚上的下拉电阻的阻值是第一值时,若确认所述第一接入设备不是MHL设备,则设备识别失败;
    或者当所述第一插入面的的命令传输信号的状态是电压被拉低,且所述第一插入面的接入设备类型指示引脚上的下拉电阻的阻值不是第一值时,所述第一接入设备识别为USB设备,确定所述第一插入面进入第二USB工作状态。
  39. 根据权利要求36所述的方法,其中,所述根据所述第一接入设备的设备类型,通过片选控制器接通所述第二插入面的接入设备类型指示引脚与所述第一接入设备对应的控制器,包括:
    当所述第一接入设备类型识别为USB设备时,通过所述片选控制器接通所述第二插入面的接入设备类型指示引脚与所述MHL芯片控制器;
    或者,当所述第一接入设备类型识别为MHL设备时,通过所述片选控制器接通所述第二插入面的接入设备类型指示引脚与USB芯片。
  40. 根据权利要求36所述的方法,其中,所述根据所述第二插入面的的第二信号的状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态,包括:
    当MHL芯片控制器通过所述片选控制器与所述第二插入面的接入设 备类型指示引脚接通时,根据通过所述片选控制器接收的第二插入面的命令传输信号的状态,确定所述第二插入面的工作状态;
    或者,当USB芯片通过所述片选控制器与所述第二插入面的接入设备类型指示引脚接通时,根据通过片选控制器接收的第二输入面的空口信号的状态,对所述第二接入设备类型进行识别,确定所述第二插入面的工作状态。
  41. 根据权利要求40所述的方法,其中,所述根据通过所述片选控制器接收的第二插入面的命令传输信号的状态,确定所述第二插入面的工作状态,包括:
    当所述第二插入面的命令传输信号的状态是悬空时,通过所述片选控制器断开所述第二插入面的接入设备类型指示引脚与MHL芯片控制器的连接;
    或者当所述第二插入面的命令传输信号的状态是电压被拉低,且所述第二插入面的接入设备类型指示引脚上的下拉电阻的阻值为第一值时,若确认所述第二接入设备是MHL设备,则确认所述第二插入面进入MHL工作状态;
    或者当所述第二插入面的命令传输信号的状态是电压被拉低,且所述第二插入面的接入设备类型指示引脚上的下拉电阻的阻值为第一值时,若确认所述第二接入设备不是MHL设备,则所述第二接入设备识别失败;
    或者当所述第二插入面的命令传输信号的电压被拉低,且所述第二插入面的接入设备类型指示引脚上的下拉电阻的阻值不为第一值时,所述第二接入设备识别失败。
  42. 根据权利要求40所述的方法,其中,所述根据通过片选控制器接收的第二插入面的空口信号,对第二接入设备类型进行识别,确定所述第二插入面的工作状态,包括:
    若所述第二插入面对USB设备识别成功,则所述第二插入面进入USB工作状态;
    若所述第二插入面对USB设备识别不成功,则通过所述片选控制器断 开所述第二插入面的接入设备类型指示引脚与USB芯片的连接。
  43. 一种接口配置的装置,包括插座部分,所述插座部分包括两个呈旋转镜像的插入面,两个插入面均包括供电引脚和接入设备类型指示引脚,所述装置包括:接收模块和处理模块;其中,
    所述接收模块,配置为当接入设备接入时,通过任一插入面的供电引脚接收到接入信号;
    所述处理模块,配置为根据命令传输信号的状态,识别所述接入设备的设备类型,确定所述任一插入面的工作状态;所述命令传输信号为与所述插座连接的片选控制器通过所述任一插入面的接入设备类型指示引脚接收到命令传输信号并转发的。
  44. 根据权利要求43所述的装置,其中,
    所述处理模块,配置为当仅有第一接入设备接入所述两个插入面的第一插入面时,当所述命令传输信号的状态是悬空时,所述第一接入设备识别为USB设备,所述第一插入面进入第一USB工作状态;
    或者当所述的命令传输信号的状态是电压被拉低,且所述第一插入面的接入设备类型指示引脚上的下拉电阻的阻值是第一值时,若确认所述第一接入设备是MHL设备,则确定所述第一插入面进入MHL工作状态;
    或者当所述命令传输信号的状态是电压被拉低,且所述第一插入面的接入设备类型指示引脚上的下拉电阻的阻值是第一值时,若确认所述第一接入设备不是MHL设备,则设备识别失败;
    或者当所述命令传输信号的状态是电压被拉低,且所述第一插入面的接入设备类型指示引脚上的下拉电阻的阻值不是第一值时,所述第一接入设备识别为USB设备,确定所述第一插入面进入第二USB工作状态。
  45. 根据权利要求43所述的装置,其中,
    所述接收模块,配置为第一接入设备接入所述两个插入面的第一插入面,第二接入设备接入所述两个插入面的第二插入面,当第二接入设备接入时,通过第二插入面的供电引脚接收到接入信号;
    所述处理模块,配置为根据所述第一接入设备的设备类型,通过片选 控制器接通所述第二插入面接入设备类型指示引脚与非所述第一接入设备对应的控制器;以及根据第二信号的状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态;所述第二信号为所述片选控制器通过所述第二插入面的接入设备类型指示引脚接收到第二信号并转发的。
  46. 根据权利要求45所述的装置,其中,
    所述处理模块,配置为若所述第一接入设备已经识别为USB设备,则通过所述片选控制器接通所述第二插入面的接入设备类型指示引脚与MHL芯片控制器;或者若所述第一接入设备已经识别为MHL设备,则通过所述片选控制器接通所述第二插入面的接入设备类型指示引脚与USB芯片。
  47. 根据权利要求45所述的装置,其中,
    所述处理模块,配置为当MHL芯片控制器通过所述片选控制器与所述第二插入面接入设备类型指示引脚接通时,根据通过所述片选控制器接收的第二插入面的命令传输信号的状态,确定所述第二插入面的工作状态;
    或者当USB芯片通过所述片选控制器与所述第二插入面接入设备类型指示引脚接通时,根据通过片选控制器接收的第二插入面的的空口信号的状态,对所述第二接入设备的设备类型进行识别,确定所述第二插入面的工作状态。
  48. 根据权利要求43所述的装置,其中,
    所述处理模块,配置为当第一接入设备接入任一面,第二接入设备接入任一面的另外一面,并且所述任一面为第一插入面,所述任一面的另外一面为第二插入面时,识别所述第一接入设备的设备类型,并确定所述第一接入面的工作状态;识别所述第一接入设备的设备类型,并确定所述第一接入面的工作状态后,根据所述第一接入设备的设备类型,通过所述片选控制器接通所述第二插入面的接入设备类型指示引脚与非所述第一接入设备对应的控制器;
    以及,根据所述第二插入面的第二信号的状态,识别所述第二接入设备的设备类型,确定所述第二插入面的工作状态;所述第二信号为所述片选控制器通过所述第二插入面的接入设备类型指示引脚接收到第二信号并 转发的。
  49. 一种接口配置的装置,包括插座部分,所述插座部分包括两个呈旋转镜像的插入面,两个插入面均包括供电引脚和接入设备类型指示引脚,所述装置还包括:
    处理器,配置为当接入设备接入时,通过任一插入面的供电引脚接收到接入信号;以及根据命令传输信号的状态,识别所述接入设备的设备类型,确定所述任一插入面的工作状态;所述命令传输信号为与所述插座连接的片选控制器通过所述任一插入面的接入设备类型指示引脚接收到命令传输信号并转发的。
  50. 一种计算机存储介质,所述计算机存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行如权利要求1至14任一项所述的接口配置的方法,或者执行如权利要求29至42任一项所述的接口配置的方法。
PCT/CN2017/081524 2016-04-22 2017-04-21 一种接口配置的方法、装置和计算机存储介质 WO2017182001A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610259589.6 2016-04-22
CN201610259589.6A CN107306000B (zh) 2016-04-22 2016-04-22 一种接口配置的方法和装置

Publications (1)

Publication Number Publication Date
WO2017182001A1 true WO2017182001A1 (zh) 2017-10-26

Family

ID=60115696

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/081524 WO2017182001A1 (zh) 2016-04-22 2017-04-21 一种接口配置的方法、装置和计算机存储介质

Country Status (2)

Country Link
CN (1) CN107306000B (zh)
WO (1) WO2017182001A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158335B (zh) * 2019-11-19 2021-08-20 潍柴动力股份有限公司 多ecu系统的针脚功能匹配方法及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202772373U (zh) * 2012-08-03 2013-03-06 北京壹人壹本信息科技有限公司 一种usb连接装置及电子设备
CN103237189A (zh) * 2013-03-26 2013-08-07 北京小米科技有限责任公司 电子设备、mhl连接器、mhl系统和连接器检测方法
CN203734053U (zh) * 2013-11-27 2014-07-23 合肥联宝信息技术有限公司 一种适用于无限制槽式a型usb盲插式母座接口
CN204304069U (zh) * 2014-07-05 2015-04-29 东莞市铭基电子有限公司 一种新型usb插头连接器及usb插座连接器
US20160091669A1 (en) * 2014-09-30 2016-03-31 Silicon Image, Inc. Electrical Connector with Optical Channel

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102048222B1 (ko) * 2013-05-21 2019-11-25 삼성전자주식회사 통신 시스템에서 외부 장치를 인식하는 장치 및 방법
CN205029143U (zh) * 2015-08-05 2016-02-10 庄忆芳 USB Type-C转换模块
CN205142391U (zh) * 2015-08-05 2016-04-06 东莞铭基电子科技集团有限公司 一种带连接线的hdmi信号转换器
CN105302750A (zh) * 2015-09-30 2016-02-03 联想(北京)有限公司 一种接口功能配置方法和电子设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202772373U (zh) * 2012-08-03 2013-03-06 北京壹人壹本信息科技有限公司 一种usb连接装置及电子设备
CN103237189A (zh) * 2013-03-26 2013-08-07 北京小米科技有限责任公司 电子设备、mhl连接器、mhl系统和连接器检测方法
CN203734053U (zh) * 2013-11-27 2014-07-23 合肥联宝信息技术有限公司 一种适用于无限制槽式a型usb盲插式母座接口
CN204304069U (zh) * 2014-07-05 2015-04-29 东莞市铭基电子有限公司 一种新型usb插头连接器及usb插座连接器
US20160091669A1 (en) * 2014-09-30 2016-03-31 Silicon Image, Inc. Electrical Connector with Optical Channel

Also Published As

Publication number Publication date
CN107306000B (zh) 2019-09-13
CN107306000A (zh) 2017-10-31

Similar Documents

Publication Publication Date Title
CN107111588B (zh) 经由USB端口使用PCIe协议的数据传输
WO2018176901A1 (zh) 转接头、终端设备和转接头系统
US7673092B2 (en) PCI Express interface
WO2017113683A1 (zh) 包含扩展接口的usb数据线及其控制方法
US20110191503A1 (en) Motherboard Compatible with Multiple Versions of Universal Serial Bus (USB) and Related Method
EP2659549B1 (en) Adaptive interconnection scheme for multimedia devices
US10445274B2 (en) Universal serial bus (USB) hub for connecting different port types and method thereof
US20120096189A1 (en) Method and System for Allowing a Media Player to Determine if it Supports the Capabilities of an Accessory
CN106021150A (zh) Type-C接口设备、通信系统和通信方法
US9990328B2 (en) Increased data flow in universal serial bus (USB) cables
CN107391419B (zh) 支持多主机的通用序列汇流排集线设备及车用主机
JP6661342B2 (ja) ポート接続回路、ポート接続制御方法、電子機器
KR102405773B1 (ko) Usb 타입 c 인터페이스를 이용한 멀티 디바이스 간의 통신 방법 및 이를 구현한 전자 장치
US8886859B2 (en) USB storage device
WO2021093627A1 (zh) 电子设备、电子设备接口控制方法及系统
US20180097315A1 (en) Power adapter, terminal device, charging system, and charging method
WO2018058946A1 (zh) 一种信号切换方法和装置、计算机存储介质
JP7076382B2 (ja) リバーシブルインターフェース用スイッチ
CN109346883A (zh) 一种实现Type-C接口正反插的系统
WO2017182001A1 (zh) 一种接口配置的方法、装置和计算机存储介质
CN111400225A (zh) Usb转接电路
EP4303737A1 (en) Data transmission apparatus and data transmission method
TW201631844A (zh) 基座、電子裝置與複合式裝置
CN117407222A (zh) 一种接口检测电路和终端设备
EP2804107A1 (en) Computer peripheral device and operating method thereof

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 17785485

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17785485

Country of ref document: EP

Kind code of ref document: A1