CN115422112A - Type-c circuit and computer equipment - Google Patents

Type-c circuit and computer equipment Download PDF

Info

Publication number
CN115422112A
CN115422112A CN202210965019.4A CN202210965019A CN115422112A CN 115422112 A CN115422112 A CN 115422112A CN 202210965019 A CN202210965019 A CN 202210965019A CN 115422112 A CN115422112 A CN 115422112A
Authority
CN
China
Prior art keywords
signal
type
module
circuit
processor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210965019.4A
Other languages
Chinese (zh)
Inventor
刘雪飞
任健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Kaizhi Technology Co ltd
Original Assignee
Hangzhou Kaizhi Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Kaizhi Technology Co ltd filed Critical Hangzhou Kaizhi Technology Co ltd
Priority to CN202210965019.4A priority Critical patent/CN115422112A/en
Publication of CN115422112A publication Critical patent/CN115422112A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a Type-c circuit and computer equipment, wherein the Type-c circuit comprises a Type-c terminal, a signal identification module, a signal separation module, a signal conversion module, a switch module and a processor; the signal identification module is connected with the Type-c terminal and the processor; the signal separation module is connected with the Type-c terminal and the processor; the signal conversion module is connected with the signal separation module, and the signal conversion module is connected with the processor; the switch module is connected with the Type-c terminal, the signal separation module and the processor; the processor is used for controlling the signal channel state of the switch module. The invention can realize the function of dynamically selecting the input and output of the DP signal on a Type-c circuit, saves the hardware cost and has great promotion effect on the use of the Type-c on equipment with multi-audio video communication.

Description

Type-c circuit and computer equipment
Technical Field
The invention relates to the technical field of electronic power, in particular to a Type-c circuit and computer equipment.
Background
At present, some existing audio and video devices are provided with a Type-c interface, but the function of a Type-c circuit inside the Type-c interface is DP IN (Display port, pure digital high-definition video input), that is, only the content output by a notebook computer or other devices with a Type-cDP OUT (Display port, pure digital high-definition video output) function can be shared (i.e., as a slave device), or the function of a Type-c circuit inside the Type-c interface is DP OUT, that is, only the content can be output to a Display or other devices with a Type-cDP IN and a Display function for sharing (i.e., as a master device).
IN the prior art, if a device is to have a Type-c DP OUT/IN function, at least two Type-c interfaces need to be arranged, the function of marking the Type-c interface by characters or patterns is DP OUT or DP IN, and a user needs to connect according to the prompts to use the device normally. Therefore, the Type-c interface in the prior art has single function and is inflexible to use, and when a plurality of Type-c interfaces with the same appearance exist at the same time, misoperation is easily caused, and the purpose of use can be achieved only by paying attention to the correct connection mode by a user.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a Type-c circuit and a computer device, wherein the Type-c circuit integrates DP IN and DP OUT functions, so that one device can operate as a master device and a slave device, the hardware cost is saved, and the Type-c circuit has great promotion effect on the use of the Type-c on the device with multi-tone video communication.
In order to solve the problems, the invention provides a Type-c circuit, which comprises a Type-c terminal, a signal identification module, a signal separation module, a signal conversion module, a switch module and a processor, wherein the Type-c terminal is connected with the signal identification module;
the signal identification module is connected with the Type-C terminal, the signal identification module is connected with an I2C pin of the processor, and the signal identification module is used for identifying a power supply PD signal on the Type-C terminal;
the signal separation module is connected with the Type-c terminal based on the switch module, the signal separation module is connected with a Type-c pin of the processor based on the switch module, the signal separation module is used for separating a DP signal and a USB3.0 signal in a Type-c signal, the signal separation module converts the DP signal and sends the DP signal to the processor based on the signal conversion module, and the signal separation module sends the USB3.0 signal to the processor based on the switch module;
the signal conversion module is connected with the signal separation module, the signal conversion module is connected with an HDMI/MIPI pin of the processor, and the signal conversion module is used for converting a DP signal into an HDMI signal or an MIPI signal;
the switch module is connected with the Type-c terminal, the signal separation module and the processor, and is used for controlling the Type-c circuit to receive input signals or output signals outwards;
the processor is used for controlling the signal channel state of the switch module based on the power supply PD signal identified by the signal identification module.
The switch module comprises a first switch, and the first switch is located on the Type-c terminal and a connecting line of the signal separation module.
The switch module further comprises a second switch, the second switch is located on a connecting line of the signal separation module and the processor, and the second switch is further connected with the first switch.
The first switch is a single-pole double-throw 1.
The signal identification module is a PD control chip with I2C output.
The Type-c terminal based on SBU pin with the AUX pin of treater is connected.
The first switch is also connected with a GPIO pin of the processor.
The second switch is also connected with a GPIO pin of the processor.
The invention also provides computer equipment which is provided with the Type-c circuit.
The computer device includes: type-c data line, or mobile terminal, or computer, or intelligent electrical appliance.
The invention provides a Type-c circuit and computer equipment, which comprise a Type-c terminal, a signal identification module, a signal separation module, a signal conversion module, a switch module and a processor, wherein the Type-c terminal is connected with the signal identification module; the signal identification module is used for identifying a power supply PD signal on the Type-c terminal, so that the processor can set the connection state of the Type-c circuit according to an application scene; the signal separation module separates a DP signal and a USB3.0 signal in a Type-c signal and sends the signals to different units of the processor for processing; the signal conversion module converts the DP signal into an HDMI signal or an MIPI signal, and sends the HDMI signal or the MIPI signal to the processor for processing and displaying; the switch module can control the connection state that Type-c circuit is located, realizes the dynamic selection Type-c circuit is IN DP OUT state or DP IN state, has very big impetus to the use of Type-c on the equipment that possesses many audios and videos and exchanges. This Type-c circuit possesses the circuit structure who supports DP OUT state and DP IN state simultaneously, it makes DP OUT state or DP IN state just can realize depending on a circuit structure only, compares the original scheme that needs to rely on two Type-c interfaces to realize, and its hardware input reduces, also conveniently lays OUT the design on computer equipment through a circuit structure, reduces the spatial layout of computer equipment hardware structure for the cost reduction of computer equipment hardware. When the circuit structure of DP OUT state and DP IN state is possessed simultaneously on a circuit, whether it has the maloperation need not be considered, it can all satisfy corresponding scene demand for it is more convenient to use Type-c interface connection equipment operation.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of a Type-c circuit block in an embodiment of the invention;
FIG. 2 is a schematic diagram of a Type-c circuit in an embodiment of the invention;
FIG. 3 is a schematic diagram of a Type-c terminal pin signal in an embodiment of the invention;
FIG. 4 is a flow chart of a method of controlling signal input or output based on a Type-c circuit in an embodiment of the present invention;
FIG. 5 is a flowchart of a method for determining a signal channel status of the Type-c circuit when the Type-c circuit is in a master device mode according to an embodiment of the present invention;
FIG. 6 is a flowchart of a method for determining a signal path status of the Type-c circuit when the Type-c circuit is in a slave device mode according to a default in the embodiment of the present invention;
FIG. 7 is a flowchart of a method for pure digital high definition video output based on DP OUT path according to an embodiment of the present invention;
fig. 8 is a flow chart of a method for pure digital high definition video input based on DP IN channel IN an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the present invention, it is to be understood that terms such as "including" or "having," etc., are intended to indicate the presence of the disclosed features, numerals, steps, actions, components, parts, or combinations thereof in the specification, and are not intended to preclude the possibility that one or more other features, numerals, steps, actions, components, parts, or combinations thereof are present or added.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict. The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
The Type-c circuit comprises a Type-c terminal, a signal identification module, a signal separation module, a signal conversion module, a switch module and a processor, wherein the Type-c terminal is connected with the signal identification module; the signal identification module is connected with the Type-C terminal, the signal identification module is connected with an I2C pin of the processor, and the signal identification module is used for identifying a power supply PD signal on the Type-C terminal; the signal separation module is connected with the Type-c terminal based on the switch module, the signal separation module is connected with a Type-c pin of the processor based on the switch module, the signal separation module is used for separating a DP signal and a USB3.0 signal in a Type-c signal, the signal separation module converts the DP signal and sends the DP signal to the processor based on the signal conversion module, and the signal separation module sends the USB3.0 signal to the processor based on the switch module; the signal conversion module is connected with the signal separation module, the signal conversion module is connected with an HDMI/MIPI pin of the processor, and the signal conversion module is used for converting a DP signal into an HDMI signal or an MIPI signal; the switch module is connected with the Type-c terminal, the signal separation module and the processor, and is used for controlling the Type-c circuit to receive input signals or output signals outwards; the processor is used for controlling the signal channel state of the switch module based on the power supply PD signal identified by the signal identification module.
In an optional implementation manner of this embodiment, as shown in fig. 1, fig. 1 shows a schematic diagram of a Type-c circuit module in an embodiment of the present invention, where the Type-c circuit includes:
the Type-c terminal is connected with the switch module, the Type-c terminal is connected with the signal identification module, the Type-c terminal is connected with an AUX pin of the processor based on an auxiliary channel AUX channel (Auxiliarychannel), and the Type-c terminal is used as a medium for combining an internal Type-c circuit with an externally inserted cable to transmit data;
the signal identification module is connected with the Type-C terminal, the signal identification module is connected with an I2C pin of the processor, and the signal identification module identifies a power supply PD signal on the Type-C terminal based on a Type-C identification mechanism of a USB3.0 standard;
the signal separation module is connected with the Type-c terminal based on the switch module, the signal separation module is connected with the Type-c pin of the processor based on the switch module, the signal separation module is connected with the signal conversion module, and the signal separation module is used for separating a DP signal and a USB3.0 signal in a Type-c signal;
the signal conversion module is connected with the signal separation module, the signal conversion module is connected with an HDMI/MIPI pin of the processor, and the signal conversion module is used for converting the DP signal transmitted by the signal separation module into an HDMI/MIPI signal and then transmitting the HDMI/MIPI signal to the processor.
It should be noted that the switch module includes a first switch and a second switch, the first switch is connected to the Type-c terminal and the signal separation module, the second switch is connected to the signal separation module and the Type-c pin of the processor, the second switch is further connected to the first switch, the first switch is further connected to a GPIO (general purpose input/output) pin of the processor, the second switch is further connected to a GPIO (general purpose input/output) pin of the processor, and the switch module is configured to control the Type-c circuit to receive an input signal or output an external signal.
It should be noted that a Type-C pin of the processor is connected to the switch module, an HDMI/MIPI pin of the processor is connected to the signal conversion module, an AUX pin of the processor is connected to the Type-C terminal based on an auxiliary channel, an I2C pin of the processor is connected to the signal identification module, and the processor is configured to control a signal channel state of the switch module based on a power supply PD signal identified by the signal identification module, and process an input signal or output a signal to the outside.
In an alternative implementation manner of this embodiment, as shown in fig. 2, fig. 2 shows a schematic diagram of a Type-c circuit principle in an embodiment of the present invention, which includes: type-c terminal 1, first switch 2, signal identification module 3, auxiliary channel AUX channel 4, signal separation module 5, signal conversion module 6, second switch 7, treater 8 etc..
In an optional implementation manner of this embodiment, the Type-c terminal 1 is a Type-c socket and is a structural metal part, as shown in fig. 3, fig. 3 shows a schematic diagram of pin signals of the Type-c terminal in an embodiment of the present invention, the Type-c terminal 1 has 24 pins in total, the 24 pins form a relationship between an upper layer and a lower layer of pins, and the signals of the upper layer and the lower layer of pins are the same, so that the insertion by rotating 180 ° is supported on both the structure and the electrical characteristics, that is, the forward and reverse insertion is supported, the Type-c terminal pin signals are widely applied to electronic products such as data lines, computers, mobile terminals, and intelligent electrical appliances, and the like, and are the same as those in the prior art, and are not described here one by one.
In an optional implementation manner of this embodiment, a connection channel connecting the Type-c terminal 1 and the first switch 2 is a main data path (main link), the main data path is a multiplexing path of a USB3.0 signal and a DP signal, "4Lane" in fig. 2 is a multiplexing 4 path of a USB3.0 signal and a DP signal, and signal transmission is completed by using pin channels TX1, TX2, RX1, and RX2 of the Type-c terminal.
In an optional implementation manner of this embodiment, a connection channel connecting the Type-c terminal 1 and the AUX pin of the processor 8 is an auxiliary channel (auxiarychannel) 4, where the auxiliary channel 4 is based on SBU (sideband used) communication, and the setting of the Type-c circuit and the sending of the control instruction are completed by using pin channels of SBUs 1 and SBUs 2 in the Type-c terminal 1 in an ac-coupled differential transmission manner, so as to ensure correct transmission of signals.
In an optional implementation manner of this embodiment, the first switch 2 is a single-pole double-throw 1. When the Type-c circuit needs to be switched to the DP IN mode, the processor 8 transmits a command to the first switch 2 through the general-purpose input/output, and the first switch 2 is switched to the DP IN mode, so as to allow only the Type-c signal transmitted from the Type-c terminal 1 to pass through and transmit to the signal splitting module 5; when the Type-c circuit needs to be switched to the DP OUT mode, the processor 8 transmits a command to the first switch 2 through the general-purpose input/output, and the first switch 2 is switched to the DP OUT mode, so that only the Type-c signal transmitted from the second switch 7 is allowed to pass through and be transmitted to the Type-c terminal 1.
In an optional implementation manner of this embodiment, the second switch 7 is a single-pole double-throw 1. When the Type-c circuit needs to be switched to the DP IN mode, the processor 8 transmits a command to the second switch 7 through the general-purpose input/output, and the second switch 7 is switched to the DP IN mode, allowing only the USB3.0 signal transmitted from the signal splitting module 5 to pass through and transmit to the processor 8; when the Type-c circuit needs to be switched to the DP OUT mode, the processor transmits a command to the second switch 7 through the general-purpose input/output 8, and the second switch 7 is switched to the DP OUT mode, so that only the Type-c signal transmitted from the processor 8 is allowed to pass through and be transmitted to the first switch 2.
It should be noted that the first switch 2 and the second switch 7 have the same type and are applied in opposite directions.
In an optional implementation manner of this embodiment, the signal identification module 3 is a PD control chip with I2C output, and identifies the direction of the PD signal based on a CC protocol in the PD standard.
In an optional implementation manner of this embodiment, when two devices are connected together through a Type-c cable, if both the two devices are device types that can serve as both a master device and a slave device, under this condition, a device role is defined based on CC (Configuration channel) detection, where the CC refers to a CC protocol, a CC signal, and a CC signal path in the USB Type-c standard.
Specifically, in the USB Type-c standard, there are three interfaces defined differently on the device, which are:
a DFP (Downstream Facing Port), which is a Host terminal, refers to a master device;
UFP (Upstream Facing Port, port connected to the upper level), which refers to a slave Device, is a Device end;
DRP (Dual Role Port), refers to a device that can act as both a master and a slave.
Before two DRP devices are connected to each other, a CC1 end and a CC2 end of a Type-c interface on the DRP device are in a state of high-low level alternate conversion, which is called a toggle state, the DRP device switches back and forth between DFP and UFP at a fixed time interval in a standby state before being connected, where the fixed time interval may be 50ms, or may be a longer or shorter time period.
When the connection of the two DRP devices occurs, the devices with the CC1 end and the CC2 end of the Type-c interface in the two DRP devices at high level will be defined as DFP devices, and the devices with the CC1 end and the CC2 end at low level will be defined as UFP devices, so far, the Type-c identification mechanism based on the USB standard is finished.
In an optional implementation manner of this embodiment, the two DRP devices may be defined by the above automatic identification, or may be set according to roles defined by an actual application scenario, if a change is required, the change of the setting may be implemented only by sending a role setting change request to either the DFP device or the UFP device, and the important criterion for defining the role of the setting device is determination of the PD signal direction.
Specifically, the PD signal (Power Delivery) is a Power supply signal, and in the standard of the PD protocol, there are two definitions of devices, which are a Power supply Source terminal and a Power receiving Sink terminal, respectively, when two devices are connected, SOP (Start of Packet) communication in the PD protocol is performed on the CC signal path, at this time, the Sink terminal serving as the UFP device inquires the Source terminal serving as the DFP device about Power configuration parameters that it can provide, and at this time, the PD signal direction is determined.
It should be noted that IN the interconnection of two devices as mentioned IN the present embodiment, there is no need to supply power to each other, but the input DP IN and output DP OUT relationships can still be associated by means of the concepts referred to above.
In an optional implementation manner of this embodiment, the signal separation module 5 is a DP/USB3.0 separator, and uses a DP/USB3.0 signal separation chip, which is used to separate a DP signal and a USB3.0 signal in a Type-c signal.
Specifically, the DP signal (Display Port) is mainly used to carry audio, USB, video and other forms of data, and is often used for connection between a video source and a Display.
In an optional implementation manner of this embodiment, the DP signal is implemented in the Type-c circuit by DP Altmode, i.e., a video output function of the Type-c circuit.
In an optional implementation manner of this embodiment, when the device is connected to the peripheral, the peripheral informs that it supports the DP mode based on VDMs (Video Delta Modulation System) information communication in a PD protocol, and after detecting that the peripheral supports the DP mode, the processor 8 opens an AUX pin to communicate with the peripheral, and sets a Type-c pin to be a DPAltmode, where the main data path allows all use for transmission of the DP signal.
In an optional implementation manner of this embodiment, the signal conversion module 6 is a converter that converts a DP signal into an HDMI/MIPI signal, and a video stream conversion chip that converts the DP signal into the HDMI/MIPI signal is used.
In an optional implementation manner of this embodiment, the processor 8 is an embedded multimedia processor MCU (MicrocontrollerUnit) with Type-c, HDMI, and MIPI functions.
In an optional implementation manner of this embodiment, if the processor 8 needs to output data as a DFP device, that is, when it is determined that the Type-c circuit is in the DP OUT state, the processor controls the first switch and the second switch to adjust to an output direction through GPIO (General-purpose input/output), so as to form a DP OUT path, so that the processor can output data through the Type-c terminal.
It should be noted that the processor outputs a Type-c signal through a Type-c pin, and the signal is transmitted to the Type-c terminal through the second switch and the first switch.
IN an optional implementation manner of this embodiment, if the processor 8 needs to receive data as the UFP device, that is, when it is determined that the Type-c circuit is IN the DP IN state, the processor controls the first switch and the second switch to adjust to the input direction through GPIO, so as to form a DP IN path, so that the processor can receive data input from an external device through the Type-c terminal.
It should be noted that, the Type-c terminal receives an input Type-c signal, and is separated by the first switch and the signal separation module to be a DP signal and a USB3.0 signal, the USB3.0 signal is transmitted to the processor through the second switch, and the DP signal is transmitted to the signal conversion module and is transmitted to the processor after being converted into an HDMI/MIPI signal.
For the introduction of the computer device provided by the present invention, please refer to the embodiment of the Type-c circuit, which is not described herein again.
In an optional implementation manner of this embodiment, the computer device includes, but is not limited to, a Type-c data line, a mobile terminal, a computer, and an intelligent electrical appliance.
In conclusion, the invention provides a Type-c circuit and computer equipment, in the Type-c circuit, the Type-c terminal is used as a medium for combining an internal Type-c circuit with an externally inserted cable to transmit data, so that data intercommunication between the equipment is facilitated; the signal identification module is used for identifying a power supply PD signal on the Type-c terminal, so that the processor can set the connection state of the Type-c circuit according to an application scene; the signal separation module separates a DP signal and a USB3.0 signal in a Type-c signal and sends the signals to different units of the processor for processing; the signal conversion module converts the DP signal into an HDMI signal or an MIPI signal, and sends the HDMI signal or the MIPI signal to the processor for processing and displaying; the switch module can control the connection state of the Type-c circuit, and dynamically selects whether the Type-c circuit is IN a DP OUT state or a DP IN state. The Type-c circuit possesses the circuit structure who supports DP OUT state and DP IN state simultaneously, and it makes DP OUT state or DP IN state just can realize depending on a circuit structure only, compares the original scheme that needs to rely on two Type-c interfaces to realize, and its hardware input reduces, also conveniently lays OUT the design on computer equipment through a circuit structure, reduces computer equipment hardware structure's spatial layout for the cost reduction of computer equipment hardware. When the circuit structure that possesses DP OUT state and DP IN state simultaneously on a circuit, it need not consider whether there is the maloperation, and it can satisfy corresponding scene demand all for it is more convenient to use Type-c interface connection equipment operation, saves the hardware cost simultaneously, has very big impetus to Type-c use on the equipment that possesses many audio-visual interchange.
The following are examples of methods of the present invention that may be used to implement embodiments of the apparatus of the present invention.
In an optional implementation manner of the embodiment, a method for controlling signal input or output based on a Type-c circuit is provided, and includes the following steps: receiving a power supply PD signal, and judging the signal channel state of the Type-c circuit based on a preset configuration parameter and the PD signal; when the signal channel state is judged to be DP OUT, the Type-c circuit is controlled to form a DP OUT path, and pure digital high-definition video output is carried OUT based on the DP OUT path; and when the signal channel state is judged to be the DPIN, controlling the Type-c circuit to form a DP IN channel, and inputting pure digital high-definition video based on the DP IN channel.
The method for controlling signal input or output based on the Type-c circuit comprises the steps that when an external device is inserted, a PD signal is supplied through a receiving power source, the signal channel state of the Type-c circuit is judged based on preset configuration parameters and the PD signal, when a signal output and input mode corresponding to the PD signal is judged, the Type-c circuit is controlled to be placed in a DP OUT channel or a DPIN channel, the Type-c circuit can dynamically generate the DP OUT channel or the DPIN channel after the external device is inserted, the Type-c signal output and input can be realized under one Type-c circuit by combining the self-adaptive configuration input or output function of the external device, the channel matching process can be completed in an adaptive mode based on the PD signal identification process, whether the Type-c interface is in misoperation or not needs to be considered, the connection operation of the Type-c interface connection device is more convenient, the hardware cost is saved, and the great promotion effect is achieved on the use of the Type-c on the equipment with multi-tone video communication.
In an alternative implementation manner of this embodiment, as shown in fig. 4, fig. 4 is a flowchart illustrating a method for controlling signal input or output based on a Type-c circuit in an embodiment of the present invention, where the method for controlling signal input or output based on a Type-c circuit includes the following steps:
s401, receiving a power supply PD signal, and judging the signal channel state of the Type-c circuit based on a preset configuration parameter and the PD signal;
here, a power-supplied PD signal of an external device is received based on a Type-c terminal in the Type-c circuit, and a signal channel state of the Type-c circuit is determined based on preset configuration parameters and the PD signal.
Specifically, in the standard of the PD protocol, the devices respectively have a power supply end Source end and a power receiving end Sink end, when the two devices are connected, SOP (Start of Packet) communication in the PD protocol is performed on the CC signal path, and at this time, the Sink end serving as the UFP device inquires the Source end serving as the DFP device about the power configuration parameters that can be provided by the Source end to determine the PD signal direction, which includes the following specific steps:
1. the Sink terminal initiates SOP communication based on the CC signal path and applies for obtaining power supply configuration parameters which can be provided by the Source terminal;
2. the Source end replies a power configuration parameter specification list which can be provided;
3. the Sink end replies the selected power configuration parameter specification, sends out a connection request and carries the required current configuration parameters;
4. the Source terminal receives a connection request sent by the Sink terminal and raises the voltage of a VBUS pin of a Type-c terminal in a Type-c circuit of the Source terminal from 5V to the request voltage of the Sink terminal;
5. after the voltage of a VBUS pin at the Source end reaches the request voltage at the Sink end and is stable, a Ready signal is sent out;
6. and the current at the Sink end is gradually increased until the preset current configuration parameters are reached.
In an optional implementation manner of this embodiment, as shown in fig. 5, fig. 5 is a flowchart illustrating a method for determining a signal channel state of a Type-c circuit when the Type-c circuit is in a master device mode according to a preset default, where the determining a signal channel state of a Type-c circuit based on a preset configuration parameter and a PD signal includes the following steps:
s501, setting a Type-c circuit to be in a master device mode based on preset configuration parameters, and initiating a connection request in a power receiving end mode based on a CC protocol in a PD standard;
the Type-c circuit is set to be in a master device mode based on preset configuration parameters, and a connection request is initiated in a power receiving end mode based on a CC protocol in a PD standard, namely, the connection request is initiated on a CC signal path as a Sink end.
In an optional implementation manner of this embodiment, the initiating a connection request in a power receiving end manner based on a CC protocol in the PD standard refers to initiating an SOP communication request to request for obtaining a power specification data that a power supply end can provide.
S502, if the confirmation signal is received, judging that the signal channel state is DP OUT;
if an acknowledgement signal sent by an external device is received, the signal channel state of the Type-c circuit is judged to be DP OUT.
In an optional implementation manner of this embodiment, the receiving an acknowledgement signal includes: receiving power specification data returned by the external equipment; receiving signals of which the CC1 end and the CC2 end of a Type-c interface of external equipment are adjusted to be low level; and the external equipment sends a request to open the video output function of the Type-c circuit. When one or more of the above situations occur, it can be considered that an acknowledgement signal sent by an external device is received, that is, the signal channel state of the Type-c circuit can be judged to be DP OUT.
S503, if the confirmation signal is not received, setting the Type-c circuit into a slave device mode based on preset configuration parameters, and initiating a connection request in a power supply terminal mode based on a CC protocol in the PD standard;
if the confirmation signal sent by the external device is not received, the Type-c circuit is set to be in the slave mode based on the preset configuration parameters, the CC1 end and the CC2 end of the Type-c terminal in the Type-c circuit are adjusted to be at low level, and the connection request is initiated in a power supply end mode based on the CC protocol in the PD standard, namely the connection request is initiated on the CC signal path as the Source end.
In an optional implementation manner of this embodiment, the receiving no acknowledgement signal includes: no response from the external device is received; recognizing that an external device initiates an SOP communication request in a power receiving end mode; receiving signals of which the CC1 end and the CC2 end of the Type-c interface of the external equipment are adjusted to be high level; the CC1 end and the CC2 end which receive the Type-c interface of the external equipment are still in a high-low level conversion state, namely a toggle state.
In an optional implementation manner of this embodiment, the initiating a connection request in a power supply manner based on a CC protocol in the PD standard includes: and setting the Type-c circuit into a slave device mode based on preset configuration parameters, and initiating a connection request on a CC signal path as a Source terminal, namely providing a self power configuration parameter specification list for external equipment.
And S504, if the confirmation signal is received, judging that the signal channel state is DPIN.
When receiving the confirmation signal sent by the external equipment, the signal channel state of the Type-c circuit is judged to be DP IN.
In an optional implementation manner of this embodiment, the receiving the acknowledgement signal includes: and receiving the reply of the selected power configuration parameter specification from the external equipment.
The Type-c circuit is set to be in a master device mode based on preset configuration parameters, and a connection request is initiated in a power receiving end mode based on a CC protocol in a PD standard, so that the operation efficiency of the Type-c circuit can be improved.
In an optional implementation manner of this embodiment, as shown in fig. 6, fig. 6 is a flowchart illustrating a method for determining a signal channel state of a Type-c circuit when the Type-c circuit is in a slave device mode according to a preset default, where the determining the signal channel state of the Type-c circuit based on a preset configuration parameter and a PD signal further includes:
s601, setting the Type-c circuit to be in a slave device mode based on preset configuration parameters, and initiating a connection request in a power supply terminal mode based on a CC protocol in a PD standard;
the Type-c circuit is set to be in a slave device mode based on preset configuration parameters, and a connection request is initiated in a power supply terminal mode based on a CC protocol in a PD standard, namely, the connection request is initiated on a CC signal path as a Source terminal.
In an optional implementation manner of this embodiment, the initiating a connection request in a power supply manner based on a CC protocol in the PD standard includes: the method comprises the steps of setting a Type-c circuit into a slave device mode based on preset configuration parameters, adjusting a CC1 end and a CC2 end of a Type-c terminal in the Type-c circuit to be low levels, initiating a connection request in a power supply end mode based on a CC protocol in a PD standard, namely initiating the connection request on a CC signal path as a Source end, and providing a power supply configuration parameter specification list of the Type-c circuit to external equipment.
S602, if an acknowledgement signal is received, judging that the signal channel state is DPIN;
if an acknowledgement signal sent by an external device is received, the signal channel state of the Type-c circuit is judged to be DP IN.
In an optional implementation manner of this embodiment, the receiving the acknowledgement signal includes: and receiving the reply of the selected power supply configuration parameter specification from the external equipment.
S603, if the confirmation signal is not received, setting the Type-c circuit to be in a master device mode based on preset configuration parameters, and initiating a connection request in a power receiving end mode based on a CC protocol in a PD standard;
if the confirmation signal sent by the external device is not received, the Type-c circuit is set to be in the master device mode based on the preset configuration parameters, and the connection request is initiated in a power receiving end mode based on the CC protocol in the PD standard, namely, the connection request is initiated on the CC signal path as the Sink end.
In an optional implementation manner of this embodiment, the initiating a connection request in a power receiving end manner based on a CC protocol in the PD standard refers to initiating an SOP communication request to request for obtaining a power specification data that a power supply end can provide. .
S604, if the confirmation signal is received, judging that the signal channel state is DP OUT.
If the confirmation signal sent by the external equipment is received, the signal channel state is judged to be DP IN.
In an optional implementation manner of this embodiment, the receiving the acknowledgement signal includes: receiving power specification data replied by the external equipment; receiving signals of which the CC1 end and the CC2 end of the Type-c interface of the external equipment are adjusted to be low level; and sending a request to open the video output function of the Type-c circuit by the external equipment. When one or more of the above situations occur, it can be considered that an acknowledgement signal sent by an external device is received, that is, the signal channel state of the Type-c circuit can be judged to be DP OUT.
The PD signal is received, the signal channel state of the Type-c circuit is judged based on the preset configuration parameter and the PD signal, the signal channel state of the Type-c circuit can be judged rapidly, and the working efficiency of the Type-c circuit is improved.
S402, when the signal channel state is judged to be DP OUT, the Type-c circuit is controlled to form a DP OUT path, and pure digital high-definition video output is carried OUT based on the DP OUT path;
here, at step S401, when the signal channel state of the Type-c circuit is determined to be DP OUT, the processor controls the Type-c circuit to form a DP OUT path and perform pure digital high definition video output based on the DP OUT path.
In an optional implementation manner of this embodiment, as shown in fig. 7, fig. 7 is a flowchart illustrating a method for pure digital high-definition video output based on a DP OUT path in an embodiment of the present invention, where the controlling the Type-c circuit to form the DP OUT path and perform pure digital high-definition video output based on the DP OUT path includes the following steps:
s701, acquiring PD signal setting parameters on a signal identification module based on an I2C pin, and triggering a processor to generate a universal input/output signal;
the processor obtains PD signal setting parameters on the signal identification module based on the I2C pin and triggers the processor to generate general input and output signals based on the GPIO pin.
In an optional implementation manner of this embodiment, the PD signal setting parameter is a setting parameter of an external device.
S702, controlling a switch module to form a DP OUT path on a Type-c circuit based on a general input/output signal;
the processor generates a general-purpose input/output signal, the general-purpose input/output signal is sent to the switch module through a GPIO pin of the processor based on a GPIO channel, the switch module is controlled to be adjusted to be in an output direction, and a DP OUT path is formed in the Type-c circuit.
In an optional implementation manner of this embodiment, the switch module includes a first switch and a second switch, and the first switch and the second switch are respectively adjusted to output directions simultaneously based on the input and output signals of the general type.
In an optional implementation manner of this embodiment, the DP OUT path includes: the Type-c pin of the processor is connected with the second switch, the second switch is connected with the first switch, and the first switch is connected with the Type-c terminal in the Type-c circuit, so that the Type-c pin in the processor is connected with the Type-c terminal in the Type-c circuit.
S703, reading DP setting information of the external device based on the auxiliary channel;
where the processor reads DP setting information of the external device based on the auxiliary channel.
In an optional implementation manner of this embodiment, the reading of the DP setting information of the external device based on the auxiliary channel includes reading Extended Display Identification Data (EDID), a display rate, setting of a display status register, and the like.
The DP setting information of the external device is read based on the auxiliary channel, so that the matching efficiency of the self device and the external device is improved.
S704, performing handshake processing based on the DP setting information;
where the processor performs a handshake process based on the DP setting information.
In an optional implementation manner of this embodiment, the processor performs a handshake process based on the DP setting information of the external device transmitted by the auxiliary channel, where the handshake process is that the processor and the external device perform connection status indication based on the DP setting information.
S705, outputting the screen projection display information outwards based on the DP OUT path.
Here, after the handshake processing in step S704 succeeds, the processor outputs the screen projection display information to the outside based on the DP OUT path.
In an optional implementation manner of this embodiment, the processor outputs screen projection display information to the outside based on the DP OUT path, that is, a Type-c signal output by the processor is sent OUT through a Type-c pin, and is transmitted to the Type-c terminal through the second switch and the first switch in sequence, and then is transmitted to an external device.
And S403, when the signal channel state is judged to be the DPIN, controlling the Type-c circuit to form a DP IN channel, and carrying out pure digital high-definition video input based on the DP IN channel.
Here, at step S401, when it is determined that the signal channel status of the Type-c circuit is DP IN, the processor controls the Type-c circuit to form a DP IN path and perform pure digital high definition video input based on the DP IN path.
IN an optional implementation manner of this embodiment, as shown IN fig. 8, fig. 8 is a flowchart illustrating a method for pure digital high-definition video input based on a DP IN path IN an embodiment of the present invention, where the controlling the Type-c circuit to form the DP IN path and perform pure digital high-definition video input based on the DP IN path includes the following steps:
s801, acquiring PD signal setting parameters on a signal identification module based on an I2C port, and triggering to generate a general input/output signal;
the processor obtains PD signal setting parameters on the signal identification module based on the I2C pin and triggers the processor to generate general input and output signals based on the GPIO pin.
In an optional implementation manner of this embodiment, the PD signal setting parameter is a setting parameter of its own device.
S802, controlling the switch module to form a DP IN path on the Type-c circuit based on the universal input/output signal;
the processor generates a general-purpose input and output signal, the general-purpose input and output signal is sent to the switch module through a GPIO pin of the processor based on a GPIO channel, the switch module is controlled to be adjusted to be IN an output direction, and a DP IN path is formed IN the Type-c circuit.
In an optional implementation manner of this embodiment, the switch module includes a first switch and a second switch, and the first switch and the second switch are respectively adjusted to input directions simultaneously based on the input and output signals of the general type.
IN an optional implementation manner of this embodiment, the DP IN path includes: the Type-c pin in the processor is connected with a signal separation module in the Type-c circuit, the HDMI \ MIPI pin in the processor is connected with a signal conversion module in the Type-c circuit, the signal conversion module is connected with the signal separation module, the signal separation module is connected with a Type-c terminal in the Type-c circuit, so that the Type-c pin of the processor is connected with a Type-c terminal in the Type-c circuit, and the HDMI/MIPI pin of the processor is connected with a Type-c terminal in the Type-c circuit.
S803, handshake processing is carried out while forming a DP IN path;
here, the processor performs a handshake process, i.e., a connection state indication of the processor and an external device based on DP setting information, while controlling the Type-c circuit to form a DP IN path.
S804, sending display capability parameters based on the auxiliary channel;
here, after the handshake processing is successful in step S803, the processor displays the capability parameter to the external device transmitter based on the auxiliary channel.
In an optional implementation manner of this embodiment, the display capability parameter is DP setting information, and includes reading Extended Display Identification Data (EDID), a display rate, setting of a display status register, and the like of a device of the display capability parameter.
S805 receives input data based on the DP IN path.
Where the processor receives input data based on the DP IN path.
IN an optional implementation manner of this embodiment, the receiving input data based on the DP IN path includes: receiving an input Type-c signal based on a Type-c terminal in the Type-c circuit; separating the input Type-c signal into a USB3.0 signal and a DP signal based on a signal separation module in the Type-c circuit; receiving the USB3.0 signal based on a Type-c pin of a processor; converting and processing the DP signal into an HDMI/MIPI signal based on a signal conversion module in the Type-c circuit; a processor-based HDMI/MIPI pin receives the HDMI/MIPI signal.
IN summary, the invention provides a method for realizing signal input or output based on a Type-c circuit, and a method for controlling signal input or output based on a Type-c circuit, when an external device is inserted, a PD signal is supplied by receiving a power supply, the signal channel state of the Type-c circuit is judged based on preset configuration parameters and the PD signal, and when a signal output/input mode corresponding to the PD signal is judged, the Type-c circuit is controlled to be placed on a DP OUT path or a DP IN path, so that the Type-c circuit can dynamically generate a DP OUT path or a DP IN path after identifying the insertion of the external device, and the Type-c signal output or input function can be adaptively configured by combining the external device, so that the Type-c signal output and input can be realized through one Type-c circuit.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, or the like.
In addition, the above embodiments of the present invention are described in detail, and the principle and the implementation manner of the present invention should be described by using specific embodiments, and the above description of the embodiments is only used to help understanding the method of the present invention and the core idea thereof; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A Type-c circuit, comprising: the device comprises a Type-c terminal, a signal identification module, a signal separation module, a signal conversion module, a switch module and a processor;
the signal identification module is connected with the Type-C terminal, the signal identification module is connected with an I2C pin of the processor, and the signal identification module is used for identifying a power supply PD signal on the Type-C terminal;
the signal separation module is connected with the Type-c terminal based on the switch module, the signal separation module is connected with a Type-c pin of the processor based on the switch module, the signal separation module is used for separating a DP signal and a USB3.0 signal in a Type-c signal, the signal separation module converts the DP signal and sends the DP signal to the processor based on the signal conversion module, and the signal separation module sends the USB3.0 signal to the processor based on the switch module;
the signal conversion module is connected with the signal separation module, the signal conversion module is connected with an HDMI/MIPI pin of the processor, and the signal conversion module is used for converting a DP signal into an HDMI signal or an MIPI signal;
the switch module is connected with the Type-c terminal, the signal separation module and the processor, and is used for controlling the Type-c circuit to receive input signals or output signals outwards;
the processor is used for controlling the signal channel state of the switch module based on the power supply PD signal identified by the signal identification module.
2. The Type-c circuit of claim 1, wherein the switch module comprises a first switch located on a connection line of the Type-c terminal and the signal splitting module.
3. The Type-c circuit of claim 2, wherein the switch module further comprises a second switch, the second switch being located on a connection line between the signal splitting module and the processor, the second switch further connected to the first switch.
4. The Type-c circuit of claim 3, wherein the first switch is a single pole double throw 1.
5. The Type-C circuit of claim 1, wherein the signal identification module is a PD control chip with an I2C output.
6. The Type-c circuit of claim 1, wherein the Type-c terminal is connected to an AUX pin of the processor based on an SBU pin.
7. The Type-c circuit of claim 2, wherein the first switch is further connected to a GPIO pin of the processor.
8. The Type-c circuit of claim 3, wherein the second switch is further connected to a GPIO pin of the processor.
9. A computer device, characterized in that it is provided with Type-c circuitry according to any of claims 1 to 8.
10. The computer device of claim 9, wherein the computer device comprises: type-c data line, or mobile terminal, or computer, or intelligent electrical appliance.
CN202210965019.4A 2022-08-11 2022-08-11 Type-c circuit and computer equipment Pending CN115422112A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210965019.4A CN115422112A (en) 2022-08-11 2022-08-11 Type-c circuit and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210965019.4A CN115422112A (en) 2022-08-11 2022-08-11 Type-c circuit and computer equipment

Publications (1)

Publication Number Publication Date
CN115422112A true CN115422112A (en) 2022-12-02

Family

ID=84198139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210965019.4A Pending CN115422112A (en) 2022-08-11 2022-08-11 Type-c circuit and computer equipment

Country Status (1)

Country Link
CN (1) CN115422112A (en)

Similar Documents

Publication Publication Date Title
US11526459B2 (en) Adapter, terminal device and adapter system
US8151018B2 (en) Dual-mode data transfer of uncompressed multimedia contents or data communications
EP3657778A1 (en) Terminal device and control method therefor
US9886413B2 (en) Displayport over USB mechanical interface
US8959272B2 (en) Interposer and intelligent multiplexer to provide a plurality of peripherial buses
CN107493462B (en) Video processing apparatus
EP2597844A1 (en) Method and device for sharing micro-usb interface between earphone and usb
US9148001B1 (en) Intelligent cable mechanism
US20220360096A1 (en) Electronic device and accessory with quick charging and audio transmission functions
WO2012097615A2 (en) Multi-purpose connector for multiplexing headset interface into high definition video and audio interface and handheld electronic device
CN110879792B (en) Electronic equipment and interface control method thereof
US11403245B2 (en) Terminal, terminal peripheral, signal transmission system and signal sending and receiving method
US20230042872A1 (en) Mobile power supply and method for supplying power to peripheral device
CN107209378B (en) Head-mounted display device and head-mounted display system
US9584919B2 (en) Interface switching system and method for switching operation mode
CN218825507U (en) Dual-interface device and projection equipment
CN112115087A (en) Universal serial bus adapter and system
CN115422112A (en) Type-c circuit and computer equipment
CN216873301U (en) Interface circuit, intelligent glasses and control system
CN115474015A (en) Method for controlling signal input or output based on Type-c circuit
CN1496166B (en) USB communication equipment and method using mobile communication terminal earphone jack
CN115344223A (en) Processing method and electronic equipment
CN109991866B (en) Electronic equipment and control method
CN113778923A (en) Multifunctional electronic equipment
US10602273B2 (en) Audio playing apparatus and audio transmission circuit

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination