Communication conversion circuit and method and electronic equipment
By adopting communication conversion circuits in the system, using channel switching circuits and interface conversion circuits to conduct signal transmission channels according to the interface status, the problem of the system needing to connect multiple communication interfaces but insufficient resources is solved, and the utilization rate of the interfaces is improved.
Patent Information
- Application Number
- CN202410564953.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-08
- Publication Date
- 2024-09-10
AI Technical Summary
In the existing technology, when the system needs to connect to multiple communication interfaces but cannot support them, it converts them through multiple one-to-one methods, resulting in excessive use of interface resources and low utilization.
A communication conversion circuit is adopted, including a first communication interface, a plurality of second communication interfaces, a channel switching circuit and a plurality of interface conversion circuits. The channel switching circuit conducts the signal transmission channel according to the interface status, so that the interface conversion circuit realizes communication conversion and saves the system. resource.
It realizes the conversion between one communication interface and multiple communication interfaces of the system, improves the utilization of the interface and saves system resources.
Smart Images

Figure CN118626425A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a communication conversion circuit, method and electronic equipment. Background Art
[0002] Communication conversion can convert a certain type of communication interface into another type of communication interface, thereby realizing interconnection and intercommunication between different types of communication interfaces. In the prior art, a commonly used communication conversion method is to convert different types of communication interfaces one-to-one, such as UART interface to RS485 interface, UART interface to RS232 interface, etc. However, when a system needs to connect multiple communication interfaces, and the system itself cannot support the above communication interfaces, the conversion between different types of interfaces is realized by using multiple one-to-one methods, which will occupy a large amount of system interface resources, resulting in low interface utilization. Summary of the invention
[0003] The main purpose of the present invention is to provide a communication conversion circuit, method and electronic equipment, aiming to improve the utilization rate of the interface.
[0004] To achieve the above object, the present invention provides a communication conversion circuit, comprising:
[0005] a first communication interface;
[0006] a plurality of second communication interfaces;
[0007] A plurality of interface conversion circuits, wherein the first signal transmission ends of the plurality of interface conversion circuits are connected to the plurality of second communication interfaces in a one-to-one correspondence;
[0008] A channel switching circuit, wherein a first connection end of the channel switching circuit is connected to the first communication interface, and multiple second connection ends of the channel switching circuit are connected one-to-one with second signal transmission ends of multiple interface conversion circuits; the channel switching circuit is used to conduct a signal transmission channel between one of the multiple second communication interfaces and the first communication interface according to the access status of the multiple second communication interfaces, so that the corresponding interface conversion circuit realizes communication conversion between the two.
[0009] In one embodiment, the channel switching circuit is a logic circuit.
[0010] In one embodiment, the channel switching circuit includes:
[0011] a first resistor, wherein a first end of the first resistor is connected to the power supply end, and a second end of the first resistor is connected to the first communication interface in a one-to-one correspondence;
[0012] A plurality of diodes, anodes of the plurality of diodes are connected to a common end of the first resistor and the first communication interface, and cathodes of the plurality of diodes are connected to second signal transmission ends of the plurality of interface conversion circuits.
[0013] In one embodiment, the plurality of interface conversion circuits are interface conversion circuits of different types, interface conversion circuits of the same type, or a combination of a plurality of interface conversion circuits of different types and a plurality of interface conversion circuits of the same type.
[0014] In one embodiment, the communication conversion circuit also includes a control circuit, which is used to control the signal transmission channel between one of the multiple second communication interfaces and the first communication interface when the multiple second communication interfaces are in an access state, so that the corresponding interface conversion circuit can realize the communication conversion between the two.
[0015] In one embodiment, the control circuit is further used to control the signal transmission channel between one of the plurality of second communication interfaces and the first communication interface to be connected according to a preset rule, so that the corresponding interface conversion circuit can realize the communication conversion between the two.
[0016] In one embodiment, the preset rule includes switching on a signal transmission channel between one of the plurality of second communication interfaces and the first communication interface in turn according to a preset period.
[0017] In one implementation, the preset rule includes conducting a signal transmission channel between the second communication interface with the highest priority among the plurality of second communication interfaces and the first communication interface according to a preset priority.
[0018] The present invention also proposes a communication conversion method, using the communication conversion circuit, the communication conversion circuit comprising a first communication interface, a plurality of second communication interfaces and a plurality of interface conversion circuits; the first communication interface is electrically connected to the plurality of interface conversion circuits respectively, and the first signal transmission ends of the plurality of interface conversion circuits are connected to the plurality of second communication interfaces in a one-to-one correspondence;
[0019] The communication conversion method comprises:
[0020] When the plurality of second communication interfaces are in an access state, a signal transmission channel between one of the plurality of second communication interfaces and the first communication interface is controlled to be connected, so that the corresponding interface conversion circuit realizes communication conversion between the two.
[0021] The present invention also provides an electronic device, which includes the communication conversion circuit and / or utilizes the communication conversion method.
[0022] The technical solution of the present invention adopts a communication conversion circuit, including a first communication interface, multiple second communication interfaces, a channel switching circuit and multiple interface conversion circuits, wherein the first signal transmission ends of the multiple interface conversion circuits are connected to the multiple second communication interfaces in a one-to-one correspondence, the first connection end of the channel switching circuit is connected to the first communication interface, and the multiple second connection ends of the channel switching circuit are connected to the second signal transmission ends of the multiple interface conversion circuits in a one-to-one correspondence. The channel switching circuit can, according to the access status of the multiple second communication interfaces, conduct the signal transmission channel between one of them and the first communication interface, so that the corresponding interface conversion circuit can realize the communication conversion between the two. In this way, when a system needs to connect multiple communication interfaces, and the system itself cannot support the above communication interfaces, the above circuit can realize the conversion between one communication interface of the system and multiple communication interfaces, saving the interface resources of the system and improving the utilization rate of the interface. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0024] Figure 1 A schematic diagram of the structure of an embodiment of a communication conversion circuit provided by the present invention;
[0025] Figure 2 A schematic diagram of the structure of another embodiment of the communication conversion circuit provided by the present invention;
[0026] Figure 3 A schematic diagram of the structure of another embodiment of the communication conversion circuit provided by the present invention;
[0027] Figure 4 A schematic diagram of the structure of another embodiment of the communication conversion circuit provided by the present invention;
[0028] Figure 5 A schematic diagram of the structure of an embodiment of a communication conversion method provided by the present invention.
[0029] Description of Figure Numbers:
[0030] 10. First communication interface; 21~2N. First second communication interface~Nth second communication interface; 31~3N. First interface conversion circuit~Nth interface conversion circuit; 40. Channel switching circuit; R1. First resistor; D1~DN. First diode~Nth diode; VCC. Power supply terminal; 50. Control circuit.
[0031] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0032] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0033] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components in a certain specific posture. If the specific posture changes, the directional indication will also change accordingly.
[0034] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features limited to "first" and "second" may explicitly or implicitly include at least one of the features. In addition, if "and / or" or "and / or" appears in the full text, its meaning includes three parallel solutions. Taking "A and / or B" as an example, it includes solution A, solution B, or solutions that satisfy both A and B. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in this field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0035] Communication conversion can convert a certain type of communication interface into another type of communication interface, thereby realizing interconnection and intercommunication between different types of communication interfaces. In the prior art, a commonly used communication conversion method is to convert different types of communication interfaces one-to-one, such as UART interface to RS485 interface, UART interface to RS232 interface, etc. However, when a system needs to connect multiple communication interfaces, and the system itself cannot support the above communication interfaces, the conversion between different types of interfaces is realized by using multiple one-to-one methods, which will occupy a large amount of system interface resources, resulting in low interface utilization.
[0036] In order to solve the above problems, the present invention provides a communication conversion circuit.
[0037] See also Figure 1In one embodiment of the present invention, the communication conversion circuit includes a first communication interface 10, multiple second communication interfaces, a channel switching circuit 40 and multiple interface conversion circuits. Among them, the multiple second communication interfaces include a first second communication interface 21 to an Nth second communication interface 2N, and the multiple interface conversion circuits include a first interface conversion circuit 31 to an Nth interface conversion circuit 3N, where N is greater than 1. The first signal transmission ends of the multiple interface conversion circuits are connected to the multiple second communication interfaces in a one-to-one correspondence, the first connection end of the channel switching circuit 40 is connected to the first communication interface 10, and the multiple second connection ends of the channel switching circuit 40 are connected to the second signal transmission ends of the multiple interface conversion circuits. The channel switching circuit 40 can conduct the signal transmission channel between one of the multiple second communication interfaces and the first communication interface 10 according to the access status of the multiple second communication interfaces, so that the corresponding interface conversion circuit can realize the communication conversion between the two.
[0038] In this embodiment, the first communication interface 10 can be any type of communication interface, such as a UART interface, an SPI interface, an I2C interface, an RS232 interface, an RS485 interface, etc. Similarly, the second communication interface can also be any type of communication interface, but the types of the second communication interfaces and the first communication interface 10 are different to meet different communication requirements.
[0039] In the present embodiment, the plurality of second communication interfaces can be interface conversion circuits of different types. For example, when the first communication interface 10 is a UART interface and the second communication interface is two, they can be RS232 interface and RS485 interface respectively, for example, the first second communication interface 21 is an RS232 interface, and the second second communication interface 22 is an RS485 interface; when the first communication interface 10 is an SPI interface and the second conversion interface is three, they can be I2C interface, RS232 interface and RS485 interface respectively, for example, the first second communication interface 21 is an RS232 interface, the second second communication interface 22 is an RS485 interface, and the third second communication interface 23 is an I2C interface. Of course, the specific interface type and quantity can be selected and adjusted according to actual needs to meet different communication needs.
[0040] In a feasible embodiment, a plurality of second communication interfaces can also be a plurality of interfaces of the same kind.For example, when the first communication interface 10 is a UART interface, and the second communication interface is three, they can all be RS485 interfaces.This setting allows the system to communicate with a plurality of RS485 equipment through a single UART interface, further enhancing the flexibility and the communication capability of the system.
[0041] In a feasible embodiment, a plurality of second communication interfaces can also be a combination of a plurality of different types of communication interfaces and a plurality of same type of communication interfaces. For example, when the first communication interface 10 is a UART interface and the second communication interfaces are three, they can be two RS485 interfaces and an I2C interface. When the first communication interface 10 is a UART interface and the second communication interfaces are four, two of them can be RS232 interfaces, and the other two can be RS485 interfaces. This arrangement allows the system to communicate with a plurality of identical or different types of equipment through a single UART interface, thereby providing greater flexibility and communication capabilities.
[0042] In the present embodiment, the interface conversion circuit includes a communication conversion chip, and the communication conversion chip can realize the communication conversion between different types of communication interfaces, so that the first communication interface 10 can communicate with any one of the multiple second communication interfaces. In the present embodiment, the specific communication conversion chip can be selected according to the type of the first communication interface 10 and the second communication interface. For example, when the multiple second communication interfaces can be different types of communication interfaces, for example, the first communication interface 10 is a UART interface, and the second communication interface is two, and the two second communication interfaces are respectively RS485 interface and RS232 interface, then the multiple interface conversion circuits can select different types of interface conversion circuits, that is, the communication conversion chip that can realize UART to RS232 conversion can be selected to constitute the interface conversion circuit between the UART interface and the RS232 interface, and the communication conversion chip that can realize UART to RS485 conversion can be selected to constitute the interface conversion circuit between the UART interface and the RS485 interface, wherein the communication conversion chip that can realize UART to RS232 conversion and the communication conversion chip that can realize UART to RS485 conversion are not limited to the specific models and specifications here, as long as the corresponding interface conversion effect can be achieved. For another example, when the plurality of second communication interfaces are a plurality of communication interfaces of the same type, for example, when the first communication interface 10 is a UART interface, and there are three second communication interfaces, all of which can be RS485 interfaces, then the plurality of interface conversion circuits can select the same type of interface conversion circuit, that is, a plurality of communication conversion chips capable of realizing UART to RS485 conversion can be selected to constitute the interface conversion circuit between the UART interface and the RS485 interface, wherein the specific model and specification of the communication conversion chip capable of realizing UART to RS485 conversion are not limited here, as long as the corresponding interface conversion effect can be achieved. For another example, when the multiple second communication interfaces are a combination of multiple different types of communication interfaces and multiple same type of communication interfaces, for example, when the first communication interface 10 is a UART interface and there are three second communication interfaces, which can be two RS485 interfaces and one I2C interface, the multiple interface conversion circuits can select two communication conversion chips capable of realizing UART to RS485 conversion and one communication conversion chip capable of realizing UART to I2C conversion to form an interface conversion circuit between the UART interface and the RS485 interface and the I2C interface, wherein the specific models and specifications of the communication conversion chip capable of realizing UART to RS485 conversion and the communication conversion chip capable of realizing UART to I2C conversion are not limited here, as long as the corresponding interface conversion effect can be achieved.
[0043] In this embodiment, the channel switching circuit 40 realizes flexible conversion between different types of communication interfaces by selecting and conducting the signal transmission channel between one of them and the first communication interface 10. Specifically, the channel switching circuit 40 can be a multiplexer or a logic circuit, etc., which can control the selection of the multiplexer or logic circuit according to the access status of multiple second communication interfaces, so as to select and conduct the signal transmission channel between the corresponding one and the first communication interface 10.
[0044] In a feasible implementation, the channel switching circuit 40 is a logic circuit. The logic circuit can be an AND gate circuit, an OR gate circuit, a NOT gate circuit, a NAND gate circuit, a NOR gate circuit, an XOR gate circuit, or a combination thereof. The specific logic circuit can be selected according to the number of interfaces and actual application requirements.
[0045] In one possible implementation, see Figure 2 , Figure 4 The channel switching circuit 40 includes a first resistor R1 and a plurality of diodes, the plurality of diodes including a first diode D1 to an Nth diode DN, wherein N is greater than 1. A first end of the first resistor R1 is connected to a power supply end VCC, a second end of the first resistor R1 is connected to a first communication interface 10, anodes of the plurality of diodes are connected to a common end of the first resistor R1 and the first communication interface 10, and cathodes of the plurality of diodes are connected to second signal transmission ends of the plurality of interface conversion circuits in a one-to-one correspondence.
[0046] In this embodiment, when a second communication interface is in an access state and when it transmits data to the corresponding interface conversion circuit, the interface conversion circuit outputs a low level to the diode, so that the first resistor R1 divides the power supply terminal VCC. At this time, the receiving end of the first communication interface 10 is in a low level state and can normally receive the data sent by the second communication interface, thereby realizing the communication conversion between the first communication interface 10 and the first communication interface 10. When a second communication interface is in a suspended state or the second communication interface does not output data, the interface conversion circuit outputs a high level to the diode, so that the power supply terminal VCC voltage is directly output to the receiving end of the first communication interface 10. At this time, the receiving end of the first communication interface 10 is in a high level state, and the communication conversion between the first communication interface 10 and the first communication interface 10 cannot be realized. In this way, the reliability of the conversion between the first communication interface 10 and the second communication interface is guaranteed.
[0047] In a feasible implementation, the first communication interface 10 is a UART interface, there are two second communication interfaces, the two second communication interfaces are respectively an RS485 interface and an RS232 interface, the interface conversion circuit between the first communication interface 10 and the RS485 interface includes a UART-RS485 conversion chip, and the interface conversion circuit between the second communication interface and the RS232 interface is a UART-RS232 conversion chip. In this embodiment, the first second communication interface 21 is an RS485 interface, the second second communication interface 22 is an RS232 interface, the first interface conversion circuit 31 includes a UART-RS485 conversion chip, the second interface conversion circuit 32 includes a UART-RS232 conversion chip, the channel switching circuit 40 is an AND gate circuit, and the AND gate circuit includes a first resistor R1, a first diode D1 and a second diode D2, the anode of the first diode D1 is connected to the common end of the first resistor R1 and the first communication interface 10, the cathode of the first diode D1 is connected to the UART-RS485 conversion chip, the anode of the second diode D2 is connected to the common end of the first resistor R1 and the first communication interface 10, and the cathode of the second diode D2 is connected to the UART-RS232 conversion chip.
[0048] In this embodiment, when the first second communication interface 21 is in an access state and the second second communication interface 22 is in a suspended state, when the first second communication interface 21 sends data, the first interface conversion circuit 31 outputs a low level to the first diode D1, so that the first resistor R1 divides the power supply end VCC. At this time, the receiving end of the first communication interface 10 is in a low level state and can normally receive the data sent by the first second communication interface 21; when the first communication interface 10 sends data, the first interface conversion circuit 31 and the second interface conversion circuit 32 simultaneously receive and output the data, but because the first second communication interface 21 is in an access state and the second second communication interface 22 is in a suspended state, only the first second communication interface 21 can send data normally.
[0049] In this embodiment, the second second communication interface 22 is in the access state, and the first second communication interface 21 is in the suspended state. When the second second communication interface 22 sends data, the second interface conversion circuit 32 outputs a low level to the second diode D2, so that the first resistor R1 divides the power supply end VCC. At this time, the receiving end of the first communication interface 10 is in a low level state, and the data sent by the second second communication interface 22 can be received normally; when the first communication interface 10 sends data, the first interface conversion circuit 31 and the second interface conversion circuit 32 receive and output the signal at the same time, but because the first second communication interface 21 is in the suspended state and the second second communication interface 22 is in the access state, only the second second communication interface 22 can send data normally. In this way, the reliability of the communication conversion between the first communication interface 10 and the first second communication interface 21 and the first communication interface 10 and the second second communication interface 22 is guaranteed.
[0050] In one possible implementation, see Figure 3 The communication conversion circuit also includes a control circuit 50, which is used to control the signal transmission channel between one of the multiple second communication interfaces and the first communication interface 10 to be turned on when the multiple second communication interfaces are in an access state, so that the corresponding interface conversion circuit can realize the communication conversion between the two.
[0051] In this embodiment, the control circuit 50 control circuit 50 can be a circuit formed by stacking discrete components, or it can be an integrated circuit (chip). As long as it is used to control the signal transmission channel between one of the multiple second communication interfaces and the first communication interface 10 when the multiple second communication interfaces are in the connected state, so that the corresponding interface conversion circuit can realize the communication conversion between the two, the circuit and chip are within the protection scope of the present invention.
[0052] In this embodiment, the control circuit 50 is electrically connected to a plurality of interface conversion circuits, respectively, and the control circuit 50 can read the access status information of each second communication interface through the interface conversion circuit to determine whether the corresponding second communication interface is in the access state. When it is detected that a second communication interface is in the access state, the control circuit 50 can send a control signal to the channel switching circuit 40 to connect the signal transmission channel between the second communication interface and the first communication interface 10. At the same time, the control circuit 50 can also send a control signal to the corresponding interface conversion circuit so that the interface conversion circuit starts to implement the communication conversion between the first communication interface 10 and the second communication interface.
[0053] In a feasible implementation manner, the control circuit 50 is also used to control the signal transmission channel between one of the plurality of second communication interfaces and the first communication interface 10 to be turned on according to preset rules, so that the corresponding interface conversion circuit can realize the communication conversion between the two.
[0054] In this embodiment, the preset rules can be set based on specific communication protocols, interface priorities, communication frequencies, communication data volumes, etc. The control circuit 50 can automatically select a suitable second communication interface for communication conversion according to the preset rules to improve communication efficiency and reliability.
[0055] For example, the preset rules may stipulate that when multiple second communication interfaces are in an access state at the same time, interfaces with faster communication speeds and larger communication data volumes are preferentially selected for communication conversion. Alternatively, the preset rules may stipulate that among multiple second communication interfaces, interfaces are selected for communication conversion in a specific priority order to meet different application requirements. In addition, the control circuit 50 may also dynamically adjust the preset rules based on the communication interface status information monitored in real time to adapt to different communication environments and requirements. For example, when the communication quality of a communication interface is poor or the communication speed is slow, the control circuit 50 may lower its priority and select other communication interfaces for communication conversion.
[0056] In a feasible implementation manner, the preset rule includes switching on the signal transmission channel between one of the plurality of second communication interfaces and the first communication interface 10 in turn according to a preset period.
[0057] In the present embodiment, the preset period can be set based on the factors such as the frequency of use of the communication interface, the amount of communication data, the priority of the communication interface. At the end of each preset period, the control circuit 50 can automatically switch to the next communication interface to carry out communication conversion, to ensure that each second communication interface is used in turn. For example, suppose that there are three second communication interfaces (RS485 interface, RS232 interface and I2C interface) to access simultaneously, and the preset period is 10 seconds. In each 10-second cycle, the control circuit 50 can select RS485 interface, RS232 interface and I2C interface to carry out communication conversion with the first communication interface 10 (UART interface) successively. After each cycle ends, the control circuit 50 will automatically switch to the next interface to ensure that each second communication interface communicates with the first communication interface 10 in turn.
[0058] In this embodiment, the control circuit 50 can also monitor the communication quality and communication speed of each communication interface in real time. If the communication quality of a communication interface is poor or the communication speed is slow, the control circuit 50 can lower its priority at the beginning of the next preset cycle and reduce its frequency of use to ensure the efficiency and reliability of the overall communication. The above-mentioned method of making each second communication interface communicate with the first communication interface 10 in turn can not only ensure that each second communication interface is used in turn, but also avoid the situation where other interfaces cannot be used due to the long-term occupation of a certain communication interface. At the same time, by real-time monitoring and adjusting the priority of the communication interface, the efficiency and reliability of communication can be further improved to meet the needs of different applications.
[0059] In a feasible implementation manner, the preset rule includes conducting a signal transmission channel between the second communication interface with the highest priority among the plurality of second communication interfaces and the first communication interface 10 according to a preset priority.
[0060] In the present embodiment, preset priority can be set based on factors such as the performance of the communication interface, historical communication quality, user settings. Control circuit 50 can monitor the status information of each second communication interface in real time, and selects the optimal communication interface to carry out communication conversion with the first communication interface 10 according to the preset priority. For example, when there are three second communication interfaces: RS485 interface, RS232 interface and I2C interface, their priorities are respectively high, medium and low. If the communication quality of RS485 interface is the best, and the priority is the highest, control circuit 50 will preferentially select RS485 interface to carry out communication conversion with the first communication interface 10 (UART interface) so. Only when RS485 interface cannot be used, control circuit 50 will select RS232 interface or another interface with lower priority to carry out communication conversion.
[0061] In this embodiment, by selecting the corresponding second communication interface for communication conversion according to the preset priority, it is possible to ensure that the communication interface with better performance is used first, thereby improving the overall communication quality and efficiency. At the same time, by real-time monitoring and adjusting the priority of the communication interface, it is possible to further adapt to different communication environments and requirements and improve the flexibility and reliability of communication.
[0062] The technical solution of the present invention adopts a communication conversion circuit, including a first communication interface 10, multiple second communication interfaces, a channel switching circuit 40 and multiple interface conversion circuits, wherein the first signal transmission ends of the multiple interface conversion circuits are connected to the multiple second communication interfaces in a one-to-one correspondence, the first connection end of the channel switching circuit 40 is connected to the first communication interface 10, and the multiple second connection ends of the channel switching circuit 40 are connected to the second signal transmission ends of the multiple interface conversion circuits in a one-to-one correspondence. The channel switching circuit 40 can, according to the access status of the multiple second communication interfaces, conduct the signal transmission channel between one of them and the first communication interface 10, so that the corresponding interface conversion circuit can realize the communication conversion between the two. In this way, when a system needs to connect multiple communication interfaces, and the system itself cannot support the above communication interfaces, the above circuit can realize the conversion between one communication interface of the system and multiple communication interfaces, saving the interface resources of the system and improving the utilization rate of the interface.
[0063] The present invention also proposes a communication conversion method, which uses the communication conversion circuit, which includes a first communication interface, multiple second communication interfaces and multiple interface conversion circuits; the first communication interface is electrically connected to the multiple interface conversion circuits respectively, and the first signal transmission ends of the multiple interface conversion circuits are connected to the multiple second communication interfaces one by one; the specific structure of the communication conversion circuit refers to the above-mentioned embodiment. Since the communication conversion method adopts all the technical solutions of all the above-mentioned embodiments, it at least has all the beneficial effects brought by the technical solutions of the above-mentioned embodiments, which will not be repeated here one by one.
[0064] In this embodiment, please refer to Figure 5 The communication conversion method includes step S100, when multiple second communication interfaces are in an access state, controlling the signal transmission channel between one of the multiple second communication interfaces and the first communication interface 10 to be turned on, so that the corresponding interface conversion circuit realizes the communication conversion between the two.
[0065] In this embodiment, step S100 may be implemented by the control circuit 50, and the control circuit 50 is electrically connected to a plurality of interface conversion circuits respectively. The control circuit 50 may read the access status information of each second communication interface through the interface conversion circuit to determine whether the corresponding second communication interface is in the access state. When it is detected that a second communication interface is in the access state, the control circuit 50 may send a control signal to the channel switching circuit 40 to connect the signal transmission channel between the second communication interface and the first communication interface 10. At the same time, the control circuit 50 may also send a control signal to the corresponding interface conversion circuit so that the interface conversion circuit starts to implement the communication conversion between the first communication interface 10 and the second communication interface.
[0066] The present invention also provides an electronic device, which includes the communication conversion circuit and / or utilizes the communication conversion method. The specific structure of the communication conversion circuit and the communication conversion method refers to the above embodiment. Since the electronic device adopts all the technical solutions of all the embodiments of the above communication conversion circuit and / or the communication conversion method, it at least has all the beneficial effects brought by the technical solutions of the above embodiments, which will not be repeated here.
[0067] The above description is only an exemplary embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the technical concept of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.
Claims
1. A communication conversion circuit, characterized in that: include: a first communication interface; a plurality of second communication interfaces; A plurality of interface conversion circuits, wherein the first signal transmission ends of the plurality of interface conversion circuits are connected to the plurality of second communication interfaces in a one-to-one correspondence; A channel switching circuit, wherein a first connection end of the channel switching circuit is connected to the first communication interface, and multiple second connection ends of the channel switching circuit are connected one-to-one with second signal transmission ends of multiple interface conversion circuits; the channel switching circuit is used to conduct a signal transmission channel between one of the multiple second communication interfaces and the first communication interface according to the access status of the multiple second communication interfaces, so that the corresponding interface conversion circuit realizes communication conversion between the two.
2. The communication conversion circuit according to claim 1, characterized in that: The channel switching circuit is a logic circuit.
3. The communication conversion circuit according to claim 1, characterized in that: The channel switching circuit comprises: A first resistor, wherein a first end of the first resistor is connected to a power supply end, and a second end of the first resistor is connected to a first communication interface; A plurality of diodes, wherein anodes of the plurality of diodes are connected to a common end of the first resistor and the first communication interface, and cathodes of the plurality of diodes are connected to second signal transmission ends of the plurality of interface conversion circuits in a one-to-one correspondence.
4. The communication conversion circuit according to claim 1, characterized in that: The multiple interface conversion circuits are interface conversion circuits of different types, interface conversion circuits of the same type, or a combination of multiple interface conversion circuits of different types and multiple interface conversion circuits of the same type.
5. The communication conversion circuit according to claim 1, characterized in that: The communication conversion circuit also includes a control circuit, which is used to control the signal transmission channel between one of the multiple second communication interfaces and the first communication interface to be connected when the multiple second communication interfaces are in an access state, so that the corresponding interface conversion circuit can realize the communication conversion between the two.
6. The communication conversion circuit according to claim 5, characterized in that: The control circuit is also used to control the signal transmission channel between one of the plurality of second communication interfaces and the first communication interface to be turned on according to a preset rule, so that the corresponding interface conversion circuit can realize the communication conversion between the two.
7. The communication conversion circuit according to claim 6, characterized in that: The preset rule includes switching on a signal transmission channel between one of the plurality of second communication interfaces and the first communication interface in turn according to a preset period.
8. The communication conversion circuit according to claim 6, characterized in that: The preset rule includes conducting a signal transmission channel between the second communication interface with the highest priority among the plurality of second communication interfaces and the first communication interface according to a preset priority.
9. A communication conversion method, using the communication conversion circuit according to any one of claims 1 to 8, wherein the communication conversion circuit comprises a first communication interface, a plurality of second communication interfaces and a plurality of interface conversion circuits; the first communication interface is electrically connected to the plurality of the interface conversion circuits respectively, and the first signal transmission ends of the plurality of the interface conversion circuits are connected to the plurality of the second communication interfaces in a one-to-one correspondence; The communication conversion method comprises: When the plurality of second communication interfaces are in an access state, a signal transmission channel between one of the plurality of second communication interfaces and the first communication interface is controlled to be connected, so that the corresponding interface conversion circuit realizes communication conversion between the two.
10. An electronic device, characterized in that: The electronic device comprises the communication conversion circuit according to any one of claims 1 to 8, and / or utilizes the communication conversion method according to claim 9.
