Role adaptation device and method based on interface expansion
By designing a role adapter device including a control chip, a CC signal recognition module, an input signal selection module and a Type-C interface, the role problem of the USB 3.0 DRD module cannot be automatically adapted to the USB 3.0 DRD module in the prior art is solved, and USB is realized 3.0 Support and automated adaptation of HOST and DEVICE roles have expanded the application scope of the module.
Patent Information
- Application Number
- CN202411263439.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2044-09-10
AI Technical Summary
The existing technology cannot automatically adapt the role of the USB 3.0 DRD module, especially on the Type-C interface. The existing adapter cable only supports the USB 3.0 HOST role and does not support the USB 3.0 DEVICE role.
Design a role adapter device based on interface expansion, including a control chip, a CC signal recognition module, an input signal selection module and a Type-C interface. The CC signal recognition module obtains the CC signal of the Type-C interface, recognizes the role of the USB device and the insertion direction, and the control chip sets the role of the USB 3.0 DRD module based on this information, and uses the input signal selection module to switch the channel to achieve Type- Adaptation of C interface.
It realizes automatic role adaptation of the USB 3.0 DRD module, supports two roles, USB 3.0 HOST and DEVICE, improves the automation of the USB 3.0 DRD module, and expands its application scope.
Smart Images

Figure CN119441095A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic circuit technology, and in particular to a role adaptation device and method based on interface extension. Background Art
[0002] The BMC chip is a special controller chip used to monitor and manage servers. It usually contains multiple types of interfaces, such as Ethernet interface, serial port, USB interface, IIC interface, SPI interface, PCIE interface, VGA interface, etc. The USB 3.0 interface can be divided into the general Type-A interface and the Type-C interface that has only emerged in recent years.
[0003] The Type-C interface has the advantages of supporting 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 demand to support USB 3.0 Type-C interface. Therefore, for BMC chips that only have USB 3.0 Type-A interfaces, the demand for expanding their USB interfaces to support Type-C interfaces is gradually increasing.
[0004] Since the USB 3.0 Type-A interface cannot identify the role of the connected device, it is unable to automatically adapt the role of the USB 3.0DRD module. Only by expanding the interface to a Type-C interface and processing the CC signal on the Type-C interface and identifying the USB role of the connected device can the role of the USB 3.0 DRD module be automatically adapted.
[0005] There are differences in the number of signals and signal definitions between the USB 3.0 Type-A interface and the USB 3.0 Type-C interface, so an adapter circuit needs to be designed between them to meet the signal adaptation function of the two interfaces, thereby realizing signal conversion from the USB 3.0 Type-A interface to the 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 achieve the expansion of the Type-A interface to the Type-C interface. This adapter cable has a circuit inside 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, which is a dual-role device. It not only has the USB 3.0 HOST function, but also has the USB 3.0 DEVICE function. In actual use, the registers inside the USB 3.0 DRD module can be set by software to configure it as a USB 3.0 HOST role or a USB3.0 DEVICE role. It should be noted that only one of the USB 3.0 HOST role and the USB 3.0 DEVICE role can be selected, not both. However, there are differences in the signal definitions of the Type-C interface between USB 3.0 DEVICE and USB 3.0 HOST, especially the definition of the CC signal of the Type-C interface. The USB 3.0 DRD module needs to select the USB role according to the CC signal characteristics on the Type-C interface, and the adapter circuit inside the existing Type-A to Type-C adapter cable is only designed for the USB 3.0 HOST role and does not support the USB 3.0 DEVICE role. Therefore, the existing Type-A to Type-C adapter cable cannot be used on the USB 3.0 DRD module of the BMC chip, so the role of the USB 3.0 DRD module cannot be automatically adapted.
[0007] In summary, the existing technology has the problem of being unable to automatically adapt the role of the USB 3.0 DRD module. Summary of the invention
[0008] The present invention provides a role adaptation device and method based on interface extension, which are used to solve the defect that the role of a USB 3.0 DRD module cannot be automatically adapted in the prior art, and realize automatic adaptation of the role of a USB 3.0 DRD module.
[0009] The present 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; The CC signal recognition module is used to obtain the CC signal connected to the Type-C interface, and obtain the USB device role information and the USB device insertion direction information according to the CC signal; The control chip is used to obtain the USB device role information and the USB device insertion direction information, set the USB 3.0 DRD module in the control chip to a role opposite to that 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 the direction of the USB device connected to the Type-C interface and complete the connection with the USB device connected to the Type-C interface.
[0010] According to a role adaptation device 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.
[0011] 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 identification module through a configuration channel, and the CC signal identification module is connected to the control chip through an IIC interface; the sending differential signal pair channel of the control chip is connected to the first submodule in the input signal selection module, and the receiving differential signal pair channel of the control chip is connected to the second submodule in the input signal selection module; the first submodule is connected to the positive sending differential signal channel and the negative sending differential signal channel of the Type-C interface, and the second submodule is connected to the positive receiving differential signal channel and the negative receiving differential signal channel of the Type-C interface.
[0012] According to a role adaptation device based on interface extension provided by the present invention, a path selection signal is generated according to the USB device insertion direction information, specifically comprising: When the USB device is inserted in a forward direction, generating a first path selection signal; When the USB device is inserted in a reverse direction, a second path selection signal is generated.
[0013] According to a role adaptation device based on interface extension provided by the present invention, path switching is performed according to the path selection signal, specifically comprising: According to 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.
[0014] According to a role adaptation device based on interface extension provided by the present invention, path switching is performed according to the path selection signal, specifically comprising: According to 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.
[0015] The present invention also provides a role adaptation method based on interface extension, comprising: Obtaining 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 obtain the CC signal connected to the Type-C interface, and obtain the USB device role information and USB device insertion direction information according to the CC signal; According to 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; wherein the HOST role and the DEVICE role are opposite roles to each other; A path selection signal is generated according to the USB device insertion direction information, and path switching is performed according to the path selection signal to adapt to the direction of the USB device connected to the Type-C interface, thereby completing the connection with the USB device connected to the Type-C interface.
[0016] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the role adaptation method based on interface extension as described above is implemented.
[0017] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the role adaptation method based on interface extension as described above is implemented.
[0018] The present invention also provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned role adaptation methods based on interface extension.
[0019] The role adaptation device and method based on interface extension provided by the present invention include 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 obtain the CC signal connected to the Type-C interface, and obtain USB device role information and USB device insertion direction information according to the CC signal; the control chip is used to obtain the USB device role information and the USB device insertion direction information, set the USB 3.0 DRD module in the control chip to a role opposite to 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 the direction 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 present invention expands the USB 3.0 Type-A interface of the USB 3.0 DRD module in the control chip into a USB 3.0 Type-C interface through a CC signal recognition module, an input signal selection module and a Type-C interface, automatically adjusts the role of the USB 3.0 DRD module through acquired USB device role information, generates a path selection signal through acquired USB device insertion direction information to automatically switch paths, and improves the automation level of the use of the USB 3.0 DRD module of the control chip. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1 It is a structural diagram of a role adaptation device based on interface extension provided by the present invention.
[0022] Figure 2 It is a functional architecture diagram of a BMC chip of a role adaptation device based on interface expansion provided by the present invention.
[0023] Figure 3 It is a connection diagram of a control chip, a CC signal recognition module, an input signal selection module and a Type-C interface of a role adaptation device based on interface expansion provided by the present invention.
[0024] Figure 4 It is a flow chart of the role adaptation method based on interface extension provided by the present invention.
[0025] Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0027] It is understandable that BMC (Baseboard Manager Controller) chips are usually 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 as Type-A interfaces, in order to meet future application needs, the USB 3.0 Type-A interface needs to be expanded to a Type-C interface.
[0028] The USB 3.0 Type-A interface cannot identify 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 identified through the CC signal on the Type-C interface, the role of the USB 3.0 DRD module can be automatically adapted.
[0029] The USB 3.0 DRD module includes not only the USB 3.0 HOST role, but also the USB 3.0 DEVICE role, among which only one of the USB 3.0 HOST role and the USB 3.0 DEVICE role can be selected, but not both. Moreover, when the USB 3.0HOST and the USB 3.0 DEVICE extend the Type-C interface, the signal definition on the Type-C interface will be different. Specifically, there is a pull-up resistor on the CC pin of the Type-C interface of the HOST, and there is a pull-down resistor on the CC pin of the Type-C interface of the DEVICE. On this basis, the USB 3.0 DRD module needs to select the USB role according to the CC signal characteristics on the Type-C interface. The existing Type-A to Type-C adapter cable has an internal adapter circuit designed only for the USB 3.0 HOST function and does not support the USB 3.0 DEVICE function. It will not identify and process the CC signal on the Type-C interface. Therefore, the existing Type-A to Type-C adapter cable cannot be used on the USB 3.0 DRD module.
[0030] In order to expand the Type-A interface of the BMC chip USB 3.0 DRD module into a Type-C interface, it is necessary to add an adaptation circuit between the two interfaces. The USB 3.0 signal path 2:1 MUX chip, Type-C interface CC signal recognition chip, etc. will be used to complete the adaptation circuit design. The BMC chip needs to process the data output by the Type-C interface CC signal recognition chip to determine whether the device type connected to the Type-C interface is a HOST or DEVICE device, and the direction in which the USB device Type-C interface is inserted, so as to set the role of the USB 3.0 DRD module and control the USB3.0 signal path 2:1 MUX chip to switch channels to adapt to the direction in which the USB device Type-C interface is inserted.
[0031] Based on this, the present invention proposes a role adaptation device and method based on interface extension.
[0032] Combine the following Figure 1-Figure 3 Describe the role adaptation device based on interface extension of the present invention, Figure 1 is a structural diagram of a role adaptation device based on interface expansion provided by the present invention, such as 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; The CC signal recognition module 120 is used to obtain the CC signal connected to the Type-C interface 140, and obtain the USB device role information and the USB device insertion direction information according to the CC signal; The control chip 110 is used to obtain the USB device role information and the USB device insertion direction information, set the USB 3.0 DRD module in the control chip to a role opposite to that 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; The input signal selection module 130 is used to switch the path according to the path selection signal to adapt the direction 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.
[0033] It should be emphasized that the control module 110 mentioned in the present invention only has a USB 3.0 Type-A interface. Table 1 shows the standard USB 3.0 Type-A interface signal definition, and Table 2 shows the standard USB 3.0 Type-C interface signal definition. As shown in Tables 1 and 2, it can be seen from the tables that the USB 3.0 Type-A interface and the USB 3.0 Type-C interface have different signal quantities and signal definitions.
[0034] Table 1 Standard USB 3.0 Type-A interface signal definition
[0035] Table 2 Standard USB 3.0 Type-C interface signal definition
[0036] For the convenience of description, the present invention is described by taking the control module 110 as a BMC chip as an example, but this does not limit the present invention. The present invention is applicable to any chip including a USB 3.0 DRD. Figure 2 As shown, it includes modules such as CPU, chip internal interconnection bus, USB3.0 DRD controller and IIC controller. The USB 3.0 DRD controller is compatible with USB 2.0 functions. The CPU reads and writes registers in the USB 3.0 DRD controller through the control bus in the chip internal interconnection bus, and realizes the USB data receiving and sending functions through the data bus in the chip internal interconnection bus; the CPU reads and writes registers in the IIC controller through the control bus in the chip internal interconnection bus, and realizes the IIC interface data receiving and sending functions through the data bus in the chip internal interconnection bus.
[0037] On this basis, the present invention sets a CC signal recognition module 120, an input signal selection module 130 and a Type-C interface 140 to form an adaptation circuit to expand the USB 3.0 DRD module USB 3.0 Type-A interface of the control chip into a USB 3.0 Type-C interface. The USB device connected to the Type-C interface may be any one of the HOST role or the DEVICE role.
[0038] Specifically, the RX+ / - signal in the Type-A interface signal needs to be adapted to the RX1+ / - or RX2+ / - signal of the Type-C interface, and the TX+ / - signal in the Type-A interface signal needs to be adapted to the TX1+ / - or TX2+ / - signal of the Type-C interface. This function is implemented by the input signal selection module 130 switching channels, and finally the TX1+ / -, TX2+ / -, RX1+ / -, and RX2+ / - signals on the input signal selection module 130 are connected to the USB 3.0 Type-C interface.
[0039] In addition, the CC signal recognition module 120 in the adapter circuit needs to process the CC signal connected to the Type-C interface 140. In the specific implementation process, the CC signal recognition module 120 processes the connected CC signal, determines the role of the connected USB device through the CC signal, and determines the direction in which the USB device is inserted into the Type-C interface, and obtains the USB device role information and the USB device insertion direction information.
[0040] Afterwards, the CC signal recognition module 120 sends the processed information to the control chip 110. The control chip 110 identifies the role of the connected USB device according to the obtained information and configures the USB 3.0 DRD module in the control chip to the corresponding role. Specifically, the control chip 110 processes the information sent by the CC signal identification module 120, analyzes the role of the connected USB device, and then sets the USB 3.0 DRD module in the control chip to the opposite role of the connected USB device by setting registers through software, and 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, thereby realizing the automatic adaptation function of the USB 3.0 DRD module Type-A interface of the control chip 110 to the USB 3.0 Type-C interface, that is, completing the adaptation of the RX+ / - signal in the Type-A interface signal to the RX1+ / - or RX2+ / - signal of the Type-C interface, and adapting the TX+ / - signal in the Type-A interface signal to the TX1+ / - or TX2+ / - signal of the Type-C interface.
[0041] The present invention can expand the USB 3.0 Type-A interface of the existing USB 3.0 DRD module into a USB 3.0 Type-C interface, thereby expanding the application scope of the existing USB 3.0 DRD module, improving the convenience of using the USB 3.0 DRD module, and making it more convenient to connect with a portable device. At the same time, the present invention can automatically adapt roles based on the interface expansion, thereby improving the automation level of the application of the USB 3.0 DRD module, and can automatically adapt functions according to the role of the connected USB device.
[0042] It can be understood that after the control chip 110 generates a path selection signal to control the input signal selection module 130 to switch channels, it also includes: the USB 3.0 DRD module of the control chip 110 completes operations such as role initialization and link training, and performs reset and enumeration to finally achieve connection with the USB device.
[0043] Furthermore, in some embodiments, the CC signal identification module is a Type-C interface CC signal identification chip, and the input signal selection module is a USB 3.0 signal path 2:1 MUX chip.
[0044] Based on the above embodiment, the Type-C interface is connected to the CC signal identification module through a configuration channel, and the CC signal identification module is connected to the 110 through an IIC interface; the sending differential signal pair channel of the control chip is connected to the first submodule in the input signal selection module, and the receiving differential signal pair channel of the control chip is connected to the second submodule in the input signal selection module; the first submodule is connected to the positive sending differential signal channel and the negative sending differential signal channel of the Type-C interface, and the second submodule is connected to the positive receiving differential signal channel and the negative receiving differential signal channel of the Type-C interface.
[0045] Specifically, in the embodiment of the present 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 method of each module is as follows Figure 3As shown, the Type-C interface 140 is connected to the CC signal identification module 120 through the configuration channels CC1 and CC2, and the CC signal identification module 120 is connected to the control chip 110 through the IIC interface. The transmission differential signal pair (TX+ / - signal) channel of the control chip 110 is connected to the first submodule in the input signal selection module 130, and the reception differential signal pair (RX+ / - signal) channel of the control chip 110 is connected to the second submodule in the input signal selection module 130. The first submodule is connected to the positive transmission differential signal (TX1+ / -) channel and the negative transmission differential signal (TX2+ / -) channel of the Type-C interface 140, and the second submodule is connected to the positive reception differential signal (RX1+ / -) channel and the negative reception differential signal (RX2+ / -) channel of the Type-C interface 140.
[0046] In addition, the SEL pin of the BMC chip is connected to the first submodule and the second submodule in the input signal selection module 130 for outputting a path selection signal. In other words, the BMC chip controls the USB 3.0 signal path 2:1 MUX chip through the SEL pin to switch the path.
[0047] Furthermore, the D+ / - signals, VBUS, and GND of the control chip 110 are connected to related signals on the Type-C interface 140, which will not be elaborated in detail in the present invention.
[0048] Further, the generation of the path selection signal is further explained below. In some embodiments, the path selection signal is generated according to the USB device insertion direction information, specifically including: When the USB device is inserted in a forward direction, generating a first path selection signal; When the USB device is inserted in a reverse direction, a second path selection signal is generated.
[0049] Specifically, the first or second path selection signal is generated for different insertion directions of the USB device. It should be noted that the insertion direction of forward direction is defined as the USB plug is inserted into the USB port in a prescribed direction. Conversely, the insertion direction of reverse direction is defined as the USB plug is not inserted into the USB port in a prescribed direction.
[0050] Further, performing path switching according to the path selection signal specifically includes: According to 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.
[0051] Specifically, since the USB 3.0 Type-C interface supports forward and reverse insertion functions, when inserted in the forward direction, the transmit differential signal pair (TX+ / - signal) needs to be adapted to the forward transmit differential signal (TX1+ / -), and at the same time, the receive differential signal pair (RX+ / - signal) needs to be adapted to the forward receive differential signal (RX1+ / -). Specifically, the TX+ / - signal is adapted to TX1+ / - based on the first submodule according to the first channel selection signal, and the RX+ / - signal is adapted to RX1+ / - based on the second submodule according to the first channel selection signal.
[0052] Based on the above embodiment, performing path switching according to the path selection signal specifically includes: According to 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.
[0053] Specifically, when the insertion is reverse, the transmit differential signal pair (TX+ / - signal) needs to be adapted to the negative transmit differential signal (TX2+ / -), and the receive differential signal pair (RX+ / - signal) needs to be adapted to the negative receive differential signal (RX2+ / -). Specifically, the TX+ / - signal is adapted to TX2+ / - based on the first submodule according to the second path selection signal, and the RX+ / - signal is adapted to RX2+ / - based on the second submodule according to the second path selection signal.
[0054] The role adaptation device based on interface extension provided by the present invention comprises 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 obtain the CC signal connected to the Type-C interface, and obtain USB device role information and USB device insertion direction information according to the CC signal; the control chip is used to obtain the USB device role information and the USB device insertion direction information, set the USB 3.0 DRD module in the control chip to a role opposite to 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 the direction 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 present invention expands the USB 3.0 Type-A interface of the USB 3.0 DRD module in the control chip into a USB 3.0 Type-C interface through a CC signal recognition module, an input signal selection module and a Type-C interface, automatically adjusts the role of the USB 3.0 DRD module through acquired USB device role information, generates a path selection signal through acquired USB device insertion direction information to automatically switch paths, and improves the automation level of the use of the USB 3.0 DRD module of the control chip.
[0055] The role adaptation method based on interface extension provided by the present invention is described below. 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 each other. Figure 4 As shown, the method includes: Step 410: Obtain USB device role information and USB device insertion direction information transmitted by a CC signal recognition module; wherein the CC signal recognition module is used to obtain a CC signal connected to the Type-C interface, and obtain the USB device role information and USB device insertion direction information according to the CC signal; Step 420: setting the USB 3.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 the DEVICE role are opposite roles to each other; Step 430: Generate a path selection signal according to the USB device insertion direction information, perform path switching according to the path selection signal to adapt to the direction of the USB device connected to the Type-C interface, and complete the connection with the USB device connected to the Type-C interface.
[0056] According to a 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.
[0057] According to a role adaptation method based on interface expansion provided by the present invention, the Type-C interface is connected to the CC signal identification module through a configuration channel, and the CC signal identification module is connected to the control chip through an IIC interface; the sending differential signal pair channel of the control chip is connected to the first submodule in the input signal selection module, and the receiving differential signal pair channel of the control chip is connected to the second submodule in the input signal selection module; the first submodule is connected to the positive sending differential signal channel and the negative sending differential signal channel of the Type-C interface, and the second submodule is connected to the positive receiving differential signal channel and the negative receiving differential signal channel of the Type-C interface.
[0058] According to a role adaptation method based on interface extension provided by the present invention, a path selection signal is generated according to the USB device insertion direction information, specifically comprising: When the USB device is inserted in a forward direction, generating a first path selection signal; When the USB device is inserted in a reverse direction, a second path selection signal is generated.
[0059] According to a role adaptation method based on interface extension provided by the present invention, path switching is performed according to the path selection signal, specifically comprising: According to 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.
[0060] According to a role adaptation device based on interface extension provided by the present invention, path switching is performed according to the path selection signal, specifically comprising: According to 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.
[0061] The role adaptation method based on interface extension provided by the present invention obtains USB device role information and USB device insertion direction information transmitted by a CC signal recognition module; wherein the CC signal recognition module is used to obtain the CC signal connected to the Type-C interface, and obtain the USB device role information and USB device insertion direction information according to the CC signal; according to the USB device role information, the USB 3.0 DRD module of the control chip is set to a role opposite to the USB device; wherein the HOST role and the DEVICE role are opposite roles to each other; according to the USB device insertion direction information, a path selection signal is generated, and according to the path selection signal, a path switching is performed to adapt the direction of the USB device connected to the Type-C interface, thereby completing the connection with the USB device connected to the Type-C interface. The present invention expands the USB 3.0 Type-A interface of the USB 3.0 DRD module in the control chip into a USB 3.0 Type-C interface through a CC signal recognition module, an input signal selection module and a Type-C interface, automatically adjusts the role of the USB 3.0 DRD module through acquired USB device role information, generates a path selection signal through acquired USB device insertion direction information to automatically switch paths, and improves the automation level of the use of the USB 3.0 DRD module of the control chip.
[0062] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As 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 complete mutual communication through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the role adaptation method based on the interface extension, the method comprising: obtaining the USB device role information and the 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 connected to the Type-C interface, and obtain the USB device role information and the USB device insertion direction information according to the CC signal; according to the USB device role information, the USB 3.0DRD 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; according to the USB device insertion direction information, a path selection signal is generated, and according to the path selection signal, a path switching is performed to adapt the direction of the USB device connected to the Type-C interface, and complete the connection with the USB device connected to the Type-C interface.
[0063] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0064] On the other hand, the present invention also provides a computer program product, which includes a computer program, which 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 including: obtaining 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 obtain the CC signal connected to the Type-C interface, and obtain the USB device role information and USB device insertion direction information according to the CC signal; according to the USB device role information, the USB 3.0 DRD module of the control chip is set to a role opposite to the USB device; wherein the HOST role and the DEVICE role are opposite roles to each other; a path selection signal is generated according to the USB device insertion direction information, and a path switching is performed according to the path selection signal to adapt the direction of the USB device connected to the Type-C interface, and complete the connection with the USB device connected to the Type-C interface.
[0065] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the processor executes the role adaptation method based on interface extension provided by the above methods, the method comprising: obtaining 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 obtain the CC signal connected to the Type-C interface, and obtain the USB device role information and USB device insertion direction information according to the CC signal; according to the USB device role information, the USB3.0 DRD module of the control chip is set to a role opposite to that of the USB device; wherein the HOST role and the DEVICE role are opposite roles to each other; a path selection signal is generated according to the USB device insertion direction information, and a path switching is performed according to the path selection signal to adapt the direction of the USB device connected to the Type-C interface, and complete the connection with the USB device connected to the Type-C interface.
[0066] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0067] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0068] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions 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 expansion, characterized in that: Including control chip, CC signal recognition module, input signal selection module and Type-C interface; The CC signal recognition module is used to obtain the CC signal connected to the Type-C interface, and obtain the USB device role information and the USB device insertion direction information according to the CC signal; The control chip is used to obtain the USB device role information and the USB device insertion direction information, set the USB 3.0 DRD module in the control chip to a role opposite to that 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 the direction of the USB device connected to the Type-C interface and complete the connection with the USB device connected to 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 is characterized in that: The Type-C interface is connected to the CC signal identification module through a configuration channel, and the CC signal identification module is connected to the control chip through an IIC interface; the sending differential signal pair channel of the control chip is connected to the first submodule in the input signal selection module, and the receiving differential signal pair channel of the control chip is connected to the second submodule in the input signal selection module; the first submodule is connected to the positive sending differential signal channel and the negative sending differential signal channel of the Type-C interface, and the second submodule is connected to the positive receiving differential signal channel and the negative receiving differential signal channel of the Type-C interface.
4. The role adaptation device based on interface extension according to claim 3 is characterized in that: Generating a path selection signal according to the USB device insertion direction information specifically includes: When the USB device is inserted in a forward direction, generating a first path selection signal; When the USB device is inserted in a reverse direction, a second path selection signal is generated.
5. The role adaptation device based on interface extension according to claim 4 is characterized in that: Performing path switching according to the path selection signal specifically includes: According to 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.
6. The role adaptation device based on interface extension according to claim 4 is characterized in that: Performing path switching according to the path selection signal specifically includes: According to 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.
7. A role adaptation method based on interface extension, characterized in that: include: Obtaining 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 obtain the CC signal connected to the Type-C interface, and obtain the USB device role information and USB device insertion direction information according to the CC signal; According to 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; wherein the HOST role and the DEVICE role are opposite roles to each other; A path selection signal is generated according to the USB device insertion direction information, and path switching is performed according to the path selection signal to adapt to the direction of the USB device connected to the Type-C interface, thereby completing the connection with the USB device connected to the Type-C interface.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the role adaptation method based on interface extension as claimed in claim 7 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the role adaptation method based on interface extension as claimed in claim 7 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the role adaptation method based on interface extension as claimed in claim 7 is implemented.
Citation Information
Patent Citations
USB Type-C plug and cable
CN108352664A
Type-C interface detection method, device and system
CN109376040A
Method of identifying external electronic device based on power information and electronic device and storage medium for supporting same
CN112639751A
Function expansion circuit and device based on TYPE_C interface and all-in-one computer
CN113867184A
Multi-TypeC equipment blind insertion role switching circuit, device and method
CN115207724A