Data transmission control module and electronic equipment
By designing a data transmission control module, using the data transmission unit to turn on different data transmission interfaces of external devices and transmitting through the same resource transmission port, the problem that the MCU cannot effectively provide multiple pulse width modulated signals is solved, and the problem of the MCU being unable to provide multiple pulse width modulated signals is realized. Fewer resource transmission ports cope with the need for more resource transmission, improving the flexibility of the MCU.
Patent Information
- Application Number
- CN202411515720.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2044-10-29
AI Technical Summary
When external requirements change, existing MCUs cannot effectively provide multiple pulse width modulation signals, resulting in many MCU replacement times and low flexibility in control methods.
A data transmission control module is designed to conduct different data transmission interfaces of external devices through the data transmission unit, and transmit through the same resource transmission port, and adjust the line conduction status of the data transmission unit based on the signals output from the GPIO port.
It realizes that a resource transmission port can cope with the needs of multiple resource transmission, reduces the replacement of control units, and improves the flexibility of control units.
Smart Images

Figure CN119025465B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of chip control technology, and in particular to a data transmission control module and an electronic device. Background Art
[0002] With the rapid development of science and technology, various microcontroller units (MCU) are being used more and more widely in all walks of life. The use of MCU can realize the control and collection of different information.
[0003] At present, in order to provide different pulse width modulation signals, the MCU can be provided with multiple pulse width modulation ports, each of which can provide a pulse width modulation signal, thereby achieving the effect of multi-channel control. For example, the MCU is provided with 5 pulse width modulation ports, and the developer can connect these 5 pulse width modulation ports to the devices or circuits that need to be provided, and output 5 pulse width modulation signals through the MCU to provide them to the devices or circuits connected to each pulse width modulation port. However, in this case, as external demand changes, if the MCU is required to provide 6 or even more pulse width modulation signals, the MCU with only 5 pulse width modulation ports cannot be used, and only an MCU with more pulse width modulation ports can be selected, which has the problem of frequent MCU replacement and low control flexibility. Summary of the invention
[0004] An embodiment of the present application provides a data transmission control module that can directly implement the transmission of multiple resources on a resource transmission port of the control unit, meet the demand for more resource transmission with a smaller number of resource transmission ports, reduce the replacement of the control unit, and improve the flexibility of the control unit.
[0005] In one aspect, an embodiment of the present application provides a data transmission control module, the data transmission control module comprising: a control unit and a data transmission unit;
[0006] The control unit includes a general-purpose input / output (GPIO) port and a resource transmission port;
[0007] The data transmission unit includes at least two first connection ends, a second connection end and a third connection end; the at least two first connection ends of the data transmission unit are respectively used to connect to different data transmission interfaces of an external device; the second connection end of the data transmission unit is used to be electrically connected to the resource transmission port; the third connection end of the data transmission unit is used to be electrically connected to the GPIO port;
[0008] The control unit is used to control the signal output by the GPIO port;
[0009] The data transmission unit is used to receive the signal output by the GPIO port through the third connection end, and adjust the line conductivity of the data transmission unit according to the signal output by the GPIO port, so that the data transmission unit is conductive to different first connection ends, and transmits the target resource through the second connection end and the resource transmission port; wherein the target resource is a resource provided by the data transmission interface of an external device connected to the currently conductive first connection end.
[0010] The data transmission control module provided in the present application includes: a control unit and a data transmission unit; the control unit is connected to different data transmission interfaces of an external device through various connection ports of the data transmission unit, and based on the signal output by the GPIO port, the conduction of the internal circuit of the data transmission unit is controlled, so that the data transmission unit can conduct different first connection terminals, and realize the transmission of target resources through different first connection terminals, second connection terminals and resource transmission ports, and the target resources are the resources provided by the data transmission interface of the external device connected to the currently conducted first connection terminal. When different types of resources need to be transmitted, the corresponding first connection terminal of the data transmission unit can be turned on, and the demand for more resource transmission can be met with a smaller number of resource transmission ports, which reduces the replacement of the control unit and improves the flexibility of the control unit.
[0011] As an optional implementation of the embodiment of the present application, the data transmission unit includes a switching switch and a shared transmission line;
[0012] The switch is used for switching between different first connection ends and / or shared transmission lines;
[0013] The shared transmission line is used to transmit the target resource;
[0014] The data transmission unit is further used to adjust the switching switch to switch between different first connection ends and / or shared transmission lines according to the signal output by the GPIO port, so that the target resource is transmitted to and from the second connection end through the shared transmission line.
[0015] The data transmission unit includes a switching switch and a shared transmission line. By adjusting the switching of the switching switch between different first connection ends and / or shared transmission lines, different internal line structures are turned on, thereby achieving the effect of mutual transmission of target resources through the shared transmission line and the second connection end.
[0016] As an optional implementation of the embodiment of the present application, the number of the switching switches is one, and the number of the shared transmission lines is one;
[0017] The first end of the switch is used for switching at different first connection ends;
[0018] The second end of the switching switch is electrically connected to the first end of the common transmission line, and the second end of the switching switch is also electrically connected to the third connection end; the second end of the common transmission line is electrically connected to the second connection end;
[0019] The data transmission unit is also used to adjust the switching of the switching switch at different first connection ends according to the signal output by the GPIO port, so that the target resource is transmitted through the second end of the switching switch and the first end of the common transmission line, and is transmitted through the second end of the common transmission line and the second connection end.
[0020] In this embodiment, the number of switching switches and shared transmission lines is one, and the number of resource transmission ports is also one. By controlling the signal output by the GPIO port, the switching switch is adjusted to different first connection ends to achieve conduction between different first connection ends and the shared transmission line, and different target resources are transmitted through the second connection end and the same resource transmission port to achieve multi-resource transmission.
[0021] As an optional implementation of the embodiment of the present application, the number of the switching switches is N; and the number of the switching switches, the number of the shared transmission lines, the number of the third connection terminals, and the number of the GPIO ports are the same; N is a positive integer greater than or equal to 2;
[0022] The data transmission unit is composed of N-level sub-transmission units, each level of sub-transmission unit includes a switch and a common transmission line; the output end of the previous level of sub-transmission unit is the input end of the next level of sub-transmission unit;
[0023] The first end of the switch in the next-stage sub-transmission unit is switched between a first connection end and an output end of the previous-stage sub-transmission unit; the second end of the switch in each stage of the sub-transmission unit is electrically connected to a GPIO port;
[0024] The data transmission unit is also used to adjust the route of the switching switch in each sub-transmission unit according to the signal output by each of the GPIO ports, so that the data transmission unit conducts the first connection end connected to the switching switch in one sub-transmission unit and the second connection end each time.
[0025] In this embodiment, the number of switching switches in the data transmission unit is greater, and the number of switching switches, the number of shared transmission lines, the number of third connection terminals and the number of GPIO ports are all the same. By outputting signals from different GPIO ports, the conductivity of each switching switch and each public transmission line in the overall data transmission unit is adjusted to achieve transmission of more types of target resources.
[0026] As an optional implementation of an embodiment of the present application, the resource transmission port is an analog to digital conversion (AD) interface of the control unit; the different data transmission interfaces of the external device include different sensor interfaces for collecting different working information of the external device; the different working information includes at least one or more of working current, working voltage, working impedance, working temperature, ambient humidity, external pressure, and ambient light intensity.
[0027] In this embodiment, taking the resource transmission port of the control unit as an AD interface as an example, the collection of working information of various external devices can be realized through one AD interface, thereby improving the flexibility and diversity of the control unit in obtaining working information.
[0028] As an optional implementation of the embodiment of the present application, the resource transmission port is a pulse width modulation (PWM) interface of the control unit; the different data transmission interfaces of the external device include interfaces for providing different PWM control signals to the external device.
[0029] In this embodiment, taking the resource transmission port of the control unit as a pulse width modulation PWM interface as an example, different PWM controls can be provided to external devices through one pulse width modulation PWM interface, thereby improving the flexibility and diversity of the control unit's control over PWM signals.
[0030] As an optional implementation of the embodiment of the present application, the number of the resource transmission ports is M, M is an integer greater than or equal to 2, and the number of the data transmission units is the same as the number of the resource transmission ports.
[0031] In this embodiment, the number of resource transmission ports of the control unit may be greater, and accordingly, the number of data transmission units that can provide data transmission may also be greater, thereby increasing the number of situations where multiple resource transmission ports coexist.
[0032] As an optional implementation of the embodiment of the present application, the resource transmission port is a communication receiving interface and a communication transmitting interface;
[0033] The number of the data transmission units is 2; the second connection end of one of the data transmission units is connected to the communication receiving interface, and the second connection end of the other data transmission unit is connected to the communication transmitting interface;
[0034] One of the data transmission units is further used to adjust the line conduction of the data transmission unit according to the signal output by the GPIO port, so that the data transmission unit conducts the communication transmission interface of the first external device;
[0035] The another data transmission unit is further used to adjust the line conduction of the data transmission unit according to the signal output by the GPIO port, so that the data transmission unit conducts the communication receiving interface of the first external device;
[0036] The control unit is further configured to communicate with the first external device via the communication receiving interface and the communication transmitting interface.
[0037] Switching between multiple external devices can be achieved through a communication receiving interface and a communication transmitting interface, so that the control unit can communicate with any one of the multiple external devices, thereby improving the flexibility of communication.
[0038] As an optional implementation of the embodiment of the present application, the third connection end of each of the data transmission units is connected to the same GPIO port.
[0039] In this embodiment, the third connection ends of different data transmission units can be connected to the same GPIO port, and corresponding signals can be transmitted to the third connection ends of multiple data transmission units through one GPIO port. This can reduce the use of GPIO ports on the control unit side and realize the control of multiple signals based on a smaller number of GPIO ports.
[0040] In another aspect, an embodiment of the present application provides an electronic device, comprising at least one data transmission control module as described in one of the above aspects. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0042] Figure 1 This is a schematic diagram of a use scenario of a control unit MCU involved in an exemplary embodiment of the present application;
[0043] Figure 2is a structural schematic diagram of a data transmission control module provided by an exemplary embodiment of the present application;
[0044] Figure 3 is a structural schematic diagram of a data transmission control module provided by an exemplary embodiment of the present application;
[0045] Figure 4 is a circuit structure diagram of a data transmission control module involved in an exemplary embodiment of the present application;
[0046] Figure 5 An exemplary embodiment of the present application relates to Figure 4 A schematic diagram of a circuit structure of a data transmission control module;
[0047] Figure 6 An exemplary embodiment of the present application relates to Figure 4 A schematic diagram of a circuit structure of another data transmission control module;
[0048] Figure 7 is a circuit structure diagram of a data transmission control module involved in an exemplary embodiment of the present application;
[0049] Figure 8 An exemplary embodiment of the present application relates to the above Figure 7 A schematic diagram of a circuit structure of another data transmission control module;
[0050] Fig. 9 An exemplary embodiment of the present application relates to the above Figure 7 A schematic diagram of a circuit structure of another data transmission control module;
[0051] Fig.10 It is a schematic diagram of the structure of an example of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0053] In the following description, many specific details are set forth to facilitate a full understanding of the present application, but the present application may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only part of the embodiments of the present application, rather than all of the embodiments.
[0054] The terms "first" and "second" in the specification and claims of this application are used to distinguish different objects rather than to describe a specific order of objects. For example, the first camera and the second camera are used to distinguish different cameras rather than to describe a specific order of cameras.
[0055] In the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way. In addition, in the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more.
[0056] The solution provided in the present application can be used in application scenarios in which a controller or control chip or control unit is used to perform corresponding control in an electronic device in daily production or daily life. For ease of understanding, the application scenarios involved in the embodiments of the present application are first briefly introduced below.
[0057] With the rapid development of science and technology, various control units are being used more and more widely in all walks of life. For example, common control units include MCU, central processing unit (CPU), graphics processing unit (GPU), etc. Taking MCU as an example, MCU can be used in electronic devices to control and collect different information.
[0058] Please refer to Figure 1 , which shows a schematic diagram of a use scenario of a control unit MCU involved in an exemplary embodiment of the present application. Figure 1 As shown, it includes a control unit MCU 101 and a pulse width modulation port 102. The control unit MCU 101 can provide various PWM signals that it can provide to the outside through each pulse width modulation port 102. For example, a first PWM signal can be provided through the pulse width modulation port 1, and a second PWM signal can be provided through the pulse width modulation port 2.
[0059] In the above Figure 1 In the scheme shown, in order to provide different pulse width modulation signals, the MCU can be provided with multiple pulse width modulation ports, each of which can provide a pulse width modulation signal, thereby achieving a multi-channel control effect. Figure 1The MCU in the system is equipped with 5 PWM ports. Developers can connect these 5 PWM ports to the devices or circuits that need to be provided, and output 5 PWM signals through the MCU to provide them to the devices or circuits connected to each PWM port. However, in this case, as external requirements change, if the MCU is required to provide 6 or even more PWM signals, the MCU with only 5 PWM ports cannot be used, and only MCUs with more PWM ports can be selected, which leads to the problem of frequent MCU replacement and low control flexibility.
[0060] In order to solve the technical problems existing in the above-mentioned related technologies, improve the control unit to cope with more resource transmission needs, and improve the flexibility of the control unit. This application provides a data transmission control module, which can design a data transmission unit to connect different data transmission interfaces of external devices respectively, and transmit through the same resource transmission port, so that one resource transmission port can meet the needs of multiple resource transmissions, which is more suitable for the development and application of the control unit.
[0061] Please refer to Figure 2 , which shows a schematic diagram of the structure of a data transmission control module provided by an exemplary embodiment of the present application. Figure 2 As shown, the data transmission control module includes: a control unit 201 and a data transmission unit 202 .
[0062] The control unit 201 includes a general purpose input and output GPIO port 201 a and a resource transmission port 201 b .
[0063] The data transmission unit 202 includes at least two first connection terminals 202a, a second connection terminal 202b and a third connection terminal 202c; the at least two first connection terminals 202a of the data transmission unit 202 are respectively used to connect to different data transmission interfaces of external devices; the second connection terminal 202b of the data transmission unit 202 is used to be electrically connected to the resource transmission port 201b; the third connection terminal 202c of the data transmission unit 202 is used to be electrically connected to the GPIO port 201a.
[0064] Optionally, the control unit 201 is used to control the signal output by the GPIO port 201a. For example, the signal output by the GPIO port 201a includes a high level signal or a low level signal, and the control unit can control whether the signal output by itself through the GPIO port 201a is a high level signal or a low level signal.
[0065] The data transmission unit 202 is used to receive the signal output by the GPIO port 201a through the third connection terminal 202c, and adjust the line conductivity of the data transmission unit according to the signal output by the GPIO port, so that the data transmission unit is conductive to different first connection terminals, and transmits the target resource through the second connection terminal and the resource transmission port; wherein the target resource is the resource provided by the data transmission interface of the external device connected to the currently conductive first connection terminal.
[0066] That is, the conduction conditions of the lines inside the data transmission unit 202 are different when the signals output by the GPIO port 201a are different. The data transmission unit 202 adjusts the conduction conditions of the lines inside itself so that different first connection ends are conducted with the second connection ends, and then the target resources can be transmitted to the resource transmission port 201b of the control unit 201, thereby outputting signals at different GPIO ports 201a, switching the conduction between different first connection ends and the second connection ends, and realizing the transmission requirements of one resource transmission port for multiple resources.
[0067] In summary, the data transmission control module provided in the present application includes: a control unit and a data transmission unit; the control unit is connected to different data transmission interfaces of an external device through various connection ports of the data transmission unit, and based on the signal output by the GPIO port, the conduction of the internal circuit of the data transmission unit is controlled, so that the data transmission unit can conduct different first connection terminals, and realize the transmission of target resources through different first connection terminals, second connection terminals and resource transmission ports, and the target resources are the resources provided by the data transmission interface of the external device connected to the currently conducted first connection terminal. When different types of resources need to be transmitted, it is sufficient to conduct the corresponding first connection terminal of the data transmission unit, so that the demand for more resource transmission can be met with a smaller number of resource transmission ports, which reduces the replacement of the control unit and improves the flexibility of the control unit.
[0068] In one possible implementation, the data transmission unit of the present solution includes a switching switch and a shared transmission line; the switching switch switches between different first connection ends and / or shared transmission lines, so that the line transmission target resource is transmitted between the first connection end, the shared transmission line, the second connection end, and the resource transmission port connected by the switching switch.
[0069] Please refer to Figure 3 , which shows a schematic diagram of the structure of a data transmission control module provided by an exemplary embodiment of the present application. Figure 3 As shown, the data transmission control module includes: a control unit 301 and a data transmission unit 302 .
[0070] The control unit 301 includes a general purpose input and output GPIO port 301 a and a resource transmission port 301 b .
[0071] The data transmission unit 302 includes at least two first connection terminals 302a, a second connection terminal 302b and a third connection terminal 302c; the at least two first connection terminals 302a of the data transmission unit 302 are respectively used to connect to different data transmission interfaces of external devices; the second connection terminal 302b of the data transmission unit 302 is used to be electrically connected to the resource transmission port 301b; the third connection terminal 302c of the data transmission unit 302 is used to be electrically connected to the GPIO port 301a.
[0072] In this embodiment, the data transmission unit 302 includes a switch 303 and a shared transmission line 304. The switch 303 is used to switch between different first connection terminals and / or shared transmission lines; the shared transmission line is used to transmit the target resource. That is, the switch 303 switches at different first connection terminals 302a and / or switches on the shared transmission line, thereby connecting different first connection terminals 302a with the shared transmission line, thereby realizing the mutual transmission of the target resource with the second connection terminal through the shared transmission line.
[0073] Optionally, the control unit 301 controls the signal output by the GPIO port 301a to be the same as above. Figure 2 The description is similar to that in , so it will not be repeated here.
[0074] The data transmission unit 302 is also used to adjust the switching of the switching switch 303 at different first connection terminals 302a and / or between the common transmission lines 304 according to the signal output by the GPIO port 301a, so that the target resource is transmitted to and from the second connection terminal 302b through the common transmission line 304. That is to say, the data transmission unit 302 receives the signal output by the GPIO port 301a through the third connection terminal 302c, and adjusts the line conduction of the data transmission unit 302 according to the signal output by the GPIO port 301a, which is equivalent to adjusting the conduction between the first connection terminal 302a, the switching switch 303 and the common transmission line 304, so as to select different first connection terminals 302a for conduction, and transmit the target resource through the second connection terminal 302b and the resource transmission port 301b.
[0075] In a possible implementation, the number of the switch 303 is one, and the number of the shared transmission line 304 is also one. Figure 4 , which shows a circuit structure diagram of a data transmission control module involved in an exemplary embodiment of the present application. Figure 4In the embodiment, the control unit 401 includes a GPIO port 401a and a resource transmission port 401b, the data transmission unit 402 includes a switching switch 403 and a common transmission line 404, and the data transmission unit 402 also includes two first connection terminals 402a, a second connection terminal 402b and a third connection terminal 402c.
[0076] In the above Figure 4 In the embodiment, the second connection end 402b is electrically connected to the resource transmission port 401b, and the third connection end 402c is electrically connected to the GPIO port 401a.
[0077] The first end of the switch 403 is used to switch between different first connection ends. The second end 403b of the switch 403 is electrically connected to the first end 404a of the shared transmission line 404, and the second end 403b of the switch 403 is also electrically connected to the third connection end 402c; the second end 404b of the shared transmission line 404 is electrically connected to the second connection end 402b. That is, inside the data transmission unit 402, the first end 403a of the switch 403 can switch between the two first connection ends 402a. By connecting the second end 403b of the switching switch 403 to the shared transmission line 404 and the second connection end 402b, the data transmission unit 402 can receive the signal output by the GPIO port 401a, and adjust the switching switch 403 to switch at different first connection ends 402a according to the signal output by the GPIO port, so that the target resource is transmitted through the second end 403b of the switching switch 403 and the first end 404a of the shared transmission line 404, and through the second end 404b of the shared transmission line 404 and the second connection end 402b.
[0078] for example, Figure 4 The control unit is MCU, and the resource transmission port can be AD port. Figure 4 In the two first connection terminals 402a, the data transmission unit 402 controls the first terminal of the switch 403 to connect to the first terminal of the switch 403 when the signal output by the GPIO port 401a is a high level signal. Figure 4 At this time, what is turned on is the path between the first connection terminal 402a located relatively above and the shared transmission line 404 and the second connection terminal 402b. If the data transmission interface of the external device connected to the first connection terminal 402a located relatively above transmits temperature, then the temperature data (i.e., the target resource) can be transmitted through the turned-on path.
[0079] Alternatively, when the data transmission unit 402 receives a low level signal output by the GPIO port 401a, it controls the first end of the switch 403 to Figure 4 The first connection terminal 402a at the relatively lower part is connected to the first connection terminal 402a at the relatively lower part. At this time, what is turned on is the path between the first connection terminal 402a at the relatively lower part and the shared transmission line 404 and the second connection terminal 402b. If the data transmission interface of the external device connected to the first connection terminal 402a at the relatively lower part transmits the working voltage of the external device, then the working voltage data (i.e., the target resource) of the external device can be transmitted through the turned-on path.
[0080] Above Figure 4 What is shown is an implementation method, which can achieve the effect of transmitting two resources through one resource transmission port. In one possible implementation method, there are multiple resource requirements that actually need to be transmitted. In order to provide more types of resource transmission, a larger number of switching switches and shared transmission lines can be set in the above-mentioned data transmission unit, so that multiple switching switches are combined to turn on one of the first connection ends to transmit the resources of the external device provided by the turned-on first connection end.
[0081] Optionally, in the data transmission unit provided in the present application, the number of switching switches may be N; and the number of switching switches, the number of shared transmission lines, the number of third connection terminals and the number of GPIO ports are the same; N is a positive integer greater than or equal to 2; the data transmission unit is composed of N levels of sub-transmission units, each level of sub-transmission unit includes a switching switch and a shared transmission line; the output end of the previous level sub-transmission unit is the input end of the next level sub-transmission unit; the first end of the switching switch in the next level sub-transmission unit switches between a first connection terminal and the output end of the previous level sub-transmission unit; the second end of the switching switch in each level of sub-transmission unit is electrically connected to a GPIO port; the data transmission unit is also used to adjust the route connected by the switching switch in each sub-transmission unit according to the signals output by each GPIO port, so that the data transmission unit turns on the first connection terminal connected to the switching switch in a sub-transmission unit and the second connection terminal each time.
[0082] Taking N=3 as an example, please refer to Figure 5 , which shows that an exemplary embodiment of the present application involves Figure 4 A schematic diagram of the circuit structure of a data transmission control module. Figure 5In the embodiment, the control unit 501 includes three GPIO ports 501a (GPIO_1, GPIO_2, GPIO_3) and a resource transmission port 501b, and the data transmission unit 502 includes three switching switches and three common transmission lines. The data transmission unit 502 also includes four first connection terminals 502a, one second connection terminal 502b and three third connection terminals 502c.
[0083] In the data transmission unit 502, it is composed of three levels of sub-transmission units, according to Figure 5 The division method in the embodiment is divided into a first-level sub-transmission unit 503, a second-level sub-transmission unit 504, and a third-level sub-transmission unit 505. Each level of sub-transmission unit includes a switch and a common transmission line; and the output end of the previous level of sub-transmission unit is the input end of the next level of sub-transmission unit. Figure 5 In the figure, in addition to the first end of the switching switch of the first-level sub-transmission unit 503 switching at the two first connection ends, the first ends of the switching switches of the following two levels of sub-transmission units can switch between a first connection end and the output end of the previous level of sub-transmission unit, and receive the signals output by the three GPIO ports through the three third connection ends respectively, thereby controlling the conduction of each corresponding level of sub-transmission units, and realizing the connection between one of the first connection ends and the resource transmission port through the multi-level sub-transmission units, so that the target resource transmitted by the first connection end can interact with the control unit.
[0084] In the above Figure 5 In this example, three switches are used. Figure 5 The structure can realize the switching of the four first connection terminals, that is, it can realize the transmission of the target resources provided by the four first connection terminals through one resource transmission port, so as to achieve the multiplexing of one resource transmission port in the control unit. For example, by controlling the signal of GPIO_1 to be a high-level signal, the switch device in the three-level sub-transmission unit 505 can turn on the first connection terminal 502a for collecting voltage, so as to collect the working voltage of the external device. By controlling the signal of GPIO_1 to be a low-level signal and the signal of GPIO_2 to be a high-level signal; wherein, when the signal of GPIO_1 is a low-level signal, the switch device in the three-level sub-transmission unit 505 can be controlled to switch to the shared transmission line connection with the two-level sub-transmission unit 504, and the output terminal of the two-level sub-transmission unit 504 can be turned on. When the signal of GPIO_2 is a high-level signal, the switch device in the two-level sub-transmission unit 504 can be controlled to switch to the first connection terminal 502a for current collection, so as to collect the working current of the external device.
[0085] By controlling the signal of GPIO_1 to be a low level signal, the signal of GPIO_2 to be a low level signal, and the signal of GPIO_3 to be a high level signal; wherein, the effect of the signal conduction of GPIO_1 and GPIO_2 is the same as in the previous example, when the signal of GPIO_3 is a high level signal, the switch device in the first-level sub-transmission unit 503 can be controlled to switch to the first connection end 502a for air pressure collection, so as to collect the external air pressure of the external device. By controlling the signal of GPIO_1 to be a low level signal, the signal of GPIO_2 to be a low level signal, and the signal of GPIO_3 to be a low level signal; wherein, the signal of GPIO_3 is a low level signal, the switch device in the first-level sub-transmission unit 503 can be controlled to switch to the first connection end 502a for temperature collection, so as to collect the external ambient temperature of the external device or the current device temperature of the external device. Through the above example, if the resource transmission port is the AD port of the control unit, then, it is possible to collect multiple data through one AD, thereby improving the flexibility of the control unit in collecting data.
[0086] Of course, the above N can also be equal to other positive integers. For example, when N=2, please refer to Figure 6 , which shows that an exemplary embodiment of the present application involves Figure 4 A schematic diagram of the circuit structure of another data transmission control module. Figure 6 In the embodiment, the control unit 601 includes two GPIO ports 601a (GPIO_1 and GPIO_2 respectively) and a resource transmission port 601b, and the data transmission unit 602 includes two switching switches and two common transmission lines. The data transmission unit 602 also includes three first connection terminals 602a, a second connection terminal 602b and two third connection terminals 602c.
[0087] In the data transmission unit 602, it is composed of 2-level sub-transmission units, according to Figure 6 The division method in the example is divided into a first-level sub-transmission unit 603 and a second-level sub-transmission unit 604. Each level of the sub-transmission unit includes a switch and a common transmission line; and the output end of the first-level sub-transmission unit is the input end of the second-level sub-transmission unit. Figure 6 In the embodiment, in addition to the first end of the switching switch of the first-level sub-transmission unit 603 switching at the two first connection ends, the first end of the switching switch of the second-level sub-transmission unit 604 can switch between a first connection end and the output end of the first-level sub-transmission unit 603, and receive the signals output by the two GPIO ports through the two third connection ends respectively, thereby controlling the conduction of each corresponding level of sub-transmission units, and realizing the conduction of the path between one of the first connection ends and the resource transmission port through the multi-level sub-transmission units, so that the target resource transmitted by the first connection end can interact with the control unit.
[0088] For example, by controlling the signal of GPIO_1 to be a high-level signal, the switch device in the secondary sub-transmission unit 604 can turn on the first connection terminal 602a for collecting voltage, so as to collect the working voltage of the external device. By controlling the signal of GPIO_1 to be a low-level signal and the signal of GPIO_2 to be a high-level signal; wherein, when the signal of GPIO_1 is a low-level signal, the switch device in the secondary sub-transmission unit 604 can be controlled to switch to the shared transmission line connection with the primary sub-transmission unit 603, and the output end of the primary sub-transmission unit 603 can be turned on. When the signal of GPIO_2 is a high-level signal, the switch device in the primary sub-transmission unit 603 can be controlled to switch to the first connection terminal 602a for current collection, so as to collect the working current of the external device. If the signal of GPIO_1 is a low-level signal and the signal of GPIO_2 is a low-level signal, the working state of the secondary sub-transmission unit 604 is consistent with the above description. In the primary sub-transmission unit 603, the switch device in the primary sub-transmission unit 603 can be controlled to switch to the first connection terminal 602a for temperature collection, so as to collect the external ambient temperature of the external device.
[0089] That is to say, for N switching switches, what can be achieved is the control of N+1 first connection terminals being turned on. Developers can design corresponding data transmission units based on actual needs. That is, for the case where N is equal to other positive integers, the design can also refer to the above-mentioned cascade circuit, which will not be elaborated here.
[0090] Optionally, the control unit may be an MCU, and the resource transmission port may be an analog-to-digital conversion AD interface of the control unit; different data transmission interfaces of external devices include different sensor interfaces for collecting different working information of external devices; different working information includes at least one or more of working current, working voltage, working impedance, working temperature, ambient humidity, external pressure, and ambient light intensity.
[0091] Of course, the resource transmission port may also be a pulse width modulation (PWM) interface of the control unit; different data transmission interfaces of external devices include interfaces that provide different PWM control signals to the external devices.
[0092] In summary, the data transmission control module provided in the present application includes: a control unit and a data transmission unit; the control unit is connected to different data transmission interfaces of an external device through various connection ports of the data transmission unit, and based on the signal output by the GPIO port, the conduction of the internal circuit of the data transmission unit is controlled, so that the data transmission unit can conduct different first connection terminals, and realize the transmission of target resources through different first connection terminals, second connection terminals and resource transmission ports, and the target resources are the resources provided by the data transmission interface of the external device connected to the currently conducted first connection terminal. When different types of resources need to be transmitted, it is sufficient to conduct the corresponding first connection terminal of the data transmission unit, so that the demand for more resource transmission can be met with a smaller number of resource transmission ports, which reduces the replacement of the control unit and improves the flexibility of the control unit.
[0093] In a possible implementation, the number of resource transmission ports of the controller is M, where M is an integer greater than or equal to 2. The developer can set the number of data transmission units to be the same as the number of resource transmission ports, so that for each resource transmission port, similar operations as above can be implemented. Figure 5 and Figure 6 The switching of a resource transmission port to multiple first connection ends shown meets more requirements.
[0094] Below, it is assumed that there are two resource transmission ports, and one of the two resource transmission ports is a communication receiving interface, and the other is a communication transmitting interface. Optionally, in this case, the number of data transmission units set in the data transmission control module is 2; the second connection end of one of the data transmission units is connected to the communication receiving interface, and the second connection end of the other data transmission unit is connected to the communication transmitting interface; one of the data transmission units is also used to adjust the line conductivity of the data transmission unit according to the signal output by the GPIO port, so that the data transmission unit is connected to the communication transmitting interface of the first external device; the other data transmission unit is also used to adjust the line conductivity of the data transmission unit according to the signal output by the GPIO port, so that the data transmission unit is connected to the communication receiving interface of the first external device; the control unit is also used to communicate with the first external device through the communication receiving interface and the communication transmitting interface.
[0095] Please refer to Figure 7 , which shows a circuit structure diagram of a data transmission control module involved in an exemplary embodiment of the present application. Figure 7In the figure, the control unit 701 includes two GPIO ports 701a (GPIO_1 and GPIO_2 respectively) and two resource transmission ports 701b. The resource transmission port 701b at the upper side is a communication receiving interface (Receive, RX), and the resource transmission port 701b at the lower side is a communication transmitting interface (Transmit, TX).
[0096] In the above Figure 7 The device also includes a data transmission unit 1 702 and a data transmission unit 2 703, wherein at least two first connection terminals 702a of the data transmission unit 1 702 are respectively used to connect to the communication receiving interfaces of different external devices; the second connection terminal 702b of the data transmission unit 1 702 is used to be electrically connected to the RX port; and the third connection terminal 702c of the data transmission unit 1 702 is used to be electrically connected to the GPIO_1 port. At least two first connection terminals 703a of the data transmission unit 2 703 are respectively used to connect to the communication transmitting interfaces of different external devices; the second connection terminal 703b of the data transmission unit 2 703 is used to be electrically connected to the TX port; and the third connection terminal 703c of the data transmission unit 2 703 is used to be electrically connected to the GPIO_1 port.
[0097] Optionally, the control unit 701 controls the output signals of the two GPIO ports 701a to be high-level signals or low-level signals, respectively. For example, when the control unit 701 controls the output signal of GPIO_1 to be a high-level signal, the line conduction of the data transmission unit is adjusted, and one of the at least two first connection terminals 702a of the data transmission unit 1 702 is connected to the communication receiving interface of the external device 1; when the control unit 701 controls the output signal of GPIO_1 to be a low-level signal, the line conduction of the data transmission unit is adjusted, and one of the at least two first connection terminals 702a of the data transmission unit 1 702 is connected to the communication receiving interface of the external device 2. The other data transmission unit 2 is similar to this and will not be repeated here.
[0098] It should be noted that the internal structure of the data transmission unit in this embodiment can be the same as that in the above Figure 5 or Figure 6 The structures in are the same, both of which are combined with the switching switch and the conduction of the shared transmission line, so that the data transmission unit can transmit the required data resources with the resource transmission port of the control unit.
[0099] In the above Figure 7In the figure, the RX of the control unit is connected to the RX of the external device 1, so that the resources of the RX of the external device 1 can be collected. However, in general, when the control unit communicates with an external device, it needs to connect to the RX and TX of the external device through its own RX and TX, that is, when communicating with each other, the RX of the control unit can be connected to the TX of the external device, and the TX of the control unit can be connected to the RX of the external device, so as to send the required resources to the external device.
[0100] Please refer to Figure 8 , which shows that an exemplary embodiment of the present application relates to the above Figure 7 A schematic diagram of the circuit structure of another data transmission control module. Figure 8 In the embodiment, the control unit 801 includes two GPIO ports 801a (GPIO_1 and GPIO_2 respectively), an RX port 801b, and a TX port 801c. The data transmission unit 1 802 and the data transmission unit 2 803 have one switching switch each, and one shared transmission line. The data transmission unit 1 802 also has two first connection terminals 802a (first connection terminal 1 and first connection terminal 2), one second connection terminal 802b, and one third connection terminal 802c. The specific connection method is as follows: Figure 8 as shown in .
[0101] If the control unit 801 controls GPIO_1 to output a high-level signal, then the data transmission unit 1 802 will receive it through its own third connection terminal 802c, and control its own switch to switch to the first connection terminal 1, so that the first connection terminal 1 and the communication transmission interface of the external device 1 are connected, so that the external device 1 can transmit a communication signal and enter the interior of the data transmission unit 1, and finally conduct to the communication receiving interface of the control unit through the switching switch of the data transmission unit 1 and the shared transmission line, so as to realize the communication between the two. If the control unit 801 controls GPIO_1 to output a low-level signal, then the data transmission unit 1 802 will receive it through the third connection terminal, and control the switch to switch to the first connection terminal 2, so that the first connection terminal 2 and the communication transmission interface of the external device 2 are connected, so that the external device 2 can transmit a communication signal and enter the interior of the data transmission unit 1, and finally conduct to the communication receiving interface of the control unit through the switching switch of the data transmission unit 1 and the shared transmission line, so as to realize the communication between the two.
[0102] Similarly, if the control unit 801 controls GPIO_2 to output a high-level signal, then the data transmission unit 2 803 will also receive it through its own third connection terminal, and control its own switch to switch to the first connection terminal 3, so that the communication transmission interface of the control unit transmits the communication signal through the first connection terminal 3 and the communication receiving interface of the external device 1, and then enters the interior of the data transmission unit 1, and finally conducts to the communication receiving interface of the external device 3 through the switching switch of the data transmission unit 1 and the shared transmission line, so that the communication between the two is realized. If the control unit 801 controls GPIO_2 to output a low-level signal, then the data transmission unit 2 803 will also receive it through its own third connection terminal, and control its own switch to switch to the first connection terminal 4, so that the communication receiving interface of the external device 2 is connected through the first connection terminal 4, and the communication transmission interface of the control unit transmits the communication signal, and then enters the interior of the data transmission unit 1, and finally conducts to the communication receiving interface of the external device 2 through the switching switch of the data transmission unit 1 and the shared transmission line, so that the communication between the two is realized.
[0103] The above is an example in which the control unit can communicate with two external devices through a set of resource transmission ports (RX and TX). In actual applications, if it is necessary to communicate with three or even more external devices, more data transmission units can be set accordingly, which is not limited here.
[0104] Through the above Figure 8 In the structure shown, the control unit can be connected to the RX of the external device 1 through its own TX, and can also be connected to the TX of the external device 2 through its own RX, which can be determined by the needs of the control unit. That is, if the control unit needs to send data to the external device 1 and needs to receive data sent by the external device 2, then the conduction of the data transmission unit can be adjusted so that the TX of the control unit is connected to the RX of the external device 1, and the RX of the control unit is connected to the TX of the external device 2.
[0105] In a possible implementation, the third connection end of each of the above data transmission units is connected to the same GPIO port. Figure 7 or Figure 8 In order to ensure that the first connection end of each data transmission unit is connected to the same external device, the third connection ends of the two data transmission units can be connected to a GPIO port (GPIO_1 or GPIO_2). Figure 8 It is also possible to omit the use of a GPIO.
[0106] In one possible implementation, in order to enable the control unit to communicate with four external devices through a group of resource transmission ports (including RX and TX ports), the present solution can provide a data transmission unit for each resource transmission port, and connect the external device to be transmitted through the corresponding data transmission unit. The data transmission unit that controls the switching between the communication receiving interface and the communication transmitting interface of the two external devices can use the same GPIO port.
[0107] Please refer to Fig. 9 , which shows that an exemplary embodiment of the present application relates to the above Figure 7 A circuit diagram of another data transmission control module. Fig. 9 In the figure, the control unit 901 includes three GPIO ports 901a (GPIO_1, GPIO_2, GPIO_3) and two resource transmission ports 901b. The resource transmission port 901b at the upper side is the RX port, and the resource transmission port 901b at the lower side is the TX port.
[0108] In the above Fig. 9 In the embodiment, the data transmission unit 902 includes three third connection terminals 902c, and the three third connection terminals 902c are respectively connected to a GPIO port. After receiving the signals output by the three GPIO ports controlled by the control unit, the data transmission unit 902 can conduct the internal circuits to conduct the external device 1, the external device 2, the external device 3, or the external device 4 to communicate with the MCU. The switching communication scenario with four external devices is realized through a set of resource transmission ports, and the use flexibility of the MCU is improved.
[0109] Optionally, the specific structure of the data transmission unit 902 can refer to the above Figures 5 to 8 The structure of each data transmission unit, in the data transmission unit 902, is divided into three data transmission units according to a switching switch and a common transmission line. Therefore, there will be three independent third connection terminals connected to the GPIO port, but they are regarded as a whole in this embodiment.
[0110] It should be noted that the embodiments of the above figures can be combined with each other. The examples of resource transmission ports are exemplary, and there can be more types of resource transmission ports in actual applications, such as digital to analog (DA) conversion interface, PWM modulation port and other interfaces.
[0111] In summary, the data transmission control module provided in the present application includes: a control unit and a data transmission unit; the control unit is connected to different data transmission interfaces of an external device through various connection ports of the data transmission unit, and based on the signal output by the GPIO port, the conduction of the internal circuit of the data transmission unit is controlled, so that the data transmission unit can conduct different first connection terminals, and realize the transmission of target resources through different first connection terminals, second connection terminals and resource transmission ports, and the target resources are the resources provided by the data transmission interface of the external device connected to the currently conducted first connection terminal. When different types of resources need to be transmitted, it is sufficient to conduct the corresponding first connection terminal of the data transmission unit, so that the demand for more resource transmission can be met with a smaller number of resource transmission ports, which reduces the replacement of the control unit and improves the flexibility of the control unit.
[0112] In addition, in the process of controlling by the control unit, for the control of RX and TX of the same external device, the signal of one GPIO port can be used to ensure switching to the scene of communicating with an external device.
[0113] Optionally, the present application further provides an electronic device, and the data transmission control module provided in each of the above embodiments can be applied to the electronic device. For example, the structure of the above data transmission control module is implemented in the electronic device. The electronic device includes at least one Figures 2 to 9 The data transmission control module involved in the embodiment.
[0114] Please refer to Fig.10 , is a schematic diagram of an example structure of an electronic device provided in an embodiment of the present application. Fig.10 The electronic device shown includes components such as a processor 1010 , a memory 1020 , a transceiver 1030 , a display unit 1040 , an input unit 1050 , a sensor 1060 , an audio circuit 1070 , and a power module 1080 .
[0115] The processor 1010 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 1020, and calling data stored in the memory 1020, the processor 1010 performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 1010 may include one or more processing units; optionally, the processor 1010 may integrate an application processor, which mainly processes operating devices, user interfaces, and application programs, etc. Of course, other processors may also be included, which are not listed here one by one.
[0116] The memory 1020 can be used to store software programs and modules. The processor 1010 executes various functional applications and data processing of the electronic device by running the software programs and modules stored in the memory 1020. The memory 1020 may mainly include a program storage area and a data storage area, wherein the program storage area may store operating devices, applications required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device (such as audio data, phone book, etc.), etc. In addition, the memory 1020 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0117] The transceiver 1030 can provide wireless communication solutions for electronic devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The transceiver 1030 can be one or more devices integrating at least one communication processing module, for example, the antenna and the baseband processor are integrated into the transceiver 1030, or the antenna and the modem processor are integrated into the transceiver 1030, etc., which are not limited here. The signal transmitting device in the transceiver 1030 can adopt the data transmission control module of the present application.
[0118] The display unit 1040 may be used to display information input by the user or information provided to the user and various menus of the electronic device. The display unit 1040 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc., which is not limited here.
[0119] The input unit 1050 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the electronic device. Specifically, the input unit 1050 can collect the user's operations on or near it, and drive the corresponding connection device according to a pre-set program. In addition, the input unit 1050 may include a touch panel, which can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel, the input unit 1050 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of function keys (such as volume control keys, switch keys, etc.), trackballs, joysticks, etc.
[0120] The electronic device may also include at least one sensor 1060, such as a gyroscope sensor, a motion sensor, and other sensors. The motion sensor may include an acceleration sensor for detecting the magnitude of acceleration in all directions, and the magnitude and direction of gravity when stationary, which may be used for applications for identifying the posture of the electronic device, such as horizontal and vertical screen switching, related games, magnetometer posture calibration, etc. As for other sensors that may be configured in the electronic device, such as a pressure gauge, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., they will not be described in detail here.
[0121] The audio circuit 1070 may include a speaker and a microphone, and may provide an audio interface between a user and an electronic device. The audio circuit 1070 may transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 1070 and converted into audio data, and then the audio data is output to the processor 1010 for processing, and then sent to another electronic device through the video circuit, or the audio data is output to the memory 1020 for further processing.
[0122] The electronic device also includes a power module 1080 for supplying power to various components. Optionally, the power module 1080 can be logically connected to the processor 1010 through a power management device, so that functions such as charging, discharging, and power consumption management can be managed through the power management device.
[0123] Although not shown, the electronic device may further include a camera. Optionally, the camera may be located at the front or rear of the electronic device, which is not limited in the present embodiment.
[0124] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0125] It should be noted that: when the device provided in the above embodiment performs the control of the data transmission control module, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0126] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0127] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0128] The above is an example introduction to a data transmission control module disclosed in an embodiment of the present application. Individual examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only configured to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A data transmission control module, characterized in that: The data transmission control module includes: a control unit and a data transmission unit; The control unit includes a general purpose input and output (GPIO) port and a resource transmission port; The data transmission unit includes at least two first connection ends, a second connection end and a third connection end; the at least two first connection ends of the data transmission unit are respectively used to connect to different data transmission interfaces of an external device; the second connection end of the data transmission unit is used to be electrically connected to the resource transmission port; the third connection end of the data transmission unit is used to be electrically connected to the GPIO port; the different data transmission interfaces of the external device include different sensor interfaces for collecting different working information of the external device; the different working information includes at least two of working current, working voltage, working impedance, working temperature, ambient humidity, external pressure, and ambient light intensity; The control unit is used to control the signal output by the GPIO port; The data transmission unit is used to receive the signal output by the GPIO port through the third connection end, and adjust the line conduction of the data transmission unit according to the signal output by the GPIO port, so that the data transmission unit conducts different first connection ends, and transmits the target resource through the second connection end and the resource transmission port; wherein the target resource is a resource provided by the data transmission interface of the external device connected to the currently conducted first connection end; Wherein, the data transmission unit switches the conduction between different first connection terminals and second connection terminals when the GPIO port outputs different signals, so as to realize the transmission demand of a resource transmission port for multiple resources.
2. The data transmission control module according to claim 1, characterized in that: The data transmission unit includes a switch and a shared transmission line; The switch is used for switching between different first connection ends and / or shared transmission lines; The shared transmission line is used to transmit the target resource; The data transmission unit is further used to adjust the switching switch to switch between different first connection ends and / or shared transmission lines according to the signal output by the GPIO port, so that the target resource is transmitted to and from the second connection end through the shared transmission line.
3. The data transmission control module according to claim 2, characterized in that: The number of the switching switches is one, and the number of the shared transmission lines is one; The first end of the switch is used for switching at different first connection ends; The second end of the switching switch is electrically connected to the first end of the common transmission line, and the second end of the switching switch is also electrically connected to the third connection end; the second end of the common transmission line is electrically connected to the second connection end; The data transmission unit is also used to adjust the switching of the switching switch at different first connection ends according to the signal output by the GPIO port, so that the target resource is transmitted through the second end of the switching switch and the first end of the common transmission line, and is transmitted through the second end of the common transmission line and the second connection end.
4. The data transmission control module according to claim 2, characterized in that: The number of the switching switches is N; and the number of the switching switches, the number of the shared transmission lines, the number of the third connection terminals and the number of the GPIO ports are the same; N is a positive integer greater than or equal to 2; The data transmission unit is composed of N-level sub-transmission units, each level of sub-transmission unit includes a switch and a common transmission line; the output end of the previous level of sub-transmission unit is the input end of the next level of sub-transmission unit; The first end of the switch in the next-stage sub-transmission unit is switched between a first connection end and an output end of the previous-stage sub-transmission unit; the second end of the switch in each stage of the sub-transmission unit is electrically connected to a GPIO port; The data transmission unit is also used to adjust the route of the switching switch in each sub-transmission unit according to the signal output by each of the GPIO ports, so that the data transmission unit conducts the first connection end connected to the switching switch in one sub-transmission unit and the second connection end each time.
5. The data transmission control module according to any one of claims 1 to 4, characterized in that: The resource transmission port is the analog-to-digital conversion AD interface of the control unit.
6. The data transmission control module according to any one of claims 1 to 4, characterized in that: The resource transmission port is a pulse width modulation (PWM) interface of the control unit; and the different data transmission interfaces of the external device include interfaces for providing different PWM control signals to the external device.
7. The data transmission control module according to claim 1, characterized in that: The number of the resource transmission ports is M, where M is an integer greater than or equal to 2, and the number of the data transmission units is the same as the number of the resource transmission ports.
8. The data transmission control module according to claim 7, characterized in that: The resource transmission port is a communication receiving interface and a communication transmitting interface; The number of the data transmission units is 2; the second connection end of one of the data transmission units is connected to the communication receiving interface, and the second connection end of the other data transmission unit is connected to the communication transmitting interface; One of the data transmission units is further used to adjust the line conduction of the data transmission unit according to the signal output by the GPIO port, so that the data transmission unit conducts the communication transmission interface of the first external device; The another data transmission unit is further used to adjust the line conduction of the data transmission unit according to the signal output by the GPIO port, so that the data transmission unit conducts the communication receiving interface of the first external device; The control unit is further configured to communicate with the first external device via the communication receiving interface and the communication transmitting interface.
9. The data transmission control module according to claim 7, characterized in that: The third connection end of each of the data transmission units is connected to the same GPIO port.
10. An electronic device, characterized in that: The electronic device comprises at least one data transmission control module according to any one of claims 1 to 9.
Citation Information
Patent Citations
Multi-serial-port switching debugging device and debugging method for price tag base station and computer readable storage medium
CN112418367A
Power supply equipment operation and maintenance system
CN117474517A