Communication control device, method and multi-connection system of communication circuit

By performing level flip and invert modulation at the data transmitting and receiving ends of the communication circuit, the energy consumption increase caused by pull-up resistance in the communication circuit is solved, and the effect of reducing data transmission energy consumption is achieved.

CN113377700BActive Publication Date: 2025-02-14GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110564770.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-24
Publication Date
2025-02-14
Estimated Expiration
2041-05-24

AI Technical Summary

Technical Problem

In the communication circuit, the pull-up resistor is provided on the bus, energy consumption during data transmission increases.

Method used

By detecting the proportion of the number of high and low levels in the data frame at the data sending end, if the proportion is greater than the preset threshold, the level is flipped, and inverted modulation is performed on the data receiving end to reduce the total time of low level pulse width and reduce the Energy consumption.

Benefits of technology

It realizes that while ensuring normal communication, reduces the energy consumption of data transmission, reduces the power consumption flowing through the pull-up resistor, and reduces the power consumption of the overall system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113377700B_ABST
    Figure CN113377700B_ABST
Patent Text Reader

Abstract

The present invention discloses a communication control device, method and multi-connection system of a communication circuit, the device comprises: a first level modulation module, which is arranged on a bus and located between a data transmitting end and a pull-up unit, configured to receive a data frame sent by the data transmitting end, perform a first level processing on the data frame sent by the data transmitting end, obtain a first data frame; and transmit the first data frame to a second level modulation module through the bus; a second level modulation module, which is arranged on the bus and located between the pull-up unit and a data receiving end, configured to receive the first data frame, perform a second level processing on the first data frame, obtain a second data frame; and transmit the second data frame to the data receiving end through the bus. This scheme can reduce the energy consumption of data transmission by controlling the level during data transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of communication control technology, and specifically relates to a communication control device, method and multi-connection system of a communication circuit, and more particularly to a communication circuit and method capable of achieving data transmission power reduction, and a multi-connection system having the communication circuit. Background Art

[0002] In communication circuits, data interaction is carried out through communication protocols. In order to increase the driving capability of the IO ports (i.e., input and output ports) of the master and slave devices, or to pull the bus to a high potential when the bus is idle, a pull-up resistor is added to the bus between the IO ports of the master and slave devices. However, during data transmission, the current always flows through the pull-up resistor during the low-level pulse width time, which consumes energy and increases the energy consumption of data transmission.

[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0004] The object of the present invention is to provide a communication control device, method and multi-connection system for a communication circuit, so as to solve the problem that a pull-up resistor is set on a bus between a data sending end and a data receiving end in a communication circuit, thereby increasing the energy consumption of data transmission, and to achieve the effect of reducing the energy consumption of data transmission by controlling the level during data transmission.

[0005] The present invention provides a communication control device for a communication circuit, wherein the communication circuit comprises: a bus arranged between a data transmitting end and a data receiving end, and a pull-up unit arranged between the bus and a direct current power supply; the communication control device for the communication circuit comprises: a first level modulation module and a second level modulation module; wherein the first level modulation module is arranged on the bus and located between the data transmitting end and the pull-up unit, and is configured to receive a data frame sent by the data transmitting end, perform a first level processing on the data frame sent by the data transmitting end, and obtain a first data frame; and transmit the first data frame to the second level modulation module through the bus; the second level modulation module is arranged on the bus and located between the pull-up unit and the data receiving end, and is configured to receive the first data frame, perform a second level processing on the first data frame, and obtain a second data frame; and transmit the second data frame to the data receiving end through the bus.

[0006] In some embodiments, the first level modulation module includes: a first level detection meter, a first threshold comparator, a first level modulator and a first flag; wherein the first level modulation module performs a first level processing on the data frame sent by the data sending end to obtain a first data frame, including: the first level detection meter is configured to detect a low level proportion value in the data frame; the first threshold comparator is configured to compare the low level proportion value with a preset threshold value, and if the low level proportion value is greater than the preset threshold value, a level modulation signal is output; the level modulation signal is a signal that can control the level flipping of the data frame; the first level modulator is configured to compare the low level proportion value with a preset threshold value, and output a level modulation signal ...; the first level modulator is configured to compare the low level proportion value with a preset threshold value; the first level modulator is configured to compare the low level proportion value with a preset threshold value; the first level modulator is configured to compare the low level proportion value with a preset threshold value; the first level modulator is configured to compare the low level proportion value with a preset threshold value; the first level modulator is configured to compare the low level proportion value with a preset threshold value; the first level modulator is configured to compare the low level proportion value with a preset threshold value; the first level modulator is configured to compare the low level proportion value with a preset threshold The method is configured to control the data frame to perform level flipping according to the level modulation signal, and obtain a data frame after the data frame sent by the data sending end is flipped by the level flipping, which is recorded as the first data frame; the first flag bit device is configured to generate a data frame flag bit of the level flipping of the data frame when the level of the data frame is flipped, which is recorded as the first data frame flag bit; the first data frame flag bit indicates whether the level of the corresponding first data frame has been flipped; wherein, the first data frame is transmitted to the second level modulation module through the bus, including: transmitting the first data frame and the first data frame flag bit to the second level modulation module through the bus.

[0007] In some embodiments, the preset threshold includes: a dynamic threshold; the dynamic threshold can be dynamically set according to the resistance of the pull-up unit, the size of the DC power supply, the low level proportion of the data frame, and at least one of the first level modulation module and the second level modulation module.

[0008] In some embodiments, the second level modulation module includes: a second flag device and a second level modulator; wherein the second level modulation module performs second level processing on the first data frame to obtain a second data frame, including: the second flag device is configured to detect the flag of the first data frame, and if the flag of the first data frame is a low level, it is determined that the first data frame is a data frame sent by the data sending end after level flipping; the second level modulator is configured to control the first data frame to perform level flipping when the first data frame is a data frame sent by the data sending end after level flipping, and obtain a data frame after the first data frame is flipped by the level, which is recorded as the second data frame; the level of the second data frame is the same as the level of the data sent by the data sending end.

[0009] In some implementations, the level modulator in the first level modulator and the second level modulator includes: a first switch tube and a second switch tube; the first switch tube and the second switch tube are push-pull tubes formed by mirror connection.

[0010] In some embodiments, the bus includes: a first cable and a second cable; the pull-up unit includes: a first pull-up module and a second pull-up module; the first pull-up module is arranged between the first cable and the DC power supply; the second pull-up module is arranged between the second cable and the DC power supply.

[0011] Matching the above-mentioned device, the present invention further provides a multi-connection system, including: a communication control device of the communication circuit mentioned above.

[0012] Matching the above-mentioned device, the present invention provides a communication control method for a communication circuit on another aspect, wherein the communication circuit comprises: a bus arranged between a data sending end and a data receiving end, and a pull-up unit arranged between the bus and a DC power supply; the communication control method for the communication circuit comprises: receiving a data frame sent by the data sending end through a first level modulation module, performing a first level processing on the data frame sent by the data sending end to obtain a first data frame; and transmitting the first data frame to the second level modulation module through the bus; receiving the first data frame through a second level modulation module, performing a second level processing on the first data frame to obtain a second data frame; and transmitting the second data frame to the data receiving end through the bus.

[0013] In some embodiments, the first level modulation module includes: a first level detection meter, a first threshold comparator, a first level modulator and a first flag; wherein, the first level modulation module performs first level processing on the data frame sent by the data transmitting end to obtain the first data frame, including: detecting the low level proportion value in the data frame by the first level detection meter; comparing the low level proportion value with a preset threshold value by the first threshold comparator, and outputting a level modulation signal if the low level proportion value is greater than the preset threshold; the level modulation signal is a signal that can control the level flipping of the data frame; and outputting a level modulation signal based on the first level modulator. According to the level modulation signal, the data frame is controlled to perform level flipping, and a data frame after the level flipping of the data frame sent by the data sending end is obtained, which is recorded as the first data frame; through the first flag device, when the level of the data frame is flipped, a data frame flag of the level flipping of the data frame is generated, which is recorded as the first data frame flag; the first data frame flag indicates whether the level of the corresponding first data frame has been flipped; wherein, the first data frame is transmitted to the second level modulation module through the bus, including: through the bus, the first data frame and the first data frame flag are transmitted to the second level modulation module together.

[0014] In some embodiments, the preset threshold includes: a dynamic threshold; the dynamic threshold can be dynamically set according to the resistance of the pull-up unit, the size of the DC power supply, the low level proportion of the data frame, and at least one of the first level modulation module and the second level modulation module.

[0015] In some embodiments, the second level modulation module includes: a second flag device and a second level modulator; wherein, the second level processing is performed on the first data frame through the second level modulation module to obtain a second data frame, including: detecting the first data frame flag through the second flag device, and if the first data frame flag is a low level, determining that the first data frame is a data frame sent by the data sending end after level flipping; through the second level modulator, in the case that the first data frame is a data frame sent by the data sending end after level flipping, controlling the first data frame to perform level flipping to obtain a data frame after the first data frame is flipped, which is recorded as a second data frame; the level of the second data frame is the same as the level of the data sent by the data sending end.

[0016] Therefore, the scheme of the present invention detects the ratio of the number of high and low levels in the data frame sent by the data sending end, and flips the level of the data frame sent by the data sending end when the ratio of the number of low levels is greater than a preset threshold value, and then reverses the flipped data frame at the data receiving end to ensure normal communication between the data sending end and the data receiving end, and also reduces the energy consumption when transmitting data frames between the data sending end and the data receiving end; from the device, by controlling the level during data transmission, the energy consumption of data transmission can be reduced.

[0017] Other features and advantages of the present invention will be set forth in the following description, and in part will become apparent from the device description, or may be learned by practicing the present invention.

[0018] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 A schematic structural diagram of an embodiment of a communication control device for a communication circuit of the present invention;

[0020] Figure 2 It is a schematic diagram of the structure of the pull-up resistor on the communication bus;

[0021] Figure 3 A schematic diagram of the current transmission path of the pull-up resistor on the communication bus during data transmission;

[0022] Figure 4 A schematic diagram of the structure of an embodiment of a communication circuit used in a data transmission power reduction method of the present invention;

[0023] Figure 5 for Figure 4 A schematic diagram of the internal structure of an embodiment of a level modulation module in FIG.

[0024] Figure 6 A flow chart of an embodiment of a communication control method for a communication circuit of the present invention;

[0025] Figure 7 A schematic diagram of a flow chart of an embodiment of performing first level processing on a data frame sent by the data sending end in the method of the present invention;

[0026] Figure 8 The figure is a flow chart of an embodiment of performing second level processing on the first data frame in the method of the present invention. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the specific embodiments of the present invention and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0028] According to an embodiment of the present invention, a communication control device for a communication circuit is provided. Figure 1 The structure diagram of an embodiment of the device of the present invention is shown. The communication circuit includes: a bus arranged between a data transmitting end and a data receiving end, and a pull-up unit arranged between the bus and a DC power supply. The communication control device of the communication circuit includes: a first level modulation module and a second level modulation module.

[0029] Among them, the first level modulation module is set on the bus and located between the data sending end and the pull-up unit, and is configured to receive the data frame sent by the data sending end, perform first level processing on the data frame sent by the data sending end to obtain a first data frame; and transmit the first data frame to the second level modulation module through the bus.

[0030] In some embodiments, the first level modulation module includes: a first level detection meter, a first threshold comparator, a first level modulator and a first flag. The first pin of the first level detection meter receives data, the second pin of the first level detection meter is connected to the first pin of the first threshold comparator, and the third pin of the first level detection meter is connected to the first pin of the first level modulator. The second pin of the first threshold comparator is connected to the second pin of the first level modulator. The third pin of the first level modulator is connected to the first pin of the first flag, and the fourth pin of the first level modulator outputs data. The second pin of the first flag outputs data.

[0031] The first level modulation module performs first level processing on the data frame sent by the data sending end to obtain a first data frame, including:

[0032] The first level detection meter is configured to detect a low level ratio value in the data frame.

[0033] For example: the Master device sends a data frame. The first level modulation module receives the data frame sent by the Master device, and the level detection meter inside the first level modulation module detects the number of high and low levels in the data frame: when the detected level amplitude is greater than 0.75VDD, it is considered a high level, and the number of high levels m is calculated. When the detected level amplitude is lower than 0.1VDD, it is considered a low level, and the number of low levels n is calculated. Then a low level ratio a=n / (n+m) is calculated, that is, the number of low levels divided by the total number of levels.

[0034] The first threshold comparator is configured to compare the low level proportion value with a preset threshold value, and output a level modulation signal if the low level proportion value is greater than the preset threshold value. The level modulation signal is a signal that can control the level flip of the data frame. Of course, if the low level proportion value is less than or equal to the preset threshold value, there is no need to output a level modulation signal.

[0035] For example: the calculated low level proportion value a passes through a threshold comparator. When the low level proportion value a is compared with the preset threshold, if the low level proportion value a is greater than the preset threshold, the level modulator in the first level modulation module will flip the level modulation of the data frame sent by the Master device.

[0036] The first level modulator is configured to control the data frame to perform level flipping according to the level modulation signal, and obtain the data frame after the level flipping of the data frame sent by the data transmitting end, which is recorded as the first data frame. Specifically, when the low level proportion value obtained by detection is greater than the preset threshold, the level flipping of the data frame is controlled, and the data frame after the level flipping is obtained, which is recorded as the first data frame. The first data frame is transmitted to the second level modulation module via the bus. Of course, when the low level proportion value obtained by detection is less than or equal to the preset threshold, it is not necessary to control the level flipping of the data frame, and the data frame without the level flipping is transmitted to the second level modulation module via the bus at the original level.

[0037] For example, the level modulator in the first level modulation module will reverse the level modulation of the data frame sent by the Master device: from the original logic high level "1" to the logic low level "0", and from the original logic low level "0" to the logic high level "1" for modulation. Otherwise, the level of the data frame will not be reversed.

[0038] The first flag bit device is configured to generate a data frame flag bit of the data frame level flipping when the level of the data frame flips, which is recorded as the first data frame flag bit. The first data frame flag bit indicates whether the level of the corresponding first data frame has flipped. For example, while the level is modulated, the data flag bit device in the first level modulation module is also modulated accordingly.

[0039] The transmitting the first data frame to the second level modulation module through the bus includes: transmitting the first data frame and the first data frame flag bit to the second level modulation module through the bus.

[0040] For example, when the first level modulation module sends the modulated data frame to the second level modulation module through the bus, the first level modulation module also sends the data frame flag to the second level modulation module through the bus. The data frame flag level corresponds to the data frame flipping situation. If the data frame flag is set low, it means that the data frame corresponding to the data frame flag has flipped. Otherwise, the data frame has not flipped.

[0041] In some implementations, the preset threshold includes a dynamic threshold that can be dynamically set according to the resistance of the pull-up unit, the size of the DC power supply, the low level ratio of the data frame, and at least one of the first level modulation module and the second level modulation module.

[0042] Specifically, the threshold comparator detects the resistance of the pull-up resistor RP, the size of the power supply VDD, the low level ratio of a data frame, the power consumption of the newly added module, etc., and calculates a suitable threshold as the preset threshold. The preset threshold is a dynamically changing threshold. The energy saving of the bus is greater than the added energy of the newly added module, reducing the overall power consumption.

[0043] The second level modulation module is arranged on the bus and is located between the pull-up unit and the data receiving end, and is configured to receive the first data frame, perform second level processing on the first data frame to obtain a second data frame; and transmit the second data frame to the data receiving end through the bus.

[0044] Therefore, by flipping the level, the high level in the data frame is always kept in the majority, which can shorten the total low level pulse width time. The slave device can reduce the energy consumption of the bus and the overall power consumption while ensuring normal communication.

[0045] In some embodiments, the second level modulation module includes: a second flag device and a second level modulator. Of course, the second level modulation module can also include: a second level detection meter and a second threshold comparator. The first pin of the second level detection meter receives data, the second pin of the second level detection meter is connected to the first pin of the second threshold comparator, and the third pin of the second level detection meter is connected to the first pin of the second level modulator. The second pin of the second threshold comparator is connected to the second pin of the second level modulator. The third pin of the second level modulator is connected to the first pin of the second flag device, and the fourth pin of the second level modulator outputs data. The second pin of the second flag device outputs data.

[0046] The second level modulation module performs second level processing on the first data frame to obtain a second data frame, including:

[0047] The second flag bit device is configured to detect the first data frame flag bit, and if the first data frame flag bit is at a low level, it is determined that the first data frame is a data frame sent by the data sending end after level inversion. Of course, if the first data frame flag bit is at a high level, it is determined that the first data frame is a data frame sent by the data sending end.

[0048] The second level modulator is configured to control the first data frame to perform level flipping when the first data frame is a data frame sent by the data sending end after level flipping, so as to obtain a data frame after the first data frame is level flipped, which is recorded as a second data frame. The level of the second data frame is the same as the level of the data sent by the data sending end.

[0049] For example: the second level modulation module receives the data frame and data frame flag sent by the first level modulation module. The second level modulation module first checks the high and low levels of the data frame flag, and reverses the flipped data frame for modulation, while the unflipped data frame does not need to be reversed. The second level modulation module sends the reversed modulated data frame to the Slave device. The Slave device receives a data frame consistent with the original data. Thus, in addition to ensuring normal data communication between the Master device and the Slave device, the number of low levels transmitted on the bus is reduced, and the total time flowing through the pull-up resistor from the slave device is reduced, thereby reducing the power consumption on the bus. Among them, the Master device, as a master device, can actively send and receive data. The Slave device, as a slave device, can passively send and receive data.

[0050] In some embodiments, the level modulator in the first level modulator and the second level modulator includes: a first switch tube and a second switch tube. The first switch tube and the second switch tube are push-pull tubes formed by mirror connection. For example: the level modulator modulates the level, including: a push-pull tube formed by mirror connection of two triodes, which can modulate a high level into a low level, or modulate a low level into a high level.

[0051] In some embodiments, the bus includes: a first cable (such as a cable for data 1) and a second cable (such as a cable for data 2). The pull-up unit includes: a first pull-up module and a second pull-up module. A first pull-up module (such as a pull-up resistor RP1) is provided between the first cable and the DC power supply. A second pull-up module (such as a pull-up resistor RP2) is provided between the second cable and the DC power supply.

[0052] Therefore, when the proportion of the high and low levels in the data frame is greater than a preset threshold value, the level will be flipped at the data sending end (such as the master device end), the total low-level pulse width time will be reduced, and the power consumption flowing through the pull-up resistor will be reduced. At the data receiving end (such as the slave device end), the data flag level is checked to determine whether to reverse the modulation, thereby ensuring that the received data is consistent with the original data and reducing the power consumption of data transmission.

[0053] After a large number of experimental verifications, the technical solution of the present invention is adopted, by detecting the proportion of the number of high and low levels in the data frame sent by the data sending end, when the proportion of the number of low levels is greater than the preset threshold, the data frame sent by the data sending end is level-flipped, and the data receiving end performs reverse flip modulation on the level-flipped data frame, thereby ensuring normal communication between the data sending end and the data receiving end, and reducing the energy consumption when transmitting data frames between the data sending end and the data receiving end. From the device, by controlling the level during data transmission, the energy consumption of data transmission can be reduced.

[0054] According to an embodiment of the present invention, a multi-connection system corresponding to a communication control device of a communication circuit is also provided. The multi-connection system may include: the communication control device of the communication circuit described above. The multi-connection system includes: a master device and a slave device.

[0055] Figure 2 Figure 1 is a schematic diagram of the structure of the pull-up resistor on the communication bus. Figure 2As shown, in the communication circuit, a pull-up module, such as a pull-up resistor RP1 and a pull-up resistor RP2, is provided between the bus between the data transmitting end (such as the master device Master) and the data receiving end (such as the slave device Slave) and the DC power supply VDD. One cable in the bus is used as a transmission cable for data 1, and is connected to the DC power supply VDD through the pull-up resistor RP1. Another cable in the bus is used as a transmission cable for data 2, and is connected to the DC power supply VDD through the pull-up resistor RP2. The pull-up resistors RP1 and RP2 hinder the current, and energy is consumed when the current flows.

[0056] Figure 3 The figure is a schematic diagram of the current transmission path of the pull-up resistor on the communication bus during data transmission. Figure 3 As shown, when the high level signal (such as logic 1) in data 1 passes through the pull-up resistor RP1, no current flows through the pull-up resistor RP1; when the low level signal (such as logic 0) in data 2 passes through the pull-up resistor RP2, current flows through the pull-up resistor RP2.

[0057] Taking into account Figure 2 and Figure 3 In the communication circuit shown, when data is transmitted on a communication bus with a pull-up resistor, the current always flows through the pull-up resistor during the low-level pulse width time and consumes energy from the device. As long as there is data transmission, there will be a continuous flow of energy consumption. In related schemes, in order to reduce the energy consumption of bus data transmission between master and slave devices, a suitable pull-up resistor value is selected to reduce the current consumption of each part of the circuit, thereby reducing the overall power consumption from the device. However, in selecting a suitable pull-up resistor, on the one hand, different pull-up resistors need to be selected for different needs, which is cumbersome in operation; on the other hand, after selecting a suitable pull-up resistor, energy for data transmission will still be consumed.

[0058] In some embodiments, the solution of the present invention provides a data transmission power reduction method and a communication circuit.

[0059] Specifically, the scheme of the present invention detects that the proportion of the number of high and low levels in the data frame is greater than a preset threshold value at the data sending end (such as the master device end), and the level will be flipped, thereby reducing the total time of the low-level pulse width and reducing the power consumption flowing through the pull-up resistor. The data receiving end (such as the slave device end) checks the data flag level and performs reverse flip modulation to ensure that the received data is consistent with the original data, while reducing the power consumption of data transmission.

[0060] Combine the following Figure 4 and Figure 5 The examples shown are used to illustrate the specific implementation process of the solution of the present invention.

[0061] Figure 4FIG. 1 is a schematic diagram of a structure of a communication circuit used in a data transmission power reduction method according to an embodiment of the present invention, and FIG. Figure 2 Compared with the previous one, a level modulation module is newly added. Figure 4 As shown, in the communication circuit, a pull-up module, such as a pull-up resistor RP1 and a pull-up resistor RP2, is provided between the bus between the data transmitting end (such as the master device Master) and the data receiving end (such as the slave device Slave) and the DC power supply VDD. One cable in the bus is used as a transmission cable for data 1, and is connected to the DC power supply VDD through the first level modulation module and the pull-up resistor RP1. Another cable in the bus is used as a transmission cable for data 2, and is connected to the DC power supply VDD through the second level modulation module and the pull-up resistor RP2. The first level modulation module and the second level modulation module can check the level, perform calculation comparison, and modulate the level.

[0062] Among them, on the input side of the first level modulation module, the first connection end of the master device is connected to the first input end of the first level modulation module via the cable of data 1, and the second connection end of the master device is connected to the second input end of the first level modulation module via the cable of data 2. On the output side of the first level modulation module, the cable of data flag 1 of the first level modulation module is connected to the second level modulation module, the cable of data 1 of the first level modulation module is connected to the second level modulation module, the cable of data 2 of the first level modulation module is connected to the second level modulation module, and the cable of data flag 2 of the first level modulation module is connected to the second level modulation module. The cable of data 1 is connected to the DC power supply VDD through the pull-up resistor RP1, and the cable of data 2 is connected to the DC power supply VDD through the pull-up resistor RP2.

[0063] On the input side of the second level modulation module, the data flag 1 of the second level modulation module is connected to the first level modulation module, the cable of the data 1 of the second level modulation module is connected to the first level modulation module, the cable of the data 2 of the second level modulation module is connected to the first level modulation module, and the cable of the data flag 2 of the second level modulation module is connected to the first level modulation module. On the output side of the second level modulation module, the first output end of the second level modulation module is connected to the first connection end of the slave device via the cable of the data 1, and the second output end of the second level modulation module is connected to the second connection end of the slave device via the cable of the data 2.

[0064] Figure 5 for Figure 4 Schematic diagram of the internal structure of an embodiment of the level modulation module in FIG. Figure 5 As shown, the level modulation module in the first level modulation module and the second level modulation module includes: a level detection meter, a flag device, a threshold comparator and a level modulator. The level detection meter is connected to the threshold comparator and the level modulator respectively, and the level modulator is connected to the flag device.

[0065] Specifically, the first pin of the level detection meter receives data, the second pin of the level detection meter is connected to the first pin of the threshold comparator, and at the same time, the third pin of the level detection meter is connected to the first pin of the level modulator; the second pin of the threshold comparator is connected to the second pin of the level modulator; the third pin of the level modulator is connected to the first pin of the flag bit, the fourth pin of the level modulator outputs data; the second pin of the flag bit outputs data.

[0066] For example, the model of the level detector may be MD7036, the model of the flag bit detector may be ADC12038CIWM, the model of the threshold value detector may be LM211D, and the model of the level modulator may be MC1596.

[0067] See also Figure 4 and Figure 5 In the example shown, the solution of the present invention provides a communication circuit capable of realizing data transmission power reduction, and the process of realizing data transmission power reduction includes:

[0068] Step 1: The Master device sends a data frame.

[0069] Step 2: When the first level modulation module receives the data frame sent by the Master device, the level detection meter inside the first level modulation module detects the number of high and low levels in the data frame: when the detected level amplitude is greater than 0.75VDD, it is regarded as a high level, and the number of high levels m is calculated; when the detected level amplitude is lower than 0.1VDD, it is regarded as a low level, and the number of low levels n is calculated; then a low level ratio a=n / (n+m) is calculated, that is, the number of low levels divided by the total number of levels.

[0070] Step 3: The low level proportion value a calculated in step 2 passes through a threshold comparator. When the low level proportion value a is compared with the preset threshold, if the low level proportion value a is greater than the preset threshold, the level modulator in the first level modulation module will flip the level modulation of the data frame sent by the Master device: from the original logic high level "1" to the logic low level "0", and from the original logic low level "0" to the logic high level "1" for modulation. Otherwise, the level of the data frame will not be flipped; while the level modulation is in progress, the data flag bit in the first level modulation module is also modulated accordingly.

[0071] When the data flag detects that the level modulation module has a level modulation action, the signal level also changes accordingly. If the data frame is flipped, the flag signal level is set to a logic low level "0"; if the data frame is not flipped, the flag signal level is set to a logic high level "1"; and the signal is sent to the second level modulation module through the bus. The second level modulation module uses this to determine whether the data frame is flipped and whether it needs to be reversed.

[0072] In step 3, the determination of the preset threshold value includes: the threshold comparator detects the resistance of the pull-up resistor RP, the size of the power supply VDD, the low level ratio of a data frame, the power consumption of the newly added module when working, etc., and sets a suitable threshold value as the preset threshold value. Assuming that a frame of data has 1000 bits, the pulse width time tw = 20us, the pull-up power supply U = 5V, the pull-up resistor R = 10KΩ, and the preset threshold value: 70%; according to the power consumption formula: P = (U*U / R)*tw*a = 0.035mw. When the low level ratio a is greater than the set threshold, the level is flipped, and the energy consumed P = (U*U / R)*tw*(1-a) = 0.015mw. According to the example, 0.02mw is saved. When a large amount of data flows through, the reduced power consumption is considerable. If the average working power consumption of the newly added module is 1W, the power consumption can be reduced when the data volume is greater than 50K frames. The preset threshold value is a dynamically changing threshold value. The energy saving of the bus is made greater than the added energy of the newly added module, thus reducing the overall power consumption.

[0073] Step 4: The first level modulation module sends the modulated data frame to the second level modulation module through the bus, and at the same time, the first level modulation module also sends the data frame flag to the second level modulation module through the bus. The data frame flag level corresponds to the data frame flipping situation. If the data frame flag is set low, it means that the data frame corresponding to the data frame flag has flipped. Otherwise, the data frame has not flipped. The bus includes a data transmission line and a data flag line. The cable between the Master device and the first level modulation module does not belong to the bus.

[0074] Step 5: The second level modulation module receives the data frame and data frame flag sent by the first level modulation module. The second level modulation module first checks the high and low levels of the data frame flag, and reverses the flipped data frame for modulation. The non-flipped data frame does not need to be reversed.

[0075] Step 6: The second level modulation module sends the demodulated data frame to the slave device. The slave device receives the data frame consistent with the original data.

[0076] The level modulator modulates the level, including: a push-pull tube formed by two triodes connected in a mirror image, which can modulate a high level into a low level, or modulate a low level into a high level.

[0077] Through steps 1 to 6, in addition to ensuring normal data communication between the Master device and the Slave device, the number of low-level signals transmitted on the bus is reduced, and the total time flowing through the pull-up resistor is reduced from the slave device, thereby reducing power consumption on the bus. Among them, the Master device, as the main device, can actively send and receive data. The Slave device, as the slave device, can passively send and receive data.

[0078] Since the processing and functions implemented by the multi-link system of this embodiment are basically corresponding to the aforementioned Figure 1 The embodiments, principles and examples of the device shown are as follows. Therefore, for matters not fully described in the description of this embodiment, reference can be made to the relevant descriptions in the aforementioned embodiments, and no further elaboration will be given here.

[0079] After a large number of experimental verifications, the technical solution of the present invention is adopted, by detecting the proportion of the number of high and low levels in the data frame sent by the data sending end, the level of the data frame sent by the data sending end is flipped when the proportion of the number of low levels is greater than a preset threshold, and the data frame that has been level-flipped is reversely modulated at the data receiving end, thereby ensuring normal communication between the data sending end and the data receiving end, and reducing the energy consumption when transmitting data frames between the data sending end and the data receiving end, and shortening the total low-level pulse width time. From the device, it is possible to reduce the energy consumption of the bus and reduce the overall power consumption while ensuring normal communication.

[0080] According to an embodiment of the present invention, a communication control method for a communication circuit corresponding to a multi-connection system is also provided. Figure 6 The flow chart of an embodiment of the method of the present invention is shown. The communication circuit comprises: a bus arranged between a data transmitting end and a data receiving end, and a pull-up unit arranged between the bus and a DC power supply. The communication control method of the communication circuit comprises: step S110 and step S120.

[0081] In step S110, a data frame sent by the data sending end is received through a first level modulation module, and a first level processing is performed on the data frame sent by the data sending end to obtain a first data frame; and the first data frame is transmitted to the second level modulation module through the bus. The first level modulation module is arranged on the bus and is located between the data sending end and the pull-up unit.

[0082] In some embodiments, the first level modulation module includes: a first level detection meter, a first threshold comparator, a first level modulator and a first flag. The first pin of the first level detection meter receives data, the second pin of the first level detection meter is connected to the first pin of the first threshold comparator, and the third pin of the first level detection meter is connected to the first pin of the first level modulator. The second pin of the first threshold comparator is connected to the second pin of the first level modulator. The third pin of the first level modulator is connected to the first pin of the first flag, and the fourth pin of the first level modulator outputs data. The second pin of the first flag outputs data.

[0083] In step S110, the first level modulation module performs the first level processing on the data frame sent by the data sending end to obtain the first data frame. For the specific process, please refer to the following exemplary description.

[0084] Combine the following Figure 7 The flowchart of an embodiment of performing first level processing on the data frame sent by the data sending end in the method of the present invention further illustrates the specific process of performing first level processing on the data frame sent by the data sending end in step S110, including: steps S210 to S240.

[0085] Step S210: Detecting a low level ratio in the data frame by using a first level detection meter.

[0086] For example: the Master device sends a data frame. The first level modulation module receives the data frame sent by the Master device, and the level detection meter inside the first level modulation module detects the number of high and low levels in the data frame: when the detected level amplitude is greater than 0.75VDD, it is considered a high level, and the number of high levels m is calculated. When the detected level amplitude is lower than 0.1VDD, it is considered a low level, and the number of low levels n is calculated. Then a low level ratio a=n / (n+m) is calculated, that is, the number of low levels divided by the total number of levels.

[0087] Step S220, compare the low level proportion value with a preset threshold value through a first threshold comparator, and output a level modulation signal if the low level proportion value is greater than the preset threshold value. The level modulation signal is a signal that can control the level flip of the data frame. Of course, if the low level proportion value is less than or equal to the preset threshold value, there is no need to output a level modulation signal.

[0088] For example: the calculated low level proportion value a passes through a threshold comparator. When the low level proportion value a is compared with the preset threshold, if the low level proportion value a is greater than the preset threshold, the level modulator in the first level modulation module will flip the level modulation of the data frame sent by the Master device.

[0089] Step S230, through the first level modulator, according to the level modulation signal, the data frame is controlled to perform level flipping, and the data frame sent by the data transmitting end is obtained after the level flipping, which is recorded as the first data frame. Specifically, when the low level proportion value obtained by detection is greater than the preset threshold value, the level flipping of the data frame is controlled, and the data frame after the level flipping is obtained, which is recorded as the first data frame. The first data frame is transmitted to the second level modulation module via the bus. Of course, when the low level proportion value obtained by detection is less than or equal to the preset threshold value, it is not necessary to control the level flipping of the data frame, and the data frame without the level flipping is transmitted to the second level modulation module via the bus at the original level.

[0090] For example, the level modulator in the first level modulation module will reverse the level modulation of the data frame sent by the Master device: from the original logic high level "1" to the logic low level "0", and from the original logic low level "0" to the logic high level "1" for modulation. Otherwise, the level of the data frame will not be reversed.

[0091] Step S240, through the first flag bit device, when the level of the data frame is flipped, a data frame flag bit of the level flip of the data frame is generated, which is recorded as the first data frame flag bit. The first data frame flag bit indicates whether the level of the corresponding first data frame has been flipped. For example: while the level is modulated, the data flag bit device in the first level modulation module is also modulated accordingly.

[0092] The transmitting the first data frame to the second level modulation module through the bus includes: transmitting the first data frame and the first data frame flag bit to the second level modulation module through the bus.

[0093] For example, when the first level modulation module sends the modulated data frame to the second level modulation module through the bus, the first level modulation module also sends the data frame flag to the second level modulation module through the bus. The data frame flag level corresponds to the data frame flipping situation. If the data frame flag is set low, it means that the data frame corresponding to the data frame flag has flipped. Otherwise, the data frame has not flipped.

[0094] In some implementations, the preset threshold includes a dynamic threshold that can be dynamically set according to the resistance of the pull-up unit, the size of the DC power supply, the low level ratio of the data frame, and at least one of the first level modulation module and the second level modulation module.

[0095] Specifically, the threshold comparator detects the resistance of the pull-up resistor RP, the size of the power supply VDD, the low level ratio of a data frame, the power consumption of the newly added module, etc., and calculates a suitable threshold as the preset threshold. The preset threshold is a dynamically changing threshold. The energy saving of the bus is greater than the added energy of the newly added module, reducing the overall power consumption.

[0096] In step S120, the first data frame is received through a second level modulation module, and the first data frame is subjected to second level processing to obtain a second data frame; and the second data frame is transmitted to the data receiving end through the bus. The second level modulation module is arranged on the bus and is located between the pull-up unit and the data receiving end.

[0097] Therefore, by flipping the level, the high level in the data frame is always kept in the majority, which can shorten the total low level pulse width time. The slave device can reduce the energy consumption of the bus and the overall power consumption while ensuring normal communication.

[0098] In some embodiments, the second level modulation module includes: a second flag device and a second level modulator. Of course, the second level modulation module can also include: a second level detection meter and a second threshold comparator. The first pin of the second level detection meter receives data, the second pin of the second level detection meter is connected to the first pin of the second threshold comparator, and the third pin of the second level detection meter is connected to the first pin of the second level modulator. The second pin of the second threshold comparator is connected to the second pin of the second level modulator. The third pin of the second level modulator is connected to the first pin of the second flag device, and the fourth pin of the second level modulator outputs data. The second pin of the second flag device outputs data.

[0099] For the specific process of performing second-level processing on the first data frame by a second-level modulation module in step S120 to obtain the second data frame, please refer to the following exemplary description.

[0100] Combine the following Figure 8 The flowchart of an embodiment of performing second level processing on the first data frame in the method of the present invention further illustrates the specific process of performing second level processing on the first data frame in step S120, including: step S310 and step S320.

[0101] Step S310, detecting the first data frame flag by the second flag device, if the first data frame flag is at a low level, determining that the first data frame is a data frame sent by the data sending end after level inversion. Of course, if the first data frame flag is at a high level, determining that the first data frame is a data frame sent by the data sending end.

[0102] Step S320, through a second level modulator, when the first data frame is a data frame sent by the data transmitting end and is obtained by level flipping, the first data frame is controlled to perform level flipping, so as to obtain a data frame after the first data frame is level flipped, which is recorded as a second data frame. The level of the second data frame is the same as the level of the data sent by the data transmitting end.

[0103] For example: the second level modulation module receives the data frame and data frame flag sent by the first level modulation module. The second level modulation module first checks the high and low levels of the data frame flag, and reverses the flipped data frame for modulation, while the unflipped data frame does not need to be reversed. The second level modulation module sends the reversed modulated data frame to the Slave device. The Slave device receives a data frame consistent with the original data. Thus, in addition to ensuring normal data communication between the Master device and the Slave device, the number of low levels transmitted on the bus is reduced, and the total time flowing through the pull-up resistor from the slave device is reduced, thereby reducing the power consumption on the bus. Among them, the Master device, as a master device, can actively send and receive data. The Slave device, as a slave device, can passively send and receive data.

[0104] Since the processing and functions implemented by the method of this embodiment basically correspond to the embodiments, principles and examples of the communication control device of the aforementioned communication circuit, for the details not exhaustive in the description of this embodiment, please refer to the relevant descriptions in the aforementioned embodiments and will not be repeated here.

[0105] After a large number of experimental verifications, the technical solution of this embodiment is adopted. By detecting the proportion of the number of high and low levels in the data frame sent by the data sending end, the data frame sent by the data sending end is level-flipped when the proportion of the number of low levels is greater than a preset threshold value, and the data frame that has been level-flipped is reverse-flipped and modulated at the data receiving end, thereby ensuring normal communication between the data sending end and the data receiving end, and reducing the energy consumption when transmitting data frames between the data sending end and the data receiving end, ensuring that the received data is consistent with the original data, and reducing the power consumption of data transmission.

[0106] In summary, it is easy for those skilled in the art to understand that, under the premise of no conflict, the above-mentioned advantageous methods can be freely combined and superimposed.

[0107] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention shall be included in the scope of the claims of the present invention.

Claims

1. A communication control device for a communication circuit, characterized in that: The communication circuit comprises: a bus arranged between a data transmitting end and a data receiving end, and a pull-up unit arranged between the bus and a DC power supply; the communication control device of the communication circuit comprises: a first level modulation module and a second level modulation module; wherein, The first level modulation module is arranged on the bus and located between the data transmitting end and the pull-up unit, and is configured to receive a data frame sent by the data transmitting end, perform a first level processing on the data frame sent by the data transmitting end, and obtain a first data frame; and transmit the first data frame to the second level modulation module through the bus; The second level modulation module is arranged on the bus and located between the pull-up unit and the data receiving end, and is configured to receive the first data frame, perform second level processing on the first data frame to obtain a second data frame; and transmit the second data frame to the data receiving end through the bus; The first level modulation module includes: a first level detection meter, a first threshold comparator, a first level modulator and a first flag; wherein, The first level modulation module performs first level processing on the data frame sent by the data sending end to obtain a first data frame, including: The first level detection meter is configured to detect a low level ratio value in the data frame; The first threshold comparator is configured to compare the low level ratio with a preset threshold, and output a level modulation signal if the low level ratio is greater than the preset threshold; the level modulation signal is a signal capable of controlling the level flipping of the data frame; The first level modulator is configured to control the data frame to perform level flipping according to the level modulation signal, and obtain a data frame after the data frame sent by the data transmitting end is level flipped, which is recorded as a first data frame; The first flag bit device is configured to generate a data frame flag bit indicating the level of the data frame is flipped when the level of the data frame is flipped, which is recorded as a first data frame flag bit; the first data frame flag bit indicates whether the level of the first data frame corresponding to it has been flipped; The transmitting the first data frame to the second level modulation module through the bus includes: transmitting the first data frame and the first data frame flag bit to the second level modulation module through the bus.

2. The communication control device for a communication circuit according to claim 1, characterized in that: The preset threshold includes: a dynamic threshold; the dynamic threshold can be dynamically set according to the resistance of the pull-up unit, the size of the DC power supply, the low level proportion of the data frame, and at least one of the first level modulation module and the second level modulation module.

3. The communication control device for a communication circuit according to claim 1, characterized in that: The second level modulation module includes: a second flag bit device and a second level modulator; wherein, The second level modulation module performs second level processing on the first data frame to obtain a second data frame, including: The second flag device is configured to detect the first data frame flag, and if the first data frame flag is at a low level, determine that the first data frame is obtained by flipping the level of the data frame sent by the data sending end; The second level modulator is configured to control the first data frame to perform level flipping when the first data frame is obtained by level flipping the data frame sent by the data sending end, so as to obtain a data frame obtained by level flipping the first data frame, which is recorded as a second data frame; the level of the second data frame is the same as the level of the data sent by the data sending end.

4. The communication control device for a communication circuit according to claim 3, characterized in that: The level modulator in the first level modulator and the second level modulator comprises: a first switch tube and a second switch tube; the first switch tube and the second switch tube are push-pull tubes formed by mirror connection.

5. The communication control device for a communication circuit according to any one of claims 1 to 4, characterized in that: The bus includes: a first cable and a second cable; the pull-up unit includes: a first pull-up module and a second pull-up module; A first pull-up module is provided between the first cable and the DC power supply; and a second pull-up module is provided between the second cable and the DC power supply.

6. A multi-link system, characterized in that: include: A communication control device for a communication circuit according to any one of claims 1 to 5.

7. A communication control method for a communication circuit, characterized in that: The communication circuit comprises: a bus arranged between a data transmitting end and a data receiving end, and a pull-up unit arranged between the bus and a DC power supply; the communication control method of the communication circuit comprises: Receiving the data frame sent by the data sending end through the first level modulation module, performing first level processing on the data frame sent by the data sending end to obtain a first data frame; and transmitting the first data frame to the second level modulation module through the bus; receiving the first data frame through a second level modulation module, performing second level processing on the first data frame to obtain a second data frame; and transmitting the second data frame to the data receiving end through the bus; The first level modulation module includes: a first level detection meter, a first threshold comparator, a first level modulator and a first flag; wherein, The first level modulation module performs first level processing on the data frame sent by the data sending end to obtain a first data frame, including: Detecting a low level proportion value in the data frame by a first level detection meter; By using a first threshold comparator, the low level proportion value is compared with a preset threshold value, and if the low level proportion value is greater than the preset threshold value, a level modulation signal is output; the level modulation signal is a signal capable of controlling the level flipping of the data frame; By means of a first level modulator, according to the level modulation signal, the data frame is controlled to perform level flipping, so as to obtain a data frame after the level flipping of the data frame sent by the data transmitting end, which is recorded as a first data frame; By means of a first flag bit device, when the level of the data frame is flipped, a data frame flag bit indicating the flipped level of the data frame is generated, which is recorded as a first data frame flag bit; the first data frame flag bit indicates whether the level of the corresponding first data frame has been flipped; The transmitting the first data frame to the second level modulation module through the bus includes: transmitting the first data frame and the first data frame flag bit to the second level modulation module through the bus.

8. The communication control method of a communication circuit according to claim 7, characterized in that: The preset threshold includes: a dynamic threshold; the dynamic threshold can be dynamically set according to the resistance of the pull-up unit, the size of the DC power supply, the low level proportion of the data frame, and at least one of the first level modulation module and the second level modulation module.

9. The communication control method of a communication circuit according to claim 7 or 8, characterized in that: The second level modulation module includes: a second flag bit device and a second level modulator; wherein, The first data frame is subjected to second level processing by a second level modulation module to obtain a second data frame, including: Detecting the first data frame flag by a second flag device, and if the first data frame flag is at a low level, determining that the first data frame is obtained by flipping the level of the data frame sent by the data sending end; Through the second level modulator, when the first data frame is obtained by level flipping the data frame sent by the data sending end, the first data frame is controlled to perform level flipping to obtain a data frame after the first data frame is level flipped, which is recorded as a second data frame; the level of the second data frame is the same as the level of the data sent by the data sending end.

Citation Information

Patent Citations

  • Low-power-consumption data transmission method, sending end and receiving end

    CN108259131A

  • Communication control device of communication circuit and multi-split system

    CN214846704U