A method and device for testing automobile power consumption in multiple working conditions
By collecting and integrating electrical parameters and vehicle speed parameters, operating condition marking records are generated, forming a composite data stream under a unified time reference. This solves the problems of lack of interfaces and low efficiency of manual recording in electric vehicle power consumption testing, and achieves efficient and accurate power consumption calculation.
Patent Information
- Application Number
- CN202611673494.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-28
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies lack the communication interfaces required for vehicle testing in electric vehicle energy consumption testing, making it difficult to obtain information on vehicle speed and operating condition switching. Furthermore, manual recording is inefficient and prone to errors, affecting the accuracy of energy consumption points and operating condition cycle determination.
By collecting electrical and speed parameters during vehicle operation, a condition marker record containing time information is generated. This record is then integrated with the electrical and speed parameters in chronological order to form a composite data stream, which is stored in real time on a storage medium. Based on the condition marker record, the data stream is divided into independent data blocks for energy consumption calculation.
It improves testing efficiency and accuracy, avoids time synchronization errors, and enables automatic identification of operating condition switching points and accurate calculation of power consumption data under various operating conditions.
Smart Images

Figure CN123176407A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle energy consumption testing technology, and in particular to a method and apparatus for testing vehicle energy consumption under multiple operating conditions. Background Technology
[0002] With the development of electric vehicle technology, energy consumption and driving range have become important indicators for evaluating vehicle performance. The State Administration for Market Regulation has successively implemented standards such as GB / T 18386 and GB / T 19753, which together constitute China's standard system for testing the energy consumption of light-duty vehicles.
[0003] In standard practical applications, power consumption testing typically involves acquiring power data using ordinary power meters. However, conventional power meters often lack the communication interfaces required for vehicle testing, making it difficult to directly obtain information such as vehicle speed and operating condition switching. During subsequent analysis, power data and vehicle speed data usually need to be manually aligned using timestamps. This separate acquisition and offline alignment method not only increases the complexity of the testing system but also easily introduces time synchronization errors due to inconsistent clock references among the devices, affecting the accuracy of energy consumption integration and operating condition cycle determination.
[0004] Furthermore, multi-condition energy consumption testing requires switching between different test conditions and calculating energy consumption and driving distance under each condition separately. Traditional methods rely on manual recording of the start and end times of each condition, which is inefficient and prone to errors. Therefore, a method and apparatus are needed that can integrate the synchronous acquisition, real-time calculation, condition marking, and data storage of multiple types of vehicle speed signals into a single testing device to improve testing efficiency, synchronization accuracy, and condition identification accuracy. Summary of the Invention
[0005] In view of the above, the present invention aims to provide a method and apparatus for testing automotive power consumption under multiple operating conditions, so as to solve the aforementioned technical problems.
[0006] The technical solution adopted in this invention is as follows:
[0007] This invention provides a method for testing automotive energy consumption under multiple operating conditions, including:
[0008] The system collects electrical parameters and vehicle speed parameters during vehicle operation, including voltage and current signals.
[0009] In response to a trigger signal generated by an external trigger, a working condition marker record containing time information is generated;
[0010] The operating condition marker records are associated and integrated with the electrical parameters and vehicle speed parameters in chronological order to form a composite data stream, and the composite data stream is stored in a storage medium in real time.
[0011] Based on the operating condition marking records, the composite data stream is divided into independent data blocks corresponding to different test operating conditions;
[0012] Energy consumption calculations are performed on each of the independent data blocks, and power consumption data under each test condition is output.
[0013] Optionally, in response to a trigger signal generated by an external trigger, a working condition marker record containing time information is generated, including:
[0014] Monitor the signal status changes of the trigger signal input interface;
[0015] When a triggering event is detected, the current system time information is obtained;
[0016] Generate a working condition tagging record that includes tag type information and the time information;
[0017] The operating condition marker record is inserted into the composite data stream with a higher priority than the sampled data, and stored in a chronological order with the electrical parameters and vehicle speed parameters collected at the same time.
[0018] Optionally, the method for testing vehicle power consumption under multiple operating conditions further includes: digital signal conditioning of the collected electrical parameters, including:
[0019] The original sampling sequence of electrical parameters is subjected to a first-stage nonlinear filtering process;
[0020] The time series after the first-stage nonlinear filtering is then subjected to a second-stage linear filtering process.
[0021] The first-stage nonlinear filtering process and the second-stage linear filtering process are executed in a serial cascade manner.
[0022] Optionally, the first-stage nonlinear filtering process is median filtering.
[0023] The second-stage linear filtering process is a finite-length unit impulse response low-pass filtering process, and the finite-length unit impulse response low-pass filtering process adopts a recursive cumulative sum update method. Each time it is updated, the oldest historical data is replaced and the cumulative sum is updated accordingly.
[0024] Optionally, nonlinear error compensation is also included before performing the second-stage linear filtering on the current signal:
[0025] The measurement range of the current signal is pre-divided into multiple continuous intervals, and corresponding compensation parameters are preset for each interval.
[0026] Based on the range to which the currently collected raw current value belongs, the corresponding compensation parameters are called for correction calculation;
[0027] The corrected value is used as the input value for the second-stage linear filtering process.
[0028] Optionally, the composite data stream can be stored in real time in a storage medium, including:
[0029] Configure at least two buffers in memory;
[0030] The data collected synchronously from multiple channels is written sequentially into the currently active first buffer in units of data groups.
[0031] Once the first buffer is full of a predetermined number of data groups, the write operation will be switched to the second buffer, and the data groups that are full in the first buffer will be transferred to the storage medium.
[0032] During the writing process to the second buffer, the data transfer process to the first buffer is completed, and the process alternates in a loop.
[0033] Optionally, based on the operating condition marker records, the composite data stream is divided into independent data blocks corresponding to different test operating conditions, including:
[0034] Extract all operating condition marker records and their corresponding time information from the composite data stream;
[0035] Arrange the marked records of each working condition in chronological order to construct a test timeline that includes the start and end times of each working condition;
[0036] Using the test time axis as the dividing boundary, the original continuous data stream is divided into data blocks corresponding to each independent test condition;
[0037] For each data block, the energy consumption integral is calculated and the driving distance is estimated, and the energy consumption is divided by the driving distance.
[0038] Optionally, the vehicle speed parameter can be accessed from at least two interface types, including bus communication interface, serial communication interface, analog voltage input interface and frequency signal input interface;
[0039] The vehicle speed signal is decoded according to the signal parsing protocol corresponding to different access interface types.
[0040] The decoded vehicle speed data and electrical parameter data are then linked and stored on the same time base.
[0041] Optionally, the vehicle energy consumption test method for multiple operating conditions further includes:
[0042] When collecting electrical and speed parameters during vehicle operation, the collected voltage and current data are aligned in the time domain to calculate the instantaneous power, and the instantaneous power data is associated with the vehicle speed data at the same time and stored in the composite data stream.
[0043] The present invention also provides a vehicle energy consumption testing device for multiple operating conditions, which performs the vehicle energy consumption testing method for multiple operating conditions as described above, including:
[0044] Central computing module, acquisition module, data recording module, triggering module, display module;
[0045] The central computing module is connected to the acquisition module, triggering module, data recording module and display module respectively via communication cables;
[0046] The acquisition module acquires voltage signals, current signals, and vehicle speed signals during vehicle operation;
[0047] The central computing module receives voltage signals, current signals, and vehicle speed signals collected by the acquisition module, as well as trigger signals from the trigger module;
[0048] The central computing module calculates power consumption based on the voltage signal, current signal, vehicle speed signal, and trigger signal in chronological order to obtain vehicle power consumption data.
[0049] The display module receives the vehicle's power consumption data and displays it in real time.
[0050] The above-described solution of the present invention has at least the following beneficial effects:
[0051] The above-described solution of the present invention collects electrical parameters and vehicle speed parameters during vehicle operation, the electrical parameters including voltage signals and current signals; in response to a trigger signal generated by an external trigger, a working condition marker record containing time information is generated; the working condition marker record is associated and integrated with the electrical parameters and vehicle speed parameters in chronological order to form a composite data stream, and the composite data stream is stored in a storage medium in real time; based on the working condition marker record, the composite data stream is divided into independent data blocks corresponding to different test working conditions; energy consumption is calculated for each of the independent data blocks, and power consumption data under each test working condition is output. This solution integrates operating condition marker records with electrical parameters and vehicle speed parameters in chronological order to form a composite data stream under a unified time reference, avoiding time synchronization errors caused by traditional separate acquisition and offline manual alignment. Operating condition markers are generated through external triggers, and a test timeline is automatically constructed, accurately identifying the start and end times of each test cycle and operating condition switching points. By performing energy consumption integration and driving distance calculation on independent data blocks, energy consumption data under each operating condition can be automatically output. Through multi-type vehicle speed signal interfaces, digital filtering, current nonlinearity compensation, and ping-pong buffer storage, the synchronization, accuracy, and real-time storage reliability of data acquisition are improved. Attached Figure Description
[0052] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described below with reference to the accompanying drawings, wherein:
[0053] Figure 1 A flowchart of a vehicle energy consumption testing method for multiple operating conditions provided in an embodiment of the present invention.
[0054] Figure 2 This is a schematic diagram of a vehicle energy consumption testing device for multiple operating conditions provided in an embodiment of the present invention.
[0055] Figure 3 This is a schematic diagram of a multi-condition automotive energy consumption testing device provided in an embodiment of the present invention. Detailed Implementation
[0056] Embodiments of the present invention are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.
[0057] This invention proposes an embodiment of a method for testing automotive energy consumption under multiple operating conditions, specifically, as follows: Figure 1 As shown, it includes:
[0058] Step 11: Collect electrical parameters and vehicle speed parameters during vehicle operation. The electrical parameters include voltage signals and current signals.
[0059] Step 12: In response to the trigger signal generated by an external trigger, generate a working condition mark record containing time information;
[0060] Step 13: The working condition mark record is associated and integrated with the electrical parameters and vehicle speed parameters in chronological order to form a composite data stream, and the composite data stream is stored in the storage medium in real time;
[0061] Step 14: Based on the operating condition marking record, divide the composite data stream into independent data blocks corresponding to different test operating conditions;
[0062] Step 15: Perform energy consumption calculations on each of the independent data blocks and output the power consumption data under each test condition.
[0063] In this embodiment, a vehicle energy consumption testing device for multiple operating conditions is provided to perform the vehicle energy consumption testing method for multiple operating conditions as described above. Figure 2 and Figure 3 As shown, the device includes:
[0064] Central computing module, acquisition module, data recording module, triggering module, display module;
[0065] The central computing module is connected to the acquisition module, triggering module, data recording module and display module respectively via communication cables;
[0066] The acquisition module acquires voltage signals, current signals, and vehicle speed signals during vehicle operation;
[0067] The central computing module receives voltage signals, current signals, and vehicle speed signals collected by the acquisition module, as well as trigger signals from the trigger module;
[0068] The central computing module calculates power consumption based on the voltage signal, current signal, vehicle speed signal, and trigger signal in chronological order to obtain vehicle power consumption data.
[0069] The display module receives the vehicle's power consumption data and displays it in real time.
[0070] In this embodiment, the carrier of the automotive power consumption testing device can be a portable chassis. The front panel of the chassis can be equipped with a display screen, an 8-channel voltage acquisition interface, and an 8-channel current acquisition interface; the rear panel can be equipped with an AC220V power input interface, a DC24V power supply interface, a power-on self-locking switch, a host computer communication interface, a PC direct-connection data reading interface, a CAN communication interface, a data trigger recording self-locking switch, a 2-channel dry contact I / O signal interface, a 4-channel low-voltage acquisition interface, and an 8-channel current clamp power supply interface, etc.
[0071] The automotive energy consumption testing device includes a central calculation module, a data acquisition module, a data recording module, a triggering module, and a display module. The central calculation module, as the core of the device, is connected to the data acquisition module, triggering module, data recording module, and display module via communication cables. The data acquisition module collects voltage, current, and vehicle speed signals during vehicle operation; the triggering module generates trigger signals in response to operator input or external I / O signals; the central calculation module receives data from the data acquisition and triggering modules, performs correlation, calculation, and labeling in chronological order; the data recording module stores the composite data stream in real time; and the display module displays real-time voltage, current, power, operating condition information, and record status.
[0072] Specifically, the acquisition module can consist of a vehicle speed acquisition unit, a voltage acquisition unit, and a current acquisition unit. The voltage acquisition unit supports 8-channel voltage acquisition, with a maximum acquisition range of 0-1000V AC / DC voltage. Processing is achieved through a high-voltage divider network circuit, a high-impedance buffer stage circuit, a multi-channel synchronous sampling analog-to-digital converter circuit, and an isolated digital interface and power supply circuit. The current acquisition unit supports 8-channel current acquisition, with a maximum current range of 0-100A. Processing is achieved through a high-precision signal conditioning circuit, a multi-channel synchronous sampling analog-to-digital converter circuit, and an isolated digital interface and power supply circuit. Each of the 8 channels can be independently set with different current levels, such as 100mV / A and 10mV / A, to accommodate different current acquisition accuracy requirements. The vehicle speed acquisition unit supports vehicle speed signal input via CAN, 485 serial port, analog voltage, and frequency signals. The acquired real-time vehicle speed data can be integrated and uploaded to the central computing module.
[0073] In one implementation, the central computing module uses an STM32 microcontroller and communicates with two AD7616 analog-to-digital converter chips via an SPI interface. One chip is used for the synchronous acquisition of high-voltage analog signals and current sensor output signals, while the other is used for auxiliary function acquisition. The AD7616 can be configured in serial single-wire output mode. The STM32 acts as the SPI master, selecting the AD7616 chip via a chip select signal, sending continuous clock pulses and all-zero data words, and simultaneously receiving 16-bit sampled data. To improve data throughput efficiency, the AD7616 can be configured in burst read mode, continuously reading all channel data in a preset sampling sequence within one chip select valid cycle. CRC check can be enabled during communication, storing data in the internal buffer only when the check passes, thereby ensuring the integrity and correctness of the sampled data.
[0074] During data acquisition, the acquisition module collects electrical and speed parameters of the vehicle during operation. The electrical parameters include voltage and current signals. The central computing module aligns the acquired voltage and current data in the time domain to calculate instantaneous power, and then associates the instantaneous power data with the vehicle speed data at the same moment, storing it in a composite data stream. In this way, power, voltage, current, and speed data are correlated under the same time reference, facilitating subsequent energy consumption integration and distance calculation.
[0075] Specifically, instantaneous power can be expressed as:
[0076] ;
[0077] in, It is a voltage signal. It is a current signal. This refers to instantaneous power.
[0078] The energy consumption integral and driving distance calculation can be expressed as follows:
[0079] ;
[0080] ;
[0081] in, This refers to electricity consumption. For driving distance, For vehicle speed, The sampling time interval is [not specified]. Power consumption per unit distance or per 100 kilometers can be expressed as:
[0082] ;
[0083] ;
[0084] in, Power consumption per unit distance Energy consumption per 100 kilometers.
[0085] For vehicle speed parameter input, the vehicle speed acquisition unit can access vehicle speed signals from at least two of the following interface types: bus communication interface, serial communication interface, analog voltage input interface, and frequency signal input interface. For example, CAN signals are processed through an isolated CAN communication circuit and uploaded to the vehicle speed acquisition unit MCU; RS485 serial port signals are processed through an RS485 communication circuit and uploaded to the vehicle speed acquisition unit MCU; and analog voltage and frequency signals are processed through a high-impedance buffer circuit and a high-precision analog-to-digital conversion circuit before being uploaded to the vehicle speed acquisition unit MCU. The central computing module decodes the vehicle speed signals according to the signal parsing protocol corresponding to different access interface types and stores the decoded vehicle speed data and electrical parameter data in association under the same time base.
[0086] The trigger module generates trigger signals in response to external triggers. The trigger module may include a mechanical switch or dry contact I / O signal input interface located on the rear panel of the device. Test personnel can record the start and end positions of the test by triggering the mechanical switch or providing an I / O signal. After detecting a valid trigger event, the central computing module immediately acquires the current system time information and can freeze a microsecond-level real-time clock timestamp, generating a condition marker record containing marker type information, condition number, trigger source identifier, and timestamp. This condition marker record is inserted into the composite data stream with higher priority than the sampled data, and is stored in the same data file along with voltage, current, and vehicle speed data collected at the same time, in chronological order. A "TRIG" status indicator area can be set on the display module screen. The indicator light is constantly on when the mechanical self-locking switch is in the test in progress position. When the dry contact I / O receives an external trigger and successfully parses it, the indicator light flashes once as feedback.
[0087] In terms of data storage, the data logging module can store the data processed in real time by the central computing module in the EMMC storage chip. The EMMC storage chip can be a dedicated onboard chip with high vibration resistance, with a built-in capacity of, for example, 32GB, and can use an RTC real-time clock for timing, so that it can still record time information when the device is powered off. The data logging module can be directly connected to a PC via a USB interface to directly copy test data. All acquired data and marker records can be stored in the same data file in chronological order. The file uses a custom binary frame format, and each frame can contain a frame header, frame type, timestamp, payload, and frame tail CRC. By decoding the frame type, the PC-based analysis software can easily extract the marker records from the massive amount of sampled data to form a test timeline.
[0088] To avoid data contention, processing delays, and insufficient inter-channel synchronization during high-speed multi-channel data acquisition and storage, the data recording module can employ a data recording method based on hardware parallel transmission and software ping-pong buffering. In terms of circuit hardware, the front-end can use multiple successive approximation ADCs for high-speed acquisition, while the back-end uses a precision clock distribution chip to interact with the main chip via SPI communication. Upon receiving the data, the main chip concurrently stores all channel data at high speed based on multi-channel data, and then processes the data.
[0089] Specifically, at least two buffers, such as buffers A and B of equal capacity, are configured in memory. Data acquired synchronously from multiple channels is written sequentially to the currently active first buffer via DMA, in units of data groups. When the first buffer is full of a predetermined number of data groups, the write operation is switched to the second buffer, and the data groups already full in the first buffer are transferred to the storage medium. During the writing process in the second buffer, the data transfer processing of the first buffer is completed, alternating cyclically. For example, each of the A and B regions is divided into 25 8-byte aligned vector groups. The DMA channel is configured in peripheral-to-memory mode, with the source address fixed at the input register, the destination address at the starting address of region A, a transfer width of 8 bytes, a burst of 8 bytes, and a transfer count of 25. When region A is full, a memory-to-memory vector copy operation is initiated, transferring all 200 bytes of region A to region B at once. Then, the DMA is reset and re-enabled to begin a new round of filling region A. The software's timed processing tasks can be scheduled based on the data arrival rate and the filling progress of area A is sensed by tracking the number of DMA transfers. When it is detected that 10 to 15 vector groups have been written, batch processing of area B is triggered. The processing function performs filtering, calibration, or framing operations on the entire area B. At this time, the DMA continues to work independently in the subsequent space of area A without interference, thereby achieving uninterrupted recording and real-time processing of multiple data streams.
[0090] In terms of data conditioning, the central computing module can perform digital signal conditioning on the acquired electrical parameters. Specifically, the original sampled sequence of electrical parameters undergoes a first-level nonlinear filtering process, and the time series after the first-level nonlinear filtering process undergoes a second-level linear filtering process. The first-level and second-level filtering processes are executed in a serial cascade manner. The first-level nonlinear filtering process can be a median filtering process, and the second-level linear filtering process can be a finite-length unit impulse response low-pass filtering process.
[0091] In one specific implementation, the horizontal span of the median filter window can be set to a predetermined odd integer W, preferably W=5. For each analog channel participating in data acquisition, the processor statically allocates a circular buffer structure with a capacity of W discrete quantization units in the memory-mapped space, and sets up a write pointer wr and a valid data count variable cnt accordingly.
[0092] Each time the analog-to-digital converter peripheral completes a new sampling and transmits the result value x to the processor, the central processing unit executes the following instruction sequence in sequence: First, x is assigned to a specific cell in the circular buffer addressed by the current value of the write pointer wr; then, the write pointer wr is incremented according to the addition principle modulo W, that is:
[0093] ;
[0094] The current value of the valid data count variable cnt is then checked. If the valid data count variable cnt has not yet reached W, the valid data count variable cnt is incremented. Once the accumulated result of the valid data count variable cnt equals W, it indicates that the circular buffer has left its initial filled state, and each subsequent data write will trigger a complete filter output calculation.
[0095] After each analog-to-digital conversion completes a new sampling, the sampled value is written to a circular buffer, and the write pointer increments modulo W. When the valid data count reaches W, each write triggers a filter output calculation: the W elements in the circular buffer are copied to a temporary sorting memory, sorted, and then the index position is selected as... The element values are used as the median filter output:
[0096] ;
[0097] in, The sorted sequence, This is the output of a median filter. It is currently in the initialization phase. In such cases, the system can selectively suppress the output or directly maintain the most recent valid output value to avoid introducing false transients due to insufficient window filling.
[0098] The second-stage FIR low-pass filter can employ a moving average kernel function, where all tap coefficients are equal positive numbers and satisfy normalization conditions. Each channel maintains an independent ring-shaped history array to buffer the time series output of the first-stage median filter. The system triggers filter iterations based on fixed-cycle interrupt service routines. In each iteration, the most recent N historical values are extracted from the ring array in chronological order, and each value is multiplied and accumulated with its corresponding normalization coefficient to generate a smoothed output sequence. Mathematically, this is equivalent to a moving average filter with equal weights, and the standard form of the difference equation can be expressed as:
[0099] ;
[0100] in, The filter order is used in this embodiment. It can be configured to 10. This is the time series output by the aforementioned median filter.
[0101] In practical embedded implementations, to avoid the need to perform [something] at each output point To mitigate the high computational load of multiple multiplications and accumulations, the system employs a recursive accumulation and optimization strategy. Each channel has a pre-allocated length of [length missing] in its respective data structure. Circular historical queue and write pointer And use an accumulator register to maintain all the current queue entries. The sum of all elements. When the mid-value filter subroutine outputs a new value. At that time, the processor executes the following update procedure:
[0102] By writing pointers Locate the oldest historical data in the circular queue that is about to be replaced. Read its value; then set the new value. Write to this memory location and simultaneously update the contents of the accumulator register, that is:
[0103] ;
[0104] After completing the above operations, write the pointer. by The filter increments by one step in the loop. The final output of this round of the filter... Directly from the updated sum Based on normalization coefficients The result is obtained by scaling:
[0105] ;
[0106] In fixed-point arithmetic, this scaling is equivalent to a right shift. This recursive architecture reduces the time complexity of a single filtering operation from... Reduce to This greatly improves the processor's throughput efficiency in high-speed, multi-channel concurrent acquisition scenarios, while effectively attenuating wideband random noise and periodic interference components superimposed on DC or low-frequency effective signals.
[0107] For current sampling paths exhibiting significant nonlinear transfer characteristics, this embodiment inserts a linearization preprocessing step based on piecewise mapping before the FIR accumulation operation. This step dynamically applies the corresponding gain compensation factor to the amplitude range belonging to the pre-built calibration coefficient quantization table based on the median filtering result, thereby performing reverse compensation for the gain deviation introduced by the non-ideal characteristics of components in the conditioning link.
[0108] Specifically, before performing the second-stage linear filtering on the current signal, nonlinear error compensation is also included: the measurement range of the current signal is pre-divided into multiple continuous intervals, and corresponding compensation parameters are preset for each interval; according to the interval to which the currently acquired original current value belongs, the corresponding compensation parameters are called for correction calculation; the corrected value is used as the input value for the second-stage linear filtering.
[0109] In one specific implementation, the full-scale dynamic range of the current channel can be pre-defined. Artificially divided into A series of continuous closed intervals are stored in the system's non-volatile read-only memory, along with two corresponding lookup table arrays: one of which is the interval boundary array. The first is used to define the boundary positions of each interval on the range coordinate; the second is the compensation coefficient array. It stores the multiplication correction factors corresponding to each interval. During actual operation, when the central calculation module obtains the original sampled digital code of the current channel... Then, first start the interval search subroutine: if the total number of intervals... If the value is smaller, then a sequential comparison method is used, starting from interval index 0 and comparing it with each other sequentially. Perform a size comparison; once the following conditions are met:
[0110] ;
[0111] That is, lock the current index. For the target interval; if If the value is greater than all preset boundary values, it will be assigned to the last interval by default. After determining the interval assignment, the calibration coefficient for that interval is obtained by looking up a table. And perform the correction calculation:
[0112] ;
[0113] in, This is the compensated value. As a further extension to meet the need for higher precision, this scheme also allows for configuration using linear interpolation within the interval, in which case the compensation formula transforms into:
[0114] ;
[0115] in, Represents the boundary of the interval The desired digital code that the linear system should output is processed. The data after the above compensation processing... The current measurement will then be formally entered into the historical buffer of the FIR filter and integrated into the subsequent smoothing process to ensure that the current measurement value has excellent linearity and multi-channel consistency throughout the entire measurement range.
[0116] In addition, data processing can also be done using A sliding time window is defined for the scale, and high-frequency data is denoised based on this sliding window. The denoising method is... Within a time period Sort the data and remove the percentage of each item. Maximum value and percentage of quantity The minimum value is calculated, and the remaining values are averaged. This average is then used as the sample value at that moment. During data processing, data from all 8 channels are processed simultaneously. Let the sorted sequence be:
[0117] ;
[0118] Remove high-end Data and low end After the first data point, the number of remaining data points is... It can be represented as:
[0119] ;
[0120] The sliding window noise reduction output can then be expressed as:
[0121] ;
[0122] in, This is the sampled value at that moment. This noise reduction process can be used in conjunction with the aforementioned median filtering and FIR low-pass filtering to further improve the stability of multi-channel acquired data.
[0123] After data acquisition, processing, and storage, the central computing module or supporting analysis software can divide the composite data stream into independent data blocks corresponding to different test conditions based on the operating condition marker records. Specifically, all operating condition marker records and their corresponding time information are extracted from the composite data stream; the operating condition marker records are arranged in chronological order to construct a test timeline containing the start and end times of each operating condition; the original continuous data stream is divided into data blocks corresponding to each independent test condition using the test timeline as the dividing boundary; energy consumption integral calculation and driving distance estimation are performed on each data block, and the energy consumption is divided by the driving distance to output the energy consumption data for each test condition. For example, energy consumption integral, driving mileage, and energy consumption per 100 kilometers can be calculated for each data segment, and a test report can be output with one click.
[0124] The display module can display data calculated in real time by the central computing module, including real-time voltage, current, and power. The display module supports simultaneous display of 24 data items (voltage, current, and power) across 8 channels, and can display recording indicator lights on the screen for data storage by the data logging module. The display also allows for adjustment of the current level, test procedure prompts, and real-time display of the operating condition number and name for on-site confirmation by testing personnel.
[0125] After the test, the operator can connect the device to a PC and export the data file. The accompanying analysis software can automatically identify all markers, divide the raw data stream into independent data segments corresponding to the operating conditions, and then calculate the energy consumption, mileage, and energy consumption per 100 kilometers for each segment. Since all collected data and marker records are stored in the same data file in chronological order and use a unified time base, the operator does not need to remember or manually record the start and end times of each test segment, fundamentally solving the problems of "data without markers" and time synchronization errors among multiple devices in traditional power meters.
[0126] The vehicle energy consumption testing method and apparatus for multiple operating conditions in the above embodiments of the present invention integrates operating condition marker records with electrical parameters and vehicle speed parameters in chronological order to form a composite data stream under a unified time reference, avoiding time synchronization errors caused by traditional separate acquisition and offline manual alignment; by generating operating condition markers through external triggers and automatically constructing a test time axis, it can accurately identify the start time, end time, and operating condition switching point of each test cycle; by performing energy consumption integration and driving distance calculation on independent data blocks respectively, it can automatically output energy consumption data under each operating condition; through multi-type vehicle speed signal interfaces, digital filtering, current nonlinearity compensation, and ping-pong buffer storage, it improves the synchronization, accuracy, and real-time storage reliability of data acquisition.
[0127] An embodiment of the present invention also provides a computing device, including: a processor and a memory storing a computer program, wherein the computer program, when executed by the processor, performs the method described in the above embodiments. All implementations in the above method embodiments are applicable to this embodiment and can achieve the same technical effect.
[0128] In this embodiment of the invention, a computer-readable storage medium is also provided, storing instructions that, when executed on a computer, cause the computer to perform the method described in the above embodiments. All implementations of the methods described in the above embodiments are applicable to this embodiment and can achieve the same technical effect.
[0129] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0130] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0131] In the embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0132] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0133] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0134] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.
[0135] Furthermore, it should be noted that in the apparatus and method of the present invention, it is obvious that the components or steps can be decomposed and / or recombined. These decompositions and / or recombinations should be considered equivalent solutions of the present invention. Moreover, the steps performing the above series of processes can naturally be executed in the order described, but are not necessarily required to be executed in chronological order; some steps can be executed in parallel or independently of each other. Those skilled in the art will understand that all or any step or component of the method and apparatus of the present invention can be implemented in any computing device (including processors, storage media, etc.) or network of computing devices, in hardware, firmware, software, or a combination thereof. This is something that those skilled in the art can achieve by using their basic programming skills after reading the description of the present invention.
[0136] Therefore, the object of the present invention can also be achieved by running a program or a set of programs on any computing device. The computing device can be a known general-purpose device. Therefore, the object of the present invention can also be achieved simply by providing a program product containing program code implementing the method or apparatus. That is, such a program product also constitutes the present invention, and the storage medium storing such a program product also constitutes the present invention. Obviously, the storage medium can be any known storage medium or any storage medium developed in the future. It should also be noted that in the apparatus and method of the present invention, it is obvious that the components or steps can be decomposed and / or recombined. These decompositions and / or recombinations should be considered equivalent to the present invention. Furthermore, the steps performing the above series of processes can naturally be performed in the order described, but are not necessarily required to be performed in chronological order. Some steps can be performed in parallel or independently of each other.
[0137] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for testing automotive energy consumption under multiple operating conditions, characterized in that, include: The system collects electrical parameters and vehicle speed parameters during vehicle operation, including voltage and current signals. In response to a trigger signal generated by an external trigger, a working condition marker record containing time information is generated; The operating condition marker records are associated and integrated with the electrical parameters and vehicle speed parameters in chronological order to form a composite data stream, and the composite data stream is stored in a storage medium in real time. Based on the operating condition marking records, the composite data stream is divided into independent data blocks corresponding to different test operating conditions; Energy consumption calculations are performed on each of the independent data blocks, and power consumption data under each test condition is output.
2. The method for testing vehicle energy consumption under multiple operating conditions according to claim 1, characterized in that, In response to a trigger signal generated by an external trigger, a working condition marker record containing time information is generated, including: Monitor the signal status changes of the trigger signal input interface; When a triggering event is detected, the current system time information is obtained; Generate a working condition tagging record that includes tag type information and the time information; The operating condition marker record is inserted into the composite data stream with a higher priority than the sampled data, and stored in a chronological order with the electrical parameters and vehicle speed parameters collected at the same time.
3. The method for testing vehicle energy consumption under multiple operating conditions according to claim 1, characterized in that, It also includes: digital signal conditioning of the acquired electrical parameters, including: The original sampling sequence of electrical parameters is subjected to a first-stage nonlinear filtering process; The time series after the first-stage nonlinear filtering is then subjected to a second-stage linear filtering process. The first-stage nonlinear filtering process and the second-stage linear filtering process are executed in a serial cascade manner.
4. The method for testing vehicle energy consumption under multiple operating conditions according to claim 3, characterized in that, The first-stage nonlinear filtering process is a median filtering process; The second-stage linear filtering process is a finite-length unit impulse response low-pass filtering process, and the finite-length unit impulse response low-pass filtering process adopts a recursive cumulative sum update method. Each time it is updated, the oldest historical data is replaced and the cumulative sum is updated accordingly.
5. The method for testing vehicle energy consumption under multiple operating conditions according to claim 3, characterized in that, Before performing the second-stage linear filtering on the current signal, nonlinear error compensation is also included: The measurement range of the current signal is pre-divided into multiple continuous intervals, and corresponding compensation parameters are preset for each interval. Based on the range to which the currently collected raw current value belongs, the corresponding compensation parameters are called for correction calculation; The corrected value is used as the input value for the second-stage linear filtering process.
6. The method for testing vehicle energy consumption under multiple operating conditions according to claim 1, characterized in that, Storing composite data streams in real time on storage media includes: Configure at least two buffers in memory; The data collected synchronously from multiple channels is written sequentially into the currently active first buffer in units of data groups. Once the first buffer is full of a predetermined number of data groups, the write operation will be switched to the second buffer, and the data groups that are full in the first buffer will be transferred to the storage medium. During the writing process to the second buffer, the data transfer process to the first buffer is completed, and the process alternates in a loop.
7. The method for testing vehicle energy consumption under multiple operating conditions according to claim 1, characterized in that, Based on the operating condition marking records, the composite data stream is divided into independent data blocks corresponding to different test operating conditions, including: Extract all operating condition marker records and their corresponding time information from the composite data stream; Arrange the marked records of each working condition in chronological order to construct a test timeline that includes the start and end times of each working condition; Using the test time axis as the dividing boundary, the original continuous data stream is divided into data blocks corresponding to each independent test condition; For each data block, the energy consumption integral is calculated and the driving distance is estimated, and the energy consumption is divided by the driving distance.
8. The method for testing vehicle energy consumption under multiple operating conditions according to claim 1, characterized in that, The vehicle speed parameter is accessed from at least two interface types, including bus communication interface, serial communication interface, analog voltage input interface and frequency signal input interface; The vehicle speed signal is decoded according to the signal parsing protocol corresponding to different access interface types. The decoded vehicle speed data and electrical parameter data are then linked and stored on the same time base.
9. The method for testing vehicle energy consumption under multiple operating conditions according to claim 1, characterized in that, Also includes: When collecting electrical and speed parameters during vehicle operation, the collected voltage and current data are aligned in the time domain to calculate the instantaneous power, and the instantaneous power data is associated with the vehicle speed data at the same time and stored in the composite data stream.
10. A device for testing automotive power consumption under multiple operating conditions, characterized in that, The method for testing vehicle energy consumption under multiple operating conditions as described in any one of claims 1 to 9 includes: Central computing module, acquisition module, data recording module, triggering module, display module; The central computing module is connected to the acquisition module, triggering module, data recording module and display module respectively via communication cables; The acquisition module acquires voltage signals, current signals, and vehicle speed signals during vehicle operation; The central computing module receives voltage signals, current signals, and vehicle speed signals collected by the acquisition module, as well as trigger signals from the trigger module; The central computing module calculates power consumption based on the voltage signal, current signal, vehicle speed signal, and trigger signal in chronological order to obtain vehicle power consumption data. The display module receives the vehicle's power consumption data and displays it in real time.
