Port control device and method, storage medium, and terminal

Through port control devices and methods, switching USB port mode is solved, and the problem that Apple phones cannot use OTG after USB HUB expansion is achieved, and flexible switching between dual-channel USB and single-channel OTG is achieved, improving user experience.

CN115129634BActive Publication Date: 2025-08-05SHANGHAI PATEO ELECTRONIC EQUIPMENT MANUFACTURING CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110319862.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-25
Publication Date
2025-08-05
Estimated Expiration
2041-03-25

AI Technical Summary

Technical Problem

In the prior art, after expanding the USB port through USB HUB, Apple phones cannot use the OTG interface, resulting in poor user experience and affecting the choice of purchasing a vehicle.

Method used

Design a port control device to switch the path end of the USB port through the control module and the path conversion module, and combine the USB port expansion module to realize flexible switching between dual USB and single OTG ports to meet different data transmission needs.

Benefits of technology

It achieves the data transmission needs of dual USB and single OTG ports without affecting the use of Apple phones, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115129634B_ABST
    Figure CN115129634B_ABST
Patent Text Reader

Abstract

A port control device, method, storage medium, and terminal, wherein the method includes: sending a first control signal after receiving a first instruction signal; based on the first control signal, closing the first path end of the first path conversion module and opening the second path end of the first path conversion module; based on the first control signal, closing the third path end of the second path conversion module and opening the fourth path end of the second path conversion module, where the third path end is connected to the first path end; providing a USB port expansion module, the input end of the USB port expansion module is connected to the second path end, and the second output end of the USB port expansion module is connected to the fourth path end; sending a second control signal after receiving a second instruction signal; based on the second control signal, closing the second path end and opening the first path end; based on the second control signal, closing the fourth path end and opening the third path end. By selecting the first instruction signal or the second instruction signal, data transmission in multiple port modes can be satisfied.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and particularly to a port control device and method, a storage medium, and a terminal. Background Art

[0002] As more and more multimedia devices are connected to in-vehicle entertainment systems, users' requirements for the access ports in in-vehicle entertainment systems are also increasing.

[0003] Currently, some CPUs on the market have only one USB port, but some users hope that the in-vehicle computer can support two USB ports. This requires extending the USB to two paths through a USB HUB (port expansion device). However, there is a problem with the ports after expansion through the USB HUB. Since the current Apple mobile phone interconnection requires the use of an OTG interface, after expanding the USB port through the USB HUB, it will no longer be an OTG interface, and users can no longer use Apple mobile phone interconnection. Since the current market share of Apple mobile phones is relatively large, this will bring great inconvenience to users and even affect their choice of buying a car. Summary of the Invention

[0004] The technical problem solved by the present invention is to provide a port control device and method, a storage medium, and a terminal that can meet data transmission under multiple port modes.

[0005] To solve the above problems, the present invention provides a port control device, including: a control module for sending a first control signal after receiving a first instruction signal; a first path conversion module coupled to the control module, the first path conversion module including a first path end and a second path end, for receiving the first control signal and, based on the first control signal, closing the first path end and opening the second path end; a second path conversion module coupled to the control module, the second path conversion module including a third path end and a fourth path end, for receiving the first control signal and, based on the first control signal, closing the third path end and opening the fourth path end, the third path end being connected to the first path end; a USB port expansion module, the USB port expansion module including an input end, a first output end, and a second output end, the input end being connected to the second path end, the second output end being connected to the fourth path end; the control module is further configured to send a second control signal after receiving a second instruction signal; the first path conversion module is further configured to receive the second control signal and, based on the second control signal, close the second path end and open the first path end; the second path conversion module is further configured to receive the second control signal and, based on the second control signal, close the fourth path end and open the third path end.

[0006] Optionally, it further includes: a processing module coupled to the control module, configured to provide and send the first instruction signal or the second instruction signal.

[0007] Optionally, it further includes: a touch screen module coupled to the processing module, configured to select the first instruction signal or the second instruction signal.

[0008] Optionally, the second path end module further includes a fifth path end.

[0009] Optionally, the processing module is further coupled to the first path conversion module, and the processing module is further configured to send a first data signal, and the first data signal is output based on the first instruction signal by the first output end and the fifth path end.

[0010] Optionally, the processing module is further configured to send a second data signal, and the second data signal is output by the fifth path end based on the second instruction signal.

[0011] Correspondingly, the present invention further provides a port control method, including: receiving a first instruction signal and then sending a first control signal; based on the first control signal, closing the first path end of the first path conversion module and opening the second path end of the first path conversion module; based on the first control signal, closing the third path end of the second path conversion module and opening the fourth path end of the second path conversion module, where the third path end is connected to the first path end; providing a USB port expansion module, where the USB port expansion module includes an input end, a first output end and a second output end, the input end is connected to the second path end, and the second output end is connected to the fourth path end; receiving a second instruction signal and then sending a second control signal; based on the second control signal, closing the second path end and opening the first path end; based on the second control signal, closing the fourth path end and opening the third path end.

[0012] Optionally, before receiving the first instruction signal and then sending the first control signal, it further includes: sending the first instruction signal or the second instruction signal.

[0013] Optionally, before sending the first instruction signal and the second instruction signal, it further includes: selecting the first instruction signal or the second instruction signal.

[0014] Optionally, the second path end module further includes a fifth path end.

[0015] Optionally, after sending the first control signal, it further includes: sending a first data signal, and the first data signal is output based on the first instruction signal by the first output end and the fifth path end.

[0016] Optionally, after sending the second control signal, it further includes: sending a second data signal, where the second data signal is based on the second instruction signal and is output from the fifth path terminal.

[0017] Correspondingly, the present invention further provides a storage medium, on which computer instructions are stored, and when the computer instructions run, they execute the steps of the above method.

[0018] Correspondingly, the present invention further provides a terminal, including a memory and a processor. Computer instructions capable of running on the processor are stored on the memory, and when the processor runs the computer instructions, it executes the steps of the above method.

[0019] Compared with the prior art, the technical solution of the present invention has the following advantages:

[0020] In the port control device of the technical solution of the present invention, the first path conversion module closes the first path terminal and opens the second path terminal based on the first control signal; the second path conversion module closes the third path terminal and opens the fourth path terminal based on the first control signal, and the third path terminal is connected to the first path terminal; and the input end of the USB port expansion module is connected to the second path terminal, and the second output end of the USB port expansion module is connected to the fourth path terminal. At this time, the first data signal subsequently sent by the processing module will be output through the first output end and the fifth path terminal of the second path conversion module. Since the transmission of the first data signal passes through the USB port expansion module, at this time, the first data signal can meet the dual-channel USB port transmission.

[0021] In addition, the first path conversion module closes the second path terminal and opens the first path terminal based on the second control signal; the second path conversion module closes the fourth path terminal and opens the third path terminal based on the second control signal. At this time, the second data signal subsequently sent by the processing module is only output through the fifth path terminal of the second path conversion module. Since the transmission of the second data signal does not pass through the USB port expansion module, at this time, the second data signal can meet the single-channel OTG port or USB port transmission.

[0022] In the port control method of the technical solution of the present invention, based on the first control signal, the first path end of the first path conversion module is closed and the second path end of the first path conversion module is opened; based on the first control signal, the third path end of the second path conversion module is closed and the fourth path end of the second path conversion module is opened, and the third path end is connected to the first path end; and a USB port expansion module is provided, the input end of the USB port expansion module is connected to the second path end, and the second output end of the USB port expansion module is connected to the fourth path end. At this time, the first data signal sent subsequently will be output through the first output end and the fifth path end of the second path conversion module. Since the transmission of the first data signal passes through the USB port expansion module, the first data signal can meet the dual-channel USB port transmission at this time.

[0023] In addition, based on the second control signal, the second path end of the first path conversion module is closed and the first path end of the first path conversion module is opened; based on the second control signal, the fourth path end of the second path conversion module is closed and the third path end of the second path conversion module is opened. At this time, the second data signal sent subsequently is only output through the fifth path end of the second path conversion module. Since the transmission of the second data signal does not pass through the USB port expansion module, the second data signal can meet the single-channel OTG port or USB port transmission at this time. Brief Description of the Drawings

[0024] Figure 1 is a schematic flowchart of the port control method of the present invention;

[0025] Figure 2 is a schematic diagram of the dual-channel USB port transmission structure in the port control device of the present invention;

[0026] Figure 3 is a schematic diagram of the single-channel OTG port transmission structure in the port control device of the present invention. Detailed Embodiments

[0027] To facilitate the understanding of the present invention, the present invention will be described more comprehensively below with reference to the relevant drawings. The typical embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.

[0028] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field to which the present invention belongs. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0029] To better understand the above technical solution, the following will describe the above technical solution in detail in conjunction with the accompanying drawings of the specification and specific implementation manners. It should be understood that the embodiments of the present invention and the specific features in the embodiments are detailed descriptions of the technical solution of the present application, rather than limitations on the technical solution of the present application. Without conflict, the technical features in the embodiments of the present invention and the embodiments can be combined with each other.

[0030] Figure 1 It is a flowchart of a port control method according to an embodiment of the present invention.

[0031] Please refer to Figure 1 , the port control method described in this embodiment includes the following steps:

[0032] Step S101, after receiving the first instruction signal, send the first control signal;

[0033] Step S102, based on the first control signal, close the first path end of the first path conversion module and open the second path end of the first path conversion module;

[0034] Step S103, based on the first control signal, close the third path end of the second path conversion module and open the fourth path end of the second path conversion module, where the third path end is connected to the first path end;

[0035] Step S104, provide a USB port expansion module, the USB port expansion module includes an input end, a first output end and a second output end, the input end is connected to the second path end, and the second output end is connected to the fourth path end;

[0036] Step S105, after receiving the second instruction signal, send the second control signal;

[0037] Step S106, based on the second control signal, close the second path end and open the first path end;

[0038] Step S107, based on the second control signal, close the fourth path end and open the third path end.

[0039] First, before step S101, it further includes: select the first instruction signal or the second instruction signal; send the first instruction signal or the second instruction signal.

[0040] In this embodiment, the processing module on the in-vehicle device generates an option interface for the first instruction signal and the second instruction signal, and the user selects the first instruction signal or the second instruction signal through the touch screen module on the in-vehicle device; after the user selects the first instruction signal or the second instruction signal, the first instruction signal or the second instruction signal is sent through the processing module on the in-vehicle device.

[0041] In this embodiment, the first instruction signal is a dual-USB port mode, and the second instruction signal is a single-OTG port mode.

[0042] In the specific implementation of step S101, the control module receives the first instruction signal and sends a first control signal after receiving the first instruction signal.

[0043] In the specific implementation of steps S102 and S103, based on the first control signal, the first path end of the first path conversion module is closed and the second path end of the first path conversion module is opened; based on the first control signal, the third path end of the second path conversion module is closed and the fourth path end of the second path conversion module is opened, and the third path end is connected to the first path end.

[0044] In this embodiment, the first path conversion module and the second path conversion module are signal path switching switches, and the communication of signals under different paths is realized by switching the opening and closing of the path ends in the first path conversion module and the second path conversion module.

[0045] In this embodiment, the second path end module further includes a fifth path end.

[0046] In the specific implementation process of step S105, a USB port expansion module is provided. The USB port expansion module includes an input end, a first output end and a second output end. The input end is connected to the second path end, and the second output end is connected to the fourth path end.

[0047] In this embodiment, after sending the first control signal, it further includes: sending a first data signal. The first data signal is based on the first instruction signal and is output from the first output end and the fifth path end. The first data signal is sent by the processing module on the in-vehicle device. At this time, the first data signal sent will be output through the first output end and the fifth path end of the second path conversion module. Since the transmission of the first data signal passes through the USB port expansion module, the first data signal can meet the dual-channel USB port transmission at this time.

[0048] It should be noted that when the second instruction signal is received in the specific implementation of step S101, the control module will send a second control signal after receiving the second instruction signal.

[0049] In the specific implementation of steps S102 and S103, based on the second control signal, the second path end is closed and the first path end is opened; and the fourth path end is closed and the third path end is opened.

[0050] In this embodiment, after sending the second control signal, it further includes: sending a second data signal, the second data signal is based on the second instruction signal and is output from the fifth path end. The second data signal is also sent by the processing module of the vehicle head unit, and at this time, the second data signal sent is only output from the fifth path end of the second path conversion module. Since the transmission of the second data signal does not pass through the USB port expansion module, the second data signal can meet the transmission of a single OTG port or USB port at this time.

[0051] In this embodiment, by selecting the first instruction signal or the second instruction signal, data transmission in multiple port modes can be satisfied, improving the user experience.

[0052] Correspondingly, an embodiment of the present invention also provides a port control device. Please refer to Figure 2 , including: a control module 100, configured to send a first control signal after receiving a first instruction signal; a first path conversion module 200 coupled to the control module 100, the first path conversion module 200 includes a first path end r1 and a second path end r2, configured to receive the first control signal, and based on the first control signal, close the first path end r1 and open the second path end r2; a second path conversion module 300 coupled to the control module 100, the second path conversion module 300 includes a third path end r3 and a fourth path end r4, configured to receive the first control signal, and based on the first control signal, close the third path end r3 and open the fourth path end r4, the third path end r3 is connected to the first path end r1; a USB port expansion module 400, the USB port expansion module 400 includes an input end O, a first output end i1 and a second output end i2, the input end O is connected to the second path end r2, and the second output end i2 is connected to the fourth path end r4.

[0053] In this embodiment, it further includes: a processing module 500 coupled to the control module 100, configured to provide and send the first instruction signal.

[0054] In this embodiment, it further includes: a touch screen module 600 coupled to the processing module 500, configured to select the first instruction signal.

[0055] In this embodiment, the second path terminal module 300 further includes a fifth path terminal r5.

[0056] In this embodiment, the processing module 500 is further coupled to the first path conversion module 200. The processing module 500 is further configured to send a first data signal, and the first data signal is output based on the first instruction signal by the first output terminal i1 and the fifth path terminal r5.

[0057] In this embodiment, the first data signal sent by the processing module 500 is output through the first output terminal i1 and the fifth path terminal r5 of the second path conversion module 300. Since the transmission of the first data signal passes through the USB port expansion module 400, the first data signal can satisfy the dual - path USB port transmission at this time.

[0058] Please refer to Figure 3 , the control module 100 is further configured to send a second control signal after receiving the second instruction signal; the first path conversion module 200 is further configured to receive the second control signal, and based on the second control signal, close the second path terminal r2 and open the first path terminal r1; the second path conversion module 300 is further configured to receive the second control signal, and based on the second control signal, close the fourth path terminal r4 and open the third path terminal r3.

[0059] In this embodiment, the processing module 500 is further configured to provide and send the second instruction signal.

[0060] In this embodiment, the touch screen module 600 is further configured to select the second instruction signal.

[0061] In this embodiment, the processing module is further configured to send a second data signal, and the second data signal is output based on the second instruction signal by the fifth path terminal.

[0062] In this embodiment, the second data signal sent by the processing module 500 is only output through the fifth path terminal r5 of the second path conversion module 300. Since the transmission of the second data signal does not pass through the USB port expansion module 400, the second data signal can satisfy the single - path OTG port or USB port transmission at this time.

[0063] In this embodiment, by selecting the first instruction signal or the second instruction signal, it can satisfy the data transmission under multiple port modes and improve the user experience.

[0064] Correspondingly, an embodiment of the present invention further provides a storage medium, on which computer instructions are stored, and when the computer instructions run, the steps of the above method are executed.

[0065] Correspondingly, an embodiment of the present invention further provides a terminal, including a memory and a processor. A computer instruction capable of running on the processor is stored on the memory, and when the processor runs the computer instruction, the steps of the above method are executed.

[0066] Although the present invention is disclosed as above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention should be determined by the scope defined by the claims.

Claims

1. A port control device, characterized in that: include: A control module, configured to send a first control signal after receiving a first command signal; a first path switching module coupled to the control module, the first path switching module comprising a first path end and a second path end, configured to receive the first control signal and close the first path end and open the second path end based on the first control signal; a second path switching module coupled to the control module, the second path switching module including a third path end and a fourth path end, configured to receive the first control signal and, based on the first control signal, close the third path end and open the fourth path end, the third path end being connected to the first path end; A USB port expansion module, the USB port expansion module comprising an input end, a first output end, and a second output end, the input end being connected to the second path end, and the second output end being connected to the fourth path end; The control module is further configured to send a second control signal after receiving a second command signal; The first path conversion module is further configured to receive the second control signal and, based on the second control signal, close the second path end and open the first path end; The second path switching module is further configured to receive the second control signal and, based on the second control signal, close the fourth path end and open the third path end.

2. The port control device according to claim 1, further comprising: The processing module coupled to the control module is configured to provide and send the first instruction signal or the second instruction signal.

3. The port control device according to claim 2, further comprising: The touch screen module coupled to the processing module is used to select the first command signal or the second command signal.

4. The port control device according to claim 2, wherein the second channel end module further comprises a fifth channel end.

5. The port control device according to claim 4, wherein the processing module is further coupled to the first path conversion module, and the processing module is further configured to send a first data signal, wherein the first data signal is outputted by the first output terminal and the fifth path terminal based on the first instruction signal.

6. The port control device according to claim 4, wherein the processing module is further configured to send a second data signal, wherein the second data signal is outputted by the fifth path terminal based on the second instruction signal.

7. A port control method, characterized in that: include: sending a first control signal after receiving a first command signal; closing a first path end of a first path conversion module and opening a second path end of the first path conversion module based on the first control signal; Based on the first control signal, closing the third path terminal of the second path conversion module and opening the fourth path terminal of the second path conversion module, wherein the third path terminal is connected to the first path terminal; Providing a USB port expansion module, the USB port expansion module comprising an input end, a first output end, and a second output end, the input end being connected to the second path end, and the second output end being connected to the fourth path end; sending a second control signal after receiving the second command signal; closing the second path end and opening the first path end based on the second control signal; Based on the second control signal, the fourth channel terminal is closed and the third channel terminal is opened.

8. The port control method according to claim 7, further comprising: after receiving the first command signal and before sending the first control signal: Send the first command signal or the second command signal.

9. The port control method according to claim 8, before sending the first instruction signal and the second instruction signal, further comprising: The first command signal or the second command signal is selected.

10. The port control method according to claim 7, wherein the second channel end module further comprises a fifth channel end.

11. The port control method according to claim 10, further comprising: after sending the first control signal; A first data signal is sent, where the first data signal is output from the first output terminal and the fifth path terminal based on the first instruction signal.

12. The port control method according to claim 10, further comprising: after sending the second control signal; A second data signal is sent, where the second data signal is output from the fifth path end based on the second instruction signal.

13. A storage medium having computer instructions stored thereon, wherein the computer instructions execute the steps of the method according to any one of claims 7 to 12 when executed.

14. A terminal comprising a memory and a processor, wherein the memory stores computer instructions that can be executed on the processor, and the processor executes the steps of the method according to any one of claims 7 to 12 when executing the computer instructions.

Citation Information

Patent Citations

  • Switching circuit and device

    CN110389920A

  • USB (universal serial bus) port expander circuit and mobile terminal

    CN203950306U