DP and USB interface control method, apparatus and device, and storage medium
By adding the interface attribute shielding field in the device tree description file and entering the default startup process after the device system is powered on, the function and power supply coupling problems of the DP and USB interface two-choice architecture are solved, and the independent work of the interface is realized, which improves the efficiency of the interface. User experience.
Patent Information
- Application Number
- PCT/CN2023/128442
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-10
- Filing Date
- 2023-10-31
- Publication Date
- 2024-09-19
AI Technical Summary
The existing alternative architecture of DP and USB interfaces has problems of functional coupling and power supply coupling. As a result, when the signal line and power supply are shared, the DP and USB interfaces cannot achieve independent functions without coupling, bringing a bad experience to users.
By establishing DP and USB device tree description files in the device tree description file respectively, and entering the default startup process after the device system is powered on, checking the access signal, and calling the corresponding device tree description file to perform DP or USB interface control operations. Realize functional decoupling and common electrical decoupling of interfaces. Specific methods include adding a shielding field for USB resource attributes in the DP device tree description file, or adding a shielding field for DP resource attributes in the USB device tree description file to ensure that the interface works independently during access.
It realizes the functional decoupling and common power decoupling of DP and USB interfaces, ensuring that the two functions are complete, independent and uncoupled when sharing signal lines and common power, avoiding mutual interference between functions and power supply problems, and improving user experience.
Smart Images

Figure CN2023128442_19092024_PF_FP_ABST
Abstract
Description
Control method, device, equipment and storage medium of DP and USB interface
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 10, 2023, with application number 2023102316629 and application name “Control method, device, equipment, and storage medium for DP and USB interfaces”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of mobile communication technology, and in particular to a control method, apparatus, device, and storage medium for a DP and USB interface. Background Art
[0003] DisplayPort (DP) is a high-definition digital display interface standard that uses the DP transmission protocol to connect and transmit data to devices such as audio and video sources and displays. It also supports Universal Serial Bus (USB) and other forms of data transmission. DP is gradually replacing traditional Video Graphics Array (VGA), Digital Visual Interface (DVI), and Flat Panel Display Link (FPD-Link), and is backward compatible with these traditional interfaces.
[0004] Nowadays, the DP display signal lines of some smart modules can realize the display function by sharing the USB signal line. Specifically, a two-choice switch chip is used to switch the signal supply of the USB interface and the DP interface. The DP interface uses the USB communication signal channel for data communication.
[0005] FIG1 is a circuit diagram of an existing DP and USB two-choice switch module; FIG2 is a circuit diagram of an existing DP and USB power supply principle.
[0006] As shown in Figure 1, the first end of the two-to-one switch chip U1 is connected to the device processor, which is the USB 3.0 communication signal channel. It includes the transmit signal pins SS_TX0_P, SS_TX0_M, SS_TX1_P, SS_TX1_M and the receive signal pins SS_RX0_P, SS_RX0_M, SS_RX1_P, SS_RX1_M. The USB3.0CHN_SEL signal pin controls the switch signal channel of the two-to-one switch chip. The second end of the two-to-one switch chip U1 is connected to the DP interface and the USB interface respectively. The pins connected to the DP interface include the transmit signal pins DP_USB0_SS_TX0_P, DP_USB0_SS_TX0_M, DP_USB0_SS_TX1_P, DP_USB0_SS_TX1_M and the receive signal pins DP_USB0_SS_RX0_P, DP_USB0_SS_RX0_M, DP_USB0_SS_RX1_P, DP_USB0_SS_RX1_M. The pins of the port include the transmit signal pins EVB_USB0_SS_TX0_P, EVB_USB0_SS_TX0_M, EVB_USB0_SS_TX1_P, and EVB_USB0_SS_TX1_M, and the receive signal pins EVB_USB0_SS_RX0_P, EVB_USB0_SS_RX0_M, DP_USB0_SS_RX0_P, DP_USB0_SS_RX0_M, EVB_USB0_SS_RX1_M, and DP_USB0_SS_TX1_P. Although this solution reuses one USB communication signal channel for DP and USB, due to the functional coupling between DP and USB, using them simultaneously may lead to uncontrollable preemption issues.
[0007] To implement power control for the DP and USB interfaces, as shown in Figures 1 and 2, using the SC138 project as an example, the power supply chip U2 can use the SGM6014, with VREG_L15A_3P128 as the reference voltage. This control can provide 3.3V power to the DP module and USB 3.0 module by controlling the voltage level of a single General Purpose Input / Output (GPIO) (e.g., PM6125_GPIO_2 in Figure 2). This also presents the problem of coupling the power supply functions between DP and USB. In the examples shown in Figures 1 and 2, the power supply pins of the DP and USB interfaces are completely controlled by the DP interface. Its power-on and power-off logic is: power on when the system is turned on, power off when the display is off, and power on when the display is on. This results in the system failing to wake up when a USB flash drive is inserted into the USB interface while the display is off, or data being transferred from a USB flash drive is lost when the display is off. This means that the power supply to the DP and USB interfaces is disconnected when the display is off, rendering the USB interface inoperable. On the contrary, if the USB power supply strategy is adopted, the power supply function of the DP interface will be limited.
[0008] Therefore, the existing architecture of choosing between DP and USB interfaces has problems of functional coupling and power supply coupling. The functions of the two interfaces interfere with each other when in use, and all the functions that can be achieved by separate DP interfaces and USB interfaces cannot be achieved, which brings a bad experience to users.
[0009] How to achieve functional decoupling and common power decoupling of the DP and USB interface two-choice architecture is a technical problem that needs to be solved by those skilled in the art.
[0010] This application
[0011] The purpose of this application is to provide a control method, device, equipment, and storage medium for DP and USB interfaces, which are used to achieve functional decoupling and common power decoupling of a two-choice architecture of DP and USB interfaces.
[0012] To solve the above technical problems, the present application provides a control method for DP and USB interfaces, including:
[0013] Pre-create a DP device tree description file and a USB device tree description file in the device tree description file of the device for the DP and USB interface two-choice module;
[0014] After the device system is powered on, the control enters the default startup process of the DP and USB interface selection module;
[0015] Checking the access signal of the peripheral interface corresponding to the DP and USB interface selection module; when the access signal of the DP interface is detected, calling the DP device tree description file to perform the DP interface control operation; when the access signal of the USB interface is detected, calling the USB device tree description file to perform the USB interface control operation;
[0016] The DP device tree description file includes a USB resource attribute shielding field for the DP and USB interface selection module and / or the USB device tree description file includes a DP resource attribute shielding field for the DP and USB interface selection module.
[0017] Optionally, the power supply pin of the DP and USB interface selection module is driven and controlled by the DP interface;
[0018] Correspondingly, the default startup process is the DP interface control operation.
[0019] Optionally, the power supply pin of the DP and USB interface selection module is controlled by the USB interface driver;
[0020] Correspondingly, the default startup process is the USB interface control operation.
[0021] Optionally, the control enters the default startup process of the DP and USB interface selection module, specifically including:
[0022] Apply for the power control GPIO of the DP and USB interface selection module;
[0023] The device tree description file corresponding to the DP and USB interface two-choice module is parsed to generate GPIO operation variables shared by DP and USB.
[0024] Optionally, executing the DP interface control operation specifically includes:
[0025] When it is detected that the display screen of the device is in a display state, controlling the power supply pin of the DP and USB interface selection module to remain in a powered state;
[0026] When it is detected that the display screen is in the screen-off state, the power supply pin of the DP and USB interface selection module is controlled to be powered off.
[0027] Optionally, performing the USB interface control operation is specifically:
[0028] The power supply pin of the DP and USB interface selection module is controlled to remain powered on.
[0029] Optionally, a power management controller applied to the device.
[0030] To solve the above technical problems, the present application also provides a control device for DP and USB interfaces, including:
[0031] A deployment unit is used to pre-create a DP device tree description file and a USB device tree description file in a device tree description file of a device for a DP or USB interface selection module;
[0032] A power-on control unit, configured to control entry into the default startup process of the DP and USB interface selection module after the device system is powered on;
[0033] A switching control unit, configured to check an access signal of the peripheral interface corresponding to the DP and USB interface selection module; when an access signal of the DP interface is detected, calling the DP device tree description file to perform a DP interface control operation; when an access signal of the USB interface is detected, calling the USB device tree description file to perform a USB interface control operation;
[0034] The DP device tree description file includes a USB resource attribute shielding field for the DP and USB interface selection module and / or the USB device tree description file includes a DP resource attribute shielding field for the DP and USB interface selection module.
[0035] To solve the above technical problems, the present application also provides a control device for DP and USB interfaces, including:
[0036] memory for storing computer programs;
[0037] A processor is used to execute the computer program, and when the computer program is executed by the processor, the steps of the control method of the DP and USB interfaces as described in any one of the above items are implemented.
[0038] In order to solve the above technical problems, the present application also provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the control method of the DP and USB interfaces as described in any one of the above items are implemented.
[0039] The control method of DP and USB interface provided by the present application is to establish a DP device tree description file and a USB device tree description file in the device tree description file of the device for the DP and USB interface two-choice module respectively in advance, and add a property mask field for the other interface in at least one of them, so as to realize the loading method of overwriting the device tree description file; after the device system is powered on, it first controls the entry into the default startup process of the DP and USB interface two-choice module, realizes the normal startup of the DP and USB interface two-choice module, checks the access signal of the peripheral interface corresponding to the DP and USB interface two-choice module, and calls the DP device tree description file to perform the DP interface control operation when the DP interface is connected; calls the USB device tree description file to perform the USB interface control operation when the USB interface is connected. Therefore, the control method of DP and USB interface provided by the present application realizes the functional decoupling and common power decoupling of the DP interface and the USB interface in the DP and USB interface two-choice architecture, and achieves the effect that the functions of the two are complete, independent and uncoupled in the case of DP and USB sharing a signal line and sharing power.
[0040] The present application also provides a control device, equipment, and storage medium for DP and USB interfaces, which have the above-mentioned beneficial effects and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in 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 only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0042] FIG1 is a circuit diagram of a conventional DP and USB selection switch module;
[0043] FIG2 is a circuit diagram of an existing DP and USB power supply principle;
[0044] FIG3 is a flow chart of a method for controlling a DP and USB interface provided by an embodiment of the present application;
[0045] FIG4 is a schematic structural diagram of a control device for a DP and USB interface provided in an embodiment of the present application;
[0046] FIG5 is a schematic structural diagram of a control device for DP and USB interfaces provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] The core of this application is to provide a control method, device, equipment, and storage medium for DP and USB interfaces, which are used to achieve functional decoupling and common power decoupling of the DP and USB interface two-choice architecture.
[0048] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0049] Example 1
[0050] FIG3 is a flow chart of a method for controlling DP and USB interfaces provided in an embodiment of the present application.
[0051] As shown in FIG3 , the control method of the DP and USB interfaces provided in the embodiment of the present application includes:
[0052] S301: Preliminarily creating a DP device tree description file and a USB device tree description file in a device tree description file of a device for a DP or USB interface selection module.
[0053] S302: After the device system is powered on, the control enters the default startup process of the DP and USB interface selection module.
[0054] S303: Check the access signal of the peripheral interface corresponding to the DP and USB interface selection module; when the access signal of the DP interface is detected, call the DP device tree description file to perform the DP interface control operation; when the access signal of the USB interface is detected, call the USB device tree description file to perform the USB interface control operation.
[0055] The DP device tree description file includes a USB resource attribute shielding field for the DP and USB interface selection module and / or the USB device tree description file includes a DP resource attribute shielding field for the DP and USB interface selection module.
[0056] In a specific implementation, the control method for the DP and USB interfaces provided in the embodiments of the present application can be implemented based on the existing hardware architecture for selecting between the DP and USB interfaces as shown in Figures 1 and 2, and can be specifically applied to the power management controller (PMC) of the device. The USB in the embodiments of the present application can specifically refer to USB 3.0.
[0057] For S301, to achieve functional decoupling of DP and USB in the DP / USB interface select module, the DP and USB device tree source (DTS) in the DP / USB interface select module must first be stripped, and resource configuration DTSs for DP and USB respectively established in the device's main DTS. The DTSs are then overwritten to achieve shielding between the DP and USB interfaces. When the power management controller detects that a device is connected to the peripheral interface corresponding to the DP / USB interface select module, it calls and parses the corresponding device tree source. When the shield field (flag attribute) is obtained from the parsing, the attributes of the other peripheral interface are shielded to prevent the other peripheral interface from interfering with the function and power supply of the current peripheral interface.
[0058] Specifically, you can only add a USB resource attribute mask field for the DP and USB interface two-choice module in the DP device tree description file. Then, in the peripheral interface corresponding to the DP and USB interface two-choice module, the USB function can be used normally only when a device is connected to the USB interface, and the DP function can be used normally as long as a device is connected to the DP peripheral interface.
[0059] Alternatively, you can only add a DP resource attribute mask field for the DP and USB interface two-choice module in the USB device tree description file. Then, in the peripheral interface corresponding to the DP and USB interface two-choice module, the DP function can be used normally only when a device is connected to the DP peripheral interface, and the USB function can be used normally as long as a device is connected to the USB peripheral interface.
[0060] Alternatively, a USB resource attribute mask field for the DP and USB interface two-choice module can be added to the DP device tree description file, and a DP resource attribute mask field for the DP and USB interface two-choice module can be added to the USB device tree description file. In the peripheral interface corresponding to the DP and USB interface two-choice module, the function of the later connected one of the DP peripheral interface and the USB peripheral interface can be used normally, thereby realizing the functional decoupling of DP and USB.
[0061] For S302, the default startup process is pre-set in the device tree description file corresponding to the DP and USB interface two-choice module. As shown in the existing DP and USB interface two-choice architecture of Figures 1 and 2 introduced in the background technology section of this application, the default startup process corresponding to the DP and USB interface two-choice module is the DP startup process, that is, the DP and USB interface two-choice module is controlled according to the logic of powering on, powering off the display screen, and powering on the display screen. In the control method of the DP and USB interface provided in the embodiment of the present application, the default startup process can adopt the DP startup process or the USB startup process, which is specifically distinguished according to the power driver adopted.
[0062] S302: Controlling entry into the default startup process of the DP and USB interface selection module, which may specifically include:
[0063] Apply for GPIO control for the module that selects either DP or USB interface;
[0064] Parse the device tree description file corresponding to the DP and USB interface selection module to generate GPIO operation variables shared by DP and USB.
[0065] During the default boot process, the device kernel parses the device tree description file for the power GPIO and generates a GPIO operation variable shared by DP and USB to implement switching control between the DP and USB interfaces. At this time, based on the hot-plug properties of the device's peripheral interfaces, an interrupt is triggered when a device is connected to the DP interface or the USB interface. The kernel then parses the corresponding device tree description file and, when a resource attribute mask field is identified, masks the desired attribute.
[0066] The control method of the DP and USB interfaces provided in the embodiment of the present application achieves the effect of complete, independent and uncoupled functions of DP and USB under the conditions of shared signal lines and common power by overwriting the device tree description file, shared variables and interrupt-triggered power supply scheme, relying on the Linux device tree process, and improving the power supply loading process of DP and USB.
[0067] For S303, when the DP peripheral interface access device corresponding to the DP and USB interface selection module is recognized by the power management controller after performing insertion detection, an interrupt is triggered and the DP peripheral interface is successfully powered on. When the USB peripheral interface access device corresponding to the DP and USB interface selection module is recognized by performing insertion detection, an interrupt is triggered and the USB interface is successfully powered on.
[0068] The DP interface control operation and the USB interface control operation can both adopt a control method of powering on and off as the device is plugged in and out, or adopt different power supply control methods.
[0069] For example, the DP interface control operation performed in S303 may specifically include:
[0070] When it is detected that the display screen of the device is in the display state, the power supply pin of the DP and USB interface selection module is controlled to remain powered on;
[0071] When it is detected that the display is in the off state, the power supply pins of the DP and USB interface selection modules are controlled to be powered off.
[0072] Alternatively, depending on whether the DP peripheral interface is in a disconnected state or a connected state, the power control GPIO can be controlled to pull down 3.3V to power off when the DP peripheral interface is in a disconnected state, and to pull up 3.3V to power on when the DP peripheral interface is in a connected state.
[0073] Since the default startup process has been completed at this time, energy saving is achieved by controlling the power on and off of the DP peripheral interface corresponding to the DP and USB interface selection module only according to the on and off signals of the display.
[0074] In S303, a USB interface control operation is performed, which may be:
[0075] Control the power supply pins of the DP and USB interface selection module to remain powered on.
[0076] When the USB interface of the DP / USB port selection module is working, it always remains powered on to prevent the USB flash drive from not responding or data transmission from being interrupted. Specifically, depending on whether the USB peripheral interface is disconnected or connected, the power control GPIO can be controlled to pull down 3.3V to power down when the USB peripheral interface is disconnected, and pull up 3.3V to power up when the USB peripheral interface is connected.
[0077] After executing S302, you can loop through S301 to check the access signal of the peripheral interface corresponding to the DP and USB interface selection modules, and switch to the corresponding interface control operation steps according to the type of access signal; or after executing S303 once, return to S302 to determine whether the device is started for the first time, so as to choose whether to execute the default startup process or execute S303.
[0078] The control method of DP and USB interface provided by the embodiment of the present application is to establish a DP device tree description file and a USB device tree description file in the device tree description file of the device for the DP and USB interface two-choice module respectively in advance, and add a property shielding field for the other interface in at least one of them, so as to realize the loading method of overwriting the device tree description file; after the device system is powered on, it first controls the entry into the default startup process of the DP and USB interface two-choice module, realizes the normal startup of the DP and USB interface two-choice module, checks the access signal of the peripheral interface corresponding to the DP and USB interface two-choice module, and calls the DP device tree description file to perform the DP interface control operation when the DP interface is connected; and calls the USB device tree description file to perform the USB interface control operation when the USB interface is connected. Therefore, the control method of DP and USB interface provided by the present application realizes the functional decoupling and common power decoupling of the DP interface and the USB interface in the DP and USB interface two-choice architecture, and achieves the effect that the two functions are complete, independent and uncoupled in the case of DP and USB sharing a signal line and a common power situation.
[0079] Example 2
[0080] Based on the above embodiments, in the control method of DP and USB interfaces provided in the embodiments of the present application, when the power supply pin of the DP and USB interface selection module is driven and controlled by the DP interface, the default startup process is the DP interface control operation.
[0081] In the specific implementation, reference can be made to the hardware architecture of the DP and USB interface two-choice module and the corresponding circuit driven by the DP interface to control power on and off as shown in Figures 1 and 2. That is, the hardware circuit of the existing DP and USB interface two-choice module does not need to be modified. Functional decoupling and common power decoupling of DP and USB in the case of shared signal lines and common power can be achieved only by changing the power supply loading process of DP and USB in the Linux device tree process.
[0082] After the device system is powered on, the device tree description file of the DP and USB interface two-choice module is parsed, the power control GPIO of the DP and USB interface two-choice module is applied for, and the GPIO operation variables shared by DP and USB are generated for the DP and USB interface two-choice module. Then, it is determined whether it is the first time for the device to be started (that is, whether the device is in the boot stage). If so, the plug and unplug signal of the DP interface is detected to determine whether there is a DP device tree description file in effect; if so, the DP startup process is entered, and the power control GPIO is pulled up to 3.3V to power on. If not, the USB startup process is entered; if it is not the first time for the device to be started, the plug and unplug signal of the DP interface and the plug and unplug signal of the USB interface are used to determine whether to execute the DP interface control operation or the USB interface control operation.
[0083] The control method of the DP and USB interfaces provided in the embodiment of the present application provides a control scheme suitable for a DP and USB interface two-choice module based on DP interface drive control. There is no need to modify the hardware circuit of the existing DP and USB interface two-choice module, and functional decoupling and common power decoupling of DP and USB in the case of sharing signal lines and common power can be achieved.
[0084] Example 3
[0085] Based on the above embodiments, in the control method of DP and USB interfaces provided in the embodiments of the present application, when the power supply pin of the DP and USB interface selection module is controlled by the USB interface driver, the default startup process is the USB interface control operation.
[0086] In practice, the hardware architecture of the DP / USB interface selector module shown in Figure 1 can be referenced. The difference is that all power pins of the selector switch chip U1 are controlled by the USB interface driver. In this hardware architecture, by changing the DP and USB power loading process in the Linux device tree process, functional decoupling and common power decoupling can be achieved when DP and USB share signal lines and power.
[0087] After the device system is powered on, the device tree description file of the DP and USB interface two-choice module is parsed, the power control GPIO of the DP and USB interface two-choice module is applied for, and the GPIO operation variables shared by DP and USB are generated for the DP and USB interface two-choice module. Then, it is determined whether it is the first time the device is started (that is, whether the device is in the boot stage). If so, the USB device tree description file is determined to be effective by detecting the plug and unplug signal of the USB interface; if so, the USB startup process is entered, and the power control GPIO is pulled up to 3.3V to power on. If not, the DP startup process is entered; if this is not the first time the device is started, it is determined whether to execute the DP interface control operation or the USB interface control operation based on the plug and unplug signal of the DP interface and the plug and unplug signal of the USB interface.
[0088] The control method of the DP and USB interfaces provided in the embodiment of the present application provides a control scheme suitable for a DP and USB interface two-choice module based on USB interface driver control. It does not require modification of the hardware circuit of the existing DP and USB interface two-choice module to achieve functional decoupling and common power decoupling of DP and USB in the case of sharing signal lines and common power.
[0089] The above describes in detail various embodiments corresponding to the control method of the DP and USB interfaces. On this basis, the present application also discloses a control device, equipment and storage medium for the DP and USB interfaces corresponding to the above method.
[0090] Example 4
[0091] FIG4 is a schematic structural diagram of a control device for a DP and USB interface provided in an embodiment of the present application.
[0092] As shown in FIG4 , the control device for the DP and USB interfaces provided in the embodiment of the present application includes:
[0093] A deployment unit 401 is configured to pre-create a DP device tree description file and a USB device tree description file in a device tree description file of a device for a DP or USB interface selection module;
[0094] The power-on control unit 402 is used to control the default startup process of the DP and USB interface selection module after the device system is powered on;
[0095] The switching control unit 403 is configured to check the access signal of the peripheral interface corresponding to the DP and USB interface selection module; when the access signal of the DP interface is detected, the DP device tree description file is called to perform the DP interface control operation; when the access signal of the USB interface is detected, the USB device tree description file is called to perform the USB interface control operation;
[0096] The DP device tree description file includes a USB resource attribute shielding field for the DP and USB interface selection module and / or the USB device tree description file includes a DP resource attribute shielding field for the DP and USB interface selection module.
[0097] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, and they will not be repeated here.
[0098] Example 5
[0099] FIG5 is a schematic structural diagram of a control device for DP and USB interfaces provided in an embodiment of the present application.
[0100] As shown in FIG5 , the control device for the DP and USB interfaces provided in the embodiment of the present application includes:
[0101] Memory 510 for storing computer programs 511;
[0102] The processor 520 is configured to execute a computer program 511 , which, when executed by the processor 520 , implements the steps of the method for controlling the DP and USB interfaces as described in any one of the above embodiments.
[0103] The processor 520 may include one or more processing cores, such as a 3-core processor, an 8-core processor, etc. The processor 520 may be implemented in at least one hardware form of a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 520 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 520 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 520 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0104] The memory 510 may include one or more storage media, which may be non-transitory. The memory 510 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 510 is at least used to store the following computer program 511, wherein, after the computer program 511 is loaded and executed by the processor 520, it can implement the relevant steps in the control method of the DP and USB interfaces disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 510 may also include an operating system 512 and data 513, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 512 may be Windows. The data 513 may include but is not limited to the data involved in the above method.
[0105] In some embodiments, the control device of the DP and USB interfaces may further include a display screen 530 , a power supply 540 , a communication interface 550 , an input / output interface 560 , a sensor 570 , and a communication bus 580 .
[0106] Those skilled in the art will appreciate that the structure shown in FIG. 5 does not constitute a limitation on the control device for the DP and USB interfaces, and may include more or fewer components than shown in the figure.
[0107] The control device of the DP and USB interfaces provided in the embodiment of the present application includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the control method of the DP and USB interfaces as described above, and the effect is the same as above.
[0108] Example 6
[0109] It should be noted that the above-described embodiments of the apparatus and equipment are merely illustrative. For example, the division of modules is merely a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection of the apparatus or module, which may be electrical, mechanical or other forms. The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.
[0110] In addition, the functional modules in the various embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The above-mentioned integrated modules may be implemented in the form of hardware or software functional modules.
[0111] If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of this application, or the part that contributes to the existing technology, or all or 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 performs all or part of the steps of the method described in each embodiment of this application.
[0112] To this end, an embodiment of the present application further provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the control method of the DP and USB interfaces are implemented.
[0113] The storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc., which can store program codes.
[0114] The computer program contained in the storage medium provided in this embodiment can implement the steps of the control method of the DP and USB interfaces described above when executed by the processor, and the effect is the same as above.
[0115] The above is a detailed introduction to the control method, device, equipment and storage medium of a DP and USB interface provided by the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the devices, equipment and storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of this application, appropriate improvements and modifications can be made to this application, and these improvements and modifications also fall within the scope of protection of the claims of this application.
[0116] It should also be noted that, in this specification, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.
Claims
1. A control method for DP and USB interfaces, comprising: Preliminarily, for the DP and USB interface two-choice module, a DP device tree description file and a USB device tree description file are respectively established in the device tree description file of the device; After the device system is powered on, the control enters the default startup process of the DP and USB interface two-choice module; Checking the access signal of the peripheral interface corresponding to the DP and USB interface selection module; when the access signal of the DP interface is detected, calling the DP device tree description file to perform the DP interface control operation; when the access signal of the USB interface is detected, calling the USB device tree description file to perform the USB interface control operation; The DP device tree description file includes a USB resource attribute shielding field for the DP and USB interface selection module and / or the USB device tree description file includes a DP resource attribute shielding field for the DP and USB interface selection module.
2. The control method of DP and USB interface according to claim 1, characterized in that: The power supply pin of the DP and USB interface selection module is controlled by the DP interface driver; Correspondingly, the default startup process is the DP interface control operation.
3. The control method of DP and USB interface according to claim 1, characterized in that: The power supply pin of the DP and USB interface selection module is controlled by the USB interface driver; Correspondingly, the default startup process is the USB interface control operation.
4. The control method of DP and USB interface according to claim 1, characterized in that: The control enters the default startup process of the DP and USB interface selection module, specifically including: Apply for the power control GPIO of the DP and USB interface selection module; The device tree description file corresponding to the DP and USB interface two-choice module is parsed to generate GPIO operation variables shared by DP and USB.
5. The control method of DP and USB interface according to claim 1, characterized in that: Executing the DP interface control operation specifically includes: When it is detected that the display screen of the device is in a display state, controlling the power supply pin of the DP and USB interface two-or-one selection module to remain in a powered-on state; When it is detected that the display screen is in the screen-off state, the power supply pin of the DP and USB interface selection module is controlled to be powered off.
6. The control method of DP and USB interface according to claim 1, characterized in that: Execute the USB interface control operation, specifically: The power supply pin of the DP and USB interface selection module is controlled to remain powered on.
7. The control method of DP and USB interface according to claim 1, characterized in that: A power management controller is applied to the device.
8. A control device for a DP and USB interface, comprising: A deployment unit, used for pre-establishing a DP device tree description file and a USB device tree description file in a device tree description file of a device for a DP or USB interface selection module; A power-on control unit, used for controlling the entry into the default startup process of the DP and USB interface selection module after the device system is powered on; A switching control unit, used to check the access signal of the peripheral interface corresponding to the DP and USB interface selection module; when the access signal of the DP interface is detected, the DP device tree description file is called to perform the DP interface control operation; when the access signal of the USB interface is detected, the USB device tree description file is called to perform the USB interface control operation; The DP device tree description file includes a USB resource attribute shielding field for the DP and USB interface selection module and / or the USB device tree description file includes a DP resource attribute shielding field for the DP and USB interface selection module.
9. A control device for DP and USB interfaces, comprising: Memory for storing computer programs; A processor is used to execute the computer program, and when the computer program is executed by the processor, the steps of the control method of the DP and USB interface as described in any one of claims 1 to 7 are implemented.
10. A storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method for controlling the DP and USB interfaces as claimed in any one of claims 1 to 7.
Citation Information
Patent Citations
Communication module and external interface configuration method and configuration device thereof, and storage medium
CN114253890A
Screen projection method and device of in-vehicle infotainment system, electronic equipment and storage medium
CN115499691A
DP and USB interface control method and device, equipment and storage medium
CN116226020A
Interface connecting device and vehicle
CN217983761U
Platform architecture creation for a system-on-chip
US10289785B1
