Oil pump rotation speed control method and apparatus, device, medium, and computer program product
By transmitting electrical signals via hardwired connection between the main controller and the oil pump controller, and generating and parsing frequencies to control the oil pump speed, the problem of inaccurate oil pump speed control caused by CAN bus communication failure is solved, and oil pump speed control is realized under fault conditions.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- AUROBAY (NINGBO) INTELLIGENT TECHNOLOGY CO LTD
- Filing Date
- 2025-11-14
- Publication Date
- 2026-05-21
Smart Images

Figure CN2025135206_21052026_PF_FP_ABST
Abstract
Description
Oil pump speed control methods, devices, equipment, media, and computer program products Cross-references to related applications
[0001] This application claims priority to Chinese patent application No. 202411628108.5, filed on November 14, 2024, the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to, but is not limited to, the field of vehicle control technology, and particularly to a method, apparatus, equipment, medium, and computer program product for controlling the speed of an oil pump. Background Technology
[0003] The oil pump is typically located in the vehicle's oil circuit system and is responsible for powering the movement of the working oil in the oil circuit. In the oil pump 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. Summary of the Invention
[0004] 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.
[0005] This application discloses a method, device, equipment, medium, and computer program product for controlling the speed of an oil pump.
[0006] In a first aspect, embodiments of this application provide an oil pump speed control method applied to a vehicle's main controller. The main controller and the vehicle's oil pump controller are connected via hardwired electrical connection. The method includes: in the event of 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 the hardwired line based on the first target frequency, and transmitting the electrical signal to the oil pump controller via the hardwired 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.
[0007] The oil pump speed control method provided in this application, in the event of a CAN bus failure, generates a first target frequency based on a first target speed output by the main controller, and transmits an electrical signal on a hard-wired line based on the first target frequency. After receiving the electrical signal, the oil pump controller can parse a second target frequency from it, generate a second target speed based on the second target frequency, and then control the oil pump speed according to the second target speed. This method, when the CAN bus between the main controller and the oil pump controller cannot transmit signals, uses the first target frequency converted from the first target speed to trigger an electrical signal on a hard-wired line for signal transmission, and then uses the second target frequency parsed from the electrical signal to convert the second target speed to achieve oil pump speed control.
[0008] Secondly, embodiments of this application provide an oil pump speed control device, the device comprising: a frequency acquisition module, configured to obtain a first target frequency based on a first target speed output by the main controller when a communication failure occurs on the CAN bus of the controller local area network between the main controller and the oil pump controller; a signal transmission module, configured to trigger an electrical signal on a hardwired line based on the first target frequency, and transmit the electrical signal to the oil pump controller via the hardwired line; and an oil pump control module, configured to determine a second target frequency based on the electrical signal, determine a second target speed based on the second target frequency, and control the oil pump based on the second target speed.
[0009] Thirdly, embodiments of this application provide an electronic device, including at least one control processor and at least one memory for communicatively connecting to the at least one control processor; the at least one memory stores instructions executable by the at least one control processor, the instructions being executed by the at least one control processor to enable the at least one control processor to perform the oil pump speed control method described in the first aspect above.
[0010] Fourthly, embodiments of this application provide 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.
[0011] Fifthly, embodiments of this application provide a computer program product, the computer program product including computer-executable instructions, which, when executed by at least one processor, cause the at least one processor to perform the oil pump speed control method as described in the first aspect above.
[0012] It is understood that the beneficial effects of the second to fifth aspects mentioned above are the same as those of the first aspect mentioned above, and can be found in the relevant description in the first aspect mentioned above, which will not be repeated here.
[0013] After reading and understanding the accompanying diagrams and detailed descriptions, the other aspects can be understood. Attached Figure Description
[0014] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0015] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. The drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without creative effort.
[0016] Figure 1 is a schematic flowchart of an oil pump speed control method provided in an embodiment of this application.
[0017] Figure 2 is a schematic diagram of the communication link between the main controller and the oil pump controller provided in an embodiment of this application.
[0018] Figure 3A is a schematic diagram of the main controller sending the target speed to the oil pump controller based on the CAN bus according to an embodiment of this application.
[0019] Figure 3B is a schematic diagram of the transmission of high and low levels generated based on the target frequency from the main controller to the oil pump controller via hardwire according to an embodiment of this application.
[0020] Figure 4 is a flowchart illustrating an oil pump speed control method according to another embodiment of this application.
[0021] Figure 5 is a schematic diagram of the structure of an oil pump speed control device provided in an embodiment of this application.
[0022] Figure 6 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0023] To make the objectives, features, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of this application.
[0024] It should be noted that although functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the device may be divided into modules different from those in the device schematic diagram, or the steps shown or described may be performed in a different order than those in the flowchart. The terms "first," "second," etc., in the specification, claims, and the aforementioned drawings are used to distinguish similar objects, not to describe a specific order or sequence.
[0025] 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.
[0026] The oil pump controller mainly receives the speed control command of the oil pump from the main controller. This speed control command is transmitted through the CAN bus. Then, the oil pump controller controls the oil pump to run at the speed indicated by the command.
[0027] If the CAN bus between the main controller and the oil pump controller fails, a communication failure may occur between them, causing the speed control commands sent by the main controller to be unable to be received by the oil pump controller, which in turn will prevent the oil pump controller from controlling the speed of the oil pump.
[0028] Based on this, this application provides an oil pump speed control method that can control the oil pump speed even when the CAN bus between the main controller and the oil pump controller fails and cannot transmit signals.
[0029] As shown in Figure 1, one embodiment of this application provides an oil pump speed control method applied to a vehicle's oil pump control system. The oil pump control system may include a main controller, a Controller Area Network (CAN) bus, an oil pump controller, and hardwired connections. The main controller and the oil pump controller are electrically connected via hardwired connections and the CAN bus. The method includes steps S110, S120, and S130.
[0030] In step S110, if there is 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.
[0031] In step S120, 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.
[0032] 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.
[0033] In this embodiment, as shown in Figure 2, the communication link between the oil pump controller and the main controller is illustrated. The main controller can be the vehicle's overall controller or the vehicle's engine controller; here, the engine control unit (ECU) is used as an example. Two communication links are established between the oil pump controller and the main controller: one is a CAN bus for bidirectional communication, and the other is a hardwired connection, typically for unidirectional communication. Only the unidirectional communication between the main controller and the oil pump controller is shown here.
[0034] In the event of a communication failure on the CAN bus between the main controller and the oil pump controller, this method allows the main controller to send a signal to the oil pump controller via a hardwired connection. Specifically, the main controller outputs a first target speed and then converts it into a first target frequency. Based on this first target frequency, an electrical signal is generated on the hardwired connection, and this signal is transmitted to the oil pump controller via the hardwired connection. Upon receiving the electrical signal, the oil pump controller analyzes it to determine a second target frequency, and then determines a second target speed based on this second target frequency. The oil pump controller then controls the oil pump speed according to this second target speed. Thus, even when a communication failure on the CAN bus between the main controller and the oil pump controller prevents signal transmission, control of the oil pump speed based solely on the hardwired connection is achieved.
[0035] The following provides a detailed description of steps S110 to S130.
[0036] In step S110, the presence of a communication fault on the CAN bus between the main controller and the oil pump controller can be detected first. This detection can be performed by the main controller or by other controllers of the vehicle (such as the communication controller).
[0037] If a communication failure is detected on the CAN bus between the main controller and the oil pump controller, the main controller outputs a first target speed. This output of the first target speed can be triggered by the driver's command, or by the vehicle's main control chip or artificial intelligence (AI) chips. For example, during adaptive cruise control, if the road ahead is clear, the vehicle speed can be appropriately increased 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 appropriately increased. Compared to methods relying solely on driver triggering, this application allows the main controller to actively trigger the first target speed.
[0038] 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 multiple ways to generate the first target frequency based on the first target speed, such as the following methods (1) and (2).
[0039] Method (1): Based on experience, pre-set the mapping relationship between rotational speed and frequency, and store the mapping relationship in the database as key-value pairs. When it is necessary to determine the first target frequency based on the first target rotational speed, retrieve the mapping relationship from the database, find the frequency corresponding to the first target rotational speed by searching the mapping relationship, and this frequency is the first target frequency.
[0040] Method (2): Using machine learning, a neural network model is trained by employing the correspondence between various actual collected rotational speeds and frequencies. When used subsequently, the first target rotational speed is input into the trained neural network model, and the model outputs the frequency, which is the first target frequency.
[0041] 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 on the CAN bus 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. The generated electrical signal is, for example, a digital electrical signal (binary sequence or 0-1 sequence), which indicates the first target frequency, i.e., the first target frequency is indicated by a combination of 0 and 1.
[0042] 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 according to the second target speed.
[0043] 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 it. For example, after receiving the electrical signal, the oil pump controller parses the second target frequency from 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 controls the oil pump to run at the second target speed.
[0044] It is worth noting that under normal hard-wired transmission conditions, 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 resolved second target frequency may be higher than the first target frequency. Here, "first target frequency" refers to the frequency that triggers the hard-wired electrical signal, while "second target frequency" refers to the frequency resolved from the hard-wired electrical signal, to distinguish between the two frequencies.
[0045] Because there is a correspondence between the first target rotational speed and the first target frequency, and a correspondence between the second target rotational speed 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; 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.
[0046] A preferred implementation method is to have the second target rotational speed equal to the first target rotational speed.
[0047] This method generates a first target frequency based on the first target speed output by the main controller, generates an electrical signal on a hard wire according to the first target frequency, and transmits the electrical signal to the oil pump controller. After receiving the electrical signal, the oil pump controller can deduce the second target speed from the electrical signal (specifically, 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.
[0048] In some embodiments of this application, the electrical signal in step S120 includes a target level. The target level includes a high level and a low level, and the switching frequency of the high and low levels per unit time is determined by a first target frequency.
[0049] In this embodiment, a target voltage level is generated on a hard-wired circuit based on a first target frequency. In digital circuits, logic levels are used to represent high and low voltage levels. Logic levels include high and low levels. The instant (moment) when a logic level changes from low (represented by the digit "0") to high (represented by the digit "1") is called the rising edge, and vice versa. The target voltage level is a digital signal represented by 0 and 1. Here, the number of times the voltage changes from high to low and back to high within a unit of time is determined based on the first target frequency.
[0050] Currently, there are many oil pump controllers that cannot parse analog values from signals on hard wires. If such oil pump controllers receive analog values from signals on hard wires, they cannot parse these values, resulting in an inability to identify the corresponding rotational speed and thus an inability to accurately control the oil pump speed.
[0051] The method provided in this embodiment generates a first target frequency based on the first target rotational speed output by the main controller, and generates a logic level based on the first target frequency. The first target frequency is characterized by the switching frequency of the high and low levels of the logic level per unit time. Since logic levels are transmitted, and logic levels are continuous digital signals of 0 and 1, oil pump controllers that cannot parse analog values in signals on hard wires can accurately identify the frequency of signals on hard wires (i.e., parse the second target frequency) without changing their structure, thereby realizing the conversion of the second target frequency into the corresponding second target rotational speed.
[0052] Figure 3A shows a schematic diagram of the main controller sending the target speed to the oil pump controller via a CAN bus. In this diagram, the main controller directly sends an analog value to the oil pump controller. Figure 3B shows a schematic diagram of the main controller sending high and low voltage levels to the oil pump controller via hard-wired connections. Here, frequency refers to the number of times the signal goes from high to low and back to high, i.e., the number of periodic repetitions. See the comparison between the high-frequency signal corresponding to the high target speed and the low-frequency signal corresponding to the low target speed in Figure 3B.
[0053] In some embodiments, if the pump controller is capable of resolving analog values, the target frequency can be identified in the electrical signal. For example, by directly transmitting an electrical signal containing a 50 Hz (Hertz) frequency to the pump controller, the pump controller can read the 50 Hz frequency information from the electrical signal.
[0054] In some embodiments of this application, step S110, which obtains the first target frequency based on the first target rotational speed output by the main controller, includes steps S1110 and S1120.
[0055] In step S1110, the target speed range to which the first target speed belongs is determined. 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.
[0056] In step S1120, the preset frequency corresponding to the target speed range in the first correspondence is determined as the first target frequency.
[0057] In this embodiment, the first correspondence can be generated by the main controller or by other controllers; no limitation is made here.
[0058] The first correspondence contains at least two preset speed ranges and preset frequencies. For example: 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; The second preset speed range is (500 Rpm, 1000 Rpm), and the corresponding second preset frequency is 5 Hz; The third preset speed range is (1000 Rpm, 2000 Rpm), and the corresponding third preset frequency is 10 Hz.
[0059] If the first target rotational speed is 2000 Rpm, then the first target frequency corresponding to the first target rotational speed is 10 Hz.
[0060] 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.
[0061] It should be noted that the first correspondence can be stored in the database in advance and called when needed.
[0062] Compared to other methods of determining frequency values based on rotational speed, this method is quick and effective. Furthermore, by using interval thresholds to determine rotational speed, the frequency value setting can be reduced, thus improving adaptability.
[0063] In some embodiments of this application, when a first correspondence is obtained, the first target rotational speed can be matched with the first target frequency in the following manner: Based on the minimum value of each preset rotational speed interval in the first correspondence, multiple preset rotational speed intervals are sorted according to a preset rule to obtain multiple preset rotational speed intervals arranged in sequence; the preset rotational speed interval that is first in the sequence is taken as the current rotational speed interval; if the preset rule is to sort from largest to smallest, it is determined whether the first target rotational speed is greater than the minimum value of the current rotational speed interval; if the first target rotational speed is greater than the minimum value of the current rotational speed interval, the preset frequency corresponding to the current rotational speed interval is taken as the first target frequency; if the first target rotational speed is less than or equal to the minimum value of the current rotational speed interval, the preset rotational speed interval that is adjacent to the current rotational speed interval and is sorted after the current rotational speed interval is taken as the current rotational speed interval, and the step of determining whether the first target rotational speed is greater than the minimum value of the current rotational speed interval is executed until the first target frequency is determined. If the preset rule is to sort from smallest to largest, determine whether the first target speed is less than or equal to the maximum value of the current speed range. If the first target speed is less than or equal to the maximum 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 greater than the maximum value of the current speed range, then the preset speed range that is adjacent to the current speed range and is sorted after the current speed range among the multiple preset speed ranges arranged in sequence is taken as the current speed range, and the step of determining whether the first target speed is less than or equal to the maximum value of the current speed range is executed until the first target frequency is determined.
[0064] 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 ranges arranged in descending order: (3000 RPM, 3500 RPM], (2000 RPM, 3000 RPM], (1000 RPM, 2000 RPM], (500 RPM, 1000 RPM], and (0, 500 RPM]. Taking (3000 RPM, 3500 RPM] as the current speed range, it is determined whether the first target speed is greater than the minimum value of the current speed range (3000 RPM, 3500 RPM]. If the first target speed is greater than the minimum value of (3000 RPM, 3500 RPM], the determination ends, and the preset frequency corresponding to (3000 RPM, 3500 RPM) is set. The first target frequency is used as the first target frequency. If the first target speed is less than or equal to the minimum value of (3000 RPM, 3500 RPM), then (2000 RPM, 3000 RPM) is used as the current speed range. Then, it is determined whether the first target speed is greater than the minimum value of the current speed range (2000 RPM, 3000 RPM). If the first target speed is greater than the minimum value of (2000 RPM, 3000 RPM), the determination ends, and the preset frequency corresponding to (2000 RPM, 3000 RPM) is used as the first target frequency. If the first target speed is less than or equal to the minimum value of (2000 RPM, 3000 RPM), then (1000 RPM, ... The current speed range is set to 2000 RPM. The system then determines whether the first target speed is greater than the minimum value of the current speed range (1000 RPM, 2000 RPM). If the first target speed 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 taken as the first target frequency. If the first target speed is less than or equal to the minimum value of (1000 RPM, 2000 RPM), then (500 RPM, 1000 RPM) is taken as the current speed range, and the system then determines whether the first target speed is greater than the minimum value of the current speed range (500 RPM, 1000 RPM). If the first target speed 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 the first target speed is less than or equal to the minimum value of (500 RPM, 1000 RPM), then (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 the first target speed 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.
[0065] This embodiment sorts multiple preset speed ranges according to the minimum value of each preset speed range, resulting in a sequentially arranged set of preset speed ranges. Then, these sequentially arranged preset speed ranges 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 the preset speed ranges into multiple segments and matching them sequentially, the first target speed can be effectively matched with the corresponding first target frequency, reducing the likelihood of mismatches.
[0066] In other embodiments, instead of sorting the multiple preset speed ranges, matching can be performed directly among the multiple preset speed ranges, which can also match the first target speed with the corresponding first target frequency.
[0067] In some embodiments of this application, determining the second target rotational speed based on the second target frequency in step S130 includes steps S1310 and S1320.
[0068] In step S1310, the target frequency range to which the second target frequency belongs is determined. 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.
[0069] In step S1320, the preset rotational speed corresponding to the target frequency range in the second correspondence is determined as the second target rotational speed.
[0070] Similar to the first correspondence, the second correspondence includes at least two preset frequency ranges and preset rotational speeds. For example: the first preset frequency range is [0, 5Hz), and the corresponding first preset rotational speed is 500 Rpm; the second preset frequency range is [5Hz, 10Hz), and the corresponding second preset rotational speed is 1000 Rpm; the third preset frequency range is [10Hz, 20Hz), and the corresponding third preset rotational speed is 2000 Rpm.
[0071] If the second target frequency is 18Hz, then the corresponding second target rotational speed is 2000 Rpm. Similarly, the process of matching the second target rotational speed based on the second target frequency will not be detailed here.
[0072] 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. 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 second target frequency from the electrical signal, it matches the parsed second target frequency according to the second correspondence, selects the preset frequency interval containing the second target frequency 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.
[0073] In some embodiments, the second correspondence may also be sent to the oil pump controller in advance by other controllers, or burned into the oil pump controller in advance.
[0074] 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. This application embodiment sets up two correspondence relationships to reduce the error in the second target rotational speed converted from the second target frequency caused by this 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 signal transmission distortion). Therefore, the second target rotational speed corresponding to the second target frequency of 40 Hz in the second correspondence relationship is 3500 Rpm, allowing for precise control of the oil pump speed.
[0075] In some embodiments, the following relationships are set: the ranges of at least two preset frequency intervals in the second correspondence relationship are continuous and do not overlap; the target preset speed in the second correspondence relationship is the maximum value of the target preset speed interval in the first correspondence relationship, and the preset frequency corresponding to the target preset speed interval is within the preset frequency interval corresponding to the target preset speed; the target preset speed is the preset speed in the second correspondence relationship; the first correspondence relationship includes a correspondence between at least two preset speed intervals and preset frequencies, the ranges of at least two preset speed intervals are continuous and do not overlap, and the target preset speed interval is the preset speed interval in the first correspondence relationship.
[0076] For example, the first correspondence includes at least two preset speed ranges and preset frequencies, such as: the preset speed range (0 Rpm, 500 Rpm) corresponds to a preset frequency of 0 Hz; the preset speed range (500 Rpm, 1000 Rpm) corresponds to a preset frequency of 5 Hz; and the preset speed range (1000 Rpm, 2000 Rpm) corresponds to a preset frequency of 10 Hz. The second correspondence includes at least two preset frequency ranges and preset speeds, such as: the preset frequency range [0, 5 Hz) corresponds to a preset speed of 500 Rpm; the preset frequency range [5 Hz, 10 Hz) corresponds to a preset speed of 1000 Rpm; and the preset frequency range [10 Hz, 20 Hz) corresponds to a preset speed of 2000 Rpm. If the target preset speed in the second correspondence is 1000 Rpm, which is the maximum value of the target preset speed range (500 Rpm, 1000 Rpm) in the first correspondence, then the preset frequency corresponding to the target preset speed range (500 Rpm, 1000 Rpm) is 5 Hz, which is within the preset frequency range [5 Hz, 10 Hz] corresponding to the target preset speed of 1000 Rpm.
[0077] By setting the relationship between the first and second correspondences as described above, when the second target frequency resolved from the electrical signal falls within the corresponding preset frequency range, the minimum value of the preset frequency range and the maximum value of the corresponding preset speed range in the first correspondence are directly selected as the second target speed, ensuring that the oil pump can provide sufficient power. For example, if the second target frequency resolved from the electrical signal is 8Hz, which falls within the corresponding preset frequency range [5Hz, 10Hz), then the minimum value of the preset frequency range [5Hz, 10Hz), i.e., 5Hz, is directly selected, along with the maximum value of the corresponding preset speed range (500Rpm, 1000Rpm) in the first correspondence, i.e., 1000Rpm, as the second target speed.
[0078] In some embodiments of this application, the method further includes: detecting whether there is a first receiving fault in the signal received by the main controller from the oil pump controller, and determining that there is a communication fault in the CAN bus between the main controller and the oil pump controller in response to the existence of the first receiving fault; and / or detecting whether there is a second receiving fault in the signal received by the oil pump controller from the main controller, and determining that there is a communication fault in the CAN bus between the main controller and the oil pump controller in response to the existence of the second receiving fault.
[0079] In this embodiment, when a first receiving fault is detected in the signal received by the main controller from the oil pump controller, the fault flag of the main controller receiving the signal is set to 1.
[0080] When a second receiving fault is detected in the signal received by the oil pump controller from the main controller, the fault flag for the oil pump controller receiving the signal is set to 1.
[0081] When either of the two fault flags is equal to 1, it indicates a communication fault between the main controller and the oil pump controller.
[0082] The fault diagnosis logic provided in this embodiment is simple and easy to operate.
[0083] For ease of understanding, the following embodiment is provided, as shown in Figure 4, which provides a method for controlling the speed of an oil pump.
[0084] In step S910, the main controller detects the signal from the oil pump controller.
[0085] In step S920, if the oil pump controller signal is faulty, or if the fault flag bit of the oil pump controller receiving signal 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.
[0086] In step S930, the first target frequency H is calculated. The first target frequency H can be determined from the preset speed range in the first correspondence relationship, either from large to small or from small to large. By setting the first correspondence relationship, the accuracy of the signal received by the oil pump controller is improved, and it is not easy to make a misjudgment. The process of matching the first target speed N with the first target frequency H in the first correspondence relationship is as follows: 1) If 3500 Rpm ≥ N > 3000 Rpm, H = 50 Hz; 2) Otherwise, if 3000 Rpm ≥ N > 2000 Rpm, H = 20 Hz; 3) Otherwise, if 2000 Rpm ≥ N > 1000 Rpm, H = 10 Hz; 4) Otherwise, if 1000 Rpm ≥ N > 500 Rpm, H = 5 Hz; 5) Otherwise, H = 0 Hz.
[0087] In step S940, the main controller triggers an electrical signal (i.e., target level) on the hard line according to the first target frequency.
[0088] In step S950, the oil pump controller parses 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 target level 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 circuits.
[0089] In step S960, the oil pump controller calculates the second target rotational speed Noil of the oil pump based on the second target frequency Hign mentioned above, using the second correspondence relationship for matching. Using the second correspondence relationship for matching can avoid inaccurate frequency identification. The specific matching process is as follows: 1) If Hign = 50Hz, Noil = 3500 Rpm; 2) Otherwise, if Hign ≥ 20Hz, Noil = 3000 Rpm; 3) Otherwise, if Hign ≥ 10Hz, Noil = 2000 Rpm; 4) Otherwise, if Hign ≥ 5Hz, Noil = 1000 Rpm; 5) Otherwise, Noil = 500 Rpm.
[0090] Here, the second target speed is output as the minimum value of the preset frequency range corresponding to the second target frequency Hign and the maximum value of the preset speed range corresponding to the first correspondence. For example, when Hign≥20Hz, the second target speed Noil of the oil pump controller is 3000Rpm. This is to provide the oil pump with sufficient speed and avoid the defect of insufficient power.
[0091] In step S970, the oil pump controller controls the oil pump based on the second target speed Noil.
[0092] Here, in this method, after a CAN bus failure, a first target frequency is generated based on the first target speed output by the main controller. An electrical signal is then triggered on the hardwired network according to the first target frequency and transmitted. Upon receiving the electrical signal, the oil pump controller can deduce the second target speed and control the oil pump speed accordingly. This method enables oil pump speed control even when the CAN bus between the main controller and the oil pump controller fails and signal transmission is impossible.
[0093] Currently, many oil pump controllers cannot parse the analog values in the signals on the hard wires, 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, and generates a logic level based on the first target frequency. The first target frequency is characterized by the switching frequency of the high and low logic levels per unit time. Since logic levels are transmitted, and logic levels are continuous digital signals of 0 and 1, oil pump controllers that cannot parse the analog values in the signals on the hard wires can accurately identify the frequency of the power-on signals on the hard wires without changing their structure, thereby converting the second target frequency into the corresponding second target speed.
[0094] As shown in Figure 5, one embodiment of this application provides an oil pump speed control device, including a frequency acquisition module 1100, a signal transmission module 1200, and an oil pump control module 1300.
[0095] The frequency acquisition module 1100 is used to obtain the first target frequency based on the first target speed output by the main controller when there is a communication failure on the CAN bus of the controller local area network between the main controller and the oil pump controller.
[0096] 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.
[0097] The oil pump control module 1300 is used to determine the second target frequency based on the electrical signal, determine the second target speed based on the second target frequency, and control the oil pump based on the second target speed.
[0098] 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.
[0099] As shown in Figure 6, based on the same inventive concept, this application also provides an electronic device.
[0100] An electronic device may include at least one processor 401 and at least one memory 402 storing computer programs or instructions.
[0101] 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 this application.
[0102] 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.
[0103] The processor 401 reads and executes computer program instructions stored in the memory 402 to implement any of the oil pump speed control methods described in the above embodiments.
[0104] 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.
[0105] The communication interface 403 is mainly used to realize communication between various modules, units and / or devices in the embodiments of this application.
[0106] 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 Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel 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 (VESA) Local Bus (VLB) or other suitable buses, or a combination of two or more of these. Where appropriate, bus 410 may include one or more buses. Although specific buses are described and illustrated in the embodiments of this application, this application considers any suitable bus or interconnection.
[0107] The electronic device can execute the data processing method in the embodiments of this application, thereby realizing the oil pump speed control method described in any of Figures 1 to 4.
[0108] Furthermore, in conjunction with the oil pump speed control method in the above embodiments, this application embodiment can provide a computer-readable storage medium. This computer-readable storage medium stores program instructions; when executed by at least one processor, these program instructions implement any of the oil pump speed control methods described in the above embodiments.
[0109] It should be clarified that this application 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 this application 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 this application.
[0110] 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 application are programs or code segments used to perform the required tasks. 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 on 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.
[0111] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; 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.
[0112] 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.
[0113] The above description is merely a specific implementation of this application. 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 this application 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 this application, and these modifications or substitutions should all be covered within the protection scope of this application.
Claims
1. A method for controlling the speed of an oil pump, applied to a vehicle's main controller, wherein the main controller and the vehicle's oil pump controller are connected via hard-wired electrical connection, the method comprising: In response to 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 (S110). 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 (S120) 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 (S130).
2. The oil pump rotation speed control method according to claim 1, wherein The electrical signal includes a target level, which 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, wherein The step of obtaining the first target frequency based on the first target rotational speed output by the main controller includes: Determine 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 correspondence relationships between the preset speed range and the preset frequency; The preset frequency corresponding to the target speed range in the first correspondence is determined as the first target frequency.
4. The oil pump rotation speed control method according to claim 1, wherein 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 the second correspondence relationship, and the second correspondence relationship includes at least two correspondence relationships between the preset frequency range and the preset rotation speed; The preset rotational speed corresponding to the target frequency range in the second correspondence is determined as the second target rotational speed.
5. The oil pump rotation speed control method according to claim 4, wherein 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 at least two correspondences between 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.
6. The oil pump speed control method according to claim 1 further includes: The system detects whether there is a first receiving fault in the signal received by the main controller from the oil pump controller. In response to the existence of the first receiving 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 signal received by the oil pump controller from the main controller. In response to the existence of the second receiving fault, it determines that there is a communication fault in the CAN bus between the main controller and the oil pump controller.
7. An oil pump speed control device, comprising: The frequency acquisition module (1100) is configured to obtain a first target frequency based on the first target rotational speed output by the main controller in response to a communication failure on the CAN bus of the controller area network between the main controller and the oil pump controller. The signal transmission module (1200) is configured 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; The oil pump control module (1300) is configured to determine a second target frequency based on the electrical signal, determine a second target speed based on the second target frequency, and control the oil pump based on the second target speed.
8. An electronic device comprising at least one processor and at least one memory for communicatively connecting to the at least one processor; the at least one memory storing instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the oil pump speed control method according to any one of claims 1 to 6.
9. A computer-readable storage medium storing computer-executable instructions for causing a computer to perform the oil pump speed control method according to any one of claims 1 to 6.
10. A computer program product comprising computer-executable instructions, which, when executed by at least one processor, cause the at least one processor to perform the oil pump speed control method as described in any one of claims 1 to 6.