Multi-master power supply communication system, method and apparatus
Patent Information
- Application Number
- JP2024547063
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-12-10
- Filing Date
- 2022-11-17
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2042-11-17
AI Technical Summary
【0012】 本発明は、電源モジュールと機能モジュールとを接続するバスにより、機能モジュールの通信前及び通信中に電源モジュールを介して機能モジュールを充電し、2本の電力線を用いて複数の機能モジュール間のマルチマスター給電通信を実現し、従来のバス通信方式における、効率的なマルチマスター給電通信システムの不足と駆動能力の弱い技術的問題を解決する。
Smart Images

Figure 2025505669000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to the field of communication technology, and in particular to a multi-master powered communication system, method and apparatus. [Background technology]
[0002] A powered bus is a bus that can communicate and supply power at the same time, and has the fewest physical lines for communication (only two power lines). Common types include 1-wire, mbus, and powerbus.
[0003] Of these, a pull-up resistor is added to the 1-wire, so if you want to increase the output current, you need to reduce this resistor, but at the same time, the consumption of unnecessary communication power will increase. Also, this resistor is connected in series to the communication trunk line, so the same current as the slave unit's consumption current flows through it, and if the slave unit is a high-current load such as a motor, this resistor will consume a large amount of power. Therefore, it is usually suitable for small current power supply.
[0004] Mbus uses dual voltages to distinguish logic levels, but the bus's power supply capability and transmission distance are inferior to that of powerbus.
[0005] The powerbus bus is an advanced bus, and its master station can supply a current of up to 20A. However, since it does not support multi-host communication and uses a master / slave communication method, the overall communication efficiency of the bus is low, the host task is overloaded, 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 causes of the current limit). This is because there is too little control over power devices such as motors, and the downstream of the powerbus is voltage and the upstream is current, and the current needs to be detected, which inevitably makes the circuit of the master station complicated. Therefore, how to provide multi-master power supply communication with high driving capacity has become an urgent technical issue.
[0006] The above contents are only used to facilitate the understanding of the technical solutions of the present invention, and are not acknowledged as being prior art. Summary of the Invention [Problem to be solved by the invention]
[0007] The main objective of the present invention is to provide a multi-master powered communication system, method and apparatus for solving the technical problems of the lack of an efficient multi-master powered communication system and weak driving capability in the current bus communication manner. [Means for solving the problem]
[0008] In order to achieve the above object, the present invention provides a multi-master power supply communication system, the multi-master power supply communication system including a power supply module and at least one function module, the power supply module and the at least one function module are interconnected via a bus; The power supply module transmits charging data to the functional module via the bus, and the functional module receives the charging data via the bus and performs a charging operation; The power supply module performs a first transmission operation via the bus to transmit communication data to at least one of the functional modules, and the functional module performs a second transmission operation via the bus to transmit communication data to the power supply module or another of the functional modules.
[0009] In order to achieve the above object, the present invention further provides a multi-master power supply communication method for use in a power supply module of the above multi-master power supply communication system, the method comprising: powering on the power supply module or transmitting charging data to the bus for charging at least one functional module when detecting that there is no communication data on the bus; and when it is detected that the bus is transmitting communication data, transmitting charging data to the bus during a preset period of transmission of the communication data, thereby charging the functional module.
[0010] In order to achieve the above object, the present invention further provides a multi-master power supply communication method for use in a power supply module or a functional module of the above multi-master power supply communication system, the method comprising: when receiving a first communication transmission command, transmitting first communication data corresponding to the first communication transmission command to the bus; when detecting that the bus is transmitting second communication data, determining whether a priority corresponding to the second communication data is higher than a priority of the first communication data; if so, performing a transmission waiting operation until the transmission of the second communication data is completed, and returning to the step of transmitting the first communication data corresponding to the communication transmission command to the bus; The method includes the steps of: determining whether transmission of the second communication data is completed; and, if completed, releasing the bus; and, if no conflict is detected, transmitting a response request to a functional module receiving the second communication data, thereby causing the functional module to transmit response data to the bus in accordance with the response request.
[0011] In order to achieve the above object, the present invention provides: A power supply module including a memory, a processor, and a multi-master power supply communication program stored in the memory and executable on the processor, the multi-master power supply communication program executing the steps of the multi-master power supply communication method described above when executed by the processor; The present invention further provides a multi-master power supply communication device, comprising: a functional module including a memory; a processor; and a multi-master power supply communication program stored in the memory and executable on the processor, the functional module performing steps of the multi-master power supply communication method described above when the multi-master power supply communication program is executed by the processor. Effect of the Invention
[0012] The present invention uses a bus connecting the power supply module and the functional modules to charge the functional modules via the power supply module before and during communication between the functional modules, and realizes multi-master power supply communication between multiple functional modules using two power lines, thereby solving the technical problems of the lack of an efficient multi-master power supply communication system and weak driving capability in the traditional bus communication method. [Brief description of the drawings]
[0013] [Figure 1] FIG. 1 is a schematic structural diagram of a multi-master power supply communication system according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a schematic diagram of the circuit principle of a power supply module according to an embodiment of the present invention. [Diagram 3] FIG. 3 is a schematic diagram of the circuit principle of a functional module according to an embodiment of the present invention. [Figure 4] FIG. 4 is a schematic diagram illustrating an operation state of a power module according to an embodiment of the present invention. [Diagram 5] FIG. 5 is a schematic diagram illustrating an operation state of a functional module according to an embodiment of the present invention. [Figure 6] FIG. 6 is a schematic flowchart of a first embodiment of a multi-master power supply communication method of the present invention. [Figure 7] FIG. 7 is a schematic diagram of logic levels of charging data powered bits according to an embodiment of the present invention. [Figure 8] FIG. 8 is a schematic diagram of the logic levels of the charge data power refill bit according to an embodiment of the present invention. [Figure 9] FIG. 9 is a schematic diagram of the logic levels of the power refill bit according to an embodiment of the present invention. [Figure 10] FIG. 10 is a schematic diagram of the insertion position of the misrecognition prevention level according to an embodiment of the present invention. [Figure 11] FIG. 11 is a schematic flowchart of a second embodiment of a multi-master power supply communication method of the present invention. [Figure 12] FIG. 12 is a schematic diagram of a frame data structure of communication data according to an embodiment of the present invention. [Figure 13] FIG. 13 is a schematic diagram of a node transmitting data during an interval according to an embodiment of the present invention. [Figure 14] FIG. 14 is a schematic diagram of a node transmitting data during a powering bit according to an embodiment of the present invention. [Figure 15] FIG. 15 is a schematic diagram of contention arbitration where a node receives a start bit but not a synchronization bit according to an embodiment of the present invention. [Figure 16] FIG. 16 is a schematic diagram of contention arbitration where a node has already received a start bit but has not received any data bits, according to an embodiment of the present invention. [Figure 17] FIG. 17 is a schematic diagram of contention arbitration when a first node receives a start bit and the first node fails the contention according to an embodiment of the present invention. [Figure 18] FIG. 18 is a schematic diagram of contention arbitration in which a first node receives a start bit and a second node fails the contention according to an embodiment of the present invention. [Figure 19]FIG. 19 is a schematic diagram of contention arbitration with already received data and high priority according to an embodiment of the present invention. [Figure 20] FIG. 20 is a schematic diagram of contention arbitration for a data already received and having a low priority according to an embodiment of the present invention. [Figure 21] FIG. 21 is a schematic diagram of contention arbitration for data already received and having the same priority according to an embodiment of the present invention. [Figure 22] FIG. 22 is a schematic diagram of improving the driving capability of a functional module according to an embodiment of the present invention. [Diagram 23] FIG. 23 is a schematic diagram of synchronizing multiple functional modules according to an embodiment of the present invention. [Figure 24] FIG. 24 is a schematic diagram illustrating one case of contention arbitration according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] The realization of the objectives, functional features and advantages of the present invention will be further explained in conjunction with the examples and with reference to the accompanying drawings.
[0015] It should be understood that the specific examples described herein are used only to illustrate the present invention and are not intended to limit the present invention.
[0016] A powered bus is a bus that can communicate and supply power at the same time, and has the fewest physical lines for communication (only two power lines). Common types include 1-wire, mbus, and powerbus.
[0017] Of these, a pull-up resistor is added to the 1-wire, so if you want to increase the output current, you need to reduce this resistor, but at the same time, the consumption of unnecessary communication power will increase. Also, this resistor is connected in series to the communication trunk line, so the same current as the slave unit's consumption current flows through it, and if the slave unit is a high-current load such as a motor, this resistor will consume a large amount of power. Therefore, it is usually suitable for small current power supply.
[0018] Mbus uses dual voltages to distinguish logic levels, but the power supply capability and transmission distance of the bus are inferior to those of powerbus.
[0019] The Powerbus bus is an advanced bus, and its master station can supply a current of up to 20A. However, since it does not support multi-host communication and uses a master / slave communication method, the overall communication efficiency of the bus is low, the host task is overloaded, 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 causes of the current limit). This is because there is too little control over power devices such as motors, and the downstream of the Powerbus is voltage and the upstream is current, and the current needs to be detected, which inevitably makes the circuit of the master station complicated. Therefore, how to provide multi-master power supply communication with high driving capacity has become an urgent technical issue.
[0020] 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 uses a bus connecting the power supply module and the functional modules to charge the functional modules via the power supply module before and during communication between the functional modules, and realizes multi-master power supply communication between multiple functional modules using two power lines, solving the technical problems of the lack of an efficient multi-master power supply communication system and the weak driving ability in the traditional bus communication method.
[0021] Please refer to FIG. 1, which is a schematic structural diagram of an embodiment of a multi-master power supply communication system of the present invention.
[0022] In this embodiment, the multi-master power supply communication system includes 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, the power supply module transmits charging data to the functional module via the bus, the functional module receives the charging data via the bus and performs a charging operation, the power supply module performs a first transmission operation via the bus and transmits communication data to at least one of the functional modules, and the functional module performs a second transmission operation via the bus and transmits communication data to the power supply module or another of the functional modules.
[0023] It is easy to understand that this embodiment includes one power module and multiple functional modules that communicate through a power line. The power module supplies electrical energy to each functional module, and each functional module performs its own function, and there can be mutual communication between each functional module and between the functional module and the power module.
[0024] Specifically, the power supply module includes a power supply main control unit, a charging unit, a power supply unit, a power supplement unit, and a first power switch, the charging unit is used to transmit first charging data to the bus, the power supply main control unit is used to respectively control the power supply unit and the power supplement unit to transmit charging data to the bus, and 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.
[0025] Further, the power supply module further includes a first transmitting module and a first receiving module, the first transmitting module including a first transmitting unit and a first bit data encoder, the first bit data encoder is used for encoding logical data bits and charging data bits into communication data, the first transmitting unit transmits the communication data to the first power switch, thereby causing the first power switch to transmit the communication data to a bus, and the first receiving module includes a first receiving unit for receiving the communication data on the bus and a first bit data decoder for decoding the communication data into logical data bits and charging data bits.
[0026] In some embodiments, as shown in Figure 2, which is a schematic diagram of the circuit principle of the power supply module, in this embodiment, the power supply module includes the following units:
[0027] The charging unit is used to charge each functional module of the bus with a constant current, and after the power supply module is powered on, the main control unit operates to enable the charging unit, and the charging unit charges the energy storage capacitor of each functional module of the bus with a constant current until it is fully charged, and then the main control unit disables the unit.
[0028] The power supply unit is used to supply power to each functional module on the bus, and when charging of the charging unit is completed, the main control unit enables this unit, when the main control unit detects bus communication, it disables this unit, and when the main control unit detects the end of bus communication, it enables this unit.
[0029] The power replenishment unit is used to replenish power to each functional module connected to the bus via the power supply module during communication, and when the functional module transmits data to the bus, the power supply module supplies a power replenishment pulse to the bus, and when the power supply module transmits data to the bus, the power supply module does not supply a power replenishment pulse to the bus, because the data signal itself includes a power replenishment bit that can replenish power to each functional module.
[0030] The transmission unit transmits data to the bus, and when the main control unit receives data that needs to be transmitted from the user input / output unit, it enables the transmission unit to transmit the data to the bus, and when the main control unit detects that the bus fails to compete, it stops the transmission of the current data, and at the same time enables the power refill unit to refill the power to the bus. When the data transmission is completed, it activates the transmission unit again to continue transmitting data to the bus, and after the transmission is completed, it sets a flag bit corresponding to the transmission completion, so that the user can use it.
[0031] The receiving unit is used to receive bus data, and the power supply module monitors the bus data all the time, and when it receives data associated with this module, it sets the corresponding receiving flag bit for user use. Note that the receiving module does not affect the constant current charging, power supply and power replenishment to the bus of the power supply module.
[0032] The input / output unit is used for data exchange with the user, and has corresponding flag bits, such as reception success flag bit, transmission success flag bit, reception / transmission buffer flag: empty, half empty, full, etc. After reception / transmission is completed, it provides interrupt pins, data bus pins, control pins, etc. to the user.
[0033] The power supply unit is used to provide electrical energy to each unit in the power supply module.
[0034] The power switch is used to provide different kinds of pulses to the bus, and the power switch is directly controlled by the power supply unit, the power replenishment unit and the transmission unit to provide different kinds of pulse data to the bus.
[0035] The power supply main control unit is used to control the power supply module, and includes therein a clock generator, a control sequence circuit, a bus level pulse width counter, a data encoder, a data decoder, a priority identification unit, and the like.
[0036] It is easily understood that the charging unit, the power supply unit and the power refill unit are used to perform charging operations at different periods.
[0037] Specifically, the functional module includes a functional main control unit, a second transmitting module, a second receiving module and a second power switch, the functional main control unit is used to control the second transmitting module to perform a transmitting operation and to control the second receiving module to perform a receiving operation, the second transmitting module includes a second transmitting unit and a second bit data encoder, the second bit data encoder is used to encode logical data bits and charging data bits into communication data, the second transmitting unit transmits the communication data to a second power switch, thereby causing the second power switch to transmit the communication data to a bus, and the second receiving module includes a second receiving unit for receiving communication data on the bus and a second bit data decoder for decoding the communication data into logical data bits and charging data bits.
[0038] Furthermore, the functional module further includes a power supply branch circuit for receiving the charging data and charging the energy storage capacitor, and an energy storage capacitor connected to the power supply branch circuit and configured to store electrical energy corresponding to the charging data received by the power supply branch circuit.
[0039] In some embodiments, as shown in Figure 3, Figure 3 is a schematic diagram of the circuit principle of a functional module. In this embodiment, the functional module includes:
[0040] A powered branch circuit is used to provide a power supply to a functional module when it is powered up, and the bus voltage flows through the powered branch circuit to charge the energy storage capacitor. When first connected to the bus, the module has no power, so all functional units are inoperative, and the powered branch circuit is the only powered branch circuit that can obtain power from the bus. The powered branch circuit must be unidirectional, so it is usually a diode.
[0041] The power switch is used to provide various kinds of pulses to the bus, and the power switch is controlled by the capacity expansion unit to turn on the power switch within a certain period of time, greatly reducing the conduction resistance of the power supply branch circuit, thereby increasing the load power of the functional module. The certain period includes a power replenishment bit period when the energization data is encoded, and the power supply pulse to activate the pulse power switch is controlled by the transmission unit to provide various kinds of pulse data to the bus. The power switch usually uses a MOS tube whose internal resistance is much smaller than that of a diode.
[0042] The energy storage capacitor stores electrical energy on the bus and provides it to the functional modules and loads.
[0043] The transmission unit transmits data to the bus, and when the main control unit receives data that needs to be transmitted from the user input / output unit, it enables the transmission unit to transmit data to the bus, and when the main control unit detects that the bus has failed to compete, it stops the transmission of the current data and releases the bus. When the transmission of the bus data is completed, it re-activates the transmission unit to continue transmitting data to the bus, and after the transmission is completed, it sets a flag bit corresponding to the completion of the transmission so that the user can query it.
[0044] The receiving unit receives the bus data, and the functional module monitors the bus data all the time, and when it receives data associated with this module, it sets the corresponding receive flag bit for the user to query.
[0045] The bit data encoder and the bit data decoder are usually positive logic type, where logic 0 is represented by low level and logic 1 is represented by high level, during the communication process, if the data output from the power supply module to the functional module contains many logic 1's, the functional module can be powered, and if the data output contains more logic 0's, and all are logic 0's, the functional module may lose power and the whole system may be paralyzed. Therefore, power supply buses such as M-BUS and PowerBUS are usually powered by dual power supplies, where a high voltage on the bus represents a logic 1 and a low voltage represents a logic 0, and this low voltage is usually set to about 10V, which can ensure the normal operation of the functional module.
[0046] However, when functional modules communicate with each other, M-BUS and PowerBUS cannot supply power to those functional modules, so they can only use the master / slave mode, and the power supply module transmits a signal to the functional module, and then in a short period of time, the functional module responds to the power supply module in the form of a current. According to the bit data encoding format: logic bit + power replenishment bit proposed by the bit data encoding / decoding unit in this embodiment, there are two types of logic bits, and for the transmitting module, if the data is 0, it outputs a low level, and if the data is 1, it outputs a high level, and for the non-transmitting module, it releases the bus. It should be noted that the transmitting module may be a power supply module or a functional module. There are two types of power replenishment bits, and for the power supply module, it always outputs a high level. For the functional module, at this time, the power switch tube is turned on, which uses the power supply module to supply power to the functional module, thereby improving the load capacity of the functional module.
[0047] Due to the advantages of this encoding, in this embodiment, in various communication situations, such as data communication from the power supply module to the functional module, from the functional module to the power supply module, and from the functional module to the functional module, even if the communication data is all logical 0, the power supply module can always replenish power to each functional module in a timely manner.
[0048] The main characteristic data of this embodiment, i.e., power bit, start bit, three response bits, logic 0, and logic 1, may all be decomposed into the above format. The main difference between the power bit, start bit, and data bit (which may contain several bits of logic 0 or logic 1, but the number of consecutive logic 1s cannot exceed 6) is that the pulse widths are different, that is, the start bit is wider than the power bit, and the power bit is wider than the data bit.
[0049] Furthermore, compared with M-BUS and PowerBUS, which use a communication method when the bus is idle, this embodiment adopts real-time communication, which has better communication flexibility.
[0050] The capacitance expansion unit is used to lower the resistance of the power supply circuit and improve the load capability of the functional module, allowing the power switch to conduct at a specific time.
[0051] The power supply unit is used to provide electrical energy to each unit in the power supply module.
[0052] The input / output unit is used for data exchange with the user, and has corresponding flag bits, such as reception success flag bit, transmission success flag bit, reception / transmission buffer flag: empty, half empty, full, etc. After reception / transmission is completed, it provides interrupt pins, data bus pins, control pins, etc. to the user.
[0053] The clock regeneration unit is used to obtain the clock signal from the bus signal. Because it is a multi-master communication, each module has its own clock, and if the clocks are not of the same frequency and phase, the whole system will be in chaos. Usually, the clock of the power supply module is used as the reference, and each functional module can obtain the power supply module's own data waveform from the bus and then separate the clock signal as its own clock. The power supply module's own data waveform includes the power supply pulse and the frame synchronization signal.
[0054] The functional main control unit is used to control the functional modules, and includes therein a clock generator, a control sequence circuit, a bus level pulse width counter, a data encoder, a data decoder, a priority identification section, and the like.
[0055] As shown in FIG. 4 and FIG. 5, the multi-master power supply communication principle of this embodiment is as follows.
[0056] When powered on, the power supply module will first enter charging mode, enable the charging unit to charge each functional module on the bus with a constant current, and the internal main control unit will detect the bus level and indicate full charge when the bus level reaches a set value, then disable the charging unit and enable the power supply unit to enter power supply mode.
[0057] In the power supply mode, the power supply module continuously transmits power supply pulses to the bus, and continuously supplies electrical energy to each functional module on the bus. Each functional module is normally powered. In this mode, the main control unit inside it simultaneously detects whether this module wants to transmit data and whether an external module is communicating.
[0058] When this module detects that it wants to transmit data and enters the transmission mode, and detects that an external module is communicating at that time, its internal main control unit will make a priority judgment. If the priority of this module is low, it will stop transmitting data, and at the same time enter the power replenishment mode and provide a power replenishment pulse to the bus. After the data of this frame is transmitted and completed, the power supply module will end the power replenishment mode and retransmit the untransmitted data. After the data transmission is completed, it will end the transmission mode and enter the power supply mode. In response, if the priority of this module is high, it will continue to transmit data until the transmission is completed, and then end the transmission mode and enter the power supply mode.
[0059] In the power supply mode, if the power supply module detects only that an external module is communicating, it enters the power replenishment mode and supplies a power replenishment pulse to the bus. After the bus communication is completed, the power supply module enters the power supply mode.
[0060] In this embodiment, a bus connects the power supply module and the functional module, and charges the functional module via the power supply module before and during communication between the functional modules, and realizes multi-master power supply communication between multiple functional modules using two power lines, which can be easily understood to solve the technical problems of the lack of an efficient multi-master power supply communication system and weak driving ability in the traditional bus communication method.
[0061] Those skilled in the art will appreciate that the structures shown in Figures 2 and 3 are not intended to limit the power supply modules and functional modules, and may include more or less components than those shown in the figures, and may combine certain components or different components.
[0062] An embodiment of the present invention provides a multi-master power supply communication method, and please refer to FIG. 6, which is a schematic flowchart of a first embodiment of a multi-master power supply communication method of the present invention.
[0063] In this embodiment, the multi-master power supply communication method used in the power supply module of the above multi-master power supply communication system includes the following steps:
[0064] Step S100: when a power supply module is powered on or detects that there is no communication data on the bus, transmitting charging data to the bus for charging at least one of the functional modules.
[0065] Specifically, after the power supply module is powered on, in order to avoid damage to the power switch tube caused by the large bus driving current, the large number of functional modules connected to the bus, and the large energy storage capacitors of the functional modules, the power supply module charges the bus with a constant current and fully charges the energy storage capacitors of each functional module.
[0066] After charging with a constant current, detect whether the bus transmits communication data, and if not, transmit charging data to the bus for charging the at least one functional module.
[0067] As shown in FIG. 7, the charging data is the power supply bit+interval level data transmitted from the power supply module to the functional module. In other words, considering that there is a pulsating voltage on the bus and that the large-capacity capacitor on the node is usually an aluminum electrolytic capacitor with relatively poor frequency characteristics, the power supply bit can be set to a wide high level to facilitate charging.
[0068] Step S200: if it is detected that the bus is transmitting communication data, during a preset period of transmitting the communication data, transmitting charging data to the bus to charge the functional module.
[0069] Specifically, when the functional module transmits data to the bus, the charging data transmitted by the power supply module to the bus is the level data of the power replenishment bit. As shown in FIG. 8, when the functional module communicates with other nodes, the power supply module supplies the power replenishment bit to the bus. Otherwise, the functional module will consume all the energy stored in the energy storage capacitor, which may cause an error.
[0070] In addition, when the functional module transmits communication data to the bus, as shown in FIG. 9, the communication data includes at least one logical data bit, the charging data includes at least one charging data bit, and the preset period is after each logical data bit, and the step of transmitting charging data to the bus and charging the functional module during the preset communication data transmission period specifically includes the step of transmitting charging data to the bus after each logical data bit of the communication data to charge the functional module, thereby turning on the second power switch to improve the output current of the functional module when the functional module receives the charging data.
[0071] Furthermore, please note that the functional module must insert a logic 0 after six consecutive logic 1s and must remove this logic 0 when receiving, as shown in Figure 10. If this logic 0 is not inserted, the high level width of the bus will be wide, which will cause a recognition error.
[0072] For ease of understanding, please refer to FIG. 11, which is a schematic flow chart of a second embodiment of a multi-master power supply communication method of the present invention. Based on the first embodiment of the multi-master power supply communication method shown in FIG. 6, this embodiment proposes a second embodiment of a multi-master power supply communication method used in a power supply module or a functional module of a multi-master power supply system. The multi-master power supply communication method includes: Step S300, when receiving a first communication transmission command, transmitting first communication data corresponding to the first communication transmission command to the bus; step S400, when detecting that the bus is transmitting second communication data, determining whether a priority corresponding to the second communication data is higher than a priority of the first communication data; step S500, if yes, performing a transmission waiting operation until the transmission of the second communication data is completed, and returning to the step of transmitting the first communication data corresponding to the first communication transmission command to the bus; Step S600 includes determining whether the transmission of the second communication data is completed, and if completed, releasing the bus; and if no conflict is detected, transmitting a response request to a functional module receiving the second communication data, whereby the functional module transmits response data to the bus according to the response request.
[0073] Specifically, to determine whether the transmission of communication data over the bus is completed, the transmitting module inserts a low level (interval) after transmitting all data, and if no contention is detected, enters a response signal receiving mode. The response signal is transmitted by both the power supply module and the receiving module. The power supply module transmits a non-response bit, and when the transmitting module receives this bit, it means that the receiving module is not found or the receiving module is damaged. If the receiving module receives successfully, it transmits a success response bit, and if not, it transmits a failure response signal.
[0074] In this embodiment, compared to the conventional response method that can only distinguish between successful and unsuccessful reception and cannot distinguish whether the failure of reception is due to a line problem or whether the addressed receiver is not connected to the bus, the present application adds a no-response bit, and when the no-response bit is received, it indicates that the addressed receiver is not on the bus, and when the unsuccessful response bit is received, it indicates that the addressed receiver is on the bus but the received data is incorrect. Therefore, the response method provided by this embodiment can more accurately identify whether the addressed receiver is already on the bus or whether the reception has failed.
[0075] Moreover, in this embodiment, the bus in the multi-master power supply communication system is a broadcast type bus with an independent receiver and transmitter inside, and each module on the bus can monitor the data being transmitted on the bus. When the receiver receives a start bit, this module enters data receiving mode, and if there is data to transmit, it immediately enters transmitting mode, that is, the transmitting mode has priority over the receiving mode; in the transmitting mode, if a contention occurs and the contention fails, it sets a retransmission flag, enters receiving mode, and automatically retransmits after the frame is completed; before transmitting data, the bus is either in an idle state or a communication state, and the transmission process of these two states is described below.
[0076] Furthermore, as shown in FIG. 12, the frame data structure of a functional module transmitting communication data to a bus may be: start bit+synchronization bit+command byte+parameter byte+CRC8+response bit.
[0077] When the bus is in an idle state, ie there is currently no communication, there is only a series of power bits on the bus output by the power supply module.
[0078] In the first case, as shown in FIG. 13, a node transmits data for an "interval" period, at which point the node wants to transmit data and transmits a "start bit" when the "interval" completes. In the second case, as shown in FIG. 14, the node transmits data during the “powered bit” period, at which point if the node wants to transmit data, it immediately transmits a “start bit” (high level) and accumulates the previous high level (t) time. If the bus is in communication, In the first case, as shown in FIG. 15, the "start bit" is not received, and although other nodes are transmitting "start bits", the node fails the contention, stops transmitting data, and enters "automatic retransmission mode". In the second case, as shown in Figure 16, the "start bit" has been received but the synchronization bit has not yet been received. Other nodes are transmitting "sync bits", but the node fails the contention, stops transmitting data, and enters "automatic retransmission mode". In the third case, as shown in Figure 17, a "start bit" has been received but no data bits have been received yet. Another node is transmitting its first data bit, but the first node fails the contention, stops transmitting data, enters "automatic retransmission mode" to transmit the remaining data bits. As shown in Figure 18, the second node fails the contention, stops transmitting data, enters "automatic retransmission mode" to transmit the remaining data bits. In the fourth case, as shown in FIG. 19, data is received, but its priority is high, so the data transmission is stopped, and the data transmission priority is lower than the data reception priority, so no transmission is performed and the device enters the retransmission mode. In the fifth case, as shown in FIG. 20, data is received, but its priority is low, so a "start bit" is transmitted to occupy the bus. In the sixth case, as shown in FIG. 21, when data is received but its priority is the same, the node continues to transmit the data, fails the contention, stops transmitting data, and enters the “automatic retransmission” mode.
[0079] In some embodiments, when a functional module transmits data onto the bus, it transmits the most significant byte first and the least significant byte last, or transmits the most significant bit first and the least significant bit last.
[0080] In addition, as shown in FIG. 22, in order to improve the driving ability of the functional module, when the bus is at a high level, if the functional module does not transmit data, Q1 is a power switch, and at this time, the energy storage capacitor is charged only through the power supply branch circuit D1. Due to this power supply branch circuit, the output current of the functional module should not be too large. When the communication data on the bus is encoded, in the power replenishment bit period, turning on Q1 will greatly increase the output current of the functional module because the switching resistance of the field effect transistor is very low. At the same time, it will not affect the communication.
[0081] In another embodiment, because it is a multi-master communication bus, it is unclear when the entire module transmits data, and the clock frequency and phase of the data transmitted by each module cannot be exactly the same, and errors will always exist, and the combination of these factors may cause communication failure. As shown in FIG. 23, to achieve synchronization between multiple functional modules in multi-master communication, one solution is to disable each functional module before the first rising edge of the power supply bit of the power supply module or during the synchronization bit period, to prohibit each power switch from being turned on, and synchronize the clock phases of all locations with this rising edge, and calculate each clock frequency according to the time of two adjacent rising edges.
[0082] In addition, when receiving third communication data transmitted from the bus, if a second communication transmission command is detected, a reception stop operation is performed, fourth communication data corresponding to the second communication transmission command is obtained, and the fourth communication data is transmitted to the bus.
[0083] In actual use, the bus transmits with preemptive priority, so that high-priority data can completely preempt the transmission of low-priority data in transit, and logic 1 has priority over logic 0 due to the wires or relationships of the lines. In addition to this, there are also cases of contention arbitration, such as: As shown in Figure 24, node 1 wants to transmit data 0x1F, but has already transmitted the upper 4 bits, and at this point, node 2 wants to transmit 0x81, which has a higher priority than node 1, but the most significant bit it received is 0, so it needs to retransmit all of the data (if the received data is the same, it only needs to continue and transmit the next bit), so node 2 starts transmitting a start bit, and the bus goes high, but later node 1 also transmits a high level, so it cannot detect that there is a conflict, and successfully enters the response receive mode, but fails to occupy the bus. In this embodiment, it can insert a low level before receiving a response, and if it detects that the bus is high at this point, it indicates that there is a conflict, sets a retransmission flag, and enters the receive mode, and the bus is occupied.
[0084] In this embodiment, for high voltage, ultra-large current load on the bus, the power switch tube Q1 of the power supply module and the functional module must be large, which not only increases the number of power switch tubes, but also increases the cost and the consumption of electrical energy, which is undesirable in some cases. In this embodiment, a power positive line is added to connect separately to the load of the functional module, and another low power positive line is used for the power supply module and the functional module, and they are shared grounded, so that economical, safe and reliable communication can be realized.
[0085] Moreover, the embodiment of the present invention further proposes a storage medium having a multi-master power supply communication program stored therein, which, when executed by a processor, realizes the steps of the multi-master power supply communication method as described above. Therefore, further details will not be described here. Also, the beneficial effects of using the same method will not be described again. For technical details not disclosed in the embodiment of the computer-readable storage medium of the present application, please refer to the description of the embodiment of the method of the present application. For example, the program instructions may be configured to run on one computing device, on multiple computing devices located at one location, or on multiple computing devices distributed at multiple locations and connected by a communication network.
Claims
1. A 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 being interconnected via a bus; The power supply module transmits charging data to the functional module via the bus, and the functional module receives the charging data via the bus and performs a charging operation; A multi-master power supply communication system, characterized in that the power supply module performs a first transmission operation via the bus to transmit communication data to at least one of the functional modules, and the functional module performs a second transmission operation via the bus to transmit communication data to the power supply module or another of the functional modules.
2. The power supply module includes a power supply main control unit, a charging unit, a power supply unit, a power supplement unit, and a first power switch; the charging unit is used to transmit first charging data to the bus; The power supply main control unit is used to respectively control the power supply unit and the power supplement unit, and transmit charging data to the bus; 2. The multi-master power supply communication system according to claim 1, wherein the first charging unit is connected to the power supply unit and the power replenishment unit, and is used to transmit second charging data and third charging data to the bus.
3. The power supply module further includes a first transmitting module and a first receiving module; the first transmitting module includes a first transmitting unit and a first bit data encoder, the first bit data encoder is used to encode logic data bits and charging data bits into communication data, the first transmitting unit transmits the communication data to the first power switch, so that the first power switch transmits the communication data to a bus; 3. The multi-master power supply communication system of claim 2, wherein 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 a bus, and the first bit data decoder is used to decode the communication data into logic data bits and charging data bits.
4. The functional module includes a functional main control unit, a second transmitting module, a second receiving module and a second power switch; The functional main control unit is used to control the second transmitting module to perform a transmitting operation, and to control the second receiving module to perform a receiving operation; the second transmission module includes a second transmission unit and a second bit data encoder, the second bit data encoder is used to encode logic data bits and charging data bits into communication data, the second transmission unit transmits the communication data to the second power switch, so that the second power switch transmits the communication data to a bus; 4. The multi-master power supply communication system of claim 3, wherein the second receiving module includes a second receiving unit and a second bit data decoder, the second receiving unit is used to receive communication data on a bus, and the second bit data decoder is used to decode the communication data into logic data bits and charging data bits.
5. The functional module further includes a power feed branch circuit and an energy storage capacitor; the power supply branch circuit is used to receive the charging data and charge the energy storage capacitor; 5. The multi-master power supply communication system according to claim 4, wherein the energy storage capacitor is connected to the power supply branch circuit and stores electrical energy corresponding to the charging data received by the power supply branch circuit.
6. A multi-master power supply communication method used in a power supply module of the multi-master power supply communication system according to claim 5, transmitting charging data to the bus for charging at least one functional module when the power supply module is powered on or when detecting that there is no communication data on the bus; and when it is detected that the bus is transmitting communication data, transmitting charging data to the bus during a preset period for transmitting the communication data, thereby charging the functional module.
7. The communication data includes at least one logic data bit, the charging data includes at least one charging data bit, and the preset period is after each logic data bit. The step of transmitting charging data to the bus and charging the functional module during the preset communication data transmission period specifically includes:
7. The multi-master power supply communication method according to claim 6, further comprising: transmitting charging data to a bus after each logical data bit of communication data to charge the functional module, thereby turning on the second power switch to improve the output current of the functional module when the functional module receives the charging data.
8. The multi-master power supply communication method is used for a power supply module or a functional module of the multi-master power supply communication system according to claim 5, receiving a first communication transmission command, transmitting first communication data corresponding to the first communication transmission command to the bus; when detecting that the bus is transmitting second communication data, determining whether a priority corresponding to the second communication data is higher than a priority of the first communication data; if so, performing a transmission waiting operation until the transmission of the second communication data is completed, and returning to the step of transmitting the first communication data corresponding to the first communication transmission command to the bus; determining whether the transmission of the second communication data is completed, and releasing the bus if so; and transmitting a response request to a functional module receiving the second communication data if no contention is detected, thereby causing the functional module to transmit response data to the bus according to the response request.
9. The multi-master power supply communication method includes: executing a reception stop operation when detecting a second communication transmission command when receiving the third communication data transmitted from the bus; 9. The multi-master power supply communication method according to claim 8, further comprising: obtaining fourth communication data corresponding to the second communication transmission command; and transmitting the fourth communication data to the bus.
10. A multi-master power supply communication device, A power supply module including a memory, a processor, and a multi-master power supply communication program stored in the memory and executable on the processor, the multi-master power supply communication program executing the steps of the multi-master power supply communication method according to claim 6 or 7 when executed by the processor; 10. A multi-master power supply communication device comprising: a memory; a processor; and a functional module including a multi-master power supply communication program stored in the memory and executable on the processor, the functional module executing steps of the multi-master power supply communication method according to claim 8 or 9 when the multi-master power supply communication program is executed by the processor.
Citation Information
Patent Citations
Time sharing multiplex transmission controller
JP1981138393A
Method of transmitting data electronically and apparatus therfor
JP1989093943A