A method, device, system, vehicle and storage medium for controlling signal synchronization
By using the synchronous clock signal and phase difference calculation between the master control unit and the slave control unit in the electric vehicle motor system, and using the phase-locked loop PLL to adjust the phase synchronization, the problem of out-of-synchronization of the PWM signals of multiple sets of drive units is solved and achieved The signal synchronization of the motor system reduces vehicle vibration and improves driving comfort.
Patent Information
- Application Number
- CN202011011018.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-23
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2040-09-23
AI Technical Summary
The PWM signal synchronization problem of multiple drive units in the electric vehicle motor system causes torque fluctuations and vehicle vibration, affecting driving comfort.
Through the calculation of the synchronous clock signal and phase difference between the master control unit and the slave control unit, the phase-locked loop PLL is used to adjust the phase synchronization to ensure that the phases of the first carrier signal and the second carrier signal are consistent, thereby generating a synchronous PWM signal to control motor.
It achieves synchronization of PWM signals in the motor system, reduces abnormal vibration during vehicle driving, and improves driving comfort.
Smart Images

Figure CN112152612B
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to signal synchronization technology, and more particularly to a method, device, system, vehicle and storage medium for controlling signal synchronization. Background Art
[0002] With the shortage of energy and the deterioration of the environment, electric vehicles are receiving more and more attention. As the power source of electric vehicles, the reliability and stability of the electric drive system directly determine the safety and comfort of electric vehicles.
[0003] The motor system of electric vehicles includes a motor control unit, which generates a pulse width modulation (PWM) control signal to control the drive control unit and the insulated gate bipolar transistor (IGBT) module to drive the motor. If the motor system is driven by more than one set of drive control units and IGBT modules, the issue of whether the PWM control signals of more than one set of drivers are synchronized will be involved. If the PWM synchronization phase deviates, a certain torque fluctuation will occur, which will cause the vehicle to vibrate to varying degrees, seriously affecting driving comfort.
[0004] In the prior art, the PWM signal is synchronized using an internal clock and an external clock. However, the clock system can only ensure phase synchronization at the current moment. At the next pulse cycle, the internal clock will have characteristic deviations as the usage time increases, so that the phase of the internal clock signal deviates from the phase of the external clock signal, which will still cause vibration and torque fluctuations. Summary of the invention
[0005] Embodiments of the present invention provide a method, device, system, vehicle and storage medium for controlling signal synchronization to achieve synchronization of PWM signals, thereby reducing abnormal vibrations generated during vehicle driving.
[0006] In a first aspect, an embodiment of the present invention provides a method for synchronizing a control signal, which is applied to a system for synchronizing a control signal on a vehicle, wherein the system for synchronizing a control signal includes a master control unit, a slave control unit, a first drive unit, a second drive unit, and a motor, wherein the master control unit is connected to the first drive unit, the slave control unit is connected to the second drive unit, and the first drive unit and the second drive unit are connected to the motor, and the method includes:
[0007] The main control unit generates a synchronous clock signal according to a first carrier signal, wherein the first carrier signal is generated by the main control unit;
[0008] The slave control unit receives the synchronous clock signal, and calculates a phase difference between the synchronous clock signal and a second carrier signal, wherein the second carrier signal is generated by the slave control unit;
[0009] The slave control unit adjusts and controls the phase synchronization of the second carrier signal and the first carrier signal through a phase-locked loop (PLL) according to the phase difference;
[0010] The main control unit generates a first pulse width modulation (PWM) signal according to the first carrier signal and the command signal, and the slave control unit generates a second PWM signal according to the second carrier signal and the command signal, wherein the first PWM signal is used to control the first drive unit, and the second PWM signal is used to control the second drive unit, and the first drive unit and the second drive unit are used to drive the motor.
[0011] In a second aspect, an embodiment of the present invention provides a control signal synchronization device, a control signal synchronization system integrated in a vehicle, the control signal synchronization system comprising a master control unit, a slave control unit, a first drive unit, a second drive unit and a motor, the master control unit is connected to the first drive unit, the slave control unit is connected to the second drive unit, the first drive unit and the second drive unit are connected to the motor, and the device comprises:
[0012] A clock signal generating module and a first signal generating module configured in the main control unit, and a phase difference determining module, a phase synchronization control module and a second signal generating module configured in the slave control unit;
[0013] The clock signal generating module is used to generate a synchronous clock signal according to a first carrier signal, wherein the first carrier signal is generated by the main control unit;
[0014] The phase difference determination module is used to receive the synchronous clock signal and calculate the phase difference between the synchronous clock signal and a second carrier signal, wherein the second carrier signal is generated by the slave control unit;
[0015] The phase synchronization control module is used to adjust and control the phase synchronization of the second carrier signal and the first carrier signal through a phase-locked loop PLL according to the phase difference;
[0016] The first signal generating module is used to generate a first pulse width modulation (PWM) signal according to the first carrier signal and the command signal, and the second signal generating module is used to generate a second PWM signal according to the second carrier signal and the command signal, wherein the first PWM signal is used to control the first drive unit, and the second PWM signal is used to control the second drive unit, and the first drive unit and the second drive unit are used to drive the motor.
[0017] In a third aspect, an embodiment of the present invention provides a system for controlling signal synchronization, the system comprising:
[0018] A main control unit, a slave control unit, a first drive unit, a second drive unit and a motor, wherein the main control unit is connected to the first drive unit, the slave control unit is connected to the second drive unit, and the first drive unit and the second drive unit are connected to the motor;
[0019] The master control unit and the slave control unit each include one or more processors, a memory, and a computer program stored in the memory and executable on the processor;
[0020] When the one or more programs are executed by the one or more processors, the one or more processors implement the control signal synchronization method described in any embodiment of the present invention.
[0021] In a fourth aspect, an embodiment of the present invention provides a vehicle, in which the system for synchronizing control signals as described in the third aspect is installed.
[0022] In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for synchronizing control signals described in any embodiment of the present invention.
[0023] The embodiments of the present invention provide a method, device, system, vehicle and storage medium for controlling signal synchronization. First, a main control unit generates a synchronous clock signal according to a first carrier signal. Then, a slave control unit receives the synchronous clock signal and calculates a phase difference between the synchronous clock signal and a second carrier signal. Then, the slave control unit adjusts and controls the phase synchronization of the second carrier signal and the first carrier signal through a phase-locked loop (PLL) according to the phase difference. Finally, the main control unit generates a first pulse width modulation (PWM) signal according to the first carrier signal and a command signal, and the slave control unit generates a second PWM signal according to the second carrier signal and the command signal. This solves the problem of asynchronous PWM signals when a motor system is driven by more than one set of drive units, realizes synchronization of PWM signals, thereby reducing abnormal vibrations generated during vehicle driving and improving vehicle driving comfort. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1A A flowchart of a method for controlling signal synchronization provided in Embodiment 1 of the present invention;
[0025] Figure 1B A schematic diagram of carrier signal synchronization between a master control unit and a slave control unit in the method provided in Embodiment 1 of the present invention;
[0026] Figure 2A A flowchart of a method for controlling signal synchronization provided in Embodiment 2 of the present invention;
[0027] Figure 2B A schematic diagram of PLL adjustment in the method provided in Embodiment 2 of the present invention;
[0028] Figure 3 A schematic diagram of the structure of a device for controlling signal synchronization provided by Embodiment 3 of the present invention;
[0029] Figure 4 A structural diagram of a system for controlling signal synchronization provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0030] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0031] Embodiment 1
[0032] Figure 1A This is a flow chart of a method for controlling signal synchronization provided in Embodiment 1 of the present invention. This embodiment is applicable to the case where a motor system in a vehicle (especially an electric vehicle) is driven by more than one set of drive units and a PWM signal is controlled for synchronization. The method for controlling signal synchronization provided in this embodiment can be executed by a device for controlling signal synchronization provided in an embodiment of the present invention. The device can be implemented in software and / or hardware and integrated in a system for executing this method.
[0033] It should be noted that in the embodiment of the present invention, two drive units, namely the first drive unit and the second drive unit, and two control units, namely the main control unit and the slave control unit, are used as examples to illustrate the method of synchronizing control signals. In actual application, the number of control units and drive units may depend on the specific situation.
[0034] Optionally, when the number of drive units is large, the number of control units is consistent with the number of drive units. In this case, every two control units can be grouped together in turn, one of which is the main control unit and the other is a slave control unit. Assuming there are four control units, namely control unit 1, control unit 2, control unit 3 and control unit 4, control unit 1 and control unit 2 can be grouped together, control unit 1 is the main control unit and control unit 2 is the slave control unit; control unit 2 and control unit 3 can be grouped together, control unit 2 is the main control unit and control unit 3 is the slave control unit; and so on, every two adjacent control units are grouped together, the former control unit is the main control unit and the latter control unit is the slave control unit. Through such division, when the number of control units and drive units is large, the method of the present invention can still be used to keep the generated multiple PWM signals synchronized.
[0035] See also Figure 1A The method of this embodiment includes but is not limited to the following steps:
[0036] S110: The main control unit generates a synchronous clock signal according to the first carrier signal.
[0037] The first carrier signal is generated by the main control unit. Specifically, the main control unit may include a main controller and a control chip, the control chip is loaded with a corresponding hardware configuration method, and the first carrier signal may be a triangular carrier generated by a chip configured in the main control unit.
[0038] Since the second PWM signal is related to the second carrier signal, and the first PWM signal is related to the first carrier signal, in order to achieve synchronization between the second PWM signal and the first PWM signal, thereby controlling the motor accordingly, it is first necessary to synchronize the first carrier signal with the second carrier signal. At this time, an intermediate quantity is required. The main control unit can generate a synchronous clock signal as an intermediate quantity based on the first carrier signal, and the synchronous clock signal can be a square wave signal.
[0039] Optionally, the main control unit generates a synchronous clock signal according to the first carrier signal, which may specifically include: the main control unit generates a corresponding synchronous clock signal based on a period of the first carrier signal.
[0040] Specifically, after the first carrier signal is generated, its period has been determined. At this time, the main control unit can generate a synchronous clock signal with the same period as the first carrier signal based on the period of the first carrier signal, and send the synchronous clock signal to the slave control unit. Specifically, the synchronous clock signal can be generated by the control chip in the main control unit.
[0041] The embodiment of the present invention generates a corresponding synchronization clock signal based on the period of the first carrier signal, so that the synchronization clock signal and the first carrier signal have the same period and phase. Therefore, the synchronization clock signal can be used as a reference to facilitate the subsequent acquisition of the phase difference between the synchronization clock signal and the second carrier signal.
[0042] S120, the slave control unit receives the synchronous clock signal, and calculates a phase difference between the synchronous clock signal and a second carrier signal.
[0043] The second carrier signal is generated by the slave control unit. Specifically, the slave control unit may include a slave controller and a control chip, the control chip is loaded with a corresponding hardware configuration method, and the second carrier signal may be a triangular carrier generated by a chip configured in the slave control unit.
[0044] After the slave control unit receives the synchronization clock signal sent by the main control unit, the phase difference between the synchronization clock signal and the second carrier signal can be calculated. Since the period of the synchronization clock signal is the same as the period of the first carrier signal, the phase difference is also the phase difference between the second carrier signal and the first carrier signal, which facilitates the subsequent adjustment according to the phase difference to control the phase synchronization of the second carrier signal and the first carrier signal.
[0045] S130: The slave control unit adjusts and controls the phase synchronization of the second carrier signal and the first carrier signal through a phase-locked loop (PLL) according to the phase difference.
[0046] After determining the phase difference between the synchronous clock signal and the second carrier signal, the control unit can adjust the phase difference through a phase-locked loop (PLL) according to the phase difference, so that the phase difference between the second carrier signal and the synchronous clock signal becomes smaller and smaller until the second carrier signal and the first carrier signal are phase-synchronized. The carrier signal can be synchronized through the phase-locked loop PLL adjustment, and then the first PWM signal and the second PWM signal in the subsequent S140 are also synchronized, which can avoid abnormal vibration problems in the vehicle driving process caused by torque fluctuations due to signal asynchrony, thereby making the driving experience better and the user more comfortable.
[0047] Specifically, Figure 1B Schematic diagram of carrier signal synchronization between the master control unit and the slave control unit in the method provided in Embodiment 1 of the present invention, such as Figure 1B As shown:
[0048] The first carrier signal is a continuous triangular carrier signal generated by the main control unit, the synchronous clock signal is a square wave signal with the same period as the first carrier signal, and the second carrier signal is a continuous triangular carrier signal generated by the slave control unit. By calculating the phase difference between the synchronous clock signal and the second carrier signal and adjusting it through PLL, the phase of the second carrier signal and the first carrier signal are finally synchronized.
[0049] S140, the master control unit generates a first pulse width modulation (PWM) signal according to the first carrier signal and the command signal, and the slave control unit generates a second PWM signal according to the second carrier signal and the command signal.
[0050] The first PWM signal is used to control the first drive unit, the second PWM signal is used to control the second drive unit, the first drive unit and the second drive unit are used to drive the motor, the first drive unit may be a first drive control unit and an IGBT module, and the second drive unit may be a second drive control unit and an IGBT module.
[0051] When the motor control unit driving the motor in the vehicle includes two control units, namely a main control unit and a slave control unit, the main control unit can generate a first PWM signal according to the first carrier signal and the acquired command signal. Similarly, the slave control unit can also generate a second PWM signal according to the second carrier signal and the command signal. Since the phase synchronization of the second carrier signal and the first carrier signal has been controlled in S130, the phases of the first PWM signal and the second PWM signal generated at this time are also synchronized, and the first PWM signal and the second PWM signal are also synchronized, which can avoid the abnormal vibration problem caused by torque fluctuations due to signal asynchrony during vehicle driving, thereby making the driving experience better and the user more comfortable. Therefore, the problem of asynchronous PWM signals when the motor system is driven by more than one set of drive units is solved.
[0052] Optionally, the control signal synchronization system may further include a vehicle control unit; the command signal includes a torque signal or a speed signal generated by the vehicle control unit.
[0053] The control signal synchronization system may also include a vehicle control unit, which is the core electronic control unit for implementing vehicle control decisions. The command signal may specifically include: a torque signal or a speed signal generated by the vehicle control unit, and the vehicle control unit sends the generated torque signal or speed signal to the main control unit and the slave control unit, so that the main control unit generates a first PWM signal according to the first carrier signal and the torque signal or speed signal, and the slave control unit generates a second PWM signal according to the second carrier signal and the torque signal or speed signal, and then controls the first drive unit through the first PWM signal, controls the second drive unit through the second PWM signal, and the first drive unit and the second drive unit drive the motor, so that the motor can rotate according to the corresponding torque signal or speed signal.
[0054] The technical solution provided in this embodiment is as follows: first, the main control unit generates a synchronous clock signal according to the first carrier signal, then the slave control unit receives the synchronous clock signal and calculates the phase difference between the synchronous clock signal and the second carrier signal, then the slave control unit adjusts and controls the phase synchronization of the second carrier signal and the first carrier signal through the phase-locked loop PLL according to the phase difference, and finally the main control unit generates a first PWM signal according to the first carrier signal and the command signal, and the slave control unit generates a second PWM signal according to the second carrier signal and the command signal, which solves the problem of asynchronous PWM signals generated when the motor system is driven by more than one set of drive units, realizes the synchronization of PWM signals, thereby reducing abnormal vibrations generated during vehicle driving and improving vehicle driving comfort.
[0055] Embodiment 2
[0056] Figure 2A A flowchart of a method for controlling signal synchronization provided by Embodiment 2 of the present invention. The embodiment of the present invention is optimized on the basis of the above embodiment. Optionally, the present embodiment provides a detailed explanation of the process of controlling the phase synchronization of the second carrier signal and the first carrier signal.
[0057] See also Figure 2A The method of this embodiment includes but is not limited to the following steps:
[0058] S210: The main control unit generates a synchronous clock signal according to the first carrier signal.
[0059] S220, the slave control unit receives the synchronization clock signal, and calculates a phase difference between the synchronization clock signal and the second carrier signal.
[0060] S230: The slave control unit controls the phase difference through a proportional-integral (PI) controller in a PLL adjustment to achieve phase synchronization between the second carrier signal and the first carrier signal.
[0061] The control unit adjusts the phase difference through the proportional integral PI (Proportional Integral, PI for short) controller in the PLL regulation, and adjusts the phase difference by adjusting the proportional coefficient and the integral constant, so that the phase difference is gradually reduced and approaches 0, thereby achieving phase synchronization between the second carrier signal and the first carrier signal, and locking the phase of the adjusted second carrier signal through PLL regulation to prevent the adjusted second carrier signal from changing, which will cause the second carrier signal to be out of phase with the first carrier signal.
[0062] Optionally, the slave control unit passes the phase difference through a proportional-integral (PI) controller in PLL regulation to achieve phase synchronization between the second carrier signal and the first carrier signal, which may specifically include: the slave control unit inputs the phase difference into the PI controller in PLL regulation to obtain a phase difference control value; and adds the phase difference control value to the first carrier signal to obtain an adjusted second carrier signal.
[0063] The adjusted second carrier signal is phase synchronized with the first carrier signal.
[0064] First, the phase difference is input from the control unit to the PI controller in the PLL adjustment, and the phase difference control value is obtained after adjustment by the PI controller. When the phase difference control value is zero, the phase difference control value is added to the first carrier signal received from the control unit to obtain the adjusted second carrier signal. At this time, the adjusted second carrier signal has the same phase as the first carrier signal.
[0065] In this embodiment, the proportional regulation in the PI controller can respond to the phase difference proportionally, and can immediately produce a regulating effect to reduce the error. By increasing the proportional coefficient, the regulating effect can be accelerated to reduce the error. The integral regulation can eliminate the steady-state error and improve the error-free degree, so that the phase of the adjusted second carrier signal is synchronized with the first carrier signal, and then the first PWM signal and the second PWM signal in the subsequent S240 are also synchronized, thereby avoiding the problem of abnormal vibration during vehicle driving caused by torque fluctuation due to deviation in the synchronization phase, and improving the user's comfort.
[0066] Specifically, Figure 2B A schematic diagram of PLL adjustment in the method provided in the second embodiment of the present invention, such as Figure 2BAs shown in the figure: the synchronous clock signal is used as the target input, and the phase difference between the synchronous clock signal and the second carrier signal is used as the input signal of the PI controller. The phase difference control value obtained after adjustment by the PI controller is added to the first carrier signal to obtain the adjusted second carrier signal, thereby ensuring that the phase of the output second carrier signal is synchronized with the phase of the synchronous clock signal, thereby ensuring the phase synchronization of the second carrier signal and the first carrier signal.
[0067] S240, the master control unit generates a first pulse width modulation (PWM) signal according to the first carrier signal and the command signal, and the slave control unit generates a second PWM signal according to the second carrier signal and the command signal.
[0068] Optionally, the main control unit generates a first pulse width modulation PWM signal according to the first carrier signal and the command signal, and the slave control unit generates a second PWM signal according to the second carrier signal and the command signal, which may specifically include: the main control unit generates a first PWM signal based on the rotor magnetic field oriented control method according to the first carrier signal and the command signal, and the slave control unit generates a second PWM signal based on the rotor magnetic field oriented control method according to the second carrier signal and the command signal.
[0069] Among them, the rotor field oriented control method mainly performs decoupling control on the field current and torque current of the motor in the synchronous coordinate system of rotor field orientation through coordinate transformation.
[0070] Specifically, the main control unit can determine the rise time and fall time of the generated first PWM wave (rectangular wave) through the rotor magnetic field oriented control method according to the first carrier signal and the command signal, and finally obtain the first PWM signal. Similarly, the slave control unit generates the second PWM signal through the rotor magnetic field oriented control method according to the second carrier signal and the same command signal. The first PWM signal and the second PWM signal determined by the rotor magnetic field oriented control method are more accurate.
[0071] The technical solution provided in this embodiment is as follows: first, the main control unit generates a synchronous clock signal according to the first carrier signal, then the slave control unit receives the synchronous clock signal and calculates the phase difference between the synchronous clock signal and the second carrier signal, then the slave control unit passes the phase difference through the proportional integral PI controller in the PLL adjustment to achieve phase synchronization between the second carrier signal and the first carrier signal, and finally the main control unit generates a first PWM signal according to the first carrier signal and the command signal, and the slave control unit generates a second PWM signal according to the second carrier signal and the command signal, which solves the problem of asynchronous PWM signals when the motor system is driven by more than one set of drive units, realizes the synchronization of PWM signals, thereby reducing abnormal vibration caused by signal asynchronous during vehicle driving and improving the driving comfort of the vehicle.
[0072] Embodiment 3
[0073] Figure 3 A schematic diagram of a control signal synchronization device provided in Embodiment 3 of the present invention is shown in FIG. Figure 3 As shown, the device may include:
[0074] A clock signal generating module 310 and a first signal generating module 340 configured in the master control unit, and a phase difference determining module 320, a phase synchronization control module 330 and a second signal generating module 350 configured in the slave control unit;
[0075] The clock signal generating module 310 is used to generate a synchronous clock signal according to a first carrier signal, wherein the first carrier signal is generated by the main control unit;
[0076] The phase difference determination module 320 is used to receive the synchronous clock signal and calculate the phase difference between the synchronous clock signal and a second carrier signal, wherein the second carrier signal is generated by the slave control unit;
[0077] The phase synchronization control module 330 is used to adjust and control the phase synchronization of the second carrier signal and the first carrier signal through a phase-locked loop PLL according to the phase difference;
[0078] The first signal generating module 340 is used to generate a first pulse width modulation PWM signal according to the first carrier signal and the command signal, and the second signal generating module 350 is used to generate a second PWM signal according to the second carrier signal and the command signal, wherein the first PWM signal is used to control the first drive unit, and the second PWM signal is used to control the second drive unit, and the first drive unit and the second drive unit are used to drive the motor.
[0079] The technical solution provided in this embodiment is as follows: first, the main control unit generates a synchronous clock signal according to the first carrier signal, then the slave control unit receives the synchronous clock signal and calculates the phase difference between the synchronous clock signal and the second carrier signal, then the slave control unit adjusts and controls the phase synchronization of the second carrier signal and the first carrier signal through the phase-locked loop PLL according to the phase difference, and finally the main control unit generates a first PWM signal according to the first carrier signal and the command signal, and the slave control unit generates a second PWM signal according to the second carrier signal and the command signal, which solves the problem of asynchronous PWM signals generated when the motor system is driven by more than one set of drive units, realizes the synchronization of PWM signals, thereby reducing abnormal vibrations generated during vehicle driving and improving vehicle driving comfort.
[0080] Furthermore, the clock signal generating module 310 may be specifically used for:
[0081] Based on the period of the first carrier signal, a corresponding synchronous clock signal is generated.
[0082] Furthermore, the above-mentioned control signal synchronization device may further include: a phase synchronization implementation module configured in the slave control unit, which is used to:
[0083] The phase difference is passed through a proportional-integral (PI) controller in a PLL adjustment to achieve phase synchronization between the second carrier signal and the first carrier signal.
[0084] Furthermore, the above phase synchronization implementation module can be specifically used for:
[0085] Inputting the phase difference into a PI controller in PLL regulation to obtain a phase difference control value;
[0086] The phase difference control value is added to the first carrier signal to obtain an adjusted second carrier signal, wherein the adjusted second carrier signal is phase synchronized with the first carrier signal.
[0087] Furthermore, the above-mentioned first signal generating module 340 can be specifically used to generate a first PWM signal based on the rotor magnetic field oriented control method according to the first carrier signal and the command signal, and the second signal generating module 350 can be specifically used to generate a second PWM signal based on the rotor magnetic field oriented control method according to the second carrier signal and the command signal.
[0088] Furthermore, the control signal synchronization system also includes a vehicle control unit;
[0089] The command signal includes a torque signal or a speed signal generated by a vehicle control unit.
[0090] The device for controlling signal synchronization provided in this embodiment can be applied to the method for controlling signal synchronization provided in any of the above embodiments, and has corresponding functions and beneficial effects.
[0091] Embodiment 4
[0092] Figure 4 A structural diagram of a control signal synchronization system provided by Embodiment 4 of the present invention, such as Figure 4 As shown, the system includes a main control unit 410, a slave control unit 420, a first drive unit 430, a second drive unit 440 and a motor 450. The main control unit 410 is connected to the first drive unit 430, the slave control unit 420 is connected to the second drive unit 440, and the first drive unit 430 and the second drive unit 440 are connected to the motor 450. The main control unit 410 includes a processor 4101, a memory 4102 and a communication device 4103; the slave control unit 420 includes a processor 4201, a memory 4202 and a communication device 4203. The number of processors 4101 in the main control unit 410 can be one or more, Figure 4 In the example, one processor 4101 is taken; the number of processors 4201 in the control unit 420 may be one or more. Figure 4 A processor 4201 is taken as an example; the processor 4101, the memory 4102 and the communication device 4103 in the main control unit 410 can be connected by a bus or other means, Figure 4 In the example, the connection via a bus is used; the processor 4201, the memory 4202 and the communication device 4203 in the control unit 420 can be connected via a bus or other means, Figure 4 The example of connecting through bus is taken in the following.
[0093] The memories 4102 and 4202 are computer-readable storage media that can be used to store software programs, computer executable programs and modules, such as the modules corresponding to the method for controlling signal synchronization in the embodiment of the present invention (for example, the clock signal generation module 310, the phase difference determination module 320, the phase synchronization control module 330, the first signal generation module 340 and the second signal generation module 350 in the device for controlling signal synchronization). The processors 4101 and 4201 execute various functional applications and data processing of the system by running the software programs, instructions and modules stored in the memories 4102 and 4202, that is, realizing the above-mentioned method for controlling signal synchronization.
[0094] The memories 4102 and 4202 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memories 4102 and 4202 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some instances, the memories 4102 and 4202 may further include a memory remotely arranged relative to the processors 4101 and 4201, and these remote memories may be connected to the system via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0095] Communication devices 4103 and 4203 are used to implement network connection or mobile data connection between servers.
[0096] A system provided in this embodiment can be used to execute the method for controlling signal synchronization provided in any of the above embodiments, and has corresponding functions and beneficial effects.
[0097] Embodiment 5
[0098] A fifth embodiment of the present invention provides a vehicle, in which the system for synchronizing control signals as described in the fourth embodiment is installed.
[0099] A vehicle provided in this embodiment can be used to execute the control signal synchronization method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
[0100] Embodiment 6
[0101] Embodiment 6 of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, a method for synchronizing control signals in any embodiment of the present invention is implemented. The method specifically includes:
[0102] The main control unit generates a synchronous clock signal according to a first carrier signal, wherein the first carrier signal is generated by the main control unit;
[0103] The slave control unit receives the synchronous clock signal, and calculates a phase difference between the synchronous clock signal and a second carrier signal, wherein the second carrier signal is generated by the slave control unit;
[0104] The slave control unit adjusts and controls the phase synchronization of the second carrier signal and the first carrier signal through a phase-locked loop (PLL) according to the phase difference;
[0105] The main control unit generates a first pulse width modulation (PWM) signal according to the first carrier signal and the command signal, and the slave control unit generates a second PWM signal according to the second carrier signal and the command signal, wherein the first PWM signal is used to control the first drive unit, and the second PWM signal is used to control the second drive unit, and the first drive unit and the second drive unit are used to drive the motor.
[0106] Of course, the computer executable instructions of a storage medium including computer executable instructions provided by an embodiment of the present invention are not limited to the operations of the method described above, but can also execute related operations in the control signal synchronization method provided by any embodiment of the present invention.
[0107] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (FLASH), a hard disk or an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0108] It is worth noting that in the embodiment of the above-mentioned control signal synchronization device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0109] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for controlling signal synchronization, characterized in that: A control signal synchronization system applied to a vehicle, the control signal synchronization system comprising a master control unit, a slave control unit, a first drive unit, a second drive unit and a motor, the master control unit is connected to the first drive unit, the slave control unit is connected to the second drive unit, the first drive unit and the second drive unit are connected to the motor, and the method comprises: The main control unit generates a synchronous clock signal according to a first carrier signal, wherein the first carrier signal is generated by the main control unit; The slave control unit receives the synchronous clock signal, and calculates a phase difference between the synchronous clock signal and a second carrier signal, wherein the second carrier signal is generated by the slave control unit; The slave control unit inputs the phase difference into a PI controller in PLL regulation to obtain a phase difference control value; Adding the phase difference control value to the first carrier signal to obtain an adjusted second carrier signal, wherein the adjusted second carrier signal is phase synchronized with the first carrier signal; The main control unit generates a first pulse width modulation (PWM) signal according to the first carrier signal and the command signal, and the slave control unit generates a second PWM signal according to the second carrier signal and the command signal, wherein the first PWM signal is used to control the first drive unit, and the second PWM signal is used to control the second drive unit, and the first drive unit and the second drive unit are used to drive the motor.
2. The method according to claim 1, characterized in that The main control unit generates a synchronous clock signal according to the first carrier signal, comprising: The main control unit generates a corresponding synchronous clock signal based on the period of the first carrier signal.
3. The method according to claim 1, characterized in that The master control unit generates a first pulse width modulation (PWM) signal according to the first carrier signal and the command signal, and the slave control unit generates a second PWM signal according to the second carrier signal and the command signal, including: The master control unit generates a first PWM signal based on the rotor field oriented control method according to the first carrier signal and the command signal, and the slave control unit generates a second PWM signal based on the rotor field oriented control method according to the second carrier signal and the command signal.
4. The method according to claim 3, characterized in that The control signal synchronization system also includes a vehicle control unit; The command signal includes a torque signal or a speed signal generated by a vehicle control unit.
5. A device for controlling signal synchronization, characterized in that: A control signal synchronization system integrated on a vehicle, the control signal synchronization system comprising a master control unit, a slave control unit, a first drive unit, a second drive unit and a motor, the master control unit is connected to the first drive unit, the slave control unit is connected to the second drive unit, the first drive unit and the second drive unit are connected to the motor, the device comprises: a clock signal generating module and a first signal generating module configured in the master control unit, a phase difference determining module, a phase synchronization control module and a second signal generating module configured in the slave control unit; The clock signal generating module is used to generate a synchronous clock signal according to a first carrier signal, wherein the first carrier signal is generated by the main control unit; The phase difference determination module is used to receive the synchronous clock signal and calculate the phase difference between the synchronous clock signal and a second carrier signal, wherein the second carrier signal is generated by the slave control unit; The phase synchronization control module is used to input the phase difference into a PI controller in the PLL adjustment to obtain a phase difference control value; add the phase difference control value to the first carrier signal to obtain an adjusted second carrier signal, wherein the adjusted second carrier signal is phase synchronized with the first carrier signal; The first signal generating module is used to generate a first pulse width modulation (PWM) signal according to the first carrier signal and the command signal, and the second signal generating module is used to generate a second PWM signal according to the second carrier signal and the command signal, wherein the first PWM signal is used to control the first drive unit, and the second PWM signal is used to control the second drive unit, and the first drive unit and the second drive unit are used to drive the motor.
6. A system for controlling signal synchronization, characterized in that: It includes a main control unit, a slave control unit, a first drive unit, a second drive unit and a motor, wherein the main control unit is connected to the first drive unit, the slave control unit is connected to the second drive unit, and the first drive unit and the second drive unit are connected to the motor; The master control unit and the slave control unit each include one or more processors, a memory, and a computer program stored in the memory and executable on the processor; When the one or more programs are executed by the one or more processors, the one or more processors implement the method for synchronizing control signals as described in any one of claims 1 to 4.
7. A vehicle, characterized in that: The vehicle is equipped with the control signal synchronization system according to claim 6.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for synchronizing control signals as described in any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Control circuit and method of photovoltaic power generation system
CN108173287A
Synchronous control method and system for communication-free global modulation signals based on phase-locked loop
CN109004681A
Multiprocessor PWM carrier synchronization method
CN110649662A
System clock generator circuit
CN1961482A
Control method and control arrangement of electric motor
JP2019193455A
