CN108233957B - Data transmitting method - Google Patents

Data transmitting method Download PDF

Info

Publication number
CN108233957B
CN108233957B CN201711250260.4A CN201711250260A CN108233957B CN 108233957 B CN108233957 B CN 108233957B CN 201711250260 A CN201711250260 A CN 201711250260A CN 108233957 B CN108233957 B CN 108233957B
Authority
CN
China
Prior art keywords
voltage
signal
data
interface
switch module
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
CN201711250260.4A
Other languages
Chinese (zh)
Other versions
CN108233957A (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 Corp
Original Assignee
Tendyron Corp
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 Corp filed Critical Tendyron Corp
Priority to CN201711250260.4A priority Critical patent/CN108233957B/en
Publication of CN108233957A publication Critical patent/CN108233957A/en
Application granted granted Critical
Publication of CN108233957B publication Critical patent/CN108233957B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/02Transmitters
    • H04B1/04Circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/40Circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Dc Digital Transmission (AREA)

Abstract

The invention provides a data sending method, which comprises the following steps: the communication interface for sending data by adopting the data sending method is provided with only two communication pins, one of the two communication pins is grounded, the other communication pin is a data pin used for sending data signals, and the data pin is respectively connected to a power supply interface of a power line and a first end of a voltage adjusting module, wherein the method comprises the following steps: the main control chip acquires data to be sent; the main control chip generates a control signal to control the switch module to switch on or off a circuit path between a second end of the voltage adjustment module and a ground terminal, so that the voltage adjustment module adjusts the data pin to alternately generate a first voltage signal representing a bit 0 and a second voltage signal representing a bit 1 in the data to be transmitted, wherein the voltage value of the first voltage signal is not equal to the voltage value of the second voltage signal and is not zero.

Description

Data transmitting method
Technical Field
The invention relates to the technical field of electronics, in particular to a data sending method.
Background
At present, when distance signal transmission is implemented, a certain distance is usually formed between the position of a data sending device and the position of a data receiving device, and whether the design of a data sending scheme is proper or not will affect the stability and quality of signal transmission.
Disclosure of Invention
The invention aims to provide a novel data transmission method which can ensure the stability and quality of signal transmission.
The invention mainly aims to provide a data transmission method.
In order to achieve the purpose, the invention provides the following technical scheme:
a data sending method is characterized in that a communication interface for sending data by adopting the data sending method is provided with only two communication pins, one of the two communication pins is grounded, the other communication pin is a data pin and used for sending a data signal, and the data pins are respectively connected to a power supply interface of a power line and a first end of a voltage adjusting module, and the method comprises the following steps: the main control chip acquires data to be sent; the main control chip generates a control signal to control the switch module to switch on or off a circuit path between a second end of the voltage adjustment module and a ground terminal, so that the voltage adjustment module adjusts the data pin to alternately generate a first voltage signal representing a bit 0 and a second voltage signal representing a bit 1 in the data to be transmitted, wherein the voltage value of the first voltage signal is not equal to the voltage value of the second voltage signal and is not zero.
Through the technical scheme, by adopting the novel data transmission method provided by the invention, the voltage values of the voltage signals adopted by the data to be transmitted during transmission are all nonzero, compared with the method that the voltage values are reduced to zero during data transmission in the prior art, on one hand, the continuous power supply of a receiving end device can be realized through the transmitted voltage signals, on the other hand, the data transmission efficiency can be improved, and the time consumption of data transmission is reduced.
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 diagram of a data transmission method according to embodiment 1 of the present invention;
fig. 2 is a schematic diagram of a data transmission circuit according to embodiment 2 of the present invention;
fig. 3 is another schematic diagram of a data transmission circuit according to embodiment 2 of the present invention;
fig. 4 is a schematic diagram of a data transmission circuit according to embodiment 3 of the present invention;
fig. 5 is another schematic diagram of a data transmission circuit according to embodiment 3 of the present invention;
fig. 6 is a schematic diagram of a data transmission circuit according to embodiment 4 of the present invention;
fig. 7 is another schematic diagram of a data transmission circuit according to embodiment 4 of the present invention;
fig. 8 is a schematic diagram of a data transmission circuit according to embodiment 5 of the present invention;
fig. 9 is another schematic diagram of a data transmission circuit according to embodiment 5 of the present invention;
fig. 10 is a schematic diagram of a data transmission circuit according to embodiment 6 of the present invention;
fig. 11 is another schematic diagram of a data transmission circuit according to embodiment 6 of the present invention;
fig. 12 is a schematic diagram of a data transmission circuit according to embodiment 7 of the present invention;
fig. 13 is another schematic diagram of a data transmission circuit according to embodiment 7 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.
Embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
Example 1
A data sending method, where a communication interface for sending data by using the data sending method has only two communication pins, one of the two communication pins is grounded, the other communication pin is a data pin for sending a data signal, and the data pins are respectively connected to a power supply interface of a power line and a first end of a voltage adjustment module, as shown in fig. 1, the method includes:
101. the main control chip acquires data to be sent;
the data to be transmitted may be a bit sequence represented by bit 0 and bit 1.
102. The main control chip generates a control signal to control the switch module to switch on or off a circuit path between a second end of the voltage adjustment module and a ground terminal, so that the voltage adjustment module adjusts the data pin to alternately generate a first voltage signal representing a bit 0 and a second voltage signal representing a bit 1 in the data to be transmitted, wherein the voltage value of the first voltage signal is not equal to the voltage value of the second voltage signal and is not zero.
For example, the voltage value of the first voltage signal representing bit 0 may be greater than that of the second voltage signal representing bit 1, and of course, according to the needs of practical application, the voltage value of the first voltage signal representing bit 0 may be smaller than that of the second voltage signal representing bit 1, for example, and is not limited herein.
For example, the voltage value of the first voltage signal may be greater than or less than or equal to the voltage value provided by the power line, and likewise, the voltage value of the second voltage signal may also be greater than or less than or equal to the voltage value provided by the power line, but the voltage value of the first voltage signal is not equal to the voltage value of the second voltage signal, and is neither zero.
In the data transmission method provided by this embodiment, the voltage value of the voltage signal adopted by the data to be transmitted is non-zero, and compared with the method that the voltage value is lowered to zero when the data is transmitted in the prior art, on one hand, the continuous power supply to the data receiving device can be realized through the transmitted voltage signal, and on the other hand, the efficiency of data transmission can be improved, and the time consumption of data transmission is reduced.
In addition, when data is transmitted by using the data transmission method provided by the embodiment, the power line is connected to the data transmission pin, so that power supply to the data transmission device and data transmission are realized on one line.
As an optional implementation manner of this embodiment, the data sending method provided in this embodiment may be implemented by adopting a scheme provided in the following embodiments:
example 2
The present embodiment provides a data transmission circuit, which can implement the data transmission method described above, as shown in fig. 2, including:
the power supply circuit comprises a first power supply interface for providing a first direct-current voltage, a second power supply interface for providing a second direct-current voltage, a sending interface, a main control chip, a transformer T1, a current limiting module, a first capacitor C1 and a switch module;
a first end (pin 1 of T1) of a primary coil of the transformer T1 is connected to a first end of the current limiting module and a first end of the first capacitor C1, respectively, a second end of the current limiting module and a second end of the first capacitor C1 are both connected to the first power supply interface, a second end (pin 2 of T1) of the primary coil of the transformer T1 is connected to an input end of the switching module, a first end (pin 3 of T1) of a secondary coil of the transformer T1 is connected to the second power supply interface, and a second end (pin 4 of T1) of the secondary coil of the transformer T1 is connected to the transmission interface;
the output end of the switch module is grounded GND, and the control end of the switch module is connected to the main control chip;
the main control chip is used for sending a control signal to the control end of the switch module when the data sending circuit sends a data signal to the sending interface;
and the switch module is used for switching on or switching off a circuit path between the input end and the output end of the switch module when receiving the control signal sent by the main control chip.
As an optional implementation manner of this embodiment, the transmitting interface may specifically include a first pin and a second pin, and one implementation manner in which the second end of the secondary coil of the transformer T1 (pin 4 of T1) is connected to the transmitting interface is that: a second terminal (pin 4 of T1) of the secondary coil of the transformer T1 is connected to a first pin of the transmit interface. And the second pin of the sending interface is used for grounding.
In the data transmitting circuit provided in this embodiment, when the switch module disconnects the circuit path between the input terminal and the output terminal of the switch module, no current passes through the primary coil of the transformer, at this time, the signal sent by the transmitting interface is a signal corresponding to the first dc voltage, when the switch module connects the circuit path between the input terminal and the output terminal of the switch module, a circuit path is formed between the primary coil of the transformer and the ground, a current is generated in the primary coil of the transformer, and further a current is generated in the secondary coil of the transformer, at this time, the signal generated by the secondary coil of the transformer is coupled with the signal generated by the second dc voltage to form a signal different from the first dc voltage (the voltage value of the signal different from the first dc voltage is non-zero), the main control chip sends a corresponding control signal according to the sent data to control the switch module to be turned on or turned off, further, the sending interface sends out a signal corresponding to the first direct-current voltage and a signal different from the first direct-current voltage alternately, that is, when data is sent, the sending interface sends data by using an alternating-current signal, for example, sending data 1 by using a signal corresponding to the first direct-current voltage, and sending data 0 by using a signal different from the first direct-current voltage; or the data 0 is transmitted by using a signal corresponding to the first direct-current voltage, and the data 1 is transmitted by using a signal different from the first direct-current voltage. The novel data transmission circuit provided by the embodiment can ensure the stability and quality of signal transmission.
In this embodiment, since the voltage values of the signal corresponding to the first dc voltage and the signal different from the first dc voltage alternately sent by the sending interface are all non-zero, that is, the voltage value of the data signal sent by the sending interface is all non-zero, compared with the prior art that the voltage value is reduced to zero when the data signal is sent, on one hand, the continuous power supply to the receiving end device can be realized through the sent data signal, and on the other hand, the efficiency of sending the data signal can be improved.
As an optional implementation manner of this embodiment, the signal generated by the secondary winding of the transformer is coupled with the signal generated by the second dc voltage to form a signal different from the first dc voltage, which may be a signal higher than the first dc voltage or a signal lower than the first dc voltage, and may be set according to different requirements of applications, which is not limited herein.
As an optional implementation manner of this embodiment, the main control chip sends a control signal to the control end of the switch module; for example, in a default state, a control terminal of the switch module may keep one of a high level and a low level to maintain the switch module in an open state, at which the circuit path is opened, and when the switch needs to be closed to turn on the circuit path, the sent control signal is the other one of the high level and the low level.
As an optional implementation manner of this embodiment, the data sending circuit may be applied to medium-distance transmission, for example, an exemplary application scenario: the electronic equipment is provided with the data transmission circuit and reads a scene of card information at a certain distance; of course, the present invention can also be applied to near field transmission, for example, in a case where an electronic device is provided with the above-described data transmission circuit and has a two-wire communication interface, and data transmission is performed between two electronic devices of this type via the two-wire communication interface. And are not intended to be limiting herein.
As an optional implementation manner of this embodiment, as shown in fig. 3, the first power supply interface for providing the first direct-current voltage may specifically be a first power supply interface connected to a direct-current power supply VCC; the second power supply interface for providing the second dc voltage may particularly be the second power supply interface connected to the chip operating voltage VDD.
As an optional implementation manner of this embodiment, the voltage at the first power supply interface may be greater than the voltage at the second power supply interface, and amplification of a transmitted signal may be implemented, so that transmission of a medium-distance signal and a long-distance signal is implemented. For example, the voltage at the first power supply interface is 12v and the voltage at the second power supply interface is 5 v. Of course, the voltage at the first power supply interface may also be equal to or less than the voltage at the second power supply interface, depending on the requirements of the actual application.
As an alternative implementation manner of this embodiment, another schematic diagram of the data transmission circuit is shown in fig. 3. The current limiting module comprises a first resistor R1 for performing current limiting protection when the circuit forms a path to avoid short circuit. The first resistor may be implemented by one resistor or a plurality of parallel resistors or a plurality of series resistors, which is not limited herein.
As an alternative implementation manner of this embodiment, another schematic diagram of the data transmission circuit is shown in fig. 3. The switch module comprises a MOS transistor Q1 or a triode. For example, when the switch module adopts an NMOS transistor, a drain D of the NMOS transistor serves as an input terminal of the switch module, a source S of the NMOS transistor serves as an output terminal of the switch module, and a gate G of the NMOS transistor serves as a control terminal of the switch module; for another example, when the switch module adopts a PMOS transistor, the source S of the PMOS transistor serves as the input terminal of the switch module, the drain D of the NMOS transistor serves as the output terminal of the switch module, and the gate G of the NMOS transistor serves as the control terminal of the switch module; for another example, the switch module may also adopt other components that can implement a switching function, such as a triode, and the like, which is not limited herein.
As an alternative implementation manner of this embodiment, a glitch filtering module, for example, a diode, is further connected between the first end and the second end of the primary coil of the transformer, and is used for filtering a glitch signal generated in the circuit. Of course, the glitch filtering module may not be provided when the current signal is stable in the circuit.
As an optional implementation manner of this embodiment, a filtering module, for example, an inductor, a resistor, and a diode, or three components, i.e., the inductor, the resistor, and the diode, connected in parallel, is connected between the first end and the second end of the secondary winding of the transformer. For filtering glitches generated in the circuit. Of course, the glitch filtering module may not be provided when the current signal is stable in the circuit.
Example 3
The present embodiment provides a data transmission circuit, which can implement the data transmission method described above, as shown in fig. 4, including:
the power supply circuit comprises a first power supply interface for providing a first direct-current voltage, a second power supply interface for providing a second direct-current voltage, a sending interface, a main control chip, a transformer T1, a current limiting module, a first capacitor C1 and a switch module;
a first end (pin 1 of T1) of a primary coil of the transformer T1 is connected to the first power supply interface, a second end (pin 2 of T1) of the primary coil of the transformer T1 is connected to the first end of the current limiting module and the first end of the first capacitor C1, respectively, a first end (pin 3 of T1) of a secondary coil of the transformer T1 is connected to the second power supply interface, and a second end (pin 4 of T1) of the secondary coil of the transformer T1 is connected to the transmission interface;
the second end of the current limiting module and the second end of the first capacitor C1 are both connected to the input end of the switch module;
the output end of the switch module is grounded GND, and the control end of the switch module is connected to the main control chip;
the main control chip is used for sending a control signal to the control end of the switch module when the data sending circuit sends a data signal to the sending interface;
and the switch module is used for switching on or switching off a circuit path between the input end and the output end of the switch module when receiving the control signal sent by the main control chip.
As an optional implementation manner of this embodiment, the transmitting interface may specifically include a first pin and a second pin, and one implementation manner in which the second end of the secondary coil of the transformer T1 (pin 4 of T1) is connected to the transmitting interface is that: a second terminal (pin 4 of T1) of the secondary coil of the transformer T1 is connected to a first pin of the transmit interface. And the second pin of the sending interface is used for grounding.
In the data transmitting circuit provided in this embodiment, when the switch module disconnects the circuit path between the input terminal and the output terminal of the switch module, no current passes through the primary coil of the transformer, at this time, the signal sent by the transmitting interface is a signal corresponding to the first dc voltage, when the switch module connects the circuit path between the input terminal and the output terminal of the switch module, a circuit path is formed between the primary coil of the transformer and the ground, a current is generated in the primary coil of the transformer, and further a current is generated in the secondary coil of the transformer, at this time, the signal generated by the secondary coil of the transformer is coupled with the signal generated by the second dc voltage to form a signal different from the first dc voltage (the voltage value of the signal different from the first dc voltage is non-zero), the main control chip sends a corresponding control signal according to the sent data to control the switch module to be turned on or turned off, further, the sending interface sends out a signal corresponding to the first direct-current voltage and a signal different from the first direct-current voltage alternately, that is, when data is sent, the sending interface sends data by using an alternating-current signal, for example, sending data 1 by using a signal corresponding to the first direct-current voltage, and sending data 0 by using a signal different from the first direct-current voltage; or the data 0 is transmitted by using a signal corresponding to the first direct-current voltage, and the data 1 is transmitted by using a signal different from the first direct-current voltage. The novel data transmission circuit provided by the embodiment can ensure the stability and quality of signal transmission.
In this embodiment, since the voltage values of the signal corresponding to the first dc voltage and the signal different from the first dc voltage alternately sent by the sending interface are all non-zero, that is, the voltage value of the data signal sent by the sending interface is all non-zero, compared with the prior art that the voltage value is reduced to zero when the data signal is sent, on one hand, the continuous power supply to the receiving end device can be realized through the sent data signal, and on the other hand, the efficiency of sending the data signal can be improved.
As an optional implementation manner of this embodiment, the signal generated by the secondary winding of the transformer is coupled with the signal generated by the second dc voltage to form a signal different from the first dc voltage, which may be a signal higher than the first dc voltage or a signal lower than the first dc voltage, and may be set according to different requirements of applications, which is not limited herein.
As an optional implementation manner of this embodiment, the main control chip sends a control signal to the control end of the switch module; for example, in a default state, a control terminal of the switch module may keep one of a high level and a low level to maintain the switch module in an open state, at which the circuit path is opened, and when the switch needs to be closed to turn on the circuit path, the sent control signal is the other one of the high level and the low level.
As an optional implementation manner of this embodiment, the data sending circuit may be applied to medium-distance transmission, for example, an exemplary application scenario: the electronic equipment is provided with the data transmission circuit and reads a scene of card information at a certain distance; of course, the present invention can also be applied to near field transmission, for example, in a case where an electronic device is provided with the above-described data transmission circuit and has a two-wire communication interface, and data transmission is performed between two electronic devices of this type via the two-wire communication interface. And are not intended to be limiting herein.
As an optional implementation manner of this embodiment, as shown in fig. 5, the first power supply interface for providing the first direct-current voltage may specifically be a first power supply interface connected to a direct-current power supply VCC; the second power supply interface for providing the second dc voltage may particularly be the second power supply interface connected to the chip operating voltage VDD.
As an optional implementation manner of this embodiment, the voltage at the first power supply interface may be greater than the voltage at the second power supply interface, and amplification of a transmitted signal may be implemented, so that transmission of a medium-distance signal and a long-distance signal is implemented. For example, the voltage at the first power supply interface is 12v and the voltage at the second power supply interface is 5 v. Of course, the voltage at the first power supply interface may also be equal to or less than the voltage at the second power supply interface, depending on the requirements of the actual application.
As an alternative implementation manner of this embodiment, another schematic diagram of the data transmission circuit is shown in fig. 5. The current limiting module comprises a first resistor R1 for performing current limiting protection when the circuit forms a path to avoid short circuit. The first resistor may be implemented by one resistor or a plurality of parallel resistors or a plurality of series resistors, which is not limited herein.
As an alternative implementation manner of this embodiment, another schematic diagram of the data transmission circuit is shown in fig. 5. The switch module comprises a MOS transistor Q1 or a triode. For example, when the switch module adopts an NMOS transistor, a drain D of the NMOS transistor serves as an input terminal of the switch module, a source S of the NMOS transistor serves as an output terminal of the switch module, and a gate G of the NMOS transistor serves as a control terminal of the switch module; for another example, when the switch module adopts a PMOS transistor, the source S of the PMOS transistor serves as the input terminal of the switch module, the drain D of the NMOS transistor serves as the output terminal of the switch module, and the gate G of the NMOS transistor serves as the control terminal of the switch module; for another example, the switch module may also adopt other components that can implement a switching function, such as a triode, and the like, which is not limited herein.
As an alternative implementation manner of this embodiment, a glitch filtering module, for example, a diode, is further connected between the first end and the second end of the primary coil of the transformer, and is used for filtering a glitch signal generated in the circuit. Of course, the glitch filtering module may not be provided when the current signal is stable in the circuit.
As an optional implementation manner of this embodiment, a filtering module, for example, an inductor, a resistor, and a diode, or three components, i.e., the inductor, the resistor, and the diode, connected in parallel, is connected between the first end and the second end of the secondary winding of the transformer. For filtering glitches generated in the circuit. Of course, the glitch filtering module may not be provided when the current signal is stable in the circuit.
Example 4
The embodiment provides a data communication device, which is a main device and can transmit data by adopting the data transmission method. As shown in fig. 6, 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 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 (V _ MPWR shown in fig. 7) and the first communication sub-interface (1 port of the reference numeral 110 shown in fig. 7 is the first communication sub-interface, and 7 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.
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.
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.
Example 5
The present embodiment provides a data communication device that can serve as a master device and can transmit data using the above-described data illegitimate method. The present embodiment differs from the data communication apparatus provided in embodiment 4 in that: the second signal is provided by the control port of the main control chip in embodiment 4, while the second signal is provided by the voltage generation circuit in this embodiment.
In this embodiment, as shown in fig. 8, 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. 9, the energy storage component may be a capacitor (C1 shown in fig. 9). 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. 9 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.
In an alternative implementation manner of the embodiment of the present invention, as shown in fig. 9, the voltage generating circuit includes a first voltage dividing component (R7 shown in fig. 9) and a second voltage dividing component (R8 shown in fig. 9), 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.
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.
Example 6
The present embodiment provides a data communication device, which is a slave device and can transmit data by using the data transmission method.
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.
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.
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, 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;
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.
Example 7
The present embodiment provides a data communication apparatus, which is a slave apparatus. The difference between this example and example 6 is: the second signal is provided by the control port of the main control chip in embodiment 6, while the second signal is provided by the voltage generation circuit in this embodiment.
In this embodiment, as shown in fig. 12, 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. 13, the energy storage component may be a capacitor (see C1 of fig. 13). 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. 13), 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. 13, the voltage generating circuit includes a first voltage dividing component (R7 shown in fig. 13) and a second voltage dividing component (R8 shown in fig. 13), 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;
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 (1)

1. A data transmission method is characterized in that a communication interface for transmitting data by adopting the data transmission method is provided with only two communication pins, one of the two communication pins is grounded, the other communication pin is a data pin for transmitting a data signal, and the data pins are respectively connected to a power supply interface of a power line and a first end of a voltage regulation module, and the method comprises the following steps:
the main control chip acquires data to be sent;
the main control chip generates a control signal to control a switch module to switch on or off a circuit path between a second end of the voltage adjusting module and a ground end, so that the voltage adjusting module adjusts the data pin to alternately generate a first voltage signal representing a bit 0 and a second voltage signal representing a bit 1 in the data to be transmitted, wherein the voltage value of the first voltage signal is not equal to the voltage value of the second voltage signal and is not zero;
the data transmission method is realized by the following data transmission circuit:
the method comprises the following steps:
the power supply circuit comprises a first power supply interface for providing a first direct-current voltage, a second power supply interface for providing a second direct-current voltage, a sending interface, a main control chip, a transformer T1, a current limiting module, a first capacitor C1 and a switch module;
a first end of a primary coil of the transformer T1 is connected to a first end of the current limiting module and a first end of the first capacitor C1, respectively, a second end of the current limiting module and a second end of the first capacitor C1 are both connected to the first power supply interface, a second end of the primary coil of the transformer T1 is connected to an input end of the switch module, a first end of a secondary coil of the transformer T1 is connected to the second power supply interface, and a second end of the secondary coil of the transformer T1 is connected to the transmitting interface;
the output end of the switch module is grounded GND, and the control end of the switch module is connected to the main control chip;
the main control chip is used for sending a control signal to the control end of the switch module when the data sending circuit sends a data signal to the sending interface;
the switch module is used for switching on or switching off a circuit path between the input end and the output end of the switch module when receiving a control signal sent by the main control chip;
or
The power supply circuit comprises a first power supply interface for providing a first direct-current voltage, a second power supply interface for providing a second direct-current voltage, a sending interface, a main control chip, a transformer T1, a current limiting module, a first capacitor C1 and a switch module;
a first end of a primary coil of the transformer T1 is connected to the first power supply interface, a second end of the primary coil of the transformer T1 is connected to a first end of the current limiting module and a first end of the first capacitor C1, respectively, a first end of a secondary coil of the transformer T1 is connected to the second power supply interface, and a second end of the secondary coil of the transformer T1 is connected to the transmission interface;
the second end of the current limiting module and the second end of the first capacitor C1 are both connected to the input end of the switch module;
the output end of the switch module is grounded GND, and the control end of the switch module is connected to the main control chip;
the main control chip is used for sending a control signal to the control end of the switch module when the data sending circuit sends a data signal to the sending interface;
the switch module is used for switching on or switching off a circuit path between the input end and the output end of the switch module when receiving a control signal sent by the main control chip;
wherein:
when the switch module disconnects a circuit path between an input end and an output end of the switch module, no current passes through a primary coil of the transformer, a signal sent by a sending interface is a signal corresponding to a first direct current voltage, when the switch module switches on the circuit path between the input end and the output end of the switch module, a circuit path is formed between the primary coil of the transformer and the ground level, current is generated in the primary coil of the transformer, current is generated in a secondary coil of the transformer, a signal generated by the secondary coil of the transformer is coupled with a signal generated by a second direct current voltage to form a signal different from the first direct current voltage, the voltage value of the signal different from the first direct current voltage is nonzero, and the main control chip sends a corresponding control signal according to the sent data to control the switch module to be switched on or switched off, and alternately sending out a signal corresponding to the first direct-current voltage and a signal different from the first direct-current voltage at a sending interface.
CN201711250260.4A 2017-12-01 2017-12-01 Data transmitting method Active CN108233957B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711250260.4A CN108233957B (en) 2017-12-01 2017-12-01 Data transmitting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711250260.4A CN108233957B (en) 2017-12-01 2017-12-01 Data transmitting method

Publications (2)

Publication Number Publication Date
CN108233957A CN108233957A (en) 2018-06-29
CN108233957B true CN108233957B (en) 2020-06-26

Family

ID=62653765

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711250260.4A Active CN108233957B (en) 2017-12-01 2017-12-01 Data transmitting method

Country Status (1)

Country Link
CN (1) CN108233957B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019105338A1 (en) * 2017-12-01 2019-06-06 天地融科技股份有限公司 Data transmitting circuit and apparatus, and data receiving circuit and apparatus
CN109640207B (en) * 2018-12-24 2020-05-01 歌尔科技有限公司 Communication control method, device and system, charging box and wireless earphone

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201215981Y (en) * 2008-06-16 2009-04-01 青岛海信电器股份有限公司 Control circuit and television having the control circuit
CN103683530A (en) * 2013-11-22 2014-03-26 矽力杰半导体技术(杭州)有限公司 Method for transmitting data and wireless charging equipment for implementing same
CN105471569A (en) * 2014-09-12 2016-04-06 株洲南车时代电气股份有限公司 Multi-node current loop full-duplex communication circuit
CN206300979U (en) * 2016-12-15 2017-07-04 山东金洲科瑞节能科技有限公司 A kind of multichannel ac digital electric energy meter

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201807081U (en) * 2010-09-17 2011-04-27 天津长城科安电子科技有限公司 Novel weight-reducing apparatus
CN103064033A (en) * 2011-10-19 2013-04-24 鸿富锦精密工业(深圳)有限公司 Power supply test circuit
CN203761651U (en) * 2014-02-28 2014-08-06 浙江三杰工艺品有限公司 Two-wire two-path LED light string controlled by electronic transformer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201215981Y (en) * 2008-06-16 2009-04-01 青岛海信电器股份有限公司 Control circuit and television having the control circuit
CN103683530A (en) * 2013-11-22 2014-03-26 矽力杰半导体技术(杭州)有限公司 Method for transmitting data and wireless charging equipment for implementing same
CN105471569A (en) * 2014-09-12 2016-04-06 株洲南车时代电气股份有限公司 Multi-node current loop full-duplex communication circuit
CN206300979U (en) * 2016-12-15 2017-07-04 山东金洲科瑞节能科技有限公司 A kind of multichannel ac digital electric energy meter

Also Published As

Publication number Publication date
CN108233957A (en) 2018-06-29

Similar Documents

Publication Publication Date Title
US20100066450A1 (en) High-Speed Low-Power Differential Receiver
CN107422776A (en) Low difference voltage regulator
US20160352232A1 (en) Power converter and control circuit and standby power saving method thereof
CN106464141B (en) The PoDL system controlled with active dV/dt and dI/dt
US20150050900A1 (en) Voltage regulating circuit and method thereof
CN105684370B (en) Subscriber station of a bus system and method for reducing wire-bound emissions in a bus system
CN109714234B (en) Transceiver unit for transmitting data via a differential bus
CN105323009B (en) The method and apparatus promoted for signal edge
CN108233957B (en) Data transmitting method
JP2014171197A (en) Semiconductor apparatus and radio communication apparatus
US10345835B2 (en) Voltage generation apparatus and semiconductor chip
WO2016044550A1 (en) Overvoltage protection for nfc devices
TWI612771B (en) Interface circuit with configurable variable supply voltage for transmitting signals
CN106326174B (en) A kind of two line telecommunication circuits
US20130342259A1 (en) Semiconductor integrated circuit and switching device
CN207588847U (en) Data transmission circuit, data receiver circuit and device
CN106936415A (en) A kind of low-power consumption application delay circuit
US10069637B2 (en) Transmitter circuit harvesting power from power supply of a receiver circuit
CN107979381B (en) Data transmission circuit and device
CN107968665B (en) Data transmission circuit, data reception circuit, and device
CN207720118U (en) Data transmission circuit and device
US9847777B2 (en) Signal potential converter
KR101067330B1 (en) Apparatus for high-speed rf signal switching
CN105576945A (en) Isolation power supply control device, power supply switching device, and isolation power supply control method thereof
US11043982B1 (en) Data transmitting circuit, data receiving circuit and data transferring apparatus

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