Communication devices, communication systems and smart home equipment
By using the combination of the first switching circuit and the second control circuit in the communication device, the communication circuit is ensured to be grounded or opened when on, and the energy consumption waste caused by interference during signal communication is solved, and efficient resistance is achieved Interference and low-energy communication effects.
Patent Information
- Application Number
- CN202411277551.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2025-01-17
- Estimated Expiration
- 2044-09-12
AI Technical Summary
During the signal communication process of electronic products, signal distortion is caused by interference caused by environmental and hardware factors. The existing technology improves anti-interference ability by adjusting the baud rate or voltage, but increases the energy consumption of the communication process, resulting in waste of energy consumption. serious.
Design a communication device, through the first switching circuit, the communication circuit is controlled to be grounded when conducting, and is in a circuit state when disconnected, and the second control circuit generates the same type of signal according to the voltage situation, ensuring that signal transmission is not disturbed and does not generate electrical energy. loss. The device includes a first control circuit, a first switching circuit, a communication circuit and a second control circuit, and uses a comparator and a filter circuit to improve control stability and anti-interference ability, and reduce energy loss.
It effectively improves the anti-interference ability of communication between the signal source, reduces energy loss during the communication process, avoids communication failures and energy consumption waste, and achieves a low-power communication effect.
Smart Images

Figure CN118802013B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and more specifically, to a communication device, a communication system, and a smart home appliance. Background Art
[0002] With the development of technology, more and more electronic products are appearing in people's lives. During the use of electronic products, they often need to communicate with other electronic products to transmit necessary signals. For example, in the field of smart home appliances, signals need to be transmitted between the control board and the driver board of a washing machine. The control board transmits signals to the driver board, allowing the driver board to control the corresponding drivers. The driver board transmits signals to the control board, allowing the control board to understand the controlled status of each driver, so that the washing machine can meet user needs.
[0003] However, signal communication often encounters interference due to factors such as the environment and hardware quality, leading to signal distortion and other issues. Currently, adjusting the baud rate or voltage in the communication circuit is used to improve anti-interference capabilities, but this increases energy consumption during the communication process, resulting in serious energy waste. Summary of the Invention
[0004] The embodiments of the present application provide a communication device, a communication system, and a smart home device to at least solve the technical problem of serious energy waste during the communication process.
[0005] According to a first aspect of an embodiment of the present application, there is provided a communication device, including:
[0006] a first control circuit, having an input terminal for inputting a first signal, an output terminal connected to a control terminal of a first switch circuit, and configured to control the first switch circuit to be turned on or off according to a type of the first signal, wherein the type includes a high level and a low level;
[0007] a first switch circuit, one end of which is grounded and the other end of which is connected to the first end of the communication circuit, for grounding the communication circuit when on and disconnecting the communication circuit when off;
[0008] a communication circuit, wherein the first end is connected to the first switch circuit, and the second end of the communication circuit is connected to the input end of the second control circuit;
[0009] The second control circuit has a signal output terminal, which is used to generate a second signal of the same type as the first signal according to the voltage condition of the communication circuit, and output the second signal through the signal output terminal.
[0010] In this embodiment, the communication circuit has two states: one is when the first switch circuit is on, the communication circuit is grounded, causing the voltage in the communication circuit to be pulled to ground voltage; the second is when the first switch circuit is off, the communication circuit is in an open circuit state. In this open circuit state, the communication circuit has neither voltage nor current. Simultaneously, regardless of whether the voltage of the communication circuit is grounded or no voltage, the second control circuit can generate a second signal of the same type as the first signal, allowing the second signal source to receive the same type of signal as the first signal source intends to transmit, thus meeting communication requirements. Throughout the communication process, the communication circuit is either grounded or no voltage. Both of these conditions prevent interference and energy loss during communication between the first and second signal sources, improving the anti-interference capability and reducing energy loss during communication.
[0011] In combination with the first aspect, in an optional implementation of an embodiment of the present application, the first control circuit includes a first comparator, the positive input terminal of the first comparator is connected to the input terminal of the first control circuit, and the negative input terminal of the first comparator is used to input a reference voltage.
[0012] Using this implementation, the first control circuit includes a first comparator, which is used to control the conduction or disconnection of the first switching circuit according to the type of the first signal transmitted by the first signal output terminal, with high control stability, high efficiency and low cost.
[0013] In combination with the first aspect, in an optional implementation of the embodiment of the present application, when the first signal is at a high level, the output terminal of the first comparator outputs a high level signal, and the first switch circuit is turned on;
[0014] When the first signal is at a low level, the output terminal of the first comparator outputs a low level, and the first switch circuit is disconnected.
[0015] With this implementation, the reference voltage is determined based on the interference to the first signal when it is at a low level. Therefore, the reference voltage can reduce the interference to the first signal when the first signal is at a low level, thereby improving the anti-interference capability during communication.
[0016] In combination with the first aspect, in an optional implementation of the embodiment of the present application, a filtering circuit is provided between the positive input terminal of the first comparator and the input terminal of the first control circuit, for filtering the first signal.
[0017] Using this implementation method, the filtering circuit is arranged between the positive input terminal of the first comparator and the input terminal of the first control circuit, so that the first signal is filtered by the filtering circuit before being transmitted to the positive input terminal of the first comparator, which helps to reduce the interference of the first signal and improve the anti-interference ability during the communication process.
[0018] In combination with the first aspect, in an optional implementation of the embodiment of the present application, the first switching circuit includes a first transistor, the base of the first transistor is connected to the control end of the first switching circuit, the emitter of the first transistor is grounded, and the collector of the first transistor is connected to the first end of the communication circuit.
[0019] With this implementation, the first transistor is used to control whether the first end of the communication circuit is grounded, which can easily improve the control stability and control convenience of the first switch circuit and reduce the cost of the first switch circuit.
[0020] In combination with the first aspect, in an optional implementation of the embodiment of the present application, the potential input to the negative input terminal of the first comparator is lower than the potential when the first signal is at a high level;
[0021] The second control circuit includes a second comparator, a positive input terminal of the second comparator is connected to a second power input pin, the second power input pin is used to receive a target electrical signal, a negative input terminal of the second comparator is connected to an input terminal of the second control circuit, and an output terminal of the second comparator is connected to an output terminal of the second control circuit;
[0022] A pull-up resistor circuit is connected in parallel between the negative input terminal of the second comparator and the input terminal of the second control circuit;
[0023] The pull-up resistor circuit is used to input the ground voltage to the negative input terminal of the second comparator when the communication circuit is at the ground voltage, and to input a high level to the negative input terminal of the second comparator when the communication circuit is in an open circuit state.
[0024] In this implementation, the second control circuit includes a second comparator and a pull-up resistor circuit. The second comparator outputs a second signal of the same type as the first signal, thereby reducing costs. When the pull-up resistor circuit disconnects the communication circuit, a high level is input to the negative input of the second comparator, ensuring that the second signal is of the same type as the first signal. This helps reduce the complexity and cost of the communication device.
[0025] In conjunction with the first aspect, in an optional implementation of the embodiment of the present application, the communication device further includes a third control circuit, whose input end is connected to the second signal output end of the second signal source, and whose output end is connected to the control end of the second switch circuit, and is configured to control the conduction or disconnection of the second switch circuit according to the type of the third signal transmitted by the second signal output end;
[0026] a second switch circuit, one end of which is grounded and the other end of which is connected to the second end of the communication circuit, for grounding the communication circuit when on and disconnecting the communication circuit when off;
[0027] a fourth control circuit, having an output end connected to the second signal input end of the first signal source, configured to generate a fourth signal of the same type as the third signal according to the voltage condition of the communication circuit, and transmit the fourth signal to the second signal input end;
[0028] One end of the first switch circuit connected to the communication circuit and the input end of the fourth control circuit are connected in parallel to the first end of the communication circuit, and one end of the second switch circuit connected to the communication circuit and the input end of the second control circuit are connected in parallel to the second end of the communication circuit.
[0029] With this implementation, by designing the third control circuit, the fourth control circuit, and the second switch circuit, the first signal source and the second signal source can interact with each other, thereby improving the functionality of the communication device.
[0030] In combination with the first aspect, in an optional implementation of the embodiment of the present application, the structure of the third control circuit is the same as that of the first control circuit;
[0031] The structure of the fourth control circuit is the same as that of the second control circuit;
[0032] The structure of the second switching circuit is the same as that of the first switching circuit.
[0033] By adopting this implementation method, the structure is the same, which facilitates controlling the cost of the communication device, reduces the production difficulty of the communication device, and improves the convenience of maintenance of the communication device.
[0034] In combination with the first aspect, in an optional implementation of the embodiment of the present application, the target electrical signal is a weak electrical signal with a voltage less than or equal to a preset threshold, and the preset threshold does not exceed the safety voltage.
[0035] This implementation method utilizes weak electrical signals to help reduce energy consumption during the communication process.
[0036] According to a second aspect of an embodiment of the present application, a communication system is provided, including a first signal source, a second signal source, and the communication device described above.
[0037] In combination with the second aspect, in an optional implementation of the embodiment of the present application, the first signal source includes a first controller in a smart home device, and the second signal source includes a second controller in the smart home device.
[0038] In combination with the second aspect, in an optional implementation of the embodiment of the present application, the smart home device includes at least one of a refrigerator, a washing machine and an air conditioner.
[0039] According to a third aspect of an embodiment of the present application, there is provided a smart home device, comprising a third controller and the aforementioned communication device;
[0040] The third controller is connected to a fourth controller via a communication circuit in the communication device, wherein the third controller serves as a first signal source and the fourth controller serves as a second signal source.
[0041] In combination with the third aspect, in an optional implementation of the embodiment of the present application, the smart home device includes at least one of a refrigerator, a washing machine and an air conditioner.
[0042] The technical effects obtained in the above-mentioned second to third aspects are similar to the technical effects obtained by the corresponding technical means in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 This is a block diagram of the overall structure of a communication device provided in an embodiment of the present application;
[0044] Figure 2 is a circuit diagram of a communication device provided in an embodiment of the present application;
[0045] Figure 3 This is a circuit diagram of a communication device provided in an embodiment of the present application in a specific application. DETAILED DESCRIPTION
[0046] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings 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 in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.
[0047] It should be understood that the "plurality" mentioned herein refers to two or more. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is merely a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate a clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.
[0048] In addition, the terms "comprises" and "having" and any variations thereof are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or apparatus that includes a series of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, product or apparatus.
[0049] With the advancement of society and the times, more and more electronic products are appearing in people's lives. With the popularization of electronic products, the communication between electronic products and their controllers also needs to be continuously improved, and their anti-interference capabilities must be continuously enhanced to continuously reduce energy consumption and costs. For example, products such as washing machines and air conditioners require data communication between the mainboard and the driver board. The collected humidity, temperature and other signals are transmitted to the corresponding mainboard. The instructions issued by the mainboard also need to be transmitted to the corresponding driver board through the communication circuit for corresponding control. However, since the mainboard and other supporting driver boards are far apart, the communication signal can be interfered by various factors, which can cause communication waveform distortion or packet loss, resulting in communication failures.
[0050] Current solutions, such as using an MCU in a Profibus-DP communication circuit to effectively adjust the baud rate and improve anti-interference capabilities, require an additional MCU and a 485 communication chip for long-distance transmission, which not only increases costs but also increases energy consumption during signal transmission. Another example is a power carrier communication circuit based on N-line and PE-line carriers. This communication method reduces the mains power to a 30V signal before transmission. Although it can effectively improve anti-interference capabilities over short signal transmission distances, it also greatly increases energy consumption. If used for long-distance transmission, the energy loss will be even greater.
[0051] Based on this, an embodiment of the present application provides a communication device. Taking the application of the communication device in the field of smart home as an example, the communication device provided by the present application can allow the signal to be transmitted without current in the transmission bus (that is, the communication circuit), which can effectively improve the communication efficiency between the master and slave machines, avoid communication failures caused by communication data packet loss due to interference, and effectively solve the problem that the master and slave machine signals are susceptible to interference during long-distance transmission and the energy loss during the transmission process is large, effectively achieving the effect of low power consumption.
[0052] Reference Figure 1 As shown, the communication device includes the following structure.
[0053] a first control circuit, having an input terminal for inputting a first signal, an output terminal connected to a control terminal of a first switch circuit, and configured to control the first switch circuit to be turned on or off according to a type of the first signal, wherein the type includes a high level and a low level;
[0054] a first switch circuit, one end of which is grounded and the other end of which is connected to the first end of the communication circuit, for grounding the communication circuit when on and disconnecting the communication circuit when off;
[0055] a communication circuit, wherein the first end is connected to the first switch circuit, and the second end of the communication circuit is connected to the input end of the second control circuit;
[0056] The second control circuit has a signal output terminal, which is used to generate a second signal of the same type as the first signal according to the voltage condition of the communication circuit, and output the second signal through the signal output terminal.
[0057] The first signal source and the second signal source refer to two devices that need to communicate, and communication is achieved by outputting high-level or low-level signals. It should be noted that the first signal source and the second signal source can be located in the same smart device or in different smart devices, and this embodiment does not specifically limit this.
[0058] Because the input terminal of the first control circuit is connected to the first signal output terminal of the first signal source, when the first signal source needs to communicate with the second signal source, the first signal source outputs a first signal, which is received by the first control circuit via the first signal output terminal. The first control circuit then controls the first switch circuit to turn on or off based on the type of the first signal. It should be noted that this embodiment does not specifically limit the on and off conditions of the first switch circuit; it is sufficient that the second control circuit can generate a second signal of the same type as the first signal.
[0059] Preferably, when the first signal is at a high level, the first switch circuit is turned on, and when the first signal is at a low level, the first switch circuit is turned off.
[0060] Specifically, after the first switching circuit is turned on, the communication circuit is grounded, thereby causing the voltage in the communication circuit to be pulled to the ground voltage, which is approximately equal to 0V. At this time, the input end of the second control circuit inputs a low level, and the second control circuit will perform corresponding processing and output a second signal with a high level, so that the first signal and the second signal are of the same type.
[0061] Among them, the first switching circuit is intended to control whether the first end of the communication circuit is grounded. Therefore, the first switching circuit can be any circuit with a switching function, such as IGBT, single-pole single-throw switch, transistor, MOSFET, etc. This embodiment does not make specific limitations on this.
[0062] The communication circuit is used for signal transmission, and thus is a physical circuit. In one application scenario, the communication circuit is a communication bus.
[0063] Among them, the second control circuit is intended to be able to generate a second signal of the same type as the first signal. Therefore, the second control circuit may include a structure that can convert the signal type, such as converting a low level to a high level, and converting a high level to a low level. Based on this, the second control circuit may include a comparator, an operational amplifier, a gate circuit and other structures, and this embodiment does not make specific limitations on this.
[0064] In this embodiment, the communication circuit has two states: one is when the first switch circuit is on, the communication circuit is grounded, causing the voltage in the communication circuit to be pulled to ground voltage; the second is when the first switch circuit is off, the communication circuit is in an open circuit state. In this open circuit state, the communication circuit has neither voltage nor current. Simultaneously, regardless of whether the voltage of the communication circuit is grounded or no voltage, the second control circuit can generate a second signal of the same type as the first signal, allowing the second signal source to receive the same type of signal as the first signal source intends to transmit, thus meeting communication requirements. Throughout the communication process, the communication circuit is either grounded or no voltage. Both of these conditions prevent interference and energy loss during communication between the first and second signal sources, improving the anti-interference capability and reducing energy loss during communication.
[0065] In a possible embodiment of the present application, Figure 2 As shown, the first control circuit includes a first comparator P1, the positive input terminal of the first comparator P1 is connected to the input terminal of the first control circuit, the negative input terminal of the first comparator P1 is connected to the first power input pin, the first power input pin is used to access the target electrical signal VCC, and the output terminal of the first comparator P1 is connected to the output terminal of the first control circuit.
[0066] In this embodiment, the first control circuit includes a first comparator P1, which is used to control the conduction or disconnection of the first switch circuit according to the type of the first signal transmitted by the first signal output terminal, with high control stability, high efficiency and low cost.
[0067] Optionally, in an implementation of this embodiment, the first control circuit further includes a voltage divider circuit, which is provided between the first power input pin and the negative input terminal of the first comparator P1, and is configured to reduce the input voltage of the negative input terminal of the first comparator P1 to a preset reference voltage ref, wherein the reference voltage ref is determined based on interference conditions experienced by the first signal when the first signal is at a low level;
[0068] When the first signal is at a high level, the output terminal of the first comparator P1 outputs a high level signal, and the first switch circuit is turned on;
[0069] When the first signal is at a low level, the output terminal of the first comparator P1 outputs a low level, and the first switch circuit is disconnected.
[0070] Preferably, the voltage divider circuit includes a first resistor R1 and a second resistor R2. One end of the first resistor R1 is connected to the first power input pin, and the other end is connected to one end of the second resistor R2; the other end of the second resistor R2 is grounded; and the negative input end of the first comparator is connected to the connecting line between the first resistor R1 and the second resistor R2.
[0071] The reference voltage ref can be obtained through testing. The testing process at least includes: after the various components in the communication device are connected, the installation location and environment of the communication device can also be determined. At this time, the interference in the first signal is detected, and then the resistance values of the first resistor R1 and the second resistor R2 in the voltage divider circuit are adjusted according to the interference to reduce the interference. When the minimum interference during the test process is reached, the resistance values of the first resistor R1 and the second resistor R2 can be determined as the voltage divider resistance values of the voltage divider circuit actually used, and the reference voltage ref is also determined.
[0072] In this embodiment, the voltage divider circuit can reduce the input voltage of the negative input terminal of the first comparator P1 to a preset reference voltage ref. The reference voltage ref is determined based on the interference situation of the first signal when the first signal is at a low level. Therefore, the reference voltage ref can reduce the interference of the first signal when the first signal is at a low level, thereby improving the anti-interference capability during the communication process.
[0073] Optionally, in an implementation of this embodiment, a filter circuit is provided between the positive input terminal of the first comparator P1 and the input terminal of the first control circuit, for filtering the first signal.
[0074] Preferably, the filter circuit is an RC circuit. Specifically, the filter circuit includes a third resistor R3 and a first capacitor C1. The first capacitor C1 is connected in parallel to the third resistor R3, and the two ends of the first capacitor C1 are respectively connected to the two ends of the third resistor R3. One end of the third resistor R3 is grounded, and the other end is connected to the positive input terminal of the first comparator P1.
[0075] Further preferably, a fourth resistor R4 is provided, one end of the fourth resistor R4 is connected to the input end of the first control circuit, and the other end is connected in parallel with the third resistor R3 to the positive input end of the first comparator P1 to play a current limiting role.
[0076] Further preferably, the output terminal of the first comparator P1 is further connected in series with a fifth resistor R5 . The fifth resistor R5 has a current limiting function to prevent excessive current from damaging components in subsequent circuits, such as the first switch circuit.
[0077] In this embodiment, the filtering circuit is arranged between the positive input terminal of the first comparator and the input terminal of the first control circuit, so that the first signal is filtered by the filtering circuit before being transmitted to the positive input terminal of the first comparator, which helps to reduce the interference of the first signal and improve the anti-interference ability during the communication process.
[0078] Optionally, in an implementation of this embodiment, the first switching circuit includes a first transistor Q1, the base of the first transistor Q1 is connected to the control end of the first switching circuit, the emitter of the first transistor Q1 is grounded, and the collector of the first transistor Q1 is connected to the first end of the communication circuit.
[0079] Preferably, the first transistor Q1 is an NPN transistor.
[0080] In one application scenario, the output terminal of the first comparator P1 is connected to the fifth resistor R5, and the base of the first transistor Q1 is connected to the other end of the fifth resistor R5, so that the fifth resistor R5 protects the first transistor Q1 (specifically, current limiting protection).
[0081] With this implementation, the first transistor Q1 is used to control whether the first end of the communication circuit is grounded, which can easily improve the control stability and control convenience of the first switch circuit and reduce the cost of the first switch circuit.
[0082] Optionally, in an implementation of this embodiment, the potential input to the negative input terminal of the first comparator P1 is lower than the potential when the first signal is at a high level;
[0083] The second control circuit includes a second comparator P2, a positive input terminal of the second comparator P2 is connected to a second power input pin, and the second power input pin is used to receive a target electrical signal VCC, a negative input terminal of the second comparator P2 is connected to an input terminal of the second control circuit, and an output terminal of the second comparator P2 is connected to an output terminal of the second control circuit;
[0084] A pull-up resistor circuit is connected in parallel between the negative input terminal of the second comparator P2 and the input terminal of the second control circuit;
[0085] The pull-up resistor circuit is used to input the ground voltage to the negative input terminal of the second comparator P2 when the communication circuit is at the ground voltage, and input a high level to the negative input terminal of the second comparator P2 when the communication circuit is in an open circuit state.
[0086] Preferably, the pull-up resistor circuit includes a sixth resistor R6; one end of the sixth resistor R6 is connected to the negative input terminal of the second comparator P2, and the other end is used to receive the target electrical signal. The sixth resistor R6 is connected in parallel between the negative input terminal of the second comparator P2 and the input terminal of the second control circuit.
[0087] Further preferably, a seventh resistor R7 is connected in series between the negative input terminal of the second comparator P2 and the input terminal of the second control circuit, and the seventh resistor R7 is connected in parallel with the sixth resistor R6. The seventh resistor R7 plays a role of current limiting.
[0088] Further preferably, a second capacitor is connected in parallel to the connection between the sixth resistor R6 and the negative input terminal of the second comparator P2, and the other end of the second capacitor is grounded; the second capacitor is used to improve anti-interference capability.
[0089] Further preferably, an eighth resistor R8 is connected in series between the positive input terminal of the second comparator P2 and the second power input pin, and the eighth resistor R8 functions as a current limiter. A ninth resistor R9 is connected in series between the output terminal of the second comparator P2 and the output terminal of the second control circuit, and the ninth resistor R9 functions as a current limiter.
[0090] In this implementation, the second control circuit includes a second comparator P2 and a pull-up resistor circuit. The second comparator P2 outputs a second signal of the same type as the first signal, thereby reducing costs. When the pull-up resistor circuit disconnects the communication circuit, a high level is input to the negative input of the second comparator P2, ensuring that the second signal is of the same type as the first signal. This helps reduce the complexity and cost of the communication device.
[0091] Optionally, in an implementation of this embodiment, the communication device further includes a third control circuit, whose input end is connected to the second signal output end of the second signal source, and whose output end is connected to the control end of the second switch circuit, and is configured to control the second switch circuit to be turned on or off according to the type of the third signal transmitted by the second signal output end;
[0092] A second switch circuit has one end grounded and the other end connected to the second end of the communication circuit, and is used to ground the communication circuit when it is turned on, and to disconnect the communication circuit when it is turned off;
[0093] a fourth control circuit, the output end of which is connected to the second signal input end of the first signal source, for generating a fourth signal of the same type as the third signal according to the voltage condition of the communication circuit, and transmitting the fourth signal to the second signal input end;
[0094] One end of the first switch circuit connected to the communication circuit is connected in parallel with the input end of the fourth control circuit to the first end of the communication circuit, and one end of the second switch circuit connected to the communication circuit is connected in parallel with the input end of the second control circuit to the second end of the communication circuit.
[0095] With this implementation, by designing the third control circuit, the fourth control circuit, and the second switch circuit, the first signal source and the second signal source can interact with each other, thereby improving the functionality of the communication device.
[0096] Optionally, in an implementation of this embodiment, the structure of the third control circuit is the same as that of the first control circuit;
[0097] The structure of the fourth control circuit is the same as that of the second control circuit;
[0098] The structure of the second switch circuit is the same as that of the first switch circuit.
[0099] Specifically, the third control circuit includes a third comparator P3, the positive input terminal of the third comparator P3 is connected to the input terminal of the third control circuit, the negative input terminal of the third comparator P3 is connected to the third power input pin, the third power input pin is used to access the target electrical signal VCC, and the output terminal of the third comparator P3 is connected to the output terminal of the third control circuit.
[0100] The third control circuit further includes a tenth resistor R10 and an eleventh resistor R11 for voltage division. One end of the tenth resistor R10 is connected to the third power input pin, and the other end is connected to one end of the eleventh resistor R11. The other end of the eleventh resistor R11 is grounded. The negative input of the third comparator P3 is connected to the connection line between the tenth resistor R10 and the eleventh resistor R11.
[0101] The third control circuit further includes a twelfth resistor R12 and a third capacitor for filtering. The third capacitor is connected in parallel to the twelfth resistor R12, with both ends of the third capacitor connected to the ends of the twelfth resistor R12. One end of the twelfth resistor R12 is grounded, and the other end is connected to the positive input of the third comparator P3.
[0102] Further preferably, a thirteenth resistor R13 is provided, one end of the thirteenth resistor R13 is connected to the input end of the third control circuit, and the other end is connected in parallel with the twelfth resistor R12 to the positive input end of the third comparator P3 to play a current limiting role.
[0103] Further preferably, the output terminal of the third comparator P3 is further connected in series with a fourteenth resistor R14. The fourteenth resistor R14 has a current limiting function to prevent excessive current from damaging components in subsequent circuits, such as the second switch circuit.
[0104] The second switch circuit includes a second transistor Q2 , a base of the second transistor Q2 connected to the control end of the second switch circuit, an emitter of the second transistor Q2 grounded, and a collector of the second transistor Q2 connected to the second end of the communication circuit.
[0105] Preferably, the second transistor Q2 is an NPN transistor.
[0106] In one application scenario, the output terminal of the third comparator P3 is connected to the fourteenth resistor R14. At this time, the base of the second transistor Q2 is connected to the other end of the fourteenth resistor R14. The fourteenth resistor R14 protects the second transistor Q2 (specifically, current limiting protection).
[0107] In one implementation of this embodiment, the potential input to the negative input terminal of the third comparator P3 is lower than the potential when the third signal is at a high level;
[0108] The fourth control circuit includes a fourth comparator P4, a positive input terminal of the fourth comparator P4 is connected to a fourth power input pin, and the fourth power input pin is used to receive the target electrical signal VCC, a negative input terminal of the fourth comparator P4 is connected to the input terminal of the fourth control circuit, and an output terminal of the fourth comparator P4 is connected to the output terminal of the fourth control circuit;
[0109] A pull-up circuit is connected in parallel between the negative input terminal of the fourth comparator P4 and the input terminal of the fourth control circuit;
[0110] The pull-up circuit is used to input the ground voltage to the negative input terminal of the fourth comparator P4 when the communication circuit is at the ground voltage, and input a high level to the negative input terminal of the fourth comparator P4 when the communication circuit is in an open circuit state.
[0111] Preferably, the pull-up circuit includes a fifteenth resistor R15; one end of the fifteenth resistor R15 is connected to the negative input terminal of the fourth comparator P4, and the other end is used to receive the target electrical signal VCC. The fifteenth resistor R15 is connected in parallel between the negative input terminal of the fourth comparator P4 and the input terminal of the fourth control circuit.
[0112] Further preferably, a sixteenth resistor R16 is connected in series between the negative input terminal of the fourth comparator P4 and the input terminal of the fourth control circuit, and the sixteenth resistor R16 is connected in parallel with the fifteenth resistor R15. The sixteenth resistor R16 has a current limiting function.
[0113] Further preferably, a fourth capacitor is connected in parallel to the connection between the fifteenth resistor R15 and the negative input terminal of the fourth comparator P4, and the other end of the fourth capacitor is grounded; the fourth capacitor is used to improve anti-interference capability.
[0114] Further preferably, a seventeenth resistor R17 is connected in series between the positive input terminal of the fourth comparator P4 and the fourth power input pin, and the seventeenth resistor R17 functions as a current limiter. An eighteenth resistor R18 is connected in series between the output terminal of the fourth comparator P4 and the output terminal of the fourth control circuit, and the eighteenth resistor R18 functions as a current limiter.
[0115] It should be noted that when the first control circuit receives the first signal, the third control circuit is controlled to be unable to output a signal, that is, the third control circuit is set to 0. Similarly, when the third control circuit receives the third signal, the first control circuit is controlled to be unable to output a signal, that is, the first control circuit is set to 0.
[0116] Furthermore, because the input ends of the first switch circuit and the fourth control circuit are both connected to the first end of the communication circuit, and the input ends of the second switch circuit and the second control circuit are both connected to the second end of the communication circuit, when the first control circuit receives the first signal and the third control circuit is unable to output a signal, the input end of the fourth control circuit receives the same input signal as the input end of the second control circuit. Preferably, because the first control circuit and the fourth control circuit are both connected to the first signal source, the first signal source can detect whether its output first signal is abnormal through the fourth control circuit. The specific detection process is not limited in this embodiment.
[0117] By adopting this implementation method, the structure is the same, which facilitates controlling the cost of the communication device, reduces the production difficulty of the communication device, and improves the convenience of maintenance of the communication device.
[0118] Optionally, in an implementation of this embodiment, the target electrical signal is a weak electrical signal with a voltage less than or equal to a preset threshold, and the preset threshold does not exceed a safe voltage.
[0119] This implementation method utilizes weak electrical signals to help reduce energy consumption during the communication process.
[0120] This embodiment further provides a communication system, including a first signal source, a second signal source, and the above-mentioned communication device.
[0121] Optionally, in an implementation of this embodiment, the first signal source includes a first controller in a smart home device, and the second signal source includes a second controller in the smart home device.
[0122] Optionally, in an implementation of this embodiment, the smart home device includes at least one of a refrigerator, a washing machine, and an air conditioner.
[0123] This embodiment also provides a smart home device, including a third controller and the above-mentioned communication device;
[0124] The third controller is connected to the fourth controller via a communication circuit in the communication device, wherein the third controller serves as a first signal source and the fourth controller serves as a second signal source.
[0125] Optionally, in an implementation of this embodiment, the smart home device includes at least one of a refrigerator, a washing machine, and an air conditioner.
[0126] In the above embodiments of the present application, the descriptions of the various embodiments have their own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments. The steps shown in the relevant flow charts can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flow charts, in some cases, the steps shown or described can be executed in an order different from that shown here. In other words, the order of steps described in the foregoing embodiments is only an example, and reasonable adjustment of the order of steps based on the content of the embodiments of the present application is also within the scope of protection of the embodiments of the present application.
[0127] In a specific implementation of the embodiment of the present application, Figure 3 As shown, the communication device is used for communication between the host and the slave, wherein the host can be the control board (or main board) in the washing machine, and the slave can be the driver board in the washing machine. The structure and use process of the communication device are as follows:
[0128] The communication device includes components such as resistors, capacitors, comparators, and transistors (NPN). When the host is the signal transmitter, the slave's signal transmitter must be forced to 0. The host's signal is then compared with the reference voltage ref using the P1 comparator. The comparison output GND or VCC is used to control the on / off of transistor Q1, which in turn controls the input of the slave's receiving end, the P4 comparator. The input signal is compared with VCC, and the long-distance transmission of the host's signal is converted into a slave's receiving signal.
[0129] Among them, the purpose of forcibly setting the slave signal transmitter to 0 is to make a communication protocol to prevent the slave from seizing the communication bus when the host sends a signal, causing a communication failure. The function is to prevent the slave from seizing the bus when the host sends a signal, causing a communication failure. It is not possible not to force it to 0, because when the host transmitter sends a signal, if the slave transmitter is not forced to set it to 0 or forced to set it to 1, the slave transmitter will be in an unknown state; first, when the host transmitter sends a signal, if the slave transmitter is forced to set it to 1, the slave will seize the bus, causing a communication failure; in addition, if it is not forced to be set to 0 and not forced to be set to 1, the slave transmitter will be in an unknown state. When this state jumps to 1 due to some interference, it will also seize the bus, causing a communication failure.
[0130] Among them, VCC is a weak current level that can be selected as needed and can be a DC level less than 6V. Secondly, the relationship between VCC and the reference voltage: the reference voltage is obtained by using the voltage divider principle and dividing VCC using two resistors. The size of the resistor can be adjusted as needed to obtain the required reference voltage size.
[0131] Among them, when Q1 is turned on, the negative input terminal of P4 is a low level. After the positive input terminal VCC of the P4 comparator is compared with the negative input terminal, P4 outputs a high level, and then the RX terminal is a high level; when Q1 is turned off, the negative input terminal of P4 is a high level. After comparison by the P4 comparator, it outputs a low level, and then the RX terminal is a low level.
[0132] Among them, long-distance transmission is achieved by using weak current signals. First, at the host transmitting end, the conduction and shutdown of Q1 can be controlled by using weak current signals. When Q1 is turned on, the negative input end of the slave P4 comparator will input a low level, and in the entire long-distance transmission path (that is, the path from the host communication circuit to the slave communication circuit), no current is involved. Therefore, the interference problem in the signal transmission process can be solved, thereby achieving long-distance transmission and avoiding the energy loss caused by the transmission process; when the host TX end sends a high-level signal, Q1 is turned off, and the signal transmission path between the master and the slave is cut off. The negative input end of the slave P4 comparator is controlled by the slave communication circuit and inputs a high level, so that the slave RX end receives a low-level signal. Since the signal transmission path between the master and the slave has been cut off at this time, it will not be affected by interference during the signal transmission process and will not cause energy loss, thereby achieving effective long-distance transmission.
[0133] The following is a detailed analysis of this circuit:
[0134] First, the reference voltage ref can improve the anti-interference ability of this circuit. The specific value can be adjusted according to needs, but ref must be smaller than the potential when TX sends a high level. In this analysis, ref=2.5V and VCC=5V are taken as an example;
[0135] The resistor connected in series with the positive input of the TX comparator acts as a current limiter to prevent damage to comparators P1 and P2. The RC connected before the positive input of comparators P1 and P2 is used to improve anti-interference capabilities. The ref at the negative input of P1 and P2 can be adjusted using the voltage divider effect of the resistors. The resistor connected in series with the output of comparators P1 and P2 acts as a current limiter to prevent damage to transistors Q1 and Q2. Similarly, the resistor connected in series with the positive and negative inputs of comparators P3 and P4 on the receiving end acts as a current limiter to prevent damage to comparators P3 and P4. The resistors before comparators P3 and P4 act as pull-up resistors for signal conversion, and the capacitor connected in parallel with these resistors improves the circuit's anti-interference capabilities. The resistor connected in series with the output of comparators P3 and P4 acts as a current limiter to prevent damage to the main chip.
[0136] When the host is used as the signal transmitter and the slave is used as the signal receiver, the slave TX terminal needs to be forced to 0. When TX is 0, since ref>0, P2 outputs GND and transistor Q2 is not turned on.
[0137] When the host sends a high level, since the host TX signal is greater than ref, the comparator P1 outputs VCC, and the transistor Q1 is turned on. At this time, the communication bus voltage is GND, so it will not cause energy loss during long-distance transmission. At this time, the reverse input of the host comparator P3 is GND, and the reverse input signal of the slave comparator P4 is GND. Therefore, the host receiving end receives the high level transmitted by the sending end after passing through the comparator P3, and the slave receiving end receives the high level transmitted by the host sending end after passing through the comparator P4, and the high level is connected to the high level.
[0138] When the host sends a low level, since the host TX signal is less than ref, the comparator P1 outputs GND, and the transistor Q1 is not turned on. At this time, the communication bus voltage is in an open circuit state, so it will not cause energy loss during long-distance transmission. At this time, since the bus is in an open circuit state, the reverse input end of the receiving end comparator is pulled up to VCC by the pull-up resistor. At this time, the host receiving end receives the low level transmitted by the sending end after the comparator P3, and the slave receiving end receives the low level transmitted by the host sending end after the comparator P4, and the send low is connected to the low.
[0139] The sequence of the serial numbers or introduction of the embodiments of this application is for description only and does not represent the superiority or inferiority of the embodiments.
[0140] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only exemplary. For example, the division of the units can be a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0141] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0142] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0143] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer, or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, or a magnetic tape), an optical medium (e.g., a digital versatile disc (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)). It is worth noting that the computer-readable storage medium mentioned in the embodiments of the present application may be a non-volatile storage medium, in other words, a non-transient storage medium.
[0144] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in the embodiments of this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the scene data of the current frame in the three-dimensional virtual scene, the client's device information, and the scene interaction information involved in the embodiments of this application are all obtained with full authorization.
[0145] The above is only a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A communication device, characterized in that: include: a first control circuit, the input end of which is used to input a first signal, the output end of which is connected to the control end of the first switch circuit, and is used to control the on or off of the first switch circuit according to the type of the first signal, wherein the type includes a high level and a low level; A first switch circuit, one end of which is grounded and the other end of which is connected to the first end of the communication circuit, and is used to ground the communication circuit when it is turned on and to disconnect the communication circuit when it is turned off; a communication circuit, wherein the first end is connected to the first switch circuit, and the second end of the communication circuit is connected to the input end of the second control circuit; The second control circuit has a signal output terminal, which is used to generate a second signal of the same type as the first signal according to the voltage condition of the communication circuit, and output the second signal through the signal output terminal.
2. The communication device according to claim 1, characterized in that: The first control circuit includes a first comparator, a positive input terminal of the first comparator is connected to an input terminal of the first control circuit, and a negative input terminal of the first comparator is used to input a reference voltage.
3. The communication device according to claim 2, characterized in that: When the first signal is at a high level, the output terminal of the first comparator outputs a high level signal, and the first switch circuit is turned on; When the first signal is at a low level, the output terminal of the first comparator outputs a low level, and the first switch circuit is disconnected.
4. The communication device according to claim 2, characterized in that: A filter circuit is provided between the positive input terminal of the first comparator and the input terminal of the first control circuit, for filtering the first signal.
5. The communication device according to claim 1, characterized in that: The first switch circuit includes a first transistor, a base of the first transistor is connected to the control end of the first switch circuit, an emitter of the first transistor is grounded, and a collector of the first transistor is connected to the first end of the communication circuit.
6. The communication device according to claim 2, characterized in that: The potential input to the negative input terminal of the first comparator is lower than the potential when the first signal is at a high level; The second control circuit includes a second comparator, a positive input terminal of the second comparator is connected to a second power input pin, the second power input pin is used to access a target electrical signal, a negative input terminal of the second comparator is connected to an input terminal of the second control circuit, and an output terminal of the second comparator is connected to an output terminal of the second control circuit; A pull-up resistor circuit is connected in parallel between the negative input terminal of the second comparator and the input terminal of the second control circuit; The pull-up resistor circuit is used to input the ground voltage to the negative input terminal of the second comparator when the communication circuit is at the ground voltage, and to input a high level to the negative input terminal of the second comparator when the communication circuit is in an open circuit state.
7. The communication device according to any one of claims 1 to 6, characterized in that: The communication device further includes a third control circuit, whose input end is connected to the second signal output end of the second signal source, and whose output end is connected to the control end of the second switch circuit, and is used to control the conduction or disconnection of the second switch circuit according to the type of the third signal transmitted by the second signal output end, wherein the second signal is output through the signal output end of the second control circuit and then received by the second signal source through the first signal input end of the second signal source; A second switch circuit, one end of which is grounded and the other end is connected to the second end of the communication circuit, and is used for grounding the communication circuit when it is turned on, and disconnecting the communication circuit when it is turned off; a fourth control circuit, whose output end is connected to the second signal input end of the first signal source, and is used to generate a fourth signal of the same type as the third signal according to the voltage condition of the communication circuit, and transmit the fourth signal to the second signal input end, wherein the first signal is output from the first signal output end of the first signal source to the input end of the first control circuit; One end of the first switch circuit connected to the communication circuit is connected in parallel with the input end of the fourth control circuit to the first end of the communication circuit, and one end of the second switch circuit connected to the communication circuit is connected in parallel with the input end of the second control circuit to the second end of the communication circuit.
8. The communication device according to claim 7, characterized in that: The structure of the third control circuit is the same as that of the first control circuit; The structure of the fourth control circuit is the same as that of the second control circuit; The structure of the second switch circuit is the same as that of the first switch circuit.
9. The communication device according to claim 6, characterized in that: The target electrical signal is a weak electrical signal whose voltage is less than or equal to a preset threshold, and the preset threshold does not exceed a safe voltage.
10. A communication system, characterized in that: A communication device comprising a first signal source, a second signal source and any one of claims 1 to 9; When the first signal source communicates with the second signal source, the first signal source outputs a first signal to the communication device, and the communication device generates a second signal according to the first signal and outputs the second signal to the second signal source.
11. The communication system according to claim 10, characterized in that: The first signal source includes a first controller in a smart home device, and the second signal source includes a second controller in the smart home device.
12. The communication system according to claim 11, characterized in that: The smart home device includes at least one of a refrigerator, a washing machine and an air conditioner.
13. A smart home device, characterized in that: comprising a third controller and the communication device according to any one of claims 1 to 9; The third controller is connected to a fourth controller via a communication circuit in the communication device, wherein the third controller serves as a first signal source and the fourth controller serves as a second signal source.
14. The smart home device according to claim 13, characterized in that: The smart home device includes at least one of a refrigerator, a washing machine and an air conditioner.
Citation Information
Patent Citations
Bus communication circuit and device
CN213906694U
Switch control circuit of main control circuit and electronic equipment
CN218103100U