Data transmission circuit and method, functional module, electronic equipment and storage medium
By introducing switching circuits and multiple transmission paths into the data transmission circuit, switching transmission paths according to the device type, the signal attenuation problem after the mobile terminal is connected to the vehicle and machine equipment is solved, and the data transmission quality is improved.
Patent Information
- Application Number
- CN202311727340.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-11-23
- Filing Date
- 2023-12-14
- Publication Date
- 2025-05-23
AI Technical Summary
After the mobile terminal is connected to the vehicle and machine equipment, the data transmission signal attenuation is high and cannot support the high-speed signal transmission requirements.
A data transmission circuit is designed, including a switching circuit and at least two transmission paths, switch to the appropriate transmission path according to the type of connected device to reduce signal attenuation.
By switching to a suitable transmission path, the effect of similar or equal attenuation of data signals between different device types is achieved, thereby improving the data transmission quality.
Smart Images

Figure CN120029955A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of control technology, and in particular to a data transmission circuit and method thereof, a functional module, an electronic device and a storage medium. Background Art
[0002] Mobile terminals are increasingly used, and their functions are becoming more and more extensive. For example, mobile terminals can be connected to the vehicle's head unit to transmit data, including but not limited to map data, audio data or video data, thereby enriching the head unit's functions. Head unit equipment refers to the abbreviation for infotainment equipment installed in a car, such as a display screen, audio system or center console.
[0003] In actual applications, after the mobile terminal is connected to the vehicle computer, the signal attenuation of the transmitted data is high and cannot support the transmission requirements of high-speed signals. Summary of the invention
[0004] The present disclosure provides a data transmission circuit and method thereof, a functional module, an electronic device and a storage medium to solve the above technical problems.
[0005] According to a first aspect of the present disclosure, there is provided a data transmission circuit, comprising a switching circuit and at least two transmission paths; the switching circuit is electrically connected to the at least two transmission paths; wherein the at least two transmission paths are used to establish connection with at least two types of equipment and transmit data; the switching circuit is used to select and switch to one of the at least two transmission paths according to the type of equipment connected to the data transmission circuit.
[0006] Optionally, the at least two transmission paths include: a first transmission path and a second transmission path, the switch circuit is electrically connected to the first transmission path and the second transmission path respectively; an impedance value of the second transmission path is smaller than an impedance value of the first transmission path;
[0007] The first transmission path is used to transmit data when connected to the first type of device;
[0008] The second transmission path is used to transmit data when connected to the second type of equipment;
[0009] The switch circuit is used to select and switch to the first transmission path or the second transmission path according to the type of equipment connected to the data transmission circuit.
[0010] Optionally, the impedance value of the first transmission path is greater than or equal to a second preset impedance value, the impedance value of the second transmission path is less than or equal to the first preset impedance value, and the first impedance value is less than the second preset impedance value.
[0011] Optionally, the first transmission path includes a pair of differential signal lines with the same length; the length of the differential signal lines included in the first transmission path is greater than or equal to a preset length.
[0012] Optionally, the switch circuit includes a first switch, the data transmission circuit includes a first end, a third end and a fifth end, the first end of the first switch is electrically connected to the first end of the data transmission circuit, the second end of the first switch is electrically connected to the third end of the data transmission circuit, and the third end of the first switch is electrically connected to the fifth end of the data transmission circuit;
[0013] and / or,
[0014] The switching circuit includes a second switch, and the data transmission circuit includes a second end, a fourth end and a sixth end, the first end of the second switch is electrically connected to the second end of the data transmission circuit, the second end of the second switch is electrically connected to the fourth end of the data transmission circuit, and the sixth end of the second switch is electrically connected to the sixth end of the data transmission circuit.
[0015] Optionally, the data transmission circuit includes a first terminal, a second terminal, a third terminal, a fourth terminal, a fifth terminal and a sixth terminal; the switch circuit includes at least one of the following: a first switch branch, a second switch branch, a third switch branch and a fourth switch branch;
[0016] The first end of the first switch branch is electrically connected to the third end of the data transmission circuit, and the second end of the first switch branch is electrically connected to the fifth end of the data transmission circuit;
[0017] The first end of the second switch branch is electrically connected to the first end of the data transmission circuit, and the second end of the second switch branch is electrically connected to the fifth end of the data transmission circuit;
[0018] The first end of the third switch branch is electrically connected to the second end of the data transmission circuit, and the second end of the third switch branch is electrically connected to the sixth end of the data transmission circuit;
[0019] The first end of the fourth switch branch is electrically connected to the fourth end of the data transmission circuit, and the second end of the fourth switch branch is electrically connected to the sixth end of the data transmission circuit.
[0020] Optionally, when the switch circuit includes the first switch branch and the fourth switch branch, the first switch branch and the fourth switch branch jointly control the second transmission path to switch to an on state or an off state;
[0021] When the switch circuit includes the second switch branch and the third switch branch, the second switch branch and the third switch branch jointly control the first transmission path to switch to an on state or an off state.
[0022] Optionally, the first switch branch includes a first impedance matching device, a first switch, a first capacitor and a first resistor;
[0023] The second end of the first impedance matching device is electrically connected to the fifth end of the data transmission circuit, and the first end of the first impedance matching device is electrically connected to the second end of the first switch;
[0024] The first end of the first switch is electrically connected to the second end of the first capacitor and the third end of the data transmission circuit respectively, and the control end of the first switch is electrically connected to the first end of the first capacitor and the second end of the first resistor respectively;
[0025] The first end of the first resistor is used to receive a mode control signal;
[0026] The first switch is used to switch to a conducting state upon receiving a mode control signal, so as to conduct the fifth terminal of the data transmission circuit and the third terminal of the data transmission circuit.
[0027] Optionally, the second switch branch includes a second switch and a second resistor;
[0028] The second end of the second switch is electrically connected to the fifth end of the data transmission circuit, the first end of the second switch is electrically connected to the first end of the data transmission circuit, the control end of the second switch is electrically connected to the second end of the second resistor, and the first end of the second resistor is used to receive a trigger control signal;
[0029] The second switch is used to switch to a conducting state upon receiving a trigger control signal, so as to conduct the fifth terminal of the data transmission circuit and the first terminal of the data transmission circuit.
[0030] Optionally, the third switch branch includes a third switch and a third resistor;
[0031] The second end of the third switch is electrically connected to the sixth end of the data transmission circuit, the first end of the third switch is electrically connected to the second end of the data transmission circuit, the control end of the third switch is electrically connected to the second end of the third resistor, and the first end of the third resistor is used to receive a trigger control signal;
[0032] The third switch is used to switch to a conducting state upon receiving a trigger control signal, so as to conduct the sixth end of the data transmission circuit and the second end of the data transmission circuit.
[0033] Optionally, the fourth switch branch includes a second impedance matching device, a fourth switch, a fourth resistor and a second capacitor;
[0034] The second end of the second impedance matching device is electrically connected to the sixth end of the data transmission circuit, and the first end of the second impedance matching device is electrically connected to the second end of the fourth switch; the first end of the fourth switch is electrically connected to the first end of the second capacitor and the fourth end of the data transmission circuit, respectively, and the control end of the fourth switch is electrically connected to the second end of the second capacitor and the second end of the fourth resistor, respectively; the first end of the fourth resistor is used to receive a trigger control signal;
[0035] The fourth switch is used to switch to a conducting state upon receiving a trigger control signal, so as to conduct the sixth terminal of the data transmission circuit and the fourth terminal of the data transmission circuit.
[0036] Optionally, the switching circuit further includes a trigger control signal generating branch; the trigger control signal generating branch is electrically connected to the second switch branch and the third switch branch, respectively, for generating a trigger control signal and outputting it to the second switch branch and the third switch branch.
[0037] Optionally, the trigger control signal generating branch includes a fifth resistor, a first diode and a second diode; the second end of the fifth resistor is electrically connected to the second resistor of the second switch branch and the third resistor of the third switch branch, respectively; the first end of the fifth resistor is electrically connected to the cathode of the first diode and the cathode of the second diode, respectively; the anode of the first diode is electrically connected to a preset communication signal line, and the anode of the second diode is electrically connected to a power supply.
[0038] Optionally, when the switching circuit includes the first switching branch and the second switching branch, the data transmission circuit also includes a first protection branch; the first protection branch is electrically connected to the first switching branch and the second switching branch, respectively, and is used to perform impedance matching on the first switching branch and the second switch branch.
[0039] Optionally, the first protection branch includes a third capacitor and a third impedance matching device;
[0040] The first end of the third impedance matching device is electrically connected to the second end of the first capacitor, the second end of the third impedance matching device is electrically connected to the first end of the third capacitor, and the second end of the third capacitor is electrically connected to the second end of the second resistor of the second switch branch.
[0041] Optionally, when the switching circuit includes the second switching branch and the third switching branch, the data transmission circuit also includes a second protection branch; the second protection branch is electrically connected to the third switching branch and the fourth switching branch, respectively, and is used to perform impedance matching on the third switching branch and the fourth switch branch.
[0042] Optionally, the second protection branch includes a fourth capacitor and a fourth impedance matching device;
[0043] The first end of the fourth capacitor is electrically connected to the first end of the third switch device, the second end of the fourth capacitor is electrically connected to the first end of the fourth impedance matching device, and the second end of the fourth impedance matching device is electrically connected to the first end of the second capacitor of the fourth switch branch.
[0044] Optionally, it also includes a mode switching branch, which is electrically connected to the first resistor of the first switch branch, the second resistor of the second switch branch, the third resistor of the third switch branch and the fourth resistor of the fourth switch branch respectively; the mode switching branch is used to output a first mode switching signal to the first switch branch and the fourth switch branch, and is also used to output a second mode switching signal to the second switch branch and the third switch branch; the first mode switching signal and the second mode switching signal are logically opposite.
[0045] Optionally, the mode switching branch includes a controller and a fifth switching switch, the second end of the fifth switching switch is electrically connected to the second resistor and the third resistor respectively, the first end of the fifth switching switch is grounded, and the control end of the fifth switching switch is electrically connected to the first preset communication pin of the controller; the first preset communication pin of the controller is electrically connected to the first resistor and the fourth resistor respectively.
[0046] Optionally, a data transmission interface is also included; the data transmission interface includes a first pin, a second pin, a third pin and a fourth pin; the first pin is electrically connected to the first end of the data transmission circuit; the second pin is electrically connected to the second end of the data transmission circuit; the third pin is electrically connected to the third end of the data transmission circuit; the fourth pin is electrically connected to the fourth end of the data transmission circuit.
[0047] Optionally, the first pin is a first positive differential signal pin A6, the second pin is a second negative differential signal pin B7, the third pin is a second positive differential signal pin B6, and the fourth pin is a first negative differential signal pin A7.
[0048] Optionally, the data transmission interface is any one of the following: a USB Type-C interface, a USB TYPE-B interface, a USB-mini interface and a USB-micro interface.
[0049] According to a second aspect of the present disclosure, a functional module is provided, comprising a data transmission circuit as described in any one of the first aspects.
[0050] Optionally, the functional module includes at least one of the following: an image module, an audio module, a charging module and a data transmission line module.
[0051] According to a third aspect of the present disclosure, an electronic device is provided, comprising the data transmission circuit as described in any one of the first aspect, or the functional module as described in the second aspect.
[0052] According to a fourth aspect of the present disclosure, a data transmission method is provided, which is applied to a first device, wherein the first device comprises: at least two transmission paths, and the at least two transmission paths are used to establish connections with at least two types of devices and transmit data; the data transmission method comprises:
[0053] In response to a connection request from a second device, switching to a target transmission path matching the second device according to a device type of the second device, the target transmission path being one of the at least two transmission paths;
[0054] Based on the target transmission path, a connection is established with a second device for data transmission.
[0055] Optionally, the method further comprises:
[0056] The device type of the second device is determined according to a voltage signal at a detection pin of the first device.
[0057] Optionally, determining the device type of the second device according to the voltage signal at the detection pin of the first device includes:
[0058] acquiring communication data of the second device according to a voltage signal at a detection pin of the first device;
[0059] The communication data is parsed to obtain a device type of the second device.
[0060] Optionally, according to the device type of the second device, switching to a target transmission path matching the second device includes:
[0061] In response to detecting that the second device is a second type device, outputting a first trigger control signal from a first preset communication pin to switch the second transmission path to an on state and the first transmission path to an off state;
[0062] or,
[0063] In response to detecting that the second device is a first type device, a second trigger control signal is output from the first preset communication pin to switch the first transmission path to an on state and the second transmission path to an off state.
[0064] According to a fifth aspect of the present disclosure, there is provided an electronic device, including:
[0065] Processor and memory;
[0066] The memory is used to store a computer program executable by the processor;
[0067] The processor is configured to execute the computer program in the memory to implement the method according to any one of the fourth aspects of claim 1.
[0068] According to a sixth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, and when an executable computer program in the storage medium is executed by a processor, the method described in any one of the fourth aspects can be implemented.
[0069] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0070] A data transmission circuit provided in this embodiment includes a switch circuit and at least two transmission paths; the switch circuit is electrically connected to the at least two transmission paths; wherein the at least two transmission paths are used to establish a connection with at least two types of devices and transmit data; the switch circuit is used to select and switch to one of the at least two transmission paths according to the type of device connected to the data transmission circuit. In this way, in this embodiment, a first device can use different transmission paths to transmit data with a second device of a different device type, so as to achieve a similar or equal effect of data signal attenuation, which is conducive to improving the quality of data transmission.
[0071] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Figure 1 The present invention is a block diagram of a mobile terminal according to an embodiment of the present invention.
[0073] Figure 2 The figure is a schematic diagram of a switch circuit according to an embodiment of the present disclosure.
[0074] Figure 3 The figure is a schematic diagram of a switch circuit according to an embodiment of the present disclosure.
[0075] Figure 4The present invention is a circuit diagram of a switch circuit according to an embodiment of the present invention.
[0076] Figure 5 The present invention is a circuit diagram of a switch circuit according to an embodiment of the present invention.
[0077] Figure 6 The present invention is a circuit diagram of a switch circuit according to an embodiment of the present invention.
[0078] Figure 7 A schematic diagram of displaying a pop-up window according to an embodiment of the present disclosure.
[0079] Figure 8 The figure is a schematic diagram of a display icon according to an embodiment of the present disclosure.
[0080] Fig. 9 The present invention is a flowchart of a data transmission method according to an embodiment of the present invention.
[0081] Fig.10 The present invention is a block diagram of a mobile terminal according to an embodiment of the present invention. DETAILED DESCRIPTION
[0082] Exemplary embodiments will be described in detail herein, and embodiments thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices consistent with some aspects of the present disclosure as detailed in the appended claims.
[0083] Mobile terminals are increasingly used, and their functions are becoming more and more extensive. For example, mobile terminals can be connected to the vehicle's head unit to transmit data, including but not limited to map data, audio data or video data, thereby enriching the head unit's functions. Head unit equipment refers to the abbreviation for infotainment equipment installed in a car, such as a display screen, audio system or center console.
[0084] In actual applications, the cable between the communication interface of the vehicle equipment and the vehicle equipment is long, and the resistance value between the communication interface and the vehicle equipment is large. When the mobile terminal is connected to the vehicle equipment, the transmitted data signal attenuation is high and cannot support the transmission requirements of high-speed signals.
[0085] To solve the above technical problems, the embodiments of the present disclosure provide a data transmission circuit and method thereof, a functional module, an electronic device and a storage medium. The inventive concept is to set up a data transmission circuit, which includes a switching circuit and at least two transmission paths, and select one of the transmission paths for devices of different device types, so as to achieve a similar or equal effect of data signal attenuation when different devices transmit data, which is conducive to improving the quality of data transmission.
[0086] In one example, the at least two transmission paths include a first transmission path and a second transmission path; the switch circuit is electrically connected to the first transmission path and the second transmission path, respectively; the impedance value of the second transmission path is less than the impedance value of the first transmission path. It is understandable that in some other examples, the at least two transmission paths may also include a third transmission path, a fourth transmission path, a fifth transmission path, and so on. Considering that the switching method of at least two transmission paths is the same as the switching method of more transmission paths after two transmission paths, three transmission paths, and four transmission paths, the schemes of the subsequent embodiments replace the at least two transmission paths with the first transmission path and the second transmission path to facilitate the description of the schemes of the embodiments. The embodiments of the present disclosure may be applicable to situations with two or more transmission paths, and the present disclosure does not specifically limit the number of transmission paths.
[0087] Figure 1 is a block diagram of a data transmission circuit according to an embodiment of the present disclosure, see Figure 1 The data transmission circuit includes a data transmission interface 10, a first transmission path 11, a second transmission path 12 and a switch circuit 13. The data transmission interface 10 is electrically connected to the first transmission path 11 and the second transmission path 12 respectively; the switch circuit 13 is electrically connected to the first transmission path 11 and the second transmission path 12 respectively. The first transmission path 11 is used to transmit data when connected to a first type of device; the second transmission path 12 is used to transmit data when connected to a second type of device; the switch circuit 13 is used to select and switch to the first transmission path or the second transmission path according to the type of device connected to the data transmission circuit.
[0088] In this embodiment, the data transmission interface 10 includes a first pin 1, a second pin 2, a third pin 3 and a fourth pin 4. The data transmission circuit includes a first end, a second end, a third end, a fourth end, a fifth end and a sixth end. At this time, the first pin 1 of the data transmission interface 10 is electrically connected to the data transmission circuit including the first end, the second pin 2 of the data transmission interface 10 is electrically connected to the data transmission circuit including the second end, the third pin 3 of the data transmission interface 10 is electrically connected to the data transmission circuit including the third end, and the fourth pin 4 of the data transmission interface 10 is electrically connected to the data transmission circuit including the fourth end. The fifth end and the sixth end of the data transmission circuit are electrically connected to the switch circuit 13, and are also electrically connected to components that need to transmit data, such as a processor, a power management chip, a camera, an audio device, etc.
[0089] In this embodiment, the data transmission interface 10 is any one of the following: a USB Type-C interface, a USB TYPE-B interface, a USB-mini interface, and a USB-micro interface. In one embodiment, the data transmission interface 10 is a USB Type-C interface. When the data transmission interface 10 is a USB Type-C interface, the data transmission interface 10 includes a first pin 1, a second pin 2, a third pin 3, and a fourth pin 4, which are respectively a first positive differential signal pin A6, a first negative differential signal pin B7, a second positive differential signal pin B6, and a second negative differential signal pin A7.
[0090] Among them, the first positive differential signal pin A6 and the first negative differential signal pin B7 are used to transmit USB 2.0 differential signals. The second positive differential signal pin B6 and the second negative differential signal pin A7 are used to transmit USB 2.0 differential signals. Considering that A6 and B6 are electrically connected and A7 and B7 are electrically connected in the USB Type-C interface in the related art, that is, only one data transmission path can be formed, in this embodiment, the electrical connection between A6 and B6 and the electrical connection between A7 and B7 are disconnected, thereby forming 4 separate signal pins.
[0091] In this embodiment, the second transmission path 12 includes a transmission wire having an impedance value less than or equal to a first preset impedance value. The first preset impedance value can be set according to a specific scenario. In one embodiment, the length of the transmission wire of the second transmission path 12 is less than or equal to the preset length, thereby reducing the impedance value of the transmission wire, and no other impedance matching device is provided on the transmission wire, thereby reducing the impedance value of the second transmission path 12 as much as possible.
[0092] In this embodiment, the first transmission path 11 includes a transmission wire having an impedance value greater than or equal to a second preset impedance value. The second preset impedance value can be set according to a specific scenario. In order to increase the impedance value of the transmission wire of the first transmission path 11, an impedance matching device, such as a resistor device, can be added to the transmission wire. In one embodiment, the transmission wire of the first transmission path 11 includes a pair of differential signal lines of the same length, and the length of the pair of differential signal lines is greater than or equal to the preset length, thereby increasing the impedance value while increasing the length of the transmission wire.
[0093] It should be noted that the impedance values of the first transmission path 11 and the second transmission path 12 can be set in the following manner, for example, the data transmission circuit is first connected to the second type of equipment, and the second impedance value of the second transmission channel of the data transmission circuit and the transmission cable between the data transmission circuit and the second type of equipment is detected; then the data transmission circuit is connected to the first type of equipment, and the first transmission channel of the data transmission circuit and the first impedance value of the transmission cable between the data transmission circuit and the first type of equipment are detected; finally, the impedance difference between the first impedance value and the second impedance value is obtained, and when the impedance difference is less than or equal to a preset impedance threshold (for example, 1 to 10 milliohms), the length of the transmission wire of the first transmission path (or the impedance value of the series device) and the length of the transmission wire of the second transmission path can be determined. In this way, in this embodiment, when the impedance values of the first transmission path and the second transmission path are equal or similar, the data signal attenuation can be guaranteed to be the same, thereby improving the data transmission quality.
[0094] In one embodiment, see Figure 2 , the switch circuit 13 includes a first switch SW1. The data transmission circuit includes a first end, a third end, and a fifth end. The first end of the first switch SW1 is electrically connected to the first end of the data transmission circuit, the second end of the first switch SW1 is electrically connected to the third end of the data transmission circuit, and the third end of the first switch SW1 is electrically connected to the fifth end of the data transmission circuit. In this way, when the first end of the first switch SW1 is electrically connected to the third end, the first end and the fifth end of the data transmission circuit can be electrically connected, and a first transmission path can be formed with a negative differential signal line; when the second end of the first switch SW1 is electrically connected to the third end, the third end and the fifth end of the data transmission circuit can be electrically connected, and a second transmission path can be formed with a negative differential signal line.
[0095] And / or, the switch circuit 13 includes a second switch SW2. The data transmission circuit includes a second end, a fourth end, and a sixth end. The first end of the second switch SW2 is electrically connected to the second end of the data transmission circuit, the second end of the second switch SW2 is electrically connected to the fourth end of the data transmission circuit, and the sixth end of the second switch SW2 is electrically connected to the sixth end of the data transmission circuit. In this way, when the first end of the second switch SW2 is electrically connected to the third end, the second end and the sixth end of the data transmission circuit can be electrically connected, and a first transmission path is formed with a positive differential signal line; when the second end of the second switch SW2 is electrically connected to the third end, the fourth end and the sixth end of the data transmission circuit can be electrically connected, and a second transmission path is formed with a positive differential signal line.
[0096] When the first switch SW1 and the second switch SW2 exist simultaneously, when the first end and the third end of the first switch SW1 are electrically connected and the first end and the third end of the second switch SW2 are electrically connected, the first transmission path can be switched; when the second end and the third end of the first switch SW1 are electrically connected and the second end and the third end of the second switch SW2 are electrically connected, the second transmission path can be switched.
[0097] In one example, the above first switch SW1 and second switch SW2 can be implemented by a single-pole double-throw switch. When the data of the transmission channel increases, a single-pole multi-throw switch or a combination of multiple single-pole double-throw switches can be used. In the case where it is possible to switch to any transmission path, the corresponding solution falls within the protection scope of the present disclosure.
[0098] In another embodiment, referring to Figure 3 , the switch circuit 13 includes at least one of the following: a first switch branch 31, a second switch branch 32, a third switch branch 33, and a fourth switch branch 34.
[0099] The first end of the first switch branch 31 is electrically connected to the third end of the data transmission circuit, and the second end of the first switch branch 31 is electrically connected to the fifth end of the data transmission circuit;
[0100] The first end of the second switch branch 32 is electrically connected to the first end of the data transmission circuit, and the second end of the second switch branch 32 is electrically connected to the fifth end of the data transmission circuit;
[0101] The first end of the third switch branch 33 is electrically connected to the second end of the data transmission circuit, and the second end of the third switch branch is electrically connected to the sixth end of the data transmission circuit;
[0102] The first end of the fourth switch branch 34 is electrically connected to the fourth end of the data transmission circuit, and the second end of the fourth switch branch is electrically connected to the sixth end of the data transmission circuit.
[0103] When the switch circuit 13 includes the first switch branch 31 and the fourth switch branch 34, the first switch branch 31 and the fourth switch branch 34 jointly control the second transmission path to switch to the conducting state or the non-conducting state; when the switch circuit 13 includes the second switch branch 32 and the third switch branch 33, the second switch branch 32 and the third switch branch 33 jointly control the first transmission path to switch to the conducting state or the non-conducting state.
[0104] Referring to Figure 4 , the first switch branch 31 includes a first impedance matching device LB1, a first switching switch Q1, a first capacitor C1, and a first resistor R1;
[0105] The second end of the first impedance matching device LB1 is electrically connected to the fifth end of the data transmission circuit, and the first end of the first impedance matching device LB1 is electrically connected to the second end of the first switching switch R1; the first end of the first switching switch Q1 is electrically connected to the second end of the first capacitor C1 and the third end of the data transmission circuit, respectively, and the control end of the first switching switch Q1 is electrically connected to the first end of the first capacitor C1 and the second end of the first resistor R1, respectively; the first end of the first resistor R1 is used to receive a mode control signal; the first switching switch Q1 is used to switch to a conducting state when receiving a mode control signal, so as to conduct the fifth end of the data transmission circuit and the third end of the data transmission circuit. Among them, the first capacitor C1 is used for the voltage of the first switch device Q1. The first impedance matching device LB1 can select a magnetic bead with a higher USB2.0 power frequency impedance, and debug and verify the optimization of the USB eye diagram at the same time.
[0106] Continue to see Figure 4 , the fourth switch branch 34 includes a second impedance matching device LB2, a fourth switch Q4, a fourth resistor R4 and a second capacitor C2; the second end of the second impedance matching device LB2 is electrically connected to the sixth end of the data transmission circuit, and the first end of the second impedance matching device LB2 is electrically connected to the second end of the fourth switch Q4; the first end of the fourth switch Q4 is electrically connected to the first end of the second capacitor C2 and the fourth end of the data transmission circuit, respectively, and the control end of the fourth switch Q4 is electrically connected to the second end of the second capacitor C2 and the second end of the fourth resistor R4, respectively; the first end of the fourth resistor R4 is used to receive a trigger control signal; the second capacitor C2 is used for the voltage of the fourth switch device Q4. The fourth switch Q4 is used to switch to a conducting state when receiving a trigger control signal to conduct the fourth end of the data transmission circuit and the sixth end of the data transmission circuit. The second impedance matching device LB2 can select a magnetic bead with a higher power frequency impedance of USB2.0, and debug and verify the optimization of the USB eye diagram at the same time.
[0107] It is understandable that when any one of the first switch branch 31 and the fourth switch branch 34 is switched to the on state, a second transmission path can be formed. In one embodiment, the first switch branch 31 and the fourth switch branch 34 are switched to the on state or the off state at the same time to jointly control the second transmission path to switch to the on state or the off state.
[0108] Continue to see Figure 4The second switch branch 32 includes a second switch Q2 and a second resistor R2. The second end of the second switch Q2 is electrically connected to the fifth end of the data transmission circuit, the first end of the second switch Q2 is electrically connected to the first end of the data transmission circuit, the control end of the second switch Q2 is electrically connected to the second end of the second resistor R2, and the first end of the second resistor R2 is used to receive a trigger control signal; the second switch Q2 is used to switch to a conducting state when receiving the trigger control signal to conduct the fifth end of the data transmission circuit and the first end of the data transmission circuit.
[0109] Continue to see Figure 4 The third switch branch 33 includes a third switch Q3 and a third resistor R3. The second end of the third switch Q3 is electrically connected to the sixth end of the data transmission circuit, the first end of the third switch Q3 is electrically connected to the second end of the data transmission circuit, the control end of the third switch Q3 is electrically connected to the second end of the third resistor R3, and the first end of the third resistor R3 is used to receive a trigger control signal; the third switch Q3 is used to switch to a conducting state when receiving the trigger control signal, so as to conduct the sixth end of the data transmission circuit and the second end of the data transmission circuit.
[0110] It is understandable that when any one of the second switch branch 32 and the third switch branch 33 is switched to the on state, a first transmission path can be formed. In one embodiment, the second switch branch 32 and the third switch branch 33 are switched to the on state or the off state at the same time to jointly control the first transmission path to switch to the on state or the off state.
[0111] It should be noted that Figure 4 The switch circuit shown includes at least one of the first switch device Q1, the second switch device Q2, the third switch device Q3 and the fourth switch device Q4, which can be implemented by a field effect tube, and can be integrated with a subsequent controller (such as a power management chip, a processor), etc. on the mainboard of the mobile terminal, which is conducive to improving the reliability of the circuit. For the convenience of description, in one embodiment, each switch device is implemented by an NMOS device, and the control end of the NMOS device is switched to the on state when receiving a high-level signal, and is switched to the off state when receiving a low-level signal, but it does not constitute a limitation on the disclosed solution.
[0112] In one embodiment, see Figure 4 The switch circuit further includes a trigger control signal generating branch 35. The trigger control signal generating branch 35 is electrically connected to the second switch branch 32 and the third switch branch 33 respectively, and is used to generate a trigger control signal and output it to the second switch branch 32 and the third switch branch 33.
[0113] Continue to see Figure 4, the trigger control signal generating branch 35 includes a fifth resistor R5, a first diode D1 and a second diode D2; the second end of the fifth resistor R5 is electrically connected to the second resistor R2 of the second switch branch 32 and the third resistor R3 of the third switch branch 33 respectively; the first end of the fifth resistor R5 is electrically connected to the cathode of the first diode D1 and the cathode of the second diode D2 respectively; the anode of the first diode D1 is electrically connected to the preset communication signal line CC-IN, and the anode of the second diode D2 is electrically connected to the power supply VBAT-SYS. In this way, in this embodiment, the first diode D1 and the second diode D2 can form an "or" logic circuit by the equipment, and the first transmission path can be turned on when the trigger control signal of one path is higher than the turn-on voltage of the second switch device Q2 and the third switch device Q3. In addition, the first diode D1 and the second diode D2 can avoid the input high voltage backflow, thereby achieving the effect of protecting the controller.
[0114] In one embodiment, the switch circuit further includes a first protection branch, which is electrically connected to the first switch branch 31 and the second switch branch 32 respectively, and is used to perform impedance matching on the first switch branch 31 and the second switch branch 32 .
[0115] See also Figure 5 The first protection branch 51 includes a third capacitor C3 and a third impedance matching device LB3. The first end of the third impedance matching device LB3 is electrically connected to the second end of the first capacitor C1, the second end of the third impedance matching device LB3 is electrically connected to the first end of the third capacitor C3, and the second end of the third capacitor C3 is electrically connected to the second end of the second resistor R2. The third impedance matching device LB3 can select a magnetic bead with a higher USB1.0 power frequency impedance to suppress the parasitic capacitance of the first switch device Q1. The third capacitor C3 has the function of blocking the DC current to prevent the current in the second transmission path from flowing back to the first transmission path.
[0116] In one embodiment, the switch circuit further includes a second protection branch, which is electrically connected to the third switch branch 33 and the fourth switch branch 34 respectively, and is used to perform impedance matching on the third switch branch 33 and the fourth switch branch 34 .
[0117] Continue to see Figure 5 The second protection branch 52 includes a fourth capacitor C4 and a fourth impedance matching device LB4.
[0118] The first end of the fourth capacitor C4 is electrically connected to the first end of the third switch device Q3, the second end of the fourth capacitor C4 is electrically connected to the first end of the fourth impedance matching device LB4, and the second end of the fourth impedance matching device LB4 is electrically connected to the first end of the second capacitor C2. The fourth impedance matching device LB4 can select a magnetic bead with a higher USB1.0 power frequency impedance to suppress the parasitic capacitance of the fourth switch device Q4. The fourth capacitor C4 has the function of blocking the direct current to prevent the current in the second transmission path from flowing back to the first transmission path.
[0119] In one embodiment, the data transmission interface includes a pull-up resistor or a pull-down resistor (not shown in the figure). When the data transmission interface is inserted into a first type device or a second type device, the first type device or the second type device can pull up or pull down the voltage of the pull-up resistor, or pull up or pull down the voltage of the pull-down resistor, so that the voltage of the detection pin set at the data transmission interface is a high level. At this time, the trigger control signal generating branch 35 can generate a high-level trigger control signal and output it to the second resistor R2 of the second switch branch 32 and the third resistor R3 of the third switch branch 33 to be electrically connected, so that the second switch device Q2 and the third switch device Q3 are switched to the on state, thereby switching to the first transmission path.
[0120] In another embodiment, see Figure 1 The data transmission circuit also includes a controller 14, which can be implemented by a device with processing functions, such as a power management chip, a processor, a discharge and charge chip, etc., which is not limited here. The controller can obtain the voltage at the detection pin. When it is detected that the voltage at the detection pin is greater than or equal to the preset voltage threshold, it can be determined that the communication interface of the external device is inserted into the interface of the USB Type-C module. At this time, a control signal can be output to the preset communication signal line CC-IN, that is, the trigger control signal generation branch 35 can generate a trigger control signal and output it to the second resistor R2 and the third resistor R3, so as to achieve the effect of switching the first transmission path to the on state.
[0121] It is understandable that in this embodiment, the trigger control signal generating branch 35 can generate the trigger control signal in two ways with the preset communication signal line CC-IN and the power supply VBAT-SYS respectively. Increasing the ways of generating the trigger control signal can adapt to more trigger scenarios.
[0122] Considering that when the first transmission path and the second transmission path are implemented using switch devices Q1 to Q4, it takes a certain amount of time for each switch device to switch from the on state to the off state or from the off state to the on state, in one embodiment, the first transmission path and the second transmission path need to set a dead time. Among them, the dead time refers to the length of time occupied when the switch devices in the first transmission path and the second transmission path are both disconnected. In this way, in this embodiment, when there is a need for path switching, the first transmission path is completely disconnected before switching to the second transmission path; or the second transmission path is completely disconnected before switching to the first transmission path, so as to achieve the effect of non-interference between the two transmission paths and improve the accuracy of data transmission.
[0123] In another embodiment, the data transmission circuit further includes a mode switching branch. Figure 6 The mode switching branch is electrically connected to the first resistor R1 of the first switch branch 31, the second resistor R2 of the second switch branch 32, the third resistor R3 of the third switch branch 33 and the fourth resistor R4 of the fourth switch branch 34, respectively, and is used to output a mode switching signal to the first switch branch 31 and the fourth switch branch 34 that is opposite to the mode switching signal output to the second switch branch 32 and the third switch branch 33.
[0124] Continue to see Figure 6The above-mentioned mode switching branch includes a controller 14 and a fifth switch Q5, wherein the second end of the fifth switch Q5 is electrically connected to the second resistor R2 and the third resistor R3 respectively, the first end of the fifth switch Q5 is grounded, and the control end of the fifth switch Q5 is electrically connected to the first preset communication pin (mode_ctrl) of the controller 14; the first preset communication pin (mode_ctrl) of the controller 14 is electrically connected to the first resistor R1 and the fourth resistor R4 respectively. When the controller 14 outputs a high-level signal, it can control the first switch branch 31 to switch to the on state and the fourth switch branch 34 to switch to the on state, that is, switch to the second transmission path; at the same time, the fifth switch device Q5 switches to the on state, pulls the second resistor R2 and the third resistor R3 down to the ground, that is, the second switch device Q2 and the third switch device Q3 switch to the off state, thereby switching the first transmission path to the off state. When the controller 14 outputs a low-level signal, it can control the first switch branch 31 to switch to the on state and the fourth switch branch 34 to switch to the off state, that is, disconnect the second transmission path; at the same time, the fifth switch device Q5 is switched to the off state; at this time, the high-level signal at the preset communication signal line CC-IN and / or the power supply VBAT-SYS can switch the second switch device Q2 and the third switch device Q3 to the on state, thereby switching the second transmission path to the on state. In this way, the mode switching branch in this embodiment can ensure that the first transmission path and the second transmission path are in a mutually exclusive state, and only one of the two is in the on state, which is conducive to improving the accuracy of data transmission.
[0125] The device where the data transmission circuit is located is the first device, and the device plugged into the data transmission interface of the first device is the second device, and the Figure 6 The switching circuit shown describes the process of data transmission of the data transmission circuit of the present disclosure, including:
[0126] The controller of the first device can obtain the voltage value at the detection pin of the data transmission interface of the first device. When the second device is not inserted, the voltage signal at the detection pin is a first voltage signal (such as a ground signal or a low-level signal). When the second device is inserted, the controller can detect that the voltage signal at the pin is a second voltage signal (such as a power supply voltage signal or a high-level signal), that is, the voltage at the pin detection pin changes before and after the second device is inserted. For example, the first voltage signal at the detection pin is a ground signal, and the second voltage is a power supply voltage signal after the external device is inserted, that is, the controller can obtain the above-mentioned power supply VBAT-SYS signal or a pulse signal whose level changes from low to high. In this way, the controller can determine whether the data transmission interface is electrically connected to the second device based on the above-mentioned power supply VBAT-SYS signal, and can determine the role type of the second device. The role type includes host (Source) or slave (sink).
[0127] When the insertion of an external device is detected, the controller can determine the plug-in direction of the USB Type-C module interface; wherein the plug-in direction includes forward plug-in and reverse plug-in of the communication interface of the external device and the USB Type-C module interface, forward plug-in refers to the way in which the A-side pins (A1~A12) of the two interfaces are in physical contact (while the B-side pins (B1~B12) are in physical contact), and reverse plug-in refers to the way in which the A-side pins of the communication interface of the external device and the B-side pins of the USB Type-C module interface are in physical contact. In one embodiment, when the insertion of an external device is detected, the controller can communicate according to the role type of the second device or the first device to obtain communication data, and determine the device type of the external device according to the above communication data. Among them, the second device includes a first type device or a second type device; wherein the second type device can be a vehicle-mounted device, and the first type device can be a device other than a vehicle-mounted device.
[0128] The controller can determine the plugging direction of the data transmission interface according to the mapping relationship between the device type and the plugging direction. After determining the plugging direction of the interface, the controller can determine the second transmission path and output a trigger control signal to the preset communication signal line CC-IN.
[0129] It is understandable that when the controller detects that the external device is a vehicle-mounted device, it can output a first trigger control signal from the first preset communication pin (mode), at which time the second switch device Q2 and the third switch device Q3 are switched to the on state to switch the first transmission path to the on state; and the first switch device Q1 and the fourth switch device Q4 are switched to the off state to switch the second transmission path to the off state. When the external device is a device other than the vehicle-mounted device, it can output a second trigger control signal, at which time the first switch device Q1 and the fourth switch device Q4 are switched to the on state to switch the second transmission path to the on state; at which time the fifth switch device Q5 is switched to the on state, thereby grounding the control ends of the second switch device Q2 and the third switch device Q3, i.e., switching to the off state, to switch the first transmission path to the off state.
[0130] In one embodiment, after detecting that the vehicle device is plugged in, the first device may also display a preset pop-up window on the display interface. Figure 7The preset pop-up window 71 may include, for example, "whether to switch to the data transmission path of the vehicle device (i.e., the second transmission path) to improve the data transmission quality", and display "OK" and "Cancel" buttons in the above preset pop-up window. When the "Cancel" button is detected to be triggered, the controller can output a first trigger control signal to switch the first transmission path to the on state. When the "OK" button is detected to be triggered, the controller can output a second trigger control signal to switch the second transmission path to the on state. At this time, an icon (icon) can be displayed in the drop-down menu of the first device, such as Figure 8 See Figure 8 After other devices are plugged in, the icon 81 in the upper left corner is displayed; after the vehicle device is plugged in, the icon 82 in the lower right corner can be displayed.
[0131] In some possible embodiments, the embodiments of the present disclosure further provide a functional module, which includes the data transmission circuit illustrated in the above embodiments. In one example, the above functional module may include at least one of the following: an image module, an audio module, a charging module, and a data transmission line module. Taking the image module as an example, the image module may be a camera, which includes the above data transmission circuit, and the image data can be transmitted with other devices through the data transmission circuit. Taking the audio module as an example, the audio module may be a smart speaker, which includes the above data transmission circuit, and the audio data can be transmitted with other devices through the data transmission circuit. Taking the charging module as an example, the charging module may include a data transmission circuit, and different transmission paths can be used for charging when the charging module is connected to different devices. Taking the data transmission line module as an example, the data transmission line module can connect two devices, and the two devices can use different transmission paths to transmit data.
[0132] In some possible embodiments, the present disclosure further provides an electronic device, which includes the data transmission circuit exemplified in the above embodiments, and / or the above functional module.
[0133] Based on the working process of the above data transmission circuit, the embodiment of the present disclosure further provides a data transmission method, which is applied to a first device, wherein the first device includes: at least two transmission paths, and the at least two transmission paths are used to establish connections with at least two types of devices and transmit data; Fig. 9 , the data transmission method includes step 91 and step 92.
[0134] In step 91, in response to a connection request from a second device, switching to a target transmission path matching the second device according to a device type of the second device, the target transmission path being one of at least two transmission paths;
[0135] In step 92, a connection is established with a second device based on the target transmission path to perform data transmission.
[0136] In one embodiment, the method further comprises:
[0137] The device type of the second device is determined according to a voltage signal at a detection pin of the first device.
[0138] In one embodiment, determining the device type of the second device according to the voltage signal at the detection pin of the first device includes:
[0139] acquiring communication data of the second device according to a voltage signal at a detection pin of the first device;
[0140] The communication data is parsed to obtain a device type of the second device.
[0141] In one embodiment, switching to a target transmission path matching the second device according to the device type of the second device includes:
[0142] In response to detecting that the second device is a second type device, outputting a first trigger control signal from a first preset communication pin to switch the second transmission path to an on state and the first transmission path to an off state;
[0143] or,
[0144] In response to detecting that the second device is a first type device, a second trigger control signal is output from the first preset communication pin to switch the first transmission path to an on state and the second transmission path to an off state.
[0145] It should be noted that the data transmission method provided in this embodiment has been described when describing the operation of the data transmission circuit. For details, please refer to the contents of the above embodiments, and will not be repeated here.
[0146] Fig.10 1 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 1000 may be a smart phone, a computer, a digital broadcast terminal, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0147] Reference Fig.10 The electronic device 1000 may include one or more of the following components: a processing component 1002 , a memory 1004 , a power component 1006 , a multimedia component 1008 , an audio component 1010 , an input / output (I / O) interface 1012 , a sensor component 1014 , a communication component 1016 , and an image acquisition component 1018 .
[0148] The processing component 1002 generally controls the overall operation of the electronic device 1000, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1002 may include one or more processors 1020 to execute computer programs. In addition, the processing component 1002 may include one or more modules to facilitate interaction between the processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate interaction between the multimedia component 1008 and the processing component 1002. In an example, the processor 1020 may control each switch device of the charge pump circuit to switch to an on state or an off state, for example, the processor is used to send an effective control signal to the first charge pump branch and the second charge pump branch of the charge pump circuit in each control cycle to switch the second switch device and the first switch device; the processor is also used to output an effective control signal to the charge and discharge freewheeling branch of the charge pump during the dead zone after controlling each control cycle, so as to realize the transfer of charge between the second switch device and the first switch device, so as to charge the battery on the basis of reducing switching losses.
[0149] The memory 1004 is configured to store various types of data to support operations on the electronic device 1000. Examples of such data include computer programs for any application or method operating on the electronic device 1000, contact data, phone book data, messages, pictures, videos, etc. The memory 1004 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0150] The power supply component 1006 provides power to various components of the electronic device 1000. The power supply component 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 1000. The power supply component 1006 may include a power supply chip, and the controller may communicate with the power supply chip to control the power supply chip to turn on or off the first switching device, so that the battery supplies power to the mainboard circuit or does not supply power.
[0151] The multimedia component 1008 includes a screen that provides an output interface between the electronic device 1000 and the target object.
[0152] In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input information from a target object. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
[0153] The audio component 1010 is configured to output and / or input audio file information. For example, the audio component 1010 includes a microphone (MIC), and when the electronic device 1000 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive external audio file information. The received audio file information can be further stored in the memory 1004 or sent via the communication component 1016. In some embodiments, the audio component 1010 also includes a speaker for outputting audio file information.
[0154] The I / O interface 1012 provides an interface between the processing component 1002 and a peripheral interface module, which may be a keyboard, a click wheel, a button, etc.
[0155] The sensor component 1014 includes one or more sensors for providing various aspects of status assessment for the electronic device 1000. For example, the sensor component 1014 can detect the open / closed state of the electronic device 1000, the relative positioning of components, such as the display screen and keypad of the electronic device 1000, and the sensor component 1014 can also detect the position change of the electronic device 1000 or a component, the presence or absence of contact between the target object and the electronic device 1000, the orientation or acceleration / deceleration of the electronic device 1000, and the temperature change of the electronic device 1000. In this example, the sensor component 1014 can include a magnetic sensor, a gyroscope, and a magnetic field sensor, and can also include an inertial sensor, an image sensor, etc., wherein the magnetic field sensor includes at least one of the following: a Hall sensor, a thin film magnetoresistive sensor, and a magnetic liquid acceleration sensor.
[0156] The communication component 1016 is configured to facilitate wired or wireless communication between the electronic device 1000 and other devices. The electronic device 1000 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 1016 receives broadcast information or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1016 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies. In one example, the communication component 1016 includes the above-mentioned data transmission circuit, and / or, the above-mentioned functional module.
[0157] In an exemplary embodiment, the electronic device 1000 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.
[0158] In some possible embodiments, an electronic device is provided, including:
[0159] Processor and memory;
[0160] The memory is used to store a computer program executable by the processor;
[0161] The processor is configured to execute the computer program in the memory to implement the above method.
[0162] In some possible embodiments, a non-transitory computer-readable storage medium is provided, and when an executable computer program in the storage medium is executed by a processor, the above-mentioned method can be implemented.
[0163] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0164] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A data transmission circuit, It is characterized in that It comprises a switching circuit and at least two transmission paths; the switching circuit is electrically connected to the at least two transmission paths; wherein the at least two transmission paths are used to establish connection with at least two types of equipment and transmit data; the switching circuit is used to select and switch to one of the at least two transmission paths according to the type of equipment connected to the data transmission circuit.
2. The data transmission circuit according to claim 1, It is characterized in that The at least two transmission paths include: a first transmission path and a second transmission path, the switch circuit is electrically connected to the first transmission path and the second transmission path respectively; the impedance value of the second transmission path is smaller than the impedance value of the first transmission path; The first transmission path is used to transmit data when connected to the first type of device; The second transmission path is used to transmit data when connected to the second type of equipment; The switch circuit is used to select and switch to the first transmission path or the second transmission path according to the type of equipment connected to the data transmission circuit.
3. The data transmission circuit according to claim 2, It is characterized in that The impedance value of the first transmission path is greater than or equal to a second preset impedance value, the impedance value of the second transmission path is less than or equal to the first preset impedance value, and the first impedance value is less than the second preset impedance value.
4. The data transmission circuit according to claim 3, It is characterized in that The first transmission path includes a pair of differential signal lines with the same length; the length of the differential signal lines included in the first transmission path is greater than or equal to a preset length.
5. The data transmission circuit according to claim 1, It is characterized in that The switch circuit includes a first switch, the data transmission circuit includes a first end, a third end and a fifth end, the first end of the first switch is electrically connected to the first end of the data transmission circuit, the second end of the first switch is electrically connected to the third end of the data transmission circuit, and the third end of the first switch is electrically connected to the fifth end of the data transmission circuit; and / or, The switching circuit includes a second switch, and the data transmission circuit includes a second end, a fourth end and a sixth end, the first end of the second switch is electrically connected to the second end of the data transmission circuit, the second end of the second switch is electrically connected to the fourth end of the data transmission circuit, and the sixth end of the second switch is electrically connected to the sixth end of the data transmission circuit.
6. The data transmission circuit according to claim 1, It is characterized in that The data transmission circuit includes a first terminal, a second terminal, a third terminal, a fourth terminal, a fifth terminal and a sixth terminal; the switch circuit includes at least one of the following: a first switch branch, a second switch branch, a third switch branch and a fourth switch branch; The first end of the first switch branch is electrically connected to the third end of the data transmission circuit, and the second end of the first switch branch is electrically connected to the fifth end of the data transmission circuit; The first end of the second switch branch is electrically connected to the first end of the data transmission circuit, and the second end of the second switch branch is electrically connected to the fifth end of the data transmission circuit; The first end of the third switch branch is electrically connected to the second end of the data transmission circuit, and the second end of the third switch branch is electrically connected to the sixth end of the data transmission circuit; The first end of the fourth switch branch is electrically connected to the fourth end of the data transmission circuit, and the second end of the fourth switch branch is electrically connected to the sixth end of the data transmission circuit.
7. The data transmission circuit according to claim 6, It is characterized in that When the switch circuit includes the first switch branch and the fourth switch branch, the first switch branch and the fourth switch branch jointly control the second transmission path to switch to the on state or the off state; When the switch circuit includes the second switch branch and the third switch branch, the second switch branch and the third switch branch jointly control the first transmission path to switch to an on state or an off state.
8. The data transmission circuit according to claim 6, It is characterized in that The first switch branch includes a first impedance matching device, a first switch, a first capacitor and a first resistor; The second end of the first impedance matching device is electrically connected to the fifth end of the data transmission circuit, and the first end of the first impedance matching device is electrically connected to the second end of the first switch; The first end of the first switch is electrically connected to the second end of the first capacitor and the third end of the data transmission circuit respectively, and the control end of the first switch is electrically connected to the first end of the first capacitor and the second end of the first resistor respectively; The first end of the first resistor is used to receive a mode control signal; The first switch is used to switch to a conducting state upon receiving a mode control signal, so as to conduct the fifth terminal of the data transmission circuit and the third terminal of the data transmission circuit.
9. The data transmission circuit according to claim 6, It is characterized in that The second switch branch includes a second switch and a second resistor; The second end of the second switch is electrically connected to the fifth end of the data transmission circuit, the first end of the second switch is electrically connected to the first end of the data transmission circuit, the control end of the second switch is electrically connected to the second end of the second resistor, and the first end of the second resistor is used to receive a trigger control signal; The second switch is used to switch to a conducting state upon receiving a trigger control signal, so as to conduct the fifth terminal of the data transmission circuit and the first terminal of the data transmission circuit.
10. The data transmission circuit according to claim 6, It is characterized in that The third switch branch includes a third switch and a third resistor; The second end of the third switch is electrically connected to the sixth end of the data transmission circuit, the first end of the third switch is electrically connected to the second end of the data transmission circuit, the control end of the third switch is electrically connected to the second end of the third resistor, and the first end of the third resistor is used to receive a trigger control signal; The third switch is used to switch to a conducting state upon receiving a trigger control signal, so as to conduct the sixth end of the data transmission circuit and the second end of the data transmission circuit.
11. The data transmission circuit according to claim 6, It is characterized in that The fourth switch branch includes a second impedance matching device, a fourth switch, a fourth resistor and a second capacitor; The second end of the second impedance matching device is electrically connected to the sixth end of the data transmission circuit, and the first end of the second impedance matching device is electrically connected to the second end of the fourth switch; the first end of the fourth switch is electrically connected to the first end of the second capacitor and the fourth end of the data transmission circuit, respectively, and the control end of the fourth switch is electrically connected to the second end of the second capacitor and the second end of the fourth resistor, respectively; the first end of the fourth resistor is used to receive a trigger control signal; The fourth switch is used to switch to a conducting state upon receiving a trigger control signal, so as to conduct the sixth terminal of the data transmission circuit and the fourth terminal of the data transmission circuit.
12. The data transmission circuit according to claim 6, It is characterized in that The switch circuit also includes a trigger control signal generating branch; the trigger control signal generating branch is electrically connected to the second switch branch and the third switch branch respectively, and is used to generate a trigger control signal and output it to the second switch branch and the third switch branch.
13. The data transmission circuit according to claim 12, It is characterized in that The trigger control signal generating branch includes a fifth resistor, a first diode and a second diode; the second end of the fifth resistor is electrically connected to the second resistor of the second switch branch and the third resistor of the third switch branch respectively; the first end of the fifth resistor is electrically connected to the cathode of the first diode and the cathode of the second diode respectively; the anode of the first diode is electrically connected to a preset communication signal line, and the anode of the second diode is electrically connected to a power supply.
14. The data transmission circuit according to claim 6, It is characterized in that When the switch circuit includes the first switch branch and the second switch branch, the data transmission circuit also includes a first protection branch; the first protection branch is electrically connected to the first switch branch and the second switch branch, respectively, and is used to perform impedance matching on the first switch branch and the second switch branch.
15. The data transmission circuit according to claim 14, It is characterized in that The first protection branch includes a third capacitor and a third impedance matching device; The first end of the third impedance matching device is electrically connected to the second end of the first capacitor, the second end of the third impedance matching device is electrically connected to the first end of the third capacitor, and the second end of the third capacitor is electrically connected to the second end of the second resistor of the second switch branch.
16. The data transmission circuit according to claim 6, It is characterized in that When the switching circuit includes the second switching branch and the third switching branch, the data transmission circuit also includes a second protection branch; the second protection branch is electrically connected to the third switching branch and the fourth switching branch, respectively, and is used to perform impedance matching on the third switching branch and the fourth switch branch.
17. The data transmission circuit according to claim 16, It is characterized in that The second protection branch includes a fourth capacitor and a fourth impedance matching device; The first end of the fourth capacitor is electrically connected to the first end of the third switch device, the second end of the fourth capacitor is electrically connected to the first end of the fourth impedance matching device, and the second end of the fourth impedance matching device is electrically connected to the first end of the second capacitor of the fourth switch branch.
18. The data transmission circuit according to any one of claims 6 to 17, It is characterized in that It also includes a mode switching branch, which is electrically connected to the first resistor of the first switch branch, the second resistor of the second switch branch, the third resistor of the third switch branch, and the fourth resistor of the fourth switch branch respectively; the mode switching branch is used to output a first mode switching signal to the first switch branch and the fourth switch branch, and is also used to output a second mode switching signal to the second switch branch and the third switch branch; the first mode switching signal and the second mode switching signal are logically opposite.
19. The data transmission circuit according to claim 18, It is characterized in that The mode switching branch includes a controller and a fifth switching switch, the second end of the fifth switching switch is electrically connected to the second resistor and the third resistor respectively, the first end of the fifth switching switch is grounded, and the control end of the fifth switching switch is electrically connected to the first preset communication pin of the controller; the first preset communication pin of the controller is electrically connected to the first resistor and the fourth resistor respectively.
20. The data transmission circuit according to claim 5 or 6, It is characterized in that It also includes a data transmission interface; the data transmission interface includes a first pin, a second pin, a third pin and a fourth pin; the first pin is electrically connected to the first end of the data transmission circuit; the second pin is electrically connected to the second end of the data transmission circuit; the third pin is electrically connected to the third end of the data transmission circuit; the fourth pin is electrically connected to the fourth end of the data transmission circuit.
21. The data transmission circuit according to claim 20, It is characterized in that The first pin is a first positive differential signal pin A6, the second pin is a second negative differential signal pin B7, the third pin is a second positive differential signal pin B6 and the fourth pin is a first negative differential signal pin A7.
22. The data transmission circuit according to claim 20, It is characterized in that The data transmission interface is any one of the following: USB Type-C interface, USB TYPE-B interface, USB-mini interface and USB-micro interface.
23. A functional module, It is characterized in that Comprising the data transmission circuit as claimed in any one of claims 1 to 22.
24. The functional module according to claim 23, It is characterized in that Includes at least one of the following: an image module, an audio module, a charging module, and a data transmission line module.
25. An electronic device, It is characterized in that It comprises the data transmission circuit as described in any one of claims 1 to 22, or the functional module as described in claim 23 or 24.
26. A data transmission method, It is characterized in that Applied to a first device, the first device comprises: at least two transmission paths, the at least two transmission paths are used to establish connections with at least two types of devices and transmit data; the data transmission method comprises: In response to a connection request from a second device, switching to a target transmission path matching the second device according to a device type of the second device, the target transmission path being one of the at least two transmission paths; Based on the target transmission path, a connection is established with a second device for data transmission.
27. The method according to claim 26, It is characterized in that The method further comprises: The device type of the second device is determined according to a voltage signal at a detection pin of the first device.
28. The method according to claim 27, It is characterized in that Determining the device type of the second device according to the voltage signal at the detection pin of the first device includes: acquiring communication data of the second device according to a voltage signal at a detection pin of the first device; The communication data is parsed to obtain a device type of the second device.
29. The method according to claim 26, It is characterized in that According to the device type of the second device, switching to a target transmission path matching the second device includes: In response to detecting that the second device is a second type device, outputting a first trigger control signal from a first preset communication pin to switch the second transmission path to an on state and the first transmission path to an off state; or, In response to detecting that the second device is a first type device, a second trigger control signal is output from the first preset communication pin to switch the first transmission path to an on state and the second transmission path to an off state.
30. An electronic device, It is characterized in that include: Processor and memory; The memory is used to store a computer program executable by the processor; The processor is configured to execute the computer program in the memory to implement the method according to any one of claims 26 to 29.
31. A non-transitory computer-readable storage medium, It is characterized in that When the executable computer program in the storage medium is executed by a processor, the method according to any one of claims 26 to 29 can be implemented.