Oil pump rotating speed control method, device and equipment, medium and computer program product
By using the hard wire connection in the vehicle control system, transmitting the electrical signal generated by the main controller, the problem of the irritation of the oil pump speed caused by the CAN wire failure, and realizing the oil pump speed control under the communication failure.
Patent Information
- Application Number
- CN202411628108.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-14
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2044-11-14
AI Technical Summary
In the vehicle control system, the CAN line between the main controller and the oil pump controller fails to communicate, and the predetermined speed cannot be transmitted, and the speed of the oil pump cannot be controlled.
By setting a hard wire electrical connection between the main controller and the oil pump controller, the main controller outputs the first target speed to generate the first target frequency, and transmits the electrical signal to the oil pump controller through the hard wire. After receiving the electrical signal, the oil pump controller analyzes the second target frequency, converts it into the second target speed, and then controls the speed of the oil pump.
When the CAN line fails, the control of the oil pump speed through the hard line transmission electrical signal solves the problem of unprepared oil pump speed caused by communication failure.
Smart Images

Figure CN119333376A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of vehicle control technology, and in particular, to an oil pump speed control method, device, equipment, medium and computer program product. Background Art
[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). 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 CAN, the main controller and the oil pump controller may fail to communicate, 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 a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
[0004] The present application aims to at least solve the technical problems existing in the prior art. To this end, the present application proposes an oil pump speed control method, device, equipment, medium and computer program product, which can control the oil pump speed when the CAN between controllers fails and cannot transmit signals.
[0005] A first aspect of an embodiment of the present application provides an oil pump speed control method, which is applied to a main controller of a vehicle, wherein the main controller is electrically connected to an oil pump controller of the vehicle via a hard wire, and the method comprises:
[0006] When there is a communication failure in the controller area network bus CAN between the main controller and the oil pump controller, obtaining a first target frequency according to a first target speed output by the main controller;
[0007] triggering an electrical signal on the hardwire based on the first target frequency, and transmitting the electrical signal to the oil pump controller through the hardwire;
[0008] The oil pump controller determines a second target frequency according to the electrical signal, determines a second target speed according to the second target frequency, and controls the oil pump according to the second target speed.
[0009] The oil pump speed control method provided in the embodiment of the present application generates a first target frequency according to the first target speed output by the main controller after a CAN line fails, 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 therefrom, and convert it into a second target speed according to the second target frequency, and then control the oil pump speed according to the second target speed. This method solves the problem that when CAN cannot transmit signals between the main controller and the oil pump controller, the hard-line electrical signal is triggered by the first target frequency converted from the first target speed for signal transmission, and the oil pump speed is controlled based on the second target speed converted from the second target frequency parsed from the electrical signal.
[0010] A second aspect of an embodiment of the present application provides an oil pump speed control device, the device comprising:
[0011] A frequency acquisition module, configured to obtain a first target frequency according to a first target speed output by the main controller when a communication failure occurs in a controller area network bus CAN between the main controller and the oil pump controller;
[0012] a signal transmission module, configured 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 through a hard line, so that the oil pump controller can parse the electrical signal to obtain the target speed and control the oil pump according to the target speed.
[0014] The electronic device provided in the third aspect of an embodiment of the present application includes at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions that can be executed by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the oil pump speed control method described in the first aspect above.
[0015] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable 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 the embodiment of the present 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 executes the oil pump speed control method described in the first aspect above.
[0017] It can be understood that the beneficial effects of the second to fifth aspects compared with the related art are the same as the beneficial effects of the first aspect compared with the related art. Please refer to the relevant description in the first aspect, and no further details will be given here. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0019] Figure 1 is a flow chart of an embodiment of the oil pump speed control method provided by the present application;
[0020] Figure 2 is a schematic diagram of an embodiment of a communication link between a main controller and an oil pump controller provided by the present application;
[0021] FIG3( a ) is a schematic diagram of an embodiment provided by the present application in which a main controller sends a target speed to an oil pump controller based on a CAN line;
[0022] FIG3( b ) is a schematic diagram of an embodiment provided by the present application in which a main controller sends high and low levels generated based on a target frequency to an oil pump controller based on a hard line;
[0023] Figure 4 is a flow chart of another embodiment of an oil pump speed control method provided by the present application;
[0024] Figure 5 It is a structural schematic diagram of an embodiment of an oil pump speed control device provided by the present application;
[0025] Figure 6 It is a structural schematic diagram of an embodiment of an electronic device provided by the present application. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0027] It should be noted that, although the functional modules are divided in the device schematic diagram and the 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 above 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 those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0029] The following is an introduction to the current background:
[0030] The oil pump controller mainly receives the speed control instruction (or speed control instruction) of the main controller to the oil pump, which is transmitted through the CAN line, and then controls the oil pump to run at the speed indicated by the instruction according to the control instruction.
[0031] If the CAN line between the main controller and the oil pump controller fails, the main controller and the oil pump controller may have a communication failure, 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. Based on this, the embodiment of the present application provides an oil pump speed control method that can effectively solve the above problem.
[0032] like Figure 1 An embodiment of the present application provides an oil pump speed control method, which is applied to an oil pump control system of a vehicle. The oil pump control system may include a main controller, a controller area network bus (Controller Area Network, CAN), an oil pump controller, a hard line, etc. The main controller is electrically connected to the oil pump controller of the vehicle through a hard line and a CAN. The method includes steps S110 and S120:
[0033] Step S110, when there is a communication failure in the controller area network bus CAN between the main controller and the oil pump controller, a first target frequency is obtained according to a first target speed output by the main controller;
[0034] Step S120, triggering an electrical signal on the hard line based on the first target frequency, and transmitting the electrical signal to the oil pump controller through the hard line;
[0035] Step S130, determining a second target frequency according to the electrical signal through the oil pump controller, determining a second target speed according to the second target frequency, and controlling the oil pump according to the second target speed.
[0036] In this example, if Figure 2 , the oil pump controller and the main controller, the main controller can be the vehicle's whole controller, or it can be just the vehicle's engine controller (Engine Control Unit, ECU). Here, ECU is taken as an example. There are two communication links between the oil pump controller and the main controller. The first is the CAN line (two-way communication), and the other is a hard line, which is generally one-way communication. Here, only the one-way communication from the main controller to the oil pump controller is shown.
[0037] In the method, after a communication failure occurs in the CAN line between the main controller and the oil pump controller, the main controller sends a signal to the oil pump controller through hardware. Specifically, the main controller outputs a first target speed, and 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 analyzes the electrical signal to obtain a second target frequency, and then determines a second target speed based on the second target frequency. The oil pump controller then controls the speed according to the second target speed, thereby achieving control of the oil pump speed based on the hard line only when the CAN between the main controller and the oil pump controller cannot transmit signals due to a communication failure.
[0038] The above steps S110 and S120 are described in detail below:
[0039] In step S110, firstly, it is possible to detect whether there is a communication fault between the CAN between the main controller and the oil pump controller. The detection process 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 between the main controller and the oil pump controller, the main controller outputs the first target speed. The first target speed here can be triggered by the driver's command, or by the vehicle's main control chip or AI chip. For example, during adaptive cruising, if the road ahead is clear, the vehicle speed can be increased appropriately to maintain the set speed. Or, for example, in automatic driving, when AI detects an obstacle avoidance scenario that requires acceleration, the vehicle speed can be increased appropriately. Compared with the triggering method that relies solely on the driver, the present application can directly trigger the first target speed actively by the main controller.
[0041] After obtaining the first target speed output by the main controller, the corresponding first target frequency can be generated according to the first target speed. There are many ways to generate the first target frequency according to the first target speed, for example:
[0042] (1) Based on experience, the mapping relationship between the rotational speed and the frequency is set in advance, and the mapping relationship is stored in the database in the form of a key-value pair. When it is necessary to determine the first target frequency according to the first target rotational speed, the mapping relationship is obtained from the database, and the frequency corresponding to the first target rotational speed is found by searching the mapping relationship. The frequency is the first target frequency.
[0043] (2) According to the machine learning method, the neural network model is trained through the correspondence between multiple rotational speeds and frequencies actually collected. When used later, the target rotational 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 line based on the first target frequency and transmitted to the oil pump controller through the hard line. After a communication failure occurs in the CAN between the main controller and the oil pump controller, the main controller generates an electrical signal on the hard line according to the first target frequency, for example, the generated electrical signal is a digital electrical signal (a sequence of 0-1), and the target frequency is indicated by the digital electrical signal, that is, the target frequency is indicated by a combination of a 0-1 sequence.
[0045] In step S130, after the oil pump controller receives the electrical signal, the oil pump controller analyzes the electrical signal to obtain a second target frequency, determines a second target speed according to the second target frequency, and controls the oil pump according to 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 therein, and then uses the corresponding relationship between the second target frequency and the second target speed to obtain the second target speed, and controls the oil pump to operate at the second target speed.
[0047] It is worth mentioning that when there is no abnormality in the hard-wire transmission environment, the second target frequency is the same as the first target frequency. If the hard-wire transmission environment is abnormal (such as signal distortion during signal transmission), the second target frequency is different from the first target frequency. For example, the output second target frequency will be larger than the first target frequency. The first target frequency is quoted here to represent the frequency that triggers the hard-wire electrical signal, and the second target frequency represents the frequency parsed from the hard-wire electrical signal. They are expressed separately to distinguish the two frequencies.
[0048] Because there is a corresponding relationship between the first target speed and the second target speed and the corresponding first target frequency and second target frequency, when the second target frequency is different from the first target frequency, the first target speed and the second target speed may be the same or different. For example, when the first target frequency is the same as the second target frequency, the first target speed and the second target speed may be the same.
[0049] It is a preferred implementation that the second target speed is equal to the first target speed.
[0050] The method is to first generate a first target frequency according to a first target speed output by a main controller, use the first target frequency to generate an electrical signal on a hard line and transmit the electrical signal to an oil pump controller, and after the oil pump controller receives the electrical signal, a second target speed can be parsed therefrom (first the second target frequency is parsed, and then the second target speed is determined by the second target frequency), and the oil pump controller controls the oil pump to operate at the second target speed.
[0051] In some embodiments of the present 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, based on the first target frequency, the target level is generated by triggering on the hard line. In digital circuits, the voltage is represented by a logic level. The logic level includes high level and low level. The moment (moment) when the logic level changes from a low level (digital "0") to a high level (digital "1") is called a rising edge, and vice versa, a falling edge. The target level is a digital signal of 0-1. Here, the number of times from a high level to a low level and then back to a high level in a unit time is determined according to the first target frequency.
[0053] At present, there are a large number of oil pump controllers that cannot parse the 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 uses the first target frequency to generate high and low levels, so as to characterize the first target frequency by the switching frequency of the high level and the low level of the high and low levels per unit time. Since high and low levels are transmitted, and the high and low levels are continuous digital signals of 0-1, oil pump controllers that cannot parse hard-line analog values can accurately identify the frequency therein (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] As shown in Figure 3, Figure 3(a) is a schematic diagram of the main controller sending the speed to the oil pump controller based on the hard line based on the CAN line, and it directly sends an analog value. Figure 3(b) is a schematic diagram of the main controller sending the speed to the oil pump controller based on the hard line, where the frequency refers to the number of times from high level to low level and then back to high level, that is, the number of periodic repetitions of the signal. See the comparison between the high-frequency signal corresponding to the high speed and the low-frequency signal corresponding to the low speed in Figure 3(b).
[0056] In some embodiments, if the oil pump controller can accept analog values, the target frequency can be marked in the electrical signal, for example, an electrical signal containing 50 Hz is directly transmitted to the oil pump controller, and the oil pump controller can read the 50 Hz information from the electrical signal.
[0057] In some embodiments of the present application, obtaining the first target frequency according to the first target speed output by the main controller in step S110 includes:
[0058] Step S1110, determining a target speed interval to which the first target speed belongs, the target speed interval being a preset speed interval in a first corresponding relationship, the first corresponding relationship including a corresponding relationship between at least two preset speed intervals and preset frequencies;
[0059] Step S1120: determining the preset frequency corresponding to the target speed range in the first corresponding relationship as the first target frequency.
[0060] In this embodiment, the first corresponding relationship may be generated by the main controller or by other controllers, which is not limited here.
[0061] The first corresponding relationship includes at least two corresponding relationships between preset speed ranges and preset frequencies, for example:
[0062] The first preset speed range is: (0Rpm, 500Rpm], and the corresponding first preset frequency is: 0Hz, where Rpm and Hz are the units of speed and frequency respectively.
[0063] The second preset speed range is: (500Rpm, 1000Rpm], and the corresponding second preset frequency is: 5Hz.
[0064] The third preset speed range is: (1000Rpm, 2000Rpm], and the corresponding third preset frequency is: 10Hz.
[0065] If the first target speed is 2000 Rpm, the first target frequency corresponding to the first target speed is 10 Hz.
[0066] By constructing a mapping relationship between the speed range and the frequency, the corresponding first target frequency can be accurately selected for the first target speed.
[0067] It should be noted that the first corresponding relationship can be pre-stored in the database and called when needed.
[0068] Compared with other methods, this method is quick and effective, and it can judge the speed interval threshold value, reduce the frequency value setting and improve adaptability.
[0069] In some embodiments of the present application, when the first corresponding relationship is obtained, the first target speed can be matched with the first target frequency in the following manner:
[0070] According to the minimum value of each preset speed interval in the first corresponding relationship, the multiple preset speed intervals are sorted according to a preset rule to obtain a plurality of preset speed intervals arranged in sequence;
[0071] The preset speed interval ranked first among the multiple preset speed intervals is used as the current speed interval;
[0072] In the case where the preset rule is to sort from large to small, it is determined whether the first target speed is greater than the minimum value of the current speed interval. If the first target speed is greater than the minimum value of the current speed interval, the preset frequency corresponding to the current speed interval is used as the first target frequency; if the first target speed is less than or equal to the minimum value of the current speed interval, a preset speed interval adjacent to the current speed interval and sorted after the current speed interval among multiple preset speed intervals is used as the current speed interval, and the step of determining whether the first target speed is greater than the minimum value of the current speed interval is performed until the first target frequency is determined;
[0073] When the preset rule is to sort from small to large, determine whether the first target speed is less than the maximum value of the current speed interval. If the first target speed is less than the maximum value of the current speed interval, the frequency corresponding to the current speed interval is used as the first target frequency; if the first target speed is greater than or equal to the maximum value of the current speed interval, the preset speed interval adjacent to the current speed interval and sorted after the current speed interval in multiple preset speed intervals is used as the current speed interval, and the step of determining whether the first target speed is less than the maximum value of the current speed interval is executed until the first target frequency is determined.
[0074] In this embodiment, multiple preset speed intervals are sorted to obtain multiple preset speed intervals arranged in sequence. The sorting can be in ascending order or in descending order. For example, there are 5 arranged intervals, namely (3000Rpm, 3500Rpm], (2000Rpm, 3000Rpm], (1000Rpm, 2000Rpm], (500Rpm, 1000Rpm], (0, 500Rpm]; then (3000Rpm, 3500Rpm] is taken as the current speed interval, and then it is determined whether the first target speed is greater than the current speed interval (3000 Rpm, 3500Rpm], if it is greater than the minimum value of (3000Rpm, 3500Rpm], then the judgment is terminated, and the preset frequency corresponding to (3000Rpm, 3500Rpm] is used as the first target frequency; if it is less than, (2000Rpm, 3000Rpm] is used as the current speed range, and then it is determined 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], then the judgment is terminated, and (2000Rpm, 3000Rpm] is used as the preset frequency corresponding to (3000Rpm, 3500Rpm]; The preset frequency corresponding to (1000Rpm, 2000Rpm] is taken as the first target frequency; if it is less than, (1000Rpm, 2000Rpm] is taken as the current speed interval, and then it is determined whether the first target speed is greater than the minimum value of the current speed interval (1000Rpm, 2000Rpm]; if it is greater than the minimum value of (1000Rpm, 2000Rpm], the determination is terminated, and the preset frequency corresponding to (1000Rpm, 2000Rpm] is taken as the first target frequency; if it is less than, (500Rpm, 1000Rpm] is taken as the current speed interval, and then it is determined whether the first target speed is greater than the current speed interval (500Rpm, 1000Rpm] is the minimum value. If it is greater than the minimum value of (500Rpm, 1000Rpm], the judgment is terminated, and the preset frequency corresponding to (500Rpm, 1000Rpm] is used as the first target frequency; if it is less than, (0Rpm, 500Rpm] is used as the current speed range, and then it is determined whether the first target speed is greater than the minimum value of the current speed range (0Rpm, 500Rpm]; if it is greater than the minimum value of (0Rpm, 500Rpm], the judgment is terminated, and the preset frequency corresponding to (0Rpm, 500Rpm] is used as the first target frequency.
[0075] This embodiment sorts the multiple preset speed intervals according to the size of the minimum value of each preset speed interval to obtain a plurality of preset speed intervals arranged in sequence, and then matches the plurality of preset speed intervals arranged in sequence in turn until the preset speed interval to which the first target speed belongs is determined, and the corresponding first target frequency is matched. By dividing the multiple preset speed intervals and matching them in turn, the first target speed can be effectively matched with the corresponding first target frequency, and it is not easy to mismatch.
[0076] In other embodiments, sorting may not be performed, and matching may be performed directly in a plurality of preset speed ranges, and the first target speed may also be matched to the corresponding first target frequency.
[0077] In some embodiments of the present application, determining the second target rotation speed according to the second target frequency in step S130 includes:
[0078] Step S1310, determining a target frequency interval to which the second target frequency belongs, the target frequency interval being a preset frequency interval in a second corresponding relationship, the second corresponding relationship including a correspondence relationship between at least two preset frequency intervals and preset rotation speeds;
[0079] Step S1320: determine the preset frequency corresponding to the target frequency interval in the second corresponding relationship as the second target rotation speed.
[0080] Similar to the first corresponding relationship, the second corresponding relationship includes at least two corresponding relationships between preset frequency intervals and preset rotation speeds, for example:
[0081] The first preset frequency range is: (0,5Hz], and the corresponding first preset speed is: 500Rpm;
[0082] The second preset frequency range is: (5Hz, 10Hz], and the corresponding second preset speed is: 1000Rpm.
[0083] The third preset frequency range is: (10Hz, 20Hz], and the corresponding third preset speed is: 2000Rpm.
[0084] If the second target frequency is 18 Hz, the second target speed corresponding to the first target speed is 2000 Rpm. Similar to the above, the process of how to match the second target speed according to the second target frequency will not be described in detail here;
[0085] In this embodiment, the main controller can obtain the second corresponding relationship in advance, and the second corresponding relationship includes multiple preset frequency intervals and a preset speed corresponding to each preset frequency interval. The main controller then sends the second corresponding relationship to the oil pump controller in advance, and the oil pump controller stores it in a corresponding memory. In this way, after the oil pump controller obtains the frequency from the electrical signal, it matches the resolved second target frequency according to the second corresponding relationship, selects the frequency interval where the second target frequency is located from the multiple preset frequency intervals, and uses the preset speed corresponding to the selected preset frequency interval as the second target speed.
[0086] In some embodiments, the second corresponding relationship may also be sent to the oil pump controller in advance by other controllers, or burned in advance.
[0087] In some embodiments of the present application, there is a correspondence between the first target speed and the first target frequency in the first correspondence, and there is a correspondence between the second target frequency and the second target speed in the second correspondence. Due to the abnormal hard-wire transmission environment, the signal transmission is distorted or lost, which causes the deviation between the second target frequency and the first target frequency. The purpose of setting two correspondences in the present application is to reduce the error of the second target speed converted according to the second target frequency due to the existence of such deviation, that is, to reduce the error between the second target speed and the first target speed as much as possible and improve accuracy. For example, the first target speed is: 3500Rpm, then the first target frequency can be 50Hz, but the second target frequency may be 40Hz (due to distortion), then the second target speed corresponding to the second target frequency 40Hz in the second correspondence is preferably 3500Rpm, so that accurate control of the oil pump speed can be performed.
[0088] In some embodiments, the following relationship is set:
[0089] The ranges of at least two preset frequency intervals in the second corresponding relationship are continuous and non-overlapping; the ranges of at least two preset speed intervals in the first corresponding relationship are continuous and non-overlapping;
[0090] The target preset speed in the second corresponding relationship is the maximum value of the target preset speed interval in the first corresponding 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 corresponding relationship; the first corresponding relationship includes at least two corresponding relationships between preset speed intervals and preset frequencies, the interval ranges of at least two preset speed intervals are continuous and non-overlapping, and the target preset speed interval is the preset speed interval in the first corresponding relationship;
[0091] By setting the relationship between the first corresponding relationship and the second corresponding relationship 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 to ensure that the oil pump can provide sufficient power.
[0092] For specific examples, please refer to the introduction of the subsequent embodiments.
[0093] In some embodiments of the present application, the method further comprises:
[0094] detecting whether a first receiving fault exists in a CAN receiving signal sent by the oil pump controller, and in response to the first receiving fault existing, determining whether a communication fault exists in a controller area network bus CAN between the main controller and the oil pump controller;
[0095] and / or
[0096] It is detected whether the oil pump receiving signal sent by the oil pump controller to the main controller has a second receiving fault. In response to the second receiving fault, it is determined that a communication fault exists in the CAN between the main controller and the oil pump controller.
[0097] In this example, when the main controller detects that the CAN receives the signal sent by the oil pump controller and there is a first reception fault, the fault signal of the received signal is set to 1.
[0098] When it is detected that the oil pump receiving signal sent by the oil pump controller to the main controller has a second receiving fault, the oil pump receiving signal fault flag signal sent by the oil pump controller to the main controller is equal to 1.
[0099] When any of the above two fault signals is equal to 1, it indicates that there is a communication fault between the main controller and the oil pump controller.
[0100] The fault judgment logic provided by this embodiment is simple and easy to operate.
[0101] For ease of understanding, the following examples are provided. Figure 4 , provides the oil pump speed control method:
[0102] Step S910: The main controller detects a signal from the oil pump controller.
[0103] Step S920: When the signal of the oil pump controller is faulty or the oil pump receiving signal fault flag signal in the oil pump controller signal is equal to 1, the first target speed N of the oil pump set by the main controller is detected.
[0104] Step S930, calculate the first target frequency H: The first target frequency H can be calculated from the preset speed in the first corresponding relationship from large to small, or from small to large. The first corresponding relationship is set to make the oil pump controller receive more accurately and not easy to misjudge. The process of matching the first target frequency H corresponding to the first target speed N in the first corresponding relationship is as follows:
[0105] 1) If 3500Rpm≥N>3000Rpm, H=50Hz;
[0106] 2) Otherwise, if 3000Rpm≥N>2000Rpm, H=20Hz;
[0107] 3) Otherwise, if 2000Rpm≥N>1000Rpm, H=10Hz;
[0108] 4) Otherwise, if 1000Rpm≥N>500Rpm, H=5Hz;
[0109] 5) Otherwise, H = 0 Hz.
[0110] Step S940: The main controller triggers an electrical signal (ie, a target level) on the hard line according to the first target frequency.
[0111] Step S950: The oil pump controller parses the electrical signal to obtain a second target frequency Hign of a target level. It should be noted that the second target frequency Hign of a target level detected by the oil pump controller on the hard line may be lower than the first target frequency on the hard line input end, because the signal is easily distorted or lost when transmitted in the hard line.
[0112] Step S960: The oil pump controller calculates the second target speed Noil of the oil pump based on the second target frequency Hign and the second corresponding relationship, and uses the second corresponding relationship for comparison to avoid inaccurate frequency recognition. The specific matching process is as follows:
[0113] 1) If Hign = 50Hz, Noil = 3500Rpm;
[0114] 2) Otherwise, if Hign ≥ 20Hz, Noil = 3000Rpm;
[0115] 3) Otherwise, if Hign≥10Hz, Noil=2000Rpm;
[0116] 4) Otherwise, if Hign≥5Hz, Noil=1000Rpm;
[0117] 5) Otherwise Noil=500Rpm.
[0118] The second target speed selected here is output according to the maximum value. 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 requirements to 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 fails, 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 line, and transmits the signal. After receiving the electrical signal, the oil pump controller can parse the second target speed therefrom, and then control the oil pump speed based on the second target speed. This method solves the problem of achieving control of the oil pump speed when signals cannot be transmitted due to a CAN failure between controllers.
[0121] At present, there are a large number of oil pump controllers that cannot parse the analog values in hard-wired signals, which will result in the hard-wired signals being unable to be parsed and the information being unable to be accurately received. The method provided in this embodiment generates a first target frequency based on the first target speed output by the main controller, and uses the frequency to generate high and low levels, so as to characterize the first target frequency by the switching frequency of the high and low levels of the high and low levels in a unit time. Since the high and low levels are transmitted, and the high and low levels are continuous digital signals of 0-1, the oil pump controllers that cannot parse the hard-wired analog values can accurately identify the frequency of the electrical signal without changing the structure, thereby realizing the parsing of the second target frequency into the corresponding second target speed.
[0122] like Figure 5 An embodiment of the present 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 according to the first target speed output by the main controller when there is a communication failure in the controller area network bus CAN between the main controller and the oil pump controller;
[0124] The signal transmission module 1200 is used to trigger an electrical signal on the hard line based on the first target frequency, and transmit the electrical signal to the oil pump controller through the hard line;
[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 line, so that the oil pump controller can obtain the target speed according to 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 and the above-mentioned oil pump speed control method are based on the same inventive concept, the corresponding contents in the embodiment of the oil pump speed control method are also applicable to the embodiment of this device and will not be described in detail here.
[0127] like Figure 6 Based on the same inventive concept, an embodiment of the present application also provides an electronic device.
[0128] The electronic device 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), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.
[0130] The memory 402 may include a large capacity memory for data or instructions. For example, but not limitation, the memory 402 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 402 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 402 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 402 is a non-volatile solid-state memory. The memory may include a read-only memory (ROM), a random access memory (RAM), a disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, typically, the 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-mentioned embodiments.
[0131] The processor 401 reads and executes computer program instructions stored in the memory 402 to implement any one of the oil pump speed control methods in the above embodiments.
[0132] In one example, the electronic device may further include a communication interface 403 and a bus 410. The processor 401, the memory 402, and the communication interface 403 are connected via the bus 410 and communicate with each other.
[0133] The communication interface 403 is mainly used to implement the communication between the modules, devices, units and / or devices in the embodiment of the present invention.
[0134] Bus 410 includes hardware, software or both, and the parts of electronic equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 410 may include one or more buses. Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection.
[0135] The electronic device can execute the data processing method in the embodiment of the present invention, thereby realizing Figure 1 Any method of controlling the speed of an oil pump as described.
[0136] In addition, in combination with the oil pump speed control method in the above embodiment, the embodiment of the present invention can provide a readable storage medium to implement. The readable storage medium stores program instructions; when the program instructions are executed by the processor, any one of the oil pump speed control methods in the above embodiment is implemented.
[0137] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is 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, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.
[0138] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal 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, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0139] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention 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 from the embodiments, or several steps can be performed simultaneously.
[0140] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.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 can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.
[0141] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.
Claims
1. A method for controlling oil pump speed, characterized in that: A main controller applied to a vehicle, wherein the main controller is electrically connected to an oil pump controller of the vehicle via a hard wire, and the method comprises: In the case that a communication failure occurs in a controller area network bus CAN between the main controller and the oil pump controller, a first target frequency is obtained according to a first target speed output by the main controller; triggering an electrical signal on the hardwire based on the first target frequency, and transmitting the electrical signal to the oil pump controller through the hardwire; The oil pump controller determines a second target frequency according to the electrical signal, determines a second target speed according to the second target frequency, and controls the oil pump according to the second target speed.
2. The oil pump speed control method according to claim 1, characterized in that: The electrical signal includes a target level, wherein the target level includes a high level and a low level, and a switching frequency between the high level and the low level within a unit time is determined by the first target frequency.
3. The oil pump speed control method according to claim 1, characterized in that: The step of obtaining a first target frequency according to the first target rotation speed output by the main controller includes: Determine a target speed interval to which the first target speed belongs, the target speed interval being a preset speed interval in a first corresponding relationship, the first corresponding relationship including a correspondence relationship between at least two preset speed intervals and preset frequencies; The preset frequency corresponding to the target speed range in the first corresponding relationship is determined as the first target frequency.
4. The oil pump speed control method according to claim 1, characterized in that: The determining the second target rotation speed according to the second target frequency includes: Determine a target frequency interval to which the second target frequency belongs, where the target frequency interval is a preset frequency interval in a second corresponding relationship, where the second corresponding relationship includes a correspondence between at least two preset frequency intervals and preset rotation speeds; The preset frequency corresponding to the target frequency interval in the second corresponding relationship is determined as the second target speed.
5. The oil pump speed control method according to claim 4, characterized in that: The interval ranges of at least two preset frequency intervals in the second corresponding relationship are continuous and non-overlapping; The target preset speed in the second corresponding relationship is the maximum value of the target preset speed range in the first corresponding relationship, 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 corresponding relationship; the first corresponding relationship includes at least two corresponding relationships between preset speed ranges and preset frequencies, the ranges of the at least two preset speed ranges are continuous and non-overlapping, and the target preset speed range is the preset speed range in the first corresponding relationship; The first target speed belongs to one of the preset speed intervals in the first corresponding relationship, and a preset frequency corresponding to the preset speed interval 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, characterized in that: The method further comprises: detecting whether the CAN receives a signal sent by the oil pump controller and whether there is a first reception fault, and in response to the first reception fault, determining that there is a communication fault on a controller area network bus CAN between the main controller and the oil pump controller; and / or It is detected whether the oil pump receiving signal sent by the oil pump controller to the main controller has a second receiving fault, and in response to the existence of the second receiving fault, it is determined that the CAN between the main controller and the oil pump controller has a communication fault.
7. An oil pump speed control device, characterized in that: The device comprises: A frequency acquisition module, configured to obtain a first target frequency according to a first target speed output by the main controller when a communication failure occurs in a controller area network bus CAN between the main controller and the oil pump controller; a signal transmission module, configured 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; 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 through a hard line, so that the oil pump controller can parse the electrical signal to obtain the target speed and control the oil pump according to the target speed.
8. An electronic device, characterized in that: It includes at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions that can be executed by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the oil pump speed control method described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the oil pump speed control method according to any one of claims 1 to 6.
10. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes an oil pump speed control method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Work vehicle and work vehicle control method
CN102483056A
Oil maintenance strategy for electrified vehicles
CN106541939A
Cooling pump control method
CN109681416A
Vehicle remote driving system established through the Internet of Things by connecting a primary wireless device and a secondary wireless device
CN111464978A
Hybrid gearbox drive motor cooling system and control method
CN111817503A
Cited By
Oil pump rotation speed control method and apparatus, device, medium, and computer program product
WO2026103894A1