Communication circuit and communication system
By setting up an anti-busy circuit in the communication circuit to control the transmission duration of the transceiver, the long-term occupation problem caused by the controller crash is solved, and complete data transmission and efficient use of resources are achieved.
Patent Information
- Application Number
- CN202420127556.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-17
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2034-01-17
AI Technical Summary
When the controller crashes in the communication circuit, the transceiver is in transmit mode for a long time, occupying the main communication line, and cannot avoid the occupancy problem caused by the controller crash.
A communication circuit is designed. By setting up an anti-busy circuit between the transmitting control end of the controller and the transmitting end of the transceiver, the transmitting end is controlled to send data within a preset period and disconnect after the preset period. The anti-busy circuit is used The circuit controls the transmission duration of the transceiver to avoid long-term occupation due to controller crash.
It effectively avoids the problem of the transceiver being in transmit mode for a long time when the controller crashes and occupying the main communication line, ensuring complete data transmission and avoiding resource waste.
Smart Images

Figure CN221768033U
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a communication circuit and a communication system. Background Art
[0002] The communication circuit can connect multiple devices at the same time and realize multi-machine communication. In the related art, the controller of the communication circuit controls the transceiver's transceiver functions to be mutually exclusive, either in the receiving state or in the sending state, and the controller crash cannot be avoided. When the controller crashes, the communication circuit is in the sending mode for a long time, occupying the communication main line. Utility Model Content
[0003] The present application provides a communication circuit and a communication system which control the transmission duration of the transmitting end of the transceiver to avoid the transceiver being in a transmission mode for a long time and occupying the communication main line when the controller crashes.
[0004] The present application provides a communication circuit, comprising:
[0005] A transceiver, including a transmitting end;
[0006] A controller, including a sending control terminal; and
[0007] The anti-busy circuit is electrically connected between the sending control end and the sending end; the controller controls the anti-busy circuit through the sending control end to control the sending end to send data within a preset time period and disconnect after the preset time period.
[0008] Optionally, the communication circuit includes a power supply terminal and a ground terminal; the anti-busy circuit includes a current limiting branch, a delay branch, a first conduction circuit and a second conduction circuit, the current limiting branch is electrically connected between the sending control terminal and the sending terminal, the delay branch is electrically connected between the power supply terminal and the ground terminal, the first conduction circuit is electrically connected between the delay branch and the sending control terminal, and the second conduction circuit is electrically connected between the delay branch and the sending terminal; wherein, when the control signal output by the controller through the sending control terminal is at a low level, the delay branch is connected to the sending control terminal through the first conduction circuit, and when the control signal output by the controller through the sending control terminal switches from a low level to a high level, the sending control terminal is connected to the sending terminal through the current limiting branch, and the delay branch is connected to the sending terminal through the second conduction circuit, and the sending terminal is disconnected within the preset time period.
[0009] Optionally, the delay branch includes a pull-up resistor and a storage capacitor, and the pull-up resistor and the storage capacitor are connected in series between the power supply terminal and the ground terminal.
[0010] Optionally, the preset time period is configured by the resistance of the pull-up resistor and the capacitance of the storage capacitor.
[0011] The duration of the preset time period is directly proportional to the resistance value of the pull-up resistor.
[0012] The duration of the preset time period is proportional to the capacitance of the storage capacitor.
[0013] The duration of the preset time period is inversely proportional to the voltage of the power supply end; and / or
[0014] The duration of the control signal being at a high level is at least greater than the preset period of time.
[0015] Optionally, the first conduction circuit includes a first diode, an anode of the first diode is electrically connected between the pull-up resistor and the storage capacitor, and a cathode of the first diode is electrically connected to the sending control terminal.
[0016] Optionally, the second conduction circuit includes a second diode and a switch tube, the anode of the second diode is electrically connected between the pull-up resistor and the storage capacitor, the first electrode of the switch tube is electrically connected to the cathode of the second diode, the second electrode of the switch tube is electrically connected to the transmitting end, and the third electrode of the switch tube is electrically connected to the ground end;
[0017] The voltage drop of the second diode is greater than or equal to the voltage drop of the first diode; and / or
[0018] The switch tube includes a triode or a MOS tube.
[0019] Optionally, the current limiting branch includes a current limiting resistor, which is electrically connected between the sending control end and the sending end and is located between the first conducting circuit and the second conducting circuit.
[0020] The present application provides a communication system, comprising a host, a plurality of slaves and a communication circuit as described in any one of the above items, wherein the host is communicatively connected with the plurality of slaves via the communication circuit.
[0021] Optionally, the communication system includes a host and multiple slaves, the host includes the communication circuit as described in any one of the above items, and the host is communicatively connected with the multiple slaves through the communication circuit.
[0022] Optionally, the communication system includes a host and multiple slaves, each of the slaves includes the communication circuit as described in any one of the above items, and each of the slaves is communicatively connected to the host via each of the communication circuits.
[0023] The communication circuit and communication system provided by the embodiment of the present application. The communication circuit is provided by a transceiver, a controller and an anti-busy circuit. The anti-busy circuit is electrically connected between the transmission control terminal of the controller and the transmission terminal of the transceiver. The controller controls the anti-busy circuit through the transmission control terminal to control the transmission terminal to send data within a preset period of time and disconnect after the preset period of time. The present application sets an anti-busy circuit and uses the anti-busy circuit to control the transmission time of the transmission terminal of the transceiver, so as to avoid the transceiver being in the transmission mode for a long time when the controller crashes, thereby occupying the communication main line.
[0024] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0026] Figure 1 Shown is a functional block diagram of an embodiment of a communication circuit of the present application.
[0027] Figure 2 Shown Figure 1 The circuit diagram of the communication circuit is shown.
[0028] Figure 3 Shown Figure 1 The time-voltage relationship diagram of the communication circuit shown.
[0029] Figure 4 Shown is a functional block diagram of an embodiment of the communication system of the present application. DETAILED DESCRIPTION
[0030] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0031] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. Unless otherwise defined, the technical terms or scientific terms used in this application should be understood by people with ordinary skills in the field to which this application belongs. The words "first", "second" and similar words used in the specification and claims of this application do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, words such as "one" or "one" do not indicate a quantitative limit, but indicate that there is at least one. "Multiple" or "several" means two or more. Unless otherwise specified, words such as "front", "rear", "lower" and / or "upper" are only for the convenience of explanation and are not limited to one position or one spatial orientation. Words such as "include" or "comprise" mean that the elements or objects appearing in front of "include" or "comprise" include the elements or objects listed after "include" or "comprise" and their equivalents, and do not exclude other elements or objects. Words such as "connect" or "connected" are not limited to physical or mechanical connections, and can include electrical connections, whether direct or indirect.
[0032] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0033] The embodiment of the present application provides a communication circuit and a communication system. The communication circuit includes a transceiver, a controller and an anti-busy circuit. The transceiver includes a transmitting end. The controller includes a transmitting control end. The anti-busy circuit is electrically connected between the transmitting control end and the transmitting end. The controller controls the anti-busy circuit through the transmitting control end to control the transmitting end to send data within a preset time period and disconnect after the preset time period. The present application sets an anti-busy circuit and uses the anti-busy circuit to control the transmission time of the transmitting end of the transceiver, so as to avoid the transceiver being in the transmission mode for a long time when the controller crashes, thereby occupying the communication main line.
[0034] The communication circuit and the communication system of the present application are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the features of the following embodiments and implementations can be combined with each other.
[0035] Figure 1 FIG. 1 is a block diagram showing a principle of an embodiment of the communication circuit 1 of the present application. Figure 1As shown, the communication circuit 1 includes a transceiver 10, a controller 20, and an anti-busy circuit 30. The transceiver 10 includes a transmitting terminal 11. The controller 20 includes a transmitting control terminal 21. The anti-busy circuit 30 is electrically connected between the transmitting control terminal 21 and the transmitting terminal 11. The controller 20 controls the anti-busy circuit 30 through the transmitting control terminal 21 to control the transmitting terminal 11 to send data within a preset period of time and disconnect after the preset period of time. The anti-busy circuit 30 is used to control the transmitting terminal 11 to send data within a preset period of time and disconnect after the preset period of time when the controller 20 crashes. In this way, by setting the anti-busy circuit 30, the anti-busy circuit 30 is used to control the sending time of the transmitting terminal 11 of the transceiver 10, so as to avoid the failure of the transmitting control terminal 21 when the controller 20 crashes, resulting in the transceiver 10 being in the sending mode for a long time and occupying the communication main line.
[0036] In the present embodiment, the transceiver 10 may be an RS485 transceiver. The controller 20 may be a microcontroller. The RS485 transceiver is electrically connected to the microcontroller. The data of the microcontroller is sent to the remote device, and data transmission is realized through the RS485 communication interface. The transmitting end 11 of the transceiver 10 is controlled by high and low levels, and is in a transmitting state when the high level is high, and is in a disconnected state when the low level is low. The transmitting control end 21 of the controller 20 is electrically connected to the transmitting end 11 of the transceiver 10, and the controller 20 outputs a high level or a low level through the transmitting control end 21 to control the transmitting end 11 to be in a transmitting state or in a disconnected state. In the present embodiment, by arranging an anti-busy circuit 30 between the RS485 transceiver and the microcontroller, the microcontroller outputs a high level through the transmitting control end 21, controls the transmitting end 11 of the RS485 transceiver to be in a transmitting state, and uses the anti-busy circuit 30 to control the transmitting time length of the transmitting end 11 of the transceiver 10, so that the transmitting end 11 sends data within a preset period of time and disconnects within a preset period of time. The preset time period is at least greater than the time length of the data transmission of the transmitting terminal 11 of the transceiver 10, so as to ensure that all data can be transmitted. In this way, by setting the anti-busy circuit 30, the anti-busy circuit 30 is used to control the transmission time length of the transmitting terminal 11 of the RS485 transceiver, so as to avoid the failure of the transmitting control terminal 21 when the microcontroller crashes, resulting in the transceiver 10 being in the transmission mode for a long time and occupying the communication main line.
[0037] Figure 2 Shown Figure 1 The circuit diagram of the communication circuit 1 is shown. Figure 3 Shown Figure 1 The time-voltage relationship diagram of the communication circuit 1 shown in FIG. Figures 1 to 3In the embodiment shown, the communication circuit 1 includes a power supply terminal VCC1 and a ground terminal GND. The anti-busy circuit 30 includes a current limiting branch 31, a delay branch 32, a first conduction circuit 33 and a second conduction circuit 34. The current limiting branch 31 is electrically connected between the transmission control terminal 21 and the transmission terminal 11. The delay branch 32 is electrically connected between the power supply terminal VCC1 and the ground terminal GND. The first conduction circuit 33 is electrically connected between the delay branch 32 and the transmission control terminal 21, and the second conduction circuit 34 is electrically connected between the delay branch 32 and the transmission terminal 11. Figure 2 In the embodiment shown, when the control signal output by the controller 20 through the transmission control terminal 21 is at a low level, the delay branch 32 and the first conduction circuit 33 are both turned on, the current limiting branch 31 and the second conduction circuit 34 are turned off, and the delay branch 32 is connected to the transmission control terminal 21 through the first conduction circuit 33. This arrangement ensures that the transmission control terminal 21 of the controller 20 stably outputs a low level, so that the transmission terminal of the transceiver 10 is stably in a disconnected state. Figure 2 In the illustrated embodiment, when the control signal outputted by the controller 20 through the transmitting control terminal 21 switches from a low level to a high level, at this time, the current limiting branch 31, the delay branch 32 and the second conduction circuit 34 are turned on, the first conduction circuit 33 is turned off, the transmitting control terminal 21 is connected to the transmitting terminal 11 through the current limiting branch 31, and the delay branch 32 is connected to the transmitting terminal 11 through the second conduction circuit 34, and the transmitting terminal 11 is disconnected within a preset period of time. The delay branch 32 is used to generate a delay signal to control the transmission duration of the transmitting terminal 11, and the transmission duration can be configured by the preset period of time of the delay branch 32. The second conduction circuit 34 plays a role in controlling the delay branch 32 and the transmitting terminal 11 to ensure that the transmitting terminal 11 is disconnected after the preset period of time, so that the transmission duration of the transmitting terminal 11 can be controlled, and it can be disconnected after the preset period of time, so as to avoid the failure of the transmitting control terminal 21 when the controller 20 crashes, resulting in the transceiver 10 being in the transmission mode for a long time and occupying the communication main line. In the above process, the current limiting branch 31 is used to divide the voltage and limit the current, ensuring a voltage difference between the transmitting control terminal 21 and the transmitting terminal 11, and avoiding excessive current when the second conducting circuit 34 is turned on, thereby improving safety.
[0038] exist Figure 2 In the illustrated embodiment, the current limiting branch 31 includes a current limiting resistor R1, which is electrically connected between the transmission control terminal 21 and the transmission terminal 11, and is located between the first conduction circuit 33 and the second conduction circuit 34. The current limiting resistor R1 can play a current limiting role, and when the second conduction circuit 34 is turned on, the transmission terminal 11 and the transmission control terminal 21 can maintain different voltages. The resistance value of the current limiting resistor R1 can be set to be greater than the square of the highest voltage output by the transmission control terminal 21 divided by the rated power of the current limiting resistor R1.
[0039] exist Figure 2In the embodiment shown, the delay branch 32 includes a pull-up resistor R2 and a storage capacitor C1, and the pull-up resistor R2 and the storage capacitor C1 are connected in series between the power supply terminal VCC1 and the ground terminal GND. The delay branch 32 mainly uses the charging and discharging time of the pull-up resistor R2 and the storage capacitor C1 to achieve delay. The power supply terminal VCC1 is used to provide the power supply voltage. When the power supply voltage passes through the delay branch 32, the storage capacitor C1 starts to charge. During the charging process, the voltage of the storage capacitor C1 will gradually rise until it reaches the same voltage level as the input signal. The charging speed of the storage capacitor C1 depends on the capacity of the storage capacitor C1 and the resistance of the pull-up resistor R2. Once the storage capacitor C1 is fully charged, when the input signal changes, the storage capacitor C1 starts to discharge. During the discharge process, the voltage of the storage capacitor C1 will gradually decrease until it reaches the same voltage level as the output signal. The discharge speed of the storage capacitor C1 also depends on the capacity of the storage capacitor C1 and the resistance of the pull-up resistor R2.
[0040] In the present embodiment, the preset period is configured by the resistance of the pull-up resistor R2 and the capacitance of the storage capacitor C1. In some embodiments, the duration of the preset period is proportional to the resistance of the pull-up resistor R2. For example, the larger the resistance of the pull-up resistor R2, the longer the duration of the preset period. Conversely, the smaller the resistance of the pull-up resistor R2, the shorter the duration of the preset period. In some embodiments, the duration of the preset period is proportional to the capacitance of the storage capacitor C1. For example, the larger the capacitance of the storage capacitor C1, the longer the duration of the preset period. Conversely, the smaller the capacitance of the storage capacitor C1, the shorter the duration of the preset period. In some other embodiments, the duration of the preset period is proportional to the resistance of the pull-up resistor R2 and the capacitance of the storage capacitor C1. According to the formula preset period t=K*R8*C2, it can be known that the larger the resistance of the pull-up resistor R2, the longer the duration of the delay period, and vice versa. The larger the capacitance of the storage capacitor C1, the longer the delay period, and vice versa. Therefore, the duration of the preset period is directly proportional to the resistance of the pull-up resistor R2 and / or the capacitance of the storage capacitor C1. Therefore, in actual application, the resistance of the pull-up resistor R8 and the capacitance of the storage capacitor C2 can be adjusted according to the demand for the preset period t. In this embodiment, the preset period t is set to be greater than the duration of the data sent by the applied device to ensure that the data is sent completely. In this embodiment, the duration of the preset period is inversely proportional to the voltage of the power supply terminal VCC1. The higher the charging voltage, the shorter the charging time of the storage capacitor C1, and the shorter the delay period of the delay branch 32. Therefore, if the power supply voltage of the power supply terminal VCC1 is set to be larger, the duration of the delay period of the delay branch 32 will be shorter, and vice versa. Therefore, in actual application, the voltage of the power supply terminal VCC1 can be set according to the demand for the preset period t. Figure 3In the illustrated embodiment, the abscissa is used to represent time, and the ordinate is used to represent voltage. The control signal sent by the sending control terminal 21 of the controller 20 is represented by 22. The level signal sent by the sending terminal 11 of the transceiver 10 is represented by 12. In this embodiment, the duration of the control signal 22 being at a high level is at least greater than the preset time period t. In this way, it is ensured that the duration of the control signal 22 being at a high level is greater than the duration of the sending terminal 11 of the transceiver 10 being in a sending state, so that the sending terminal 11 of the transceiver 10 sends data completely within the duration.
[0041] exist Figure 2 In the illustrated embodiment, the first conduction circuit 33 includes a first diode D1, the positive electrode of the first diode D1 is electrically connected between the pull-up resistor R2 and the storage capacitor C1, and the negative electrode of the first diode D1 is electrically connected to the transmission control terminal 21. The first diode D1 is provided so as to prevent the transmission control terminal 21 from supplying power to the storage capacitor C1 when the transmission control terminal 21 is a high level signal. Since the diode has unidirectional conductivity and can only conduct unidirectionally from the positive electrode to the negative electrode, the current can only flow from the delay branch 32 to the transmission control terminal 21. When the control signal output by the transmission control terminal 21 is at a low level, the power supply terminal VCC1 slowly charges the storage capacitor C1, and the storage capacitor C1 is discharged through the first diode D1. In this way, the positive electrode of the first switch tube Q1 is electrically connected between the pull-up resistor R2 and the storage capacitor C1, so that the transmission control terminal 21 of the controller 20 stably outputs a low level, and the transmission end of the transceiver 10 is stably in a disconnected state.
[0042] exist Figure 2In the illustrated embodiment, the second conduction circuit 34 includes a second diode D2 and a switch tube Q1, the positive electrode of the second diode D2 is electrically connected between the pull-up resistor R2 and the storage capacitor C1, the first electrode of the switch tube Q1 is electrically connected to the negative electrode of the second diode D2, the second electrode of the switch tube Q1 is electrically connected to the transmitting terminal 11, and the third electrode of the switch tube Q1 is electrically connected to the ground terminal GND. Since the second diode has unidirectional conductivity and can only conduct unidirectionally from the positive electrode to the negative electrode, the current can only flow from the delay branch 32 to the switch tube Q1, and the delay branch 32 can control the on and off of the switch tube Q1. When the control signal output by the control transmitting terminal 11 is high level, the power supply terminal VCC1 charges the storage capacitor C1, the voltage of the storage capacitor C1 of the delay branch 32 gradually increases, and discharges to the second conduction circuit 34, and gradually reaches the on-voltage of the switch tube Q1 after the preset period t, at this time, the switch tube Q1 is turned on, the transmitting terminal 11 is directly connected to the ground terminal GND, so that the transmitting terminal 11 becomes low level, and the transmitting state of the transceiver 10 ends. In this way, by configuring the resistance of the pull-up resistor R2 and the capacitance of the storage capacitor C1, and using the switch tube Q1 to control the on-off between the delay branch 32 and the transmitting end 11, it is ensured that the transmitting end 11 completes sending data, and avoids the failure of the transmitting control end 21 when the controller 20 crashes, causing the transceiver 10 to be in the sending mode for a long time and occupying the communication main line.
[0043] In this embodiment, the voltage drop of the second diode D2 is greater than or equal to the voltage drop of the first diode D1. The voltage drop of the first diode D1 refers to the voltage drop across the first diode D1 when the first diode D1 is turned on. The voltage drop of the second diode D2 refers to the voltage drop across the second diode D2 when the second diode D2 is turned on. In order to ensure that the first pole of the switch tube Q1 is also at a low level, the voltage drop of the second diode D2 is needed to balance the voltage drop of the first diode D1. Specifically, when the control signal output by the sending control terminal 21 is at a low level, it is not necessary to turn on the switch tube Q1 to reduce the potential of the sending terminal 11, and the second conduction circuit 34 should be in a disconnected state, at which time the first pole of the control switch tube Q1 should be at a low level. Therefore, the voltage drop of the second diode D2 is set to be greater than or equal to the voltage drop of the first diode D1. When the power supply terminal VCC1 charges the storage capacitor C1, the voltage of the storage capacitor C1 will first be consumed by the first diode D1, so that the first conduction circuit 33 is turned on first, and at this time the voltage of the first pole of the switch tube Q1 is close to 0, and the switch tube Q1 will not be turned on. In this embodiment, the second diode D2 can be a silicon diode, and the first diode D1 can be a germanium diode. The voltage drop of a silicon diode is approximately between 0.5 and 1V. The voltage drop of a germanium diode is approximately between 0.2 and 0.3V. The voltage drop of a diode increases as the current passing through increases. Therefore, the power supply voltage of the power supply terminal VCC1 and the voltage value of the storage capacitor C1 should be maintained at the voltage drop value of the first diode D1 to ensure that the first diode D1 can just meet the discharge demand of the storage capacitor C1. In this way, the power supply voltage of the power supply terminal VCC1 is slowly charged to the storage capacitor C1 through the pull-up resistor R2 to control the duration of the preset time period t, thereby playing a delay role.
[0044] In some embodiments, the switch tube Q1 includes a triode or a MOS tube. In an embodiment, the switch tube Q1 includes a triode. The first electrode of the switch tube Q1 is the base, the second electrode of the switch tube Q1 is the collector, and the third electrode of the switch tube Q1 is the emitter. The base of the switch tube Q1 of this embodiment is electrically connected to the negative electrode of the second diode D2, the collector of the switch tube Q1 is electrically connected to the transmitting end 11, and the emitter of the switch tube Q1 is electrically connected to the ground terminal GND. Setting the switch tube Q1 as a triode has a simple circuit structure and low cost. In some other embodiments, the switch tube Q1 includes a MOS tube, and the switch tube Q1 can be an N-type MOS tube. N-type MOS tubes are suitable for occasions requiring high current and high voltage.
[0045] exist Figures 1 to 3In the illustrated embodiment, when the control signal output by the transmission control terminal 21 is at a low level, the first conduction circuit 33 is turned on, and the delay branch is connected to the transmission control terminal 21 through the first conduction circuit 33. The first diode D1 discharges the storage capacitor C2, and the voltage value on the storage capacitor C2 is the diode drop voltage of the first diode D1. Because the voltage drop of the second diode D2 is greater than or equal to the voltage drop of the first diode D1, at this time, the first pole level of the switch tube Q1 is close to 0V, and the switch tube Q1 is turned off. Because the switch tube Q1 is turned off, the levels of the transmission terminal 11 and the transmission control terminal 21 are consistent, and the transmission terminal 11 is at a low level. When the control signal output by the transmission control terminal 21 switches from a low level to a high level, the transmission terminal 11 instantly obtains a high level through the current limiting resistor R1. Then, because the level of the transmitting control terminal 21 is pulled high, and because the level of the transmitting terminal 11 is higher than the current limiting branch 31, the first diode D1 no longer discharges the storage capacitor C1, and the voltage of the storage capacitor C1 gradually increases. After the preset period t, the voltage of the storage capacitor C1 increases to the turn-on voltage of the switch tube Q1, and the switch tube Q1 is turned on. Since the switch tube Q1 is connected to the ground terminal GND, the transmitting terminal 11 is connected to the ground terminal GND through the turned-on switch tube Q1, and the transmitting terminal 11 is gradually pulled down to a low level, and the transmitting terminal 11 is disconnected at this time. In this way, within the preset period t, the delay branch 32 is connected to the transmitting terminal 11 through the second conduction circuit 34, so that the transmitting terminal 11 is disconnected after the preset period t. Figure 2 In the illustrated embodiment, the transceiver 10 further includes a receiving terminal 13, and the controller 20 further includes a receiving control terminal 23, and the receiving terminal 13 is used to switch states according to the high and low levels of the receiving control terminal 23. In some embodiments, when the receiving control terminal 23 sends a low level signal, the transceiver 10 is in a receiving state, but is not limited thereto.
[0046] It should be noted that the control signal output by the transmission control terminal 21 can be switched according to actual needs. For example, in this embodiment, if there is a need to switch the communication channel, the controller 20 outputs a high-level control signal through the transmission control terminal 21, so that the transmission terminal 11 of the transceiver 10 is in a transmission state and sends data in a preset time period t. If there is no need to switch the communication channel, the controller 20 outputs a low-level control signal through the transmission control terminal 21 to ensure that the transmission terminal 11 of the transceiver 10 is in a disconnected state.
[0047] Figure 4 FIG. 2 is a block diagram showing a principle of an embodiment of a communication system 2 of the present application. Figure 4 As shown, the communication system 2 includes a host 50, a plurality of slaves 51 and Figures 1 to 3 The communication circuit 1 shown in the embodiment. The host 50 is connected via Figures 1 to 3The communication circuit 1 shown in the embodiment is connected to multiple slaves 51 (e.g., slave 1, slave 2, slave 3, ... slave n). This arrangement can control the single transmission time of the host 50 and the slave 51, and avoid the controller 20 being busy for a long time after the crash, which affects the entire communication system. Figure 4 In the illustrated embodiment, the communication circuit 1 is provided independently of the host 50 and the plurality of slaves 51. The communication circuit 1 is provided independently for convenience of connection, maintenance or replacement.
[0048] In some other embodiments, Figures 1 to 3 The communication circuit 1 shown in the embodiment is arranged in the host 50, and the host 50 is connected to communicate with multiple slaves 51 through the communication circuit. Figure 4 Compared with the embodiment shown, the integration level is high.
[0049] In some other embodiments, Figures 1 to 3 The communication circuit 1 shown in the embodiment is arranged in each slave 51, and each slave 51 is connected to the host 50 through each communication circuit. Figure 4 Compared with the embodiment shown, the integration level is high.
[0050] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the application disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0051] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A communication circuit, characterized in that: include: A transceiver, including a transmitting end; A controller, including a sending control terminal; and An anti-busy circuit, electrically connected between the sending control terminal and the sending terminal; The controller controls the anti-busy circuit through the sending control end to control the sending end to send data within a preset period of time and disconnect after the preset period of time.
2. The communication circuit according to claim 1, characterized in that: The communication circuit includes a power supply terminal and a ground terminal; the anti-busy circuit includes a current limiting branch, a delay branch, a first conduction circuit and a second conduction circuit, the current limiting branch is electrically connected between the sending control terminal and the sending terminal, the delay branch is electrically connected between the power supply terminal and the ground terminal, the first conduction circuit is electrically connected between the delay branch and the sending control terminal, and the second conduction circuit is electrically connected between the delay branch and the sending terminal; wherein, when the control signal output by the controller through the sending control terminal is at a low level, the delay branch is connected to the sending control terminal through the first conduction circuit, and when the control signal output by the controller through the sending control terminal switches from a low level to a high level, the sending control terminal is connected to the sending terminal through the current limiting branch, and the delay branch is connected to the sending terminal through the second conduction circuit, and the sending terminal is disconnected within the preset time period.
3. The communication circuit according to claim 2, characterized in that: The delay branch includes a pull-up resistor and a storage capacitor, and the pull-up resistor and the storage capacitor are connected in series between the power supply terminal and the ground terminal.
4. The communication circuit according to claim 3, characterized in that: The preset time period is configured by the resistance value of the pull-up resistor and the capacitance value of the storage capacitor; and / or The duration of the preset time period is directly proportional to the resistance value of the pull-up resistor; and / or The duration of the preset period is proportional to the capacitance of the storage capacitor; and / or The duration of the preset time period is inversely proportional to the voltage of the power supply end; and / or The duration of the control signal being at a high level is at least greater than the preset period of time.
5. The communication circuit according to claim 3, characterized in that: The first conduction circuit includes a first diode, an anode of the first diode is electrically connected between the pull-up resistor and the storage capacitor, and a cathode of the first diode is electrically connected to the transmission control terminal.
6. The communication circuit according to claim 5, characterized in that: The second conduction circuit includes a second diode and a switch tube, wherein the anode of the second diode is electrically connected between the pull-up resistor and the storage capacitor, the first electrode of the switch tube is electrically connected to the cathode of the second diode, the second electrode of the switch tube is electrically connected to the transmitting end, and the third electrode of the switch tube is electrically connected to the ground end; The voltage drop of the second diode is greater than or equal to the voltage drop of the first diode; and / or The switch tube includes a triode or a MOS tube.
7. The communication circuit according to claim 3, characterized in that: The current limiting branch includes a current limiting resistor electrically connected between the sending control end and the sending end, and located between the first conducting circuit and the second conducting circuit.
8. A communication system, characterized in that: The invention comprises a host, a plurality of slaves and a communication circuit as claimed in any one of claims 1 to 7, wherein the host is communicatively connected with the plurality of slaves via the communication circuit.
9. A communication system, characterized in that: The invention comprises a host and a plurality of slaves, wherein the host comprises a communication circuit as claimed in any one of claims 1 to 7, and the host is communicatively connected with the plurality of slaves via the communication circuit.
10. A communication system, characterized in that: It comprises a host and a plurality of slaves, each of the slaves comprises a communication circuit as claimed in any one of claims 1 to 7, and each of the slaves is communicatively connected with the host via each of the communication circuits.
