CN113411102A - Data transmission method, device and system - Google Patents

Data transmission method, device and system Download PDF

Info

Publication number
CN113411102A
CN113411102A CN202110704475.9A CN202110704475A CN113411102A CN 113411102 A CN113411102 A CN 113411102A CN 202110704475 A CN202110704475 A CN 202110704475A CN 113411102 A CN113411102 A CN 113411102A
Authority
CN
China
Prior art keywords
signal
data
data signal
response
level ratio
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.)
Granted
Application number
CN202110704475.9A
Other languages
Chinese (zh)
Other versions
CN113411102B (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202110704475.9A priority Critical patent/CN113411102B/en
Publication of CN113411102A publication Critical patent/CN113411102A/en
Application granted granted Critical
Publication of CN113411102B publication Critical patent/CN113411102B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/54Systems for transmission via power distribution lines
    • H04B3/544Setting up communications; Call and signalling arrangements
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/88Electrical aspects, e.g. circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node

Abstract

The disclosure provides a data transmission method, a data transmission device and a data transmission system, and relates to the field of electronic circuits. The data transmission method comprises the steps of counting a high level ratio and a low level ratio of a first data signal; judging whether the low level ratio of the first data signal is larger than the high level ratio; if the low level ratio of the first data signal is larger than the high level ratio, performing level inversion processing on the first data signal to obtain a second data signal, and sending the second data signal out through the first communication unit; if the low level ratio of the first data signal is not more than the high level ratio, the first data signal is sent out through the first communication unit; the signal transmission pin of the first communication unit is provided with a pull-up resistor. The low level ratio of the signal transmitted on the communication line is always not more than the high level ratio, thereby reducing the power consumption generated by the pull-up resistor of the signal transmission pin.

Description

Data transmission method, device and system
Technical Field
The present disclosure relates to the field of electronic circuits, and in particular, to a data transmission method, apparatus, and system.
Background
In a Universal Asynchronous Receiver/Transmitter (UART) communication line, pull-up resistors are provided for both the Transmitter pin and the Receiver pin.
The inventor has found that when the level on the communication line is low, the pull-up resistor generates a large power consumption, and when the level on the communication line is high, the pull-up resistor does not generate that large power consumption, and therefore, when the device transmits a signal, the power consumption generated by the pull-up resistor of the corresponding transmitting pin or receiving pin is larger in the case where the low level of the signal transmitted on the communication line is larger.
Disclosure of Invention
One technical problem to be solved by the embodiments of the present disclosure is: when signals are transmitted on the communication line, the power consumption generated by the pull-up resistor of the signal transmission pin (the signal sending pin or the signal receiving pin) is reduced.
In the embodiment of the present disclosure, for the sender: counting the high level ratio and the low level ratio of a signal to be transmitted, if the low level ratio is greater than the high level ratio, carrying out level inversion processing on the signal to be transmitted and then transmitting the signal to be transmitted, and if the low level ratio is not greater than the high level ratio, transmitting the signal to be transmitted; for the receiving party, whether the received signal is subjected to level reversal processing of the opposite end is judged, if so, the received signal is analyzed after the level reversal processing, and if not, the received signal is analyzed. The low level occupation ratio of the signals transmitted on the communication line is always not more than the high level occupation ratio, so that the power consumption generated by the pull-up resistor of the signal transmission pin (the signal sending pin or the signal receiving pin) is reduced.
Some embodiments of the present disclosure provide a data transmission method, including:
counting a high level ratio and a low level ratio of the first data signal;
judging whether the low level ratio of the first data signal is larger than the high level ratio;
if the low level ratio of the first data signal is larger than the high level ratio, performing level inversion processing on the first data signal to obtain a second data signal, and sending the second data signal out through the first communication unit;
if the low level ratio of the first data signal is not more than the high level ratio, the first data signal is sent out through the first communication unit;
the signal transmission pin of the first communication unit is provided with a pull-up resistor.
In some embodiments, the first data signal comprises a header signal and a traffic data signal; the step of performing level inversion processing on the first data signal to obtain a second data signal includes: and carrying out level turnover processing on both the head code signal and the service data signal of the first data signal to obtain a second data signal.
In some embodiments, further comprising:
receiving a response signal returned by the opposite terminal through the first communication unit;
judging whether the received response signal is a first response signal or a second response signal according to a head code signal of the response signal, wherein the second response signal is obtained by carrying out level inversion processing on the first response signal by an opposite terminal under the condition that the low level ratio of the first response signal is greater than the high level ratio;
if the received response signal is a second response signal, carrying out level turnover processing on the second response signal to obtain a first response signal, and analyzing the processed first response signal;
if the received reply signal is the first reply signal, the received first reply signal is parsed.
In some embodiments, determining whether the received reply signal is the first reply signal or the second reply signal based on the header signal of the reply signal comprises:
judging whether a head code signal of the response signal is a first head code signal or a second head code signal, wherein the second head code signal is obtained by carrying out level inversion processing on the first head code signal;
if the header signal of the reply signal is the first header signal, the received reply signal is the first reply signal;
if the header signal of the reply signal is the second header signal, the received reply signal is the second reply signal.
In some embodiments, the first communication unit uses a communication method using a UART interface to a UART.
Some embodiments of the present disclosure provide a data transmission method, including:
receiving a data signal sent by an opposite terminal through a second communication unit, wherein a signal transmission pin of the second communication unit is provided with a pull-up resistor;
judging whether the received data signal is a first data signal or a second data signal according to a head code signal of the data signal, wherein the second data signal is obtained by carrying out level inversion processing on the first data signal by an opposite terminal under the condition that the low level ratio of the first data signal is greater than the high level ratio;
if the received data signal is a second data signal, carrying out level turnover processing on the second data signal to obtain a first data signal, and analyzing the processed first data signal;
if the received data signal is a first data signal, the received first data signal is parsed.
In some embodiments, determining whether the received data signal is the first data signal or the second data signal based on the header signal of the data signal comprises:
judging whether a head code signal of the data signal is a first head code signal or a second head code signal, wherein the second head code signal is obtained by carrying out level inversion processing on the first head code signal;
if the header signal of the data signal is the first header signal, the received data signal is the first data signal;
if the header signal of the data signal is the second header signal, the received data signal is the second data signal.
In some embodiments, further comprising:
counting a high level ratio and a low level ratio of a first response signal of a first data signal;
judging whether the low level ratio of the first response signal is greater than the high level ratio;
if the low level ratio of the first response signal is larger than the high level ratio, performing level turnover processing on the first response signal to obtain a second response signal, and sending the second response signal out through a second communication unit;
and if the low level occupation ratio of the first response signal is not more than the high level occupation ratio, the first response signal is sent out through the second communication unit.
In some embodiments, the first reply signal comprises a header signal and a reply data signal; the step of performing level inversion processing on the first response signal to obtain a second response signal includes: and carrying out level turnover processing on the head code signal and the response data signal of the first response signal to obtain a second response signal.
In some embodiments, the second communication unit uses a communication method using a UART interface to a UART.
Some embodiments of the present disclosure provide a first data transmission apparatus, including: a first communication unit; a first memory; and a first processor coupled to the first memory, the first processor configured to execute the data transmission method of the embodiments based on the first communication unit according to instructions stored in the first memory.
Some embodiments of the present disclosure provide a second data transmission apparatus, including: a second communication unit; a second memory; and a second processor coupled to the second memory, the second processor configured to perform the data transmission method of various embodiments based on the second communication unit according to instructions stored in the second memory.
Some embodiments of the present disclosure provide a data transmission system, including: a first data transmission device; and a second data transmission device.
In some embodiments, the data transmission system is an air conditioning system, and the first data transmission device and the second data transmission device are an indoor unit and an outdoor unit of the air conditioning system, respectively.
Some embodiments of the present disclosure propose a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the data transmission method of the embodiments.
Drawings
The drawings that will be used in the description of the embodiments or the related art will be briefly described below. The present disclosure will be more clearly understood from the following detailed description, which proceeds with reference to the accompanying drawings,
it is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without undue inventive faculty.
Fig. 1 is a schematic diagram of a communication unit and a pull-up resistor according to some embodiments of the present disclosure.
Fig. 2 is a schematic diagram of a data transmission system and a data transmission device thereof according to some embodiments of the disclosure.
Fig. 3 is a schematic diagram of a data transmission method (data signal transmission process) according to some embodiments of the present disclosure.
Fig. 4 is a schematic diagram of a data transmission method (acknowledgement signal sending process) according to some embodiments of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure.
Unless otherwise specified, "first", "second", and the like in the present disclosure are described to distinguish different objects, and are not intended to mean size, timing, or the like.
Fig. 1 is a schematic diagram of a communication unit and a pull-up resistor according to some embodiments of the present disclosure.
As shown in fig. 1, "+ 5V" indicates an input voltage of the communication unit, and the input voltage of the communication unit (such as the first communication unit 211, the second communication unit 221, and the like mentioned later) is generally +5V, but may be other values; TXD denotes a signal transmitting pin, RXD denotes a signal receiving pin; r1 and R2 represent pull-up resistors, R1 is the pull-up resistor of the signal receiving pin RXD, and R2 is the pull-up resistor of the signal transmitting pin TXD; the communication unit can adopt any communication mode using a UART interface, such as zero-fire line communication, 485 communication and the like, and in addition, the communication mode can be direct communication or non-direct communication.
Fig. 2 is a schematic diagram of a data transmission system and a data transmission device thereof according to some embodiments of the disclosure.
As shown in fig. 2, the data transmission system 200 includes: a first data transmission device 210, and a second data transmission device 220.
As shown in fig. 2, the first data transmission device 210 includes: a first communication unit 211, a first memory 212, and a first processor 213. The first communication unit 211 may use a communication method using a UART interface, such as a zero-fire line communication and a 485 communication. The first processor 213 is communicatively connected to the first communication unit 211, wherein the first processor 213 is connected to the signal transmitting pin TXD _1 of the first communication unit 211 and is connected to the signal receiving pin RXD _1 of the first communication unit 211. As previously described, the signal transmitting pin TXD _1 and the signal receiving pin RXD _1 are each provided with a pull-up resistor (not shown in fig. 2). The first processor 213 is coupled to the first memory 212. The first processor 213 is configured to execute the data transmission method (described later in detail) of each embodiment based on the first communication unit 211 according to instructions stored in the first memory 212. For example, counting a high level ratio and a low level ratio of the first data signal; judging whether the low level ratio of the first data signal is larger than the high level ratio; if the low level ratio of the first data signal is larger than the high level ratio, performing level inversion processing on the first data signal to obtain a second data signal, and sending the second data signal out through the first communication unit; and if the low level duty ratio of the first data signal is not more than the high level duty ratio, the first data signal is sent out through the first communication unit, wherein a signal transmission pin of the first communication unit is provided with a pull-up resistor. For another example, a response signal returned by the opposite terminal is received through the first communication unit; judging whether the received response signal is a first response signal or a second response signal according to a head code signal of the response signal, wherein the second response signal is obtained by carrying out level inversion processing on the first response signal by an opposite terminal under the condition that the low level ratio of the first response signal is greater than the high level ratio; if the received response signal is a second response signal, carrying out level turnover processing on the second response signal to obtain a first response signal, and analyzing the processed first response signal; if the received reply signal is the first reply signal, the received first reply signal is parsed.
As shown in fig. 2, the second data transmission device 210 includes: a second communication unit 221, a second memory 222, and a second processor 223. The second communication unit 221 may use a communication method using a UART interface, such as a zero-fire line communication and a 485 communication. The second processor 223 is communicatively connected to the second communication unit 221, wherein the second processor 223 is connected to the signal transmitting pin TXD _2 of the second communication unit 221 and connected to the signal receiving pin RXD _2 of the second communication unit 221. As previously described, the signal transmitting pin TXD _2 and the signal receiving pin RXD _2 are each provided with a pull-up resistor (not shown in fig. 2). The second processor 223 is coupled to the second memory 222. The second processor 223 is configured to execute the data transmission method (described later in detail) of the embodiments based on the second communication unit 221 according to instructions stored in the second memory 222. For example, a data signal sent by an opposite terminal is received through a second communication unit, wherein a signal transmission pin of the second communication unit is provided with a pull-up resistor; judging whether the received data signal is a first data signal or a second data signal according to a head code signal of the data signal, wherein the second data signal is obtained by carrying out level inversion processing on the first data signal by an opposite terminal under the condition that the low level ratio of the first data signal is greater than the high level ratio; if the received data signal is a second data signal, carrying out level turnover processing on the second data signal to obtain a first data signal, and analyzing the processed first data signal; if the received data signal is a first data signal, the received first data signal is parsed. For another example, for a first response signal of the first data signal, a high level duty ratio and a low level duty ratio of the first response signal are counted; judging whether the low level ratio of the first response signal is greater than the high level ratio; if the low level ratio of the first response signal is larger than the high level ratio, performing level turnover processing on the first response signal to obtain a second response signal, and sending the second response signal out through a second communication unit; and if the low level occupation ratio of the first response signal is not more than the high level occupation ratio, the first response signal is sent out through the second communication unit.
The first memory 212 and the second memory 222 may include, for example, a system memory, a fixed nonvolatile storage medium, and the like. The system memory stores, for example, an operating system, an application program, a Boot Loader (Boot Loader), and other programs.
In some embodiments, the data transmission system 200 is an air conditioning system or other household appliance system. When the data transmission system 200 is an air conditioning system, the first data transmission device 210 and the second data transmission device 220 are an indoor unit and an outdoor unit of the air conditioning system, respectively. The indoor unit and the outdoor unit of the air conditioning system perform data transmission by using the data transmission method in the embodiment of the disclosure.
A data transmission method according to an embodiment of the present disclosure is described below with reference to fig. 3 and 4 based on fig. 2.
Fig. 3 is a schematic diagram of a data transmission method (data signal transmission process) according to some embodiments of the present disclosure.
As shown in fig. 3, the data transmission method (data signal transmission process) includes: steps S310-S380.
The first data transmission device 210 performs steps S310-S340.
In step S310, the first processor 213 counts a high level ratio and a low level ratio of the first data signal.
In step S320, the first processor 213 determines whether the low level ratio of the first data signal is greater than the high level ratio.
In step S330, if the low level ratio of the first data signal is greater than the high level ratio, the first processor 213 performs level inversion processing on the first data signal to obtain a second data signal.
The first data signal comprises a head code signal and a service data signal, and the head code signal and the service data signal of the first data signal are subjected to level inversion processing to obtain a second data signal. The "level inversion processing" refers to high-low level inversion processing, that is, inverting the low level in the original signal to a high level and inverting the high level in the original signal to a low level.
The header signal is fixed information in the transmission signal for identifying whether the transmission signal is subjected to level inversion processing. For example, if the original header signal is 7E (0111111001111110), if the header signal in the transmission signal is 7E, it indicates that the entire transmission signal is not level-reversed, and if the header signal in the transmission signal is 8181 (1000000110000001), it indicates that the header signal is level-reversed, and it indicates that the entire transmission signal is level-reversed.
In step S340, the first processor 213 sends the data signal through the first communication unit 211. If the low level ratio of the first data signal is greater than the high level ratio, the second data signal is transmitted through the first communication unit 211; if the low level ratio of the first data signal is not greater than the high level ratio, the first data signal is transmitted through the first communication unit 211. As described above, the signal transmission pins (the signal transmission pin TXD _1 and the signal reception pin RXD _1) of the first communication unit 211 are provided with pull-up resistors.
The second data transmission device 220 performs steps S350-S380.
In step S350, the second processor 223 receives the data signal transmitted by the opposite end (i.e. the first data transmission device 210) through the second communication unit 221. As described above, the signal transmission pins (the signal transmission pin TXD _2 and the signal reception pin RXD _2) of the second communication unit 221 are provided with pull-up resistors.
In step S360, the second processor 223 determines whether the received data signal is the first data signal or the second data signal according to the header signal of the data signal, that is, determines whether the received data signal is a signal subjected to level inversion processing. And the second data signal is obtained by carrying out level inversion processing on the first data signal by the opposite terminal under the condition that the low-level ratio of the first data signal is greater than the high-level ratio.
Determining whether the received data signal is the first data signal or the second data signal according to a header signal of the data signal includes: judging whether a head code signal of the data signal is a first head code signal or a second head code signal, wherein the second head code signal is obtained by carrying out level inversion processing on the first head code signal; if the head code signal of the data signal is the first head code signal, the received data signal is the first data signal which is not subjected to the level inversion processing; if the header signal of the data signal is the second header signal, the received data signal is the second data signal subjected to the level inversion processing.
In step S370, if the received data signal is the second data signal, the second processor 223 performs a level inversion process on the second data signal to obtain the first data signal.
In step S380, the second processor 223 performs data parsing, wherein if the received data signal is a second data signal, the processed first data signal is parsed; if the received data signal is a first data signal, the received first data signal is parsed.
In the above embodiment, for the sender: counting the high level ratio and the low level ratio of a signal to be transmitted, if the low level ratio is greater than the high level ratio, carrying out level inversion processing on the signal to be transmitted and then transmitting the signal to be transmitted, and if the low level ratio is not greater than the high level ratio, transmitting the signal to be transmitted; for the receiving party, whether the received signal is subjected to level reversal processing of the opposite end is judged, if so, the received signal is analyzed after the level reversal processing, and if not, the received signal is analyzed. The low level occupation ratio of the signals transmitted on the communication line is always not more than the high level occupation ratio, so that the power consumption generated by the pull-up resistor of the signal transmission pin (the signal sending pin or the signal receiving pin) is reduced. And the problem can be solved through software without adding other circuits.
Fig. 4 is a schematic diagram of a data transmission method (acknowledgement signal sending process) according to some embodiments of the present disclosure.
As shown in fig. 4, the data transmission method (reply signal transmission process) includes: steps 410-S480.
The second data transmission device 220 performs steps S410-S440.
In step S410, the second processor 223 counts a high level ratio and a low level ratio of the first reply signal with respect to the first reply signal of the first data signal.
In step S420, the second processor 223 determines whether the low level ratio of the first response signal is greater than the high level ratio.
In step S430, if the low level ratio of the first response signal is greater than the high level ratio, the second processor 223 performs level inversion processing on the first response signal to obtain a second response signal.
The first response signal comprises a head code signal and a response data signal, and the head code signal and the response data signal of the first response signal are subjected to level inversion processing to obtain a second response signal.
In step S440, the second processor 223 transmits the response signal through the second communication unit 221. If the low level ratio of the first response signal is greater than the high level ratio, the second response signal is sent out through the second communication unit 221; if the low level occupancy of the first response signal is not greater than the high level occupancy, the first response signal is transmitted through the second communication unit 221. As described above, the signal transmission pins (the signal transmission pin TXD _2 and the signal reception pin RXD _2) of the second communication unit 221 are provided with pull-up resistors.
The first data transfer device 210 performs steps S450-S480.
In step S450, the first processor 213 receives the response signal returned from the peer end through the first communication unit 211. As described above, the signal transmission pins (the signal transmission pin TXD _1 and the signal reception pin RXD _1) of the first communication unit 211 are provided with pull-up resistors.
In step S460, the first processor 213 determines whether the received response signal is the first response signal or the second response signal according to the header signal of the response signal, that is, determines whether the received response signal is a signal subjected to level inversion processing. The second response signal is obtained by the opposite terminal (i.e. the second data transmission device 220) performing level inversion processing on the first response signal when the low level ratio of the first response signal is greater than the high level ratio.
Judging whether the received reply signal is the first reply signal or the second reply signal according to the header signal of the reply signal comprises: judging whether a head code signal of the response signal is a first head code signal or a second head code signal, wherein the second head code signal is obtained by carrying out level inversion processing on the first head code signal; if the head code signal of the response signal is the first head code signal, the received response signal is the first response signal which is not subjected to the level inversion processing; if the head code signal of the answer signal is the second head code signal, the received answer signal is the second answer signal which is processed by level inversion.
In step S470, if the received response signal is the second response signal, the first processor 213 performs level-reversal processing on the second response signal to obtain the first response signal.
In step S480, the first processor 213 performs data parsing, wherein if the received answer signal is the second answer signal, the processed first answer signal is parsed; if the received reply signal is the first reply signal, the received first reply signal is parsed.
In the above embodiment, for the sender: counting the high level ratio and the low level ratio of the response signal, if the low level ratio is greater than the high level ratio, carrying out level turnover processing on the response signal and then sending out the response signal, and if the low level ratio is not greater than the high level ratio, sending out the response signal; for the receiving party, whether the received signal is subjected to level reversal processing of the opposite end is judged, if so, the received signal is analyzed after the level reversal processing, and if not, the received signal is analyzed. The low level occupation ratio of the signals transmitted on the communication line is always not more than the high level occupation ratio, so that the power consumption generated by the pull-up resistor of the signal transmission pin (the signal sending pin or the signal receiving pin) is reduced. And the problem can be solved through software without adding other circuits.
For easy understanding, the signal processing procedure (steps S310-330) of the first data transmission device 210 in fig. 3 is labeled as a in fig. 2, the signal processing procedure (steps S360-380) of the second data transmission device 220 in fig. 3 is labeled as b in fig. 2, and the communication procedure (steps S340, S350) between the first data transmission device 210 and the second data transmission device 220 in fig. 3 is labeled as S in fig. 2; the signal processing procedure (steps S410-430) of the second data transmission device 220 in fig. 4 is labeled as c in fig. 2, the signal processing procedure (steps S460-480) of the first data transmission device 210 in fig. 4 is labeled as d in fig. 2, and the communication procedure (steps S440, S450) between the first data transmission device 210 and the second data transmission device 220 in fig. 4 is also labeled as S in fig. 2.
When the data transmission system 200 is an air conditioning system, assuming that the first data transmission device 210 and the second data transmission device 220 are an indoor unit and an outdoor unit of the air conditioning system, respectively, signal transmission pins of a communication unit of the indoor unit and a communication unit of the outdoor unit are provided with pull-up resistors. The indoor unit and the outdoor unit of the air conditioning system perform data transmission using the data transmission method in the embodiment of the present disclosure as follows.
The process that the indoor unit sends the data signal to the outdoor unit comprises the following steps: the indoor unit counts the high level ratio and the low level ratio of a first data signal to be sent to the outdoor unit, judges whether the low level ratio of the first data signal is larger than the high level ratio, if the low level ratio of the first data signal is larger than the high level ratio, carries out level inversion processing on the first data signal to obtain a second data signal, sends the second data signal to the outdoor unit through a communication unit of the indoor unit, and directly sends the first data signal to the outdoor unit through the communication unit of the indoor unit if the low level ratio of the first data signal is not larger than the high level ratio; the outdoor unit receives a data signal sent by the indoor unit through a communication unit of the outdoor unit, judges whether the received data signal is a first data signal or a second data signal according to a head code signal of the data signal, namely judges whether the received data signal is a signal subjected to level inversion processing, if the received data signal is the second data signal, the second data signal is subjected to level inversion processing to obtain a first data signal, the first data signal obtained by processing is analyzed, and if the received data signal is the first data signal, the first data signal is directly analyzed.
The process that the outdoor unit returns the response signal to the indoor unit comprises the following steps: after the outdoor unit analyzes the first data signal, generating a first response signal aiming at the first data signal, counting the high level ratio and the low level ratio of the first response signal, judging whether the low level ratio of the first response signal is greater than the high level ratio, if the low level ratio of the first response signal is greater than the high level ratio, carrying out level turnover processing on the first response signal to obtain a second response signal, sending the second response signal to the indoor unit through a communication unit of the outdoor unit, and if the low level ratio of the first response signal is not greater than the high level ratio, directly sending the first response signal to the indoor unit through the communication unit of the outdoor unit; the indoor unit receives a response signal returned by the outdoor unit through a communication unit of the indoor unit, judges whether the received response signal is a first response signal or a second response signal according to a head code signal of the response signal, namely judges whether the received response signal is a signal subjected to level inversion processing, if the received response signal is the second response signal, carries out level inversion processing on the second response signal to obtain a first response signal, analyzes the processed first response signal, and if the received response signal is the first response signal, directly analyzes the received first response signal.
Some embodiments of the present disclosure propose a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the data transmission method of the embodiments.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable non-transitory storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only exemplary of the present disclosure and is not intended to limit the present disclosure, so that any modification, equivalent replacement, or improvement made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (15)

1. A method of data transmission, comprising:
counting a high level ratio and a low level ratio of the first data signal;
judging whether the low level ratio of the first data signal is larger than the high level ratio;
if the low level ratio of the first data signal is larger than the high level ratio, performing level inversion processing on the first data signal to obtain a second data signal, and sending the second data signal out through the first communication unit;
if the low level ratio of the first data signal is not more than the high level ratio, the first data signal is sent out through the first communication unit;
the signal transmission pin of the first communication unit is provided with a pull-up resistor.
2. The method of claim 1, wherein the first data signal comprises a header signal and a traffic data signal;
the step of performing level inversion processing on the first data signal to obtain a second data signal includes:
and carrying out level turnover processing on both the head code signal and the service data signal of the first data signal to obtain a second data signal.
3. The method of claim 1, further comprising:
receiving a response signal returned by the opposite terminal through the first communication unit;
judging whether the received response signal is a first response signal or a second response signal according to a head code signal of the response signal, wherein the second response signal is obtained by carrying out level inversion processing on the first response signal by an opposite terminal under the condition that the low level ratio of the first response signal is greater than the high level ratio;
if the received response signal is a second response signal, carrying out level turnover processing on the second response signal to obtain a first response signal, and analyzing the processed first response signal;
if the received reply signal is the first reply signal, the received first reply signal is parsed.
4. The method of claim 3, wherein determining whether the received reply signal is the first reply signal or the second reply signal based on the header signal of the reply signal comprises:
judging whether a head code signal of the response signal is a first head code signal or a second head code signal, wherein the second head code signal is obtained by carrying out level inversion processing on the first head code signal;
if the header signal of the reply signal is the first header signal, the received reply signal is the first reply signal;
if the header signal of the reply signal is the second header signal, the received reply signal is the second reply signal.
5. The method according to any of claims 1-4, wherein the first communication unit uses communication means using a UART interface to a UART.
6. A method of data transmission, comprising:
receiving a data signal sent by an opposite terminal through a second communication unit, wherein a signal transmission pin of the second communication unit is provided with a pull-up resistor;
judging whether the received data signal is a first data signal or a second data signal according to a head code signal of the data signal, wherein the second data signal is obtained by carrying out level inversion processing on the first data signal by an opposite terminal under the condition that the low level ratio of the first data signal is greater than the high level ratio;
if the received data signal is a second data signal, carrying out level turnover processing on the second data signal to obtain a first data signal, and analyzing the processed first data signal;
if the received data signal is a first data signal, the received first data signal is parsed.
7. The method of claim 6, wherein determining whether the received data signal is the first data signal or the second data signal based on the header signal of the data signal comprises:
judging whether a head code signal of the data signal is a first head code signal or a second head code signal, wherein the second head code signal is obtained by carrying out level inversion processing on the first head code signal;
if the header signal of the data signal is the first header signal, the received data signal is the first data signal;
if the header signal of the data signal is the second header signal, the received data signal is the second data signal.
8. The method of claim 6, further comprising:
counting a high level ratio and a low level ratio of a first response signal of a first data signal;
judging whether the low level ratio of the first response signal is greater than the high level ratio;
if the low level ratio of the first response signal is larger than the high level ratio, performing level turnover processing on the first response signal to obtain a second response signal, and sending the second response signal out through a second communication unit;
and if the low level occupation ratio of the first response signal is not more than the high level occupation ratio, the first response signal is sent out through the second communication unit.
9. The method of claim 8, wherein the first reply signal comprises a header signal and a reply data signal;
the step of performing level inversion processing on the first response signal to obtain a second response signal includes:
and carrying out level turnover processing on the head code signal and the response data signal of the first response signal to obtain a second response signal.
10. The method according to any of claims 6-9, wherein the second communication unit uses communication means using a UART interface to a UART.
11. A first data transmission apparatus, comprising:
a first communication unit;
a first memory; and
a first processor coupled to the first memory, the first processor configured to execute the data transmission method of any of claims 1-5 based on the first communication unit according to instructions stored in the first memory.
12. A second data transmission apparatus, comprising:
a second communication unit;
a second memory; and
a second processor coupled to the second memory, the second processor configured to perform the data transmission method of any of claims 6-10 based on the second communication unit according to instructions stored in the second memory.
13. A data transmission system, comprising:
the first data transmission device of claim 11; and
the second data transmission device of claim 12.
14. The data transmission system of claim 13,
the data transmission system is an air conditioning system,
the first data transmission device and the second data transmission device are an indoor unit and an outdoor unit of an air conditioning system respectively.
15. A non-transitory computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the data transmission method according to any one of claims 1 to 10.
CN202110704475.9A 2021-06-24 2021-06-24 Data transmission method, device and system and storage medium Active CN113411102B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110704475.9A CN113411102B (en) 2021-06-24 2021-06-24 Data transmission method, device and system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110704475.9A CN113411102B (en) 2021-06-24 2021-06-24 Data transmission method, device and system and storage medium

Publications (2)

Publication Number Publication Date
CN113411102A true CN113411102A (en) 2021-09-17
CN113411102B CN113411102B (en) 2022-05-03

Family

ID=77682962

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110704475.9A Active CN113411102B (en) 2021-06-24 2021-06-24 Data transmission method, device and system and storage medium

Country Status (1)

Country Link
CN (1) CN113411102B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114500125A (en) * 2022-01-21 2022-05-13 珠海格力电器股份有限公司 Power supply and communication assembly, system and communication equipment

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404556A (en) * 2008-10-24 2009-04-08 伊玛精密电子(苏州)有限公司 One-wire bus communication method
CN201391968Y (en) * 2009-03-26 2010-01-27 宁波海诚电器有限公司 Communicating circuit of central air-conditioner
US20100127570A1 (en) * 2008-11-26 2010-05-27 Tigo Energy, Inc. Systems and Methods for Using a Power Converter for Transmission of Data over the Power Feed
CN102447493A (en) * 2012-01-05 2012-05-09 金曙光 Communication method based on low-voltage power line, and communication device
CN103838700A (en) * 2014-02-20 2014-06-04 江苏理工学院 Level multiplexing control serial communication device and method
CN109192152A (en) * 2018-08-29 2019-01-11 努比亚技术有限公司 A kind of LCD control circuit and terminal
CN109511189A (en) * 2018-08-31 2019-03-22 浙江绍兴苏泊尔生活电器有限公司 Heating circuit, induction cooker and driving voltage adjusting method
CN110011886A (en) * 2018-06-10 2019-07-12 福州准点信息科技有限公司 A kind of household electric appliances control system
CN210327637U (en) * 2019-08-30 2020-04-14 青岛海信日立空调系统有限公司 Protocol conversion device for air conditioner and communication system
CN112448922A (en) * 2019-08-30 2021-03-05 青岛海信日立空调系统有限公司 Protocol conversion device for air conditioner, communication system and communication method
CN112669890A (en) * 2019-10-16 2021-04-16 长鑫存储技术有限公司 Output driving circuit and memory
EP3840223A1 (en) * 2019-12-16 2021-06-23 ams International AG Duty cycle correction circuit and applications thereof
CN113377700A (en) * 2021-05-24 2021-09-10 珠海格力电器股份有限公司 Communication control device and method of communication circuit and multi-split system

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404556A (en) * 2008-10-24 2009-04-08 伊玛精密电子(苏州)有限公司 One-wire bus communication method
US20100127570A1 (en) * 2008-11-26 2010-05-27 Tigo Energy, Inc. Systems and Methods for Using a Power Converter for Transmission of Data over the Power Feed
CN201391968Y (en) * 2009-03-26 2010-01-27 宁波海诚电器有限公司 Communicating circuit of central air-conditioner
CN102447493A (en) * 2012-01-05 2012-05-09 金曙光 Communication method based on low-voltage power line, and communication device
CN103838700A (en) * 2014-02-20 2014-06-04 江苏理工学院 Level multiplexing control serial communication device and method
CN110011886A (en) * 2018-06-10 2019-07-12 福州准点信息科技有限公司 A kind of household electric appliances control system
CN109192152A (en) * 2018-08-29 2019-01-11 努比亚技术有限公司 A kind of LCD control circuit and terminal
CN109511189A (en) * 2018-08-31 2019-03-22 浙江绍兴苏泊尔生活电器有限公司 Heating circuit, induction cooker and driving voltage adjusting method
CN210327637U (en) * 2019-08-30 2020-04-14 青岛海信日立空调系统有限公司 Protocol conversion device for air conditioner and communication system
CN112448922A (en) * 2019-08-30 2021-03-05 青岛海信日立空调系统有限公司 Protocol conversion device for air conditioner, communication system and communication method
CN112669890A (en) * 2019-10-16 2021-04-16 长鑫存储技术有限公司 Output driving circuit and memory
EP3840223A1 (en) * 2019-12-16 2021-06-23 ams International AG Duty cycle correction circuit and applications thereof
CN113377700A (en) * 2021-05-24 2021-09-10 珠海格力电器股份有限公司 Communication control device and method of communication circuit and multi-split system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
鲁文其等: "空调室内外机通信电路的分析与设计", 《电子测量技术》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114500125A (en) * 2022-01-21 2022-05-13 珠海格力电器股份有限公司 Power supply and communication assembly, system and communication equipment
CN114500125B (en) * 2022-01-21 2022-12-16 珠海格力电器股份有限公司 Power supply and communication assembly, system and communication equipment

Also Published As

Publication number Publication date
CN113411102B (en) 2022-05-03

Similar Documents

Publication Publication Date Title
CN113301568B (en) Network distribution method and device and intelligent household equipment
CN112817602B (en) JSON format data transmitting and receiving method, device and medium
CN113411102B (en) Data transmission method, device and system and storage medium
TWI408931B (en) Data communication device, communication control method, and program
CN111182503A (en) Intelligent vehicle insurance evaluation method and system based on multi-data fusion analysis
CN111352888A (en) Interrupt signal generating method and device for asynchronous transceiver
CN110912805B (en) Message reading state synchronization method, terminal, server and system
CN102056095B (en) Method, system and device for controlling short message transmitting flow rate
JP5961471B2 (en) Output comparison method in multiple information systems
CN112422485B (en) Communication method and device of transmission control protocol
CN112153427B (en) Method and equipment for transmitting multimedia data
CN114338270B (en) Data communication method, device, electronic equipment and storage medium
CN114337942A (en) Message retransmission method and device and electronic equipment
US7272194B1 (en) Method to transmit bits of data over a bus
CN112203359A (en) Upstream supply chain information transmission method and system for block chain system
CN101727314A (en) Data processing method and processor
CN114817113B (en) Method, system, equipment and storage medium for judging SDA data direction
CN108614786B (en) Channel management circuit based on message service type
CN110824343A (en) Detection method, device, equipment and medium of communication chip
KR101394598B1 (en) Method and system of speed trimming
CN111182606B (en) Relay transmission control method, device, terminal and medium based on wireless energy carrying
CN115208877B (en) File transmission method, device, equipment, medium and product
CN115379400B (en) Method and device for group short message receipt
CN102695284B (en) Processing method, equipment and system of downlink block data
CN113783769B (en) Method and device for transmitting message in automatic driving and relay equipment

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