Role adaptation apparatus and method based on interface extension
By designing a CC signal recognition module and an input signal selection module on the BMC chip, automatic role adaptation of the USB 3.0 DRD module is achieved, solving the problem of automatic adaptation in existing technologies. The Type-A interface is expanded to a Type-C interface, supporting both HOST and DEVICE roles, thus improving the ease of use and automation of the USB 3.0 DRD module.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
- Filing Date
- 2024-09-10
- Publication Date
- 2026-07-07
AI Technical Summary
Existing technology cannot automatically adapt the role of USB 3.0 DRD modules, especially since the USB 3.0 DRD modules on BMC chips have both HOST and DEVICE functions. Existing Type-A to Type-C adapter cables cannot recognize the CC signal on the Type-C interface, resulting in the inability to automatically adapt the USB role.
Design a role adaptation device based on interface expansion, including a CC signal recognition module, an input signal selection module and a Type-C interface. The CC signal recognition module obtains the role information and insertion direction information of the USB device. The control chip sets the role of the USB 3.0 DRD module according to this information, and switches the path through the input signal selection module to adapt to the orientation of the USB device.
Automatic role adaptation of USB 3.0 DRD modules has been implemented, and the USB 3.0 Type-A interface has been expanded to a USB 3.0 Type-C interface, improving the ease of use and automation of USB 3.0 DRD modules, and supporting both USB 3.0 HOST and DEVICE roles.
Smart Images

Figure CN119441095B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electronic circuit technology, and in particular to a role adaptation device and method based on interface expansion. Background Technology
[0002] BMC chips are dedicated controller chips used for monitoring and managing servers. They typically include various types of interfaces, such as Ethernet, serial, USB, IIC, SPI, PCIe, and VGA interfaces. The USB 3.0 interface can be further divided into the general-purpose Type-A interface and the Type-C interface, which has emerged in recent years.
[0003] The Type-C interface has advantages such as reversible insertion, strong compatibility, and compact structure. With the development of portable devices such as mobile phones and tablets, more and more electronic devices have the need to support the USB 3.0 Type-C interface. Therefore, for BMC chips that only have a USB 3.0 Type-A interface, the need to expand their USB interface to support the Type-C interface is also gradually increasing.
[0004] Because the USB 3.0 Type-A interface cannot recognize the role of the connected device, it cannot automatically adapt the role of the USB 3.0 DRD module. Only by expanding the interface to a Type-C interface and processing the CC signal on the Type-C interface to recognize the USB role of the connected device can the role of the USB 3.0 DRD module be automatically adapted.
[0005] The number and definition of signals for USB 3.0 Type-A and USB 3.0 Type-C interfaces differ, so an adapter circuit needs to be designed between them to meet the signal adaptation function of the two interfaces, thereby realizing the signal conversion from USB 3.0 Type-A interface to USB 3.0 Type-C interface.
[0006] For existing USB 3.0 host devices, the common practice is to use a Type-A to Type-C adapter cable to extend the Type-A interface to a Type-C interface. This type of adapter cable has internal circuitry that adapts the USB 3.0 Type-A interface to the USB 3.0 Type-C interface. However, the USB 3.0 module on the BMC chip is a DRD module, a dual-role device. It not only has USB 3.0 host functionality but also USB 3.0 device functionality. In actual use, the internal registers of the USB 3.0 DRD module can be configured via software to function as either a USB 3.0 host or a USB 3.0 device. It is important to note that only one of these roles can be selected; both cannot be simultaneously enabled. The signal definitions for the Type-C interface differ between USB 3.0 Device and USB 3.0 Host, especially the definition of the CC signal. The USB 3.0 DRD module needs to select its USB role based on the characteristics of the CC signal on the Type-C interface. However, the adaptation circuitry inside existing Type-A to Type-C adapter cables is designed only for the USB 3.0 Host role and does not support the USB 3.0 Device role. Therefore, existing Type-A to Type-C adapter cables cannot be used on USB 3.0 DRD modules with BMC chips, and thus cannot automatically adapt the role of the USB 3.0 DRD module.
[0007] In summary, existing technologies have the problem of not being able to automatically adapt to the role of USB 3.0 DRD modules. Summary of the Invention
[0008] This invention provides a role adaptation device and method based on interface extension, which solves the defect in the prior art that it cannot automatically adapt the role of USB 3.0 DRD module, and realizes automatic adaptation of the role of USB 3.0 DRD module.
[0009] This invention provides a role adaptation device based on interface expansion, including a control chip, a CC signal recognition module, an input signal selection module, and a Type-C interface;
[0010] The CC signal recognition module is used to acquire the CC signal connected to the Type-C interface, and to obtain the USB device role information and USB device insertion direction information based on the CC signal;
[0011] The control chip is used to acquire the USB device role information and the USB device insertion direction information, set the USB 3.0 DRD module in the control chip to the opposite role of the USB device according to the USB device role information, and generate a path selection signal according to the USB device insertion direction information; wherein, the HOST role and the DEVICE role are opposite roles to each other;
[0012] The input signal selection module is used to switch the path according to the path selection signal to adapt to the orientation of the USB device connected to the Type-C interface and complete the connection with the USB device connected to the Type-C interface.
[0013] According to the present invention, a role adaptation device based on interface expansion is provided, wherein the CC signal recognition module is a Type-C interface CC signal recognition chip, and the input signal selection module is a USB 3.0 signal path 2:1 MUX chip.
[0014] According to a role adaptation device based on interface expansion provided by the present invention, the Type-C interface is connected to the CC signal recognition module through a configuration channel, and the CC signal recognition module is connected to the control chip through an IIC interface; the transmit differential signal pair channel of the control chip is connected to the first sub-module in the input signal selection module, and the receive differential signal pair channel of the control chip is connected to the second sub-module in the input signal selection module; the first sub-module is connected to the positive transmit differential signal channel and the negative transmit differential signal channel of the Type-C interface, and the second sub-module is connected to the positive receive differential signal channel and the negative receive differential signal channel of the Type-C interface.
[0015] According to the present invention, a role adaptation device based on interface extension generates a path selection signal according to the USB device insertion direction information, specifically including:
[0016] When the USB device is inserted in the forward direction, a first path selection signal is generated;
[0017] When the USB device is inserted in the reverse direction, a second path selection signal is generated.
[0018] According to the present invention, a role adaptation device based on interface extension performs path switching according to the path selection signal, specifically including:
[0019] Based on the first path selection signal, the transmitting differential signal pair channel is adapted to the positive transmitting differential signal channel based on the first submodule, and the receiving differential signal pair channel is adapted to the positive receiving differential signal channel based on the second submodule.
[0020] According to the present invention, a role adaptation device based on interface extension performs path switching according to the path selection signal, specifically including:
[0021] Based on the second path selection signal, the transmit differential signal pair channel is adapted to the negative transmit differential signal channel based on the first submodule, and the receive differential signal pair channel is adapted to the negative receive differential signal channel based on the second submodule.
[0022] This invention also provides a role adaptation method based on interface extension, comprising:
[0023] The system acquires USB device role information and USB device insertion direction information transmitted by the CC signal recognition module; wherein, the CC signal recognition module is used to acquire the CC signal accessed by the Type-C interface, and obtain the USB device role information and USB device insertion direction information based on the CC signal;
[0024] Based on the USB device role information, the USB 3.0 DRD module of the control chip is set to the opposite role of the USB device; wherein, the HOST role and the DEVICE role are opposite roles to each other;
[0025] A path selection signal is generated based on the USB device insertion direction information, and the path is switched according to the path selection signal to adapt to the orientation of the USB device connected to the Type-C interface, thereby completing the connection with the USB device connected to the Type-C interface.
[0026] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the role adaptation method based on interface extension as described above.
[0027] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the role adaptation method based on interface extension as described above.
[0028] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the role adaptation method based on interface extension as described above.
[0029] The present invention provides a role adaptation device and method based on interface expansion, comprising a control chip, a CC signal recognition module, an input signal selection module, and a Type-C interface; the CC signal recognition module is used to acquire the CC signal accessed by the Type-C interface, and obtain USB device role information and USB device insertion direction information based on the CC signal; the control chip is used to acquire the USB device role information and the USB device insertion direction information, set the USB 3.0 DRD module in the control chip to the opposite role to the USB device based on the USB device role information, and generate a path selection signal based on the USB device insertion direction information; wherein, the HOST role and the DEVICE role are opposite roles to each other; the input signal selection module is used to switch paths according to the path selection signal to adapt to the direction of the USB device accessed by the Type-C interface, and complete the connection with the USB device accessed by the Type-C interface. This invention expands the USB 3.0 Type-A interface of the USB 3.0 DRD module in the control chip to a USB 3.0 Type-C interface through a CC signal recognition module, an input signal selection module, and a Type-C interface. It automatically adjusts the role of the USB 3.0 DRD module by acquiring USB device role information and generates a path selection signal by acquiring USB device insertion direction information to automatically switch paths, thereby improving the automation level of the USB 3.0 DRD module in the control chip. Attached Figure Description
[0030] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0031] Figure 1 This is a schematic diagram of the role adaptation device based on interface extension provided by the present invention.
[0032] Figure 2 This is a functional architecture diagram of the BMC chip for the role adaptation device based on interface extension provided by the present invention.
[0033] Figure 3 This is a schematic diagram showing the connection of the control chip, CC signal recognition module, input signal selection module, and Type-C interface of the role adaptation device based on interface expansion provided by the present invention.
[0034] Figure 4 This is a flowchart illustrating the role adaptation method based on interface extension provided by the present invention.
[0035] Figure 5 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0036] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0037] Understandably, BMC (Baseboard Manager Controller) chips are typically used in server devices. They are dedicated controller chips used to monitor and manage servers. For some BMC chips with USB 3.0 DRD modules that have a Type-A interface, in order to meet future application requirements, the USB 3.0 Type-A interface needs to be expanded to a Type-C interface.
[0038] The USB 3.0 Type-A interface cannot recognize the role of the connected device. Only when the interface is expanded to a Type-C interface, and the USB role of the connected device is recognized by the CC signal on the Type-C interface, can the role of the USB 3.0 DRD module be automatically adapted.
[0039] The USB 3.0 DRD module includes both USB 3.0 HOST and USB 3.0 DEVICE roles. Only one role can be selected; both cannot be simultaneously used. Furthermore, the signal definitions on the Type-C interface differ when using USB 3.0 HOST and USB 3.0 DEVICE to expand the Type-C interface. Specifically, the CC pin of the HOST's Type-C interface has a pull-up resistor, while the CC pin of the DEVICE's Type-C interface has a pull-down resistor. Based on this, the USB 3.0 DRD module needs to select the USB role according to the characteristics of the CC signal on the Type-C interface. However, the existing Type-A to Type-C adapter cables are designed only for the USB 3.0 HOST function and do not support the USB 3.0 DEVICE function. They do not recognize and process the CC signal on the Type-C interface. Therefore, existing Type-A to Type-C adapter cables cannot be used with the USB 3.0 DRD module.
[0040] To expand the Type-A interface of the BMC chip's USB 3.0 DRD module to a Type-C interface, an adapter circuit needs to be added between the two interfaces. This adapter circuit design will utilize a USB 3.0 signal path 2:1 MUX chip and a Type-C interface CC signal recognition chip. The BMC chip needs to process the data output by the Type-C interface CC signal recognition chip to determine whether the device connected to the Type-C interface is a HOST or DEVICE device, and to determine the orientation of the USB device's Type-C interface insertion. This will allow the BMC chip to set the role of the USB 3.0 DRD module and control the USB 3.0 signal path 2:1 MUX chip to switch channels to adapt to the orientation of the USB device's Type-C interface insertion.
[0041] Based on this, the present invention proposes a role adaptation device and method based on interface extension.
[0042] The following is combined Figures 1-3 The present invention describes a role adaptation device based on interface extension. Figure 1 This is a schematic diagram of the role adaptation device based on interface extension provided by the present invention, as shown below. Figure 1 As shown, the device includes a control chip 110, a CC signal recognition module 120, an input signal selection module 130, and a Type-C interface 140;
[0043] The CC signal recognition module 120 is used to acquire the CC signal connected to the Type-C interface 140, and obtain USB device role information and USB device insertion direction information based on the CC signal;
[0044] The control chip 110 is used to acquire the role information of the USB device and the insertion direction information of the USB device, set the USB 3.0 DRD module in the control chip to the opposite role of the USB device according to the role information of the USB device, and generate a path selection signal according to the insertion direction information of the USB device.
[0045] The input signal selection module 130 is used to switch the path according to the path selection signal to adapt to the orientation of the USB device connected to the Type-C interface 140 and complete the connection with the USB device connected to the Type-C interface.
[0046] It should be emphasized that the control module 110 mentioned in this invention only has a USB 3.0 Type-A interface. Table 1 shows the signal definitions of the standard USB 3.0 Type-A interface, and Table 2 shows the signal definitions of the standard USB 3.0 Type-C interface. As shown in Tables 1 and 2, it can be seen from the tables that the number of signals and the signal definitions of the USB 3.0 Type-A interface and the USB 3.0 Type-C interface are different.
[0047] Table 1 Standard USB 3.0 Type-A Interface Signal Definitions
[0048]
[0049] Table 2. Standard USB 3.0 Type-C Interface Signal Definitions
[0050]
[0051] For ease of description, this invention uses the control module 110 as an example of a BMC chip, but this does not imply any limitation on the invention. This invention is applicable to any chip including a USB 3.0 DRD. The functional architecture diagram of the BMC chip is shown below. Figure 2 As shown, the system includes modules such as a CPU, an internal interconnect bus, a USB 3.0 DRD controller, and an IIC controller. The USB 3.0 DRD controller is compatible with USB 2.0 functionality. The CPU reads and writes registers in the USB 3.0 DRD controller through the control bus in the internal interconnect bus, and implements USB data reception and transmission functions through the data bus in the internal interconnect bus. The CPU reads and writes registers in the IIC controller through the control bus in the internal interconnect bus, and implements IIC interface data reception and transmission functions through the data bus in the internal interconnect bus.
[0052] Based on this, the present invention sets up an adapter circuit consisting of a CC signal recognition module 120, an input signal selection module 130, and a Type-C interface 140 to expand the USB 3.0 Type-A interface of the control chip USB 3.0 DRD module to a USB 3.0 Type-C interface. The USB device connected to the Type-C interface may be either a HOST or a DEVICE.
[0053] Specifically, the RX+ / - signals from the Type-A interface need to be adapted to the RX1+ / - or RX2+ / - signals from the Type-C interface, and the TX+ / - signals from the Type-A interface need to be adapted to the TX1+ / - or TX2+ / - signals from the Type-C interface. This function is achieved by the input signal selection module 130 switching channels, ultimately connecting the TX1+ / -, TX2+ / -, RX1+ / -, and RX2+ / - signals from the input signal selection module 130 to the USB 3.0 Type-C interface.
[0054] Furthermore, the CC signal identification module 120 in the adapter circuit needs to process the CC signals received by the Type-C interface 140. In specific implementation, the CC signal identification module 120 processes the received CC signals to determine the role of the connected USB device and the direction in which the USB device is inserted into the Type-C interface, thereby obtaining USB device role information and USB device insertion direction information.
[0055] Afterwards, the CC signal recognition module 120 sends the processed information to the control chip 110. The control chip 110 will identify the role of the connected USB device based on the obtained information and configure the USB 3.0 DRD module in the control chip as the corresponding role. Specifically, the control chip 110 processes the information sent by the CC signal recognition module 120, analyzes the role of the connected USB device, and sets the USB 3.0 DRD module in the control chip to the opposite role of the connected USB device through software setting registers. At the same time, it generates a path selection signal to control the input signal selection module 130 to switch channels to adapt to the insertion direction of the USB 3.0 Type-C interface. This realizes the automatic adaptation function of the control chip 110 USB 3.0 DRD module from the Type-A interface to the USB 3.0 Type-C interface, that is, it adapts the RX+ / - signals in the Type-A interface to the RX1+ / - or RX2+ / - signals in the Type-C interface, and adapts the TX+ / - signals in the Type-A interface to the TX1+ / - or TX2+ / - signals in the Type-C interface.
[0056] This invention expands the USB 3.0 Type-A interface of an existing USB 3.0 DRD module to a USB 3.0 Type-C interface, broadening the application range of the existing USB 3.0 DRD module and improving its ease of use, making it easier to connect to portable devices. Furthermore, this invention enables automatic role adaptation based on the interface expansion, increasing the automation level of the USB 3.0 DRD module's operation by automatically adapting its functions according to the role of the connected USB device.
[0057] It is understandable that after the control chip 110 generates a path selection signal to control the input signal selection module 130 to switch channels, the control chip 110's USB 3.0 DRD module completes operations such as role initialization and link training, and performs reset and enumeration to finally achieve connection with the USB device.
[0058] Furthermore, in some embodiments, the CC signal recognition module is a Type-C interface CC signal recognition chip, and the input signal selection module is a USB 3.0 signal path 2:1 MUX chip.
[0059] Based on the above embodiments, the Type-C interface is connected to the CC signal recognition module through a configuration channel, and the CC signal recognition module is connected to the I10 through an IIC interface; the transmit differential signal pair channel of the control chip is connected to the first sub-module in the input signal selection module, and the receive differential signal pair channel of the control chip is connected to the second sub-module in the input signal selection module; the first sub-module is connected to the positive transmit differential signal channel and the negative transmit differential signal channel of the Type-C interface, and the second sub-module is connected to the positive receive differential signal channel and the negative receive differential signal channel of the Type-C interface.
[0060] Specifically, in this embodiment of the invention, the CC signal recognition module 120 is a Type-C interface CC signal recognition chip, and the input signal selection module 130 is a USB 3.0 signal path 2:1 MUX chip. The connection methods of each module are as follows: Figure 3As shown, the Type-C interface 140 is connected to the CC signal identification module 120 via configuration channels CC1 and CC2. The CC signal identification module 120 is connected to the control chip 110 via the IIC interface. The transmit differential signal pair (TX+ / - signal) channel of the control chip 110 is connected to the first sub-module in the input signal selection module 130, and the receive differential signal pair (RX+ / - signal) channel of the control chip 110 is connected to the second sub-module in the input signal selection module 130. The first sub-module is connected to the positive transmit differential signal (TX1+ / -) channel and the negative transmit differential signal (TX2+ / -) channel of the Type-C interface 140, and the second sub-module is connected to the positive receive differential signal (RX1+ / -) channel and the negative receive differential signal (RX2+ / -) channel of the Type-C interface 140.
[0061] Furthermore, the SEL pin of the BMC chip is connected to the first and second sub-modules in the input signal selection module 130, and is used to output a path selection signal. In other words, the BMC chip controls the USB 3.0 signal path 2:1 MUX chip to switch paths via the SEL pin.
[0062] Furthermore, the D+ / - signals, VBUS, and GND of the control chip 110 are connected to the relevant signals on the Type-C interface 140, which will not be elaborated upon here.
[0063] Furthermore, the generation of the path selection signal is explained further below. In some embodiments, generating the path selection signal based on the USB device insertion direction information specifically includes:
[0064] When the USB device is inserted in the forward direction, a first path selection signal is generated;
[0065] When the USB device is inserted in the reverse direction, a second path selection signal is generated.
[0066] Specifically, a first or second path selection signal is generated for different insertion orientations of the USB device. It's important to note that a "positive" insertion orientation means the USB plug is inserted into the USB port in the prescribed direction. Conversely, a "negative" insertion orientation means the USB plug is not inserted into the USB port in the prescribed direction.
[0067] Furthermore, path switching based on the path selection signal specifically includes:
[0068] Based on the first path selection signal, the transmitting differential signal pair channel is adapted to the positive transmitting differential signal channel based on the first submodule, and the receiving differential signal pair channel is adapted to the positive receiving differential signal channel based on the second submodule.
[0069] Specifically, since the USB 3.0 Type-C interface supports reversible insertion, when inserted correctly, the transmit differential signal pair (TX+ / - signal) needs to be adapted to the transmit differential signal (TX1+ / -), and the receive differential signal pair (RX+ / - signal) needs to be adapted to the receive differential signal (RX1+ / -). Specifically, based on the first path selection signal and the first submodule, the TX+ / - signal is adapted to TX1+ / -, and based on the first path selection signal and the second submodule, the RX+ / - signal is adapted to RX1+ / -.
[0070] Based on the above embodiments, path switching according to the path selection signal specifically includes:
[0071] Based on the second path selection signal, the transmit differential signal pair channel is adapted to the negative transmit differential signal channel based on the first submodule, and the receive differential signal pair channel is adapted to the negative receive differential signal channel based on the second submodule.
[0072] Specifically, when the insertion is reversed, the transmit differential signal pair (TX+ / - signal) needs to be adapted to the negative transmit differential signal (TX2+ / -), and simultaneously, the receive differential signal pair (RX+ / - signal) needs to be adapted to the negative receive differential signal (RX2+ / -). Specifically, based on the second path selection signal and the first submodule, the TX+ / - signal is adapted to TX2+ / -, and based on the second path selection signal and the second submodule, the RX+ / - signal is adapted to RX2+ / -.
[0073] The present invention provides a role adaptation device based on interface expansion, comprising a control chip, a CC signal recognition module, an input signal selection module, and a Type-C interface; the CC signal recognition module is used to acquire the CC signal accessed by the Type-C interface, and obtain USB device role information and USB device insertion direction information based on the CC signal; the control chip is used to acquire the USB device role information and the USB device insertion direction information, set the USB 3.0 DRD module in the control chip to the opposite role to the USB device based on the USB device role information, and generate a path selection signal based on the USB device insertion direction information; wherein, the HOST role and the DEVICE role are opposite roles to each other; the input signal selection module is used to switch paths according to the path selection signal to adapt to the direction of the USB device accessed by the Type-C interface, and complete the connection with the USB device accessed by the Type-C interface. This invention expands the USB 3.0 Type-A interface of the USB 3.0 DRD module in the control chip to a USB 3.0 Type-C interface through a CC signal recognition module, an input signal selection module, and a Type-C interface. It automatically adjusts the role of the USB 3.0 DRD module by acquiring USB device role information and generates a path selection signal by acquiring USB device insertion direction information to automatically switch paths, thereby improving the automation level of the USB 3.0 DRD module in the control chip.
[0074] The following describes the role adaptation method based on interface extension provided by this invention. The role adaptation method based on interface extension described below and the role adaptation device based on interface extension described above can be referred to and correspond to each other. Figure 4 As shown, the method includes:
[0075] Step 410: Obtain the USB device role information and USB device insertion direction information transmitted by the CC signal recognition module; wherein, the CC signal recognition module is used to obtain the CC signal accessed by the Type-C interface, and obtain the USB device role information and USB device insertion direction information based on the CC signal;
[0076] Step 420: Set the USB 3.0 DRD module of the control chip to the opposite role of the USB device according to the USB device role information; wherein, the HOST role and the DEVICE role are opposite roles to each other;
[0077] Step 430: Generate a path selection signal based on the USB device insertion direction information, and switch the path according to the path selection signal to adapt to the orientation of the USB device connected to the Type-C interface, thereby completing the connection with the USB device connected to the Type-C interface.
[0078] According to the role adaptation method based on interface expansion provided by the present invention, the CC signal recognition module is a Type-C interface CC signal recognition chip, and the input signal selection module is a USB 3.0 signal path 2:1 MUX chip.
[0079] According to a role adaptation method based on interface extension provided by the present invention, the Type-C interface is connected to the CC signal recognition module through a configuration channel, and the CC signal recognition module is connected to the control chip through an IIC interface; the transmit differential signal pair channel of the control chip is connected to the first sub-module in the input signal selection module, and the receive differential signal pair channel of the control chip is connected to the second sub-module in the input signal selection module; the first sub-module is connected to the positive transmit differential signal channel and the negative transmit differential signal channel of the Type-C interface, and the second sub-module is connected to the positive receive differential signal channel and the negative receive differential signal channel of the Type-C interface.
[0080] According to the present invention, a role adaptation method based on interface extension generates a path selection signal according to the USB device insertion direction information, specifically including:
[0081] When the USB device is inserted in the forward direction, a first path selection signal is generated;
[0082] When the USB device is inserted in the reverse direction, a second path selection signal is generated.
[0083] According to the present invention, a role adaptation method based on interface extension is provided, wherein path switching is performed according to the path selection signal, specifically including:
[0084] Based on the first path selection signal, the transmitting differential signal pair channel is adapted to the positive transmitting differential signal channel based on the first submodule, and the receiving differential signal pair channel is adapted to the positive receiving differential signal channel based on the second submodule.
[0085] According to the present invention, a role adaptation device based on interface extension performs path switching according to the path selection signal, specifically including:
[0086] Based on the second path selection signal, the transmit differential signal pair channel is adapted to the negative transmit differential signal channel based on the first submodule, and the receive differential signal pair channel is adapted to the negative receive differential signal channel based on the second submodule.
[0087] The present invention provides a role adaptation method based on interface extension, which acquires USB device role information and USB device insertion direction information transmitted by a CC signal identification module. The CC signal identification module acquires the CC signal received by the Type-C interface and obtains the USB device role information and USB device insertion direction information based on the CC signal. Based on the USB device role information, the USB 3.0 DRD module of the control chip is set to a role opposite to that of the USB device. The HOST role and DEVICE role are opposite roles. A path selection signal is generated based on the USB device insertion direction information, and path switching is performed based on the path selection signal to adapt to the orientation of the USB device connected to the Type-C interface, thus completing the connection with the USB device connected to the Type-C interface. This invention expands the USB 3.0 Type-A interface of the USB 3.0 DRD module in the control chip to a USB 3.0 Type-C interface through a CC signal recognition module, an input signal selection module, and a Type-C interface. It automatically adjusts the role of the USB 3.0 DRD module by acquiring USB device role information and generates a path selection signal by acquiring USB device insertion direction information to automatically switch paths, thereby improving the automation level of the USB 3.0 DRD module in the control chip.
[0088] Figure 5 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 5As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530, and a communication bus 540, wherein the processor 510, the communication interface 520, and the memory 530 communicate with each other through the communication bus 540. The processor 510 can call logic instructions in the memory 530 to execute a role adaptation method based on interface extension. This method includes: acquiring USB device role information and USB device insertion direction information transmitted by a CC signal identification module; wherein the CC signal identification module is used to acquire the CC signal accessed by the Type-C interface, and obtain the USB device role information and USB device insertion direction information according to the CC signal; setting the USB 3.0 DRD module of the control chip to the opposite role of the USB device according to the USB device role information; wherein the HOST role and DEVICE role are opposite roles; generating a path selection signal according to the USB device insertion direction information, and performing path switching according to the path selection signal to adapt to the direction of the USB device accessed by the Type-C interface, thereby completing the connection with the USB device accessed by the Type-C interface.
[0089] Furthermore, the logical instructions in the aforementioned memory 530 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0090] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the role adaptation method based on interface extension provided by the above methods. The method includes: acquiring USB device role information and USB device insertion direction information transmitted by a CC signal identification module; wherein, the CC signal identification module is used to acquire the CC signal accessed by the Type-C interface, and obtain the USB device role information and USB device insertion direction information according to the CC signal; setting the USB 3.0 DRD module of the control chip to the opposite role to the USB device according to the USB device role information; wherein, the HOST role and DEVICE role are opposite roles to each other; generating a path selection signal according to the USB device insertion direction information, and performing path switching according to the path selection signal to adapt to the direction of the USB device accessed by the Type-C interface, thereby completing the connection with the USB device accessed by the Type-C interface.
[0091] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program implements the role adaptation method based on interface extension provided by the above methods. The method includes: acquiring USB device role information and USB device insertion direction information transmitted by a CC signal identification module; wherein the CC signal identification module is used to acquire the CC signal accessed by the Type-C interface, and obtain the USB device role information and USB device insertion direction information according to the CC signal; setting the USB3.0 DRD module of the control chip to a role opposite to that of the USB device according to the USB device role information; wherein the HOST role and DEVICE role are opposite roles; generating a path selection signal according to the USB device insertion direction information, and performing path switching according to the path selection signal to adapt to the direction of the USB device accessed by the Type-C interface, thereby completing the connection with the USB device accessed by the Type-C interface.
[0092] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0093] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0094] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A role adaptation device based on interface extension, characterized in that, Includes a control chip, a CC signal recognition module, an input signal selection module, and a Type-C interface; The control chip is a BMC chip that only has a USB Type-A interface; The CC signal recognition module is used to acquire the CC signal connected to the Type-C interface, and to obtain the USB device role information and USB device insertion direction information based on the CC signal; The control chip is used to acquire the USB device role information and the USB device insertion direction information, set the USB 3.0 DRD module in the control chip to the opposite role of the USB device according to the USB device role information, and generate a path selection signal according to the USB device insertion direction information; wherein, the HOST role and the DEVICE role are opposite roles to each other; The input signal selection module is used to switch the path according to the path selection signal to adapt to the orientation of the USB device connected to the Type-C interface and complete the connection with the USB device connected to the Type-C interface. The Type-C interface is connected to the CC signal recognition module via a configuration channel, and the CC signal recognition module is connected to the control chip via an IIC interface. The transmit differential signal pair channel of the control chip is connected to the first sub-module in the input signal selection module, and the receive differential signal pair channel of the control chip is connected to the second sub-module in the input signal selection module. The first sub-module is connected to the positive transmit differential signal channel and the negative transmit differential signal channel of the Type-C interface, and the second sub-module is connected to the positive receive differential signal channel and the negative receive differential signal channel of the Type-C interface.
2. The role adaptation device based on interface extension according to claim 1, characterized in that, The CC signal recognition module is a Type-C interface CC signal recognition chip, and the input signal selection module is a USB 3.0 signal path 2:1 MUX chip.
3. The role adaptation device based on interface extension according to claim 2, characterized in that, Generate a path selection signal based on the USB device insertion direction information, specifically including: When the USB device is inserted in the forward direction, a first path selection signal is generated; When the USB device is inserted in the reverse direction, a second path selection signal is generated.
4. The role adaptation device based on interface extension according to claim 3, characterized in that, Path switching is performed based on the path selection signal, specifically including: Based on the first path selection signal, the transmitting differential signal pair channel is adapted to the positive transmitting differential signal channel based on the first submodule, and the receiving differential signal pair channel is adapted to the positive receiving differential signal channel based on the second submodule.
5. The role adaptation device based on interface extension according to claim 3, characterized in that, Path switching is performed based on the path selection signal, specifically including: Based on the second path selection signal, the transmit differential signal pair channel is adapted to the negative transmit differential signal channel based on the first submodule, and the receive differential signal pair channel is adapted to the negative receive differential signal channel based on the second submodule.
6. A role adaptation method based on interface extension, characterized in that, The role adaptation method, performed by the interface extension-based role adaptation device as described in any one of claims 1-5, comprises: The system acquires USB device role information and USB device insertion direction information transmitted by the CC signal recognition module; wherein, the CC signal recognition module is used to acquire the CC signal accessed by the Type-C interface, and obtain the USB device role information and USB device insertion direction information based on the CC signal; Based on the USB device role information, the USB 3.0 DRD module of the control chip is set to the opposite role of the USB device; wherein, the HOST role and the DEVICE role are opposite roles to each other; A path selection signal is generated based on the USB device insertion direction information, and the path is switched according to the path selection signal to adapt to the orientation of the USB device connected to the Type-C interface, thereby completing the connection with the USB device connected to the Type-C interface.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the role adaptation method based on interface extension as described in claim 6.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the role adaptation method based on interface extension as described in claim 6.
9. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the role adaptation method based on interface extension as described in claim 6.