Range extender shutdown control method, device and equipment

By obtaining the engine piston position in real time and using the PI control algorithm, the piston is controlled to be stopped accurately in the non-compressed position, which solves the vibration and noise problems when the range extender is started and improves the user experience.

CN120331985APending Publication Date: 2025-07-18CHONGQING SOKON POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510702830.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-28
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

After the existing range extender is shut down, the engine piston position is randomly distributed, resulting in excessive vibration and noise during startup, and the engine may reverse, increasing vibration and noise during the shutdown process.

Method used

By obtaining the actual position of the engine piston in real time, determining its stroke and calculating the preset stop position, the proportional integral PI control algorithm is used to control the piston to accurately stop at the non-compressed position to avoid reversal.

Benefits of technology

Effectively reduce the vibration and noise of the range extender when the next start, improve the user's driving experience, and avoid vibration and noise problems caused by engine reversal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120331985A_ABST
    Figure CN120331985A_ABST
Patent Text Reader

Abstract

According to the range extender shutdown control method, device and equipment provided by the embodiment of the invention, the actual position of the vehicle engine piston is obtained in real time in response to the starting and shutdown process of the vehicle range extender, and the stroke of the engine piston and the preset shutdown position corresponding to the current stroke are determined; and determining a first control parameter based on the actual position of the engine piston and the preset stop position, and controlling the engine piston to stop at the preset stop position based on a proportional-integral (PI) control algorithm and the first control parameter. Each stroke is provided with the corresponding preset stop position, the engine piston can be controlled to accurately rotate to the preset stop position to stop based on the proportional-integral control algorithm, vibration and noise generated when the range extender is started next time can be effectively weakened, and the driving experience of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle control, and particularly to a control method, device and equipment for a range extender to stop. Background Art

[0002] The range extender for new energy vehicles is mostly composed of an engine, a permanent magnet synchronous generator and corresponding controllers, and is a common range extension solution in new energy vehicles. When the battery power is insufficient, the engine drives the generator to rotate for power generation, which can extend the vehicle range and reduce the user's range anxiety. After the existing range extender stops, the positions of the engine pistons are completely randomly distributed. When the pistons stop at positions such as the top dead center of the compression stroke, the compression pressure in the cylinder is the largest, the starting torque requirement is high, and the vibration and noise are large during the next start-up process of the range extender. In addition, under the existing method of directly stopping the range extender, the engine will reverse to a certain extent due to inertia, which increases the vibration and noise during the stopping process. Summary of the Invention

[0003] In view of this, the present application provides a control method, device and equipment for a range extender to stop, which is beneficial to solving the problem of excessive vibration and noise during the start-up of the range extender caused by the uncertain piston position in the prior art.

[0004] In a first aspect, an embodiment of the present application provides a control method for a range extender to stop, including: In response to the start of the shutdown process of the vehicle range extender, the actual position of the vehicle engine piston is obtained in real time; Determine the stroke in which the engine piston is located and the preset shutdown position corresponding to the current stroke; Determine a first control parameter based on the actual position of the engine piston and the preset shutdown position; Based on the proportional-integral (PI) control algorithm and the first control parameter, control the engine piston to stop at the preset shutdown position.

[0005] In an optional embodiment, before the step of obtaining the actual position of the vehicle engine piston in real time in response to the start of the shutdown process of the vehicle range extender, the method further includes: Judge whether the range extender has started the shutdown process based on the shutdown flag bit of the range extender and the engine speed.

[0006] In an optional embodiment, the step of judging whether the range extender has started the shutdown process based on the shutdown flag bit of the range extender and the engine speed includes: Obtain the shutdown flag bit of the range extender and the engine speed, where the shutdown flag bit includes a first flag bit and a second flag bit, the first flag bit is used to indicate that the range extender is in a working state, and the second flag bit is used to indicate that the range extender is in a shutdown state; When it is detected that the shutdown flag bit is the second flag bit and the engine speed is less than the first threshold, it is determined that the range extender has initiated the shutdown process.

[0007] In an alternative embodiment, the determining of the first control parameter based on the actual position of the engine piston and the preset shutdown position includes: Calculating the angular difference between the preset shutdown position corresponding to the current stroke of the piston and the actual position of the piston; When the angular difference is positive, determining the angular difference as the first control parameter; When the angular difference is negative, determining the sum of the angular difference and a first angular value as the first control parameter.

[0008] In an alternative embodiment, the controlling of the engine piston to stop at the preset shutdown position based on the proportional-integral (PI) control algorithm and the first control parameter includes: Determining a speed command value based on the first control parameter and a preset position proportional-integral coefficient; Determining a torque command value based on the speed command value and a preset speed proportional-integral coefficient; Determining a direct-axis and quadrature-axis current value that matches the torque command value based on the mapping relationship between torque and direct-axis and quadrature-axis currents; Determining a direct-axis and quadrature-axis voltage value based on the direct-axis and quadrature-axis current value; Controlling the motor to drive the engine to rotate based on the direct-axis and quadrature-axis voltage value until the engine piston rotates to the preset shutdown position and stops.

[0009] In an alternative embodiment, the method further includes: When it is detected that the first control parameter is less than a preset second angular value, fixedly setting the first control parameter to the second angular value.

[0010] In an alternative embodiment, the controlling of the engine piston to stop at the preset shutdown position based on the proportional-integral (PI) control algorithm and the first control parameter includes: Controlling the engine piston to rotate based on the proportional-integral algorithm and the first control parameter; When it is detected that the first control parameter is less than a preset third angular value and the duration exceeds a preset duration threshold, controlling the engine piston to stop rotating.

[0011] In a second aspect, an embodiment of the present application provides a range extender shutdown control device, including: An acquisition module, configured to, in response to the range extender of the vehicle initiating the shutdown process, acquire in real time the actual position of the engine piston of the vehicle; A first determination module, configured to determine the stroke in which the engine piston is located and a preset stopping position corresponding to the current stroke; A second determination module, configured to determine a first control parameter based on the actual position of the engine piston and the preset stopping position; A control module, configured to control the engine piston to stop at the preset stopping position based on a proportional-integral (PI) control algorithm and the first control parameter.

[0012] In a third aspect, an embodiment of the present application provides an electronic device, including a memory for storing computer program instructions and a processor for executing the program instructions. When the computer program instructions are executed by the processor, the electronic device is triggered to execute the method according to any one of the first aspects described above.

[0013] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium includes a stored program. When the program runs, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of the first aspects described above.

[0014] In a fifth aspect, an embodiment of the present application provides a computer program product, where the computer program product includes executable instructions. When the executable instructions are executed on a computer, the computer is caused to execute the method according to any one of the first aspects described above.

[0015] By adopting the solution provided by the embodiment of the present application, in response to the start-stop process of the vehicle range extender, the actual position of the vehicle engine piston is obtained in real time, the stroke in which the engine piston is located and the preset stopping position corresponding to the current stroke are determined, the first control parameter is determined based on the actual position and the preset stopping position of the engine piston, and the engine piston is controlled to stop at the preset stopping position based on the proportional-integral (PI) control algorithm and the first control parameter. A corresponding preset stopping position is set for each stroke. Based on the proportional-integral control algorithm, the engine piston can be precisely rotated to the preset stopping position to stop, which can effectively reduce the vibration and noise during the next start of the range extender and improve the driving experience of users. Description of the Drawings

[0016] To more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0017] Figure 1 It is a schematic flowchart of a range extender stop control method provided by an embodiment of the present application; Figure 2Schematic flowchart of another extender shutdown control method provided by an embodiment of the present application; Figure 3 Schematic example diagram of an extender shutdown control method provided by an embodiment of the present application; Figure 4 Schematic example diagram of another extender shutdown control method provided by an embodiment of the present application; Figure 5 Schematic structural diagram of an extender shutdown control device provided by an embodiment of the present application; Figure 6 Schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0018] To better understand the technical solution of the present application, the embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0019] It should be clear that the described embodiments are only a part of the embodiments of the present application, rather than all embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts shall fall within the protection scope of the present application.

[0020] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.

[0021] It should be understood that the term " / and" used herein is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " herein generally represents an "or" relationship between the associated objects before and after.

[0022] The range extender of a new energy vehicle is mostly composed of an engine, a generator, and corresponding controllers, which is a common range extension solution in new energy vehicles. When the vehicle battery power is insufficient, the range extender starts, and the engine drives the generator to rotate for power generation, which can extend the vehicle's range and reduce the user's range anxiety. When the range extender starts or stops, the generator drives the engine to rotate or stop. However, after the range extender completely stops, the positions of the engine pistons are completely randomly distributed. When the engine pistons stop at the top dead center of the compression stroke and other positions, the compression pressure in the cylinder is relatively large, and the starting torque requirement is high, resulting in large vibration and noise during the next start-up process of the range extender. On the contrary, when the pistons stop at non-compressed positions, the compression pressure in the cylinder is relatively small, and the starting torque requirement is low, resulting in small vibration and noise during the next start-up process of the range extender. In addition, under the traditional direct stop method, the engine will reverse to a certain extent due to inertia, which increases the vibration and noise during the stop process.

[0023] In view of the above problems, the embodiment of the present application proposes a range extender stop control method. When the range extender starts the stop process, the proportional-integral control algorithm is adopted to control the engine piston to stop at an ideal position (non-compressed position) according to a preset stop position, ensuring small vibration and noise during the next start-up process of the range extender, and at the same time avoiding the vibration and noise caused by the engine reversing during the stop process.

[0024] Figure 1 It is a schematic flow chart of a range extender stop control method provided by the embodiment of the present application. This method can be applied to a vehicle processor, such as Figure 1 shown, this method includes: Step 101, in response to the vehicle range extender starting the stop process, obtain the actual position of the vehicle engine piston in real time.

[0025] When the vehicle battery power is insufficient, the range extender starts to charge the vehicle battery. On the contrary, when the vehicle battery power is replenished beyond a certain threshold, the range extender will start the stop process. During the stop process of the range extender, the vehicle processor obtains the actual position of the engine piston in real time. Optionally, the actual position of the engine piston can be obtained by analyzing the engine end crankshaft signal or the motor end resolver signal.

[0026] In an alternative embodiment, the vehicle processor may determine whether the range extender has initiated a shutdown process based on the shutdown flag bit of the range extender and the engine speed. Optionally, the shutdown flag bit is sent by the vehicle control unit (VCU) and includes a first flag bit and a second flag bit. The first flag bit is used to indicate that the range extender is in an operating state, and the second flag bit is used to indicate that the range extender is in a shutdown state. The vehicle processor obtains the shutdown flag bit of the range extender and the engine speed in real time. When it is detected that the shutdown flag bit is the second flag bit and the engine speed is less than the first threshold, it can be determined that the range extender has initiated a shutdown process. It can be understood that as the shutdown process is initiated, the engine speed will gradually decrease. By the dual determination of the shutdown flag bit and the engine speed, the detection accuracy of the shutdown process can be improved.

[0027] Step 102, determine the stroke in which the engine piston is located and the preset shutdown position corresponding to the current stroke.

[0028] Taking a four-stroke engine as an example, the engine strokes may include: an intake stroke, a compression stroke, a power stroke, and an exhaust stroke, a total of four strokes. A preset shutdown position can be set for each stroke. The preset shutdown position is the ideal position where the engine piston stops. If the engine piston stops at this preset shutdown position, the vibration and noise during the next start of the range extender are relatively small.

[0029] Step 103, determine a first control parameter based on the actual position of the engine piston and the preset shutdown position.

[0030] The first control parameter can be regarded as the input parameter of the proportional-integral algorithm. When there is a difference between the actual position of the engine piston and the preset shutdown position, the vehicle processor can control the precise rotation of the engine piston based on the proportional-integral control algorithm and the input parameter, so that the difference between the actual position of the engine piston and the preset shutdown position continuously decreases until the engine piston rotates to the preset shutdown position and stops.

[0031] Specifically, the vehicle processor calculates the angular difference between the preset shutdown position corresponding to the current stroke of the piston and the actual position of the piston. When the angular difference is positive, the angular difference is directly determined as the first control parameter. When the angular difference is negative, the sum of the angular difference and the first angular value is determined as the first control parameter. In each stroke, the engine piston moves up and down once in the cylinder, and the crankshaft rotates half a turn, that is, a mechanical angle of 180 degrees. Therefore, the actual position and the preset shutdown position of the piston can be mapped to corresponding angles. There is a preset shutdown position within each stroke, and the value ranges of the preset shutdown position and the actual position of the piston are both 0 to 180 degrees. Taking the intake stroke as an example, at the start of this stroke, the engine piston is at the uppermost end, corresponding to an actual position of 0 degrees. At the end of the intake stroke, the engine piston is at the lowermost end, corresponding to an actual position of 180 degrees.

[0032] When the angle difference is positive, applying the angle difference to the proportional-integral algorithm can control the engine piston to rotate clockwise, where the clockwise rotation can be regarded as the rotation direction for normal operation. When the angle difference is negative, applying the angle difference to the proportional-integral algorithm can control the engine piston to rotate counterclockwise, resulting in engine reverse. Therefore, when the angle difference is negative, the angle difference can be added to the first angle value to make it positive, and then the sum is determined as the first control parameter. Since the value range of the angle difference is from 0 to 180 degrees, the first angle value can be set to 180 degrees, and regardless of the value of the angle difference, the sum with the first angle value is positive.

[0033] Step 104, control the engine piston to stop at a preset shutdown position based on the proportional-integral (PI) control algorithm and the first control parameter.

[0034] There is a corresponding relationship among position, speed, torque, current, and voltage. The first control parameter is an angle value. Based on the first control parameter and a preset position proportional-integral coefficient, the speed command value can be determined. Based on the speed command value and a preset speed proportional-integral coefficient, the torque command value can be determined. Based on the mapping relationship between torque and direct-axis and quadrature-axis currents, the direct-axis and quadrature-axis current values matching the torque command value can be determined. Based on the direct-axis and quadrature-axis current values, the corresponding direct-axis and quadrature-axis voltage values can be determined. Based on the direct-axis and quadrature-axis voltage values, the motor can be controlled to drive the engine to rotate until the engine piston rotates to the preset shutdown position and stops.

[0035] As the engine piston rotates, the actual position of the piston will gradually approach the preset shutdown position, and the angle difference between the actual position of the piston and the preset shutdown position will also gradually decrease. When the angle difference decreases to zero, the engine piston has rotated to the preset shutdown position and the engine piston stops rotating.

[0036] In an alternative embodiment, when the vehicle processor detects that the first control parameter is less than a preset second angle value, the first control parameter is fixedly set to the second angle value. In the actual control process, as the angle difference between the actual position of the piston and the preset shutdown position gradually decreases, the speed command value obtained through the position proportional-integral coefficient will also become smaller, and the rotation speed of the engine piston will slow down, resulting in an overly long adjustment time. Therefore, when it is detected that the first control parameter decreases below the second angle value, the first control parameter is directly set to a fixed value, that is, the second angle value, to effectively shorten the adjustment time of the engine piston.

[0037] In an alternative embodiment, when the vehicle processor detects that the first control parameter is less than a preset third angle value and the duration exceeds a preset duration threshold, it controls the engine piston to stop rotating. Considering actual errors, the engine piston only needs to be within a certain range close to the preset stop position to achieve the purpose of reducing the vibration and noise during the start of the range extender. The first control parameter here refers to the parameter obtained from the angular difference between the actual position of the piston and the preset stop position, and has nothing to do with the above-mentioned second angle value. The first control parameter being less than the preset third angle value indicates that the engine piston is already very close to the preset stop position. After the duration exceeds the preset duration threshold, it can be determined that the engine piston has achieved the goal and the adjustment is completed.

[0038] In the embodiment of the present application, taking the difference between the actual position of the engine piston and the preset stop position as the input, the engine rotation is controlled based on the proportional-integral control algorithm, and the engine piston is accurately adjusted to the preset stop position (non-compression position), which can avoid the reverse rotation of the engine when it stops, and at the same time reduce the vibration and noise during the start of the range extender.

[0039] Figure 2 It is a schematic flowchart of another range extender shutdown control method provided by the embodiment of the present application. As Figure 2 shown, the method may include: Step 201, confirm to start the shutdown process.

[0040] The vehicle controller comprehensively judges whether the range extender starts the shutdown process based on the shutdown flag bit and the engine speed. Referring to the following formula, , VCU_StopFlag is the shutdown flag bit output by the vehicle controller, and its value includes 1 or 0. Taking 1 means the shutdown state, and taking 0 means the working state. n stop is the first threshold, n is the engine speed. When n ≤ n stop and VCU_StopFlag = 1, the vehicle processor confirms that the range extender starts the shutdown process.

[0041] Step 202, determine the preset stop position and the first control parameter.

[0042] Each stroke has a corresponding preset stop position. The engine may include multiple pistons and a crankshaft. Referring to Figure 3 , taking a four-piston engine as an example, when two of the pistons are at the top and the other two pistons are at the bottom. The preset stop position should ensure that when the range extender starts, each piston is in a non-compression position. Therefore, the position where the four pistons are on the same horizontal line can be selected as the preset stop position, that is, the 90-degree position of each stroke.

[0043] Subtract the actual position of the piston from the preset stop position to obtain the angular difference. Referring to the following formula , where θ ref is the preset shutdown position, which can be obtained through theoretical design or calibration through vehicle experiments. When the piston position is this value, the compression pressure in the cylinder is small, the starting torque requirement is low, and the vibration and noise during the next start-up process of the range extender are small. θ is the real-time position of the engine piston, which can be obtained by analyzing the crankshaft signal at the engine end or the resolver signal at the motor end.

[0044] To prevent the engine from reversing during the shutdown process, it is necessary to process the shutdown angle error θ err to ensure that it is always positive. The processing method is as follows , which is the first control parameter. Taking the intake stroke as an example, the preset shutdown position is 90 degrees. When the actual position of the piston is 80 degrees, the angle difference is 10 degrees. The engine piston can be rotated 10 degrees clockwise to reach the preset shutdown position. When the actual position of the piston is 100 degrees, the angle difference is -10 degrees. If proportional-integral control is directly performed, the engine will reverse. Therefore, the vehicle processor adds this angle difference to 180 degrees, and the result is 170 degrees. This value is used as the first control parameter. Referring to Figure 4 , after the engine piston rotates 170 degrees clockwise, it will rotate to the preset shutdown position of the next stroke (i.e., the compression stroke), which is also 90 degrees.

[0045] Step 203, determine whether the first control parameter is less than the third angle value and whether the duration exceeds the duration threshold. If both are satisfied, go to step 210; otherwise, go to step 204.

[0046] The first control parameter being less than the third angle value and the duration exceeding the duration threshold are the judgment bases for whether the shutdown process ends. The first control parameter is determined by the angle difference between the actual position of the piston and the preset shutdown position. When this parameter is small, it indicates that the piston is very close to the preset shutdown position. After the piston is close to the preset shutdown position for a long time, considering the actual error, it can be regarded that the piston has completed the position adjustment.

[0047] Step 204, determine whether the first control parameter is less than the second angle value. If so, go to step 206; otherwise, go to step 205.

[0048] Step 205, determine the rotational speed command value based on the first control parameter.

[0049] Step 206, give the rotational speed command value.

[0050] When the first control parameter is small, the rotational speed of the engine piston is also small. Considering the adjustment efficiency, a rotational speed command value can be directly given. If the first control parameter is not less than the second angle value, the rotational speed command value is normally determined by the first control parameter and the proportional-integral coefficient. Referring to the following formula, , where k p_pos and k i_pos are the position proportional coefficient and the position integral coefficient respectively, which can be obtained through calibration; s represents the Laplace operator, and 1 / s represents the integral operation; n ref is the rotational speed command value required for the motor control speed loop.

[0051] Step 207, determine the direct and quadrature axis voltages based on the rotational speed command value.

[0052] Substitute the rotational speed command value into to obtain the torque command value. In the formula, k p_n and k i_n are the rotational speed proportional coefficient and the rotational speed integral coefficient respectively, which can be obtained through calibration; T e_ref is the torque command value required for the motor control current loop. Substitute T e_ref to calculate the direct and quadrature axis currents required for the current loop according to the MTPA control method. The expression is as follows: , where i d_ref and i q_ref are the direct and quadrature axis currents respectively, f d 、f q are the torque-direct and quadrature axis current mapping relationships under the MTPA control method respectively. Based on the direct and quadrature axis currents i d_ref and i q_ref the direct and quadrature axis voltages can be determined. The transfer function expression is as follows: , where k p_d and k i_d are the current proportional coefficient and the current integral coefficient of the direct axis current loop respectively, k p_q and k i_q are the current proportional coefficient and the current integral coefficient of the quadrature axis current loop respectively. Their expressions are shown in formula (1) below; i d 、i q are the direct and quadrature axis currents respectively, and their expressions are shown in formula (2) below. Among them, formulas (1) and (2) are as follows: …… (1), …… (2) In the formula w c is the bandwidth of the current loop, generally taking 1 / 10 of the switching frequency; R s 、L d 、L q are respectively the stator resistance, direct-axis inductance, and quadrature-axis inductance of the permanent magnet synchronous motor; i a 、i b 、i c is the three-phase stator current of the motor; θ r is the electrical angular position of the motor rotor.

[0053] Step 208, control the engine rotation based on the direct and quadrature-axis voltages.

[0054] u d 、u q are respectively the direct and quadrature-axis voltages. Transmitting the voltage value to the modulation module and the inverter can control the motor to drive the engine to rotate, and then stop the engine piston at a preset shutdown position (non-compression position).

[0055] Step 209, update the first control parameter in real time.

[0056] As the piston rotates, the first control parameter gradually decreases.

[0057] Step 210, end the shutdown process and clear the flag bit.

[0058] When the first control parameter meets the condition, end the shutdown process and clear the flag bit.

[0059] In the embodiments of the present application, through the above proportional-integral control algorithm, the engine piston can be accurately controlled to stop at the preset shutdown position, ensuring that the range extender can start stably next time.

[0060] Figure 5 It is a schematic structural diagram of a range extender shutdown control device provided by an embodiment of the present application. As Figure 5 shown, the device may include: An acquisition module 510, configured to respond to the start of the shutdown process of the vehicle range extender and acquire the actual position of the vehicle engine piston in real time.

[0061] A first determination module 520, configured to determine the stroke in which the engine piston is located and a preset shutdown position corresponding to the current stroke.

[0062] A second determination module 530, configured to determine a first control parameter based on the actual position of the engine piston and the preset shutdown position.

[0063] A control module 540, configured to control the engine piston to stop at the preset shutdown position based on a proportional-integral (PI) control algorithm and the first control parameter.

[0064] Corresponding to the above embodiments, the present application further provides an electronic device. Figure 6 FIG. is a schematic structural diagram of an electronic device provided by an embodiment of the present application. The electronic device 600 may include: a processor 601, a memory 602, and a communication unit 603. These components communicate through one or more buses. Those skilled in the art can understand that the structure of the electronic device shown in the figure does not constitute a limitation on the embodiments of the present application. It may be a bus structure, a star structure, and may also include more or fewer components than shown in the figure, or combine some components, or have different component arrangements.

[0065] Wherein, the communication unit 603 is configured to establish a communication channel, so that the electronic device can communicate with other devices. Receive user data sent by other devices or send user data to other devices.

[0066] The processor 601 is the control center of the electronic device, connecting various parts of the entire electronic device through various interfaces and lines, and by running or executing software programs, instructions, and / or modules stored in the memory 602, and calling data stored in the memory, to execute various functions of the electronic device and / or process data. The processor may be composed of an integrated circuit (IC). For example, it may be composed of a single packaged IC, or may be composed of multiple packaged ICs with the same or different functions connected. For example, the processor 601 may only include a central processing unit (CPU). In the embodiment of the present application, the CPU may be a single operation core or may include multiple operation cores.

[0067] The memory 602 is used to store the execution instructions of the processor 601. The memory 602 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disc.

[0068] When the execution instructions in the memory 602 are executed by the processor 601, the electronic device 600 can execute some or all of the steps in the above embodiments.

[0069] In a specific implementation, the present application further provides a computer storage medium. The computer storage medium can store a program, and when the program is executed, it can include some or all of the steps in the embodiments of the range extender shutdown control method provided by the present application. The storage medium can be a magnetic disk, an optical disc, a read-only memory (ROM), or a random access memory (RAM), etc.

[0070] In a specific implementation, the present application further provides a computer program product. The computer program product includes executable instructions, and when the executable instructions are executed on a computer, the computer is enabled to execute some or all of the steps in the embodiments of the range extender shutdown control method provided by the present application.

[0071] The embodiments of the present application further provide a non-temporary computer-readable storage medium. The non-temporary computer-readable storage medium stores computer instructions, and the computer instructions cause the computer to execute the range extender shutdown control method provided by the embodiments of the present application.

[0072] The above non-transitory computer-readable storage medium may be any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of the computer-readable storage medium include: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (hereinafter referred to as: ROM), an erasable programmable read-only memory (hereinafter referred to as: EPROM) or a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0073] The computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries the computer-readable program code. Such a propagated data signal may take many forms, including - but not limited to - an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0074] The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including - but not limited to - wireless, wire, optical fiber, RF, etc., or any suitable combination of the above.

[0075] Those skilled in the art can clearly understand that the technology in the embodiments of this application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solutions in the embodiments of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of this application.

[0076] In this specification, for the same or similar parts among the various embodiments, reference can be made to each other. In particular, for the apparatus embodiments and the terminal embodiments, since they are basically similar to the method embodiments, they are described relatively simply, and for the relevant parts, reference can be made to the descriptions in the method embodiments.

Claims

1. A control method for the shutdown of a range extender, characterized in that Including: In response to the start-stop process of the vehicle range extender, the actual position of the vehicle engine piston is obtained in real time; Determine the stroke in which the engine piston is located and the preset stop position corresponding to the current stroke; Determine a first control parameter based on the actual position of the engine piston and the preset stop position; Based on the proportional-integral (PI) control algorithm and the first control parameter, control the engine piston to stop at the preset stop position.

2. The method according to claim 1, wherein Before the step of obtaining the actual position of the vehicle engine piston in real time in response to the start-stop process of the vehicle range extender, the method further includes: Based on the stop flag of the range extender and the engine speed, determine whether the range extender has started the stop process.

3. The method according to claim 2, wherein The determining whether the range extender has started the stop process based on the stop flag of the range extender and the engine speed includes: Obtain the stop flag of the range extender and the engine speed, where the stop flag includes a first flag and a second flag, the first flag is used to indicate that the range extender is in the working state, and the second flag is used to indicate that the range extender is in the stop state; When it is detected that the stop flag is the second flag and the engine speed is less than a first threshold, determine that the range extender has started the stop process.

4. The method according to claim 1, wherein The determining the first control parameter based on the actual position of the engine piston and the preset stop position includes: Calculate the angular difference between the preset stop position corresponding to the current stroke of the piston and the actual position of the piston; When the angular difference is positive, determine the angular difference as the first control parameter; When the angular difference is negative, determine the sum of the angular difference and a first angular value as the first control parameter.

5. The method according to claim 1, wherein The controlling the engine piston to stop at the preset stop position based on the proportional-integral (PI) control algorithm and the first control parameter includes: Determine a speed command value based on the first control parameter and a preset position proportional-integral coefficient; Determine a torque command value based on the speed command value and a preset speed proportional-integral coefficient; Determine the direct and quadrature axis current values that match the torque command value based on the mapping relationship between torque and direct and quadrature axis currents; Determine the direct and quadrature axis voltage values based on the direct and quadrature axis current values; Based on the direct and quadrature axis voltage values, control the motor to drive the engine to rotate until the engine piston rotates to the preset stop position and stops.

6. The method according to claim 1, characterized in that, The method further includes: When it is detected that the first control parameter is less than a preset second angular value, fixedly set the first control parameter to the second angular value.

7. The method according to claim 1, wherein The controlling the engine piston to stop at the preset stop position based on the proportional-integral (PI) control algorithm and the first control parameter includes: Control the rotation of the engine piston based on the proportional-integral algorithm and the first control parameter; When it is detected that the first control parameter is less than a preset third angular value and the duration exceeds a preset duration threshold, control the engine piston to stop rotating.

8. An extender shutdown control device, characterized in that, Including: An acquisition module, configured to obtain the actual position of the vehicle engine piston in real time in response to the start-stop process of the vehicle range extender; A first determination module, configured to determine the stroke in which the engine piston is located and a preset stop position corresponding to the current stroke; A second determination module, configured to determine a first control parameter based on the actual position of the engine piston and the preset stop position; A control module, configured to control the engine piston to stop at the preset stop position based on a proportional-integral (PI) control algorithm and the first control parameter.

9. An electronic device, characterized in that, It includes a memory for storing computer program instructions and a processor for executing the program instructions. Wherein, when the computer program instructions are executed by the processor, the electronic device is caused to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein when the program runs, it controls the device where the computer-readable storage medium is located to execute the method according to any one of claims 1 to 7.