A method and device for monitoring power consumption of a motor mounted on a vehicle

By calculating the instantaneous power of the upper motor and preset integral counter parameters, the problem of poor power consumption monitoring accuracy of the new energy sanitation vehicle's upper motor is solved, and efficient power consumption monitoring and statistics are achieved.

CN118330309BActive Publication Date: 2024-09-10CHENGDU YIWEI NEW ENERGY VEHICLE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410756393.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-09-10
Estimated Expiration
2044-06-13

AI Technical Summary

Technical Problem

In the existing technology, the computing power of the motor controller mounted on the new energy sanitation vehicle is insufficient, making it difficult to accurately monitor and count the power consumption of the motor mounted on the vehicle, especially when dealing with different operating cycles.

Method used

By obtaining the input voltage and input current of the bodywork motor, the instantaneous power is calculated, and the amplification factor and integration granularity of the integral counter are preset. Based on these parameters, the number of cumulative counting conditions for this power consumption is calculated to realize the power consumption of the bodywork motor. accurate monitoring and statistics.

Benefits of technology

It improves the accuracy and efficiency of monitoring the power consumption of the bodywork motor, reduces the dependence on the computing performance of the controller, and enables efficient monitoring of working power consumption and cumulative power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118330309B
    Figure CN118330309B
Patent Text Reader

Abstract

A method and device for monitoring the power consumption of a motor mounted on a vehicle, the method obtaining the input voltage and input current fed back by the motor mounted controller, calculating the instantaneous power of the motor mounted on the vehicle according to the input voltage and input current fed back by the motor mounted controller; presetting the magnification and integral granularity of the integral counter, calculating the cumulative counting condition number of the power consumption of the motor mounted on the vehicle according to the magnification of the integral counter, the integral granularity of the integral counter and the operation cycle of the controller mounted on the vehicle; calculating the power consumption of the motor mounted on the vehicle according to the instantaneous power of the motor mounted on the vehicle and the integral granularity of the integral counter, and accumulating the power consumption of the motor mounted on the vehicle according to the cumulative counting condition number of the power consumption of the motor mounted on the vehicle, and obtaining the power consumption of the motor mounted on the vehicle in the current operation. The present invention has high monitoring accuracy and reduces the dependence of the integral operation on the computing performance of the controller.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method and a device for monitoring the power consumption of a motor mounted on a vehicle, belonging to the technical field of power consumption monitoring. Background Art

[0002] At present, with the new energy of commercial vehicles, more and more municipal sanitation vehicles are also starting to use new energy. As a special operation vehicle, the power source of the upper system responsible for special operation functions of sanitation vehicles has changed from the traditional auxiliary engine or chassis gearbox to direct drive by the upper motor. When sanitation vehicles are both driving and operating, accurately distinguishing the energy consumption of the upper system and the chassis is an inevitable requirement for the information management of sanitation vehicles.

[0003] In the prior art, the mounted motor of a new energy sanitation vehicle is driven by a mounted controller that controls the mounted controller. The mainstream mounted controller in the industry is a PLC controller, which is better at input and output pin logic processing and is not good at complex data operations. The mounted motor controller generally has input voltage and input current detection functions. The mounted controller can calculate the instantaneous power of the mounted motor based on the input voltage and input current fed back by the mounted motor controller. However, when the mounted controller processes the calculation of the power consumption of the mounted motor, due to its weak computing power, when processing the integral operation of the mounted motor power over time, the calculation efficiency is low and the accuracy is not high, and it cannot well realize the monitoring of the working power consumption of the mounted motor and the statistics of the cumulative power consumption of the mounted operation. Summary of the invention

[0004] To this end, the present invention provides a method and device for monitoring the power consumption of a vehicle mounted motor, which solves the problem that the traditional technology has poor calculation accuracy of the power consumption of the mounted motor due to the low computing power requirements of the mounted controller and the difficulty in adapting the mounted controller to different operating cycles.

[0005] In order to achieve the above object, the present invention provides the following technical solution: a method for monitoring the power consumption of a motor mounted on a vehicle, comprising:

[0006] Obtaining the input voltage and input current fed back by the upper motor controller, and calculating the instantaneous power of the upper motor according to the input voltage and input current fed back by the upper motor controller;

[0007] Preset the magnification and integration granularity of the integral counter, and calculate the cumulative counting condition number of the current power consumption of the upper motor according to the magnification of the integral counter, the integration granularity of the integral counter and the operation cycle of the upper controller;

[0008] According to the instantaneous power of the upper motor and the integral granularity of the integral counter, the current power consumption of the upper motor is calculated, and according to the cumulative counting condition number of the current power consumption of the upper motor, the current power consumption of the upper motor is accumulated to obtain the power consumption of the current operation of the upper motor.

[0009] As a preferred method for monitoring the power consumption of the vehicle mounted motor, the cumulative counting condition number of the current power consumption of the mounted motor is calculated. The formula is:

[0010] ;

[0011] In the formula, is the integral granularity of the integral counter; N is the magnification of the integral counter; is the operation cycle of the upper body controller.

[0012] As a preferred solution of the vehicle mounted motor power consumption monitoring method, according to the instantaneous power of the mounted motor and the integral granularity of the integral counter, the formula for calculating the current power consumption of the mounted motor is:

[0013] ;

[0014] In the formula, The accumulated power consumption of the upper motor this time; is the power consumption of the upper motor before accumulation; is the instantaneous power of the upper motor.

[0015] As a preferred solution of the vehicle mounted motor power consumption monitoring method, the method further includes determining whether the vehicle mounted motor is shut down:

[0016] a) If the upper motor stops, the total accumulated power consumption of the upper motor is calculated based on the accumulated power consumption of the upper motor and the accumulated power consumption before the upper motor starts working. The calculation formula is:

[0017] ;

[0018] In the formula, The accumulated power consumption before the upper motor starts operation;

[0019] b) If the upper motor is not stopped, the power consumption of the upper motor is continuously calculated according to the instantaneous power of the upper motor and the integral granularity of the integral counter, and the power consumption of the upper motor is accumulated according to the cumulative counting condition number of the power consumption of the upper motor to obtain the power consumption of the current operation of the upper motor.

[0020] As a preferred solution of the vehicle body motor power consumption monitoring method, when the body controller runs a specified number of cycles, the counting state of the integral counter is turned on, and the count of the integral counter is increased by 1; when the body controller runs a specified number of cycles again, the counting state of the integral counter is turned off, and the count of the integral counter remains unchanged.

[0021] As a preferred solution of the method for monitoring the power consumption of a vehicle mounted motor, when the cumulative counting condition number of the current power consumption of the mounted motor is reached, the count of the integral counter is reset to zero.

[0022] The present invention also provides a vehicle mounted motor power consumption monitoring device, comprising:

[0023] An instantaneous power calculation module is used to obtain the input voltage and input current fed back by the upper motor controller, and calculate the instantaneous power of the upper motor according to the input voltage and input current fed back by the upper motor controller;

[0024] The cumulative counting condition processing module is used to preset the magnification and integral granularity of the integral counter, and calculate the cumulative counting condition number of the current power consumption of the upper motor according to the magnification of the integral counter, the integral granularity of the integral counter and the operation cycle of the upper controller;

[0025] The current operation power consumption analysis module is used to calculate the current power consumption of the upper motor according to the instantaneous power of the upper motor and the integral granularity of the integral counter, and accumulate the current power consumption of the upper motor according to the cumulative counting condition number of the current power consumption of the upper motor to obtain the power consumption of the current operation of the upper motor.

[0026] As a preferred solution of the vehicle mounted motor power consumption monitoring device, in the cumulative counting condition processing module, the cumulative counting condition times of the current power consumption of the mounted motor are calculated. The formula is:

[0027] ;

[0028] In the formula, is the integral granularity of the integral counter; N is the magnification of the integral counter; is the operation cycle of the upper mounted controller;

[0029] In the current operation power consumption analysis module, according to the instantaneous power of the upper motor and the integral granularity of the integral counter, the formula for calculating the current power consumption of the upper motor is:

[0030] ;

[0031] In the formula, is the accumulated power consumption of the upper motor this time; is the power consumption of the upper motor before accumulation; is the instantaneous power of the upper motor.

[0032] As a preferred solution of the vehicle mounted motor power consumption monitoring device, it also includes a shutdown analysis module for determining whether the vehicle mounted motor is shut down:

[0033] a) If the upper motor stops, the total accumulated power consumption of the upper motor is calculated based on the accumulated power consumption of the upper motor and the accumulated power consumption before the upper motor starts working. The calculation formula is:

[0034] ;

[0035] In the formula, The accumulated power consumption before the upper motor starts operation;

[0036] b) If the upper motor is not stopped, the power consumption of the upper motor is continuously calculated according to the instantaneous power of the upper motor and the integral granularity of the integral counter, and the power consumption of the upper motor is accumulated according to the cumulative counting condition number of the power consumption of the upper motor to obtain the power consumption of the current operation of the upper motor.

[0037] As a preferred solution of the vehicle mounted motor power consumption monitoring device, in the current operation power consumption analysis module, when the mounted controller runs a specified number of cycles, the counting state of the integral counter is turned on, and the count of the integral counter is increased by 1; when the mounted controller runs a specified number of cycles again, the counting state of the integral counter is turned off, and the count of the integral counter remains unchanged;

[0038] In the current operation power consumption analysis module, when the cumulative counting condition number of the current power consumption of the upper motor is reached, the count of the integral counter is reset to zero.

[0039] The present invention has the following advantages: obtaining the input voltage and input current fed back by the upper motor controller, and calculating the instantaneous power of the upper motor according to the input voltage and input current fed back by the upper motor controller; presetting the magnification and integral granularity of the integral counter, and calculating the cumulative counting condition number of the current power consumption of the upper motor according to the magnification of the integral counter, the integral granularity of the integral counter and the operation cycle of the upper controller; calculating the current power consumption of the upper motor according to the instantaneous power of the upper motor and the integral granularity of the integral counter, and accumulating the current power consumption of the upper motor according to the cumulative counting condition number of the current power consumption of the upper motor, and obtaining the power consumption of the current operation of the upper motor. The present invention can efficiently realize the monitoring of the working power consumption of the upper motor and the statistics of the accumulated power consumption of the upper operation, with high monitoring accuracy, and reduces the dependence of the integral operation on the computing performance of the controller. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.

[0041] Figure 1 A schematic flow chart of a method for monitoring power consumption of a motor mounted on a vehicle provided in an embodiment of the present invention;

[0042] Figure 2 This is a diagram of the architecture of a vehicle-mounted motor power consumption monitoring device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0043] The following is a description of the implementation of the present invention by specific embodiments. People familiar with the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0044] Example 1

[0045] See also Figure 1 Embodiment 1 of the present invention provides a method for monitoring power consumption of a motor mounted on a new energy sanitation vehicle, comprising the following steps:

[0046] S1, obtaining the input voltage and input current fed back by the upper motor controller, and calculating the instantaneous power of the upper motor according to the input voltage and input current fed back by the upper motor controller;

[0047] S2, preset the magnification and integration granularity of the integral counter, and calculate the cumulative counting condition number of the current power consumption of the upper motor according to the magnification of the integral counter, the integration granularity of the integral counter and the operation cycle of the upper controller;

[0048] S3. Calculate the current power consumption of the upper motor according to the instantaneous power of the upper motor and the integral granularity of the integral counter, and accumulate the current power consumption of the upper motor according to the cumulative counting condition number of the current power consumption of the upper motor to obtain the power consumption of the current operation of the upper motor.

[0049] In this embodiment, in step S1, the upper motor controller itself has input voltage and input current detection functions, and the instantaneous power of the upper motor can be calculated based on the input voltage and input current fed back by the upper motor controller. .

[0050] In this embodiment, when the upper controller runs a specified number of cycles, the counting state of the integral counter is turned on, and the count of the integral counter is increased by 1; when the upper controller runs a specified number of cycles again, the counting state of the integral counter is turned off, and the count of the integral counter remains unchanged.

[0051] Specifically, during the counting process of the integral counter, if the upper controller program runs for one cycle, the counter will increase by 1, which will lead to redundant integral calculations and heavy calculation load; and too small values ​​will also be lost during data type conversion and transmission. Therefore, the upper controller program runs once ( , unit ms), the counting state of the integral counter is on, and the count is increased by 1; the upper controller program runs once more, the counting state is off, and the count remains unchanged; this process is repeated, which is equivalent to running the upper controller program 2 times , the count is increased by 1. Based on the same principle, the magnification of the integral counter (assuming it is N) can be designed according to the needs, which can be 2 times or 3 times.

[0052] In this embodiment, in step S2, it is assumed that the instantaneous power of the upper motor is (kW), the specific calculation process is, each time the integral is counted, when the cumulative counting condition times are reached, a cumulative calculation is performed, among which the cumulative counting condition times of the current power consumption of the upper motor is The formula is:

[0053] ;

[0054] In the formula, is the integral granularity of the integral counter; N is the magnification of the integral counter; is the operation cycle of the upper body controller.

[0055] In this embodiment, in step S3, according to the instantaneous power of the upper motor and the integral granularity of the integral counter, the formula for calculating the current power consumption of the upper motor is:

[0056] ;

[0057] In the formula, is the accumulated power consumption of the upper motor this time; is the power consumption of the upper motor before accumulation; is the instantaneous power of the upper motor.

[0058] From the cumulative count condition The formula of the current power consumption of the upper motor shows that when the integral granularity is The larger the value, the more the trigger condition counter is executed. The smaller the value, the higher the calculation frequency and the power consumption. The smaller the accumulated value each time, the higher the integral calculation accuracy, and the higher the computing performance requirement for the upper controller.

[0059] In a possible embodiment, the method further includes: S4, determining whether the upper motor is stopped:

[0060] a) If the upper motor stops, the total accumulated power consumption of the upper motor is calculated based on the accumulated power consumption of the upper motor and the accumulated power consumption before the upper motor starts working. The calculation formula is:

[0061] ;

[0062] In the formula, is the accumulated power consumption before the upper motor starts operation; before the upper motor stops, The value remains unchanged. The next time the motor is started, The current accumulated power consumption will be read as a new starting point;

[0063] b) If the upper motor is not stopped, the power consumption of the upper motor is continuously calculated according to the instantaneous power of the upper motor and the integral granularity of the integral counter, and the power consumption of the upper motor is accumulated according to the cumulative counting condition number of the power consumption of the upper motor to obtain the power consumption of the current operation of the upper motor.

[0064] In order to ensure the synchronization and accuracy of the calculation, the power consumption is monitored in real time. At the same time, the accumulated power consumption before the upper motor operation starts is calculated. Simultaneous calculation, that is, when the count is accumulated to When the power consumption of the upper motor is started, the accumulated power consumption is accumulated once.

[0065] In a possible embodiment, when the cumulative counting condition number of the power consumption of the upper motor is reached, the count of the integral counter is reset to zero, and as the upper controller program runs, the above cumulative calculation process is continuously repeated to obtain the power consumption of the upper motor. .

[0066] For example, when calculating the power consumption of a certain upper motor, =1, that is, 1 integration per second; the integral counter magnification N=2, the upper controller operation cycle is =20ms, then =25, perform the calculation:

[0067] ;

[0068] This means that the power consumption of the upper motor is accumulated once per second, which converts the integral operation into a lower-frequency accumulation operation cycle and ensures the accuracy of the calculation.

[0069] In one possible embodiment, when the integral granularity When it is large, each calculation There is data loss due to the value being too small, so the calculation result and It needs to be amplified and transmitted and sent out through a message.

[0070] To summarize, the present invention obtains the input voltage and input current fed back by the upper motor controller, and calculates the instantaneous power of the upper motor according to the input voltage and input current fed back by the upper motor controller; presets the magnification and integral granularity of the integral counter, and calculates the cumulative counting condition times of the current power consumption of the upper motor according to the magnification of the integral counter, the integral granularity of the integral counter and the operation cycle of the upper controller; calculates the current power consumption of the upper motor according to the instantaneous power of the upper motor and the integral granularity of the integral counter, and accumulates the current power consumption of the upper motor according to the cumulative counting condition times of the current power consumption of the upper motor to obtain the power consumption of the current operation of the upper motor. Determine whether the upper motor is shut down: if the upper motor is shut down, calculate the total cumulative power consumption of the upper motor according to the accumulated power consumption of the upper motor and the accumulated power consumption before the upper motor operation is started; if the upper motor is not shut down, continuously calculate the current power consumption of the upper motor according to the instantaneous power of the upper motor and the integral granularity of the integral counter, and accumulate the current power consumption of the upper motor according to the cumulative counting condition number of the current power consumption of the upper motor to obtain the power consumption of the current operation of the upper motor. The present invention can efficiently realize the monitoring of the working power consumption of the upper motor and the statistics of the accumulated power consumption of the upper operation, with high monitoring accuracy, and reduce the dependence of the integral operation on the computing performance of the controller.

[0071] It should be noted that the method of the embodiment of the present disclosure can be performed by a single device, such as a computer or a server. The method of the present embodiment can also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present disclosure, and the multiple devices will interact with each other to complete the described method.

[0072] It should be noted that the above describes some embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0073] Example 2

[0074] See also Figure 2 Embodiment 2 of the present invention further provides a vehicle-mounted motor power consumption monitoring device, comprising:

[0075] The instantaneous power calculation module 001 is used to obtain the input voltage and input current fed back by the upper motor controller, and calculate the instantaneous power of the upper motor according to the input voltage and input current fed back by the upper motor controller;

[0076] The cumulative counting condition processing module 002 is used to preset the magnification and integral granularity of the integral counter, and calculate the cumulative counting condition number of the current power consumption of the upper motor according to the magnification of the integral counter, the integral granularity of the integral counter and the operation cycle of the upper controller;

[0077] The current operation power consumption analysis module 003 is used to calculate the current power consumption of the upper motor according to the instantaneous power of the upper motor and the integral granularity of the integral counter, and accumulate the current power consumption of the upper motor according to the cumulative counting condition number of the current power consumption of the upper motor to obtain the power consumption of the current operation of the upper motor.

[0078] In this embodiment, in the cumulative counting condition processing module 002, the cumulative counting condition number of the current power consumption of the upper motor is calculated. The formula is:

[0079] ;

[0080] In the formula, is the integral granularity of the integral counter; N is the magnification of the integral counter; is the operation cycle of the upper mounted controller;

[0081] In the current operation power consumption analysis module 003, according to the instantaneous power of the upper motor and the integral granularity of the integral counter, the formula for calculating the current power consumption of the upper motor is:

[0082] ;

[0083] In the formula, is the accumulated power consumption of the upper motor this time; is the power consumption of the upper motor before accumulation; is the instantaneous power of the upper motor.

[0084] In this embodiment, a shutdown analysis module 004 is also included, which is used to determine whether the upper motor is shut down:

[0085] a) If the upper motor stops, the total accumulated power consumption of the upper motor is calculated based on the accumulated power consumption of the upper motor and the accumulated power consumption before the upper motor starts working. The calculation formula is:

[0086] ;

[0087] In the formula, The accumulated power consumption before the upper motor starts operation;

[0088] b) If the upper motor is not stopped, the power consumption of the upper motor is continuously calculated according to the instantaneous power of the upper motor and the integral granularity of the integral counter, and the power consumption of the upper motor is accumulated according to the cumulative counting condition number of the power consumption of the upper motor to obtain the power consumption of the current operation of the upper motor.

[0089] In this embodiment, in the current operation power consumption analysis module 003, when the upper controller runs a specified number of cycles, the counting state of the integral counter is turned on, and the count of the integral counter is increased by 1; when the upper controller runs a specified number of cycles again, the counting state of the integral counter is turned off, and the count of the integral counter remains unchanged;

[0090] In the current operation power consumption analysis module 003, when the cumulative counting condition number of the current power consumption of the upper motor is reached, the count of the integral counter is reset to zero.

[0091] It should be noted that the information interaction, execution process and other contents between the modules of the above-mentioned device are based on the same concept as the method embodiment in Example 1 of the present application, and the technical effects they bring are the same as those of the method embodiment of the present application. For specific contents, please refer to the description in the method embodiment shown in the previous part of the present application, and will not be repeated here.

[0092] Example 3

[0093] Embodiment 3 of the present invention provides a non-transitory computer-readable storage medium, in which a program code of a vehicle-mounted motor power consumption monitoring method is stored. The program code includes instructions for executing embodiment 1 or any possible implementation method of the vehicle-mounted motor power consumption monitoring method.

[0094] Computer-readable storage media can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).

[0095] Example 4

[0096] Embodiment 4 of the present invention provides an electronic device, including: a memory and a processor;

[0097] The processor and the memory communicate with each other via a bus; the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the vehicle-mounted motor power consumption monitoring method of embodiment 1 or any possible implementation thereof.

[0098] Specifically, the processor can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor can be a general-purpose processor implemented by reading software codes stored in a memory. The memory can be integrated in the processor or can be located outside the processor and exist independently.

[0099] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center.

[0100] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0101] Although the present invention has been described in detail above by general description and specific embodiments, it is obvious to those skilled in the art that some modifications or improvements can be made to the present invention. Therefore, these modifications or improvements made without departing from the spirit of the present invention all belong to the scope of protection claimed by the present invention.

Claims

1. A method for monitoring the power consumption of a motor mounted on a vehicle, characterized in that: include: Obtaining the input voltage and input current fed back by the upper motor controller, and calculating the instantaneous power of the upper motor according to the input voltage and input current fed back by the upper motor controller; Preset the magnification and integration granularity of the integral counter, and calculate the cumulative counting condition of the current power consumption of the upper-mounted motor according to the magnification of the integral counter, the integration granularity of the integral counter and the operation cycle of the upper-mounted controller; According to the instantaneous power of the upper motor and the integral granularity of the integral counter, the current power consumption of the upper motor is calculated, and according to the cumulative counting condition of the current power consumption of the upper motor, the current power consumption of the upper motor is accumulated to obtain the power consumption of the current operation of the upper motor; The magnification is a parameter based on the program operation cycle of the upper controller; The integration granularity is the number of times the power consumption of the upper motor is accumulated within 1 second.

2. A vehicle mounted motor power consumption monitoring method according to claim 1, characterized in that: The formula for calculating the cumulative counting condition number Cnt0 of the power consumption of the upper motor is: Cnt0=1000 / K0NT0 Wherein, K0 is the integral granularity of the integral counter; N is the magnification of the integral counter; T0 is the operation cycle of the upper controller.

3. A vehicle mounted motor power consumption monitoring method according to claim 2, characterized in that: According to the instantaneous power of the upper motor and the integral granularity of the integral counter, the formula for calculating the current power consumption of the upper motor is: In the formula, E this E is the accumulated power consumption of the upper motor; this ` is the power consumption of the upper motor before accumulation; P i is the instantaneous power of the upper motor.

4. A vehicle mounted motor power consumption monitoring method according to claim 3, characterized in that: The method further includes determining whether the upper motor is stopped: a) If the upper motor stops, the total accumulated power consumption of the upper motor is calculated based on the accumulated power consumption of the upper motor this time and the accumulated power consumption before the upper motor starts working. The total accumulated power consumption of the upper motor is E total The calculation formula is: AND total =And start +E this In the formula, E start The accumulated power consumption before the upper motor starts operation; b) If the upper motor is not stopped, the power consumption of the upper motor is continuously calculated according to the instantaneous power of the upper motor and the integral granularity of the integral counter, and the power consumption of the upper motor is accumulated according to the cumulative counting condition of the power consumption of the upper motor to obtain the power consumption of the current operation of the upper motor.

5. The method for monitoring the power consumption of a motor mounted on a vehicle according to claim 1, characterized in that: When the upper controller runs a specified number of cycles, the counting state of the integral counter is turned on, and the count of the integral counter is increased by 1; when the upper controller runs a specified number of cycles again, the counting state of the integral counter is turned off, and the count of the integral counter remains unchanged.

6. A vehicle mounted motor power consumption monitoring method according to claim 1, characterized in that: When the cumulative counting condition number of the power consumption of the upper motor is reached, the count of the integral counter is reset to zero.

7. A vehicle mounted motor power consumption monitoring device, characterized in that: include: An instantaneous power calculation module is used to obtain the input voltage and input current fed back by the upper motor controller, and calculate the instantaneous power of the upper motor according to the input voltage and input current fed back by the upper motor controller; The cumulative counting condition processing module is used to preset the magnification and integral granularity of the integral counter, and calculate the cumulative counting condition of the current power consumption of the upper motor according to the magnification of the integral counter, the integral granularity of the integral counter and the operation cycle of the upper controller; the magnification is a parameter based on the operation cycle of the upper controller program; the integral granularity is the number of times the power consumption of the upper motor is accumulated within 1 second; The current operation power consumption analysis module is used to calculate the current power consumption of the upper motor according to the instantaneous power of the upper motor and the integral granularity of the integral counter, and accumulate the current power consumption of the upper motor according to the cumulative counting condition of the current power consumption of the upper motor to obtain the power consumption of the current operation of the upper motor.

8. The vehicle mounted motor power consumption monitoring device according to claim 7, characterized in that: In the cumulative counting condition processing module, the formula for calculating the cumulative counting condition number Cnt0 of the current power consumption of the upper motor is: Cnt0=1000 / K0NT0 Wherein, K0 is the integral granularity of the integral counter; N is the magnification of the integral counter; T0 is the operation cycle of the upper controller; In the current operation power consumption analysis module, according to the instantaneous power of the upper motor and the integral granularity of the integral counter, the formula for calculating the current power consumption of the upper motor is: In the formula, E this E is the accumulated power consumption of the upper motor; this ` is the power consumption of the upper motor before accumulation; P i is the instantaneous power of the upper motor.

9. The vehicle mounted motor power consumption monitoring device according to claim 8, characterized in that: It also includes a shutdown analysis module for determining whether the upper motor is shut down: a) If the upper motor stops, the total accumulated power consumption of the upper motor is calculated based on the accumulated power consumption of the upper motor this time and the accumulated power consumption before the upper motor starts working. The total accumulated power consumption of the upper motor is E total The calculation formula is: AND total =And start +E this In the formula, E start The accumulated power consumption before the upper motor starts operation; b) If the upper motor is not stopped, the power consumption of the upper motor is continuously calculated according to the instantaneous power of the upper motor and the integral granularity of the integral counter, and the power consumption of the upper motor is accumulated according to the cumulative counting condition of the power consumption of the upper motor to obtain the power consumption of the current operation of the upper motor.

10. The vehicle mounted motor power consumption monitoring device according to claim 7, characterized in that: In the current operation power consumption analysis module, when the upper controller runs a specified number of cycles, the counting state of the integral counter is turned on, and the count of the integral counter is increased by 1; when the upper controller runs a specified number of cycles again, the counting state of the integral counter is turned off, and the count of the integral counter remains unchanged; In the current operation power consumption analysis module, when the cumulative counting condition number of the current power consumption of the upper motor is reached, the count of the integral counter is reset to zero.