Harvester oil tank fuel oil liquid level identification method, device, equipment and medium
By obtaining and updating the resistance value of the harvester fuel level identification device and combining it with the wave-breaking plate design, the problem of inaccurate identification of the harvester fuel level in complex working conditions is solved, and the identification accuracy and anti-interference performance are improved.
Patent Information
- Application Number
- CN202510843408.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-23
- Publication Date
- 2025-09-19
AI Technical Summary
The existing harvester fuel level identification method is easily affected by vibration, temperature changes and tank shaking under complex working conditions, resulting in inaccurate measurement results and limited low-pass filtering effect.
By obtaining multiple resistance values of the fuel level in the fuel tank, the minimum resistance value is used to determine the initial liquid level recognition result, and the recognition result is updated by the mode percentage within the subsequent set time. The wave-breaking plate design is combined to reduce shaking interference.
It achieves the improvement of fuel liquid accuracy and anti-interference performance without increasing hardware cost, improves fuel liquid accuracy and anti-interference performance, and adapts to the recognition accuracy of different working conditions.
Smart Images

Figure CN120668233A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of agricultural machinery processing, and in particular to a method, device, equipment and medium for identifying the fuel level in a harvester tank. Background Art
[0002] Fuel level accuracy is crucial in harvester operations. It not only impacts the machine's proper operation and efficiency but also directly impacts fuel cost control and equipment maintenance. Currently, harvesters typically use float sensors to identify fuel tank levels. These sensors are susceptible to vibration, temperature fluctuations, and tank sway under complex operating conditions, leading to inaccurate measurement results. To mitigate fluctuations, low-pass filtering is often used to process fuel levels. However, the complex operating conditions of harvesters limit the effectiveness of low-pass filtering. Therefore, accurately identifying fuel tank levels and improving interference resistance have become pressing challenges. Summary of the Invention
[0003] The technical problem to be solved by the present invention is to provide a method, device, equipment and medium for identifying the fuel level in the fuel tank of a harvester, aiming to solve at least one of the above technical problems.
[0004] In a first aspect, the present invention solves the above-mentioned technical problem with the following technical solution: a method for identifying the fuel level in a harvester tank, the method comprising: Obtaining a plurality of first resistance values corresponding to the fuel level in the fuel tank of the harvester within a first set time; determining a current liquid level recognition result based on a minimum first resistance value among all first resistance values; Obtaining a plurality of second resistance values corresponding to each second set time after the first set time; The current liquid level recognition result is updated according to all second resistance values corresponding to each second set time.
[0005] The beneficial effect of the present invention is that after determining the current liquid level recognition result based on multiple first resistance values corresponding to the first set time, the current liquid level recognition result is updated according to all second resistance values corresponding to each second set time, which can improve recognition accuracy and anti-interference performance.
[0006] On the basis of the above technical solution, the present invention can also be improved as follows.
[0007] Furthermore, the method further comprises: Performing percentage conversion processing on each first resistance value among all first resistance values to obtain a first percentage corresponding to each first resistance value; Determining a current liquid level recognition result based on a minimum first resistance value among all first resistance values includes: A current liquid level recognition result is determined based on the minimum first percentage among all the first percentages.
[0008] Furthermore, the method further comprises: The current liquid level identification result is uploaded to the harvester's instrument via the CAN bus for display.
[0009] Furthermore, the above-mentioned updating of the current liquid level recognition result according to all the second resistance values corresponding to each second set time includes: Performing percentage conversion processing on each second resistance value among all second resistance values corresponding to each second set time to obtain a second percentage corresponding to each second resistance value; Performing a mode value processing on all second percentages corresponding to each second set time to obtain the mode percentage among all second percentages; When the corresponding majority percentage within any second set time exceeds the set percentage, the current liquid level recognition result is updated based on the majority percentage.
[0010] Furthermore, the method further comprises: When the corresponding majority percentage within any second set time does not exceed the set percentage, the current liquid level recognition result is not updated.
[0011] In a second aspect, in order to solve the above technical problems, the present invention further provides a fuel level identification device for a harvester tank, the device comprising: A first acquisition module is used to obtain multiple first resistance values corresponding to the fuel level in the fuel tank of the harvester within a first set time; an identification module is used to determine a current liquid level identification result based on a minimum first resistance value among all the first resistance values; The second acquisition module is used to obtain multiple second resistance values corresponding to each second set time after the first set time; the update module is used to update the current liquid level recognition result according to all the second resistance values corresponding to each second set time.
[0012] In the third aspect, in order to solve the above-mentioned technical problems, the present invention also provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and runnable on the processor. When the processor executes the computer program, the harvester tank fuel level identification method of the present application is implemented.
[0013] In a fourth aspect, in order to solve the above-mentioned technical problems, the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the harvester tank fuel level identification method of the present application is implemented.
[0014] In a fifth aspect, in order to solve the above-mentioned technical problem, the present invention further provides a harvester, which includes a harvester tank fuel level identification device as described in the second aspect.
[0015] Additional aspects and advantages of the present application will be given in part in the following description, which will become apparent from the following description, or will be learned through practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments of the present invention.
[0017] Figure 1 A schematic flow chart of a method for identifying the fuel level in a harvester tank provided by one embodiment of the present invention; Figure 2 A schematic flow chart of another method for identifying the fuel level in a harvester tank provided by one embodiment of the present invention; Figure 3 A schematic structural diagram of a fuel level identification device for a harvester tank provided by one embodiment of the present invention; Figure 4 The present invention provides a schematic structural diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0018] The principles and features of the present invention are described below. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.
[0019] The following describes in detail the technical solution of the present invention and how the technical solution of the present invention solves the above-mentioned technical problems using specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The following embodiments of the present invention are described in conjunction with the accompanying drawings.
[0020] The solution provided by the embodiment of the present invention can be applied to any application scenario where the fuel level of the fuel tank in the harvester needs to be identified. The solution provided by the embodiment of the present invention can be executed by the vehicle controller on the harvester.
[0021] The embodiment of the present invention provides a possible implementation method, such as Figure 1 As shown in FIG, a flowchart of a method for identifying the fuel level in a harvester tank is provided. The method can be executed by the vehicle controller on the harvester. For the convenience of description, the method provided by the embodiment of the present invention will be described below using the vehicle controller on the harvester as an example of the execution body. Figure 1 As shown in the flowchart, the method may include the following steps: S10, obtaining a plurality of first resistance values corresponding to the fuel level in the fuel tank of the harvester within a first set time; S20, determining a current liquid level recognition result based on a minimum first resistance value among all first resistance values; S30, obtaining a plurality of second resistance values corresponding to each second set time after the first set time; S40, updating the current liquid level recognition result according to all second resistance values corresponding to each second set time.
[0022] Through the method of the present invention, after determining the current liquid level recognition result based on multiple first resistance values corresponding to the first set time, the current liquid level recognition result is updated according to all second resistance values corresponding to each second set time, which can improve recognition accuracy and anti-interference performance.
[0023] The present invention is further described below with reference to the following specific embodiments. Currently, high-precision sensors are often used to improve fuel level accuracy, mitigating the impact of environmental factors. This, however, increases costs. The present invention provides a method for identifying fuel levels in a harvester's fuel tank. This method aims to improve fuel level accuracy without increasing hardware costs, addressing the problem of abnormal fuel level fluctuations caused by the harvester's complex operating conditions and tank sway.
[0024] Based on this, the purpose of the present invention is to overcome the shortcomings of the existing technology and provide a method for identifying the fuel level of a harvester. This method takes the minimum value of the fuel level percentage collected within the first set time after the vehicle is powered on, and then takes the mode value of the fuel level percentage collected within the second set time, thereby solving the problem of abnormal fuel level fluctuations caused by the shaking of the fuel tank under complex working conditions of the harvester.
[0025] Specifically, in this embodiment, a method for identifying the fuel level in a harvester tank may include the following steps: S10, obtaining a plurality of first resistance values corresponding to the fuel level in the fuel tank of the harvester within a first set time; The plurality of first resistance values may be obtained based on a fuel level sensor provided in the harvester. After the harvester is powered on, the fuel level sensor may be controlled to obtain the plurality of first resistance values.
[0026] Optionally, the above-mentioned vehicle controller is a PLC series controller or an STM32 series controller.
[0027] Optionally, the fuel level collector is a float-type fuel level sensor, which is low in cost.
[0028] Optionally, the fuel level collector may also be a high-precision fuel level sensor, which can reduce the impact of environmental factors on sensor acquisition and improve system stability.
[0029] Optionally, after obtaining the multiple first resistance values, the multiple first resistance values may be stored in array A in chronological order of acquisition time, or the multiple first resistance values may be stored in array A and then sorted in chronological order of acquisition time.
[0030] S20, determining a current liquid level recognition result based on a minimum first resistance value among all first resistance values; The liquid level recognition result corresponding to the minimum first resistance value is used as the current liquid level recognition result, which has high accuracy.
[0031] Optionally, one implementation of the above S20 is: S201, performing percentage conversion processing on each first resistance value among all first resistance values to obtain a first percentage corresponding to each first resistance value; S202: Determine a current liquid level recognition result based on the minimum first percentage among all first percentages, that is, use the liquid level recognition result corresponding to the minimum first percentage as the current liquid level recognition result.
[0032] Alternatively, if all first resistance values are stored in array A, the minimum first percentage may be selected from array A.
[0033] Optionally, the method for obtaining the minimum first percentage in array A includes but is not limited to traversing all elements in array A, and eliminating non-minimum first percentages one by one by comparing the sizes of adjacent elements until the minimum first percentage is found.
[0034] Optionally, after obtaining the current level recognition result, the current level recognition result can be uploaded to the harvester's instrument via the CAN bus for display. The instrument can respond promptly to the fuel level update by the normal controller with low latency.
[0035] In order to accurately display the current liquid level identification result, the above-mentioned first setting time should be less than the instrument's own self-test startup time.
[0036] S30, obtaining a plurality of second resistance values corresponding to each second set time after the first set time; Optionally, after obtaining multiple second resistance values corresponding to a second set time each time, all second resistance values corresponding to the second set time may be stored in array B.
[0037] S40, updating the current liquid level recognition result according to all second resistance values corresponding to each second set time.
[0038] Optionally, an implementation of the above S40 is: For all second resistance values corresponding to any second set time, the current liquid level recognition result is updated based on the mode of all second resistance values.
[0039] For all the second resistance values corresponding to any second set time, an implementation method of updating the current liquid level recognition result based on the mode of all the second resistance values is as follows: S401, performing percentage conversion processing on each second resistance value among all second resistance values corresponding to the second set time to obtain a second percentage corresponding to each second resistance value; S402, performing a mode processing on all second percentages corresponding to the second set time to obtain a mode percentage among all second percentages; S403: When the majority percentage corresponding to the second set time exceeds the set percentage, the current liquid level recognition result is updated based on the majority percentage. In other words, the liquid level recognition result corresponding to the majority percentage exceeding the set percentage is used as the latest current liquid level recognition result.
[0040] Optionally, the method further includes: S404: When the corresponding majority percentage within any second set time does not exceed the set percentage, the current liquid level recognition result is not updated.
[0041] If the multiple second resistance values corresponding to each second set time acquired each time are stored in array B, the current liquid level recognition result can be updated based on all the second resistance values in array B.
[0042] The mode percentage in array B can be adjusted and displayed according to different fuel tanks and different working conditions, and has high adaptability to working conditions.
[0043] Optionally, the method for obtaining the mode percentage in array B includes but is not limited to traversing all elements in the array, counting the number of occurrences of each element, comparing and recording the element with the most occurrences and the number of occurrences, and determining the mode percentage.
[0044] Optionally, a wave-breaking plate can be added to the fuel tank to effectively reduce the shaking of the fuel level and enhance the anti-interference ability caused by the shaking of the fuel tank.
[0045] Optionally, the method further includes: S21, determining the upper surface of the fuel tank based on the current liquid level recognition result, and calculating the risk recognition distance between the upper surface of the fuel tank and the highest liquid level surface of the fuel tank; S22, judging whether there is a fuel sloshing noise risk based on the risk identification distance; The area corresponding to the fuel sloshing noise risk is the area in the fuel tank where the possibility of oil impact is high. In this embodiment, the distance between the upper surface of the fuel tank and the highest liquid level of the fuel tank is used as the judgment standard for risk identification.
[0046] In S22, judging whether there is a fuel sloshing noise risk based on the risk identification distance includes: S221: When the vertical distance is less than a certain value, there is a risk of fuel sloshing noise; S222. When the vertical distances are all greater than or equal to a specific value, there is no risk of fuel sloshing noise.
[0047] Among them, the specific value is preferably 25 mm, and includes the page immersed in oil. That is, when the vertical distance in the risk identification distance obtained by the above analysis is less than the specific value of 25 mm, it indicates that there is a risk of fuel sloshing noise in the fuel tank; conversely, when the vertical distances in the risk identification distance obtained by the above analysis are all greater than or equal to the specific value of 25 mm, it indicates that there is no risk of fuel sloshing noise in the fuel tank.
[0048] The above steps have identified whether the fuel tank design has a risk of fuel sloshing noise. Based on the identification results, the following steps can be selectively performed: If a fuel sloshing noise risk is identified, proceed to the risk control step S23 below to complete the design of the internal wave-breaking plate of the fuel tank to effectively control the existing risk. Conversely, if no risk is found after analysis, the design is proven to be good and there is no need to perform the risk control step S23 below. This completes the identification and control of the entire fuel sloshing noise risk.
[0049] S23. When there is a risk of fuel sloshing noise, perform risk control.
[0050] When there is a risk of fuel sloshing noise, reasonable design improvements can be made based on existing analysis to shift risk control forward, effectively avoid the occurrence of risks, and thus save later R&D and improvement costs. When there is a risk of fuel sloshing noise, the risk control step S23 includes: S231. Divide the fuel tank into a risk area and a safety area according to the risk identification distance; The risk zone refers to areas with a high probability of being impacted by oil during fuel tank sloshing. Conversely, the safe zone refers to areas with a very low probability of being impacted by oil. The risk of fuel sloshing noise arises from the presence of risk zones in the fuel tank. This is when the harvester brakes, turns, or drives in a creeping motion. This risk zone causes liquid fuel to strike the inner wall of the fuel tank or its internal components, producing a crashing sound. Therefore, effective risk control requires identifying the risk and safe zones of the fuel tank. Only then can appropriate noise reduction measures be implemented in these risk zones to effectively control the risk of fuel sloshing noise.
[0051] Optionally, the step S231 of dividing the fuel tank into a risk zone and a safety zone according to the risk identification distance includes: S2311. Classify the fuel tank area where the vertical distance is less than a specific value as a risk area; S2312. The fuel tank area with a vertical distance greater than or equal to a specific value is divided into a safety zone.
[0052] Among them, the specific numerical value used in the above-mentioned division of the fuel tank risk zone and the safety zone is consistent with the specific numerical value of 25mm used in step S22 to determine whether the fuel tank has the risk of fuel sloshing noise, and is used to effectively and accurately identify the risk zone and the safety zone of the fuel tank, providing necessary preparation for subsequent risk control.
[0053] S232. Design wave-breaking plates based on risk areas and safety areas; wave-breaking plates include blocking plates, barrier plates and welded columns.
[0054] Among them, the main function of the wave-breaking plate is to reduce the kinetic energy generated by the fuel liquid when the car is in operation, reduce the relative movement speed of the liquid, thereby reducing the impact of the liquid on the surface of the fuel tank and the sound generated by the liquid's own collision.
[0055] To effectively control the risk of fuel sloshing noise, this example still adopts the most widely used and effective control method currently available: rationally designing and arranging wave-breaking panels within the fuel tank to reduce noise. Based on the risk zone and safety zone, step S232 of designing the wave-breaking panels includes: S2321. Install a blocking plate in the risk zone; the gap between the blocking plate and the upper surface of the fuel tank shall not be less than a specified value; the blocking plate is used to lock the oil directly below the risk zone; Among them, the blockade plate refers to a wave-breaking plate used to control the oil shaking directly below the risk area of the fuel tank. The gap between it and the risk area must be greater than or equal to the specific value of 25mm used for identifying the risk area mentioned above, so as to effectively control the oil shaking in the risk area and achieve the effect of effectively controlling the oil shaking in the risk area.
[0056] S2322. Install barrier plates between the risk zone and the safety zone. The barrier plates are connected to the blockade plates to control the flow of oil from the safety zone to the risk zone. Among them, the barrier plate refers to a wave-breaking plate that controls the flow of oil from the safe area to the risk area. It is integrally formed with the blockade plate and has no shape restriction. It is used to reasonably divide or block the risk area and the safe area of the fuel tank to control the unnecessary flow of oil in the fuel tank, thereby effectively avoiding the fuel shaking noise caused by the large-scale flow of oil in the fuel tank.
[0057] S2323. Evenly distributed welding columns are set on the wave-breaking plate; the welding columns are used to weld the blocking plate and the baffle plate to the inside of the fuel tank.
[0058] Among them, there are generally 2-3 welding columns, all distributed on the wave-breaking plate to fix the designed wave-breaking plate in the fuel tank. While ensuring the stability of the wave-breaking plate in the fuel tank, it can also increase the service life of the wave-breaking plate, thereby achieving the effect of long-term and effective control of the risk of fuel sloshing noise.
[0059] In order to better illustrate and understand the principle of the method provided by the present invention, the solution of the present invention is described below in conjunction with an optional specific embodiment. It should be noted that the specific implementation of each step in this specific embodiment should not be understood as limiting the solution of the present invention. On the basis of the principle of the solution provided by the present invention, other implementations that can be thought of by those skilled in the art should also be considered as within the scope of protection of the present invention.
[0060] See also Figure 2 The fuel level identification method of a harvester tank provided in this embodiment may include the following steps: (1) after the vehicle is powered on, the fuel level resistance value (a plurality of first resistance values) is fixedly collected every cycle (first set time) through the vehicle controller and the fuel level sensor and is converted into a percentage.
[0061] (2) The collected fuel level percentages within time T1 (the first set time) are stored in array A, and the fuel level percentages in array A are sorted.
[0062] (3) After array A is sorted, the minimum value (minimum fuel level percentage) in array A is taken as the current fuel level percentage value (current level identification result) and uploaded to the instrument through the CAN bus for display.
[0063] (4) The vehicle controller subsequently stores the fuel level percentage (second percentage) collected within T2 time (second set time) into array B, and performs mode processing on the fuel level percentage in array B.
[0064] (5) After the mode of array B is taken, it is determined whether the mode fuel level percentage P in array B exceeds the set percentage. When the percentage P exceeds the set percentage, the current fuel level percentage (current level identification result) is updated and displayed; otherwise, the previous value (current level identification result) is maintained.
[0065] Through the solution of the present invention, the present invention has the following beneficial effects compared with the prior art: 1. The fuel level processing algorithm adopted by the present invention improves the accuracy of fuel level recognition while requiring low-cost fuel level sensors. At the same time, the mode percentage P in the algorithm can be adjusted and displayed according to different fuel tanks and different operating conditions, and has high adaptability to operating conditions.
[0066] 2. This invention can improve the accuracy of fuel level identification for harvesters by designing a fuel level identification method for harvesters, and solve the problem of abnormal fuel level fluctuation caused by fuel tank shaking under complex working conditions of harvesters.
[0067] Based on Figure 1 Based on the same principle as the method shown in , the embodiment of the present invention also provides a harvester tank fuel level identification device 20, such as Figure 3 As shown in , the harvester tank fuel level identification device 20 may include a first acquisition module 210, an identification module 220, a second acquisition module 230 and an update module 240, wherein: A first acquisition module 210 is configured to acquire a plurality of first resistance values corresponding to the fuel level in the fuel tank of the harvester within a first set time; an identification module 220 for determining a current liquid level identification result based on a minimum first resistance value among all first resistance values; The second acquisition module 230 is configured to acquire a plurality of second resistance values corresponding to each second set time after the first set time; The updating module 240 is configured to update the current liquid level recognition result according to all second resistance values corresponding to each second set time.
[0068] Optionally, the device further comprises: a percentage conversion processing module, configured to perform percentage conversion processing on each first resistance value among all first resistance values to obtain a first percentage corresponding to each first resistance value; The update module 240 is specifically configured to: A current liquid level recognition result is determined based on the minimum first percentage among all the first percentages.
[0069] Optionally, the device further comprises: The display module is used to upload the current liquid level identification result to the harvester's instrument via the CAN bus for display.
[0070] Optionally, when updating the current liquid level recognition result according to all the second resistance values corresponding to each second set time, the updating module 240 is specifically configured to: Performing percentage conversion processing on each second resistance value among all second resistance values corresponding to each second set time to obtain a second percentage corresponding to each second resistance value; Performing a mode value processing on all second percentages corresponding to each second set time to obtain the mode percentage among all second percentages; When the corresponding majority percentage within any second set time exceeds the set percentage, the current liquid level recognition result is updated based on the majority percentage.
[0071] Optionally, the device further comprises: The non-processing module is used to not update the current liquid level recognition result when the corresponding mode percentage within any second set time does not exceed the set percentage.
[0072] The harvester tank fuel level identification device of the embodiment of the present invention can execute the harvester tank fuel level identification method provided by the embodiment of the present invention, and its implementation principle is similar. The actions performed by each module and unit in the harvester tank fuel level identification device in each embodiment of the present invention correspond to the steps in the harvester tank fuel level identification method in each embodiment of the present invention. For the detailed functional description of each module of the harvester tank fuel level identification device, please refer to the description of the corresponding harvester tank fuel level identification method shown in the previous text, which will not be repeated here.
[0073] Among them, the above-mentioned harvester tank fuel level identification device can be a computer program (including program code) running in a computer device, for example, the harvester tank fuel level identification device is an application software; the device can be used to execute the corresponding steps in the method provided in the embodiment of the present invention.
[0074] In some embodiments, the harvester tank fuel level identification device provided by the embodiment of the present invention can be implemented by a combination of software and hardware. As an example, the harvester tank fuel level identification device provided by the embodiment of the present invention can be a processor in the form of a hardware decoding processor, which is programmed to execute the harvester tank fuel level identification method provided by the embodiment of the present invention. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs) or other electronic components.
[0075] In other embodiments, the fuel level identification device for the harvester tank provided by the embodiment of the present invention can be implemented in a software manner. Figure 3 A harvester tank fuel level identification device stored in a memory is shown, which can be software in the form of a program and plug-in, and includes a series of modules, including a first acquisition module 210, an identification module 220, a second acquisition module 230 and an update module 240, for implementing the harvester tank fuel level identification method provided by an embodiment of the present invention.
[0076] The modules involved in the embodiments of the present invention may be implemented in software or hardware, wherein the name of a module does not necessarily limit the module itself.
[0077] Based on the same principle as the method shown in the embodiments of the present invention, an electronic device is also provided in the embodiments of the present invention, which may include but is not limited to: a processor and a memory; the memory is used to store computer programs; the processor is used to execute the method shown in any embodiment of the present invention by calling the computer program.
[0078] In an alternative embodiment, an electronic device is provided, such as Figure 4 As shown, Figure 4The electronic device 4000 shown includes: a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, for example, via a bus 4002. Optionally, the electronic device 4000 may further include a transceiver 4004, which can be used for data exchange between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the number of transceivers 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present invention.
[0079] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the present disclosure. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0080] Bus 4002 may include a path for transmitting information between the above components. Bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. Bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.
[0081] The memory 4003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.
[0082] The memory 4003 is used to store application code (computer program) for executing the solution of the present invention, and is controlled by the processor 4001. The processor 4001 is used to execute the application code stored in the memory 4003 to implement the content shown in the above method embodiment.
[0083] Among them, the electronic device can also be a terminal device, Figure 4 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present invention.
[0084] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer-readable storage medium is run on a computer, the computer can execute the corresponding contents of the aforementioned method embodiment.
[0085] According to another aspect of the present invention, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various implementations described above.
[0086] Computer program code for performing the operations of the present invention may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0087] It should be understood that the flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the methods and computer program products according to various embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or can be implemented using a combination of dedicated hardware and computer instructions.
[0088] The computer-readable storage medium provided by the embodiments of the present invention may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or device.
[0089] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.
[0090] The above description is merely a preferred embodiment of the present invention and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present invention is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in the present invention.
Claims
1. A method for identifying the fuel level in a harvester tank, characterized in that: The following steps are involved: Obtaining a plurality of first resistance values corresponding to the fuel level in the fuel tank of the harvester within a first set time; determining a current liquid level recognition result based on a minimum first resistance value among all first resistance values; Acquire a plurality of second resistance values corresponding to each second set time after the first set time; The current liquid level recognition result is updated according to all the second resistance values corresponding to each second set time.
2. The method according to claim 1, characterized in that The method further comprises: Performing percentage conversion processing on each of all first resistance values to obtain a first percentage corresponding to each first resistance value; The determining of the current liquid level recognition result based on the minimum first resistance value among all the first resistance values includes: A current liquid level recognition result is determined based on the minimum first percentage among all the first percentages.
3. The method according to claim 1, characterized in that The method further comprises: The current liquid level identification result is uploaded to the instrument of the harvester via the CAN bus for display.
4. The method according to any one of claims 1 to 3, characterized in that The updating of the current liquid level recognition result according to all the second resistance values corresponding to each second set time includes: Performing percentage conversion processing on each second resistance value among all second resistance values corresponding to each second set time to obtain a second percentage corresponding to each second resistance value; Performing a mode value processing on all second percentages corresponding to each second set time to obtain the mode percentage among all second percentages; When the corresponding majority percentage within any second set time exceeds the set percentage, the current liquid level recognition result is updated based on the majority percentage.
5. The method according to claim 4, characterized in that The method further comprises: When the corresponding mode percentage within any second set time does not exceed the set percentage, the current liquid level recognition result is not updated.
6. A fuel level identification device for a harvester tank, characterized in that: include: A first acquisition module is used to obtain a plurality of first resistance values corresponding to the fuel level in the fuel tank of the harvester within a first set time; an identification module, configured to determine a current liquid level identification result based on a minimum first resistance value among all first resistance values; A second acquisition module, configured to acquire a plurality of second resistance values corresponding to each second set time after the first set time; An updating module is used to update the current liquid level recognition result according to all the second resistance values corresponding to each second set time.
7. The device according to claim 6, characterized in that The device further comprises: a percentage conversion processing module, configured to perform percentage conversion processing on each of all first resistance values to obtain a first percentage corresponding to each first resistance value; The update module is specifically used to: A current liquid level recognition result is determined based on the minimum first percentage among all the first percentages.
8. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 5 when executing the computer program.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
10. A harvester, characterized in that: It includes a fuel level identification device for a harvester tank as described in claim 6.