Oil pump speed control methods, devices, equipment, media, and computer program products

By using a hardwired electrical connection between the main controller and the oil pump controller, and controlling the oil pump speed using the frequency of electrical signal transmission, the problem of uncontrollable oil pump speed caused by CAN line communication failure is solved, and accurate control of oil pump speed is achieved.

CN119333376BActive Publication Date: 2026-05-26NINGBO GEELY ROYAL ENGINE COMPONENTS CO LTD +3

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
NINGBO GEELY ROYAL ENGINE COMPONENTS CO LTD
Filing Date
2024-11-14
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

During vehicle speed control, a CAN line failure between the main controller and the oil pump controller caused communication failure, making it impossible to effectively control the oil pump speed.

Method used

By using a hard-wired electrical connection between the main controller and the oil pump controller, electrical signals are transmitted via the hard wire. The target frequency is generated based on the target speed output by the main controller, and the oil pump controller analyzes the target speed to control the oil pump speed.

Benefits of technology

In the event of a CAN line communication failure, accurate control of the oil pump speed was achieved, avoiding the problem of uncontrollable oil pump speed due to communication failure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119333376B_ABST
    Figure CN119333376B_ABST
Patent Text Reader

Abstract

This application relates to a method, apparatus, device, medium, and computer program product for controlling the speed of an oil pump. The method includes: when there is a communication failure on the CAN bus between the main controller and the oil pump controller, obtaining a first target frequency based on a first target speed output by the main controller; triggering an electrical signal on a hard-wired line based on the first target frequency, and transmitting the electrical signal to the oil pump controller via the hard-wired line; determining a second target frequency based on the electrical signal by the oil pump controller, determining a second target speed based on the second target frequency, and controlling the oil pump based on the second target speed. This application solves the problem of controlling the oil pump speed by triggering an electrical signal on a hard-wired line using a first target frequency converted from the first target speed, and converting the second target speed based on the second target frequency parsed from the electrical signal on the hard-wired line, when the CAN bus between the main controller and the oil pump controller cannot transmit signals.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle control technology, and in particular to a method, apparatus, equipment, medium, and computer program product for controlling the speed of an oil pump. Background Technology

[0002] In the vehicle speed control process, the main controller sends a predetermined speed to the oil pump controller via the Controller Area Network (CAN) bus. After receiving the predetermined speed, the oil pump controller controls the actual speed of the oil pump to be the predetermined speed. If there is a problem with the CAN bus, communication between the main controller and the oil pump controller may fail, and the predetermined speed sent by the main controller cannot be received by the oil pump controller, resulting in the inability to control the speed of the oil pump. Summary of the Invention

[0003] The following is an overview of the subject matter described in detail herein. This overview is not intended to limit the scope of the claims.

[0004] This application aims to at least solve the technical problems existing in the prior art. To this end, this application proposes an oil pump speed control method, device, equipment, medium, and computer program product, which can achieve oil pump speed control when CAN failure prevents signal transmission between controllers.

[0005] A first aspect of this application provides an oil pump speed control method applied to a vehicle's main controller, wherein the main controller and the vehicle's oil pump controller are connected via hardwired electrical connection, and the method includes:

[0006] In the event of a communication failure on the CAN bus between the main controller and the oil pump controller, the first target frequency is obtained based on the first target rotational speed output by the main controller.

[0007] An electrical signal is triggered on the hard wire based on the first target frequency, and the electrical signal is transmitted to the oil pump controller through the hard wire.

[0008] The oil pump controller determines a second target frequency based on the electrical signal, determines a second target speed based on the second target frequency, and controls the oil pump based on the second target speed.

[0009] The oil pump speed control method provided in this application, after a CAN line failure, generates a first target frequency based on the first target speed output by the main controller, and uses the first target frequency to trigger an electrical signal on the hard line for signal transmission. After receiving the electrical signal, the oil pump controller can parse out the second target frequency and convert it into a second target speed, thereby controlling the oil pump speed based on the second target speed. This method solves the problem of controlling the oil pump speed by transmitting an electrical signal on the hard line through the first target frequency converted from the first target speed and the second target speed converted from the second target frequency parsed from the electrical signal when the main controller and the oil pump controller cannot transmit signals via CAN.

[0010] A second aspect of this application provides an oil pump speed control device, the device comprising:

[0011] The frequency acquisition module is used to obtain the first target frequency based on the first target rotational speed output by the main controller when there is a communication failure in the CAN bus between the main controller and the oil pump controller.

[0012] A signal transmission module is used to trigger an electrical signal on the hard wire based on the first target frequency, and transmit the electrical signal to the oil pump controller through the hard wire;

[0013] The oil pump control module is used to generate an electrical signal based on the target frequency and transmit the electrical signal to the oil pump controller via a hard wire, so that the oil pump controller can obtain the target speed by analyzing the electrical signal and control the oil pump according to the target speed.

[0014] The electronic device provided in the third aspect of this application includes at least one control processor and a memory for communicatively connecting to the at least one control processor; the memory stores instructions executable by the at least one control processor, which, when executed by the at least one control processor, enables the at least one control processor to perform the oil pump speed control method described in the first aspect above.

[0015] The fourth aspect of this application provides a computer-readable storage medium storing computer-executable instructions for causing a computer to execute the oil pump speed control method described in the first aspect above.

[0016] The computer program product provided in the fifth aspect of this application is characterized in that, when the instructions in the computer program product are executed by the processor of an electronic device, the electronic device performs the oil pump speed control method as described in the first aspect above.

[0017] It is understood that the beneficial effects of the second to fifth aspects compared with the related technologies are the same as the beneficial effects of the first aspect compared with the related technologies. Please refer to the relevant description in the first aspect above, which will not be repeated here. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a schematic flowchart of an embodiment of the oil pump speed control method provided in this application;

[0020] Figure 2 This is a schematic diagram of an embodiment of the communication link between the main controller and the oil pump controller provided in this application;

[0021] Figure 3(a) is a schematic diagram of an embodiment provided in this application, in which the main controller sends the target speed to the oil pump controller based on the CAN line;

[0022] Figure 3(b) is a schematic diagram of an embodiment provided in this application, in which the main controller sends high and low levels generated based on the target frequency to the oil pump controller based on hard wiring;

[0023] Figure 4 This is a flowchart illustrating another embodiment of the oil pump speed control method provided in this application;

[0024] Figure 5 This is a schematic diagram of an embodiment of an oil pump speed control device provided in this application;

[0025] Figure 6 This is a schematic diagram of an embodiment of an electronic device provided in this application. Detailed Implementation

[0026] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0027] It should be noted that although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first," "second," etc., in the specification, claims, and the aforementioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0028] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0029] The following is a brief introduction to the current background:

[0030] The oil pump controller mainly receives the speed control command (or speed control instruction) of the main controller for the oil pump. This command is transmitted through the CAN line, and then the controller controls the oil pump to run at the speed indicated by the command.

[0031] If the CAN line between the main controller and the oil pump controller fails, communication failure may occur, and the predetermined speed sent by the main controller cannot be received by the oil pump controller, resulting in the inability to control the oil pump speed. Therefore, this application provides an oil pump speed control method that effectively solves the above problems.

[0032] like Figure 1 One embodiment of this application provides a method for controlling the speed of an oil pump, applied to the oil pump control system of a vehicle. The oil pump control system may include a main controller, a Controller Area Network (CAN) bus, an oil pump controller, hardwires, etc. The main controller and the vehicle's oil pump controller are electrically connected via hardwires and CAN. The method includes steps S110 and S120:

[0033] Step S110: In the event of a communication failure on the CAN bus between the main controller and the oil pump controller, the first target frequency is obtained based on the first target speed output by the main controller.

[0034] Step S120: Trigger an electrical signal on the hard wire based on the first target frequency, and transmit the electrical signal to the oil pump controller through the hard wire;

[0035] In step S130, the oil pump controller determines the second target frequency based on the electrical signal, determines the second target speed based on the second target frequency, and controls the oil pump based on the second target speed.

[0036] In this example, such as Figure 2 The oil pump controller and the main controller are connected. The main controller can be the vehicle's overall controller or just the vehicle's engine control unit (ECU). Here, we take the ECU as an example. There are two communication links between the oil pump controller and the main controller. The first is a CAN line (bidirectional communication), and the other is a hard wire, which is generally unidirectional communication. Here, we only show the unidirectional communication between the main controller and the oil pump controller.

[0037] In this method, when a communication failure occurs on the CAN line between the main controller and the oil pump controller, the main controller sends a signal to the oil pump controller via hardware. Specifically, the main controller outputs a first target speed, then converts the first target speed into a first target frequency, triggers the generation of an electrical signal on the hard line based on the first target frequency, and then transmits the electrical signal to the oil pump controller on the hard line. After receiving the electrical signal, the oil pump controller parses the electrical signal to obtain a second target frequency, and then determines a second target speed based on the second target frequency. Subsequently, the oil pump controller controls the speed according to the second target speed, thus realizing the control of the oil pump speed solely based on the hard line when there is a communication failure between the main controller and the oil pump controller and the signal cannot be transmitted.

[0038] The following provides a detailed description of steps S110 and S120:

[0039] In step S110, the presence of a communication fault between the main controller and the oil pump controller via CAN can be detected first. This detection can be performed by the main controller or by other controllers of the vehicle (such as the communication control controller).

[0040] If a communication failure is detected in the CAN bus between the main controller and the oil pump controller, the main controller outputs a first target speed. This first target speed can be triggered by a command from the driver, or by the vehicle's main control chip or AI chip. For example, during adaptive cruise control, if the road ahead is clear, the vehicle speed can be increased appropriately to maintain the set speed. Or, for example, in autonomous driving, when the AI ​​detects an obstacle avoidance scenario requiring acceleration, the vehicle speed can be increased appropriately. Compared to methods that rely solely on driver triggering, this application allows the main controller to actively trigger the first target speed.

[0041] After obtaining the first target speed output by the main controller, the corresponding first target frequency can be generated based on the first target speed. There are several ways to generate the first target frequency based on the first target speed, such as:

[0042] (1) Based on experience, the mapping relationship between rotation speed and frequency is set in advance and the mapping relationship is stored in the database as key-value pairs. When it is necessary to determine the first target frequency based on the first target rotation speed, the mapping relationship is retrieved from the database. By searching the mapping relationship, the frequency corresponding to the first target rotation speed is found, which is the first target frequency.

[0043] (2) Based on machine learning, the neural network model is trained by the correspondence between various rotation speeds and frequencies collected in practice. When used later, the target rotation speed is input into the trained neural network model, and the neural network model outputs the frequency, which is the target frequency.

[0044] In step S120, an electrical signal is generated on the hard wire based on the first target frequency and transmitted to the oil pump controller via the hard wire. After a communication failure occurs in the CAN communication between the main controller and the oil pump controller, the main controller generates an electrical signal on the hard wire according to the first target frequency. For example, the generated electrical signal is a digital electrical signal (a sequence of 0-1), which is used to indicate the target frequency, that is, the target frequency is indicated by a combination of 0-1 sequences.

[0045] In step S130, after the oil pump controller receives the electrical signal, it analyzes the electrical signal to obtain the second target frequency, determines the second target speed based on the second target frequency, and controls the oil pump based on the second target speed.

[0046] The electrical signal is transmitted to the oil pump controller via a hard wire. After receiving the electrical signal, the oil pump controller parses the second target speed from the electrical signal. For example, after receiving the electrical signal, the oil pump controller parses the second target frequency according to the 0-1 sequence in the signal, and then uses the correspondence between the second target frequency and the second target speed to obtain the second target speed and control the oil pump to run at the second target speed.

[0047] It's worth noting that under normal conditions in the hard-wired transmission environment, the second target frequency is the same as the first target frequency. However, if the hard-wired transmission environment is abnormal (e.g., signal distortion occurs during transmission), the second target frequency will differ from the first target frequency; for example, the output second target frequency may be higher than the first target frequency. Here, the first target frequency refers to the frequency that triggers the hard-wired electrical signal, and the second target frequency refers to the frequency extracted from the hard-wired electrical signal; these are used separately to distinguish between the two frequencies.

[0048] Since both the first target rotational speed and the second target rotational speed have a corresponding relationship with the corresponding first target frequency and the second target frequency, the first target rotational speed and the second target rotational speed can be the same or different when the second target frequency is different from the first target frequency. For example, when the first target frequency and the second target frequency are the same, the first target rotational speed and the second target rotational speed can be the same.

[0049] The second target speed being equal to the first target speed is a preferred implementation method.

[0050] This method first generates a first target frequency based on the first target speed output by the main controller, generates an electrical signal on a hard wire using the first target frequency, and transmits the electrical signal to the oil pump controller. After the oil pump controller receives the electrical signal, it can deduce the second target speed from it (first deduce the second target frequency, and then determine the second target speed from the second target frequency), and then control the oil pump to run at the second target speed.

[0051] In some embodiments of this application, the electrical signal in step S120 includes a target level, wherein the target level includes a high level and a low level, and the switching frequency of the high level and the low level per unit time is determined by the target frequency.

[0052] In this embodiment, a target voltage level is generated on a hard-wired circuit based on a first target frequency. In digital circuits, the high and low voltage levels are represented by logic levels. Logic levels include both high and low levels. The instant (moment) when a logic level changes from low (digit "0") to high (digit "1") is called the rising edge, and vice versa. The target voltage level is a 0-1 digital signal. Here, the number of times the signal changes from high to low and back to high within a unit of time is determined based on the first target frequency.

[0053] At present, there are a large number of oil pump controllers that cannot parse analog values ​​in hard-wired signals. If such oil pump controllers receive analog values ​​in hard-wired signals, they cannot identify the corresponding speed based on the analog values ​​because they cannot parse the analog values, and thus cannot accurately control the oil pump.

[0054] The method provided in this embodiment generates a first target frequency based on the first target speed output by the main controller, and then uses the first target frequency to generate high and low levels. The first target frequency is characterized by the switching frequency of the high and low levels per unit time. Since high and low levels are transmitted, and high and low levels are continuous digital signals of 0-1, oil pump controllers that cannot resolve hard-wired analog values ​​can accurately identify the frequency (i.e. output the second target frequency) without changing the structure, thereby realizing the resolution of the second target frequency into the corresponding second target speed.

[0055] Figure 3 shows a schematic diagram of the main controller sending the rotational speed to the oil pump controller via a hard-wired connection using a CAN bus. The transmitted value is an analog value. Figure 3(b) shows another schematic diagram of the main controller sending the rotational speed to the oil pump controller via a hard-wired connection. The frequency refers to the number of times the signal transitions from a high level to a low level and back to a high level, i.e., the number of periodic repetitions. See the comparison between the high-frequency signal corresponding to high rotational speed and the low-frequency signal corresponding to low rotational speed in Figure 3(b).

[0056] In some embodiments, if the oil pump controller can accept analog values, the target frequency can be identified in the electrical signal, for example, by directly transmitting an electrical signal containing 50 Hz to the oil pump controller. The oil pump controller can then read the 50 Hz information from the electrical signal.

[0057] In some embodiments of this application, step S110, obtaining the first target frequency based on the first target rotational speed output by the main controller, includes:

[0058] Step S1110: Determine the target speed range to which the first target speed belongs. The target speed range is a preset speed range in the first correspondence relationship. The first correspondence relationship includes a correspondence relationship between at least two preset speed ranges and preset frequencies.

[0059] Step S1120: Determine the preset frequency corresponding to the target speed range in the first correspondence as the first target frequency.

[0060] In this embodiment, the first correspondence can be generated by the main controller or by other controllers; there is no limitation on this.

[0061] The first correspondence contains at least two correspondences between preset speed ranges and preset frequencies, for example:

[0062] The first preset speed range is (0 Rpm, 500 Rpm), and the corresponding first preset frequency is 0 Hz, where Rpm and Hz are the units of speed and frequency, respectively.

[0063] The second preset speed range is (500 Rpm, 1000 Rpm), and the corresponding second preset frequency is 5 Hz.

[0064] The third preset speed range is (1000 Rpm, 2000 Rpm), and the corresponding third preset frequency is 10 Hz.

[0065] If the first target rotational speed is 2000 Rpm, then the first target frequency corresponding to the first target rotational speed is 10 Hz.

[0066] By establishing a mapping relationship between rotational speed range and frequency, the corresponding first target frequency can be accurately selected for the first target rotational speed.

[0067] It should be noted that the first correspondence can be stored in the database in advance and called when needed.

[0068] Compared to other methods, this method is quick and effective, and by judging the speed range threshold, it can reduce the frequency setting and improve adaptability.

[0069] In some embodiments of this application, given a first correspondence, the first target rotational speed can be matched with the first target frequency in the following manner:

[0070] Based on the minimum value of each preset speed range in the first correspondence, the multiple preset speed ranges are sorted according to preset rules to obtain multiple preset speed ranges arranged in sequence.

[0071] The preset speed range that is ranked first among multiple preset speed ranges is taken as the current speed range;

[0072] If the preset rule is to sort from largest to smallest, determine whether the first target speed is greater than the minimum value of the current speed range. If the first target speed is greater than the minimum value of the current speed range, then the preset frequency corresponding to the current speed range is taken as the first target frequency. If the first target speed is less than or equal to the minimum value of the current speed range, then the preset speed range that is adjacent to the current speed range and sorted after the current speed range is taken as the current speed range, and the step of determining whether the first target speed is greater than the minimum value of the current speed range is executed until the first target frequency is determined.

[0073] If the preset rule is to sort from smallest to largest, determine whether the first target speed is less than the maximum value of the current speed range. If the first target speed is less than the maximum value of the current speed range, then the frequency corresponding to the current speed range is taken as the first target frequency. If the first target speed is greater than or equal to the maximum value of the current speed range, then the preset speed range that is adjacent to the current speed range and sorted after the current speed range is taken as the current speed range, and the step of determining whether the first target speed is less than the maximum value of the current speed range is executed until the first target frequency is determined.

[0074] In this embodiment, multiple preset speed ranges are sorted to obtain multiple preset speed ranges arranged in sequence. The sorting can be in ascending or descending order. For example, there are 5 sorted ranges: (3000 RPM, 3500 RPM], (2000 RPM, 3000 RPM], (1000 RPM, 2000 RPM], (500 RPM, 1000 RPM], and (0, 500 RPM]. Then, (3000 RPM, 3500 RPM] is taken as the current speed range, and then it is determined whether the first target speed is greater than the current speed range (3000 RPM, 3500 RPM). If the minimum value of (3000Rpm, 3500Rpm) is greater than the minimum value of (3000Rpm, 3500Rpm), the judgment ends, and the preset frequency corresponding to (3000Rpm, 3500Rpm) is taken as the first target frequency; if it is less than, then (2000Rpm, 3000Rpm) is taken as the current speed range, and then it is judged whether the first target speed is greater than the minimum value of the current speed range (2000Rpm, 3000Rpm). If it is greater than the minimum value of (2000Rpm, 3000Rpm), the judgment ends, and the preset frequency corresponding to (2000Rpm, 3000Rpm) is taken as the first target frequency. The preset frequency is used as the first target frequency; if it is less than this, then (1000 Rpm, 2000 Rpm] is used as the current speed range, and it is then determined whether the first target speed is greater than the minimum value of the current speed range (1000 Rpm, 2000 Rpm]. If it is greater than the minimum value of (1000 Rpm, 2000 Rpm), the determination ends, and the preset frequency corresponding to (1000 Rpm, 2000 Rpm) is used as the first target frequency; if it is less than this, then (500 Rpm, 1000 Rpm] is used as the current speed range, and it is then determined whether the first target speed is greater than the current speed range. If the minimum value of (500 RPM, 1000 RPM) is greater than the minimum value of (500 RPM, 1000 RPM), the judgment ends, and the preset frequency corresponding to (500 RPM, 1000 RPM) is taken as the first target frequency; if it is less than the minimum value, (0 RPM, 500 RPM) is taken as the current speed range, and then it is judged whether the first target speed is greater than the minimum value of the current speed range (0 RPM, 500 RPM). If it is greater than the minimum value of (0 RPM, 500 RPM), the judgment ends, and the preset frequency corresponding to (0 RPM, 500 RPM) is taken as the first target frequency.

[0075] In this embodiment, multiple preset speed ranges are sorted according to the minimum value of each preset speed range to obtain multiple preset speed ranges arranged in sequence. Then, the multiple preset speed ranges arranged in sequence are matched one by one until the preset speed range to which the first target speed belongs is determined and the corresponding first target frequency is matched. By dividing multiple preset speed ranges and matching them one by one, the first target speed can be effectively matched with the corresponding first target frequency, and the mismatch is not easy.

[0076] In other embodiments, sorting may not be performed; instead, matching can be performed directly within multiple preset speed ranges, which can also match the first target speed with the corresponding first target frequency.

[0077] In some embodiments of this application, determining the second target rotational speed based on the second target frequency in step S130 includes:

[0078] Step S1310: Determine the target frequency range to which the second target frequency belongs. The target frequency range is a preset frequency range in the second correspondence relationship. The second correspondence relationship includes a correspondence relationship between at least two preset frequency ranges and preset rotation speeds.

[0079] Step S1320: Determine the preset frequency corresponding to the target frequency range in the second correspondence as the second target rotational speed.

[0080] Similar to the first correspondence, the second correspondence includes a correspondence between at least two preset frequency ranges and preset rotational speeds, for example:

[0081] The first preset frequency range is (0, 5Hz), and the corresponding first preset rotation speed is 500 Rpm.

[0082] The second preset frequency range is (5Hz, 10Hz), and the corresponding second preset speed is 1000 Rpm.

[0083] The third preset frequency range is (10Hz, 20Hz), and the corresponding third preset rotation speed is 2000 Rpm.

[0084] If the second target frequency is 18Hz, then the second target speed corresponding to the first target speed is 2000 Rpm. Similarly, the process of matching the second target speed to the second target frequency will not be detailed here.

[0085] In this embodiment, the main controller can obtain the second correspondence in advance. The second correspondence includes multiple preset frequency intervals and a preset rotational speed corresponding to each preset frequency interval. Then, the main controller sends the second correspondence to the oil pump controller in advance, and the oil pump controller stores it in the corresponding memory. In this way, after the oil pump controller parses the frequency from the electrical signal, it matches the parsed second target frequency according to the second correspondence, selects the frequency interval where the second target frequency is located from the multiple preset frequency intervals, and takes the preset rotational speed corresponding to the selected preset frequency interval as the second target rotational speed.

[0086] In some embodiments, the second correspondence may also be sent to the oil pump controller in advance by other controllers, or it may be programmed in advance.

[0087] In some embodiments of this application, the first correspondence relationship includes a correspondence between a first target rotational speed and a first target frequency, while the second correspondence relationship includes a correspondence between a second target frequency and a second target rotational speed. Due to abnormalities in the hard-wired transmission environment, signal transmission may be distorted or lost, leading to a deviation between the second target frequency and the first target frequency. The purpose of setting up two correspondence relationships in this application is to reduce the error in the second target rotational speed converted from the second target frequency due to such deviation, i.e., to minimize the error between the second target rotational speed and the first target rotational speed, thereby improving accuracy. For example, if the first target rotational speed is 3500 Rpm, the first target frequency could be 50 Hz, but the second target frequency might be 40 Hz (due to distortion). Therefore, the second target rotational speed corresponding to the second target frequency of 40 Hz in the second correspondence relationship is preferably 3500 Rpm, allowing for precise control of the oil pump speed.

[0088] In some embodiments, the following relationship is set:

[0089] The ranges of at least two preset frequency intervals in the second correspondence are continuous and do not overlap; the ranges of at least two preset speed intervals in the first correspondence are continuous and do not overlap.

[0090] The target preset speed in the second correspondence is the maximum value of the target preset speed range in the first correspondence, and the preset frequency corresponding to the target preset speed range is within the preset frequency range corresponding to the target preset speed; the target preset speed is the preset speed in the second correspondence; the first correspondence includes at least two correspondences between preset speed ranges and preset frequencies, the ranges of at least two preset speed ranges are continuous and do not overlap, and the target preset speed range is the preset speed range in the first correspondence.

[0091] By setting the relationship between the first and second correspondences as described above, when the second target frequency parsed from the electrical signal falls into the corresponding preset frequency range, the maximum value of the corresponding preset speed range is directly selected as the second target speed, ensuring that the oil pump can provide sufficient power.

[0092] Specific examples are detailed in the subsequent implementation descriptions.

[0093] In some embodiments of this application, the method further includes:

[0094] Detect whether there is a first reception fault in the CAN receiver signal sent by the oil pump controller. In response to the presence of a first reception fault, determine that there is a communication fault in the CAN bus between the main controller and the oil pump controller.

[0095] and / or

[0096] The system detects whether there is a second receiving fault in the oil pump receiving signal sent from the oil pump controller to the main controller. In response to the existence of a second receiving fault, it determines that there is a communication fault in the CAN communication between the main controller and the oil pump controller.

[0097] In this example, when the main controller detects a first reception fault in the CAN receiver signal sent by the oil pump controller, it sets the fault signal of the received signal to 1.

[0098] When a second receiving fault is detected in the oil pump receiving signal sent by the oil pump controller to the main controller, the fault flag signal of the oil pump receiving signal sent by the oil pump controller to the main controller is set to 1.

[0099] When either of the two fault signals mentioned above is equal to 1, it indicates a communication fault between the main controller and the oil pump controller.

[0100] The fault diagnosis logic provided in this embodiment is simple and easy to operate.

[0101] For ease of understanding, the following embodiments are provided, such as Figure 4 A method for controlling the oil pump speed is provided:

[0102] Step S910: The main controller detects the signal from the oil pump controller.

[0103] Step S920: When the oil pump controller signal is faulty, or the oil pump receiving signal fault flag in the oil pump controller signal is equal to 1, the first target speed N of the oil pump is detected by the main controller.

[0104] Step S930: Calculate the first target frequency H: The first target frequency H can be calculated by judging from the preset speeds in the first correspondence relationship from large to small, or from small to large. Setting the first correspondence relationship improves the accuracy of the oil pump controller's reception and reduces the likelihood of misjudgment. The process of matching the first target speed N with the first target frequency H in the first correspondence relationship is as follows:

[0105] 1) If 3500 Rpm ≥ N > 3000 Rpm, then H = 50 Hz;

[0106] 2) Otherwise, if 3000Rpm≥N>2000Rpm, then H=20Hz;

[0107] 3) Otherwise, if 2000 Rpm ≥ N > 1000 Rpm, then H = 10 Hz;

[0108] 4) Otherwise, if 1000 Rpm ≥ N > 500 Rpm, then H = 5 Hz;

[0109] 5) Otherwise, H = 0Hz.

[0110] Step S940: The main controller triggers an electrical signal (i.e., target level) on the hard line according to the first target frequency.

[0111] Step S950: The oil pump controller extracts the second target frequency Hign of the target level from the electrical signal. It should be noted that the second target frequency detected by the oil pump controller on this hard-wired line may be lower than the first target frequency at the hard-wired input, because signals are prone to distortion or loss during transmission in hard-wired lines.

[0112] Step S960: Based on the aforementioned second target frequency Hign, the oil pump controller calculates the second target rotational speed Noil of the oil pump using the second correspondence relationship. The second correspondence relationship is used for comparison to avoid inaccurate frequency identification. The specific matching process is as follows:

[0113] 1) If Hign = 50Hz, then Noil = 3500Rpm;

[0114] 2) Otherwise, if Hign ≥ 20 Hz, Noil = 3000 Rpm;

[0115] 3) Otherwise, if Hign ≥ 10 Hz, Noil = 2000 Rpm;

[0116] 4) Otherwise, if Hign ≥ 5Hz, Noil = 1000Rpm;

[0117] 5) Otherwise, Noil = 500 Rpm.

[0118] Here, the second target speed is selected to be output at the maximum value. For example, when Hign≥20Hz, the second target speed of the oil pump controller Noil=3000Rpm. This is to provide the oil pump with sufficient speed and avoid the defect of insufficient power.

[0119] Step S970: The oil pump controller controls the oil pump based on Noil.

[0120] Here, after a CAN line failure, this method generates a first target frequency based on the first target speed output by the main controller, uses the frequency value to trigger an electrical signal on the hard wire, and transmits the signal. After receiving the electrical signal, the oil pump controller can parse the second target speed from it, and then control the oil pump speed based on the second target speed. This method solves the problem of controlling the oil pump speed when the CAN line between controllers cannot transmit signals due to a CAN failure.

[0121] Currently, many oil pump controllers cannot parse the analog values ​​in hard-wired signals, resulting in unresolved signals and inaccurate information reception. The method provided in this embodiment generates a first target frequency based on the first target speed output by the main controller. High and low levels are generated using this frequency, and the frequency of switching between high and low levels per unit time characterizes the first target frequency. Since high and low levels are transmitted as continuous digital signals (0-1), oil pump controllers that cannot parse hard-wired analog values ​​can accurately identify the frequency in the electrical signal without structural changes, thereby enabling the second target frequency to be resolved into the corresponding second target speed.

[0122] like Figure 5 One embodiment of this application provides an oil pump speed control device, the device comprising:

[0123] The frequency acquisition module 1100 is used to obtain the first target frequency based on the first target speed output by the main controller in the event of a communication failure on the CAN bus between the main controller and the oil pump controller.

[0124] The signal transmission module 1200 is used to trigger an electrical signal on a hard wire based on a first target frequency, and transmit the electrical signal to the oil pump controller through the hard wire.

[0125] The oil pump control module 1300 is used to generate an electrical signal based on the target frequency and transmit the electrical signal to the oil pump controller through a hard wire, so that the oil pump controller can obtain the target speed by analyzing the electrical signal and control the oil pump according to the target speed.

[0126] It should be noted that since the oil pump speed control device in this embodiment is based on the same inventive concept as the oil pump speed control method described above, the corresponding content in the embodiment of the oil pump speed control method is also applicable to this device embodiment, and will not be described in detail here.

[0127] like Figure 6 Based on the same inventive concept, this application also provides an electronic device.

[0128] Electronic devices may include a processor 401 and a memory 402 storing computer programs or instructions.

[0129] Specifically, the processor 401 may include a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of the present invention.

[0130] Memory 402 may include mass storage for data or instructions. For example, and not limitingly, memory 402 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 402 may include removable or non-removable (or fixed) media. Where appropriate, memory 402 may be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, memory 402 is non-volatile solid-state memory. Memory may include read-only memory (ROM), random-access memory (RAM), disk storage media devices, optical storage media devices, flash memory devices, electrical, optical, or other physical / tangible memory storage devices. Therefore, typically, a memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described in the oil pump speed control method provided in the above embodiments.

[0131] The processor 401 reads and executes computer program instructions stored in the memory 402 to implement any of the oil pump speed control methods in the above embodiments.

[0132] In one example, the electronic device may also include a communication interface 403 and a bus 410. The processor 401, memory 402, and communication interface 403 are connected via the bus 410 and communicate with each other.

[0133] The communication interface 403 is mainly used to realize communication between various modules, devices, units and / or devices in the embodiments of the present invention.

[0134] Bus 410 includes hardware, software, or both, that couples components of an electronic device together. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 410 may include one or more buses. While specific buses are described and illustrated in embodiments of the invention, the invention contemplates any suitable bus or interconnect.

[0135] The electronic device can execute the data processing method described in the embodiments of the present invention, thereby achieving... Figure 1 Any described method for controlling the speed of an oil pump.

[0136] Furthermore, in conjunction with the oil pump speed control method in the above embodiments, this invention can be implemented using a readable storage medium. This readable storage medium stores program instructions; when these program instructions are executed by a processor, they implement any one of the oil pump speed control methods in the above embodiments.

[0137] It should be clarified that the present invention is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of the present invention.

[0138] The functional blocks shown in the above-described structural diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this invention are programs or code segments used to perform the required tasks. The programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.

[0139] It should also be noted that the exemplary embodiments mentioned in this invention describe methods or systems based on a series of steps or apparatus. However, this invention is not limited to the order of the steps described above; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.

[0140] The aspects of this application have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer 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 these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by dedicated hardware performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.

[0141] The above description is merely a specific embodiment of the present invention. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the protection scope of the present invention.

Claims

1. An oil pump rotation speed control method characterized by comprising: A main controller for a vehicle, wherein the main controller is electrically connected to the vehicle's oil pump controller via hardwire, the method comprising: In the event of a communication failure on the CAN bus between the main controller and the oil pump controller, a first target frequency is obtained based on the first target speed output by the main controller. Obtaining the first target frequency based on the first target speed output by the main controller includes: determining the target speed range to which the first target speed belongs, wherein the target speed range is a preset speed range in a first correspondence relationship, and the first correspondence relationship includes at least two preset speed ranges and preset frequencies; and determining the preset frequency corresponding to the target speed range in the first correspondence relationship as the first target frequency. An electrical signal is triggered on the hard wire based on the first target frequency, and the electrical signal is transmitted to the oil pump controller through the hard wire. The oil pump controller determines a second target frequency based on the electrical signal, determines a second target speed based on the second target frequency, and controls the oil pump based on the second target speed; the step of determining the second target speed based on the second target frequency includes: The target frequency range to which the second target frequency belongs is determined. The target frequency range is a preset frequency range in a second correspondence relationship. The second correspondence relationship includes a correspondence relationship between at least two preset frequency ranges and preset rotational speeds. The preset frequency corresponding to the target frequency range in the second correspondence relationship is determined as the second target rotational speed. The ranges of the at least two preset frequency ranges in the second correspondence relationship are continuous and do not overlap. The target preset speed in the second correspondence is the maximum value of the target preset speed range in the first correspondence, and the preset frequency corresponding to the target preset speed range is within the preset frequency range corresponding to the target preset speed; the target preset speed is the preset speed in the second correspondence; the first correspondence includes a correspondence between at least two preset speed ranges and preset frequencies, the ranges of the at least two preset speed ranges are continuous and do not overlap, and the target preset speed range is the preset speed range in the first correspondence; The first target speed belongs to one of the preset speed ranges in the first correspondence, and the preset frequency corresponding to the preset speed range to which the first target speed belongs is the same as the first target frequency.

2. The oil pump rotation speed control method according to claim 1, characterized by, The electrical signal includes a target level, wherein the target level includes a high level and a low level, and the switching frequency of the high level and the low level per unit time is determined by the first target frequency.

3. The oil pump rotation speed control method according to claim 1, characterized by The method further includes: The system detects whether there is a first reception fault in the CAN bus receiving the signal sent by the oil pump controller. In response to the presence of a first reception fault, it determines that there is a communication fault in the CAN bus between the main controller and the oil pump controller. and / or The system detects whether there is a second receiving fault in the oil pump receiving signal sent by the oil pump controller to the main controller. In response to the existence of a second receiving fault, it determines that there is a communication fault in the CAN communication between the main controller and the oil pump controller.

4. An oil pump rotation speed control device characterized by comprising: The device includes: The frequency acquisition module is used to obtain a first target frequency based on a first target rotational speed output by the main controller when there is a communication failure on the CAN bus between the main controller and the oil pump controller. Obtaining the first target frequency based on the first target rotational speed output by the main controller includes: determining the target rotational speed range to which the first target rotational speed belongs, wherein the target rotational speed range is a preset rotational speed range in a first correspondence relationship, the first correspondence relationship including at least two preset rotational speed ranges and preset frequencies; and determining the preset frequency corresponding to the target rotational speed range in the first correspondence relationship as the first target frequency. A signal transmission module is used to trigger an electrical signal on a hard wire based on the first target frequency, and transmit the electrical signal to the oil pump controller through the hard wire; An oil pump control module is used to generate an electrical signal based on the target frequency and transmit the electrical signal to the oil pump controller via a hard wire, so that the oil pump controller can analyze the electrical signal to obtain the target rotational speed and control the oil pump according to the target rotational speed; wherein, the oil pump controller analyzes the electrical signal to obtain the target rotational speed and controls the oil pump according to the target rotational speed, including: the oil pump controller determines a second target frequency based on the electrical signal, determines a second target rotational speed based on the second target frequency, and controls the oil pump according to the second target rotational speed; The step of determining the second target rotational speed based on the second target frequency includes: Determine the target frequency range to which the second target frequency belongs, wherein the target frequency range is a preset frequency range in a second correspondence relationship, and the second correspondence relationship includes at least two preset frequency ranges and a preset rotational speed correspondence relationship; determine the preset frequency corresponding to the target frequency range in the second correspondence relationship as the second target rotational speed; The interval ranges of at least two preset frequency intervals in the second correspondence are continuous and do not overlap; The target preset speed in the second correspondence is the maximum value of the target preset speed range in the first correspondence, and the preset frequency corresponding to the target preset speed range is within the preset frequency range corresponding to the target preset speed; the target preset speed is the preset speed in the second correspondence; the first correspondence includes a correspondence between at least two preset speed ranges and preset frequencies, the ranges of the at least two preset speed ranges are continuous and do not overlap, and the target preset speed range is the preset speed range in the first correspondence; The first target speed belongs to one of the preset speed ranges in the first correspondence, and the preset frequency corresponding to the preset speed range to which the first target speed belongs is the same as the first target frequency.

5. An electronic device, comprising: It includes at least one control processor and a memory for communicatively connecting to the at least one control processor; the memory stores instructions executable by the at least one control processor, which, when executed by the at least one control processor, enable the at least one control processor to perform the oil pump speed control method according to any one of claims 1 to 3.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions for causing a computer to perform an oil pump speed control method according to any one of claims 1 to 3.

7. A computer program product, characterised in that, When the instructions in the computer program product are executed by the processor of the electronic device, the electronic device performs an oil pump speed control method as described in any one of claims 1 to 3.