Gear correction method and device, electronic equipment and computer readable medium

By calculating the difference between the number of gear groups and correcting the deviation array, the problem of frequent gear shifting is solved, the continuity of gear shifting decisions and the smoothness of vehicle power output are improved, and the service life of the transmission system is extended.

CN121761104APending Publication Date: 2026-03-31DONGFENG MOTOR GRP
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-04
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

In existing technologies, gear selection methods based on economic predictions lead to frequent gear shifts, resulting in increased mechanical wear in the transmission system and a decline in driving quality.

Method used

By obtaining the actual gear, target gear, and multiple predicted gears of the target vehicle, the difference between the gear number groups is calculated, the deviation array is corrected, and a corrected gear array is generated to suppress unnecessary gear shifting operations.

Benefits of technology

It improves the spatiotemporal continuity of gear shift decisions, extends the service life of the transmission system, and enhances the smoothness of vehicle power output.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121761104A_ABST
    Figure CN121761104A_ABST
Patent Text Reader

Abstract

The invention provides a gear correction method and device, electronic equipment and a computer readable medium, and belongs to the technical field of vehicles. The correction method comprises the steps that an actual gear, a target gear and a plurality of predicted gears of a target vehicle are obtained; according to the gear value of the actual gear of the target vehicle, the gear value of the target gear and the gear value of each predicted gear, an original gear array is determined; solving a difference value of adjacent elements in the original gear array to obtain a plurality of numerical values, and obtaining an initial deviation array according to the plurality of numerical values; and correcting the initial deviation array to obtain a corrected deviation array, and generating a corrected gear array based on the original gear array and the corrected deviation array.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle technology, and in particular to a method and apparatus for gear shifting, an electronic device, and a computer-readable medium. Background Technology

[0002] In urban logistics and sanitation sectors, pure electric vehicles are experiencing rising market demand due to their zero emissions and low noise characteristics. As a crucial component of pure electric vehicles, the market demand for pure electric multi-speed transmissions is also gradually increasing.

[0003] A suitable driving gear allows the motor to operate in its high-efficiency range for extended periods, which is crucial for the power and economy of commercial vehicles. Gear selection methods in related technologies determine the required gear based on vehicle speed, load, and the driver's torque demands (and accelerator pedal opening). With the development of intelligent technologies, Predictive Cruise Control (PCC) is gradually being applied to the commercial vehicle sector. This technology utilizes high-precision maps and intelligent sensing systems to provide information on surrounding vehicle dynamics and road conditions, pre-planning vehicle speed and gear to achieve economical driving.

[0004] For example, Figure 1 A schematic diagram of predictive cruise gear shifting in existing technology, such as... Figure 1 As shown, predictive cruise control systems based on high-precision maps acquire real-time predicted vehicle speed, throttle opening, and wheel torque demand to generate a sequence of predicted target gears at preset intervals. Theoretically, this sequence can keep the drive motor operating within its efficient range, thereby optimizing vehicle economy. However, in related technologies, relying solely on economically predicted target gears may result in short-term cyclic shifting or frequent gear skipping. This phenomenon not only causes high-frequency operation of the shift actuator, leading to increased mechanical wear in the transmission system and reduced vehicle lifespan, but also degrades driving quality. Summary of the Invention

[0005] The present invention aims to solve at least one of the technical problems existing in the prior art, and proposes a gear correction method and apparatus, electronic device and computer-readable medium.

[0006] In a first aspect, embodiments of the present invention provide a gear correction method, wherein the method includes: acquiring the actual gear, target gear, and multiple predicted gears of a target vehicle, wherein the target gear is calculated based on the target vehicle's current speed, required torque, and condition information, and the predicted gears are predicted based on predictive cruise technology, using a target map, surrounding environmental information of the target vehicle, and road information; determining an original gear array based on the gear values ​​of the actual gear, the target gear, and each predicted gear; calculating the differences between adjacent elements in the original gear array to obtain multiple values, and obtaining an initial deviation array based on the multiple values; correcting the initial deviation array to obtain a corrected deviation array, and generating a corrected gear array based on the original gear array and the corrected deviation array.

[0007] Further, the initial deviation array is corrected to obtain the corrected deviation array by: determining the first non-zero element and the next non-zero element in the initial deviation array; merging the first non-zero element and the next non-zero element in the initial deviation array to obtain the processed deviation array; and iteratively traversing the processed deviation array to obtain the corrected deviation array.

[0008] Further, merging the first non-zero element and the next non-zero element in the initial deviation array to obtain the processed deviation array includes: calculating the interval value between the first non-zero element and the next non-zero element in the initial deviation array; determining the sign of the first non-zero element and the sign of the next non-zero element; and merging the first non-zero element and the next non-zero element according to the interval value, the sign of the first non-zero element, and the sign of the next non-zero element to obtain the processed deviation array.

[0009] Further, the process of merging the first non-zero element and the next non-zero element according to the interval value, the sign of the first non-zero element, and the sign of the next non-zero element to obtain the processed deviation array includes: determining whether the interval value is not greater than a preset value; if the interval value is greater than the preset value, then the first non-zero element and the next non-zero element are not merged, and the first non-zero element and the next non-zero element are retained; if the interval value is not greater than the preset value, then the first non-zero element and the next non-zero element are merged according to the sign of the first non-zero element and the sign of the next non-zero element to obtain the processed deviation array.

[0010] Further, based on the sign of the first non-zero element and the sign of the next non-zero element, the first non-zero element and the next non-zero element are merged to obtain the processed deviation array. This includes: determining whether the sign of the first non-zero element and the sign of the next non-zero element are the same; if the sign of the first non-zero element and the sign of the next non-zero element are the same, then the first non-zero element and the next non-zero element are not merged, and the first non-zero element and the next non-zero element are retained; if the sign of the first non-zero element and the sign of the next non-zero element are different, then the first non-zero element is set to zero, and the next non-zero element is updated to the sum of the first non-zero element and the next non-zero element, thus obtaining the processed deviation array.

[0011] Further, generating the corrected gear array based on the original gear array and the corrected deviation array includes: adding the original gear array and the corrected deviation array to obtain a target array; and using the target array as the corrected gear array.

[0012] Further, determining the original gear array based on the actual gear value of the target vehicle, the target gear value, and the gear value of each predicted gear includes: using the actual gear value of the target vehicle as the first position of the array; using the target gear value of the target vehicle as the second position of the array; and using the gear values ​​of each predicted gear of the target vehicle as the other positions of the array, thus obtaining the original gear array.

[0013] Secondly, embodiments of the present invention provide a gear correction device, comprising: a first acquisition unit, configured to acquire the actual gear, target gear, and multiple predicted gears of a target vehicle, wherein the target gear is calculated based on the target vehicle's current speed, required torque, and condition information, and the predicted gears are predicted based on predictive cruise technology using a target map, surrounding environmental information of the target vehicle, and road information; a first determination unit, configured to determine an original gear array based on the actual gear value, the target gear value, and the gear value of each predicted gear; a first processing unit, configured to calculate the difference between adjacent elements in the original gear array to obtain multiple values, and obtain an initial deviation array based on the multiple values; and a second processing unit, configured to correct the initial deviation array to obtain a corrected deviation array, and generate a corrected gear array based on the original gear array and the corrected deviation array.

[0014] Further, the second processing unit includes: a first determining subunit, used to determine the first non-zero element and the next non-zero element in the initial deviation array; a first processing subunit, used to merge the first non-zero element and the next non-zero element in the initial deviation array to obtain a processed deviation array; and a second processing subunit, used to iteratively traverse the processed deviation array to obtain the corrected deviation array.

[0015] Further, the first processing subunit includes: a first calculation module, used to calculate the interval value between the first non-zero element and the next non-zero element in the initial deviation array; a first determination module, used to determine the sign of the first non-zero element and the sign of the next non-zero element; and a first processing module, used to merge the first non-zero element and the next non-zero element according to the interval value, the sign of the first non-zero element and the sign of the next non-zero element to obtain the processed deviation array.

[0016] Further, the first processing module includes: a first judgment submodule, used to determine whether the interval value is not greater than a preset value; a first processing submodule, used to, if the interval value is greater than the preset value, not to merge the first non-zero element and the next non-zero element, and to retain the first non-zero element and the next non-zero element; a second processing submodule, used to, if the interval value is not greater than the preset value, merge the first non-zero element and the next non-zero element according to the sign of the first non-zero element and the sign of the next non-zero element, to obtain the processed deviation array.

[0017] Further, the second processing submodule includes: a first judgment submodule, used to determine whether the sign of the first non-zero element and the sign of the next non-zero element are the same; a first processing submodule, used to, if the sign of the first non-zero element and the sign of the next non-zero element are the same, not to merge the first non-zero element and the next non-zero element, and to retain the first non-zero element and the next non-zero element; a second processing submodule, used to, if the sign of the first non-zero element and the sign of the next non-zero element are different, set the first non-zero element to zero, and update the next non-zero element to the sum of the first non-zero element and the next non-zero element, to obtain the processed deviation array.

[0018] Furthermore, the second processing unit includes: a third processing subunit, used to add the original gear array and the corrected deviation array to obtain a target array; and a second determining subunit, used to use the target array as the corrected gear array.

[0019] Further, the first determining unit includes: a third determining subunit, used to take the actual gear value of the target vehicle as the first position of the array; a fourth determining subunit, used to take the target gear value of the target vehicle as the second position of the array; and a fourth processing subunit, used to take the gear value of each predicted gear of the target vehicle as the other positions of the array to obtain the original gear array.

[0020] Thirdly, embodiments of the present invention provide an electronic device, the electronic device including one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the gear correction method described in any one of the above.

[0021] Fourthly, embodiments of the present invention provide a computer-readable medium storing a computer program, which, when executed by a processor, implements the steps in the gear shift correction method described in any of the above claims.

[0022] The gear correction method provided by this invention obtains the actual gear, target gear, and multiple predicted gears of a target vehicle. The target gear is calculated based on the target vehicle's current speed, required torque, and condition information. The predicted gears are predicted based on predictive cruise technology, using a target map, surrounding environmental information, and road information. An original gear array is determined based on the actual gear value, the target gear value, and the value of each predicted gear. Differences are calculated between adjacent elements in the original gear array to obtain multiple values, and an initial deviation array is obtained based on these values. The initial deviation array is corrected to obtain a corrected deviation array. A revised gear array is then generated based on the original gear array and the corrected deviation array. This method can correct target gears that affect drivability, effectively improving the spatiotemporal continuity of gear shifting decisions, suppressing unnecessary gear shifting operations, extending the service life of the transmission system while maintaining system energy efficiency, and providing the vehicle with better power output smoothness. Attached Figure Description

[0023] Figure 1 This is a schematic diagram of predictive cruise gear selection in existing technology.

[0024] Figure 2 A schematic flowchart illustrating a gear shift correction method provided in an embodiment of the present invention;

[0025] Figure 3 This is a schematic diagram of the gear correction method in an embodiment of the present invention;

[0026] Figure 4A structural block diagram of a gear correction device provided in an embodiment of the present invention;

[0027] Figure 5 This is a structural block diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0028] To enable those skilled in the art to better understand the technical solutions of the present invention, exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to aid understanding. These should be considered merely exemplary. Therefore, those skilled in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0029] Where there is no conflict, the various embodiments of the present invention and the features thereof may be combined with each other.

[0030] As used herein, the term “and / or” includes any and all combinations of one or more related enumerated entries.

[0031] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used herein, the singular forms “a” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that when the terms “comprising” and / or “made of” are used in this specification, the presence of the stated feature, integral, step, operation, element, and / or component is specified, but the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof is not excluded. Terms such as “connected” or “linked” are not limited to physical or mechanical connections but can include electrical connections, whether direct or indirect.

[0032] Unless otherwise specified, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having the meaning consistent with their meaning in the context of the relevant art and the invention, and will not be interpreted as having an idealized or overly formal meaning unless expressly so defined herein.

[0033] In the technical solution of this invention, the collection, storage, use, processing, transmission, provision, and disclosure of user personal information all comply with relevant laws and regulations and do not violate public order and good morals. The use of user data in this technical solution follows relevant national laws and regulations (e.g., the "Information Security Technology - Personal Information Security Specification"). For example: appropriate measures are taken for personal information access control; restrictions are imposed on the display of personal information; the purpose of using personal information does not exceed the scope of direct or reasonable association; and explicit identity targeting is eliminated when using personal information to avoid precisely locating a specific individual.

[0034] In related technologies, the target gear is predicted based solely on economic efficiency, which may result in short-term cyclic shifting or frequent gear skipping. This phenomenon not only causes high-frequency operation of the shifting actuator, leading to increased mechanical wear of the transmission system and reduced vehicle lifespan, but also reduces driving quality.

[0035] To address at least one of the technical problems existing in the aforementioned related technologies, the present invention provides a gear correction method and apparatus, an electronic device, and a computer-readable medium. Figure 2 A schematic flowchart of a gear shift correction method provided in an embodiment of the present invention is shown below. Figure 2 As shown, the method includes the following steps:

[0036] Step S201: Obtain the actual gear, target gear, and multiple predicted gears of the target vehicle. The target gear is calculated based on the target vehicle's current speed, required torque, and condition information. The predicted gears are predicted based on predictive cruise technology, using the target map, the target vehicle's surrounding environment information, and road information.

[0037] For example, the actual gear mentioned above can be the actual gear of the current vehicle (corresponding to the target vehicle mentioned above), the target gear mentioned above can be the target gear of the current vehicle (corresponding to the target vehicle mentioned above), and the multiple predicted gears mentioned above can be a set of predicted gears. Here, the target gear of the current vehicle (corresponding to the target vehicle mentioned above) refers to the target gear calculated based on the current vehicle speed, required torque, and vehicle condition. The predicted gears are a set of target gears predicted by predictive cruise technology based on high-precision maps, surrounding environment, and road information, based on economic considerations.

[0038] Step S202: Determine the original gear array based on the actual gear value of the target vehicle, the gear value of the target gear, and the gear value of each predicted gear.

[0039] For example, the current gear (corresponding to the actual gear mentioned above) can be used as the first position of the array, the current target gear (corresponding to the target gear mentioned above) can be used as the second position of the array, and the predicted gear (corresponding to each predicted gear mentioned above) can be used as the remaining positions of the array in turn, thus obtaining the original gear array G[1,2,3...n] (corresponding to the original gear array mentioned above).

[0040] Step S203: Calculate the difference between adjacent elements in the original gear array to obtain multiple values, and obtain the initial deviation array based on the multiple values.

[0041] For example, the difference between adjacent elements in the target gear array (corresponding to the original gear array mentioned above) is calculated, and the previous gear is subtracted from the next gear in the original gear array (corresponding to the original gear array mentioned above) to generate the deviation array, i.e., D[1]=G[2]-G[1], and the gear deviation array D[1,2,3...n] (corresponding to the initial deviation array mentioned above) is obtained.

[0042] Step S204: Correct the initial deviation array to obtain the corrected deviation array, and generate a corrected gear array based on the original gear array and the corrected deviation array.

[0043] For example, the non-zero deviations in the gear deviation array D[1,2,3...n] (corresponding to the initial deviation array mentioned above) are located and merged to obtain the final corrected deviation array D_new (corresponding to the corrected deviation array mentioned above). Then, the corrected deviation values ​​(corresponding to the corrected deviation array mentioned above) are superimposed on the original gear array (corresponding to the original gear array mentioned above) to obtain the corrected target gear (corresponding to the corrected gear array mentioned above), that is, G_new=G+D_new.

[0044] Through the steps S201 to S204 described above, the actual gear, target gear, and multiple predicted gears of the target vehicle are obtained. The target gear is calculated based on the target vehicle's current speed, required torque, and condition information. The predicted gears are predicted based on predictive cruise technology, using the target map, surrounding environment information, and road information. An original gear array is determined based on the actual gear value, the target gear value, and the value of each predicted gear. The differences between adjacent elements in the original gear array are calculated to obtain multiple values, and an initial deviation array is obtained based on these values. The initial deviation array is corrected to obtain a corrected deviation array. A revised gear array is then generated based on the original gear array and the corrected deviation array. This process corrects the target gear that affects drivability, effectively improving the spatiotemporal continuity of gear shifting decisions, suppressing unnecessary gear shifting operations, maintaining system energy efficiency while extending the service life of the transmission system, and providing the vehicle with better power output smoothness.

[0045] Optionally, in the gear correction method provided in this embodiment of the invention, determining the original gear array based on the actual gear value of the target vehicle, the target gear value, and the gear value of each predicted gear includes: taking the actual gear value of the target vehicle as the first position of the array; taking the target gear value of the target vehicle as the second position of the array; and taking the gear value of each predicted gear of the target vehicle as the other positions of the array to obtain the original gear array.

[0046] For example, when determining the original gear array G[1,2,3...n] (corresponding to the original gear array mentioned above), the current gear (corresponding to the actual gear mentioned above) can be used as the first position of the array, the current target gear (corresponding to the target gear mentioned above) can be used as the second position of the array, and the predicted gears (corresponding to each predicted gear mentioned above) can be used as the remaining positions of the array. Note that n cannot exceed the computing storage capacity. For example, if the storage type is 8 bits, then n can be up to 8.

[0047] Using the above method, the original gear array can be quickly and accurately constructed based on the obtained gear values.

[0048] Optionally, in the gear correction method provided in the embodiments of the present invention, correcting the initial deviation array to obtain the corrected deviation array includes: determining the first non-zero element and the next non-zero element in the initial deviation array; merging the first non-zero element and the next non-zero element in the initial deviation array to obtain the processed deviation array; and iteratively traversing the processed deviation array to obtain the corrected deviation array.

[0049] For example, we can first locate the non-zero deviations in the deviation array (corresponding to the initial deviation array mentioned above), that is, find the first non-zero element D[j] (assuming index j) and the next non-zero deviation element D[k] (assuming index k) in the deviation array (corresponding to the initial deviation array mentioned above); then merge the deviation array (corresponding to the initial deviation array mentioned above); and then iterate through the subsequent deviations, that is, we can start from index j+1 and repeatedly locate and merge the non-zero deviations until we traverse the entire array (corresponding to the initial deviation array mentioned above), and finally obtain the corrected deviation array.

[0050] The above method allows for convenient correction of the initial deviation array.

[0051] Optionally, in the gear correction method provided in this embodiment of the invention, merging the first non-zero element and the next non-zero element in the initial deviation array to obtain the processed deviation array includes: calculating the interval value between the first non-zero element and the next non-zero element in the initial deviation array; determining the sign of the first non-zero element and the sign of the next non-zero element; and merging the first non-zero element and the next non-zero element according to the interval value, the sign of the first non-zero element, and the sign of the next non-zero element to obtain the processed deviation array.

[0052] For example, after the "first non-zero element D[j]" and "next non-zero element D[k]" in the positioning deviation array (corresponding to the initial deviation array mentioned above), we can combine the distance between the two non-zero elements in the deviation array (corresponding to the interval value mentioned above) and the signs of the "first non-zero element D[j]" and "next non-zero element D[k]" to determine whether to merge.

[0053] The above method allows for quick and accurate merging of elements in the deviation array.

[0054] Optionally, in the gear correction method provided in this embodiment of the invention, the first non-zero element and the next non-zero element are merged according to the interval value, the sign of the first non-zero element, and the sign of the next non-zero element to obtain the processed deviation array. This includes: determining whether the interval value is not greater than a preset value; if the interval value is greater than the preset value, then the first non-zero element and the next non-zero element are not merged, and the first non-zero element and the next non-zero element are retained; if the interval value is not greater than the preset value, then the first non-zero element and the next non-zero element are merged according to the sign of the first non-zero element and the sign of the next non-zero element to obtain the processed deviation array.

[0055] For example, the maximum interaction length is set to MAX (corresponding to the preset value above) to limit the maximum interaction distance between two non-zero elements in the deviation array. If the distance between two non-zero elements (i.e., "the first non-zero element D[j]" and "the next non-zero element D[k]") (corresponding to the interval value above) is greater than MAX (corresponding to the preset value above), i.e., kj>MAX, then the step of merging non-zero deviations is repeated from index j+1. If the distance between two non-zero elements (corresponding to the interval value above) is not greater than MAX (corresponding to the preset value above), then the signs of the two non-zero deviations are checked, and the deviations are merged according to the signs of the two non-zero deviations.

[0056] In summary, by setting a maximum interaction length, over-correction of the deviation array can be prevented.

[0057] Optionally, in the gear correction method provided in this embodiment of the invention, the process of merging the first non-zero element and the next non-zero element according to the sign of the first non-zero element and the sign of the next non-zero element to obtain the processed deviation array includes: determining whether the sign of the first non-zero element and the sign of the next non-zero element are the same; if the sign of the first non-zero element and the sign of the next non-zero element are the same, then the first non-zero element and the next non-zero element are not merged, and the first non-zero element and the next non-zero element are retained; if the sign of the first non-zero element and the sign of the next non-zero element are different, then the first non-zero element is set to zero, and the next non-zero element is updated to the sum of the first non-zero element and the next non-zero element to obtain the processed deviation array.

[0058] For example, if the sign of the first non-zero element D[j] is the same as the sign of the next non-zero element D[k], then the deviation at index j is retained; if the sign of the first non-zero element D[j] is opposite to the sign of the next non-zero element D[k], the deviation at index j is set to zero, and the deviation at index k is updated to the sum of the two, that is, D[j]=0, D[k]_new=D[j]+D[k].

[0059] Using the above method, the elements in the deviation array can be merged quickly and accurately based on the signs of the elements in the deviation array.

[0060] Optionally, in the gear correction method provided in the embodiments of the present invention, generating a corrected gear array based on the original gear array and the corrected deviation array includes: adding the original gear array and the corrected deviation array to obtain a target array; and using the target array as the corrected gear array.

[0061] For example, the corrected deviation value (corresponding to the corrected deviation array mentioned above) is superimposed on the original gear array (corresponding to the original gear array mentioned above) to obtain the corrected target gear (corresponding to the corrected gear array mentioned above), that is, G_new=G+D_new.

[0062] The above method allows for the easy acquisition of the corrected gear array.

[0063] In this embodiment, a method for correcting predicted gears is provided, which can correct target gears that affect drivability, effectively improve the spatiotemporal continuity of gear shifting decisions, suppress unnecessary gear shifting operations, extend the service life of the transmission system while maintaining the system's energy efficiency level, and enable the vehicle to obtain better power output smoothness.

[0064] For example, Figure 3 This is a schematic diagram of the gear correction method in an embodiment of the present invention, as shown below. Figure 3As shown, the gear shift correction method includes the following:

[0065] First, the necessary information for correcting the predicted gears needs to be obtained. There are three types: the current actual gear of the vehicle, the current target gear of the vehicle, and a set of predicted gears. The current target gear is calculated based on the current vehicle speed, required torque, and vehicle condition. The predicted gears are a set of target gears predicted by predictive cruise technology based on high-precision maps, surrounding environment, and road information, with an emphasis on economic efficiency.

[0066] Next, the predicted gear position is corrected, such as... Figure 3 As shown, the detailed steps are as follows:

[0067] 1) Determine the original gear array G[1,2,3...n], that is, the current gear is the first position of the array, the current target gear is the second position of the array, and the predicted gear is the last few positions of the array. Note that n cannot exceed the computing storage capacity. For example, if the storage type is 8 bits, then n can be up to 8.

[0068] 2) Calculate the gear deviation array D[1,2,3...n], that is, calculate the difference between adjacent elements in the target gear array, and subtract the previous gear from the next gear in the original gear array to generate the deviation array, i.e., D[1]=G[2]-G[1].

[0069] 3) Locate the non-zero deviations in the deviation array, find the first non-zero element D[j] (assuming index j) and the next non-zero deviation element D[k] (assuming index k).

[0070] 4) Combined Deviation

[0071] The steps to merge the deviation arrays are as follows:

[0072] (1) To prevent overcorrection, the maximum interaction length is set to MAX, which limits the maximum interaction distance between two non-zero elements in the deviation array. If the distance between the two non-zero elements is greater than MAX, i.e., kj>MAX, then repeat steps 3-4 from index j+1. If the distance between the two non-zero elements is not greater than MAX, proceed to the next step.

[0073] Check the sign of the two non-zero deviations:

[0074] 1. If the signs are the same, retain the deviation at index j;

[0075] 2. If the signs are opposite, set the deviation at index j to zero and update the deviation at index k to the sum of the two, i.e., D[j]=0, D[k]_new=D[j]+D[k].

[0076] 5) Iterative processing of subsequent deviations

[0077] Repeat steps 3-4 starting from index j+1 until the entire array has been traversed.

[0078] 6) Generate the corrected gear array

[0079] The corrected deviation value is then superimposed onto the original gear array to obtain the corrected target gear, i.e., G_new = G + D_new.

[0080] In this embodiment, the predictive cruise technology aimed at improving fuel economy can predict road conditions ahead based on map information, road slope, and traffic flow information, calculating a set of predicted target gears at regular intervals. These predicted gears allow the motor to operate in its efficient range, thus improving driving economy. However, relying solely on fuel economy-predicted target gears may result in short-term cyclical shifting or frequent gear skipping, degrading drivability. This embodiment designs a method for correcting the predicted gears, which can correct target gears that affect drivability, reducing unnecessary shifting and improving overall drivability.

[0081] Additionally, the following example illustrates this:

[0082] Assuming the actual gear is 2, the current target gear is 4, and the six predicted gear samples are 2, 2, 3, 4, 2, 1, the original gear array is [2, 4, 2, 2, 3, 4, 2, 1]. Shifting gears in this sequence would lead to unnecessary gear changes and a decrease in driving performance. The deviation array calculated through steps 2)-6) of this method is [0, 0, 0, 1, 0, -1, -1]. The corrected deviation value is then inversely added to the original gear array to obtain the corrected target gear. In this example, the result is [2, 2, 2, 2, 3, 3, 2, 1]. Comparing the target gears before and after correction shows that this correction method can significantly suppress cyclic shifting and frequent gear skipping.

[0083] For example, the specific calculation process in the above example is as follows:

[0084] Step 1: Determine the original gear array

[0085] The original gear array G is constructed as follows:

[0086] The first position = the current actual gear (2 in the example).

[0087] The second position = the current target gear (4 in the example).

[0088] The 3rd to 8th positions = 6 predicted gear positions (in the example, 2, 2, 3, 4, 2, 1).

[0089] Therefore, the original gear array is determined as follows:

[0090] =[2,4,2,2,3,4,2,1]

[0091] Step 2: Calculate the initial deviation array

[0092] The deviation array D is calculated as "the difference between adjacent gears = the next gear - the previous gear", that is, D[i] = G[i+1] - G[i] (since G has 8 elements, the length of D is 7, corresponding to i = 1 to 7).

[0093] Calculate the initial deviation array bit by bit:

[0094] = - =4-2=+2

[0095]

[0096]

[0097]

[0098]

[0099]

[0100]

[0101] Therefore, the initial deviation array is:

[0102] initial =[2,-2,0,1,1,-2,-1]

[0103] III. Third Step: Non-zero Deviation Positioning and Merging

[0104] According to the rules in the document, the first non-zero element D[j] and the next non-zero element D[k] in the deviation array need to be located first. Then, the maximum interaction length MAX is used to determine whether to merge (the MAX value is not explicitly stated in the example, but it can be deduced from the final result: the non-zero deviation interval of the merged element is ≤MAX, so there is no need to skip it). The merging logic is: if the signs are opposite, D[j] = 0 and D[k] is updated to the sum of the two; if the signs are the same, D[j] is retained.

[0105] First round of processing: Position j=1 ( =2, the first non-zero), k=2 ( =-2, the next non-zero)

[0106] Interval judgment: kj=2-1=1 (≤MAX, meets the merging condition)

[0107] Sign judgment: =+2 (positive) =-2 (negative), opposite sign

[0108] Merge operation:

[0109] D[j]( Set to 0 → =0

[0110] D[k]( Updated to " "Original value + D2 original value" → =2+(-2)=0

[0111] The deviation array is now updated as follows:

[0112] =[0,0,0,1,1,-2,-1]( (Still 0, no change)

[0113] Second round of processing: Starting from j=3 (j=1 has already been processed, j=2 corresponds to...) =0), positioning j=4 ( =1, the first non-zero), k=5 ( =1, the next non-zero)

[0114] Interval judgment: kj=5-4=1 (≤MAX, meets the merging condition)

[0115] Sign judgment: =+1 (positive) =+1 (positive), same sign

[0116] Merge operation: Keep D[j] ( =1), D[k]( ) No change

[0117] At this point, the deviation array remains unchanged and is still:

[0118] =[0,0,0,1,1,-2,-1]

[0119] Third round of processing: Starting from j=5 (j=4 has been processed), locate j=5 ( =1, the first non-zero), k=6 ( =-2, the next non-zero)

[0120] Interval judgment: kj=6-5=1 (≤MAX, meets the merging condition)

[0121] Sign judgment: =+1 (positive) =-2 (negative), opposite sign

[0122] Merge operation:

[0123] D[j]( Set to 0 → =0

[0124] D[k]( Updated to " Original value + Original value → =1+(-2)=-1

[0125] The deviation array is now updated as follows:

[0126] =[0,0,0,1,0,-1,-1]

[0127] Fourth step: Iterate through the array

[0128] Starting from j=6 (j=5 has been processed), locate j=6 ( =-1, the first non-zero element), the next non-zero element is j=7 ( =-1):

[0129] Interval judgment: kj=7-6=1 (≤MAX, meets the merging condition)

[0130] Sign judgment: =-1 (negative) =-1 (negative), same sign

[0131] Merge operation: Keep D[j] ( =-1), D[k] ( =-1) No change

[0132] At this point, the deviation array remains unchanged. After the final traversal is completed, we obtain:

[0133] The final correction deviation array D_new=[0,0,0,1,0,-1,-1].

[0134] Therefore, the entire calculation process consists of the steps of "constructing the original array → calculating the initial deviation → locating the non-zero deviation → iterative traversal". The core is to eliminate short-term reverse deviations (such as the initial deviation) by using the rule of "merging with opposite signs and retaining with the same signs". =+2 and =-2、 =+1 and =-2), finally obtaining the correction deviation array [0,0,0,1,0,-1,-1] in the example, which lays the foundation for the subsequent generation of the correction gear array (G_new=G+D_new).

[0135] Furthermore, to prevent overcorrection, this method introduces a maximum interaction length (MAX) in step 4) of merging the deviations. For example, the original target array is [1,3,3,3,3,3,3,1]. If the filter length is not limited, the calculated deviation array is [2,0,0,0,0,0,-2]. After correction, the deviation array becomes all zeros, and the gear array is over-smoothed to [1,1,1,1,1,1,1,1]. If Max=3 is set, then index 2 of index 1 and index -2 of index 7 are not merged because the interval exceeds 3, and the original deviation array is retained. A reasonable setting of MAX can effectively prevent overcorrection. In other words, this method can effectively suppress cyclic shifting and frequent gear skipping while preventing overcorrection.

[0136] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.

[0137] This invention also provides a gear position correction device. It should be noted that the gear position correction device of this invention can be used to execute the gear position correction method provided in this invention. The gear position correction device provided in this invention will be described below.

[0138] Figure 4 This is a structural block diagram of a gear correction device provided in an embodiment of the present invention. Figure 4 As shown, the device includes: a first acquisition unit 401, a first determination unit 402, a first processing unit 403, and a second processing unit 404.

[0139] Specifically, the first acquisition unit 401 is used to acquire the actual gear position, target gear position, and multiple predicted gear positions of the target vehicle. The target gear position is calculated based on the target vehicle's current speed, required torque, and condition information. The predicted gear positions are predicted based on predictive cruise technology, using the target map, the target vehicle's surrounding environment information, and road information.

[0140] The first determining unit 402 is used to determine the original gear array based on the actual gear value of the target vehicle, the gear value of the target gear, and the gear value of each predicted gear.

[0141] The first processing unit 403 is used to calculate the difference between adjacent elements in the original gear array to obtain multiple values, and to obtain an initial deviation array based on the multiple values.

[0142] The second processing unit 404 is used to correct the initial deviation array to obtain the corrected deviation array, and generate a corrected gear array based on the original gear array and the corrected deviation array.

[0143] In summary, the gear correction device provided in this embodiment of the invention acquires the actual gear, target gear, and multiple predicted gears of the target vehicle through a first acquisition unit 401. The target gear is calculated based on the target vehicle's current speed, required torque, and condition information. The predicted gears are predicted based on predictive cruise technology, using a target map, surrounding environmental information, and road information. A first determination unit 402 determines an original gear array based on the actual gear value, the target gear value, and the gear value of each predicted gear. Processing unit 403 calculates the difference between adjacent elements in the original gear array to obtain multiple values, and obtains an initial deviation array based on the multiple values; the second processing unit 404 corrects the initial deviation array to obtain a corrected deviation array, and generates a corrected gear array based on the original gear array and the corrected deviation array, thereby correcting the target gear that affects drivability, effectively improving the spatiotemporal continuity of gear shifting decisions, suppressing unnecessary gear shifting operations, extending the service life of the transmission system while maintaining the system's energy efficiency level, and enabling the vehicle to obtain better power output smoothness.

[0144] Optionally, in the gear correction device provided in the embodiments of the present invention, the second processing unit includes: a first determining subunit, used to determine the first non-zero element and the next non-zero element in the initial deviation array; a first processing subunit, used to merge the first non-zero element and the next non-zero element in the initial deviation array to obtain a processed deviation array; and a second processing subunit, used to iteratively traverse the processed deviation array to obtain a corrected deviation array.

[0145] Optionally, in the gear correction device provided in this embodiment of the invention, the first processing subunit includes: a first calculation module, used to calculate the interval value between the first non-zero element and the next non-zero element in the initial deviation array; a first determination module, used to determine the sign of the first non-zero element and the sign of the next non-zero element; and a first processing module, used to merge the first non-zero element and the next non-zero element according to the interval value, the sign of the first non-zero element and the sign of the next non-zero element to obtain the processed deviation array.

[0146] Optionally, in the gear correction device provided in this embodiment of the invention, the first processing module includes: a first judgment submodule, used to judge whether the interval value is not greater than a preset value; a first processing submodule, used to, if the interval value is greater than the preset value, not to merge the first non-zero element and the next non-zero element, and to retain the first non-zero element and the next non-zero element; a second processing submodule, used to, if the interval value is not greater than the preset value, to merge the first non-zero element and the next non-zero element according to the sign of the first non-zero element and the sign of the next non-zero element, to obtain the processed deviation array.

[0147] Optionally, in the gear correction device provided in this embodiment of the invention, the second processing submodule includes: a first judgment submodule, used to determine whether the sign of the first non-zero element and the sign of the next non-zero element are the same; the first processing submodule is used to, if the sign of the first non-zero element and the sign of the next non-zero element are the same, not to merge the first non-zero element and the next non-zero element, and to retain the first non-zero element and the next non-zero element; the second processing submodule is used to, if the sign of the first non-zero element and the sign of the next non-zero element are different, to set the first non-zero element to zero, and to update the next non-zero element to the sum of the first non-zero element and the next non-zero element, to obtain the processed deviation array.

[0148] Optionally, in the gear correction device provided in the embodiments of the present invention, the second processing unit includes: a third processing subunit, used to add the original gear array and the corrected deviation array to obtain a target array; and a second determining subunit, used to use the target array as the corrected gear array.

[0149] Optionally, in the gear correction device provided in the embodiments of the present invention, the first determining unit includes: a third determining subunit, used to take the actual gear value of the target vehicle as the first bit of the array; a fourth determining subunit, used to take the target gear value of the target vehicle as the second bit of the array; and a fourth processing subunit, used to take the gear value of each predicted gear of the target vehicle as the other bits of the array to obtain the original gear array.

[0150] Based on the same inventive concept, embodiments of the present invention also provide an electronic device. Figure 5 This is a structural block diagram of an electronic device provided in an embodiment of the present invention. Figure 5As shown, an embodiment of the present invention provides an electronic device including: one or more processors 101, a memory 102, and one or more I / O interfaces 103. The memory 102 stores one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement a correction method for any gear position as described in the above embodiments; the one or more I / O interfaces 103 are connected between the processor and the memory, configured to enable information interaction between the processor and the memory.

[0151] The processor 101 is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the memory 102 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and flash memory (FLASH); the I / O interface (read / write interface) 103 is connected between the processor 101 and the memory 102, and can realize information interaction between the processor 101 and the memory 102, including but not limited to a data bus (Bus).

[0152] In some embodiments, the processor 101, memory 102, and I / O interface 103 are interconnected via bus 104, and thus connected to other components of the computing device.

[0153] In some embodiments, the one or more processors 101 include a field-programmable gate array.

[0154] This invention also provides a computer-readable medium. The computer-readable medium stores a computer program, which, when executed by a processor, implements the steps in the gear correction method as described in the above embodiments. The computer-readable storage medium can be volatile or non-volatile.

[0155] This invention also provides a computer program product, including computer-readable code, or a non-volatile computer-readable storage medium carrying computer-readable code. When the computer-readable code is run in the processor of an electronic device, the processor in the electronic device executes the above-mentioned gear correction method.

[0156] Those skilled in the art will understand that all or some of the steps, systems, and apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software can be distributed on a computer-readable storage medium, which may include computer storage media (or non-transitory media) and communication media (or transient media).

[0157] As is known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable program instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), static random access memory (SRAM), flash memory or other memory technologies, portable compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, it is known to those skilled in the art that communication media typically contain computer-readable program instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0158] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.

[0159] The computer program instructions used to perform the operations of this invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Smalltalk, C++, etc., and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a standalone 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 local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing state information from the computer-readable program instructions. This electronic circuitry can execute the computer-readable program instructions to implement various aspects of the invention.

[0160] The computer program product described herein can be implemented specifically through hardware, software, or a combination thereof. In one alternative embodiment, the computer program product is specifically embodied in a computer storage medium; in another alternative embodiment, the computer program product is specifically embodied in a software product, such as a software development kit (SDK), etc.

[0161] Various aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.

[0162] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.

[0163] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.

[0164] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction, which contains one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0165] Example embodiments have been disclosed herein, and while specific terminology has been used, it is for illustrative purposes only and should be construed as such, and is not intended to be limiting. In some instances, it will be apparent to those skilled in the art that features, characteristics, and / or elements described in conjunction with particular embodiments may be used alone, or in combination with features, characteristics, and / or elements described in conjunction with other embodiments, unless otherwise expressly indicated. Therefore, those skilled in the art will understand that various changes in form and detail may be made without departing from the scope of the invention as set forth in the appended claims.

Claims

1. A method of correcting a gear position, characterized by, The method comprises: obtaining an actual gear position, a target gear position and a plurality of predicted gear positions of a target vehicle; determining an original gear position array according to a gear position value of the actual gear position, a gear position value of the target gear position and a gear position value of each predicted gear position of the target vehicle; obtaining a plurality of values by calculating differences between adjacent elements in the original gear position array, and obtaining an initial deviation array according to the plurality of values; correcting the initial deviation array to obtain a corrected deviation array, and generating a corrected gear position array based on the original gear position array and the corrected deviation array.

2. The method of claim 1, wherein, The correction of the initial deviation array to obtain the corrected deviation array comprises: determining a first non-zero element and a next non-zero element in the initial deviation array; merging the first non-zero element and the next non-zero element in the initial deviation array to obtain a processed deviation array; iteratively traversing the processed deviation array to obtain the corrected deviation array.

3. The method of claim 2, wherein, The merging of the first non-zero element and the next non-zero element in the initial deviation array to obtain the processed deviation array comprises: calculating an interval value between the first non-zero element and the next non-zero element in the initial deviation array; determining a sign of the first non-zero element and a sign of the next non-zero element; merging the first non-zero element and the next non-zero element according to the interval value, the sign of the first non-zero element and the sign of the next non-zero element to obtain the processed deviation array.

4. The method of claim 3, wherein, The merging of the first non-zero element and the next non-zero element according to the interval value, the sign of the first non-zero element and the sign of the next non-zero element to obtain the processed deviation array comprises: determining whether the interval value is not greater than a preset value; if the interval value is greater than the preset value, not merging the first non-zero element and the next non-zero element, and retaining the first non-zero element and the next non-zero element; if the interval value is not greater than the preset value, merging the first non-zero element and the next non-zero element according to the sign of the first non-zero element and the sign of the next non-zero element to obtain the processed deviation array.

5. The method of claim 4, wherein, The merging of the first non-zero element and the next non-zero element according to the sign of the first non-zero element and the sign of the next non-zero element to obtain the processed deviation array comprises: determining whether the sign of the first non-zero element and the sign of the next non-zero element are the same; if the sign of the first non-zero element and the sign of the next non-zero element are the same, not merging the first non-zero element and the next non-zero element, and retaining the first non-zero element and the next non-zero element; If the sign of the first non-zero element is different from the sign of the next non-zero element, the first non-zero element is set to zero, and the next non-zero element is updated as the sum of the first non-zero element and the next non-zero element, to obtain the processed deviation array.

6. The method of claim 1, wherein, Generating a corrected gear array based on the original gear array and the corrected deviation array includes: performing addition processing on the original gear array and the corrected deviation array to obtain a target array; taking the target array as the corrected gear array.

7. The method of claim 1, wherein, Determining an original gear array according to the gear value of the actual gear of the target vehicle, the gear value of the target gear, and the gear value of each predicted gear includes: taking the gear value of the actual gear of the target vehicle as the first bit of the array; taking the gear value of the target gear of the target vehicle as the second bit of the array; taking the gear value of each predicted gear of the target vehicle as the other bits of the array, to obtain the original gear array.

8. A gearshift correction device, characterized by includes: a first acquisition unit, configured to acquire an actual gear, a target gear, and a plurality of predicted gears of a target vehicle, wherein the target gear is a gear calculated according to a current speed, a required torque, and condition information of the target vehicle, and the predicted gears are gears predicted based on a predictive cruise technology according to a target map, surrounding environment information, and road information of the target vehicle; a first determination unit, configured to determine an original gear array according to the gear value of the actual gear of the target vehicle, the gear value of the target gear, and the gear value of each predicted gear; a first processing unit, configured to obtain a plurality of values by calculating the difference between adjacent elements in the original gear array, and obtain an initial deviation array according to the plurality of values; a second processing unit, configured to correct the initial deviation array to obtain a corrected deviation array, and generate a corrected gear array based on the original gear array and the corrected deviation array.

9. An electronic device, comprising: includes: one or more processors; a memory, configured to store one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the method in any one of claims 1 to 7.

10. A computer readable medium having stored thereon a computer program, characterized in that The computer program, when executed by a processor, implements the steps in the method in any one of claims 1 to 7.