Multi-main power supply communication system, method and device

By connecting the power module and the functional module in the bus communication system, charging before and during communication of the functional module is realized, the problem of simplicity and insufficient driving capability of the multi-main power supply communication system in the prior art is solved, and efficient power supply and communication between multiple functional modules is realized.

CN114793186BActive Publication Date: 2025-04-29舒继锋
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111513927.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-10
Publication Date
2025-04-29
Estimated Expiration
2041-12-10

AI Technical Summary

Technical Problem

The existing bus communication methods lack a streamlined multi-main power supply communication system, and the driving capacity is not strong, making it difficult to meet the control needs of power devices such as high current loads such as motors.

Method used

By connecting the bus of the power module and the functional module, the functional module can be charged through the power module before and during communication, and the two power cables are used to satisfy the multi-main power supply communication between multiple functional modules.

Benefits of technology

It solves the problem of lack of streamlined multi-main power supply communication system and weak driving capabilities in bus communication mode, realizes efficient power supply and communication between multiple functional modules, and improves the communication efficiency of the bus and the task processing capabilities of the host.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114793186B_ABST
    Figure CN114793186B_ABST
Patent Text Reader

Abstract

The present invention discloses a multi-main power supply communication system, method and device, the system includes a power module and at least one functional module, the power module and the at least one functional module are connected to each other through a bus, the power module sends charging data to the functional module through the bus, the functional module receives the charging data through the bus and performs a charging action; the power module performs a first sending action through the bus to send communication data to at least one functional module; the functional module performs a second sending action through the bus to send communication data to the power module or another functional module. The present invention realizes charging the functional module through the power module before and during communication by connecting the power module and the functional module bus, so as to realize multi-main power supply communication between multiple functional modules by using two power lines, and solves the technical problems of lack of a streamlined multi-main power supply communication system and weak driving capability in the current bus communication mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a multi-main power supply communication system, method and device. Background Art

[0002] The power bus is a bus that can communicate and supply power at the same time. It is the bus with the least physical communication lines (only two power lines). Common ones include 1-wire, mbus, and powerbus.

[0003] Among them, due to the pull-up resistor of 1-wire, if you want to increase the output current, you must reduce this resistor, but at the same time increase unnecessary communication power consumption. Moreover, this resistor is connected in series with the communication trunk line, and the current flowing through it is equal to the current consumption of the slave. If the slave is a high-current load such as a motor, the power consumption of this resistor is very large. Therefore, it is usually suitable for low-current power supply occasions.

[0004] mbus uses dual voltage to identify logic levels, but its bus power supply capacity and transmission distance are weaker than powerbus.

[0005] The powerbus is an advanced bus whose master station can provide a maximum current of 20A. However, it does not support multi-host communication and adopts a master-slave communication mode, which leads to low overall communication efficiency of the bus, too heavy tasks for the host, and the power supply current of the slave station is generally less than 1A (the diode of the slave station is one of the main reasons for the current limitation). This is too small for the control of power devices such as motors. The powerbus has voltage on the downstream and current on the upstream. Due to the need to detect the current, this inevitably leads to complex circuits of the master station. Therefore, how to provide a multi-master power supply communication with strong driving capability is a technical problem that needs to be solved urgently.

[0006] 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

[0007] The main purpose of the present invention is to provide a multi-master power supply communication system, method and device, aiming to solve the technical problems of the current bus communication mode, such as the lack of a streamlined multi-master power supply communication system and weak driving capability.

[0008] To achieve the above object, the present invention provides a multi-master power supply communication system, the multi-master power supply communication system comprising a power supply module and at least one functional module, the power supply module and the at least one functional module are interconnected via a bus; wherein:

[0009] The power module sends charging data to the functional module via the bus, and the functional module receives the charging data via the bus and performs a charging action;

[0010] The power module performs a first sending action through the bus to send communication data to at least one of the functional modules; the functional module performs a second sending action through the bus to send communication data to the power module or another functional module.

[0011] In addition, in order to achieve the above object, the present invention also provides a multi-master power supply communication method, which is used for the power supply module of the multi-master power supply communication system as described above, and the multi-master power supply communication method comprises the following steps:

[0012] When it is detected that the power module is powered on or the bus has no communication data, charging data is sent to the bus to charge at least one of the functional modules;

[0013] If it is detected that the bus transmits communication data, charging data is sent to the bus during a preset period of time during which the communication data is transmitted, so as to charge the functional module.

[0014] In addition, in order to achieve the above-mentioned object, the present invention also provides a multi-master power supply communication method, which is used for a power supply module or a functional module of the multi-master power supply communication system as described above, and the multi-master power supply communication method comprises the following steps:

[0015] When a first communication sending instruction is received, first communication data corresponding to the first communication sending instruction is sent to the bus;

[0016] If it is detected that the bus transmits second communication data, determining whether the priority corresponding to the second communication data is higher than the priority of the first communication data;

[0017] If yes, execute the sending waiting action until the second communication data transmission is completed, and return to execute the step of sending the first communication data corresponding to the communication sending instruction to the bus;

[0018] Determine whether the transmission of the second communication data is completed. If so, the sending end corresponding to the second communication data sends a low level to the bus. If no contention is detected, send a response request to the functional module corresponding to the receiving second communication data, so that the functional module sends response data to the bus according to the response request.

[0019] In addition, in order to achieve the above-mentioned object, the present invention further provides a multi-master power supply communication device, characterized in that the multi-master power supply communication device comprises:

[0020] A power supply module, the power supply module comprising a memory, a processor, and a multi-master power supply communication program stored in the memory and executable on the processor, wherein the multi-master power supply communication program implements the steps of the multi-master power supply communication method described above when executed by the processor;

[0021] A functional module, the functional module includes a memory, a processor, and a multi-master power supply communication program stored in the memory and executable on the processor, wherein the multi-master power supply communication program implements the steps of the multi-master power supply communication method as described above when executed by the processor.

[0022] The present invention realizes charging of the functional modules by the power module before and during communication by connecting the power module and the functional module, so as to realize multi-main power supply communication between multiple functional modules by using two power lines, thereby solving the technical problems of lack of a streamlined multi-main power supply communication system and weak driving capability in the current bus communication mode. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 It is a schematic diagram of the structure of the multi-master power supply communication system according to an embodiment of the present invention;

[0024] Figure 2 This is a schematic diagram of the circuit principle of the power module according to an embodiment of the present invention;

[0025] Figure 3 It is a schematic diagram of the circuit principle of the functional module of the embodiment of the present invention;

[0026] Figure 4 This is a schematic diagram of the working state of the power module according to an embodiment of the present invention;

[0027] Figure 5 This is a schematic diagram of the working status of the functional modules of an embodiment of the present invention;

[0028] Figure 6 It is a flowchart of a first embodiment of a multi-master power supply communication method of the present invention;

[0029] Figure 7 A schematic diagram of the logic level of the charging data as the power supply bit according to an embodiment of the present invention;

[0030] Figure 8 A schematic diagram of the logic level of the charging data as the compensation potential according to an embodiment of the present invention;

[0031] Fig. 9 A schematic diagram of the logic level of the compensation potential according to an embodiment of the present invention;

[0032] Fig.10 This is a schematic diagram of the anti-misidentification level insertion position according to an embodiment of the present invention;

[0033] Fig.11 A second embodiment of the multi-master power supply communication method of the present invention is a flow chart;

[0034] Fig.12A schematic diagram of a frame data structure of communication data according to an embodiment of the present invention;

[0035] Fig.13 A schematic diagram of a node sending data during an interval according to an embodiment of the present invention;

[0036] Fig.14 It is a schematic diagram of a node sending data during a power supply period according to an embodiment of the present invention;

[0037] Fig.15 A schematic diagram of contention arbitration in which a node receives a start bit but does not receive a synchronization bit according to an embodiment of the present invention;

[0038] Fig.16 A schematic diagram of contention arbitration of a node receiving a start bit unit and a data bit according to an embodiment of the present invention;

[0039] Fig.17 A schematic diagram of competition arbitration in which a first node receives a start bit and fails in competition according to an embodiment of the present invention;

[0040] Fig.18 A schematic diagram of contention arbitration in which a first node receives a start bit and a second node fails in contention according to an embodiment of the present invention;

[0041] Fig.19 A schematic diagram of competition arbitration in which data has been received and has a high priority level according to an embodiment of the present invention;

[0042] Fig. 20 A schematic diagram of contention arbitration in which data has been received and the priority level is low according to an embodiment of the present invention;

[0043] Fig.21 A schematic diagram of competition arbitration in which data has been received and has the same priority level according to an embodiment of the present invention;

[0044] Fig. 22 A schematic diagram of improving the driving capability of a functional module according to an embodiment of the present invention;

[0045] Fig.23 A schematic diagram of synchronization of multiple functional modules according to an embodiment of the present invention;

[0046] Fig.24 It is a schematic diagram of one situation in competition arbitration according to an embodiment of the present invention.

[0047] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0048] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0049] The power bus is a bus that can communicate and supply power at the same time. It is the bus with the least physical communication lines (only two power lines). Common ones include 1-wire, mbus, and powerbus.

[0050] Among them, due to the pull-up resistor of 1-wire, if you want to increase the output current, you must reduce this resistor, but at the same time increase unnecessary communication power consumption. Moreover, this resistor is connected in series with the communication trunk line, and the current flowing through it is equal to the current consumption of the slave. If the slave is a high-current load such as a motor, the power consumption of this resistor is very large. Therefore, it is usually suitable for low-current power supply occasions.

[0051] mbus uses dual voltage to identify logic levels, but its bus power supply capacity and transmission distance are weaker than powerbus.

[0052] The powerbus is an advanced bus whose master station can provide a maximum current of 20A. However, it does not support multi-host communication and adopts a master-slave communication mode, which leads to low overall communication efficiency of the bus, too heavy tasks for the host, and the power supply current of the slave station is generally less than 1A (the diode of the slave station is one of the main reasons for the current limitation). This is too small for the control of power devices such as motors. The powerbus has voltage on the downstream and current on the upstream. Due to the need to detect the current, this inevitably leads to complex circuits of the master station. Therefore, how to provide a multi-master power supply communication with strong driving capability is a technical problem that needs to be solved urgently.

[0053] In order to solve this problem, various embodiments of the multi-master power supply communication system of the present invention are proposed. The multi-master power supply communication system provided by the present invention realizes charging of the functional module by the power module before and during communication by connecting the power module and the functional module through the bus, so as to realize multi-master power supply communication between multiple functional modules by using two power lines, and solves the technical problems of the lack of a streamlined multi-master power supply communication system and weak driving capability in the current bus communication mode.

[0054] Reference Figure 1 , Figure 1 It is a schematic diagram of the structure of an embodiment of a multi-master power supply communication system of the present invention.

[0055] In this embodiment, the multi-main power supply communication system includes a power module and at least one functional module, and the power module and the at least one functional module are interconnected through a bus; wherein: the power module sends charging data to the functional module through the bus, and the functional module receives the charging data through the bus and performs a charging action; the power module performs a first sending action through the bus to send communication data to at least one of the functional modules; the functional module performs a second sending action through the bus to send communication data to the power module or another functional module.

[0056] It is easy to understand that this embodiment includes a power module communicating with multiple functional modules through power lines, wherein the power module provides power to each functional module, each functional module performs its own function, and each functional module and the functional module and the power module can communicate with each other.

[0057] Specifically, the power module includes a power main control unit, a charging unit, a power supply unit, a power supplement unit and a first power switch; wherein: the charging unit is used to transmit first charging data to the bus; the power main control unit is used to control the power supply unit and the power supplement unit to send charging data to the bus respectively; the first power switch is connected to the power supply unit and the power supplement unit, and is used to transmit second charging data and third charging data to the bus.

[0058] Furthermore, the power module also includes a first sending module and a first receiving module; wherein: the first sending module includes a first sending unit and a first data encoder, the first data encoder is used to encode the logic data bit and the charging data bit into communication data, and the first sending unit is used to send the communication data to the first power switch so that the first power switch sends the communication data to the bus; the first receiving module includes a first receiving unit and a first data decoder, the first receiving unit is used to receive the communication data on the bus, and the first data decoder is used to decode the communication data into logic data bits and charging data bits.

[0059] In some embodiments, Figure 2 As shown, Figure 2 FIG. 1 is a schematic diagram of a circuit principle of a power module. In this embodiment, the power module includes:

[0060] The charging unit is used to charge the functional modules of the bus with a constant current. After the power module is powered on, the main control unit works to enable the charging unit. The charging unit charges the energy storage capacitors of the functional modules of the bus with a constant current until they are full, and then the main control unit disables this unit.

[0061] The power supply unit is used to supply power to each functional module on the bus. After the charging unit is completed, the main control unit enables this unit. The main control unit detects the bus communication and disables this unit. The main control unit detects the end of the bus communication and enables this unit.

[0062] The power replenishment unit is used for the power module to provide power replenishment to the bus during communication. When the functional module sends data to the bus, the power module will provide power replenishment pulses to the bus. When the power module sends data to the bus, the power module will not provide power replenishment pulses to the bus because the data signal itself contains a compensation potential, which can replenish power to each functional module.

[0063] The sending unit is used to send data to the bus. When the main control unit receives data to be sent from the user input and output unit, it enables the sending unit to send data to the bus. When the main control unit detects that the bus competition fails, it stops sending the current data and enables the power replenishment unit to replenish power to the bus. After the data is sent, the sending unit is started again to continue sending data to the bus. After the sending is completed, the corresponding flag of the end of sending is set for the user to use.

[0064] The receiving unit is used to receive bus data. The power module is always monitoring the bus data. When receiving data associated with this module, the corresponding receiving flag is set for user use. It should be noted that the receiving module does not affect the power module to provide constant current charging, power supply, and power replenishment to the bus.

[0065] Input / output unit, the input / output unit is used to exchange data with the user, it has corresponding flags, such as the reception success flag, the transmission success flag, the reception / transmission buffer flag: empty, half empty, full, etc. After the reception / transmission is completed, the interrupt pin, data bus pin, control pin, etc. are provided to the user.

[0066] The power supply unit is used to provide electrical energy to each unit in the power module.

[0067] Power switch, the power switch is used to provide various types of pulses for the bus. The power switch is directly controlled by the power supply unit, the power supplement unit, and the sending unit to provide various types of pulse data for the bus.

[0068] The power supply master control unit is used to control the power supply module. It has a clock generator, a control timing circuit, a bus level pulse width counter, a data encoder, a data decoder, a priority identification, etc.

[0069] It is easy to understand that the charging unit, the power supply unit and the power supplement unit are used to perform charging actions in different time periods.

[0070] Specifically, the functional module includes a functional main control unit, a second sending module, a second receiving module and a second power switch; wherein: the functional main control unit is used to control the second sending module to perform a sending action, and control the second receiving module to perform a receiving action; the second sending module includes a second sending unit and a second data encoder, the second data encoder is used to encode the logic data bit and the charging data bit into communication data, and the second sending unit is used to send the communication data to the second power switch, so that the second power switch sends the communication data to the bus; the second receiving module includes a second receiving unit and a second data decoder, the second receiving unit is used to receive the communication data on the bus, and the second data decoder is used to decode the communication data into logic data bits and charging data bits.

[0071] Furthermore, the functional module also includes a power supply branch and an energy storage capacitor; wherein: the power supply branch is used to receive the charging data and charge the energy storage capacitor; the energy storage capacitor is connected to the power supply branch and stores the electric energy corresponding to the charging data received by the power supply branch.

[0072] In some embodiments, Figure 3 As shown, Figure 3 Schematic diagram of the circuit principle of the functional module. In this embodiment, the functional module includes:

[0073] Power supply branch: The power supply branch is used to provide a power supply circuit when the functional module is powered on. The bus voltage passes through this power supply branch to charge the energy storage capacitor. When the bus is first connected, since the module has no power, all functional units do not work. This power supply branch is the only power supply branch that can obtain power from the bus. The power supply branch must be unidirectional, so it is usually a diode.

[0074] Power switch, the power switch is used to provide various types of pulses for the bus. The power switch is controlled by the expansion unit. The power switch is turned on in a specific time period, which greatly reduces the on-resistance of the power supply branch, thereby increasing the load power of the functional module. The specific time period includes: the potential compensation time period of the bit data, the power supply pulse, and the start pulse. The power switch is also controlled by the sending unit to provide various types of pulse data for the bus. The power switch usually uses a MOS tube, and its internal resistance is much smaller than that of a diode.

[0075] Energy storage capacitors are used to store electrical energy on the bus for use by functional modules and loads.

[0076] The sending unit is used to send data to the bus. When the main control unit receives the data to be sent from the user input and output unit, it enables the sending unit to send data to the bus. When the main control unit detects that the bus competition fails, it stops sending the current data and releases the bus. When the bus data is sent, the sending unit is started again to continue sending data to the bus. After the sending is completed, the corresponding flag of the end of sending is set for the user to query.

[0077] The receiving unit is used to receive bus data. The functional module is always monitoring the bus data. When receiving data associated with this module, the corresponding receiving flag is set for user query.

[0078] Bit data encoder and bit data decoder. Usually, in the positive logic system, logic 0 is represented by low level and logic 1 is represented by high level. During the communication process, if the power module outputs more logic 1s to the functional module, the functional module can be powered. If the output logic 0s are more, or even all logic 0s, the functional module may lose power and cause the entire system to fail. Therefore, M-BUS, PowerBUS and other power supply buses usually use dual power supply. High voltage on the bus represents logic 1, and low voltage represents logic 0. This low voltage is generally set to about 10V, which can ensure the normal operation of the functional module.

[0079] However, when the functional modules communicate with each other, M-BUS and PowerBUS cannot supply power to them, so they can only adopt the master-slave mode, that is, the power module can only send a signal to the functional module, and then the functional module responds to the power module in the form of current within a short period of time. The bit data encoding / decoding unit of this embodiment proposes a bit data encoding format: logical bit + compensation potential, wherein the logical bit is divided into two types: for the sending module, a low level is output when the data is 0, and a high level is output when the data is 1; for the non-sending module, the bus is released and a low level is output; it should be noted that the sending module may be a power module or a functional module. There are two types of compensation potentials: for the power module, it always outputs a high level. For the functional module, it will turn on the power switch tube at this time, which is beneficial for the power module to supply power to the functional module and improve the load capacity of the functional module.

[0080] This embodiment benefits from the superiority of this encoding. In various communication situations, data communication between the power module and the functional module, the functional module to the power module, and the functional module to the functional module, as well as data communication between the power module and the functional module, does not matter even if the communication data is all logic 0, the power module can always replenish power to each functional module in time.

[0081] The main characteristic data of this embodiment: power bit, start bit, three response bits, logic 0, logic 1 can be decomposed into the above format. The main difference between the power bit, start bit and data bit (including several bits of logic 0 or logic 1, but the number of consecutive logic 1 cannot exceed 6) is the different pulse width. The start bit is wider than the power bit, and the power bit is wider than the data bit.

[0082] In addition, compared with the communication mode when the bus is idle adopted by M-BUS and PowerBUS, this embodiment adopts real-time communication, which has better communication flexibility.

[0083] The expansion unit is used to reduce the impedance of the power supply loop and improve the load capacity of the functional module. It enables the power switch to be turned on at a specific time.

[0084] The power supply unit is used to provide electrical energy to each unit in the power module.

[0085] Input / output unit: The input / output unit is used to exchange data with the user. It has corresponding flags, such as the reception success flag, the transmission success flag, and the reception / transmission buffer flags: empty, half empty, full, etc. After reception / transmission is completed, the interrupt pin, data bus pin, control pin, etc. are provided to the user.

[0086] Clock regeneration unit, the clock regeneration unit is used to obtain the clock signal from the bus signal. Due to multi-master communication, each module has its own clock. If the clocks are of different frequencies and phases, the entire system will be in chaos. Usually, the clock of the power module is used as the reference. Each functional module can obtain the unique data waveform of the power module from the bus, and separate the clock signal from it as its own clock. The unique data waveform of the power module includes power supply pulse and frame synchronization signal.

[0087] Functional main control unit: The functional main control unit is used to control the functional module. It has a clock generator, control timing circuit, bus level pulse width counter, data encoder, data decoder, priority identification, etc.

[0088] like Figure 4 and Figure 5 As shown, the multi-master power supply communication principle of this embodiment is as follows:

[0089] When powered on, the power module first enters the charging mode. It enables the charging unit to charge the functional modules on the bus with constant current. The main control unit detects the bus level. When the bus level reaches the set value, it indicates that it is fully charged. Then the charging unit is disabled, the power supply unit is enabled, and the power supply mode is entered.

[0090] In the power supply mode, the power module continuously sends power pulses to the bus, providing power to each functional module on the bus continuously, so that each functional module can be powered normally. In this mode, the main control unit inside it simultaneously detects whether the module is sending data and whether there is any external module communicating.

[0091] When it is detected that this module wants to send data, it will enter the sending mode. If it is detected that the external module is communicating at this time, the main control unit inside will make a priority judgment. If the priority of this unit is low, it will stop sending data and enter the power replenishment mode at the same time to provide a power replenishment pulse to the bus. After the data transmission of this frame is completed, the power module exits the power replenishment mode and resends the unsent data. After the data is sent, it exits the sending mode and enters the power supply mode. Correspondingly, the priority of this unit is high, it continues to send data until the transmission is completed, then exits the sending mode and enters the power supply mode.

[0092] If in power supply mode, the power module detects that only an external module is communicating, it will enter the replenishment mode and provide replenishment pulses to the bus. After the bus communication ends, the power module will enter the power supply mode.

[0093] It is easy to understand that this embodiment connects the bus of the power module and the functional module to realize charging of the functional module through the power module before and during communication, so as to realize multi-main power supply communication between multiple functional modules using two power lines, thereby solving the technical problems of the lack of a streamlined multi-main power supply communication system and weak driving capability in the current bus communication mode.

[0094] Those skilled in the art will understand that Figure 2 and Figure 3 The structure shown in the figure does not constitute a limitation on the power module and the functional module, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0095] The embodiment of the present invention provides a multi-master power supply communication method, referring to Figure 6 , Figure 6 It is a flowchart diagram of the first embodiment of the multi-master power supply communication method of the present invention.

[0096] In this embodiment, the multi-master power supply communication method is used for a power supply module in the multi-master power supply communication system. The multi-master power supply communication method includes the following steps:

[0097] Step S100: When it is detected that the power module is powered on or there is no communication data on the bus, charging data is sent to the bus to charge at least one of the functional modules.

[0098] Specifically, after the power module is powered on, in order to avoid damage to the power switch tube due to large bus driving current, many functional modules connected to the bus, and large energy storage capacitors of the functional modules, the power module charges the bus with a constant current to fully charge the energy storage capacitors of each functional module.

[0099] After constant current charging, it is detected whether communication data is transmitted in the bus, and if not, charging data is sent to the bus to charge at least one functional module.

[0100] Among them, the charging data is the power supply position + interval level data transmitted by the power module to the functional module, such as Figure 7 As shown, the bus has a pulsating voltage. Considering that the large-capacity capacitors on the nodes are usually aluminum electrolytic capacitors, which have poor frequency characteristics, the power supply bit can be set to a higher level with a wider width, which is more conducive to charging it.

[0101] Step S200: If it is detected that the bus transmits communication data, charging data is sent to the bus during a preset period of time when the communication data is transmitted, so as to charge the functional module.

[0102] Specifically, when the functional module transmits data to the bus, the charging data sent by the power module to the bus is the level data of the compensation potential, such as Figure 8 As shown, when the functional module communicates with other nodes, the power module provides a compensation potential to the bus. If it does not provide it, the functional module may fail due to the energy stored in its energy storage capacitor being completely dissipated.

[0103] It should be noted that when the functional module sends communication data to the bus, Fig. 9 As shown, the communication data includes at least one logical data bit, the charging data includes at least one charging data bit, and the preset time period is after each logical data bit; the charging data is sent to the bus during the preset time period of the communication data transmission to charge the functional module, specifically including sending charging data to the bus after each logical data bit of the communication data to charge the functional module, so that the functional module turns on the second power switch when receiving the charging data to increase the output current of the functional module.

[0104] In addition, it should be noted that the functional module should insert a logic 0 after six consecutive logic 1s, such as Fig.10 As shown in the figure, this logic 0 should be removed during reception. If this logic 0 is not inserted, the bus high level width will be wider and recognition errors will occur.

[0105] For easier understanding, see Fig.11 , Fig.11 FIG. 2 is a flow chart of a second embodiment of the multi-master power supply communication method of the present invention. Figure 6The first embodiment of the multi-master power supply communication method shown in the figure, this embodiment proposes a second embodiment of the multi-master power supply communication method, which is used for a power module or a functional module of a multi-master power supply communication system, and the multi-master power supply communication method is specifically as follows:

[0106] Step S300: When a first communication sending instruction is received, first communication data corresponding to the first communication sending instruction is sent to the bus.

[0107] Step S400: If it is detected that the bus transmits second communication data, it is determined whether the priority corresponding to the second communication data is higher than the priority of the first communication data.

[0108] Step S500: If yes, execute the sending waiting action until the second communication data transmission is completed, and return to execute the step of sending the first communication data corresponding to the first communication sending instruction to the bus.

[0109] Step S600, determines whether the transmission of the second communication data is completed. If so, the sending end corresponding to the second communication data sends a low level to the bus. If no contention is detected, a response request is sent to the functional module corresponding to the receiving second communication data, so that the functional module sends response data to the bus according to the response request.

[0110] Specifically, to determine whether the communication data transmitted by the bus is completed, a low level (interval) can be inserted after the sending module has sent all the data. If no competition is detected, the receiving response signal mode is entered. The response signal is sent by the power module and the receiving module. The power module sends a non-response bit. If the sending module receives this bit, it means that the receiving module is not found or the receiving module is damaged. The receiving module receives successfully and sends a successful response bit, otherwise it sends a failed response signal.

[0111] In this embodiment, compared with the traditional response mode, the reception is successful or failed. For the reception failure, it is impossible to distinguish whether it is a line problem or the addressed receiver is not connected to the bus. An additional non-response bit is added. If this response is received, it means that the addressed receiver is not on the bus. If the failure response bit is received, it means that the addressed receiver is on the bus, but the received data is incorrect. Therefore, the response mode provided by this embodiment can more accurately distinguish whether the addressed receiver is on the bus or the reception fails.

[0112] Furthermore, in the present embodiment, the bus in the multi-master power supply communication system is a broadcast type bus, which has independent receivers and transmitters inside, and each module on the bus can monitor the data transmitted on the bus. When the receiver receives the start bit, the module enters the data receiving mode, and when there is data to be sent, it will immediately enter the sending mode, that is, the sending mode takes precedence over the receiving mode. In the sending mode, if there is contention and the contention fails, the retransmission flag is set and the receiving mode is entered. After the frame is completed, it is automatically retransmitted. Before sending data, the bus is either in an idle state or in a communication state. The sending process of these two states is explained below.

[0113] Furthermore, the frame data structure of the communication data sent by the functional module to the bus can be: start bit + synchronization bit + command byte + parameter byte + CRC8 + response bit, such as Fig.12 shown.

[0114] When the bus is in idle state, that is, there is no communication, the bus only has the power supply bit string output by the power module.

[0115] The first case, such as Fig.13 As shown, the node sends data during the "interval". The node wants to send data at this time and waits for the "interval" to complete before starting to send the "start bit".

[0116] The second case, such as Fig.14 As shown, the node sends data during the "power bit". If the node wants to send data at this time, it immediately sends the "start bit" (high level) and accumulates the previous high level (t) time.

[0117] When the bus is in communication state.

[0118] The first case, such as Fig.15 As shown, the "start bit" is not received, and other nodes are sending "start bits". The node fails in the competition, stops sending data, and enters the "automatic retransmission mode".

[0119] The second case, such as Fig.16 As shown in the figure, the "start bit" is received, but the synchronization bit is not received. Other nodes are sending the synchronization bit. The node fails in the competition, stops sending data, and enters the "automatic retransmission mode".

[0120] The third case, such as Fig.17 As shown in the figure, the "start bit" is received, but a data bit has not been received. Other nodes are sending the first data bit, and the first node fails in the competition, stops sending data, and enters the "auto-retransmit" mode to send the rest of the data bits. Fig.18 As shown, the second node fails in the competition, stops sending data, and enters the "automatic retransmission" mode to send the remaining data bits.

[0121] The fourth case, such as Fig.19 As shown, data has been received and its priority is high, so stop sending data. The priority of the sent data is lower than that of the received data, so it is not sent and enters the resend mode.

[0122] The fifth case, such as Fig. 20 As shown, data has been received, its priority level is low, and a "start bit" is sent to seize the bus.

[0123] The sixth case, such as Fig.21 As shown, data has been received and its priority level is the same, so it continues to send data. The node fails in the competition, stops sending data, and enters the "automatic retransmission" mode.

[0124] In some embodiments, when a functional module sends data to a bus, the highest byte is sent first and the lowest byte is sent last, and the highest bit is sent first and the lowest bit is sent last.

[0125] Further, such as Fig. 22 As shown, in order to improve the driving ability of the functional module, when the bus is high level, if the functional module does not send data, Q1 is in the off state, and the energy storage capacitor can only be charged through the diode D1. It is this diode that causes the output current of the functional module to be not too large. If Q1 is turned on when the logic data is encoded at the compensation potential, the output current of the functional module is greatly improved due to the extremely low switch resistance of the field effect tube. At the same time, this will not affect communication.

[0126] In another embodiment, because there are multiple main communication buses, it is uncertain when the main module will send data, and the clock frequency and phase of each module sending data cannot be exactly the same, and there will always be errors. If these factors are combined, communication failure may occur. Fig.23 As shown, in order to achieve synchronization between multiple functional modules in multi-master communication, one solution is that before the first rising edge of the power supply bit of the power module arrives, or during the synchronization bit, each functional module is prohibited from turning on its own power switch Q1, so as to synchronize the clock phases at various locations with this rising edge, and calculate their respective clock frequencies with the time of two adjacent rising edges.

[0127] In addition, when receiving the third communication data transmitted by the bus, if the second communication sending instruction is detected, the receiving stop action is executed; the fourth communication data corresponding to the second communication sending instruction is obtained, and the fourth communication data is transmitted to the bus.

[0128] In actual applications, because the bus is preemptive priority transmission, when a high priority data, can completely preempt a low priority data transmission being communicated, because of the line or relationship of the line, so the logic 1 takes precedence over the logic 0. In addition, there is a competitive arbitration situation, for example:

[0129] like Fig.24 As shown, the data to be sent by node 1 is 0x1F, and the upper 4 bits have been sent. At this time, node 2 wants to send 0x81, which has a higher priority than node 1, but the highest bit received is 0, so the data needs to be completely resent (if the received data is the same, just send the next bit). Therefore, node 2 starts to send the start bit, and the bus is high level, but because node 1 also sends high levels afterwards, it does not find any competition and successfully enters the receiving response mode, and fails to seize the bus. In this embodiment, a low level can be inserted before receiving the response. If the bus is detected to be high at this time, it means that there is competition, and then the retransmission flag is set, and the receiving mode is entered, and the bus is seized.

[0130] In this embodiment, for high voltage and ultra-high current loads on the bus, the power switch tube Q1 of the power module and the functional module must be large, which increases the number of power switch tubes, increases the cost, and also increases the power consumption, which is undesirable in some cases. In this embodiment, a power positive line is added, and this line is separately led to the load of the functional module. The power module and the functional module use another low-voltage and low-power positive line, and they share the same ground, thereby achieving economical, safe, and reliable communication.

[0131] In addition, an embodiment of the present invention further proposes a storage medium, on which a multi-main power supply communication program is stored, and when the multi-main power supply communication program is executed by a processor, the steps of the multi-main power supply communication method described above are implemented. Therefore, it will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in the present application, please refer to the description of the method embodiment of the present application. As an example, the program instructions can be deployed to be executed on one computing device, or on multiple computing devices located at one location, or on multiple computing devices distributed at multiple locations and interconnected by a communication network.

Claims

1. A multi-main power supply communication system, characterized in that: The multi-master power supply communication system includes a power module and at least one functional module, wherein the power module and the at least one functional module are interconnected via a bus; wherein the bus is a power line: The power module sends charging data to the functional module via the bus, and the functional module receives the charging data via the bus and performs a charging action; The power module performs a first sending action through the bus to send communication data to at least one of the functional modules; the functional module performs a second sending action through the bus to send communication data to the power module or another functional module; The power module includes a power main control unit, a charging unit, a power supply unit, a power supplement unit and a first power switch; wherein: The charging unit is used to transmit the first charging data to the bus; the charging unit is connected to the power line, and the charging unit, the power supply unit and the power supplement unit are all connected to the power main control unit; The power supply main control unit is used to control the power supply unit and the power supplement unit to send charging data to the bus respectively; The first power switch is connected to the power supply unit and the power supplement unit, and is used to transmit the second charging data and the third charging data to the bus; The power module further includes a first sending module and a first receiving module, the first sending module is used to send communication data to the bus, and the first receiving module is used to receive communication data on the bus; The functional module includes a functional main control unit, a second sending module, a second receiving module and a second power switch; the second sending module is used to send communication data to a bus, and the second receiving module is used to receive communication data on the bus.

2. The multi-main power supply communication system according to claim 1, characterized in that: The power supply unit is used for charging at least one functional module through the bus during a preset period of time when the functional module transmits data to the bus.

3. The multi-master power supply communication system according to claim 1, characterized in that: The first sending module includes a first sending unit and a first data encoder, the first data encoder is used to encode the logic data bit and the charging data bit into communication data, and the first sending unit is used to send the communication data to the first power switch, so that the first power switch sends the communication data to the bus; The first receiving module includes a first receiving unit and a first bit data decoder, the first receiving unit is used to receive communication data on the bus, and the first bit data decoder is used to decode the communication data into logic data bits and charging data bits.

4. The multi-main power supply communication system according to claim 3, characterized in that: The function main control unit is used to control the second sending module to perform a sending action, and control the second receiving module to perform a receiving action; The second sending module includes a second sending unit and a second data encoder, the second data encoder is used to encode the logic data bit and the charging data bit into communication data, and the second sending unit is used to send the communication data to the second power switch, so that the second power switch sends the communication data to the bus; The second receiving module includes a second receiving unit and a second data decoder, wherein the second receiving unit is used to receive communication data on the bus, and the second data decoder is used to decode the communication data into logic data bits and charging data bits.

5. The multi-main power supply communication system according to claim 4, characterized in that: The functional module also includes a power supply branch and an energy storage capacitor; wherein: The power supply branch is used to receive the charging data and charge the energy storage capacitor; The energy storage capacitor is connected to the power supply branch and stores the electric energy corresponding to the charging data received by the power supply branch.

6. A multi-master power supply communication method, characterized in that: A power supply module for a multi-master power supply communication system according to claim 5, wherein the multi-master power supply communication method comprises the following steps: When it is detected that the power module is powered on or the bus has no communication data, charging data is sent to the bus to charge at least one of the functional modules; If it is detected that the bus transmits communication data, charging data is sent to the bus during a preset period of time during which the communication data is transmitted, so as to charge the functional module.

7. The multi-master power supply communication method according to claim 6, characterized in that: The communication data includes at least one logic data bit, the charging data includes at least one charging data bit, and the preset time period is after each logic data bit; The step of sending charging data to the bus during a preset period of the communication data transmission to charge the functional module specifically includes: After each logical data bit of the communication data, charging data is sent to the bus to charge the functional module, so that when the functional module receives the charging data, the second power switch is turned on to increase the output current of the functional module.

8. A multi-master power supply communication method, characterized in that: A power supply module or a functional module for a multi-master power supply communication system according to claim 5, wherein the multi-master power supply communication method comprises the following steps: When a first communication sending instruction is received, first communication data corresponding to the first communication sending instruction is sent to the bus; If it is detected that the bus transmits second communication data, determining whether the priority corresponding to the second communication data is higher than the priority of the first communication data; If yes, execute the sending waiting action until the second communication data transmission is completed, and return to execute the step of sending the first communication data corresponding to the first communication sending instruction to the bus; Determine whether the transmission of the second communication data is completed, if so, release the bus, if no contention is detected, send a response request to the functional module corresponding to receiving the second communication data, so that the functional module sends response data to the bus according to the response request.

9. The multi-master power supply communication method according to claim 8, characterized in that: The multi-master power supply communication method further includes: When receiving the third communication data transmitted by the bus, if the second communication sending instruction is detected, a receiving stop action is executed; Acquire fourth communication data corresponding to the second communication sending instruction, and transmit the fourth communication data to the bus.

10. A multi-master power supply communication device, characterized in that: The multi-main power supply communication device comprises: A power supply module, the power supply module comprising a memory, a processor, and a multi-master power supply communication program stored in the memory and executable on the processor, wherein the multi-master power supply communication program, when executed by the processor, implements the steps of the multi-master power supply communication method according to any one of claims 6 or 7; A functional module, wherein the functional module includes a memory, a processor, and a multi-master power supply communication program stored in the memory and executable on the processor, wherein when the multi-master power supply communication program is executed by the processor, the steps of the multi-master power supply communication method as described in any one of claims 8 or 9 are implemented.

Citation Information

Patent Citations

  • Intelligent housing system and functional module extension method thereof

    CN104793590A

  • Charging pile distributed controller

    CN105182854A

  • Novel charging system and charging method

    CN107147198A