Active discharge control method, electronic device and readable storage medium

By generating a redundant active discharge indication when the vehicle motor winding is abnormal, and using the pulse width modulation PWM signal to control the motor for active discharge, the problem of vehicle active discharge failure is solved and the reliability of active discharge is improved.

CN119217983BActive Publication Date: 2025-03-11GUIZHOU GEELY ENGINE CO LTD +1

Patent Information

Application Number
CN202411765370.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-03-11
Estimated Expiration
2044-12-04

AI Technical Summary

Technical Problem

In the prior art, when a vehicle is actively discharged, the time is too long and the voltage is not reduced, resulting in the failure of the active discharge, and there is a problem of low reliability.

Method used

When an abnormal active discharge state of the vehicle motor winding is detected, a redundant active discharge indication is generated, and the vehicle's motor is controlled to perform active discharge through a pulse width modulation PWM signal.

Benefits of technology

Through the control of redundant active discharge indication and pulse width modulation PWM signal, it is possible to continue to assist the vehicle in the event of an abnormal active discharge of the motor winding, which improves the reliability of active discharge.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119217983B_ABST
    Figure CN119217983B_ABST
Patent Text Reader

Abstract

The present application discloses an active discharge control method, an electronic device and a readable storage medium, which relate to the field of vehicle technology. The method comprises: generating a redundant active discharge indication when an abnormal active discharge state of a motor winding of a vehicle is detected; and controlling a motor in the vehicle to perform active discharge through a pulse width modulation (PWM) signal based on the redundant active discharge indication. The present application aims to solve the technical problem of unreliable active discharge of a vehicle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle technology, and in particular to an active discharge control method, an electronic device, and a readable storage medium. Background Art

[0002] With the rapid development of the electric vehicle industry, the safety and reliability of battery management systems have become a growing focus of attention. After the battery is plugged in and charged in a normal parking or dormant state, if the battery voltage is still higher than 60V after the high voltage is cut off, there is a potential safety hazard. High voltage may not only pose a direct risk of electric shock to maintenance personnel, but may also cause serious consequences such as fire and explosion.

[0003] In order to ensure the high voltage safety of the whole vehicle, the vehicle is usually controlled to perform active discharge, for example, using the motor winding for active discharge, etc. However, if the time for active discharge using the motor winding is too long and the voltage is not reduced to the expected level, the vehicle will automatically exit the active discharge, which may easily lead to failure of active discharge of the vehicle. Therefore, the current technical problem of low reliability of active discharge exists.

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

[0005] The main purpose of the present application is to provide an active discharge control method, an electronic device and a readable storage medium, aiming to solve the technical problem of unreliable active discharge of a vehicle.

[0006] To achieve the above object, the present application provides an active discharge control method, the method comprising:

[0007] generating a redundant active discharge indication in the event that an abnormal active discharge state of a motor winding of the vehicle is detected;

[0008] Based on the redundant active discharge indication, a motor in the vehicle is controlled to perform active discharge through a pulse width modulation (PWM) signal.

[0009] In one embodiment, the situation where the abnormal active discharge state of the motor winding of the vehicle is detected includes:

[0010] After detecting that the motor winding is actively discharged for a duration of a preset discharge duration, the bus voltage of the vehicle is greater than or equal to a preset undervoltage threshold.

[0011] In one embodiment, the step of controlling the motor in the vehicle to perform active discharge by means of a pulse width modulation (PWM) signal based on the redundant active discharge indication comprises:

[0012] Based on the redundant active discharge indication, the motor of the vehicle is controlled to perform active discharge through a pulse width modulation (PWM) signal having a duty cycle equal to a preset PWM duty cycle.

[0013] In one embodiment, the motor includes at least two phases; the step of controlling the motor of the vehicle to perform active discharge by a pulse width modulation (PWM) signal having a duty cycle equal to a preset PWM duty cycle includes:

[0014] Controlling the motor to perform at least one cycle operation, wherein one cycle operation includes at least one signal control operation;

[0015] The signal control operation includes: applying a pulse width modulation (PWM) signal having a duty cycle of a preset PWM duty cycle to a target phase of the at least two phases, and controlling the duty cycles of the PWM signals of non-target phases of the at least two phases to be preset null values.

[0016] In one embodiment, the at least two phases include a first phase, a second phase and a third phase, and the phase difference between two adjacent phases of the first phase, the second phase and the third phase is 120°;

[0017] One round of the cyclic operation includes the first step signal control operation, the second step signal control operation and the third step signal control operation executed in sequence;

[0018] The first step signal control operation includes: when the count value of the preset cycle counter is a preset initial value, determining the first phase as the target phase, determining the second phase and the third phase as non-target phases, applying a pulse width modulation (PWM) signal having a duty cycle of a preset PWM duty cycle to the first phase, and controlling the duty cycles of the PWM signals corresponding to the second phase and the third phase to be preset null values, and accumulating the preset initial value to obtain a preset single accumulation threshold;

[0019] The second-step signal control operation includes: when the count value of the preset cycle counter is a preset single accumulation threshold, determining the second phase as the target phase, determining the first phase and the third phase as non-target phases, applying a pulse width modulation (PWM) signal having a duty cycle of a preset PWM duty cycle to the second phase, and controlling the duty cycles of the PWM signals corresponding to the first phase and the third phase to be preset null values, and accumulating the preset single accumulation threshold in the preset cycle counter to obtain a preset end accumulation threshold;

[0020] The third-step signal control operation includes: when the count value of the preset cycle counter is a preset end accumulation threshold, the third phase is determined as the target phase, the first phase and the second phase are determined as non-target phases, a pulse width modulation (PWM) signal having a duty cycle of a preset PWM duty cycle is applied to the third phase, and the duty cycles of the PWM signals corresponding to the first phase and the second phase are controlled to be preset null values, and the preset end accumulation threshold in the preset cycle counter is reset to a preset initial value.

[0021] In one embodiment, before the step of controlling the motor of the vehicle to perform active discharge by using a pulse width modulation (PWM) signal having a preset PWM duty cycle, the step further includes:

[0022] Get the vehicle's frequency register and dead zone register;

[0023] configuring a preset PWM frequency in the frequency register to adjust the frequency of the pulse width modulation PWM signal;

[0024] The preset dead time is configured in the dead time register to adjust the dead time corresponding to the pulse width modulation (PWM) signal.

[0025] In one embodiment, the method comprises:

[0026] When it is detected that the bus voltage is less than or equal to a preset undervoltage threshold, and / or when it is detected that the duration of active discharge of the motor in the vehicle controlled by a pulse width modulation (PWM) signal is greater than or equal to a preset discharge duration threshold, the motor of the vehicle is controlled to stop active discharge.

[0027] In one embodiment, the step of controlling the motor of the vehicle to stop active discharge comprises:

[0028] The motor is configured to stop the active discharge state, the cycle count value of the preset cycle counter is reset, and the duty cycle of the pulse width modulation (PWM) signal is reset.

[0029] In addition, to achieve the above-mentioned purpose, the present application also provides a discharge control device, the device comprising:

[0030] A detection module 10, for generating a redundant active discharge indication when an abnormal active discharge state of a motor winding of a vehicle is detected;

[0031] The active discharge module 20 is used to control the motor in the vehicle to perform active discharge through a pulse width modulation (PWM) signal based on the redundant active discharge indication.

[0032] In addition, to achieve the above-mentioned purpose, the present application also provides an electronic device, which includes: a memory, a processor, and a program of the active discharge control method stored in the memory and executable on the processor. When the program of the active discharge control method is executed by the processor, the steps of the active discharge control method as described above can be implemented.

[0033] In addition, to achieve the above-mentioned purpose, the present application also provides a computer-readable storage medium, on which is stored a program for implementing the active discharge control method, and when the program of the active discharge control method is executed by a processor, the steps of the active discharge control method as described above are implemented.

[0034] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the active discharge control method as described above are implemented.

[0035] One or more technical solutions proposed in the present application have at least the following technical effects: since the present application can generate a redundant active discharge indication when the active discharge state of the motor winding of the vehicle is detected to be abnormal, the motor in the vehicle can be controlled to perform active discharge through a pulse width modulation PWM signal based on the redundant active discharge indication. Thus, in the case of abnormal active discharge of the motor winding, the motor in the vehicle can still be controlled to perform active discharge through a pulse width modulation PWM signal, instead of stopping active discharge after the active discharge of the motor winding is abnormal, so the present application improves the reliability of active discharge. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The accompanying drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the description, are used to explain the principles of the present application.

[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0038] Figure 1 This is a flow chart of an embodiment of the active discharge control method of the present application;

[0039] Figure 2 This is a flow chart of another embodiment of the active discharge control method of the present application;

[0040] Figure 3 This is a flow chart of an example of the active discharge control method of the present application;

[0041] Figure 4 This is a schematic diagram of the structure of the active discharge control device of this application;

[0042] Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the active discharge control method in the embodiment of the present application.

[0043] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0044] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0045] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0046] With the rapid development of the electric vehicle industry, the safety and reliability of battery management systems have become a growing focus of attention. After the battery is plugged in and charged in a normal parking or dormant state, if the battery voltage is still higher than 60V after the high voltage is cut off, there is a potential safety hazard. High voltage may not only pose a direct risk of electric shock to maintenance personnel, but may also cause serious consequences such as fire and explosion.

[0047] In order to ensure the high voltage safety of the whole vehicle, the vehicle is usually controlled to perform active discharge, for example, using the motor windings of the vehicle for active discharge, etc. However, when the time for active discharge using the motor windings is too long and the voltage is not reduced to the expected level, the vehicle will automatically exit the active discharge, which can easily lead to failure of active discharge of the vehicle. Therefore, there is a technical problem of low reliability of active discharge. For example, the vehicle may not have completed the discharge within 2 seconds, which also means that there is an abnormality in the vehicle's discharge, and the vehicle may still be at risk of high voltage, which may still pose a safety hazard of direct electric shock to maintenance personnel.

[0048] In order to solve the aforementioned technical problems, the embodiments of the present application generate redundant active discharge indications when the active discharge state of the motor winding is abnormal, so as to continue to assist the vehicle in active discharge. For example, when the active discharge of the motor winding is abnormal, active discharge can be further performed by direct discharge of the bridge arm, so that the vehicle can further discharge when the active discharge is abnormal.

[0049] Furthermore, in the embodiments of the present application, the IGBT switch can be controlled by a pulse width modulation PWM signal to consume the energy of the bus capacitor to achieve active discharge through the bridge arm direct discharge method, and the vehicle's motor operation can be controlled by a pulse width modulation PWM signal with a duty cycle equal to a preset PWM duty cycle to adjust the ratio of the IGBT's on time and off time, control the output voltage and current of the motor, consume the energy of the bus capacitor, and achieve further active discharge in the event of abnormal discharge of the vehicle's motor winding, thereby improving the reliability of active discharge.

[0050] The present application embodiment provides an active discharge control method, referring to Figure 1 , Figure 1 This is a flow chart of an embodiment of the active discharge control method of the present application. In this embodiment, the active discharge control method includes steps S10 to S20:

[0051] Step S10, generating a redundant active discharge indication when an abnormal active discharge state of a motor winding of the vehicle is detected;

[0052] It should be noted that the vehicle can be an electric vehicle or a hybrid electric vehicle. When the vehicle collides and the bus voltage corresponding to the vehicle battery is greater than 60V, the vehicle's active discharge will be triggered. In this embodiment, the vehicle can first trigger the active discharge of the motor winding.

[0053] The active discharge state abnormality in the embodiment of the present application indicates that there is an abnormal situation when the motor winding is actively discharging; in the embodiment of the present application, specific abnormal conditions for the active discharge state abnormality can be set based on, but not limited to, actual business needs, actual technical needs and / or relevant provisions of relevant technical standards, such as, but not limited to, "after the motor winding is actively discharged for a continuous preset discharge time, the bus voltage of the vehicle is greater than or equal to the preset undervoltage threshold" as the specific abnormal condition of the aforementioned active discharge state abnormality, and then in step S10, it is detected that the specific abnormal condition is met to determine that the active discharge state of the motor winding of the vehicle is abnormal; there are no excessive restrictions on the aforementioned continuous preset discharge time and preset undervoltage threshold, and those skilled in the art can flexibly set them based on actual needs, such as, but not limited to, setting the preset undervoltage threshold and the preset discharge time to 60V and 2S respectively based on relevant technical standards.

[0054] The redundant active discharge indication in the embodiment of the present application is used to instruct the vehicle to perform bridge arm direct discharge for active discharge. For example, when the vehicle controls the motor winding for active discharge and there is an abnormality, a warning can be generated to remind the user that the active discharge of the vehicle is abnormal. If the vehicle generates a warning, a redundant active discharge indication can be determined to indicate that the application software layer in the vehicle can perform active discharge.

[0055] In a feasible embodiment, the active discharge control method further includes step S11:

[0056] Step S11, after detecting that the motor winding is actively discharged for a preset discharge time, the bus voltage of the vehicle is greater than or equal to a preset undervoltage threshold.

[0057] It should be noted that if the motor winding is actively discharged for a preset discharge time and the bus voltage of the vehicle is greater than or equal to the preset undervoltage threshold, it means that after the motor winding is actively discharged for the preset discharge time, the bus voltage is still high, indicating that the active discharge state of the motor winding is abnormal.

[0058] To better understand the present embodiment, the process of performing active discharge through the motor winding is described below: after receiving an active discharge request, the motor winding of the vehicle is controlled to perform active discharge, and the voltage reduction amount of the bus voltage of the vehicle within a preset discharge test period is detected; when the voltage reduction amount is greater than the preset voltage difference, the motor winding of the vehicle is controlled to continue to perform active discharge;

[0059] Among them, it should be noted that the active discharge request is used to trigger active discharge through the motor winding; when the vehicle collides and the bus voltage corresponding to the vehicle battery is greater than 60V, an active discharge request can be automatically generated. After generating the active discharge request, the vehicle will also determine whether the vehicle meets the preset active discharge conditions, and the preset active discharge conditions include: the absolute value of the torque of all motors in the vehicle is less than 10Nm (Newton meters), and the absolute value of the speed of all motors is less than 10rpm (revolutions per minute). In this embodiment, the vehicle may include two motors, namely the first motor and the second motor. Specifically, the preset active discharge condition may be: the absolute value of the torque of the first motor in the vehicle is less than 10Nm (Newton meters), the absolute value of the speed of the first motor is less than 10rpm (revolutions per minute), the absolute value of the torque of the second motor in the vehicle is less than 10Nm, and the absolute value of the speed of the second motor is less than 10rpm. When the absolute value of the torque of the first motor and the absolute value of the torque of the second motor are both less than 10Nm, when the absolute value of the speed of the second motor and the absolute value of the speed of the second motor are both less than 10rpm, it means that the first motor and the second motor are both in a low torque and low speed state. Before active discharge, ensuring that the first motor and the second motor are both in a low torque and low speed state can prevent the motors from accidentally starting during the discharge process, thereby avoiding potential damage to the vehicle and personnel. The first motor can be a starting motor of the vehicle, and the second motor can be a drive motor in the vehicle. The starting motor can be used to generate electricity, for example, to charge the battery of the vehicle, and the drive motor can be used to drive the vehicle, for example, to drive the wheels of the vehicle.

[0060] When the vehicle does not meet the preset active discharge conditions, the motor windings are not controlled to perform active discharge until the vehicle meets the preset active discharge conditions, and then the motor windings are controlled to perform active discharge.

[0061] The method of controlling the motor winding of the vehicle to perform active discharge can be to control the motor winding to correspond to id=-60A (ampere), iq=0 for active discharge, id is the direct-axis current of the motor winding or called the excitation current. iq is the quadrature-axis current of the motor winding or called the torque current. When id=-60A, the magnetic field corresponding to the motor winding can be weakened, thereby accelerating the release of the charge in the motor winding. When iq=0, it can be ensured that the motor winding will not generate additional torque during the discharge process, thereby facilitating the stability of the motor winding discharge process.

[0062] The preset discharge test period can be set based on actual conditions. The preset discharge test period is generally less than 1s. For example, the preset discharge test period can be within 20ms. Whether the vehicle can be actively discharged can be detected within the preset discharge test period to determine whether to control the motor winding to continue active discharge. The voltage reduction is the decrease in the bus voltage of the motor winding within the preset discharge test period.

[0063] It should also be noted that the preset voltage difference can be set based on actual conditions, and this embodiment does not make any specific limitations on this. The active discharge state of the motor winding is used to describe the active discharge condition of the motor winding, and the active discharge state can include a normal active discharge state and an abnormal active discharge state.

[0064] For example, when the voltage reduction is greater than the preset voltage difference, it indicates that the vehicle is in a dischargeable state. When the voltage reduction is less than or equal to the preset voltage difference, it indicates that the bus voltage reduction has not reached the preset voltage, indicating that the active discharge effect is not good. At this time, it can be determined that the vehicle is in a non-dischargeable state. When the vehicle is in a non-dischargeable state, the motor windings will not be controlled to continue active discharge. The active discharge operation of the vehicle can be stopped, or a redundant active discharge indication can be directly generated to facilitate the subsequent control of the application software layer for active discharge. When the vehicle is in a dischargeable state, the motor windings can continue to be controlled for active discharge.

[0065] The preset discharge time is greater than the preset discharge test period. The preset discharge time can be set based on actual conditions. For example, the preset discharge time can be 2S, etc. This embodiment does not specifically limit this. When the bus voltage is greater than or equal to the preset undervoltage threshold, it means that the bus voltage is too high and needs to be discharged. When the bus voltage is less than the preset undervoltage threshold, it means that the bus voltage does not need to be discharged.

[0066] For example, the bus voltage is obtained when the duration of active discharge of the motor winding is the preset discharge duration. When the bus voltage is greater than or equal to the preset undervoltage threshold, it indicates that the active discharge state of the motor winding of the vehicle is abnormal. When the bus voltage is less than the preset undervoltage threshold, it indicates that the active discharge state of the motor winding of the vehicle is normal. When the bus voltage is less than the preset undervoltage threshold, the motor winding can stop active discharge, and the active discharge of the vehicle is completed.

[0067] This embodiment tests whether the voltage reduction of the motor winding during discharge is greater than a preset voltage difference, thereby determining whether the vehicle can continue to perform active discharge, etc., thereby facilitating improving the reliability of the vehicle's active discharge, and can also continue to detect whether the active discharge state of the motor winding is abnormal, thereby facilitating subsequent execution of other active discharge methods (for example, based on a pulse width modulation PWM signal, controlling each phase in the motor to perform active discharge, etc.) when the active discharge state of the motor winding is abnormal, so as to improve the reliability of active discharge.

[0068] Step S20, based on the redundant active discharge indication, controlling the motor in the vehicle to perform active discharge through a pulse width modulation PWM signal;

[0069] It should be noted that the pulse width modulation PWM signal can be used to drive the motor. In this embodiment, the vehicle may include multiple motors, which may be the first motor and the second motor. The speed of the motor can be adjusted by adjusting the duty cycle of the pulse width modulation PWM signal. In this embodiment, the vehicle may include dual motors, which may be the first motor and the second motor. The first motor and the second motor may be controlled based on the pulse width modulation PWM signal, so as to control the first motor and the second motor to perform active discharge.

[0070] For example, based on a pulse width modulation (PWM) signal, each phase of a first motor in a vehicle may be controlled to perform active discharge, and each phase of a second motor may be controlled to perform active discharge.

[0071] For a better understanding of this embodiment, please refer to Figure 2, the process of active discharge through motor windings and active discharge through bridge arm direct discharge in this embodiment is briefly described. In this embodiment, active discharge through motor windings means that after receiving an active discharge request, the motor windings of the vehicle are directly controlled to discharge, that is, the id=-60A and iq=0 corresponding to the motor windings are controlled to perform active discharge. When the duration of active discharge based on the active discharge request reaches 2S, a redundant active discharge indication is generated; active discharge through bridge arm direct discharge includes active discharge of each phase of the motor in the vehicle based on the redundant active discharge indication and the pulse width modulation PWM signal, and the longest duration of active discharge based on the redundant active discharge indication is Max=3S, that is, the duration of active discharge of each phase of the motor in the vehicle based on the pulse width modulation PWM signal needs to be less than or equal to 3S, thereby avoiding thermal runaway during the active discharge process. After the active discharge request, the total active discharge duration is at most Max=5S, that is, even if a redundant active discharge indication is generated for active discharge based on the active discharge request, the sum of the active discharge duration corresponding to the active discharge request and the active discharge duration corresponding to the redundant active discharge indication must be less than or equal to 5S. If the active discharge duration corresponding to the redundant active discharge indication is greater than 3S, the active discharge needs to be stopped. If it is detected that the sum of the active discharge duration corresponding to the active discharge request and the active discharge duration corresponding to the redundant active discharge indication is greater than 5S, the active discharge needs to be stopped.

[0072] In this embodiment, active discharge through the motor winding is performed in the functional layer of the vehicle, and the bridge arm direct discharge method can be implemented through the application software layer of the vehicle. For example, the various registers in the vehicle can be accessed through the application software layer, and the duty cycle register can be set to configure the duty cycle of the pulse width modulation PWM signal to a preset PWM duty cycle. Among them, the functional layer (Level 1) is the basic layer in the monitoring system of the EGAS3 (Electronic Control Unit Monitoring System) system, which is used to control the torque of the motor. The application software layer is the functional monitoring layer in the monitoring system of the EGAS3 system. The functional monitoring layer can be used to monitor the functional layer and detect whether there is an abnormality or fault in the functional layer.

[0073] Since this embodiment can generate a redundant active discharge indication when detecting that the active discharge state of the motor winding of the vehicle is abnormal, the motor in the vehicle can be controlled to perform active discharge through a pulse width modulation PWM signal based on the redundant active discharge indication. Thus, in the case of abnormal active discharge of the motor winding, the motor in the vehicle can still be controlled to perform active discharge through a pulse width modulation PWM signal, instead of stopping active discharge after the motor winding active discharge is abnormal, so this embodiment improves the reliability of active discharge.

[0074] In a feasible embodiment, step S20 further includes step S21: based on the redundant active discharge indication, controlling the motor of the vehicle to perform active discharge by means of a pulse width modulation PWM signal having a duty cycle equal to a preset PWM duty cycle.

[0075] It should be noted that the preset PWM duty cycle needs to ensure that the vehicle does not move. The preset PWM duty cycle can be set based on actual conditions. For example, the vehicle experimental data can be analyzed. The experimental data may include the relationship between the PWM duty cycle and the motor speed, and the corresponding vehicle movement conditions. The duty cycle setting to prevent the vehicle from moving is determined through the experimental data. In this embodiment, the preset PWM duty cycle may be 5%, 4%, 6%, etc. This embodiment does not make specific limitations on this.

[0076] In this embodiment, each phase of a motor in a vehicle is controlled to perform active discharge based on a pulse width modulation (PWM) signal when the vehicle is stationary, thereby ensuring the reliability of active discharge of the vehicle.

[0077] Exemplarily, after receiving the redundant active discharge indication, the duty cycle of the pulse width modulation PWM signal can be set to a preset PWM duty cycle, and the motor of the vehicle can be controlled to perform active discharge through the pulse width modulation PWM signal with a duty cycle of the preset PWM duty cycle. Specifically, for example, after receiving the redundant active discharge indication, the duty cycle register for storing the duty cycle can be obtained through the application software layer of the vehicle, and the preset PWM duty cycle can be configured in the duty cycle register to configure the duty cycle of the pulse width modulation PWM signal to the preset PWM duty cycle. The application software layer of the vehicle can be used to access various registers of the vehicle so as to adjust the values ​​in the registers.

[0078] In a feasible embodiment, the motor includes at least two phases, and step S21 further includes step S211:

[0079] Step S211, controlling the motor to perform at least one cycle operation, where one cycle operation includes at least one signal control operation;

[0080] The one-step signal control operation includes: applying a pulse width modulation (PWM) signal having a preset PWM duty cycle to a target phase of at least two phases, and controlling the duty cycles of the PWM signals of non-target phases of at least two phases to be preset null values.

[0081] It should be noted that, for each motor in the vehicle, each motor in the vehicle can be controlled to perform at least one cycle operation. One cycle operation can include a one-step signal control operation or a multi-step signal control operation. This embodiment can be applicable to any motor of a two-phase motor, a three-phase motor, a multi-phase motor with more than three phases, etc.

[0082] It should be understood that in the embodiments of the present application, a phase of a pulse width modulation PWM signal with a preset PWM duty cycle can be applied to a target item in a motor, and the duty cycle of the PWM signal of a non-target phase in the motor can be set to a preset null value; the aforementioned non-target phase is a phase other than the target phase in at least two phases in the motor, and the target phase and the non-target phase in the motor can be determined based on, but not limited to, the count value of a preset cycle counter of the motor. In the same step signal control operation, the number of target phases in the same motor is 1, and the number of non-target phases in the same motor can be 1 or more. For example, when the motor is a two-phase motor, in the same step signal control operation, the number of target phases of the same motor is 1, and the number of non-target phases of the same motor is 1; when the motor is a three-phase motor, the number of target phases of the same motor is 1, and the number of non-target phases of the same motor is 2.

[0083] The preset cycle counter is used for counting, and each motor has its own corresponding preset cycle counter. For example, the preset cycle counter of the first motor is the first counter, and the preset cycle counter of the second motor is the second counter. For each motor in the vehicle, a pulse width modulation PWM signal can be applied to each phase of the motor in turn in a cycle, so as to control each phase in the motor to perform active discharge. The pulse width modulation PWM signal is a signal configured with a preset PWM duty cycle. Therefore, the current of each phase in the motor can be controlled in turn in a cycle through the preset PWM duty cycle to achieve active discharge.

[0084] For example, each signal control operation in a round of cycle operation includes: determining the target phase and non-target phase in the motor based on the count value of the preset cycle counter of the motor, applying a pulse width modulation PWM signal with a duty cycle of a preset PWM duty cycle to the target phase of at least two phases, and the duty cycle of the PWM signal of the non-target phase in the motor is a preset null value, and the preset null value is 0.

[0085] In a feasible embodiment, the motor is a three-phase motor, at least two phases of the three-phase motor include a first phase, a second phase and a third phase, and the phase difference between two adjacent phases of the first phase, the second phase and the third phase is 120°, and step S211 also includes step Z10: one round of cyclic operation includes the first step signal control operation, the second step signal control operation and the third step signal control operation executed in sequence;

[0086] The first step of the signal control operation includes: when the count value of the preset cycle counter is a preset initial value, determining the first phase as the target phase, determining the second phase and the third phase as non-target phases, applying a pulse width modulation (PWM) signal having a duty cycle of a preset PWM duty cycle to the first phase, and controlling the duty cycles of the PWM signals corresponding to the second phase and the third phase to be preset null values, and accumulating the preset initial value to obtain a preset single accumulation threshold;

[0087] The second step of the signal control operation includes: when the count value of the preset cycle counter is the preset single accumulation threshold, the second phase is determined as the target phase, the first phase and the third phase are determined as non-target phases, a pulse width modulation (PWM) signal having a duty cycle of a preset PWM duty cycle is applied to the second phase, and the duty cycles of the PWM signals corresponding to the first phase and the third phase are controlled to be preset null values, and the preset single accumulation threshold in the preset cycle counter is accumulated to obtain a preset end accumulation threshold;

[0088] The third step signal control operation includes: when the count value of the preset cycle counter is the preset end accumulation threshold, the third phase is determined as the target phase, the first phase and the second phase are determined as non-target phases, a pulse width modulation PWM signal with a duty cycle of a preset PWM duty cycle is applied to the third phase, and the duty cycles of the PWM signals corresponding to the first phase and the second phase are controlled to be preset null values, and the preset end accumulation threshold in the preset cycle counter is reset to a preset initial value.

[0089] It should be noted that the phase difference between the first phase, the second phase and the third phase is 120 degrees, and the first phase, the second phase and the third phase are respectively connected to the three terminals of the motor. The first motor and the second motor each have their corresponding first phase, second phase and third phase, the preset null value is 0, and the first phase, the second phase and the third phase are different. The first phase, the second phase and the third phase can be U phase, V phase and W phase respectively, the first phase, the second phase and the third phase can be W phase, V phase and U phase respectively, the first phase, the second phase and the third phase can be V phase, U phase and W phase respectively, and the present embodiment does not make specific limitations on this.

[0090] The cycle operation includes a first signal control operation, a second signal control operation and a third signal control operation which are executed in sequence, and the count values ​​of the preset cycle counters of the first motor and the second motor start from a preset initial value, which may be 0. The corresponding cycle operations of the first motor and the second motor when performing active discharge also start from the first signal control operation.

[0091] The preset single accumulation threshold may be 1, indicating that the PWM signal is applied to the motor for the second time in the same cycle operation, the preset single accumulation threshold may be 1, and the value accumulated each time in the preset cycle counter may be 1. When the count value is the preset single accumulation threshold, it indicates that the pulse width modulation PWM signal is applied to the motor for the second time in the same cycle operation, the preset end accumulation threshold may be 2, and when the count value is the preset end accumulation threshold, it indicates that the pulse width modulation PWM signal is applied to the motor for the third time in the same cycle operation. During the active discharge process, the first motor and the second motor may both correspond to multiple cycles, and this embodiment does not specifically limit this.

[0092] For any motor in the vehicle, the motor can be the first motor or the second motor. Each phase of the motor has a corresponding switch tube. Each phase has two switch tubes, which are respectively located in the upper half bridge and the lower half bridge. Each phase has two switch tubes to control the current on and off of the phase. In this embodiment, when the pulse width modulation PWM signal is applied to any phase in the motor, it means that the corresponding switch tube is controlled to be turned on and off by the pulse width modulation PWM signal to achieve control of the current of the phase, so as to facilitate active discharge. For the same phase, the switch tube of the upper half bridge and the switch tube of the lower half bridge cannot be turned on at the same time. Therefore, this embodiment can also obtain the dead zone register of the vehicle, and configure the preset dead zone time corresponding to the pulse width modulation PWM signal in the dead zone register, thereby ensuring that the upper half bridge and the lower half bridge in the same phase will not be turned on at the same time, thereby ensuring the reliability of active discharge. In other embodiments, the switching frequency of the switch tubes in the first motor and the second motor can also be set based on actual conditions. This embodiment does not specifically limit this. The switch tube can be an IGBT (Insulated Gate Bipolar Transistor).

[0093] In the first step of the signal control operation, the count value of the preset cycle counter is the preset initial value. When the count value of the respective preset cycle counters is the preset initial value, the first motor and the second motor will determine the first phase of the first motor and the first phase of the second motor as the target phase, the second phase and the third phase of the first motor as the non-target phase, and the second phase and the third phase of the second motor as the non-target phase, and apply a pulse width modulation PWM signal with a duty cycle of the preset PWM duty cycle to the first phase, so the duty cycle of the pulse width modulation PWM signal running on the first phase is the preset PWM duty cycle, and at the same time, it is necessary to ensure that the duty cycle of the corresponding PWM signal in the second phase and the third phase is the preset null value. Exemplarily, when the duty cycle of the first phase is the preset PWM duty cycle, the duty cycle of the second phase and the third phase is 0, and the preset initial value will be accumulated to obtain the preset single accumulation threshold. Then execute the second step of the signal control operation;

[0094] The second step signal control operation includes: when the count value of the respective preset cycle counters of the first motor and the second motor is the preset single accumulation threshold, the second phase of the first motor and the second phase of the second motor are determined as target phases, the first phase and the third phase of the first motor are determined as non-target phases, the first phase and the third phase of the second motor are determined as non-target phases, and a pulse width modulation PWM signal with a duty cycle of the preset PWM duty cycle is applied to the second phase, so that the duty cycle of the pulse width modulation PWM signal running on the second phase is the preset PWM duty cycle, and at the same time, it is necessary to ensure that the duty cycle of the corresponding PWM signal in the first phase and the third phase is the preset null value. Exemplarily, when the duty cycle of the second phase is the preset PWM duty cycle, the duty cycle of the first phase and the third phase is 0, and the preset single accumulation threshold is accumulated to obtain the preset end accumulation threshold. Then execute the third step signal control operation:

[0095] The third step of the signal control operation includes: when the count value of the respective preset cycle counters is the preset end accumulation threshold, the first motor and the second motor will determine the third phase of the first motor and the third phase of the second motor as the target phase, determine the first phase and the second phase of the first motor as non-target phases, and determine the first phase and the second phase of the second motor as non-target phases, and apply a pulse width modulation PWM signal with a duty cycle of the preset PWM duty cycle to the third phase, so that the duty cycle of the pulse width modulation PWM signal running on the third phase is the preset PWM duty cycle, and at the same time, it is necessary to ensure that the duty cycle of the corresponding PWM signal in the second phase and the first phase is the preset null value. Exemplarily, when the duty cycle of the third phase is the preset PWM duty cycle, the duty cycle of the second phase and the first phase is 0, and the preset end accumulation threshold in the preset cycle counter is reset to the preset initial value.

[0096] Therefore, this embodiment achieves discharge while controlling the motors to be stationary by cyclically applying a pulse width modulation (PWM) signal to the first motor and cyclically applying a pulse width modulation (PWM) signal to the second motor, thereby improving the reliability of active discharge of the motors.

[0097] In a feasible embodiment, before the step of controlling the motor of the vehicle to perform active discharge by using a pulse width modulation PWM signal having a preset PWM duty cycle, the step further includes steps A10 to A30:

[0098] Step A10, obtaining the frequency register and dead zone register of the vehicle;

[0099] Step A20, configuring the preset PWM frequency in the frequency register to adjust the frequency of the pulse width modulation PWM signal;

[0100] Step A30, configuring the preset dead time in the dead time register to adjust the dead time corresponding to the pulse width modulation PWM signal.

[0101] It should be noted that the vehicle may include multiple registers, and the registers are used to store data. The registers can be used to store PWM parameters related to the pulse width modulation (PWM) signal, etc. For example, the PWM parameters can be the frequency and duty cycle of the pulse width modulation (PWM) signal, etc., and this embodiment does not limit this.

[0102] After receiving the redundant active discharge indication, the vehicle's global variables and registers can be initialized before the step of controlling the vehicle's motor to perform active discharge by a pulse width modulation PWM signal with a preset PWM duty cycle; global variables are variables declared in the vehicle's application software layer, and all programs corresponding to the application software layer can access the global variables and modify the global variables. The global variables and each register have their own corresponding initial values, and the initial values ​​corresponding to the global variables and each register can be the values ​​set when the vehicle leaves the factory, etc., and the initial values ​​can also be set based on actual conditions, etc. This embodiment does not impose specific restrictions on this. For example, the present application can initialize the global variables and each register to their respective corresponding initial values, thereby avoiding the situation of active discharge abnormalities caused by uncertain or abnormal values ​​of global variables and registers.

[0103] After initializing the various registers of the vehicle, the frequency register, the duty cycle register and the dead zone register can be determined from the various registers; the preset PWM frequency is configured in the frequency register, the preset PWM duty cycle is configured in the duty cycle register, and the preset dead zone time is configured in the dead zone register to configure the pulse width modulation PWM signal corresponding to the vehicle.

[0104] The preset PWM frequency refers to the frequency of the pulse width modulation PWM signal, which can be set based on the actual situation. For example, the preset PWM frequency can be any frequency from 2.5k to 10k, etc. For example, it can be set to. The preset dead time can be set based on the actual situation. The setting of the preset dead time can avoid the simultaneous conduction of the switch tubes corresponding to the upper bridge arm and the lower bridge arm of the same phase of the motor corresponding to the vehicle, thereby facilitating the avoidance of subsequent active discharge abnormalities. The frequency register can be Atom_CM1 (Time Output Control_CM1, time register CM1), the duty cycle register can be Atom_CM0 (TimeOutput Control_CM0, time register CM0), and the dead zone register can be (CDTM, Cluster Dead TimeModule, dead zone register).

[0105] In other embodiments, a timing register can also be determined from each register, and a preset discharge timing duration can be configured in the timing register. The preset discharge timing duration is a preset maximum time threshold for active discharge of the motor based on pulse width modulation PWM signal control. When the duration of active discharge of the motor based on pulse width modulation PWM signal control lasts for the preset timing duration, if the bus voltage is greater than the preset undervoltage threshold, it means that the active discharge of the vehicle is abnormal. At this time, a discharge warning needs to be generated to prompt the user that after the redundant active discharge instruction is generated, the active discharge is still abnormal. The timing register can be TOUTSEL (Timer Output Selection Register).

[0106] The frequency register is used to store the preset PWM frequency corresponding to the pulse width modulation PWM signal, the duty cycle register can be used to store the preset PWM duty cycle corresponding to the pulse width modulation PWM signal, the dead zone register can be used to store the preset dead zone time of the switch tube controlled by the pulse width modulation PWM signal, and the timing register can be used to store the preset discharge timing duration.

[0107] In this embodiment, after the frequency register, duty cycle register, dead zone register and timing register are configured and tested, corresponding configuration can be performed. For example, it is detected whether the frequency value stored in the frequency register is within the preset normal frequency range. The preset normal frequency range can be set based on actual conditions. For example, the preset normal frequency range can be 2.5k to 10k. When the frequency value stored in the frequency register belongs to the preset normal frequency range, the frequency value stored in the frequency register can be used as the preset PWM frequency. When the frequency value stored in the frequency register does not belong to the preset normal frequency range, the preset PWM frequency value configured in the frequency register needs to be set. At this time, the preset PWM frequency value can be the default PWM frequency value.

[0108] It is also possible to detect whether the duty cycle value stored in the duty cycle register is within the preset normal duty cycle range. The preset normal duty cycle range can be determined based on actual conditions. For example, the preset normal duty cycle range can be 0 to 1. When the duty cycle value stored in the duty cycle register belongs to the preset normal duty cycle range, if the duty cycle value stored in the duty cycle register is the preset PWM duty cycle, there is no need to configure the duty cycle register. If the duty cycle value stored in the duty cycle register is not the preset PWM duty cycle, the preset PWM duty cycle configured in the duty cycle register needs to be configured. When the duty cycle value stored in the duty cycle register does not belong to the preset normal duty cycle range, the preset PWM duty cycle configured in the duty cycle register needs to be configured.

[0109] The dead time stored in the dead time register may also be detected to detect whether the dead time is within a preset normal dead time range. The preset normal dead time range may be determined based on actual conditions, and this implementation does not specifically limit this. When the dead time value stored in the dead time register is within the preset normal dead time range, there is no need to configure the dead time register. When the dead time value stored in the dead time register is not within the preset normal dead time range, the preset PWM dead time configured in the dead time register is required.

[0110] Exemplarily, the addresses of the frequency register and the dead zone register can be obtained, so as to store the preset PWM frequency in the frequency register and store the preset dead zone time in the dead zone register to configure the pulse width modulation PWM signal corresponding to the vehicle. This embodiment configures the pulse width modulation PWM signal to facilitate the subsequent control of the motor based on the pulse width modulation PWM signal to control each phase in the motor to perform active discharge.

[0111] In a feasible embodiment, the active discharge control method also includes step X10: when it is detected that the bus voltage is less than or equal to a preset undervoltage threshold, and / or when it is detected that the duration of active discharge of the motor in the vehicle controlled by the pulse width modulation PWM signal is greater than or equal to a preset discharge duration threshold, controlling the vehicle's motor to stop active discharge.

[0112] It should be noted that when it is detected that the bus voltage of the vehicle is less than the preset undervoltage threshold, it means that the vehicle's active discharge is completed and no active discharge is required. At this time, the vehicle's motor can be controlled to stop active discharge. When the duration of active discharge of the motor in the vehicle controlled by the pulse width modulation PWM signal is greater than or equal to the preset discharge duration threshold, it means that the active discharge duration is greater than or equal to the preset maximum discharge duration, and active discharge can no longer be continued to avoid the risk of vehicle overheating, so the vehicle's motor also needs to be controlled to stop active discharge.

[0113] After controlling the motor in the vehicle to perform at least one round of cyclic operation, in the subsequent cyclic operation, if the bus voltage is detected to be less than or equal to the preset undervoltage threshold in the first signal control operation of the cyclic operation, and / or, it is detected that the duration of active discharge of the motor in the vehicle controlled by the pulse width modulation PWM signal is greater than or equal to the preset discharge duration threshold, then the motor in the vehicle is controlled to stop active discharge; if the bus voltage is detected to be less than or equal to the preset undervoltage threshold in the second signal control operation of the cyclic operation, and / or, it is detected that the duration of active discharge of the motor in the vehicle controlled by the pulse width modulation PWM signal is greater than or equal to the preset discharge duration threshold, then the motor in the vehicle is controlled to stop active discharge; if the bus voltage is detected to be less than or equal to the preset undervoltage threshold in the third signal control operation of the cyclic operation, and / or, it is detected that the duration of active discharge of the motor in the vehicle controlled by the pulse width modulation PWM signal is greater than or equal to the preset discharge duration threshold, then the motor in the vehicle is controlled to stop active discharge.

[0114] Exemplarily, when the motor is performing any step of the cycle operation (any step may be the first signal control operation, the second signal control operation or the third signal control operation in the cycle operation), if the vehicle meets the preset discharge stop condition, the motor of the vehicle can be controlled to stop active discharge. The preset discharge stop condition includes: the bus voltage is less than or equal to the preset undervoltage threshold, and / or it is detected that the duration of active discharge of the motor in the vehicle controlled by the pulse width modulation PWM signal is greater than or equal to the preset discharge duration threshold.

[0115] In a feasible embodiment, step X10 further includes step X11: configuring the motor to stop the active discharge state, resetting the cycle count value of the preset cycle counter, and resetting the duty cycle of the pulse width modulation PWM signal.

[0116] It should be noted that the vehicle includes two motors, and configuring the motors to stop the active discharge state may include configuring the first motor and the second motor to stop the active discharge state. Since the duty cycle of the pulse width modulation PWM signal is stored in the duty cycle register, resetting the duty cycle of the pulse width modulation PWM signal may be resetting the duty cycle register. For example, the duty cycle register may be reset to a preset PWM duty cycle initial value to avoid subsequent normal operation of the motor. The preset PWM duty cycle initial value may be set based on actual conditions, and this embodiment does not make specific limitations on this. At the same time, it is also necessary to reset the preset cycle counter. If the preset cycle counter is not reset, the next active discharge may be affected. For example, if the preset cycle counter is not reset, the preset cycle count value may continue to accumulate during the next active discharge, which may cause abnormal active discharge.

[0117] Resetting the preset cycle counter is to reset the preset cycle counter to 0 to facilitate the next active discharge operation. In other embodiments, the step of controlling the motor to stop active discharge may also include: setting the switch tube corresponding to the motor to an off-tube mode, where the off-tube mode means that all corresponding switch tubes in the motor are disconnected. The stop active discharge state is characterized by controlling the motor not to continue active discharge, thereby avoiding the situation where the vehicle battery is abnormal due to continuous discharge.

[0118] Exemplarily, the first motor and the second motor are configured to stop the active discharge state, the preset cycle counters corresponding to the first motor and the second motor are reset to preset initial values, all switch tubes corresponding to the first motor and the second motor are set to the off mode, and the duty cycle register is reset.

[0119] In other embodiments, if the duration of active discharge of each phase in the motor controlled based on the pulse width modulation PWM signal is greater than the preset timing duration, an active discharge abnormality warning is output to prompt the user that the active discharge based on the redundant active discharge indication is still abnormal.

[0120] In addition, in other embodiments, before the step of controlling the vehicle's motor to perform active discharge through a pulse width modulated PWM signal with a preset PWM duty cycle, it also includes: detecting the bus voltage of the vehicle; when the bus voltage is in a preset active discharge state, initializing the vehicle's motor, and based on a preset cycle counter of the motor, cyclically applying the pulse width modulated PWM signal to each phase of the motor to control each phase in the motor to perform active discharge.

[0121] It should be noted that the bus voltage refers to the voltage on the connecting line between the vehicle's battery and various loads. Before controlling the active discharge of each phase in the motor based on the pulse width modulation PWM signal, the bus voltage needs to be detected to detect whether the vehicle can perform active discharge to ensure the reliability of active discharge.

[0122] In a feasible embodiment, detecting the bus voltage of the vehicle may include obtaining the internal voltage of the power control module in the vehicle, the ignition switch voltage and the positive voltage of the battery; when it is detected that the internal voltage, the ignition switch voltage and the positive voltage of the battery are all in a normal voltage state, detecting whether the bus voltage belongs to a preset discharge range, and the boundary values ​​of the preset discharge range are a preset overvoltage threshold and a preset undervoltage threshold, wherein the preset overvoltage threshold is greater than the preset undervoltage threshold; if the bus voltage belongs to the preset discharge range, it is determined that the bus voltage is in a preset active discharge state.

[0123] It should be noted that the detection of bus voltage is carried out when the internal voltage of the power control module, the ignition switch voltage and the battery positive voltage are all in normal voltage state. The power control module refers to the PCM (Power Control Module) corresponding to the vehicle. The internal voltage is the voltage detected inside the PCM. The internal voltage can be represented by the HVDC (High Voltage Direct Current) PN voltage. The HVDC PN voltage can reflect the status of the high-voltage DC power supply in the vehicle. The ignition switch voltage is the voltage when the vehicle is normally started and ignited. The ignition switch voltage can be represented by KL15. The battery positive voltage is the voltage of the positive electrode of the vehicle battery. The battery positive voltage can be represented by KL30.

[0124] When the internal voltage is within the preset internal normal voltage range, it means that the internal voltage is in a normal voltage state; when the internal voltage does not fall within the preset internal normal voltage range, it means that the internal voltage is abnormal; when the ignition switch voltage is within the preset ignition normal voltage range, it means that the ignition switch voltage is in a normal voltage state; when the ignition switch voltage does not fall within the preset ignition normal voltage range, it means that the ignition switch voltage is abnormal.

[0125] When the battery positive electrode voltage is within the preset battery normal voltage range, it indicates that the battery positive electrode voltage is in a normal voltage state. When the battery positive electrode voltage is not within the preset battery normal voltage range, it indicates that the battery positive electrode voltage is abnormal. The preset battery normal voltage range, the preset internal normal voltage range, and the preset ignition normal voltage range can be set based on actual conditions, and this embodiment does not specifically limit this.

[0126] The preset undervoltage threshold is smaller than the preset overvoltage threshold. The preset undervoltage threshold may be 60V, the preset overvoltage threshold may be 500V, etc. This embodiment does not specifically limit this.

[0127] Exemplarily, the internal voltage of the power control module in the vehicle, the ignition switch voltage and the positive voltage of the battery are obtained. If the internal voltage is abnormal, the ignition switch voltage is abnormal and / or the positive voltage of the battery is abnormal, a voltage detection abnormal alarm can be output to prompt that there is an abnormality in the bus voltage detection process, and also prompt the user that active discharge is not recommended at this time. If the internal voltage, the ignition switch voltage and the positive voltage of the battery are all in the preset normal voltage state, it is determined whether the bus voltage is greater than the preset overvoltage threshold, and whether the bus voltage is less than the preset undervoltage threshold.

[0128] It should be noted that when the bus voltage is less than the preset undervoltage threshold, it means that the bus voltage is in an undervoltage state, and the bus voltage does not need to be discharged at this time. When the bus voltage is greater than the preset overvoltage threshold, it means that the bus voltage is in an overvoltage state. If the bus is in an overvoltage state, active discharge is performed, which is prone to unstable discharge process, which may also cause danger.

[0129] The preset active discharge state is characterized by the bus voltage needing to be discharged. When the bus voltage is in the preset discharge range, it means that the bus voltage needs to be discharged, and since the bus voltage is less than or equal to the preset overvoltage threshold, it also means that the risk of instability during the active discharge process is small. Therefore, it can be determined that the bus voltage is in the preset active discharge state.

[0130] For example, when the bus voltage is detected to be in an undervoltage state, a prompt that active discharge is not required can be output; when the bus voltage is detected to be in an overvoltage state, a prompt that active discharge is risky can be output; when the bus voltage is detected to be in a preset active dischargeable state, a prompt that active discharge is required can be output. This embodiment detects the state of the bus voltage, thereby facilitating active discharge when the bus voltage needs to be discharged and can be actively discharged stably, thereby improving the reliability of active discharge.

[0131] In which, when the bus voltage is in a preset active discharge state, the vehicle's motor is initialized, and based on a preset cycle counter of the motor, a pulse width modulation PWM signal is cyclically applied to each phase of the motor to control each phase in the motor for active discharge.

[0132] Initializing the motor of the vehicle means initializing the running state of the motor so that a pulse width modulation (PWM) signal with a preset PWM duty cycle can be accurately applied to the motor in the future to accurately perform active discharge. Initializing the motor may include, for each motor in the vehicle (each motor includes a first motor and a second motor), adjusting the duty cycle of each corresponding PWM signal running on the motor to 0, initializing the preset cycle counter of each motor to a preset initial value, setting each motor to a duty cycle mode, and setting the state of each motor to a discharge activation state or a start discharge state, where both the discharge activation state and the start discharge state indicate that the motor can perform active discharge, for example, the preset initial value may be 0. Before the motor is initialized, each phase in the motor may have its own corresponding PWM signal. Since each phase in the motor needs to be controlled by the configured pulse width modulation (PWM) signal in the future, the motor needs to be initialized first to ensure the accuracy of the subsequent control. Setting each motor to a duty cycle mode means allowing each phase in the motor to be controlled based on the preset PWM duty cycle in the duty cycle register.

[0133] For a better understanding of this embodiment, please refer to Figure 3 , the process of controlling each phase of the motor to perform active discharge based on the pulse width modulation PWM signal in this embodiment is briefly described:

[0134] Step Y10: Initialize the global variables and registers corresponding to the vehicle, step Y20: configure the register to configure the pulse width modulation PWM signal, step Y30: control the motor to perform active discharge based on the pulse width modulation PWM signal with a duty cycle of a preset PWM duty cycle, step Y40: determine whether the active discharge is completed, if not, return to step Y30 to continue the active discharge, if the active discharge is not completed, execute step Y50 to control the motor to stop discharging. After controlling the motor to stop discharging, the duty cycle register can be reset, the preset cycle counter corresponding to the motor can be reset, etc.

[0135] Reference Figure 4 , Figure 4 A schematic diagram of a module structure of a discharge control device is shown in FIG. 1 , including:

[0136] A detection module 10, for generating a redundant active discharge indication when an abnormal active discharge state of a motor winding of a vehicle is detected;

[0137] The active discharge module 20 is used to control the motor in the vehicle to perform active discharge through a pulse width modulation PWM signal based on the redundant active discharge indication.

[0138] The discharge control device provided in the present application adopts the active discharge control method in the above-mentioned embodiment, aiming to solve the technical problem of unreliable active discharge of the vehicle. Compared with the prior art, the beneficial effects of the active discharge control method provided in the embodiment of the present application are the same as the beneficial effects of the active discharge control method provided in the above-mentioned embodiment, and other technical features in the discharge control device are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here. The embodiment of the present application provides an electronic device, which can be a playback device, and the electronic device includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor so that at least one processor can execute the active discharge control method in the above-mentioned embodiment.

[0139] Reference below Figure 5, which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0140] like Figure 5 As shown, the electronic device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which may perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM) 1004. In RAM 1004, various programs and data required for the operation of the electronic device are also stored. The processing device 1001, ROM 1002, and RAM 1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems may be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the electronic device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have instead.

[0141] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 1009, or installed from the storage device 1003, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0142] The electronic device provided by the present application adopts the active discharge control method in the above-mentioned embodiment 1 to solve the technical problem of unreliable active discharge of the vehicle. Compared with the prior art, the beneficial effect of the product flow data distribution provided by the embodiment of the present application is the same as the beneficial effect of the active discharge control method provided by the above-mentioned embodiment, and the other technical features in the discharge control device are the same as the features disclosed by the above-mentioned embodiment method, which will not be repeated here. It should be understood that the various parts of the present disclosure can be implemented by hardware, software, firmware or a combination thereof. In the description of the above-mentioned embodiments, specific features, structures, materials or characteristics can be combined in a suitable manner in any one or more embodiments or examples. The above is only a specific embodiment of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims. The present embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon, and the computer-readable program instructions are used to execute the active discharge control method in the above-mentioned embodiment 1. The computer-readable storage medium provided in the embodiment of the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor devices, equipment or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable EPROM (Electrical Programmable Read Only Memory) or flash memory, an optical fiber, a portable compact disk CD-ROM (compact disc read-only memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution device, device or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency, radio frequency), etc., or any suitable combination of the above. The above-mentioned computer-readable storage medium may be contained in an electronic device; it may also exist alone without being assembled into an electronic device.The computer-readable storage medium carries one or more programs. When the one or more programs are executed by an electronic device, the electronic device: generates a redundant active discharge indication when an abnormal active discharge state of a motor winding of a vehicle is detected; and controls the motor in the vehicle to perform active discharge through a pulse width modulation (PWM) signal based on the redundant active discharge indication.

[0143] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a LAN (local area network) or a WAN (Wide Area Network), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0144] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the equipment, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based device that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0145] The modules involved in the embodiments described in the present disclosure may be implemented by software or by hardware. The name of the module does not constitute a limitation on the unit itself under certain circumstances. The computer-readable storage medium provided in the present application stores computer-readable program instructions for executing the above-mentioned active discharge control method, aiming to solve the technical problem of unreliable active discharge of the vehicle. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the embodiments of the present application are the same as the beneficial effects of the active discharge control method provided in the above-mentioned embodiments, which will not be repeated here.

[0146] The present application also provides a computer program product, including a computer program, which implements the steps of the active discharge control method as described above when the computer program is executed by a processor. The computer program product provided by the present application is intended to solve the technical problem of unreliable active discharge of vehicles. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present application are the same as the beneficial effects of the active discharge control method provided by the above embodiment, which will not be repeated here. The above are only preferred embodiments of the present application, and the patent scope of the present application is not limited thereto. All equivalent structures or equivalent process transformations made using the contents of the specification and drawings of this application, or directly or indirectly used in other related technical fields, are similarly included in the patent processing scope of the present application.

Claims

1. An active discharge control method, characterized in that: The method includes: generating a redundant active discharge indication in the event that an abnormal active discharge state of a motor winding of the vehicle is detected; Based on the redundant active discharge indication, controlling the motor of the vehicle to perform active discharge by a pulse width modulation (PWM) signal having a duty cycle equal to a preset PWM duty cycle; The motor includes at least two phases, and the step of controlling the motor of the vehicle to perform active discharge by using a pulse width modulation (PWM) signal having a duty cycle that is a preset PWM duty cycle includes: Controlling the motor to perform at least one cycle operation, wherein one cycle operation includes at least one signal control operation; The signal control operation comprises: applying a pulse width modulation (PWM) signal having a duty cycle of a preset PWM duty cycle to a target phase of the at least two phases, and controlling the duty cycles of the PWM signals of non-target phases of the at least two phases to be preset null values; The at least two phases include a first phase, a second phase and a third phase, and the phase difference between two adjacent phases among the first phase, the second phase and the third phase is 120°; One round of the cyclic operation includes the first step signal control operation, the second step signal control operation and the third step signal control operation executed in sequence; The first step signal control operation includes: when the count value of the preset cycle counter is a preset initial value, determining the first phase as the target phase, determining the second phase and the third phase as non-target phases, applying a pulse width modulation (PWM) signal having a duty cycle of a preset PWM duty cycle to the first phase, and controlling the duty cycles of the PWM signals corresponding to the second phase and the third phase to be preset null values, and accumulating the preset initial value to obtain a preset single accumulation threshold; The second-step signal control operation includes: when the count value of the preset cycle counter is a preset single accumulation threshold, determining the second phase as the target phase, determining the first phase and the third phase as non-target phases, applying a pulse width modulation (PWM) signal having a duty cycle of a preset PWM duty cycle to the second phase, and controlling the duty cycles of the PWM signals corresponding to the first phase and the third phase to be preset null values, and accumulating the preset single accumulation threshold in the preset cycle counter to obtain a preset end accumulation threshold; The third-step signal control operation includes: when the count value of the preset cycle counter is a preset end accumulation threshold, the third phase is determined as the target phase, the first phase and the second phase are determined as non-target phases, a pulse width modulation (PWM) signal having a duty cycle of a preset PWM duty cycle is applied to the third phase, and the duty cycles of the PWM signals corresponding to the first phase and the second phase are controlled to be preset null values, and the preset end accumulation threshold in the preset cycle counter is reset to a preset initial value.

2. The active discharge control method according to claim 1, characterized in that: The situation where the active discharge state of the motor winding of the vehicle is detected to be abnormal includes: After detecting that the motor winding is actively discharged for a duration of a preset discharge duration, the bus voltage of the vehicle is greater than or equal to a preset undervoltage threshold.

3. The active discharge control method according to claim 1, characterized in that: Before the step of controlling the motor of the vehicle to perform active discharge by using a pulse width modulation (PWM) signal having a preset PWM duty cycle, the method further includes: Get the vehicle's frequency register and dead zone register; configuring a preset PWM frequency in the frequency register to adjust the frequency of the pulse width modulation PWM signal; The preset dead time is configured in the dead time register to adjust the dead time corresponding to the pulse width modulation (PWM) signal.

4. The active discharge control method according to any one of claims 1 to 3, characterized in that: The method includes: When it is detected that the bus voltage is less than or equal to a preset undervoltage threshold, and / or when it is detected that the duration of active discharge of a motor in the vehicle controlled by a pulse width modulation (PWM) signal is greater than or equal to a preset discharge duration threshold, the motor of the vehicle is controlled to stop active discharge.

5. The active discharge control method according to claim 4, characterized in that: The step of controlling the motor of the vehicle to stop active discharge comprises: The motor is configured to stop the active discharge state, the cycle count value of the preset cycle counter is reset, and the duty cycle of the pulse width modulation (PWM) signal is reset.

6. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the steps of the active discharge control method according to any one of claims 1 to 5.

7. A readable storage medium, characterized in that: The readable storage medium is a computer-readable storage medium, on which is stored a program for implementing the active discharge control method, and the program for implementing the active discharge control method is executed by a processor to implement the steps of the active discharge control method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Active discharging method of power converter and controller

    CN113595374A

Cited By

  • Active discharge redundancy method for a crane

    CN120582045B