Sending circuit and device for long-distance data transmission, control method of sending circuit and device, and chip

Through the combination of Manchester encoding and equalization module, the problems of high cost and limited speed transmission of long-distance low-speed signal transmission are solved, and low-cost and efficient data transmission is achieved, suitable for various controllers.

CN120281613APending Publication Date: 2025-07-08GUANGZHOU AVA ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411978427.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-07-08

AI Technical Summary

Technical Problem

Existing long-distance low-speed signal transmission circuits require specific bus chips and communication methods, resulting in high cost and limited transmission speeds, which cannot be applied to all types of control chips.

Method used

Manchester encoding processing is used to combine the equalization module and the isolation protection module, and data transmission is transmitted using ordinary IO and two-wire transmission lines. Low-frequency and high-frequency signals are sent through two IO pins for equalization, simplifying the circuit structure and increasing the transmission distance and speed.

Benefits of technology

Reduces hardware costs, simplifies circuit complexity, is suitable for all types of controllers, expands application scenarios, and increases data transmission distance and speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120281613A_ABST
    Figure CN120281613A_ABST
Patent Text Reader

Abstract

The invention discloses a transmitting circuit and device for long-distance data transmission, a control method of the transmitting circuit and device and a chip. The transmitting circuit comprises a control module which is used for performing Manchester encoding processing on data to be transmitted and transmitting a signal through two output pins IO1 and IO2 according to the encoded data; the balancing module comprises a resistor R1, a resistor R2 and a resistor R3, a first pin of the resistor R1 is connected with the IO1 output of the control module, a second pin of the resistor R1 is connected with a first input end of the isolation protection module, a first pin of the resistor R2 is connected with the IO2 output of the control module, a second pin of the resistor R2 is connected with a second input end of the isolation protection module, a first pin of the resistor R3 is connected with GND, and a second pin of the resistor R3 is connected with the second pin of the resistor R2; and the isolation protection module is used for converting the signal input by the equalization module into an alternating current signal and sending out the alternating current signal through a communication line. According to the invention, the circuit is simplified, the hardware cost is reduced, and the method can be applied to all types of controllers and is flexible in application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic circuits, and more specifically, to a transmission circuit, device, control method, and chip for long-distance data transmission. Background Art

[0002] With the continuous progress of information technology, the demand for data transmission is increasing day by day. Especially in some special application scenarios, such as remote monitoring and smart home, long-distance data transmission circuits play a crucial role. These scenarios often require data to be transmitted quickly and stably over a long distance while maintaining low cost and power consumption.

[0003] In the prior art, there are mainly two types of wired long-distance data transmission. One is high-speed signals that need to transmit a large amount of data, such as Ethernet; the other is low-speed signals, such as simple control signals. For low-speed signals, existing circuit solutions generally adopt hardware solutions such as RS485 bus and CAN bus. These solutions can achieve stable long-distance data transmission, but there are also some limitations: one is that specific bus chips need to be used, resulting in increased costs; the second is that the control chip needs to support the bus communication method, resulting in the inability to be applied to all types of control chips, and there are limitations in the selection of control chips; the third is that due to the limitations of the bus chip and communication method, the transmission speed will be limited, and only some simple control information data can be transmitted, resulting in limitations in the application scenarios. Summary of the Invention

[0004] In order to overcome the technical problem that using a specific method for long-distance transmission of low-speed signals results in high costs, the present invention provides a transmission circuit, device, control method, and chip for long-distance data transmission. The technical solutions adopted by the present invention are as follows.

[0005] In a first aspect, the present invention provides a transmission circuit for long-distance data transmission, including:

[0006] A transmission circuit control module for performing Manchester encoding processing on the data to be transmitted and sending signals to the equalization module through two output pins, IO1 and IO2, according to the encoded data;

[0007] The equalization module includes resistors R1, R2, and R3. The first pin of R1 is connected to the IO1 output of the transmission circuit control module, the second pin of R1 is connected to the first input end of the transmission circuit isolation protection module, the first pin of R2 is connected to the IO2 output of the transmission circuit control module, the second pin of R2 is connected to the second input end of the transmission circuit isolation protection module, the first pin of R3 is connected to GND, and the second pin of R3 is connected to the second pin of R2;

[0008] The sending circuit isolation protection module is used to convert the signal input by the equalization module into an AC signal and send it out through the communication line.

[0009] In one embodiment, the sending circuit isolation protection module includes capacitors C1 and C2. The first pin of C1 is connected to the first input terminal of the sending circuit isolation protection module, the second pin of C1 is connected to the communication line, the first pin of C2 is connected to the second input terminal of the sending circuit isolation protection module, and the second pin of C2 is connected to the communication line.

[0010] In one embodiment, the capacitance values of C1 and C2 are between 500V / 1uF and 50V / 1uF.

[0011] A long-distance data transmission device includes: a sending circuit and a receiving circuit;

[0012] The sending circuit sends the signal to the receiving circuit through the communication line;

[0013] The sending circuit uses the sending circuit described in any of the previous embodiments;

[0014] The receiving circuit includes: a receiving circuit isolation protection module, a signal amplification module, a limiting module, and a receiving circuit control module;

[0015] The receiving circuit isolation protection module is used to convert the received signal into an AC signal and send it to the signal amplification module;

[0016] The signal amplification module is used to re-amplify the amplitude of the received signal to an amplitude that the receiving circuit control module can normally recognize;

[0017] The limiting module is used to receive the signal processed by the signal amplification module, limit the amplitude of the received signal to a preset range, and then transmit it to the receiving circuit control module;

[0018] The receiving circuit control module is used to decode the signal to be received.

[0019] In one embodiment, it further includes: a communication line;

[0020] The communication line is a wire connecting the sending circuit and the receiving circuit. The communication line is a two-wire system wire. One wire is used to transmit data signals, and the other wire is used to connect the GND of the sending end and the receiving end, so that the sending end and the receiving end have a common reference GND.

[0021] In a second aspect, the present invention provides a control method for a sending circuit of long-distance data transmission. The method is applied to the sending circuit of long-distance data transmission described above and includes the steps of:

[0022] Receiving user data;

[0023] Perform Manchester encoding on the user data;

[0024] Select the corresponding IO output pin in the transmission circuit control module according to the encoded data to send the signal

[0025] Send out;

[0026] Among them, the process of selecting the corresponding IO output pin in the transmission circuit control module according to the encoded data to send the signal includes:

[0027] When the transition frequency of the data after Manchester encoding is greater than the preset transition frequency threshold, set the first IO output pin to the high-impedance state, and send the signal by the second IO output pin, where the transition frequency is the number of frequency modulations within every n preset cycles;

[0028] When the transition frequency of the data after Manchester encoding is less than the preset transition frequency threshold, set the second IO output pin to the high-impedance state, and send the signal by the first IO output pin.

[0029] In one implementation, the transition frequency is the number of frequency modulations within every 2 preset cycles.

[0030] A control method for a long-distance data transmission device, which is applied to the transmission circuit of the long-distance data transmission device described above, and includes the steps of:

[0031] Receive user data;

[0032] Perform Manchester encoding on the user data;

[0033] Select the corresponding IO output pin in the transmission circuit control module according to the encoded data to send the signal

[0034] Send out;

[0035] Among them, the process of selecting the corresponding IO output pin in the transmission circuit control module according to the encoded data to send the signal includes:

[0036] When the transition frequency of the data after Manchester encoding is greater than the preset transition frequency threshold, set the first IO output pin to the high-impedance state, and send the signal by the second IO output pin, where the transition frequency is the number of frequency modulations within every n preset cycles;

[0037] When the transition frequency of the data after Manchester encoding is less than the preset transition frequency threshold, set the second IO output pin to the high-impedance state, and send the signal by the first IO output pin.

[0038] In one embodiment, the hopping frequency is the number of frequency modulations within a preset two cycles.

[0039] In a third aspect, the present invention provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the method of any of the above embodiments is implemented.

[0040] In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored. The program is characterized in that when it is executed by a processor, the method of any of the above embodiments is implemented.

[0041] In the present invention, ordinary I / O is used for data sending and receiving, without the need to use an additional bus chip, and a two-wire transmission line can be used to complete long-distance data transmission. On the one hand, the complexity of the circuit is simplified and the hardware cost is reduced. On the other hand, this circuit solution can be applied to all types of controllers, with flexible application. In addition, the method of using two I / Os to send data after Manchester coding plus an equalization circuit effectively increases the data transmission distance and speed, and can be applied to a wider range of scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 is a schematic diagram of the overall structure of Embodiment 1 of the present invention.

[0043] Figure 2 is a circuit diagram of an embodiment of Embodiment 1 of the present invention.

[0044] Figure 3 is a schematic diagram of the overall structure of Embodiment 2 of the present invention.

[0045] Figure 4 is a circuit diagram of an embodiment of Embodiment 2 of the present invention.

[0046] Figure 5 is a transmission schematic diagram of an embodiment of Embodiment 3 of the present invention.

[0047] Figure 6 is a schematic diagram after equalization of an embodiment of Embodiment 3 of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0048] Hereinafter, the exemplary embodiments of the present disclosure will be described in more detail with reference to the drawings. Although the exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided so that the present disclosure can be more thoroughly understood and the scope of the present disclosure can be fully conveyed to those skilled in the art.

[0049] It should be noted that the terms "first\second\..." involved in the embodiments of the present invention are only used to distinguish similar objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\..."

[0050] The specific order or sequence can be interchanged where permitted. It should be understood that "first\second\..."

[0051] The distinct items may be interchanged where appropriate so that the embodiments of the invention described herein are capable of being practiced in sequences other than those illustrated or described herein.

[0052] Embodiment 1

[0053] See also Figure 1 , Figure 1 A transmission circuit for long-distance data transmission provided in the first embodiment of the present invention

[0054] The transmission circuit 100 for long-distance data transmission includes: a transmission circuit control module 101, a balancing module 102 and a transmission circuit isolation protection module 103.

[0055] See also Figure 2 , Figure 2 A circuit diagram of an implementation of a sending circuit for long-distance data transmission provided in Example 1 of the present invention.

[0056] The sending circuit control module 101 is used to perform Manchester encoding on the data to be transmitted, and send the signal to the equalization module through the two output pins IO1 and IO2 according to the encoded data.

[0057] The sending circuit control module 101 is a control chip at the data sending end, which is mainly composed of a programmable control chip. In practical applications, an MCU (Microcontroller Unit) can be used.

[0058] FPGA (Field Programmable Gate Array), DSP (Digital Signal Processor) and other programmable devices are used to implement. In this patent, MCU U1 is used as a controller, and its function is to perform Manchester encoding on the data to be transmitted, and then send the data to the next module through two output pins according to the encoding information.

[0059] The equalization module 102 includes resistors R1, R2, and R3. The first pin of R1 is connected to the output of IO1 of the transmission circuit control module, and the second pin of R1 is connected to the first input of the transmission circuit isolation protection module. The first pin of R2 is connected to the output of IO2 of the transmission circuit control module, and the second pin of R2 is connected to the second input of the transmission circuit isolation protection module. The first pin of R3 is connected to GND, and the second pin of R3 is connected to the second pin of R2.

[0060] The equalization module 102 is composed of a resistor network, including resistors R1, R2, and R3. The first pin of R1 is connected to the output of IO1 of the control module 101, and the second pin is connected to the next module C1. At this time, the voltage Vc at point c is equal to the voltage Va at point a. The first pin of R2 is connected to the output of IO2 of the control module 101, and the second pin is connected to the next module C2. The first pin of R3 is connected to GND, and the second pin is connected to the second pin of R2, that is, connected to the next module C2. R2 and

[0061] R3 form a voltage dividing network to achieve equalization adjustment of the signal at point b. At this time, the voltage Vd at point d = Vb / (R2 + R3) * R3, where Vb is the voltage at point b. Since after signals of different frequencies are transmitted over a long distance, the high-frequency signal attenuates more severely than the low-frequency signal in amplitude. This characteristic will cause the loss of high-frequency signals and data transmission errors after long-distance transmission. However, if the transmission distance is relatively short or the transmission speed is relatively slow, the influence of this characteristic can be ignored. Therefore, in this patent, in order to increase the transmission distance and improve the transmission speed, an equalization module is added to the circuit. By cooperating with the method of encoding data in the controller and sending it using two pins respectively, a part of the low-frequency signal sent out can be pre-attenuated, while the high-frequency signal is not attenuated. Then, after long-line transmission, the amplitude attenuation of the high-frequency and low-frequency signals can be basically the same, and the data received by the data receiving end will not be in error.

[0062] The transmission circuit isolation protection module 103 is used to convert the signal input by the equalization module into an AC signal and send it out through the communication line.

[0063] The transmission circuit isolation protection module 103 is mainly used to protect the entire circuit of the data sending end. Since this circuit is mainly applied to scenarios that require long-distance transmission, and various interferences will occur during long-distance transmission, an isolation protection circuit needs to be added. In the embodiments of this patent, it is preferably implemented by using two identical capacitors. The capacitance value is between 500V / 1uF and 50V / 1uF, and preferably implemented by using a 100V / 1uF capacitor. The signal after passing through the isolation circuit becomes an AC signal.

[0064] In this circuit, an equalization module is added to the circuit. In cooperation with the method of encoding data in the controller and then sending it using two pins respectively, a part of the transmitted low-frequency signal is attenuated in advance, while the high-frequency signal is not attenuated. After long-line transmission, the attenuation of the high-frequency and low-frequency signals can be basically the same, so that the data received by the data receiving end is error-free, increasing the transmission distance and improving the transmission speed. The circuit proposed in this patent uses ordinary I / O for data sending and receiving, without the need to use additional bus chips, and can complete long-distance data transmission using a two-wire transmission line. On the one hand, it simplifies the circuit complexity and reduces the hardware cost. On the other hand, this circuit solution can be applied to all types of controllers, with flexible application. In addition, the method of using two I / Os to send data after Manchester encoding plus an equalization circuit effectively increases the data transmission distance and speed, and can be applied to a wider range of scenarios.

[0065] In addition, this embodiment also provides a chip, and the chip includes the sending circuit for long-distance data transmission described above.

[0066] Embodiment 2

[0067] Please refer to Figure 3 , Figure 3 which is a schematic structural diagram of a device for long-distance data transmission provided by Embodiment 2 of the present invention. The device for long-distance data transmission includes: a sending circuit 100 and a receiving circuit 200, and the sending circuit 100 sends a signal to the receiving circuit 200 through a communication line 300.

[0068] The sending circuit therein uses the sending circuit of Embodiment 1;

[0069] The receiving circuit includes: a receiving circuit isolation protection module 201, a signal amplification module 202, a limiting module 203, and a receiving circuit control module 204.

[0070] The receiving circuit isolation protection module is used to convert the received signal into an AC signal and send it to the signal amplification module.

[0071] The function of the receiving circuit isolation protection module 201 is similar to that of the sending circuit isolation protection module 103, mainly used to protect the entire circuit of the data receiving end. In this embodiment, it is implemented by a 100V / 1uF capacitor, and the signal after passing through the isolation circuit becomes an AC signal.

[0072] The signal amplification module is used to re-amplify the amplitude of the received signal to an amplitude that can be normally recognized by the receiving circuit control module.

[0073] The function of the signal amplification module 202 is to re-amplify the signal amplitude after long-line attenuation to an amplitude that the controller can normally identify. In this embodiment, a same-direction proportional operational amplifier circuit is used. It includes resistors R4, R5, R6, R7 and an operational amplifier U2. Since the signal becomes an AC signal after passing through capacitor C3, it needs to be adjusted to a DC signal controller to receive it normally, so a bias circuit needs to be provided. The function of resistors R4 and R5 is to provide a bias voltage for the input signal. The first pin of R4 is connected to Vdd, and the second pin is connected to capacitor C3. The first pin of resistor R5 is connected to GND, and the second pin is connected to capacitor C3. At this time, the bias voltage value is Vdd / (R4+R5)*R5; R6, R7, and U2 form a same-direction proportional operational amplifier circuit, in which U2 has a same-direction input

[0074] The first pin of resistor R6 is connected to GND, and the second pin is connected to the reverse input terminal of U2. The first pin of resistor R7 is connected to the output terminal of U2, and the second pin is connected to the reverse input terminal of U2.

[0075] After being placed, it is added to the op amp's non-inverting input terminal, and the output voltage Vi is fed back to the inverting input terminal through R6 and R7, forming a voltage series negative feedback. According to the "virtual short" and "virtual open" principles (that is, the input voltages of the operational amplifier are equal and the input current is zero), it can be deduced that the relationship between the output voltage Vi and the input voltage Vh is: Vi = (1 + R7 / R6) × Vh. After being biased and amplified, the signal is transmitted to the next module.

[0076] The amplitude limiting module is used to receive the signal processed by the signal amplification module, limit the amplitude of the received signal to a preset range, and then transmit it to the receiving circuit control module.

[0077] The limiter module 203 is composed of two clamping diodes D1 and D2, wherein the first pin of D1 is connected to the output terminal of U2, and the second pin is connected to the power supply Vdd; the first pin of D2 is connected to GND, and the second pin is connected to

[0078] Connect to the output terminal of U2. Since the input signal of the signal amplifier module is the signal after long-distance transmission, and the signal amplitude after long-distance transmission is related to the length of the line, the longer the line, the more serious the signal attenuation, and the signal amplifier

[0079] The smaller the input signal amplitude of the module, the smaller the signal amplitude of the signal amplifier module is. The amplification factor of the signal amplifier module is fixed, so the signal amplitude after passing through the signal amplifier module is closely related to the length of the line used. In the actual application scenario of the product, the transmission distance may be very long or very short. Therefore, in order to increase the transmission distance, the signal needs to be amplified.

[0080] Set the amplification factor of the module to a larger value so that the amplitude of the output signal can be correctly received by the next module. However, if the transmission distance is very short at this time, the amplitude of the signal will be very large, exceeding the reception range of the next module and causing abnormalities in the next module. For ease of understanding, ignoring the voltage drops of D1 and D2, after adding D1, when the signal amplitude at i is greater than Vdd, D1 conducts, clamping the maximum amplitude of the signal at position j to Vdd; after adding D2, when the signal amplitude at i is less than GND, D2 conducts, clamping the minimum amplitude of the signal at position j to GND. Therefore, the purpose of adding the amplitude limiting module is to limit the amplitude of the signal input to the next module (at position j) within the range of GND to Vdd, avoiding excessive signal amplitude and causing abnormalities in the next module.

[0081] The receiving circuit control module is used to decode the received signal.

[0082] The receiving circuit control module 204 has the same composition as the transmitting circuit control module 101. In this embodiment, its function is to decode the data to be received and complete the long-distance transmission process of the entire data.

[0083] In one implementation, the long-distance data transmission device further includes: a communication line 300.

[0084] The communication line 300 is a wire connecting the transmitting circuit and the receiving circuit. The wire used in this implementation is a two-wire system wire. One wire is used to transmit data signals, and the other wire is used to connect the GND of the transmitting end and the receiving end, so that the transmitting end and the receiving end have a common reference GND. In practical applications, twisted pairs, coaxial cables, etc. can be used, and wires with shielding are preferably used for better anti-interference effect.

[0085] Embodiment Three

[0086] This embodiment is about the control method of the transmitting circuit in Embodiment One or Embodiment Two. The control method includes step S510, step S520, and step S530. It should be noted that step S510, step S520, and step S530 do not represent the order limitation of the steps in this embodiment.

[0087] Step S510, receive user data;

[0088] Step S520, perform Manchester encoding on the user data;

[0089] Step S530, select the corresponding IO output pin in the transmitting circuit control module according to the encoded data and send out the signal;

[0090]

[0091]

[0092] ​​Among them, the process of selecting a corresponding IO output pin in the sending circuit control module to send a signal according to the encoded data includes:

[0093] When the transition frequency of the data after Manchester encoding is greater than a preset transition frequency threshold, set the first IO output pin to a high-impedance state, and send the signal by the second IO output pin, where the transition frequency is the number of frequency modulations within every n preset cycles;

[0094] When the transition frequency of the data after Manchester encoding is less than the preset transition frequency threshold, set the second IO output pin to a high-impedance state, and send the signal by the first IO output pin.

[0095] In step S510, user data is received, and then in step S520, the user data is Manchester encoded. In Manchester encoding, there is a transition in the middle of each bit. The transition in the middle of the bit serves as both a clock signal and a data signal. Therefore, Manchester encoding has self-synchronization ability, that is, the clock synchronization signal is hidden in the data waveform. In addition, Manchester encoding ensures that in a long data sequence, the number of 1s and the number of 0s are roughly equal, thus avoiding long-term DC bias and achieving DC balance. Since there is a level transition in the middle of each bit of data, this transition helps the receiving end detect the signal and reduce noise interference, and has strong anti-interference ability. Based on the above characteristics, Manchester encoding is suitable for long-line transmission.

[0096] In step S520, different IO output pins are selected according to the encoded data to send data. Since Manchester encoding uses the transition edge to represent high and low levels, from the perspective of frequency, the signal after Manchester encoding has two frequencies. Considering that the attenuation of signals with different frequencies is different after long-line transmission, if only 1 IO is used to send the signal, it is impossible to equalize signals with different frequencies separately. Then, when the signal reaches the receiving end after long-line transmission, the high-frequency signal attenuates too much, while the low-frequency signal attenuates less, and it is possible that the high-frequency signal is covered by the low-frequency signal, which will result in the loss of high-frequency data and data transmission errors. Therefore, the method of using 1 IO to send cannot achieve long-distance transmission. Based on this, as Figure 5 shown, Figure 5 is a sending schematic diagram. This patent uses two IOs to transmit the encoded signal. Combined with the subsequent equalization circuit, it can ensure the normal transmission of data. The specific method is that when it is necessary to send a high-frequency signal (that is, the transition frequency of the signal is greater than the preset transition frequency threshold), set the IO for sending the low-frequency signal to a high-impedance state, and then send the current data by the IO for sending the high-frequency signal ( Figure 5during the T2 period). Similarly, when a low-frequency signal needs to be transmitted, the IO for transmitting the high-frequency signal is set to the high-impedance state, and then the data at this time is transmitted by the IO for transmitting the low-frequency signal ( Figure 5 during the T1 period). In this way, the data can be transmitted by two IOs. To clearly illustrate this method, a specific embodiment is proposed. Assume that the original user data to be transmitted is binary 110111101, and the data after Manchester encoding is binary 010110010101011001. Analyzing the encoded data, it can be found that only 4 cases will occur in the encoded data: 01, 10, 0011, and 1100, and there will not be a situation where 3 or more consecutive long '0's or long '1's like the original data. This is a characteristic of Manchester encoding. No matter what data is encoded, there are only these 4 cases. From the perspective of frequency, these 4 cases only have two frequencies. 01 and 10 change once per cycle, belonging to the high-frequency case, while 0011 and 1100 change once every two cycles, and the frequency is half of the high-frequency case, belonging to the low-frequency case. The following waveform can be combined Figure 1 , T1 belongs to the low-frequency case, and T2 belongs to the high-frequency case. In this patent, two IOs are used to transmit the encoded data. Therefore, the encoded data needs to be decomposed. The control module 101 can judge whether the data to be transmitted belongs to high-frequency or low-frequency data according to the transmitted data. If low-frequency data needs to be transmitted, IO1 is set to the high-impedance state (the shaded part, otherwise it will affect the data transmitted by IO2), and then IO2 is used to transmit the low-frequency data. Similarly, the same operation is required when high-frequency data needs to be transmitted. As Figure 6 shown, Figure 6 is a schematic diagram after equalization. After the data passes through the equalization circuit and the isolation circuit, it is re-superimposed at point e, and the data logically the same as that after Manchester encoding is restored, but the waveform has been adjusted by different equalization circuits to solve the problem of different attenuation of high-frequency and low-frequency signals during long-line transmission.

[0097] In this method, ordinary IOs are used for data transmission and reception, without the need to use additional bus chips, and a two-wire transmission line can be used to complete long-distance data transmission. On the one hand, the complexity of the circuit is simplified and the hardware cost is reduced. On the other hand, this circuit solution can be applied to all types of controllers, with flexible application; in addition, the method of using two IOs to transmit the data after Manchester encoding plus the equalization circuit effectively increases the data transmission distance and transmission speed, and the applicable scenarios are more extensive.

[0098] Embodiment 4

[0099] The embodiment of the present invention also provides a storage medium, on which computer instructions are stored, and when the instructions are executed by a processor, the control method of any of the above embodiments is implemented.

[0100] Those skilled in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps including the above method embodiments; and the foregoing storage medium includes: removable storage devices, random access memory (RAM), read-only memory (ROM), magnetic disks, or optical discs and other various media that can store program codes.

[0101] Alternatively, if the above integrated unit of the present invention is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiments of the present invention, in essence, or the part that contributes to the related technology can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, a terminal, or a network device, etc.) to execute all or part of the methods of the various embodiments of the present invention. And the foregoing storage medium includes: removable storage devices, RAM, ROM, magnetic disks, or optical discs and other various media that can store program codes.

[0102] Corresponding to the above computer storage medium, in one embodiment, a computer device is further provided. The computer device includes a memory, an encoder, and a computer program stored on the memory and executable on the encoder. Wherein, when the encoder executes the program, it implements any one of the control methods in the above embodiments.

[0103] For the above computer device, ordinary I / O is used for data sending and receiving, without the need to use an additional bus chip, and a two-wire transmission line can be used to complete long-distance data transmission. On the one hand, the complexity of the circuit is simplified and the hardware cost is reduced. On the other hand, this circuit solution can be applied to all types of controllers, with flexible application; in addition, the method of using two I / Os to send data after Manchester coding plus an equalization circuit effectively increases the data transmission distance and transmission speed, and can be applied to a wider range of scenarios.

[0104] The technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in this specification.

[0105] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, rather than limitations on the implementation manners of the present invention. For those of ordinary skill in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation manners here. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the claims of the present invention.

Claims

1. A transmitting circuit for long-distance data transmission, characterized in that, Comprising: A transmission circuit control module, configured to perform Manchester encoding on data to be transmitted, and send a signal to an equalization module through two output pins, namely IO1 and IO2, according to the encoded data; The equalization module includes resistors R1, R2, and R3. The first pin of R1 is connected to the IO1 output of the transmission circuit control module, and the second pin of R1 is connected to the first input terminal of the transmission circuit isolation protection module. The first pin of R2 is connected to the IO2 output of the transmission circuit control module, and the second pin of R2 is connected to the second input terminal of the transmission circuit isolation protection module. The first pin of R3 is connected to GND, and the second pin of R3 is connected to the second pin of R2; The transmission circuit isolation protection module is configured to convert the signal input by the equalization module into an AC signal and send it out through a communication line.

2. The transmitting circuit for long-distance data transmission according to claim 1, characterized in that, The transmission circuit isolation protection module includes capacitors C1 and C2. The first pin of C1 is connected to the first input terminal of the transmission circuit isolation protection module, and the second pin of C1 is connected to the communication line. The first pin of C2 is connected to the second input terminal of the transmission circuit isolation protection module, and the second pin of C2 is connected to the communication line.

3. The transmitting circuit for long-distance data transmission according to claim 2, wherein The capacitance values of C1 and C2 are between 500V / 1uF and 50V / 1uF.

4. A device for long-distance data transmission, characterized in that, Comprising: A transmission circuit and a reception circuit; The transmission circuit sends a signal to the reception circuit through a communication line; The said transmission circuit uses the transmission circuit described in any one of claims 1 - 3; The said reception circuit includes: a reception circuit isolation protection module, a signal amplification module, a limiting module, and a reception circuit control module; The reception circuit isolation protection module is configured to convert the received signal into an AC signal and send it to the signal amplification module; The signal amplification module is configured to re - amplify the amplitude of the received signal to an amplitude that can be normally recognized by the reception circuit control module; The limiting module is configured to receive the signal processed by the signal amplification module, limit the amplitude of the received signal to a preset range, and then transmit it to the reception circuit control module; The reception circuit control module is configured to perform decoding processing on the signal to be received.

5. The device for long-distance data transmission according to claim 4, characterized in that, Further comprising: A communication line; The said communication line is a wire connecting the transmission circuit and the reception circuit. The communication line is a two - wire system wire, where one wire is used to transmit data signals, and the other wire is used to connect the GND of the transmission end and the reception end, so that the transmission end and the reception end have a common reference GND.

6. A control method for a transmitting circuit of long-distance data transmission, the method being applied to the transmitting circuit of long-distance data transmission according to any one of claims 1-3, characterized in that, Including steps: Receiving user data; Performing Manchester encoding on the user data; Selecting corresponding IO output pins in the transmission circuit control module according to the encoded data to send out the signal; Wherein, the process of selecting corresponding IO output pins in the transmission circuit control module according to the encoded data to send out the signal includes: When the transition frequency of the data after Manchester encoding is greater than a preset transition frequency threshold, setting the first IO output pin to a high - impedance state, and sending the signal by the second IO output pin, where the transition frequency is the number of frequency modulations within every n preset cycles; When the transition frequency of the data after Manchester encoding is less than a preset transition frequency threshold, setting the second IO output pin to a high - impedance state, and sending the signal by the first IO output pin.

7. The control method of the transmitting circuit for long-distance data transmission according to claim 6, characterized in that The jump frequency is the number of frequency modulations within every preset two cycles.

8. A control method for a long-distance data transmission device, the method being applied to the sending circuit of the long-distance data transmission device according to any one of claims 4-5, characterized in that, It includes the steps of: Receiving user data; Performing Manchester encoding on the user data; Selecting a corresponding IO output pin in the sending circuit control module according to the encoded data to send out the signal; Among them, the process of selecting a corresponding IO output pin in the sending circuit control module according to the encoded data to send out the signal includes: When the jump frequency of the data after Manchester encoding is greater than a preset jump frequency threshold, setting the first IO output pin to a high-impedance state and sending out the signal by the second IO output pin, where the jump frequency is the number of frequency modulations within every preset n cycles; When the jump frequency of the data after Manchester encoding is less than the preset jump frequency threshold, setting the second IO output pin to a high-impedance state and sending out the signal by the first IO output pin.

9. The control method of the long-distance data transmission device according to claim 8, characterized in that, The jump frequency is the number of frequency modulations within every preset two cycles.

10. A computer device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the method described in any one of claims 6-9.

11. A chip, characterized in that, The chip includes the sending circuit for long-distance data transmission described in any one of claims 1-3.