CN107819493B - Data communication equipment - Google Patents

Data communication equipment Download PDF

Info

Publication number
CN107819493B
CN107819493B CN201610827236.1A CN201610827236A CN107819493B CN 107819493 B CN107819493 B CN 107819493B CN 201610827236 A CN201610827236 A CN 201610827236A CN 107819493 B CN107819493 B CN 107819493B
Authority
CN
China
Prior art keywords
voltage
component
interface
electrically connected
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610827236.1A
Other languages
Chinese (zh)
Other versions
CN107819493A (en
Inventor
李东声
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tendyron Technology Co Ltd
Original Assignee
Tendyron Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tendyron Technology Co Ltd filed Critical Tendyron Technology Co Ltd
Priority to CN201610827236.1A priority Critical patent/CN107819493B/en
Priority to EP17850195.3A priority patent/EP3514691B1/en
Priority to PCT/CN2017/100211 priority patent/WO2018049993A1/en
Priority to US16/333,212 priority patent/US10817038B2/en
Priority to CA3036753A priority patent/CA3036753C/en
Publication of CN107819493A publication Critical patent/CN107819493A/en
Application granted granted Critical
Publication of CN107819493B publication Critical patent/CN107819493B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/54Systems for transmission via power distribution lines
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/54Systems for transmission via power distribution lines
    • H04B3/548Systems for transmission via power distribution lines the power on the line being DC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/10Current supply arrangements

Abstract

The present invention provides a data communication apparatus, including: the method comprises the following steps: the power supply interface, the wired communication interface, the main control chip and the energy storage assembly are connected with the direct current power supply; the wired communication interface consists of a first communication sub-interface and a second communication sub-interface; the power supply interface is electrically connected with the first end of the energy storage assembly and the first communication sub-interface respectively; the second communication sub-interface is electrically connected with a grounding end of the data communication equipment; the main control chip comprises a control port, and the control port is electrically connected with the second end of the energy storage assembly; the main control chip is used for outputting a first signal from the control port when the data communication equipment sends a low level signal; the energy storage component is used for setting the voltage of the first end of the energy storage component to be a first voltage under the control of the first signal, wherein the first voltage is lower than the voltage value at the power supply interface and is greater than zero.

Description

Data communication equipment
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a data communication device.
Background
At present, electronic products are developed rapidly, external interfaces are mixed, and the products with main chips generally have external interfaces and have charging and communication functions. At present, a charging interface and a wired communication interface in a wired communication interface of a general electronic product are separated, that is, different signal lines are respectively used for realizing communication and charging, at least three lines are needed, a lot of hardware support is needed, and resources are wasted. Along with the continuous improvement of product comfort, convenience for users to use is also more and more important without limiting positive and negative interface communication.
Disclosure of Invention
The present invention is directed to solving the above problems.
It is a primary object of the present invention to provide a data communication device that functions as a master device.
It is another object of the present invention to provide a data communication device for use as a slave device.
In order to achieve the purpose, the invention provides the following technical scheme:
in the embodiment 1, the present invention provides a data communication device that can be used as a master device, including: the power supply interface, the wired communication interface, the main control chip and the energy storage assembly are connected with the direct current power supply; the wired communication interface consists of a first communication sub-interface and a second communication sub-interface; the power supply interface is electrically connected with the first end of the energy storage assembly and the first communication sub-interface respectively; the first communication sub-interface is electrically connected with the first end of the energy storage component; the second communication sub-interface is electrically connected with a grounding end of the data communication equipment; the main control chip comprises a control port, and the control port is electrically connected with the second end of the energy storage assembly; the main control chip is used for outputting a first signal from the control port when the data communication equipment sends a low level signal; the energy storage component is used for setting the voltage of the first end of the energy storage component to be a first voltage under the control of the first signal, wherein the first voltage is lower than the voltage value at the power supply interface and is greater than zero.
Scheme 2, according to the apparatus of scheme 1, the energy storage component is a capacitor; the first signal is a level signal with a voltage value lower than a second voltage, wherein the second voltage is smaller than the voltage value at the power supply interface; the main control chip is further configured to output a second signal from the control port when the data communication device sends a high level signal, where the second signal is a level signal whose voltage value is the second voltage.
Scheme 3, the apparatus of scheme 1, the apparatus further comprising: a voltage generating circuit; the energy storage component is a capacitor; the first signal is a level signal with a voltage value lower than a second voltage, wherein the second voltage is smaller than the voltage value at the power supply interface; the input end of the voltage generating circuit is electrically connected with the power supply interface, the output end of the voltage generating circuit is electrically connected with the second end of the energy storage assembly, and the voltage generating circuit is used for outputting a level signal with a voltage value of the second voltage to the second end of the energy storage assembly.
Scheme 4, the apparatus according to scheme 3, wherein the voltage generating circuit includes a first voltage dividing component and a second voltage dividing component, a first end of the first voltage dividing component is an input end of the voltage generating circuit, a second end of the first voltage dividing component is electrically connected to a first end of the second voltage dividing component, a connection point of the first voltage dividing component and the second voltage dividing component is an output end of the voltage generating circuit, and a second end of the second voltage dividing component is electrically connected to the ground end; the data communication apparatus further includes: and the voltage stabilizing module is connected between the power supply interface and the input end of the voltage generating circuit.
Scheme 5, the apparatus of any of schemes 1-3, further comprising: a switch assembly; the control port is electrically connected to the second end of the energy storage component through the switch component, the switch component is further electrically connected to the ground terminal, and the control port is specifically configured to conduct a path between the second end of the energy storage component and the ground terminal when the data communication device sends a low level signal.
Scheme 6 the apparatus of any of schemes 1-5, further comprising: a signal acquisition circuit; the first communication sub-interface is also electrically connected with the input end of the signal acquisition circuit; the main control chip also comprises a detection port which is electrically connected with the output end of the signal acquisition circuit; the signal acquisition circuit includes: the load circuit comprises a first load component, a second load component, a capacitor component, a third load component and a voltage comparator; the first end of the first load component is electrically connected with the first end of the second load component, and the connection point of the first load component and the second load component is the input end of the signal acquisition circuit; the second end of the first load component is electrically connected with the positive input end of the voltage comparator; the second end of the second load component, the first end of the capacitor component and the first end of the third load component are respectively electrically connected with the reverse input end of the voltage comparator, and the second end of the capacitor component and the second end of the third load component are respectively electrically connected with the grounding end; the output end of the voltage comparator is the output end of the signal acquisition circuit. Scheme 7, the data communication device of scheme 6, the device further comprising: and the burr filtering component is connected between the second end of the first load component and the output end of the voltage comparator.
In scheme 8, an embodiment of the present invention provides a data communication device that can be used as a slave device, including: the system comprises a wired communication interface, a main control chip and an energy storage assembly; the wired communication interface consists of a first communication sub-interface and a second communication sub-interface, and is used for being connected with external equipment, and the external equipment supplies power to the data communication equipment; the first communication sub-interface is electrically connected with the first end of the energy storage component; the second communication sub-interface is electrically connected with a grounding end of the data communication equipment; the main control chip comprises a control port, and the control port is electrically connected with the second end of the energy storage assembly; the main control chip is used for outputting a first signal from the control port when the data communication equipment sends a low level signal; the energy storage component is used for setting the voltage of the first end of the energy storage component to be a first voltage under the control of the first signal, wherein the first voltage is lower than the voltage value of the power supply voltage provided by the external equipment and is greater than zero.
Scheme 9, the apparatus of scheme 8, the energy storage component is a capacitor; the first signal is a level signal with a voltage value lower than a second voltage, wherein the second voltage is lower than the voltage value of a power supply voltage provided by the external equipment; the main control chip is further configured to output a second signal from the control port when the data communication device sends a high level signal, where the second signal is a level signal whose voltage value is the second voltage.
Scheme 10, the apparatus of scheme 8, further comprising: a voltage generating circuit; the energy storage component is a capacitor; the first signal is a level signal with a voltage value lower than a second voltage, wherein the second voltage is lower than the voltage value of a power supply voltage provided by the external equipment; the input end of the voltage generating circuit is electrically connected with the first communication sub-interface, the output end of the voltage generating circuit is electrically connected with the second end of the energy storage assembly, and the voltage generating circuit is used for outputting a level signal with a voltage value of the second voltage to the second end of the energy storage assembly.
Scheme 11, the apparatus of scheme 10, the voltage generating circuit includes a first voltage-dividing component and a second voltage-dividing component, a first end of the first voltage-dividing component is an input end of the voltage generating circuit, a second end of the first voltage-dividing component is electrically connected to a first end of the second voltage-dividing component, a connection point of the first voltage-dividing component and the second voltage-dividing component is an output end of the voltage generating circuit, and a second end of the second voltage-dividing component is electrically connected to the ground end.
Scheme 12 the apparatus of any of schemes 8-11, further comprising: a switch assembly; the control port is electrically connected to the second end of the energy storage component through the switch component, the switch component is further electrically connected to the ground terminal, and the control port is specifically configured to conduct a path between the second end of the energy storage component and the ground terminal when the data communication device sends a low level signal.
Scheme 13, the device according to any one of schemes 8-11, the master control chip further comprising: a power supply port; the power supply port is electrically connected with the first communication sub-interface.
Scheme 14, an embodiment of the present invention provides a data communication device that can be used as a slave device, including: the system comprises a wired communication interface, an anti-reverse connection module, a main control chip and an energy storage assembly; the wired communication interface consists of a first communication sub-interface and a second communication sub-interface, and is used for being connected with external equipment, and the external equipment supplies power to the data communication equipment; the first communication sub-interface is electrically connected with the first input and output end of the reverse connection prevention module, the second communication sub-interface of the wired communication interface is electrically connected with the second input and output end of the reverse connection prevention module, the grounding end of the reverse connection prevention module is electrically connected with the grounding end of the data communication equipment, and the output end of the reverse connection prevention module is electrically connected with the first end of the energy storage assembly; the main control chip comprises a control port, and the control port is electrically connected with the second end of the energy storage assembly; the main control chip is used for outputting a first signal from the control port when the data communication equipment sends a low level signal; the energy storage component is used for setting the voltage of a first end of the energy storage component to be a first voltage under the control of the first signal, wherein the first voltage is lower than the voltage value of the power supply voltage provided by the external equipment and is greater than zero; the reverse connection prevention module is used for conducting a path from one port of the first input and output end and the second input and output end to the output end of the reverse connection prevention module, and conducting a path from the grounding end to the other port of the first input and output end and the second input and output end.
Scheme 15, the apparatus of scheme 14, the energy storage component is a capacitor; the first signal is a level signal with a voltage value lower than a second voltage, wherein the second voltage is lower than the voltage value of a power supply voltage provided by the external equipment; the main control chip is further configured to output a second signal from the control port when the data communication device sends a high level signal, where the second signal is a level signal whose voltage value is the second voltage.
Scheme 16, the apparatus of scheme 14, further comprising: a voltage generating circuit; the energy storage component is a capacitor; the first signal is a level signal with a voltage value lower than a second voltage, wherein the second voltage is lower than the voltage value of a power supply voltage provided by the external equipment; the input end of the voltage generating circuit is electrically connected with the output end of the reverse connection preventing module, the output end of the voltage generating circuit is electrically connected with the second end of the energy storage assembly, and the voltage generating circuit is used for outputting a level signal with a voltage value of the second voltage to the second end of the energy storage assembly.
The apparatus according to claim 17 or 16, wherein the voltage generating circuit includes a first voltage dividing component and a second voltage dividing component, a first end of the first voltage dividing component is an input end of the voltage generating circuit, a second end of the first voltage dividing component is electrically connected to a first end of the second voltage dividing component, a connection point of the first voltage dividing component and the second voltage dividing component is an output end of the voltage generating circuit, and a second end of the second voltage dividing component is electrically connected to the ground end; the data communication apparatus further includes: and the voltage stabilizing module is connected between the output end of the reverse connection preventing module and the input end of the voltage generating circuit.
Scheme 18, the device of any of schemes 14-17, the master control chip further comprising: a power supply port; the power supply port is electrically connected with the output end of the reverse connection prevention module.
According to the technical scheme provided by the invention, the data communication equipment is provided with the two-wire communication interface, and the data transmission of the communication equipment through the two-wire communication interface can be realized through the embodiment, and the function of preventing reverse connection can be supported.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a data communication device serving as a master device according to embodiment 1 of the present invention;
fig. 2 is a schematic structural diagram of a data communication device serving as a master device according to embodiment 2 of the present invention;
fig. 3 is a schematic structural diagram of another data communication device serving as a master device according to embodiment 2 of the present invention;
fig. 4 is a schematic structural diagram of another data communication device serving as a master device according to embodiment 2 of the present invention;
fig. 5 is a schematic diagram of a signal waveform with a glitch signal according to embodiment 2 of the present invention;
fig. 6 is a schematic structural diagram of a data communication device serving as a master device according to embodiment 3 of the present invention;
fig. 7 is a schematic structural diagram of another data communication device serving as a master device according to embodiment 3 of the present invention;
fig. 8 is a schematic structural diagram of another data communication device serving as a master device according to embodiment 3 of the present invention;
fig. 9 is a schematic structural diagram of a further data communication device serving as a master device according to embodiment 3 of the present invention;
fig. 10 is a schematic structural diagram of a data communication device serving as a slave device according to embodiment 4 of the present invention;
fig. 11 is a schematic structural diagram of a data communication device serving as a slave device according to embodiment 5 of the present invention;
fig. 12 is a schematic structural diagram of another data communication device used as a slave device according to embodiment 5 of the present invention;
fig. 13 is a schematic structural diagram of another data communication device used as a slave device according to embodiment 5 of the present invention;
fig. 14 is a schematic structural diagram of a data communication device used as a slave device according to embodiment 6 of the present invention;
fig. 15 is a schematic structural diagram of another data communication device used as a slave device according to embodiment 6 of the present invention;
fig. 16 is a schematic structural diagram of another data communication device used as a slave device according to embodiment 6 of the present invention;
fig. 17 is a schematic structural diagram of a data communication device used as a slave device according to embodiment 6 of the present invention;
fig. 18 is a schematic structural diagram of a data communication device used as a slave device according to embodiment 7 of the present invention;
fig. 19 is a schematic structural diagram of an anti-reverse connection module provided in embodiment 7 of the present invention;
fig. 20 is a schematic structural diagram of a data communication device used as a slave device according to embodiment 8 of the present invention;
fig. 21 is a schematic structural diagram of another data communication device used as a slave device according to embodiment 8 of the present invention;
fig. 22 is a schematic structural diagram of another data communication device used as a slave device according to embodiment 8 of the present invention;
fig. 23 is a schematic structural diagram of a data communication device used as a slave device according to embodiment 9 of the present invention;
fig. 24 is a schematic structural diagram of another data communication device used as a slave device according to embodiment 9 of the present invention;
fig. 25 is a schematic structural diagram of another data communication device used as a slave device according to embodiment 9 of the present invention;
fig. 26 is a schematic structural diagram of a further data communication device used as a slave device according to embodiment 9 of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention are clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like, indicate orientations or positional relationships based on those shown in the drawings, and are used only for convenience in describing the present invention and for simplicity in description, and do not indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and thus, are not to be construed as limiting the present invention. Furthermore, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or quantity or location.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
The present embodiment provides a data communication device for master-side communication (simply referred to as a master device) and a data communication device for slave-side communication (simply referred to as a slave device). When the master device and the slave device are connected in a forward direction through the two-wire communication interface, namely the first communication sub-interface of the master device is electrically connected with the first communication sub-interface of the slave device, and the second communication sub-interface of the master device is electrically connected with the second communication sub-interface of the slave device. The first communication sub-interface of the master device may be configured to transmit data to the slave device, and may be configured to receive data from the slave device, and the master device may further provide a supply voltage to the slave device. The first communication sub-interface of the slave device may be used to transmit data to the master device and may also receive data from the master device. The following describes the master device and the slave device in detail.
Example 1
The present embodiment provides a data communication apparatus, which is a master apparatus. As shown in fig. 1, the data communication apparatus includes: a power supply interface 100 connected with a direct current power supply, a wired communication interface 110, a main control chip 130 and an energy storage assembly 140;
the wired communication interface 110 is composed of a first communication sub-interface 111 and a second communication sub-interface 112;
the power supply interface 100 is electrically connected to a first end of the energy storage component 140 and the first communication sub-interface 111 respectively;
the first communication sub-interface 111 is electrically connected with a first end of the energy storage component 140;
the second communication sub-interface 112 is electrically connected with a ground terminal GND _ M of the data communication device;
the main control chip 130 includes a control port, and the control port is electrically connected to the second end of the energy storage assembly 140;
the main control chip 130 is configured to output a first signal from the control port when the data communication device sends a low level signal;
the energy storage component 140 is configured to set a voltage at a first end of the energy storage component 140 to a first voltage under the control of the first signal, where the first voltage is lower than a voltage value at the power supply interface 100 and is greater than zero.
The wired communication interface 110 is composed of a first communication sub-interface and a second communication sub-interface. Since the wired communication interface is composed of two interfaces, the wired communication interface is also called a two-wire communication interface
In this embodiment, since the first communication sub-interface of the data communication device is electrically connected to the power supply interface, when no low-level signal is transmitted, the level at the first communication sub-interface may be maintained at the voltage value at the power supply interface. When the data communication equipment sends a low-level signal, the main control chip outputs a first signal from the control port, the energy storage assembly sets the voltage of the first end of the energy storage assembly to be a first voltage under the control of the first signal, and the first voltage is lower than the voltage value at the power supply interface and is greater than zero, so that the level at the first communication sub-interface is reduced to generate level change, and then data sending is realized through the level change at the first communication sub-interface. Instead of using the prior art scheme to drop the level ground of the transmission port to zero, data transmission is implemented.
In an optional implementation manner of this embodiment, the power supply interface 100 may further be electrically connected to a power supply port of the main control chip 130, so as to implement power supply to the main control chip 130. Of course, the power supply interface 100 can also be electrically connected to power supply ports of other load elements in the data communication device to supply power to other load elements in the data communication device.
As an optional implementation manner of the embodiment of the present invention, the data communication device may further include: and the current stabilizing assembly (not shown) is connected between the power supply interface and the first end of the energy storage assembly, is positioned between the power supply interface and the first communication sub-interface, and is also positioned between the power supply interface and the input end of the signal acquisition circuit. When the method is specifically implemented, as an optional manner, the flow stabilizing component may include: an inductive element. The current stabilizing component can utilize the characteristics of the inductor to ensure that the current of the circuit does not change suddenly.
In addition, as an optional implementation manner of the embodiment of the present invention, the data communication device may further include: and the follow current component (not shown) is reversely connected in parallel at two ends of the inductor, is unidirectionally conducted, and the conducting direction is opposite to the circuit path direction in the inductor. In a specific implementation, as an alternative, the freewheeling component may be a diode or other component capable of freewheeling, and this embodiment is not limited. Taking the diode as an example, the anode of the diode is used as the first terminal, and the cathode is used as the second terminal, that is, the diode may be connected in parallel at two ends of the inductor in reverse direction. When the circuit is unstable, electromotive force at two ends of an inductor in the current stabilizing component does not disappear immediately, the wave crest or the wave trough of the waveform oscillates (burrs exist), residual electromotive force can generate reverse voltage to elements in the circuit, and then the elements are burnt out, diodes connected in parallel at two ends of the inductor in a reverse direction can release the residual electromotive force (the diodes playing the role are called freewheeling diodes), so that the safety of other elements in the circuit is protected, and furthermore, the oscillation of a rapid falling edge can be eliminated (namely, a stable waveform is obtained) through the freewheeling component so as to output stable voltage (high level or low level).
Example 2
The present embodiment provides a data communication apparatus, which is a master apparatus. This example differs from example 1 in that:
in this embodiment, the main control chip is further configured to output a second signal from the control port when the data communication device sends a high level signal.
In this embodiment, the first signal is a level signal having a voltage value lower than a second voltage, where the second voltage is smaller than a voltage value at the power supply interface; the second signal is a level signal with a voltage value of the second voltage.
As shown in fig. 2, the energy storage component may be a capacitor (C1 shown in fig. 2). The first end of the energy storage component is electrically connected to the power supply interface (V _ MPWR shown in fig. 2) and the first communication sub-interface (1 port of the reference numeral 110 shown in fig. 2 is the first communication sub-interface, and 2 ports of the reference numeral 110 are the second communication sub-interface), respectively, and the second end is electrically connected to the control port of the main control chip 130.
When the data communication equipment sends a high-level signal, the first end of the energy storage component can be maintained at the voltage provided by the power supply interface, so that the level of the first communication sub-interface is also maintained at the high-level signal, and the high-level signal is the voltage signal provided by the power supply interface. The control port of the main control chip outputs a second signal, so that the level of the second end of the energy storage component is maintained at a second voltage, where the second signal is a level signal with a voltage value of the second voltage, and the second voltage is lower than the voltage value at the power supply interface, for example, the voltage at the power supply interface is 5v, and the second voltage may be 3 v. In this embodiment, the second signal functions as: the voltage difference between the two ends of the energy storage assembly can be maintained at the difference between the voltage at the power supply interface and the second voltage, when a low level signal needs to be sent next time, when the control port of the main control chip outputs a first signal lower than the second voltage, the voltage difference between the two ends of the energy storage assembly is increased, the capacitor is charged instantly, according to the characteristic that the capacitor is isolated from direct connection, the level of the first end of the energy storage assembly is pulled down instantly, the level of the first communication sub-interface is pulled down, and the sending of the low level signal is achieved.
When the data communication device sends a low level signal, the control port of the main control chip outputs a first signal, the first signal is a level signal with a voltage value lower than a second voltage, for example, the second voltage is 3v, the voltage value of the first signal may be 2v, or 1v, or 0v, and the like, the voltage difference between two ends of the capacitor is increased, so that the capacitor is charged instantly, and according to the characteristic that the capacitor is isolated from direct communication, the level of the first end of the capacitor is pulled down instantly, so that the level of the first communication sub-interface is pulled down, and thus level change is generated to realize data sending. By means of the capacitor, the level at the first communication sub-interface can be controlled to be reduced to a first voltage, the first voltage is a non-zero voltage value, and therefore data transmission is achieved, and data transmission is achieved by means of the scheme in the prior art that the level of the transmission port is reduced to zero through grounding.
In an optional implementation manner of this embodiment, one implementation manner of the control port outputting the first signal may be: a first signal is generated inside the main control chip and is output through a control port; optionally, another implementation manner of controlling the port to output the first signal is as follows: the control port controls the second end of the energy storage assembly to be grounded by controlling the on-off of the switch, so that a first signal is generated at the control port. At this time, the apparatus further includes: a switch assembly (not shown); the control port is electrically connected to the second end of the energy storage component through the switch component, the switch component is further electrically connected to the ground terminal, and the control port is specifically configured to conduct a path between the second end of the energy storage component and the ground terminal when the data communication device sends a low level signal.
In an optional implementation manner of this embodiment, as shown in fig. 3, the signal acquisition circuit includes: a first load component (R1 shown in fig. 3), a second load component (R2 shown in fig. 3), a capacitance component (C2 shown in fig. 3), a third load component (R3 shown in fig. 3), and a voltage comparator (a 1 shown in fig. 3); the first end of the first load component is electrically connected with the first end of the second load component, and the connection point of the first load component and the second load component is the input end of the signal acquisition circuit; the second end of the first load component is electrically connected with the positive input end of the voltage comparator; the second end of the second load component, the first end of the capacitor and the first end of the third load component are respectively and electrically connected with the reverse input end of the voltage comparator, and the second end of the capacitor component and the second end of the third load component are respectively and electrically connected with the grounding end; the output end of the voltage comparator is the output end of the signal acquisition circuit.
The first load component, the second load component, and the third load component may be resistors, for example, but may also be other elements that may be equivalent to resistors, and are not limited herein.
The working principle of the signal acquisition circuit for realizing signal acquisition is as follows:
when the data communication equipment receives a high-level signal through the first communication sub-interface, the input end of the signal acquisition circuit is connected with the high-level signal, the high-level signal respectively passes through the first load assembly and the second load assembly to generate voltage drop, if no capacitor or a third load assembly exists, the voltage values corresponding to the high-level signal of the second end of the first load assembly and the high-level signal of the second end of the second load assembly are the same, and the voltage comparator cannot normally output the signal. Because the capacitor and the third load component exist, the capacitor can be charged to reach electric energy balance, the voltage corresponding to the high level signal reaching the second end of the second load component can be pulled down by the third load component and then is connected to the reverse input end of the voltage comparator, the high level signal reaching the second end of the first load component is directly connected to the forward input end of the voltage comparator, at the moment, the voltage value of the forward input end of the voltage comparator is higher than that of the reverse input end, and the output end of the voltage comparator outputs the high level signal. The detection end of the main control chip collects the high level signal output by the output end of the voltage comparator, and the data communication equipment can be informed of receiving the high level signal.
When the data communication equipment receives a low-level signal through the first communication sub-interface, the input end of the signal acquisition circuit is connected with the low-level signal, the low-level signal passes through the first load assembly and the second load assembly respectively, and if no capacitor or a third load assembly exists, voltage values corresponding to the low-level signal of the second end of the first load assembly and the low-level signal of the second end of the second load assembly are the same, and the voltage comparator cannot normally output the signal. Due to the existence of the capacitor and the third load assembly, the voltage difference between two ends of the capacitor is reduced, the capacitor can discharge to reach electric energy balance, the low level signal reaching the second end of the second load assembly is connected to the reverse input end of the voltage comparator after being temporarily increased under the condition that the capacitor discharges, the low level signal reaching the second end of the first load assembly is directly connected to the forward input end of the voltage comparator, at the moment, the voltage value of the forward input end of the voltage comparator is lower than that of the reverse input end, and the output end of the voltage comparator outputs the low level signal. The detection end of the main control chip collects the low level signal output by the output end of the voltage comparator, and the data communication equipment can know that the low level signal is received.
It should be noted that the magnitudes of the high level signal and the low level signal received by the data communication device through the first communication sub-interface are relative. The voltage difference value between the voltage value corresponding to the low level signal and the voltage value corresponding to the high level signal can be very small, the detection end of the main control chip can not directly detect the level change with the small voltage difference value, and the signal acquisition circuit provided by the embodiment can amplify the small voltage difference value, so that the detection end of the main control chip can realize the detection of the level change with the small voltage change difference value.
In an optional implementation manner of this embodiment, as shown in fig. 4, the data communication device further includes: a glitch filter assembly (R6 shown in fig. 4) connected between the second terminal of the first load assembly and the output of the voltage comparator.
Wherein the burr filtering component may be a resistor. Of course, other elements that can be equivalent to a resistor are also possible, and are not limited herein.
Due to factors such as unstable circuit or interference of signals, a glitch signal may exist in a level signal accessed to an input terminal of the signal acquisition circuit, and the glitch signal is usually a low level signal, as shown in fig. 5, a level signal with a glitch signal is a section of level signal with a glitch signal, where an X point-a Y point is the glitch signal, and a level signal with normal data is located after the Y point. If no burr filtering component is arranged, after a low level signal between an X point and a Y point is connected with an input end of a signal acquisition circuit, according to a working original path of the signal acquisition circuit, it can be known that a voltage corresponding to the low level signal reaching the second end of the second load component is connected with a reverse input end of a voltage comparator after being temporarily increased under the condition of capacitor discharge, and the low level signal reaching the second end of the first load component is directly connected with a forward input end of the voltage comparator. The level signal carrying the normal data is actually started after the point Y.
In order to effectively filter the glitch signal, the present embodiment provides a glitch filtering component in the data communication apparatus. When a low-level signal between an X point and a Y point is connected with an input end of a signal acquisition circuit, the capacitor discharges to reach electric energy balance due to the existence of the capacitor and a third load component, a voltage corresponding to the low-level signal reaching a second end of a second load component is connected with a reverse input end of a voltage comparator after the low-level signal is temporarily increased under the condition of capacitor discharge, due to the existence of a burr filtering component, the voltage of an output end of the voltage comparator temporarily reversely flows to a second end of a first load component, so that the low-level signal reaching the second end of the first load component can also be connected with a forward input end of the voltage comparator after the low-level signal is temporarily increased, the temporarily increased voltage reversely provided to the forward input end of the voltage comparator by the burr filtering component at the output end of the voltage comparator is higher than the voltage provided to the reverse input end of the voltage comparator by capacitor discharge, at this time, the voltage value of the positive input end of the voltage comparator is temporarily higher than that of the negative input end, and the output end of the voltage comparator outputs a high-level signal. The high level signal of voltage comparator output is gathered to main control chip's sense terminal, can learn not receive the low level signal who normally carries data at present, has just filtered the interference that burr signal brought. Because the voltage rising brought by the burr filtering component to the positive input end of the voltage comparator is short, the time for the output end of the voltage comparator to reversely provide rising voltage through the burr filtering component is far shorter than the time for discharging the capacitor, when a low level signal at a Y point arrives, the voltage rising brought by the burr filtering component to the positive input end of the voltage comparator disappears, the discharging of the capacitor is continued, according to the principle of a signal acquisition circuit, the voltage corresponding to the low level signal reaching the second end of the second load component is connected to the negative input end of the voltage comparator after the low level signal is temporarily risen under the condition of discharging the capacitor, the low level signal reaching the second end of the first load component is directly connected to the positive input end of the voltage comparator, and at the moment, the voltage value of the positive input end of the voltage comparator is lower than the voltage value of the negative input end, the output end of the voltage comparator outputs a low level signal. The detection end of the main control chip collects the low level signal output by the output end of the voltage comparator, and can know that the low level signal carrying normal data is received.
It should be noted that the master device and the slave device in the embodiments of the present invention are both capable of one-way communication, that is, are incapable of receiving data when transmitting data, and are incapable of transmitting data when receiving data. When the master device sends data, the slave device can only receive the data and cannot send the data, when the master device sends the data, the slave device sends an indication of data sending end to the slave device, and the slave device finishes receiving the data and can start sending the data; at this time, the master device may detect the data transmitted from the slave device, and the master device enters a state of receiving the data. Similarly, when the slave device transmits data, the master device can only receive data and cannot transmit data, when the slave device finishes transmitting data, the master device transmits an instruction of finishing data transmission to the master device, the master device finishes receiving data and can start transmitting data; at this time, the slave device may detect the data transmitted by the master device, and the slave device enters a state of receiving the data.
Example 3
The present embodiment provides a data communication apparatus that can function as a master apparatus. The present embodiment differs from the data communication apparatus provided in embodiment 2 in that: the second signal is provided by the control port of the main control chip in embodiment 2, while the second signal is provided by the voltage generation circuit in this embodiment.
In this embodiment, as shown in fig. 6, the apparatus further includes: a voltage generation circuit 160; the first signal is a level signal with a voltage value lower than a second voltage, wherein the second voltage is smaller than the voltage value at the power supply interface; an input end of the voltage generating circuit 160 is electrically connected to the power supply interface 100, an output end of the voltage generating circuit 160 is electrically connected to the second end of the energy storage device 140, and the voltage generating circuit 160 is configured to output a level signal with a voltage value of the second voltage to the second end of the energy storage device.
As shown in fig. 7, the energy storage component may be a capacitor (C1 shown in fig. 7). The first end of the energy storage component is electrically connected to the power supply interface 100 and the first communication sub-interface (the port 1 in the reference numeral 110 shown in fig. 7 is the first communication sub-interface, and the port 2 in the reference numeral 110 is the second communication sub-interface), respectively, and the second end is electrically connected to the output end of the voltage generation circuit.
When the data communication equipment sends a high-level signal, the first end of the energy storage component can be maintained at the voltage provided by the power supply interface, so that the level of the first communication sub-interface is also maintained at the high-level signal, and the high-level signal is the voltage signal provided by the power supply interface. The voltage generation circuit provides a second signal, so that the level of the second end of the energy storage component is maintained at a second voltage, where the second signal is a level signal with a voltage value of the second voltage, and the second voltage is lower than the voltage value at the power supply interface, for example, the voltage at the power supply interface is 5v, and the second voltage may be 3 v. In this embodiment, the second signal functions as: the voltage difference between the two ends of the energy storage assembly can be maintained at the difference between the voltage at the power supply interface and the second voltage, when a low level signal needs to be sent next time, when the control port of the main control chip outputs a first signal lower than the second voltage, the voltage difference between the two ends of the energy storage assembly is increased, the capacitor is charged instantly, according to the characteristic that the capacitor is isolated from direct connection, the level of the first end of the energy storage assembly is pulled down instantly, the level of the first communication sub-interface is pulled down, and the sending of the low level signal is achieved.
When the data communication device sends a low level signal, the control port of the main control chip outputs a first signal, the first signal is a level signal with a voltage value lower than a second voltage, for example, the second voltage is 3v, the voltage value of the first signal may be 2v, or 1v, or 0v, and the like, the voltage difference between two ends of the capacitor is increased, so that the capacitor is charged instantly, and according to the characteristic that the capacitor is isolated from direct communication, the level of the first end of the capacitor is pulled down instantly, so that the level of the first communication sub-interface is pulled down, and thus level change is generated to realize data sending. By means of the capacitor, the level at the first communication sub-interface can be controlled to be reduced to a first voltage, the first voltage is a non-zero voltage value, and therefore data transmission is achieved, and data transmission is achieved by means of the scheme in the prior art that the level of the transmission port is reduced to zero through grounding.
In an optional implementation manner of this embodiment, one implementation manner of the control port outputting the first signal may be: a first signal is generated inside the main control chip and is output through a control port; optionally, another implementation manner of controlling the port to output the first signal is as follows: the control port controls the second end of the energy storage assembly to be grounded by controlling the on-off of the switch, so that a first signal is generated at the control port. At this time, the apparatus further includes: a switch assembly (not shown); the control port is electrically connected to the second end of the energy storage component through the switch component, the switch component is further electrically connected to the ground terminal, and the control port is specifically configured to conduct a path between the second end of the energy storage component and the ground terminal when the data communication device sends a low level signal.
In an alternative implementation manner of the embodiment of the present invention, as shown in fig. 7, the voltage generating circuit includes a first voltage dividing component (R7 shown in fig. 7) and a second voltage dividing component (R8 shown in fig. 7), a first end of the first voltage dividing component is an input end of the voltage generating circuit, a second end of the first voltage dividing component is electrically connected to a first end of the second voltage dividing component, a connection point of the first voltage dividing component and the second voltage dividing component is an output end of the voltage generating circuit, and a second end of the second voltage dividing component is connected to the ground end GND _ M;
wherein, first partial pressure subassembly and second partial pressure subassembly can be resistance, set up first partial pressure subassembly and second partial pressure subassembly in the master equipment, through adjusting the resistance size of first partial pressure subassembly and second partial pressure subassembly, can adjust the voltage that voltage generation circuit inserts (the voltage that power supply provided promptly) into the level signal (the second signal) of second voltage to in order to provide the second end of energy storage component.
In an optional implementation manner of the embodiment of the present invention, the data communication device further includes: a voltage regulation module (not shown) connected between the power supply interface 100 and the input terminal of the voltage generation circuit. The voltage stabilizing module can be a voltage stabilizer and is used for adjusting input voltage into stable voltage and outputting the stable voltage, and the voltage generating circuit can be connected with the stable voltage.
In an optional implementation manner of the embodiment of the present invention, as shown in fig. 8, the signal acquisition circuit includes: a first load component (R1 shown in fig. 8), a second load component (R2 shown in fig. 8), a capacitance component (C2 shown in fig. 8), a third load component (R3 shown in fig. 8), and a voltage comparator (a 1 shown in fig. 8); wherein:
the first end of the first load component is electrically connected with the first end of the second load component, and the connection point of the first load component and the second load component is the input end of the signal acquisition circuit;
the second end of the first load component is electrically connected with the positive input end of the voltage comparator;
the second end of the second load component, the first end of the capacitor and the first end of the third load component are respectively and electrically connected with the reverse input end of the voltage comparator, and the second end of the capacitor component and the second end of the third load component are respectively and electrically connected with the grounding end;
the output end of the voltage comparator is the output end of the signal acquisition circuit.
The first load component, the second load component, and the third load component may be resistors, for example, but may also be other elements that may be equivalent to resistors, and are not limited herein.
The signal acquisition circuit in this embodiment has the same function as the signal acquisition circuit in embodiment 2, and reference may be specifically made to the description of the signal acquisition circuit in embodiment 2, which is not described herein again.
The magnitude of the high level signal and the low level signal received by the data communication device through the first communication sub-interface is relative. The voltage difference value between the voltage value corresponding to the low level signal and the voltage value corresponding to the high level signal can be very small, the detection end of the main control chip can not directly detect the level change with the small voltage difference value, and the signal acquisition circuit provided by the embodiment can amplify the small voltage difference value, so that the detection end of the main control chip can realize the detection of the level change with the small voltage change difference value.
In an optional implementation manner of the embodiment of the present invention, as shown in fig. 9, the data communication device further includes: a glitch filtering component (R6 shown in fig. 9) connected between the second terminal of the first load component (R1 shown in fig. 9) and the output terminal of the voltage comparator (a 1 shown in fig. 9).
Wherein the burr filtering component may be a resistor. Of course, other elements that can be equivalent to a resistor are also possible, and are not limited herein.
The function of the burr filtering component in this embodiment is the same as that of the burr filtering component in embodiment 2, and reference may be specifically made to the description of the burr filtering component in embodiment 2, and details are not described here.
Example 4
The present embodiment provides a data communication apparatus, which is a slave apparatus.
As shown in fig. 10, the data communication apparatus includes: a wired communication interface 210, a main control chip 230, and an energy storage component 240;
the wired communication interface 210 is composed of a first communication sub-interface 211 and a second communication sub-interface 212, the wired communication interface 210 is used for connecting with an external device, and the external device supplies power to the data communication device;
the first communication sub-interface 211 is electrically connected to a first end of the energy storage component 240;
the second communication sub-interface 212 is electrically connected with a ground terminal GND _ S of the data communication device;
the main control chip 230 includes a control port, and the control port is electrically connected to the second end of the energy storage assembly 240;
the main control chip 230 is configured to output a first signal from the control port when the data communication device sends a low level signal;
the energy storage component 240 is configured to set a voltage at a first end of the energy storage component 240 to a first voltage under the control of the first signal, where the first voltage is lower than a voltage value of a supply voltage provided by the external device and is greater than zero.
The external device in this embodiment is a master device.
Wherein, the wired communication interface 210 is composed of a first communication sub-interface and a second communication sub-interface. Since the wired communication interface 210 is composed of two interfaces, the wired communication interface 210 is also referred to as a two-wire communication interface.
In this embodiment, the data communication device serves as a slave device, the slave device may obtain a supply voltage from the master device, and when no low-level signal is transmitted between the master device and the slave device, the voltage at the first end of the energy storage component may maintain the voltage value of the supply voltage provided by the external device. When the slave device sends a low level signal, the master control chip outputs a first signal from the control port, the energy storage assembly sets the voltage of the first end of the energy storage assembly to be a first voltage under the control of the first signal, and the first voltage is lower than the voltage value of the power supply voltage provided by the external device and is greater than zero, so that the level at the first communication sub-interface is reduced to generate level change, and data sending is performed through the level change at the first communication sub-interface. Instead of using the prior art scheme to drop the level ground of the transmission port to zero, data transmission is implemented.
In an optional implementation manner of this embodiment, the first communication sub-interface is electrically connected to a power supply port of the main control chip, and is configured to supply power to the main control chip. The first communication sub-interface can also be electrically connected with power supply ports of other load elements in the data communication equipment, and is used for realizing power supply of the other load elements in the data communication equipment. Optionally, a voltage stabilizing component is further disposed between the first communication sub-interface and the power supply port of the main control chip, and is configured to eliminate voltage oscillation and output a stable voltage when the power supply voltage of the external device is unstable. The voltage stabilizing component can be a capacitor, one end of the capacitor is electrically connected with the first communication sub-interface and the power supply port of the main control chip respectively, and the other end of the capacitor is electrically connected with the grounding end of the data communication equipment.
In an optional implementation manner of this embodiment, a power supply may be further disposed in the data communication device, and the power supply is electrically connected to the main control chip 230 and charging ports of other load elements in the data communication device, so as to supply power to the main control chip 230 and the other load elements.
Example 5
The present embodiment provides a data communication apparatus, which is a slave apparatus. This example differs from example 4 in that: in the embodiment, the energy storage component is a capacitor; the main control chip is further configured to output a second signal from the control port when the data communication device sends a high level signal, where the second signal is a level signal whose voltage value is the second voltage.
In this embodiment, the first signal is a level signal having a voltage value lower than a second voltage, where the second voltage is smaller than a voltage value obtained by the first communication sub-interface from a wired communication interface of an external device;
in an alternative embodiment of this embodiment, as shown in fig. 11, the energy storage component may be a capacitor (see C1 in fig. 11). The first end of the energy storage assembly is electrically connected with the first communication sub-interface, and the second end of the energy storage assembly is electrically connected with the control port of the main control chip.
When the data communication device sends a high-level signal, the first end of the energy storage component can maintain the supply voltage provided by the external device, so that the level of the first communication sub-interface is also maintained at the high-level signal, and the high-level signal is the supply voltage signal provided by the external device. The control port of the main control chip outputs a second signal, so that the level of the second end of the capacitor is maintained at a second voltage, where the second signal is a level signal with a voltage value of the second voltage, and the second voltage is lower than a voltage value of a supply voltage provided by an external device, for example, the voltage value of the supply voltage provided by the external device is 5v, and the second voltage may be 3 v. In this embodiment, the second signal functions as: the voltage difference between the two ends of the energy storage assembly can be maintained at the difference value between the power supply voltage and the second voltage provided by the external equipment, when a low level signal needs to be sent next time, when the control port of the main control chip outputs a first signal lower than the second voltage, the voltage difference between the two ends of the energy storage assembly is increased, the capacitor is charged instantly, according to the characteristic that the capacitor is isolated from direct connection and direct connection, the level of the first end of the energy storage assembly is pulled down instantly, the level of the first communication sub-interface is pulled down, and the sending of the low level signal is achieved.
When the data communication device sends a low level signal, the control port of the main control chip outputs a first signal, the first signal is a level signal with a voltage value lower than a second voltage, for example, the second voltage is 3v, the voltage value of the first signal may be 2v, or 1v, or 0v, and the like, the voltage difference between two ends of the capacitor is increased, so that the capacitor is charged instantly, and according to the characteristic that the capacitor is isolated from direct communication, the level of the first end of the capacitor is pulled down instantly, so that the level of the first communication sub-interface is pulled down, and thus level change is generated to realize data sending. By means of the capacitor, the level at the first communication sub-interface can be controlled to be reduced to a first voltage, the first voltage is a non-zero voltage value, and therefore data transmission is achieved, and data transmission is achieved by means of the scheme in the prior art that the level of the transmission port is reduced to zero through grounding.
In an optional implementation manner of this embodiment, one implementation manner of the control port outputting the first signal may be: a first signal is generated inside the main control chip and is output through a control port; optionally, another implementation manner of controlling the port to output the first signal is as follows: the control port controls the second end of the energy storage assembly to be grounded by controlling the on-off of the switch, so that a first signal is generated at the control port. At this time, the apparatus further includes: a switch assembly (not shown); the control port is electrically connected to the second end of the energy storage component through the switch component, the switch component is further electrically connected to the ground terminal, and the control port is specifically configured to conduct a path between the second end of the energy storage component and the ground terminal when the data communication device sends a low level signal.
In an alternative implementation manner of this embodiment, as shown in fig. 12, the signal acquisition circuit includes: a first load component (see R1 in fig. 12), a second load component (see R2 in fig. 12), a capacitor (see C2 in fig. 12), a third load component (see R3 in fig. 12), and a voltage comparator (see a1 in fig. 12); the first end of the first load component is electrically connected with the first end of the second load component, and the connection point of the first load component and the second load component is the input end of the signal acquisition circuit; the second end of the first load component is electrically connected with the positive input end of the voltage comparator; the second end of the second load component, the first end of the capacitor and the first end of the third load component are respectively and electrically connected with the reverse input end of the voltage comparator, and the second end of the capacitor and the second end of the third load component are respectively and electrically connected with the grounding end; the output end of the voltage comparator is the output end of the signal acquisition circuit.
The first load component, the second load component, and the third load component may be resistors, for example, but may also be other elements that may be equivalent to resistors, and are not limited herein.
The working principle of the signal acquisition circuit for realizing signal acquisition is as follows:
when the data communication equipment receives a high-level signal through the first communication sub-interface, the input end of the signal acquisition circuit is connected with the high-level signal, the high-level signal respectively passes through the first load assembly and the second load assembly to generate voltage drop, if no capacitor or a third load assembly exists, the voltage values corresponding to the high-level signal of the second end of the first load assembly and the high-level signal of the second end of the second load assembly are the same, and the voltage comparator cannot normally output the signal. Because the capacitor and the third load component exist, the capacitor can be charged to reach electric energy balance, the voltage corresponding to the high level signal reaching the second end of the second load component can be pulled down by the third load component and then is connected to the reverse input end of the voltage comparator, the high level signal reaching the second end of the first load component is directly connected to the forward input end of the voltage comparator, at the moment, the voltage value of the forward input end of the voltage comparator is higher than that of the reverse input end, and the output end of the voltage comparator outputs the high level signal. The detection end of the main control chip collects the high level signal output by the output end of the voltage comparator, and the data communication equipment can be informed of receiving the high level signal.
When the data communication equipment receives a low-level signal through the first communication sub-interface, the input end of the signal acquisition circuit is connected with the low-level signal, the low-level signal passes through the first load assembly and the second load assembly respectively, and if no capacitor or a third load assembly exists, voltage values corresponding to the low-level signal of the second end of the first load assembly and the low-level signal of the second end of the second load assembly are the same, and the voltage comparator cannot normally output the signal. Due to the existence of the capacitor and the third load assembly, the voltage difference between two ends of the capacitor is reduced, the capacitor can discharge to reach electric energy balance, the low level signal reaching the second end of the second load assembly is connected to the reverse input end of the voltage comparator after being temporarily increased under the condition that the capacitor discharges, the low level signal reaching the second end of the first load assembly is directly connected to the forward input end of the voltage comparator, at the moment, the voltage value of the forward input end of the voltage comparator is lower than that of the reverse input end, and the output end of the voltage comparator outputs the low level signal. The detection end of the main control chip collects the low level signal output by the output end of the voltage comparator, and the data communication equipment can know that the low level signal is received.
It should be noted that the magnitudes of the high level signal and the low level signal received by the data communication device through the first communication sub-interface are relative. The voltage difference value between the voltage value corresponding to the low level signal and the voltage value corresponding to the high level signal can be very small, the detection end of the main control chip can not directly detect the level change with the small voltage difference value, and the signal acquisition circuit provided by the embodiment can amplify the small voltage difference value, so that the detection end of the main control chip can realize the detection of the level change with the small voltage change difference value.
In an optional implementation manner of this embodiment, as shown in fig. 13, the data communication device further includes: a glitch filter assembly (see R6 in fig. 13) connected between the second terminal of the first load assembly and the output terminal of the voltage comparator.
Wherein the burr filtering component may be a resistor. Of course, other elements that can be equivalent to a resistor are also possible, and are not limited herein.
Due to factors such as circuit instability or signal interference, a glitch signal may exist in a level signal accessed to an input terminal of the signal acquisition circuit, where the glitch signal is usually a low level signal, as shown in fig. 5 in embodiment 1, a level signal with a glitch signal is a section of the level signal with a glitch signal, where an X point-a Y point is the glitch signal, and a level signal with normal data is located after the Y point. If no burr filtering component is arranged, after the low level signal between the X point and the Y point is connected with the input end of the signal acquisition circuit, according to the working original path of the signal acquisition circuit, the burr filtering component can be known, due to the existence of the capacitor and the third load component, the capacitor discharges to reach the electric energy balance, the voltage corresponding to the low level signal of the second end of the second load component is reached, after the capacitor is briefly raised in the case of discharge, the low-level signal reaching the second terminal of the first load component is directly connected to the positive input terminal of the voltage comparator, and, at this time, the voltage value of the positive input end of the voltage comparator is lower than that of the negative input end, the output end of the voltage comparator outputs a low-level signal, and at the moment, the data communication equipment considers that the low-level signal carrying normal data is received. The level signal carrying the normal data is actually started after the point Y.
In order to effectively filter the glitch signal, the present embodiment provides a glitch filtering component in the data communication apparatus. When a low-level signal between an X point and a Y point is connected with an input end of a signal acquisition circuit, the capacitor discharges to reach electric energy balance due to the existence of the capacitor and a third load component, a voltage corresponding to the low-level signal reaching a second end of a second load component is connected with a reverse input end of a voltage comparator after the low-level signal is temporarily increased under the condition of capacitor discharge, due to the existence of a burr filtering component, the voltage of an output end of the voltage comparator temporarily reversely flows to a second end of a first load component, so that the low-level signal reaching the second end of the first load component can also be connected with a forward input end of the voltage comparator after the low-level signal is temporarily increased, the temporarily increased voltage reversely provided to the forward input end of the voltage comparator by the burr filtering component at the output end of the voltage comparator is higher than the voltage provided to the reverse input end of the voltage comparator by capacitor discharge, at this time, the voltage value of the positive input end of the voltage comparator is temporarily higher than that of the negative input end, and the output end of the voltage comparator outputs a high-level signal. The high level signal of voltage comparator output is gathered to main control chip's sense terminal, can learn not receive the low level signal who normally carries data at present, has just filtered the interference that burr signal brought. Because the voltage rising brought by the burr filtering component to the positive input end of the voltage comparator is short, the time for the output end of the voltage comparator to reversely provide rising voltage through the burr filtering component is far shorter than the time for discharging the capacitor, when a low level signal at a Y point arrives, the voltage rising brought by the burr filtering component to the positive input end of the voltage comparator disappears, the discharging of the capacitor is continued, according to the principle of a signal acquisition circuit, the voltage corresponding to the low level signal reaching the second end of the second load component is connected to the negative input end of the voltage comparator after the low level signal is temporarily risen under the condition of discharging the capacitor, the low level signal reaching the second end of the first load component is directly connected to the positive input end of the voltage comparator, and at the moment, the voltage value of the positive input end of the voltage comparator is lower than the voltage value of the negative input end, the output end of the voltage comparator outputs a low level signal. The detection end of the main control chip collects the low level signal output by the output end of the voltage comparator, and can know that the low level signal carrying normal data is received.
Example 6
The present embodiment provides a data communication apparatus, which is a slave apparatus. The difference between this example and example 5 is: the second signal is provided by the control port of the main control chip in embodiment 5, while the second signal is provided by the voltage generation circuit in this embodiment.
In this embodiment, as shown in fig. 14, the slave device further includes: a voltage generation circuit 260; an input end of the voltage generating circuit 260 is electrically connected to the first communication sub-interface 211, an output end of the voltage generating circuit 260 is electrically connected to the second end of the energy storage component 240, and the voltage generating circuit 260 is configured to output a level signal with a voltage value of the second voltage to the second end of the energy storage component 240. In this embodiment, the first signal is a level signal having a voltage value lower than a second voltage, where the second voltage is lower than a supply voltage provided by an external device;
in an alternative embodiment of this embodiment, as shown in fig. 15, the energy storage component may be a capacitor (see C1 of fig. 15). The first end of the energy storage component is electrically connected to the first communication sub-interface (see port 1 in reference number 210 in fig. 15), and the second end is electrically connected to the control port of the main control chip.
In an optional implementation manner of this embodiment, one implementation manner of the control port outputting the first signal may be: a first signal is generated inside the main control chip and is output through a control port; optionally, another implementation manner of controlling the port to output the first signal is as follows: the control port controls the second end of the energy storage assembly to be grounded by controlling the on-off of the switch, so that a first signal is generated at the control port. At this time, the apparatus further includes: a switch assembly (not shown); the control port is electrically connected to the second end of the energy storage component through the switch component, the switch component is further electrically connected to the ground terminal, and the control port is specifically configured to conduct a path between the second end of the energy storage component and the ground terminal when the data communication device sends a low level signal.
In an alternative implementation manner of the embodiment of the present invention, as shown in fig. 15, the voltage generating circuit includes a first voltage dividing component (R7 shown in fig. 15) and a second voltage dividing component (R8 shown in fig. 15), a first end of the first voltage dividing component is an input end of the voltage generating circuit, a second end of the first voltage dividing component is electrically connected to a first end of the second voltage dividing component, a connection point of the first voltage dividing component and the second voltage dividing component is an output end of the voltage generating circuit, and a second end of the second voltage dividing component is electrically connected to the ground end GND _ M;
wherein, first partial pressure subassembly and second partial pressure subassembly can be resistance, set up first partial pressure subassembly and second partial pressure subassembly in the slave unit, through adjusting the resistance size of first partial pressure subassembly and second partial pressure subassembly, can adjust the voltage that voltage generating circuit inserts (supply voltage that external equipment provided promptly) to the level signal (the second signal promptly) of second voltage to in order to provide the second end of energy storage component.
In an optional implementation manner of the embodiment of the present invention, the data communication device further includes: and the voltage stabilizing module (not shown) is connected between the first communication sub-interface and the input end of the voltage generating circuit. The voltage stabilizing module can be a voltage stabilizer and is used for adjusting input voltage into stable voltage and outputting the stable voltage, and the voltage generating circuit can be connected with the stable voltage.
In an optional implementation manner of the embodiment of the present invention, as shown in fig. 16, the signal acquisition circuit includes: a first load component (R1 shown in fig. 16), a second load component (R2 shown in fig. 16), a capacitance component (C2 shown in fig. 16), a third load component (R3 shown in fig. 16), and a voltage comparator (a 1 shown in fig. 16); wherein:
the first end of the first load component is electrically connected with the first end of the second load component, and the connection point of the first load component and the second load component is the input end of the signal acquisition circuit;
the second end of the first load component is electrically connected with the positive input end of the voltage comparator;
the second end of the second load component, the first end of the capacitor and the first end of the third load component are respectively and electrically connected with the reverse input end of the voltage comparator, and the second end of the capacitor component and the second end of the third load component are respectively and electrically connected with the grounding end;
the output end of the voltage comparator is the output end of the signal acquisition circuit.
The first load component, the second load component, and the third load component may be resistors, for example, but may also be other elements that may be equivalent to resistors, and are not limited herein.
The signal acquisition circuit in this embodiment has the same function as the signal acquisition circuit in embodiment 5, and reference may be specifically made to the description of the signal acquisition circuit in embodiment 5, which is not described herein again.
In an optional implementation manner of the embodiment of the present invention, as shown in fig. 17, the data communication device further includes: a glitch filtering component (R6 shown in fig. 17) connected between the second terminal of the first load component (R1 shown in fig. 17) and the output terminal of the voltage comparator (a 1 shown in fig. 17).
Wherein the burr filtering component may be a resistor. Of course, other elements that can be equivalent to a resistor are also possible, and are not limited herein.
The function of the burr filtering component in this embodiment is the same as that of the burr filtering component in embodiment 5, and specific reference may be made to the description of the burr filtering component in embodiment 5, which is not described herein again.
Example 7
The present embodiment provides a data communication apparatus, which is a slave apparatus. The data communication equipment provided by the embodiment is provided with the reverse connection prevention module, and the reverse connection prevention function can be realized through the reverse connection prevention module.
As shown in fig. 18, the data communication apparatus includes: the method comprises the following steps: the system comprises a wired communication interface 210, an anti-reverse connection module 220, a main control chip 230 and an energy storage assembly 240;
the wired communication interface 210 is composed of a first communication sub-interface 211 and a second communication sub-interface 212, the wired communication interface 210 is used for connecting with an external device, and the external device supplies power to the data communication device;
the first communication sub-interface 211 is electrically connected to a first input/output end of the reverse connection prevention module 220, the second communication sub-interface 212 is electrically connected to a second input/output end of the reverse connection prevention module 220, a ground end of the reverse connection prevention module 220 is electrically connected to a ground end of the data communication device, and an output end of the reverse connection prevention module 220 is electrically connected to a first end of the energy storage assembly;
the main control chip 230 includes a control port, and the control port is electrically connected to the second end of the energy storage assembly;
the main control chip 230 is configured to output a first signal from the control port when the data communication device sends a low level signal;
the energy storage component 240 is configured to set a voltage at a first end of the energy storage component 240 to a first voltage under the control of the first signal, where the first voltage is lower than a voltage value of a supply voltage provided by an external device and is greater than zero;
the reverse connection prevention module 220 is configured to conduct a path from one of the first input/output end and the second input/output end to the output end of the reverse connection prevention module 220, and conduct a path from the ground end to the other of the first input/output end and the second input/output end.
The wired communication interface 210 of the data communication device of this embodiment is composed of a first communication sub-interface and a second communication sub-interface. Since the wired communication interface 210 is composed of two interfaces, the wired communication interface 210 is also referred to as a two-wire communication interface.
The external device is a master device.
In actual use, the master device and the slave device may be connected in a forward direction or a reverse direction. The forward connection means that the first communication sub-interface of the master device is connected with the first communication sub-interface of the slave device, and the second communication sub-interface of the master device is connected with the second communication sub-interface of the slave device. The reverse connection is opposite, the first communication sub-interface of the master device is connected with the second communication sub-interface of the slave device, and the second communication sub-interface of the master device is connected with the first communication sub-interface of the slave device. Normally, when the master device and the slave device are connected in the forward direction, normal communication can be performed. If the master device and the slave device are reversely connected and the slave device does not support the function of preventing reverse connection, the master device and the slave device cannot communicate. This embodiment provides a data communication device supporting a reverse connection prevention function, in which a reverse connection prevention module may conduct a path from one of the first communication sub-interface and the second communication sub-interface to an output end of the reverse connection prevention module, and conduct a path from the ground end to the other one of the first communication sub-interface and the second communication sub-interface, so that normal data communication may be ensured regardless of whether a master device and a slave device are connected in a forward direction or in a reverse direction.
In this embodiment, the data communication device serves as a slave device, the slave device may obtain a supply voltage from the master device, and when there is no low-level signal transmission, the voltage value at the first end of the energy storage component is the voltage value of the supply voltage provided by the external device. When the slave device sends a low-level signal, the master control chip outputs a first signal from the control port, the energy storage assembly sets the voltage of the first end of the energy storage assembly to be a first voltage under the control of the first signal, and the first voltage is lower than the power supply voltage provided by the external device and is greater than zero, so that the level at the first communication sub-interface (or the second communication sub-interface if the master device and the slave device are connected in the forward direction is reduced to generate level change, and then data is sent through the level change at the first communication sub-interface. Instead of using the prior art scheme to drop the level ground of the transmission port to zero, data transmission is implemented.
In an optional implementation manner of this embodiment, the main control chip further includes: a power supply port; the power supply port is electrically connected with the output end of the reverse connection prevention module.
In an optional implementation manner of this embodiment, the output end of the reverse connection preventing module 220 may be further electrically connected to power supply ports of other load elements in the data communication device, so as to implement power supply to the other load elements in the data communication device.
Optionally, a voltage stabilizing component is further disposed between the output end of the reverse connection preventing module 220 and the power supply port of the main control chip, and is configured to eliminate voltage oscillation and output a stable voltage when the power supply voltage received by the slave device from the external device is not stable. The voltage stabilizing component may be a capacitor, one end of the capacitor is electrically connected to the output end of the reverse connection preventing module 220 and the power supply port of the main control chip, and the other end of the capacitor is electrically connected to the ground end of the data communication device.
In an optional implementation manner of this embodiment, a structure of an anti-reverse module is shown in fig. 19, a first input/output end S1 of the anti-reverse module is electrically connected to the first communication sub-interface, a second input/output end S2 of the anti-reverse module is electrically connected to the second communication sub-interface of the wired communication interface, a ground end S3 of the anti-reverse module is electrically connected to a ground end of the data communication device, and an output end S4 of the anti-reverse module is electrically connected to the first end of the energy storage assembly and the input end of the signal acquisition circuit, respectively.
When the slave device is connected with the master device in the forward direction, the first input/output end S1 of the reverse connection prevention module receives a level signal, and the second input/output end S2 of the reverse connection prevention module sequentially passes through the second communication sub-interface of the slave device and the second communication sub-interface of the master device, and then is electrically connected with the ground terminal of the master device. According to the NMOS on principle, Q1 is turned off, Q2 is turned on, and the current flow is: s1 → D1 → S4 → S3 → Q2 → S2.
When the slave device is reversely connected with the master device, the first input/output end S1 of the reverse connection prevention module sequentially passes through the second communication sub-interface of the slave device and the second communication sub-interface of the master device, and then is electrically connected with the ground end of the master device, the second input/output end S2 of the reverse connection prevention module is connected with a level signal, as can be seen from the conduction principle of the NMOS, at this time, Q1 is on, Q2 is off, and the current trend is as follows: s2 → D2 → S4 → S3 → Q1 → S1.
Of course, there are various existing implementation structures of the reverse connection prevention module, and the embodiment does not limit which structure is specifically adopted for the reverse connection prevention module, as long as the reverse connection prevention function can be realized, and is not limited herein.
In an alternative implementation manner of this embodiment, as shown in fig. 20, in the structure of the reverse connection preventing module, the diode D1 in fig. 19 is replaced by a resistor R4, and the diode D2 is replaced by a resistor R5. The first input/output end S1 of the reverse connection prevention module is electrically connected to the first communication sub-interface (port 1 of reference numeral 210 in fig. 20), the second input/output end S2 of the reverse connection prevention module is electrically connected to the second communication sub-interface (port 2 of reference numeral 210 in fig. 20) of the wired communication interface, the ground end S3 of the reverse connection prevention module is electrically connected to the ground end (GND _ S in fig. 20) of the data communication device, and the output end S4 of the reverse connection prevention module is electrically connected to the first end of the energy storage component (C1 in fig. 20) and the input end of the signal acquisition circuit (connection point of R1 and R2 in fig. 20), respectively.
When the slave equipment is connected with the master equipment in the forward direction, the first input and output end of the reverse connection prevention module is connected with a level signal, and the second input and output end of the reverse connection prevention module sequentially passes through the second communication sub-interface of the slave equipment and the second communication sub-interface of the master equipment and then is electrically connected with the grounding end of the master equipment. According to the NMOS on principle, Q1 is turned off, Q2 is turned on, and the current flow is: s1 → R4 → S4 → GND _ S → Q2 → S2. In addition, since the detection voltage range supported by the signal acquisition circuit may not match with the voltage corresponding to the accessed level signal, the resistor R4 in fig. 20 may also divide the voltage of the level signal accessed by the first communication sub-interface, so as to output the level signal of a suitable voltage to the signal acquisition circuit, thereby ensuring that the signal acquisition circuit can perform normal signal acquisition work.
When the slave device is reversely connected with the master device, the first input/output end S1 of the reverse connection prevention module sequentially passes through the second communication sub-interface of the slave device and the second communication sub-interface of the master device, and then is electrically connected with the ground end of the master device, the second input/output end S2 of the reverse connection prevention module is connected with a level signal, as can be seen from the conduction principle of the NMOS, at this time, Q1 is on, Q2 is off, and the current trend is as follows: s2 → R5 → S4 → GND _ S → Q1 → S1. In addition, since the detection voltage range supported by the signal acquisition circuit may not match with the voltage corresponding to the accessed level signal, the resistor R5 in fig. 20 may also divide the voltage of the level signal accessed by the second communication sub-interface, so as to output the level signal with a proper voltage to the signal acquisition circuit, thereby ensuring that the signal acquisition circuit can perform a normal signal acquisition operation.
Example 8
The present embodiment provides a data communication apparatus, which is a slave apparatus. This example differs from example 7 in that: the energy storage component is a capacitor; the main control chip is further configured to output a second signal from the control port when the data communication device sends a high level signal, where in this embodiment, the second signal is a level signal whose voltage value is the second voltage. The first signal is a level signal with a voltage value lower than a second voltage, wherein the second voltage is lower than the voltage value of a power supply voltage provided by the external equipment;
in an alternative embodiment of this embodiment, as shown in fig. 20, the energy storage component may be a capacitor (see C1 in fig. 20). The first end of the energy storage assembly is electrically connected with the output end of the reverse connection prevention module, and the second end of the energy storage assembly is electrically connected with the control port of the main control chip.
When the data communication equipment sends a high-level signal, the first end of the energy storage assembly can maintain the supply voltage provided by external equipment, so that the level of the first communication sub-interface is maintained at the high-level signal when the master device and the slave device are connected in the forward direction, and the level of the second communication sub-interface is maintained at the high-level signal when the master device and the slave device are connected in the reverse direction, wherein the high-level signal is the supply voltage signal provided by the external equipment. The control port of the main control chip outputs a second signal, so that the level of the second end of the energy storage component is maintained at a second voltage, where the second signal is a level signal with a voltage value of the second voltage, and the second voltage is lower than the voltage value of the supply voltage provided by the external device, for example, the voltage of the supply voltage provided by the external device is 5v, and the second voltage may be 3 v. In this embodiment, the second signal functions as: the voltage difference between the two ends of the energy storage assembly can maintain the difference between the power supply voltage and the second voltage provided by the external equipment, when a low level signal needs to be sent next time, when the control port of the main control chip outputs a first signal lower than the second voltage, the voltage difference between the two ends of the capacitor is increased, the capacitor is charged instantly, according to the characteristic that the capacitor is isolated from direct connection and direct connection, the level of the first end of the energy storage assembly is pulled down instantly, when the main equipment and the slave equipment are connected in the forward direction, the level of the first communication sub-interface is pulled down, and when the main equipment and the slave equipment are connected in the reverse direction, the level of the second communication sub-interface is pulled down, so that the sending.
When the data communication device sends a low level signal, the control port of the main control chip outputs a first signal, the first signal is a level signal with a voltage value lower than a second voltage, for example, the second voltage is 3v, the voltage value of the first signal may be 2v, or 1v, or 0v, and the like, the voltage difference between two ends of the capacitor is increased, so that the capacitor is charged instantly, and according to the characteristic that the capacitor is isolated from direct communication, the level of the first end of the capacitor is pulled down instantly, so that the level of the first communication sub-interface is pulled down, and thus level change is generated to realize data sending. By means of the capacitor, when the master device and the slave device are connected in the forward direction, the level at the first communication subinterface can be controlled to be reduced to the first voltage, when the master device and the slave device are connected in the reverse direction, the level at the second communication subinterface can be controlled to be reduced to the first voltage, the first voltage is a non-zero voltage value, and therefore data transmission is achieved, and the situation that the level of a transmission port is grounded to be reduced to zero by the aid of the capacitor is avoided.
In an optional implementation manner of this embodiment, as shown in fig. 21, the signal acquisition circuit includes: a first load component (see R1 in fig. 21), a second load component (see R2 in fig. 21), a capacitor (see C2 in fig. 21), a third load component (see R3 in fig. 21), and a voltage comparator (see a1 in fig. 21); the first end of the first load component is electrically connected with the first end of the second load component, and the connection point of the first load component and the second load component is the input end of the signal acquisition circuit; the second end of the first load component is electrically connected with the positive input end of the voltage comparator; the second end of the second load component, the first end of the capacitor and the first end of the third load component are respectively and electrically connected with the reverse input end of the voltage comparator, and the second end of the capacitor and the second end of the third load component are respectively and electrically connected with the grounding end; the output end of the voltage comparator is the output end of the signal acquisition circuit.
The first load component, the second load component, and the third load component may be resistors, for example, but may also be other elements that may be equivalent to resistors, and are not limited herein.
The working principle of the signal acquisition circuit for realizing signal acquisition is as follows:
when the output end of the reverse connection preventing module outputs a high level signal, the input end of the signal acquisition circuit is electrically connected with the output end of the reverse connection preventing module, the high level signal respectively passes through the first load assembly and the second load assembly to generate voltage drop, if no capacitor or a third load assembly exists, the voltage values corresponding to the high level signal of the second end of the first load assembly and the high level signal of the second end of the second load assembly are the same, and the voltage comparator cannot normally output signals. Because the capacitor and the third load component exist, the capacitor can be charged to reach electric energy balance, the voltage corresponding to the high level signal reaching the second end of the second load component can be pulled down by the third load component and then is connected to the reverse input end of the voltage comparator, the high level signal reaching the second end of the first load component is directly connected to the forward input end of the voltage comparator, at the moment, the voltage value of the forward input end of the voltage comparator is higher than that of the reverse input end, and the output end of the voltage comparator outputs the high level signal. The detection end of the main control chip collects the high level signal output by the output end of the voltage comparator, and the data communication equipment can be informed of receiving the high level signal.
When the output end of the reverse connection preventing module outputs a low level signal, the input end of the signal acquisition circuit is connected with the low level signal, the low level signal passes through the first load assembly and the second load assembly respectively, and if no capacitor or a third load assembly exists, voltage values corresponding to the low level signal of the second end of the first load assembly and the second end of the second load assembly are the same, and the voltage comparator cannot normally output the signal. Due to the existence of the capacitor and the third load component, the capacitor can discharge to reach electric energy balance, a low level signal reaching the second end of the second load component can be connected to the reverse input end of the voltage comparator after being temporarily increased under the condition of capacitor discharge, the low level signal reaching the second end of the first load component is directly connected to the forward input end of the voltage comparator, at the moment, the voltage value of the forward input end of the voltage comparator is lower than that of the reverse input end, and the output end of the voltage comparator outputs the low level signal. The detection end of the main control chip collects the low level signal output by the output end of the voltage comparator, and the data communication equipment can know that the low level signal is received.
It should be noted that, when the data communication device receives a low level signal, the level of the output terminal of the reverse connection prevention module changes to a low level, which is relative to the case that the data communication device receives a high level signal. The voltage difference value between the voltage value corresponding to the low level and the voltage value corresponding to the high level can be very small, the detection end of the main control chip can not detect the level change with the smaller voltage difference value, and the signal acquisition circuit provided by the embodiment can enable the detection end of the main control chip to realize the detection of the level change with the smaller voltage difference value by changing the voltage with the smaller voltage difference value to be larger.
In an optional implementation manner of this embodiment, as shown in fig. 22, the data communication device further includes: a glitch filter assembly (see R6 in fig. 22) connected between the second terminal of the first load assembly (see R1 in fig. 22) and the output terminal of the voltage comparator (see a1 in fig. 22).
Wherein the burr filtering component may be a resistor. Of course, other elements that can be equivalent to a resistor are also possible, and are not limited herein.
The function of the burr filtering component in this embodiment is the same as that of the burr filtering component in embodiment 5, and specific reference may be made to the description of the burr filtering component in embodiment 5, which is not described herein again.
Example 9
The difference between this example and example 8 is: the second signal is provided by the control port of the main control chip in embodiment 8, while the second signal is provided by the voltage generation circuit in this embodiment.
In this embodiment, as shown in fig. 23, an input end of the voltage generating circuit 260 is electrically connected to an output end of the reverse connection preventing module 220, an output end of the voltage generating circuit 260 is electrically connected to the second end of the energy storage assembly 240, and the voltage generating circuit 260 is configured to output a level signal with a voltage value of the second voltage to the second end of the energy storage assembly 240.
In an alternative embodiment of this embodiment, as shown in fig. 24, the energy storage component may be a capacitor (see C1 in fig. 24). The first end of the energy storage assembly is electrically connected with the output end of the reverse connection prevention module, and the second end of the energy storage assembly is electrically connected with the control port of the main control chip.
In an alternative implementation manner of the embodiment of the present invention, as shown in fig. 24, the voltage generating circuit includes a first voltage dividing component (see R7 in fig. 24) and a second voltage dividing component (see R8 in fig. 24), a first end of the first voltage dividing component is an input end of the voltage generating circuit, a second end of the first voltage dividing component is electrically connected to a first end of the second voltage dividing component, a connection point of the first voltage dividing component and the second voltage dividing component is an output end of the voltage generating circuit, and a second end of the second voltage dividing component is electrically connected to the ground end (see GND _ S in fig. 24);
wherein, first partial pressure subassembly and second partial pressure subassembly can be resistance, set up first partial pressure subassembly and second partial pressure subassembly in the master equipment, through adjusting the resistance size of first partial pressure subassembly and second partial pressure subassembly, can adjust the voltage that voltage generating circuit inserts (the supply voltage that external equipment provided promptly) to the level signal (the second signal) of second voltage to in order to provide the second end of energy storage component.
In an alternative implementation manner of this embodiment, as shown in fig. 25, the signal acquisition circuit includes: a first load component (see R1 in fig. 25), a second load component (see R2 in fig. 25), a capacitor (see C2 in fig. 25), a third load component (see R3 in fig. 25), and a voltage comparator (see a1 in fig. 25); the first end of the first load component is electrically connected with the first end of the second load component, and the connection point of the first load component and the second load component is the input end of the signal acquisition circuit; the second end of the first load component is electrically connected with the positive input end of the voltage comparator; the second end of the second load component, the first end of the capacitor and the first end of the third load component are respectively and electrically connected with the reverse input end of the voltage comparator, and the second end of the capacitor and the second end of the third load component are respectively and electrically connected with the grounding end; the output end of the voltage comparator is the output end of the signal acquisition circuit.
The first load component, the second load component, and the third load component may be resistors, for example, but may also be other elements that may be equivalent to resistors, and are not limited herein.
The function of the signal acquisition circuit in this embodiment is the same as that of the signal acquisition circuit in embodiment 5, and specific reference may be made to the description of the signal acquisition circuit in embodiment 5, which is not described herein again.
In an optional implementation manner of this embodiment, as shown in fig. 26, the data communication device further includes: a glitch filter assembly (see R6 in fig. 26) connected between the second terminal of the first load assembly (see R1 in fig. 26) and the output terminal of the voltage comparator (see a1 in fig. 26).
Wherein the burr filtering component may be a resistor. Of course, other elements that can be equivalent to a resistor are also possible, and are not limited herein.
The function of the burr filtering component in this embodiment is the same as that of the burr filtering component in embodiment 5, and specific reference may be made to the description of the burr filtering component in embodiment 5, which is not described herein again.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware that is related to instructions of a program, and the program may be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made in the above embodiments by those of ordinary skill in the art without departing from the principle and spirit of the present invention. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (18)

1. A data communication device, comprising: the power supply interface, the wired communication interface, the main control chip and the energy storage assembly are connected with the direct current power supply;
the wired communication interface consists of a first communication sub-interface and a second communication sub-interface;
the power supply interface is respectively electrically connected with the first end of the energy storage assembly and the first communication sub-interface, and when no low-level signal is transmitted, the level of the first communication sub-interface is maintained at the voltage value of the power supply interface, so that power supply to the slave communication equipment is realized;
the first communication sub-interface is electrically connected with the first end of the energy storage component;
the second communication sub-interface is electrically connected with a grounding end of the data communication equipment;
the main control chip comprises a control port, and the control port is electrically connected with the second end of the energy storage assembly;
the main control chip is used for outputting a first signal from the control port when the data communication equipment sends a low-level signal through the first communication sub-interface;
the energy storage component is used for setting the voltage of the first end of the energy storage component as a first voltage under the control of the first signal, wherein the first voltage is lower than the voltage value at the power supply interface and is greater than zero, so that the level at the first communication subinterface is reduced to generate level change, and then data transmission is realized through the level change at the first communication subinterface.
2. The apparatus of claim 1,
the energy storage component is a capacitor;
the first signal is a level signal with a voltage value lower than a second voltage, wherein the second voltage is smaller than the voltage value at the power supply interface;
the main control chip is further configured to output a second signal from the control port when the data communication device sends a high level signal through the first communication sub-interface, where the second signal is a level signal whose voltage value is the second voltage.
3. The apparatus of claim 1, further comprising: a voltage generating circuit;
the energy storage component is a capacitor;
the first signal is a level signal with a voltage value lower than a second voltage, wherein the second voltage is smaller than the voltage value at the power supply interface;
the input end of the voltage generating circuit is electrically connected with the power supply interface, the output end of the voltage generating circuit is electrically connected with the second end of the energy storage assembly, and the voltage generating circuit is used for outputting a level signal with a voltage value of the second voltage to the second end of the energy storage assembly.
4. The apparatus of claim 3, wherein the voltage generating circuit comprises a first voltage-dividing component and a second voltage-dividing component, wherein a first terminal of the first voltage-dividing component is an input terminal of the voltage generating circuit, a second terminal of the first voltage-dividing component is electrically connected to a first terminal of the second voltage-dividing component, a connection point of the first voltage-dividing component and the second voltage-dividing component is an output terminal of the voltage generating circuit, and a second terminal of the second voltage-dividing component is electrically connected to the ground terminal;
the data communication apparatus further includes: and the voltage stabilizing module is connected between the power supply interface and the input end of the voltage generating circuit.
5. The apparatus according to any one of claims 1-3, characterized in that the apparatus further comprises: a switch assembly;
the control port is specifically electrically connected to the second end of the energy storage component through the switch component, the switch component is further electrically connected to the ground terminal, and the control port is specifically configured to conduct a path between the second end of the energy storage component and the ground terminal when the data communication device sends a low level signal through the first communication sub-interface.
6. The apparatus according to any one of claims 1-4, characterized in that the apparatus further comprises: a signal acquisition circuit;
the first communication sub-interface is also electrically connected with the input end of the signal acquisition circuit;
the main control chip also comprises a detection port which is electrically connected with the output end of the signal acquisition circuit;
the signal acquisition circuit includes: the load circuit comprises a first load component, a second load component, a capacitor component, a third load component and a voltage comparator;
the first end of the first load component is electrically connected with the first end of the second load component, and the connection point of the first load component and the second load component is the input end of the signal acquisition circuit;
the second end of the first load component is electrically connected with the positive input end of the voltage comparator;
the second end of the second load component, the first end of the capacitor component and the first end of the third load component are respectively electrically connected with the reverse input end of the voltage comparator, and the second end of the capacitor component and the second end of the third load component are respectively electrically connected with the grounding end;
the output end of the voltage comparator is the output end of the signal acquisition circuit.
7. The data communication device of claim 6, wherein the device further comprises: and the burr filtering component is connected between the second end of the first load component and the output end of the voltage comparator.
8. A data communication device, comprising: the system comprises a wired communication interface, a main control chip and an energy storage assembly;
the wired communication interface consists of a first communication sub-interface and a second communication sub-interface, and is used for being connected with external equipment, and the external equipment supplies power to the data communication equipment;
the first communication sub-interface is electrically connected with the first end of the energy storage assembly, and when no low-level signal is transmitted between the external equipment and the data communication equipment, the voltage of the first end of the energy storage assembly is maintained at the voltage value of the power supply voltage provided by the external equipment, so that the data communication equipment is powered;
the second communication sub-interface is electrically connected with a grounding end of the data communication equipment;
the main control chip comprises a control port, and the control port is electrically connected with the second end of the energy storage assembly;
the main control chip is used for outputting a first signal from the control port when the data communication equipment sends a low-level signal through the first communication sub-interface;
the energy storage component is used for setting the voltage of the first end of the energy storage component as a first voltage under the control of the first signal, wherein the first voltage is lower than the voltage value of the power supply voltage provided by the external equipment and is greater than zero, so that the level at the first communication subinterface is reduced to generate level change, and then data transmission is performed through the level change at the first communication subinterface.
9. The apparatus of claim 8,
the energy storage component is a capacitor;
the first signal is a level signal with a voltage value lower than a second voltage, wherein the second voltage is lower than the voltage value of a power supply voltage provided by the external equipment;
the main control chip is further configured to output a second signal from the control port when the data communication device sends a high level signal through the first communication sub-interface, where the second signal is a level signal whose voltage value is the second voltage.
10. The apparatus of claim 8, further comprising: a voltage generating circuit;
the energy storage component is a capacitor;
the first signal is a level signal with a voltage value lower than a second voltage, wherein the second voltage is lower than the voltage value of a power supply voltage provided by the external equipment;
the input end of the voltage generating circuit is electrically connected with the first communication sub-interface, the output end of the voltage generating circuit is electrically connected with the second end of the energy storage assembly, and the voltage generating circuit is used for outputting a level signal with a voltage value of the second voltage to the second end of the energy storage assembly.
11. The apparatus of claim 10, wherein the voltage generating circuit comprises a first voltage-dividing component and a second voltage-dividing component, wherein a first terminal of the first voltage-dividing component is an input terminal of the voltage generating circuit, a second terminal of the first voltage-dividing component is electrically connected to a first terminal of the second voltage-dividing component, a connection point of the first voltage-dividing component and the second voltage-dividing component is an output terminal of the voltage generating circuit, and a second terminal of the second voltage-dividing component is electrically connected to the ground terminal.
12. The apparatus according to any one of claims 8-11, characterized in that the apparatus further comprises: a switch assembly;
the control port is specifically electrically connected to the second end of the energy storage component through the switch component, the switch component is further electrically connected to the ground terminal, and the control port is specifically configured to conduct a path between the second end of the energy storage component and the ground terminal when the data communication device sends a low level signal through the first communication sub-interface.
13. The device according to any one of claims 8-11, wherein the master control chip further comprises: a power supply port;
the power supply port is electrically connected with the first communication sub-interface.
14. A data communication device, comprising: the system comprises a wired communication interface, an anti-reverse connection module, a main control chip and an energy storage assembly;
the wired communication interface consists of a first communication sub-interface and a second communication sub-interface, and is used for being connected with external equipment, and the external equipment supplies power to the data communication equipment;
the first communication sub-interface is electrically connected with a first input/output end of the reverse connection prevention module, a second communication sub-interface of the wired communication interface is electrically connected with a second input/output end of the reverse connection prevention module, a grounding end of the reverse connection prevention module is electrically connected with a grounding end of the data communication equipment, an output end of the reverse connection prevention module is electrically connected with a first end of the energy storage assembly, and when no low-level signal is transmitted between the external equipment and the data communication equipment, the voltage of the first end of the energy storage assembly is maintained at the voltage value of the power supply voltage provided by the external equipment, so that the power supply of the data communication equipment is realized;
the main control chip comprises a control port, and the control port is electrically connected with the second end of the energy storage assembly;
the main control chip is used for outputting a first signal from the control port when the data communication equipment sends a low-level signal through the first communication sub-interface;
the energy storage component is used for setting the voltage of a first end of the energy storage component as a first voltage under the control of the first signal, wherein the first voltage is lower than the voltage value of the power supply voltage provided by the external equipment and is greater than zero, so that the level at the first communication subinterface is reduced to generate level change, and then data transmission is performed through the level change at the first communication subinterface;
the reverse connection prevention module is used for conducting a path from one port of the first input and output end and the second input and output end to the output end of the reverse connection prevention module, and conducting a path from the grounding end to the other port of the first input and output end and the second input and output end.
15. The apparatus of claim 14,
the energy storage component is a capacitor;
the first signal is a level signal with a voltage value lower than a second voltage, wherein the second voltage is lower than the voltage value of a power supply voltage provided by the external equipment;
the main control chip is further configured to output a second signal from the control port when the data communication device sends a high level signal through the first communication sub-interface, where the second signal is a level signal whose voltage value is the second voltage.
16. The apparatus of claim 14, further comprising: a voltage generating circuit;
the energy storage component is a capacitor;
the first signal is a level signal with a voltage value lower than a second voltage, wherein the second voltage is lower than the voltage value of a power supply voltage provided by the external equipment;
the input end of the voltage generating circuit is electrically connected with the output end of the reverse connection preventing module, the output end of the voltage generating circuit is electrically connected with the second end of the energy storage assembly, and the voltage generating circuit is used for outputting a level signal with a voltage value of the second voltage to the second end of the energy storage assembly.
17. The apparatus of claim 16, wherein the voltage generating circuit comprises a first voltage-dividing component and a second voltage-dividing component, wherein a first terminal of the first voltage-dividing component is an input terminal of the voltage generating circuit, a second terminal of the first voltage-dividing component is electrically connected to a first terminal of the second voltage-dividing component, a connection point of the first voltage-dividing component and the second voltage-dividing component is an output terminal of the voltage generating circuit, and a second terminal of the second voltage-dividing component is electrically connected to the ground terminal;
the data communication apparatus further includes: and the voltage stabilizing module is connected between the output end of the reverse connection preventing module and the input end of the voltage generating circuit.
18. The device of any one of claims 14-17, wherein the master control chip further comprises: a power supply port;
the power supply port is electrically connected with the output end of the reverse connection prevention module.
CN201610827236.1A 2016-09-14 2016-09-14 Data communication equipment Active CN107819493B (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
CN201610827236.1A CN107819493B (en) 2016-09-14 2016-09-14 Data communication equipment
EP17850195.3A EP3514691B1 (en) 2016-09-14 2017-09-01 Data communication device and system
PCT/CN2017/100211 WO2018049993A1 (en) 2016-09-14 2017-09-01 Data communication device and system
US16/333,212 US10817038B2 (en) 2016-09-14 2017-09-01 Data communication device and system
CA3036753A CA3036753C (en) 2016-09-14 2017-09-01 Data communication device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610827236.1A CN107819493B (en) 2016-09-14 2016-09-14 Data communication equipment

Publications (2)

Publication Number Publication Date
CN107819493A CN107819493A (en) 2018-03-20
CN107819493B true CN107819493B (en) 2020-02-11

Family

ID=61601105

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610827236.1A Active CN107819493B (en) 2016-09-14 2016-09-14 Data communication equipment

Country Status (1)

Country Link
CN (1) CN107819493B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101512563A (en) * 2006-09-06 2009-08-19 Nxp股份有限公司 Method for supplying electrical energy from a first electronic circuit to a second electronic circuit via at least one wire line
CN202798027U (en) * 2012-05-17 2013-03-13 兰家林 Bidirectional power supply circuit of single USB interface
CN103064489A (en) * 2011-10-21 2013-04-24 华为终端有限公司 Method for selecting internal circuit according to conditions of universal serial bus (USB) interface and terminal
CN104678158A (en) * 2015-01-29 2015-06-03 北京新能源汽车股份有限公司 High-voltage power-on display device of electric automobile

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080272741A1 (en) * 2007-05-03 2008-11-06 Summit Microelectronics, Inc. Systems and methods for detecting power sources

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101512563A (en) * 2006-09-06 2009-08-19 Nxp股份有限公司 Method for supplying electrical energy from a first electronic circuit to a second electronic circuit via at least one wire line
CN103064489A (en) * 2011-10-21 2013-04-24 华为终端有限公司 Method for selecting internal circuit according to conditions of universal serial bus (USB) interface and terminal
CN202798027U (en) * 2012-05-17 2013-03-13 兰家林 Bidirectional power supply circuit of single USB interface
CN104678158A (en) * 2015-01-29 2015-06-03 北京新能源汽车股份有限公司 High-voltage power-on display device of electric automobile

Also Published As

Publication number Publication date
CN107819493A (en) 2018-03-20

Similar Documents

Publication Publication Date Title
CN105453372B (en) The method and apparatus of fast battery charging is carried out using general high power input source
US10298073B2 (en) Method and apparatus for controlling wireless induction power supply
EP4075656B1 (en) Charging systems with direct charging port support and extended capabilities
US10574073B2 (en) Electronic device and method for controlling power supply
EP2413429A2 (en) Charging device for vehicle and vehicle
EP2564485B1 (en) Methods and systems for detecting battery presence
EP3032693B1 (en) Electronic device and power adapter capable of communicating with each other, and associated charging system
CN103475068A (en) Charger, charging terminal, charging system and charging control method
AU2015268761B2 (en) Systems And Methods For Automatic Detection Of A Device
KR102043771B1 (en) Power control apparatus and image forming apparatus having the same
CN107818066B (en) Data communication system
CN107819493B (en) Data communication equipment
US10461555B2 (en) Battery charging for mobile devices
CN203800819U (en) Frequency converter and power-on protection module thereof
CN107819494B (en) Data communication equipment
US20180032044A1 (en) Controlled Power Adapter and Cable
EP3514691B1 (en) Data communication device and system
CN107196770B (en) System for supplying power through signal wire
EP3382838A1 (en) Protection circuit and control device for brushless dc motor
KR20150010871A (en) Power control apparatus and image forming apparatus having the same
CN106484648B (en) Communication equipment, system and data sending and receiving method
KR20170023575A (en) Aircraft power voltage sensing processing device
EP1890469B1 (en) Startup procedure for international line powered DAA
CN106484643B (en) Communication equipment, system and data sending and receiving method
KR20080009895A (en) Circuit for charging and discharging of smoothing capacitor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant