Synchronous start control method and system for multiple parallel operation devices based on can communication
By separating the DSP interrupt mechanism and the CAN bus design, the problem of asynchronous startup control of multiple parallel devices is solved, achieving high-precision synchronous startup and consistent current response, reducing failure rate and current sharing issues.
Patent Information
- Application Number
- CN202511351760.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-22
- Publication Date
- 2025-12-12
AI Technical Summary
When multiple parallel devices based on CAN communication are started, there are problems such as asynchronous start-up control, prolonged dynamic current response time, and uneven current distribution.
The system employs a DSP interrupt mechanism, sending synchronization commands via the first CAN bus and generating interrupts in the DSP to ensure high synchronization between the master and slave devices. It also utilizes the second CAN bus to receive start commands from external control devices, reducing interference and achieving high-precision real-time control.
It achieves high synchronization between the master and slave devices, shortens the synchronization startup delay to the microsecond level, improves the consistency of current response, and reduces the failure rate and current sharing issues.
Smart Images

Figure CN121125387A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of power electronics, and more particularly, to a synchronous starting control method and system for multiple parallel connection devices based on CAN communication. BACKGROUND
[0002] The existing battery charging and discharging products in the market usually adopt CAN bus to connect each node for parallel connection communication when multiple channels are connected in parallel. When starting, the starting instruction is usually issued by the monitoring end. Each node (parallel connection module) of the parallel connection receives the starting command (message) and does not immediately parse the message to execute the starting command, but uniformly stores the message in the RAM buffer. After waiting for the CAN parsing task to parse and find the starting command (message), the starting logic processing is performed. Until the starting logic processing is completed, the current output control is performed. This process may delay for several ms before the current is output. The time points of current output of different nodes (modules) are not strictly aligned, and some output the current first and some output the current later, which may cause the dynamic response time of starting to be long and the uneven current of channels.
[0003] Therefore, there is a need for a new solution. SUMMARY
[0004] The present application aims to provide a synchronous starting control method and system for multiple parallel connection devices based on CAN communication to solve the problem of asynchronous starting control (referring to large current starting and stopping) of multiple parallel connection devices based on CAN communication and the problems of current dynamic response time, uneven starting current and dynamic waveform index not meeting the standards caused by the problem.
[0005] According to an aspect of the present application, a synchronous starting control method for multiple parallel connection devices based on CAN communication is provided, comprising the following steps:
[0006] The parallel connection device as the master sends a synchronization instruction to the multiple parallel connection devices as slaves, generates a sending completion interrupt in the DSP after the sending is completed;
[0007] Each parallel connection device as a slave generates a receiving completion interrupt in the DSP after receiving the synchronization instruction;
[0008] The parallel connection device as the master executes a starting function in the sending completion interrupt and starts the current response; and
[0009] Each parallel connection device as a slave synchronously executes the starting function in the receiving completion interrupt and performs the current response.
[0010] In the method for controlling the synchronization start of the plurality of parallel devices based on the CAN communication, the plurality of parallel devices are connected in communication through a first CAN bus, and the parallel device as the master sends the synchronization instruction to the plurality of parallel devices as the slaves by sending the synchronization frame message on the first CAN bus.
[0011] In the method for controlling the synchronization start of the plurality of parallel devices based on the CAN communication, the plurality of parallel devices are connected to the external control device through a second CAN bus, and the parallel device as the master sends the synchronization instruction to the plurality of parallel devices as the slaves, and before the step of generating the sending completion interrupt in the DSP after the sending is completed, the method further comprises:
[0012] The parallel device as the master receives the start instruction from the external control device through the second CAN bus.
[0013] According to another aspect of the present application, there is further provided a system for controlling the synchronization start of the plurality of parallel devices based on the CAN communication, for the parallel devices, comprising a synchronization instruction module and a start function execution module,
[0014] The synchronization instruction module of the parallel device as the master is used to send the synchronization instruction to the plurality of parallel devices as the slaves, and to generate the sending completion interrupt in the DSP after the sending is completed;
[0015] The synchronization instruction module of each parallel device as the slave is used to generate the receiving completion interrupt in the DSP after the synchronization instruction is received;
[0016] The start function execution module of the parallel device as the master is used to execute the start function in the sending completion interrupt, and to start the current response; and
[0017] The start function execution module of each parallel device as the slave is used to execute the start function in the receiving completion interrupt and to perform the current response.
[0018] In the system for controlling the synchronization start of the plurality of parallel devices based on the CAN communication, the plurality of parallel devices are connected in communication through a first CAN bus, and the synchronization instruction module of the parallel device as the master sends the synchronization instruction to the plurality of parallel devices as the slaves by sending the synchronization frame message on the first CAN bus.
[0019] In the system for controlling the synchronization start of the plurality of parallel devices based on the CAN communication, the plurality of parallel devices are connected to the external control device through a second CAN bus, and the system further comprises a start instruction receiving module, which is used to receive the start instruction from the external control device by the parallel device as the master through the second CAN bus.
[0020] According to still another aspect of the present application, there is further provided a synchronization starting control device for a plurality of parallel machines based on CAN communication, comprising a processor and a memory, the memory storing a computer program, the computer program being executed by the processor to implement the steps of the synchronization starting control method for a plurality of parallel machines based on CAN communication as described above.
[0021] According to still another aspect of the present application, there is further provided a computer readable storage medium, the computer readable storage medium storing a computer program, the computer program being executed by a processor to implement the method as described above.
[0022] The synchronization starting control method and system for a plurality of parallel machines based on CAN communication according to the present application have the following beneficial effects: the synchronization starting control method based on CAN bus according to the present application ensures high synchronization between the master and slave devices through the DSP interrupt mechanism; high-precision real-time control is achieved by using the DSP interrupt mechanism, thereby ensuring synchronization starting; the first CAN bus is dedicated to communication of the parallel machines, and the second CAN bus is used for communication between the external control device and the master, thereby reducing interference; by controlling sending and receiving of the synchronization instruction, the synchronization starting can be delayed to the microsecond level, thereby greatly improving consistency of current response; this method not only improves dynamic response performance of the devices, but also reduces failure rate and current sharing problems that may occur during starting of the plurality of parallel machines. BRIEF DESCRIPTION OF DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained without creative labor based on the provided drawings:
[0024] Figure 1 Fig. 1 shows a flowchart of a synchronization starting control method for a plurality of parallel machines based on CAN communication according to an embodiment of the present application;
[0025] Figure 2 Fig. 2 shows a starting delay using the prior art method;
[0026] Figure 3 Fig. 3 shows a starting delay using the control method according to the present application. DETAILED DESCRIPTION
[0027] To facilitate understanding of the present invention, a more complete description will be given below with reference to the accompanying drawings. Typical embodiments of the invention are shown in the drawings. However, the invention can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
[0028] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
[0029] Figure 1 The diagram illustrates a flowchart of a synchronous startup control method for multiple parallel devices based on CAN communication, according to an embodiment of the present invention. Multiple parallel devices are connected via a first CAN bus, and these devices are connected to an external control device via a second CAN bus. This invention uses the first CAN bus as the parallel communication CAN bus for synchronous startup control. Multiple parallel devices are physically connected via the first CAN bus, which only handles parallel-related communication, providing more real-time communication performance. The host device receives startup commands from the external control device via the second CAN bus. The external control device is typically used for monitoring and commanding the overall system and can be a central controller or a remote control device. The second CAN bus connects the host device and the external control device, serving as a medium for command reception and transmission.
[0030] like Figure 1 As shown, the synchronous start-up control method for multiple parallel devices based on CAN communication provided by the present invention includes the following steps:
[0031] Step S0: The parallel device acting as the host receives a start command from the external control device via the second CAN bus.
[0032] Specifically, in one embodiment of the present invention, an external control device sends a start command to the host device according to the needs of the system; the start command is transmitted to the host device on the second CAN bus. Through the dedicated communication of the second CAN bus, communication interference between the host and parallel devices can be avoided, ensuring accurate signal transmission.
[0033] Step S1: The parallel device acting as the master sends a synchronization command to multiple parallel devices acting as slaves. After the transmission is completed, a transmission completion interrupt is generated in the DSP.
[0034] Specifically, in one embodiment of the present invention, the synchronization command is a control signal used to initiate coordination between parallel devices. After receiving the start command, the master device begins sending synchronization commands to each slave device via the first CAN bus. Multiple parallel devices are connected via the first CAN bus, and the master parallel device sends synchronization commands to the multiple slave parallel devices by sending synchronization frame messages on the first CAN bus. The master device generates the synchronization command, encapsulates it into a CAN frame, and sends it to all slave devices via the first CAN bus; after transmission is complete, the master device's DSP generates a "transmission completion interrupt," notifying the system that the transmission of the synchronization command has been completed.
[0035] In this step, the master device controls the startup time of the slave device through synchronization commands. Utilizing the first CAN bus for communication ensures real-time data transmission and reduces interference from other devices' communication.
[0036] Step S2: After receiving the synchronization command, each parallel device acting as a slave generates a receive completion interrupt in the DSP;
[0037] Specifically, in one embodiment of the present invention, the slave device receives a synchronization command from the master device via a first CAN bus; the interrupt controller in the DSP triggers a "receive completion interrupt," informing the system that the synchronization command has been successfully received and is ready to start; each slave device waits for the startup opportunity. By receiving the synchronization command and generating a receive completion interrupt, each slave device can ensure that it starts executing the startup function at the correct time. This ensures that all slave devices achieve a high degree of synchronization during startup, avoiding the problem of inconsistent current.
[0038] Step S3: The parallel device acting as the master executes the start function in the transmission completion interrupt and begins to respond to the current.
[0039] Specifically, in one embodiment of the present invention, when the host device triggers a "transmission completion interrupt" after the synchronization command is sent, the host device executes a startup function and begins current response. The host device first initiates its own current control process and synchronously coordinates with the slave devices. Specifically, the host device's DSP responds to the transmission completion interrupt and executes the startup function; the startup function generates a current response through the host device's control algorithm, causing the host device's current to begin flowing according to a predetermined strategy; the startup process of the host current response typically relies on the current control module within the host device, using technologies such as switching power supplies and PWM control to regulate the current. The host device's startup plays a guiding role in the entire system, and its current response provides a reference for the startup of the slave devices, ensuring that the slave devices' startup closely follows the host's pace.
[0040] Step S4: Each parallel device, acting as a slave, synchronously executes the startup function and performs a current response during the receive completion interrupt.
[0041] Specifically, in one embodiment of the present invention, after receiving a synchronization command from the master device, each slave device synchronously executes a startup function and begins current response after a receive completion interrupt is triggered. Specifically, each slave device triggers its own startup function based on the receive completion interrupt of the synchronization command; the startup function is executed in the slave DSP, and the slave device begins to initiate current response according to the master's instructions; the current response of the slave device remains synchronized with that of the master device to avoid inconsistencies in current due to time differences and ensure stable system operation. The startup of the slave device must be synchronized with the master to ensure that the current response remains consistent throughout the parallel system. If the current startup sequence of different devices differs, it may lead to unbalanced system load or even failure. Therefore, the slave device must accurately execute the startup function after the receive completion interrupt and synchronously initiate current response.
[0042] The synchronous startup control method based on CAN bus provided by this invention ensures a high degree of synchronization between the master and slave devices through a DSP interrupt mechanism. High-precision real-time control is achieved using the DSP interrupt mechanism to guarantee synchronous startup. The first CAN bus is dedicated to communication between parallel devices, and the second CAN bus is used for communication between external control devices and the master, reducing interference. By controlling the sending and receiving of synchronization commands, the synchronous startup delay can be controlled at the microsecond level, greatly improving the consistency of current response. This method not only improves the dynamic response performance of the equipment but also reduces the failure rate and current sharing problems that may occur when multiple devices are started in parallel.
[0043] Figure 2 The figure shows the startup delay using existing technology. Figure 3 The diagram shows the startup delay using the control method of this invention. Figure 2 As shown, the existing control method does not align the timing of current output from each channel very well. The time difference between the first and last channel to output current is between several hundred microseconds and several milliseconds, and the order of current output is random. This ultimately leads to a lengthening of the overall current response time by several hundred microseconds to several milliseconds. However, as... Figure 3 As shown, after using synchronous start control, the time difference of current output from each channel is shortened to less than 20µs. This means that the dynamic response time of the overall current is consistent with the dynamic response time of the small channels, reducing the problem of dynamic time extension caused by asynchronous start-up between small channels.
[0044] According to another aspect of the present invention, a synchronous start-up control system for multiple parallel devices based on CAN communication is also provided. The system includes a synchronization instruction module and a start-up function execution module. The synchronization instruction module of the master parallel device is used to send a synchronization instruction to the multiple parallel devices as slave devices, and generates a transmission completion interrupt in a DSP after the transmission is completed. Upon receiving the synchronization instruction, the synchronization instruction module of each slave parallel device generates a reception completion interrupt in the DSP. The start-up function execution module of the master parallel device is used to execute a start-up function during the transmission completion interrupt to begin current response. The start-up function execution module of each slave parallel device is used to synchronously execute the start-up function and perform current response during the reception completion interrupt.
[0045] In the synchronous start-up control system for multiple parallel devices based on CAN communication provided by the present invention, multiple parallel devices are connected for communication through a first CAN bus. The synchronization instruction module of the master parallel device sends synchronization instructions to the multiple parallel devices as slave devices by sending synchronization frame messages on the first CAN bus.
[0046] In the synchronous start-up control system for multiple parallel devices based on CAN communication provided by the present invention, the multiple parallel devices are connected to an external control device through a second CAN bus. The synchronous start-up control system further includes a start-up command receiving module, which is used for the parallel device acting as the host to receive a start-up command from the external control device through the second CAN bus.
[0047] This invention also provides a synchronous start-up control device for multiple parallel devices based on CAN communication, which may include:
[0048] Memory, used to store computer programs;
[0049] When a processor executes a computer program stored in the aforementioned memory, it can perform the following steps:
[0050] The master parallel device sends a synchronization command to multiple slave parallel devices, and generates a transmission completion interrupt in the DSP after the transmission is completed; each slave parallel device generates a reception completion interrupt in the DSP after receiving the synchronization command; the master parallel device executes a start function in the transmission completion interrupt to begin current response; and each slave parallel device synchronously executes the start function and performs current response in the reception completion interrupt.
[0051] This invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, can perform the following steps;
[0052] The master parallel device sends a synchronization command to multiple slave parallel devices, and generates a transmission completion interrupt in the DSP after the transmission is completed; each slave parallel device generates a reception completion interrupt in the DSP after receiving the synchronization command; the master parallel device executes a start function in the transmission completion interrupt to begin current response; and each slave parallel device synchronously executes the start function and performs current response in the reception completion interrupt.
[0053] The computer-readable storage medium may include various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM) > random access memory (RAM), magnetic disks, or optical disks.
[0054] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.
[0055] Similarly, it should be understood that, in order to simplify this disclosure and aid in understanding one or more of the various aspects of the invention, in the above description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof. However, this method of disclosure should not be construed as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as reflected in the following claims, inventive aspects lie in fewer than all features of a single foregoing disclosed embodiment. Therefore, the claims following the detailed description are hereby expressly incorporated into this detailed description, wherein each claim itself is a separate embodiment of the invention.
[0056] Those skilled in the art will understand that modules in the device of the embodiments can be adaptively changed and placed in one or more devices different from that embodiment. Modules, units, or components in the embodiments can be combined into a single module, unit, or component, and further, they can be divided into multiple sub-modules, sub-units, or sub-components. Except where at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all features disclosed in this specification (including the accompanying claims, abstract, and drawings) and all processes or units of any method or device so disclosed. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstract, and drawings) may be replaced by an alternative feature that serves the same, equivalent, or similar purpose.
[0057] Furthermore, those skilled in the art will understand that although some embodiments herein include certain features included in other embodiments but not others, combinations of features from different embodiments are intended to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.
[0058] The various component embodiments of the present invention can be implemented in hardware, or as software modules running on one or more processors, or a combination thereof. Those skilled in the art will understand that microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some or all of the components according to the embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., a computer program and computer program product) for performing part or all of the methods described herein. Such programs implementing the present invention can be stored on a computer-readable medium, or can be in the form of one or more signals. Such signals can be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
[0059] It should be noted that the above embodiments are illustrative of the invention and not restrictive, and that those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names.
Claims
1. A method for synchronous start-up control of multiple parallel devices based on CAN communication, characterized in that, Includes the following steps: The parallel device acting as the master sends a synchronization command to multiple parallel devices acting as slaves. After the transmission is completed, a transmission completion interrupt is generated in the DSP. Each parallel device acting as a slave generates a receive completion interrupt in the DSP after receiving the synchronization command; The parallel device acting as the master executes the start function during the transmission completion interrupt and begins to respond to current. as well as Each parallel device, acting as a slave, synchronously executes the startup function and responds to current during the completion interrupt.
2. The synchronous start-up control method for multiple parallel devices based on CAN communication according to claim 1, characterized in that, Multiple parallel devices are connected for communication via a first CAN bus. The master parallel device sends synchronization commands to the multiple slave parallel devices by sending synchronization frame messages on the first CAN bus.
3. The synchronous start-up control method for multiple parallel devices based on CAN communication according to claim 1, characterized in that, The multiple parallel devices are connected to an external control device via a second CAN bus. Before the step of the master parallel device sending a synchronization command to the multiple slave parallel devices and generating a transmission completion interrupt in the DSP after the transmission is completed, the following steps are also included: The parallel device acting as the host receives the start command from the external control device via the second CAN bus.
4. A synchronous start-up control system for multiple parallel devices based on CAN communication, for the parallel devices, characterized in that, Includes a synchronization instruction module and a startup function execution module. The synchronization instruction module of the parallel device acting as the master is used to send synchronization instructions to multiple parallel devices acting as slaves, and generates a transmission completion interrupt in the DSP after the transmission is completed. Upon receiving the synchronization instruction, the synchronization instruction module of each parallel device acting as a slave generates a receive completion interrupt in the DSP. The startup function execution module of the parallel device, which acts as the host, is used to execute the startup function during the transmission completion interrupt to begin the current response; as well as The startup function execution module of each parallel device, acting as a slave, is used to synchronously execute the startup function and perform current response during the receive completion interrupt.
5. The synchronous start-up control system for multiple parallel devices based on CAN communication according to claim 4, characterized in that, Multiple parallel devices are connected for communication via a first CAN bus. The synchronization instruction module of the master parallel device sends synchronization instructions to the multiple parallel devices acting as slave devices by sending synchronization frame messages on the first CAN bus.
6. The synchronous start-up control system for multiple parallel devices based on CAN communication according to claim 4, characterized in that, The multiple parallel devices are connected to an external control device via a second CAN bus. The synchronous start control system further includes a start command receiving module, which is used for the parallel device acting as the host to receive start commands from the external control device via the second CAN bus.
7. A synchronous start-up control device for multiple parallel devices based on CAN communication, characterized in that, It includes a processor and a memory, the memory storing a computer program, which, when executed by the processor, implements the steps of the synchronous startup control method for multiple parallel devices based on CAN communication as described in any one of claims 1 to 3.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, it implements the method of any one of claims 1 to 3.