Voltage detection method and system, vehicle and medium
By automatically collecting and processing the drive motor voltage signal through testing equipment, the problem of low efficiency in manual testing is solved, and the automation and high-precision testing of motor electrical information is realized, which can meet the needs of large-scale production.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GUANGZHOU AUTOMOBILE GROUP CO LTD
- Filing Date
- 2026-01-21
- Publication Date
- 2026-05-12
AI Technical Summary
In existing technologies, motor voltage detection relies on manual operation, which is inefficient and prone to errors, making it difficult to meet the needs of large-scale automated production and testing.
The testing equipment automatically collects the voltage signal of the drive motor after it is powered on, performs continuous group processing, calculates the average value of each group of voltage signals, identifies the drive working time and voltage, and generates test results.
It enables automated, objective, and high-precision detection of motor electrical information, reduces human error, improves testing efficiency, lowers labor costs, and shortens the testing cycle.
Smart Images

Figure CN122017314A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of motor technology, and in particular to a voltage detection method, system, vehicle, and medium. Background Technology
[0002] With the rapid development of automobiles, the performance of drive motors to a certain extent represents the quality of related products in the vehicle body domain. Therefore, testing of each drive motor, especially the detection of electrical information, is of paramount importance. In the existing technology, it is usually necessary to manually collect and check the voltage at both ends of the drive motor using an oscilloscope to confirm whether the voltage magnitude and drive duration of each drive stage meet the system requirements. However, this method of relying on manual testing is not only inefficient, but also prone to judgment errors due to human factors. At the same time, it increases labor costs and testing cycles, making it difficult to adapt to the needs of large-scale, automated production and testing. Summary of the Invention
[0003] In view of the above problems, embodiments of the present invention are proposed to provide a voltage detection method, system, vehicle, and medium that overcomes or at least partially solves the above problems.
[0004] To address the aforementioned problems, this invention discloses a voltage detection method applied to a testing device connected to a drive motor. The method includes: After the drive motor is powered on, the voltage signal of the drive motor is sampled to obtain multiple sets of voltage signals; each set of voltage signals includes multiple voltage signals arranged in chronological order. The arithmetic mean of each voltage signal set is calculated to obtain the average voltage value of each voltage signal set. The driving duration of the drive motor is determined based on the average voltage of each voltage signal set. Determine the average voltage value of the voltage signal set within the driving operating time, and determine it as the driving voltage of the drive motor; Based on the driving operating time and the driving voltage, a driving detection result is generated.
[0005] Optionally, determining the driving duration of the drive motor in the driving state based on the average voltage of each voltage signal set includes: Determine the starting time corresponding to the voltage signal set where the average voltage first exceeds a preset threshold; Determine the end time corresponding to the set of voltage signals for which the average voltage value last exceeds the preset threshold; The driving duration is determined based on the start time and the end time.
[0006] Optionally, sampling the voltage signal of the drive motor to obtain multiple sets of voltage signals includes: The voltage signals sampled at preset time intervals are used as a set of voltage signals; A series of consecutive voltage signals are used to determine the initial voltage signal set; Each time a new set of voltage signals is obtained, the earliest set of voltage signals in the initial voltage signal set is discarded and the new set of voltage signals is added to form a new voltage signal set; The multiple sets of voltage signal sets are determined based on the initial voltage signal set and the multiple new voltage signal sets.
[0007] Optionally, the step of performing an arithmetic mean operation on each set of voltage signals to obtain the average voltage value of each set of voltage signals includes: For each set of voltage signals, M sets of voltage signals are randomly selected from the N sets of voltage signals contained therein, where M is a positive integer less than N; Calculate the arithmetic mean of the M groups of voltage signals, and use it as the voltage average of each voltage signal set.
[0008] Optionally, determining the average voltage of the voltage signal set within the driving operating duration and determining it as the driving voltage of the drive motor includes: The total voltage value is obtained by summing the average voltage values of all voltage signal sets within the driving operation period. Determine the number of voltage signal sets within the drive operating duration; The driving voltage of the drive motor is obtained by dividing the total voltage value by the number of voltage signal sets.
[0009] Optionally, sampling the voltage signal of the drive motor includes: The voltage signal of the drive motor is acquired through the I / O port of the test device at a preset sampling period; the sampling frequency of the test device is lower than the modulation frequency of the voltage signal output by the drive motor.
[0010] Optionally, it also includes: Determine whether the driver detection result meets the driver requirements; If the drive detection result does not meet the drive requirements, a fault message will be output.
[0011] The present invention also discloses a voltage detection system, comprising: Drive motor; A zone controller, connected to the drive motor, is used to power on the drive motor; The testing equipment is connected to both ends of the drive motor and is used to sample the voltage signal of the drive motor after the drive motor is powered on, obtaining multiple sets of voltage signal sets. Each set of voltage signal sets includes multiple voltage signals arranged in chronological order. The arithmetic mean of each set of voltage signal sets is calculated to obtain the average voltage of each set of voltage signal sets. Based on the average voltage of each set of voltage signal sets, the driving duration of the drive motor in the driving state is determined. The average voltage of the voltage signal sets within the driving duration is determined and identified as the driving voltage of the drive motor. Based on the driving duration and the driving voltage, a driving detection result dynamic voltage is generated. Based on the driving duration and the driving voltage, a driving detection result is generated.
[0012] The present invention also discloses a vehicle comprising: a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the steps of the voltage detection method as described above.
[0013] The present invention also discloses a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the voltage detection method described above.
[0014] The embodiments of the present invention have the following advantages: This invention discloses a voltage detection method, system, vehicle, and medium. The invention automatically and continuously samples and groups the voltage signal of the drive motor after power-on using testing equipment, calculates the average value of each group of voltage signals, and then automatically identifies the drive motor's operating time and corresponding drive voltage based on the average value of each group, thereby generating drive detection results. This achieves automated, objective, and high-precision detection of the drive motor's electrical information, effectively reducing errors caused by manual operation, improving testing efficiency, lowering labor costs, and shortening the testing cycle, thus better meeting the needs of large-scale, automated production and testing. Attached Figure Description
[0015] Figure 1 This is a flowchart of the steps of a voltage detection method provided in an embodiment of the present invention; Figure 2 This is a schematic flowchart of a voltage detection method provided in an embodiment of the present invention; Figure 3 This is a structural block diagram of a voltage detection system provided in an embodiment of the present invention. Detailed Implementation
[0016] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0017] One of the core concepts of this invention is that it can automatically sample and group the voltage signal of the drive motor after it is powered on by the testing equipment, calculate the average value of each group of voltage signals, and then automatically identify the driving working time and corresponding driving voltage of the drive motor based on the average value of each group, thereby generating the drive test result. This achieves automated, objective and high-precision detection of the electrical information of the drive motor, effectively reduces the error caused by manual operation, improves testing efficiency, reduces labor costs, shortens the testing cycle, and can better meet the needs of large-scale, automated production and testing.
[0018] Reference Figure 1 The diagram illustrates a step-by-step flowchart of a voltage detection method according to the present invention. This method is applied to a testing device connected to a drive motor and may include the following steps: Step 101: After the drive motor is powered on, the voltage signal of the drive motor is sampled to obtain multiple sets of voltage signals; each set of voltage signals includes multiple voltage signals arranged in chronological order. In this embodiment of the invention, the voltage detection method can be applied to production testing, factory inspection, and on-site maintenance scenarios of various electric equipment using drive motors. For example, on the production line of equipment such as power tools, smart home actuators, industrial automation actuators, and automotive electronic drive systems, the testing equipment can collect the voltage signal in real time throughout the entire process of powering on and starting the drive motor. This method can also be used to diagnose problems such as whether the motor drive circuit is aging, whether the load is abnormal, or whether the motor has difficulty starting, providing objective data for equipment repair and maintenance.
[0019] After the drive motor is powered on, the voltage signal of the drive motor can be continuously and in real time collected by the voltage sampling circuit built into the test equipment, thereby obtaining multiple sets of voltage signals.
[0020] A voltage signal set refers to multiple voltage sampling points arranged in chronological order over a continuous period of time. These sampling points collectively reflect the voltage variation characteristics of the drive motor during that period.
[0021] Test equipment can typically sample the voltage across the drive motor at a fixed sampling frequency to ensure accurate capture of voltage fluctuations during different stages of motor startup, acceleration, and stable operation. Since the drive motor may experience transient phenomena such as startup shocks and current spikes in the initial power-on phase, acquiring multiple sets of voltage signals can provide a rich and reliable raw data foundation for subsequent average value calculations and status judgments, ensuring the accuracy and stability of the test results.
[0022] Step 102: Perform an arithmetic mean operation on each voltage signal set to obtain the average voltage value of each voltage signal set.
[0023] In this embodiment of the invention, the arithmetic mean refers to the sum of all values in a set of data and then divided by the number of data. It can effectively smooth out instantaneous noise, measurement errors, and high-frequency ripples in the voltage signal and the motor during operation, thereby obtaining a more stable value that represents the actual operating voltage of the motor in that time period.
[0024] By averaging each set of voltage signals, the voltage curve, which originally contained a lot of detailed fluctuations, can be compressed into a representative feature value. This feature value can reflect the average operating state of the motor during that time period. This step not only reduces the complexity of subsequent data processing, but also reduces the impact of random noise on the final drive voltage judgment and improves the anti-interference ability of the detection method.
[0025] Step 103: Determine the driving duration of the drive motor based on the average voltage of each voltage signal set.
[0026] In this embodiment of the invention, the driving phase of the drive motor may include forward rotation, stop and reverse rotation of the drive motor, and the driving working time refers to the working time corresponding to the forward rotation, stop and reverse operation of the drive motor.
[0027] The testing equipment can continuously analyze the average voltage values of each group. For example, by setting voltage thresholds, slope changes, or pattern recognition algorithms, it can identify the time periods during which the average voltage value falls within the driving phase.
[0028] For example, when the drive motor starts, its average voltage will quickly rise from the standby voltage to the drive voltage and remain stable. This stable and continuous period of time can be determined as the drive working time. Through this step, the time interval in which the motor is actually in an effective working state can be accurately extracted from the entire power-on process, providing a time boundary for the subsequent calculation of the drive voltage.
[0029] Step 104: Determine the average voltage of the voltage signal set within the driving operation time, and determine it as the driving voltage of the drive motor.
[0030] In this embodiment of the invention, within the driving working time determined in step 103, the average voltage of all corresponding voltage signal sets can be extracted, and these average values can be further processed to determine the driving voltage of the drive motor.
[0031] The driving voltage here refers to the average operating voltage of the motor when driving a load normally. It is an important parameter for evaluating motor performance, the working status of the drive circuit, and the load matching.
[0032] Specifically, the testing equipment can filter out the average voltage values that fall within the driving working time. Then, it can perform calculations such as averaging, weighted averaging, or taking the median value as needed to obtain a more representative final driving voltage value. This can eliminate voltage interference in the initial stage of motor startup, braking stage, or other non-driving states, ensuring that the final driving voltage truly reflects the voltage level of the motor during the effective working period.
[0033] Step 105: Generate drive detection results based on drive working duration and drive voltage.
[0034] In this embodiment of the invention, the drive detection results typically include information such as whether the motor starts normally, whether the drive voltage is within the specified range, whether the drive working time meets the design requirements, and whether there are abnormal voltage fluctuations in the motor.
[0035] The testing equipment can compare the drive voltage with a preset standard voltage range and the drive duration with the theoretical running time to determine whether the motor's drive performance is normal. For example, if the drive voltage deviates significantly from the standard range, it may indicate a fault in the motor drive circuit; if the drive duration is too short, it may mean that the motor has failed to drive the load normally or that there are mechanical jamming problems. Through this step, the results of all the previous data processing can be transformed into practically meaningful test conclusions, providing a basis for motor quality testing, fault diagnosis, or performance evaluation.
[0036] This invention discloses a voltage detection method that automatically samples and groups the voltage signal of the drive motor after it is powered on by a testing device, calculates the average value of each group of voltage signals, and then automatically identifies the driving duration and corresponding driving voltage of the drive motor based on the average value of each group, thereby generating a drive detection result. This method achieves automated, objective, and high-precision detection of the electrical information of the drive motor, effectively reduces errors caused by manual operation, improves testing efficiency, reduces labor costs, and shortens the testing cycle, thus better meeting the needs of large-scale, automated production and testing.
[0037] In one embodiment of the present invention, determining the driving duration of the drive motor based on the average voltage of each voltage signal set includes: determining the start time corresponding to the voltage signal set whose average voltage first exceeds a preset threshold; determining the end time corresponding to the voltage signal set whose average voltage last exceeds the preset threshold; and determining the driving duration based on the start time and the end time.
[0038] In this embodiment of the invention, when determining the driving duration of the drive motor based on the average voltage of each voltage signal set, the test equipment can continuously compare the average voltage of each set with a preset voltage threshold. This preset threshold is usually set based on the typical voltage range of the drive motor in the driving state and can be used to distinguish between the driving state and the non-driving state of the motor.
[0039] When the testing equipment detects that the average voltage of a certain set of voltage signals is greater than the preset threshold for the first time, it is considered that the drive motor has entered a stable driving state. At this time, the sampling time corresponding to the set of voltage signals is recorded as the start time of the driving operation duration. Subsequently, the testing equipment can continue to monitor the average voltage of each subsequent set. When it is found that the average voltage of a certain set is greater than the preset threshold for the last time, it indicates that the drive motor is about to exit the driving stage. At this time, the sampling time corresponding to the set of voltage signals is recorded as the end time of the driving operation duration. Finally, the testing equipment calculates the time difference between the end time and the start time. This time difference is the actual duration of the drive motor in the driving stage during this power-on process, which is the driving operation duration.
[0040] Taking the electric curtain drive motor in a smart home as an example, its normal drive voltage is usually around 12V. The test equipment can set the preset threshold to 10V. When the electric curtain is started, the motor voltage may rise rapidly from 0V in the initial power-on stage. The average value of the first few sets of voltage signals may be 2V, 5V, and 8V, none of which reach the 10V threshold. When the average value of a certain set of voltages first reaches 11V, the test equipment records this moment as the start time of the drive operation, indicating that the motor has entered a stable drive state and has begun to drive the curtain fabric. As the curtain gradually approaches the closed position, the motor load increases, and the average voltage may gradually decrease. When the average value of a certain set of voltages drops to 9V, and the average value of all subsequent sets is below 10V, the test equipment records the moment when the average value of the previous set of voltages is 10.5V as the end time, considering that the motor has exited the drive state. The time difference between the start time and the end time is the drive operation time for the motor to complete one curtain closing action. Through this process, the test equipment can automatically determine whether the electric curtain motor can complete the drive action within the specified time and whether the drive voltage is stable.
[0041] This invention can accurately and automatically determine the driving duration of the drive motor by identifying the first and last times when the average voltage exceeds a preset threshold, effectively distinguishing between driving and non-driving states, improving the reliability and consistency of driving duration detection, and providing a precise time interval for subsequent driving voltage calculation and driving performance evaluation, thereby improving the accuracy and practicality of the entire voltage detection method.
[0042] In one embodiment of the present invention, the voltage signal of the drive motor is sampled to obtain multiple sets of voltage signals, including: taking the voltage signals sampled at preset time intervals as a set of voltage signals; determining multiple consecutive sets of voltage signals as an initial set of voltage signals; discarding the earliest set of voltage signals in the initial set of voltage signals and adding the new set of voltage signals to form a new set of voltage signals each time a new set of voltage signals is obtained; and determining multiple sets of voltage signals based on the initial set of voltage signals and multiple new sets of voltage signals.
[0043] In this embodiment of the invention, when sampling the voltage signal of the drive motor to obtain multiple sets of voltage signals, the testing equipment can continuously sample the voltage at both ends of the drive motor using a very short preset time interval. The voltage signals obtained from each sampling are arranged in chronological order to form a set of voltage signals containing multiple continuous voltage sampling points. Subsequently, the testing equipment combines several sets of continuously acquired voltage signals into an initial voltage signal set. As time progresses, whenever the testing equipment obtains a new set of voltage signals, it will discard the earliest set of voltage signals in the initial voltage signal set according to the sliding window processing method, and add the newly acquired set of voltage signals to it, thereby forming a new voltage signal set. By continuously repeating this mechanism of discarding the earliest and adding the latest, the testing equipment can continuously generate multiple new voltage signal sets. The final multiple sets of voltage signals are composed of the initial voltage signal set and all the new voltage signal sets obtained through continuous updates. This method can ensure that each set of voltage signals contains the voltage change information of the motor over a continuous period of time and can reflect the dynamic changes in the motor's operating state in real time, providing continuous, complete, and time-correlated voltage data for subsequent average value calculation and drive state judgment.
[0044] Taking the electric power steering motor of a new energy vehicle as an example, this motor needs to adjust the assist torque in real time according to the operation of the steering wheel during vehicle driving. Its voltage signal will fluctuate rapidly with the change of vehicle driving status. After the motor is powered on, the test equipment samples the motor voltage at a preset time interval of 2 milliseconds. The 10 consecutive voltage sampling points collected within every 2 milliseconds constitute a voltage signal. Assuming that the test equipment first collects the first 5 voltage signals and combines these 5 groups into an initial voltage signal set; when the vehicle turns during driving, the change in motor load causes voltage fluctuations. Each time the test equipment obtains a new voltage signal, it will discard the earliest group in the initial voltage signal set and add the new group to form a new voltage signal set. As the vehicle continues to drive, the test equipment continuously updates the voltage signal set, thereby obtaining multiple voltage signal sets covering the entire steering process. These signal sets can completely reflect the voltage change characteristics of the motor in different stages such as steering start, assist stabilization, and steering end, providing an accurate data basis for subsequent judgment of the motor's driving working time and driving voltage.
[0045] This invention employs a sliding window mechanism to continuously update the voltage signal set, enabling real-time capture of voltage changes in the drive motor over a continuous period of time. This ensures the continuity, integrity, and timeliness of the voltage data, effectively improving the ability to track dynamic changes in the motor's operating state and providing high-precision data support for subsequent voltage average value calculation and drive state identification.
[0046] In one embodiment of the present invention, the arithmetic mean operation is performed on each set of voltage signals to obtain the average voltage value of each set of voltage signals, including: for each set of voltage signals, randomly selecting M sets of voltage signals from the N sets of voltage signals contained therein, where M is a positive integer less than N; calculating the arithmetic mean of the M sets of voltage signals as the average voltage value of each set of voltage signals.
[0047] In this embodiment of the invention, when performing an arithmetic mean operation on each set of voltage signals to obtain the average voltage value of each set of voltage signals, the testing device can randomly select M sets of voltage signals from each set of voltage signals containing N sets of voltage signals, where M is a positive integer less than N. This random selection method can avoid the deviation that may be caused by sampling at fixed locations, and effectively reduce the impact of occasional noise or transient interference on the average value calculation. Subsequently, the testing device calculates the arithmetic mean of each of the M sets of voltage signals, and then sums up these M average values and divides them by M to obtain the final average voltage value of the set of voltage signals.
[0048] Taking the electric air conditioning compressor drive motor of a new energy vehicle as an example, the motor frequently adjusts its load due to changes in cooling demand during vehicle operation. Its voltage signal is easily affected by factors such as vehicle power fluctuations and inverter switching noise. Assuming that a set of voltage signals collected by the test equipment contains N=10 voltage signals, in order to improve the stability of the average value, the test equipment randomly selects M=5 voltage signals from these 10 sets. For example, if the 2nd, 3rd, 6th, 8th, and 9th voltage signals are randomly selected, the test equipment first calculates the arithmetic mean of each of these 5 voltage signals, then adds these 5 average values and divides by 5 to obtain the average voltage of the set of voltage signals. Through this random sampling method, the interference of abnormal voltages affected by transient disturbances on the overall average value can be effectively avoided, making the obtained average voltage value more accurately reflect the actual operating voltage of the compressor motor during that time period, thereby improving the accuracy of motor drive state identification.
[0049] This invention effectively reduces the impact of instantaneous noise and abnormal voltage on the results by randomly selecting a portion of voltage signals from each voltage signal set for average value calculation, thereby improving the stability and reliability of the average voltage value, enhancing the anti-interference ability of motor operating status judgment, and thus improving the accuracy and robustness of the entire voltage detection method.
[0050] In one embodiment of the present invention, determining the average voltage of a set of voltage signals within the driving operating time and determining it as the driving voltage of the drive motor includes: accumulating the average voltage of all voltage signal sets within the driving operating time to obtain a total voltage value; determining the number of voltage signal sets within the driving operating time; and dividing the total voltage value by the number of voltage signal sets to obtain the driving voltage of the drive motor.
[0051] In this embodiment of the invention, when determining the driving voltage of the drive motor, the testing equipment first filters out all voltage signal sets falling within the previously identified driving duration from all collected voltage signal sets, and extracts the average voltage value corresponding to each of these voltage signal sets. Subsequently, the testing equipment accumulates these average voltage values within the driving duration to obtain a total voltage value that reflects the total voltage of the entire driving phase. At the same time, the testing equipment counts the number of voltage signal sets included within the driving duration, which represents the total number of effective voltage samples in the driving phase. Finally, the testing equipment divides the total voltage value by the number of voltage signal sets and obtains a value that represents the average operating voltage of the drive motor in the entire driving state through an arithmetic average, and determines this value as the driving voltage of the drive motor.
[0052] Taking the electric power steering (EPS) motor of a new energy vehicle as an example, during vehicle operation, when the driver turns the steering wheel, the EPS motor enters the driving state to provide steering assistance. Assume that the test equipment identifies a total of 5 voltage signal sets during the driving operation time, with the average voltage of each voltage signal set being 11.8V, 12.1V, 11.9V, 12.0V, and 12.2V respectively. The test equipment first adds up all 5 voltage averages to obtain the total voltage value, for example, the sum is 60V. Then, it counts the number of voltage signal sets, i.e., 5 sets. Finally, it divides the total voltage value of 60V by the number 5 to obtain the driving voltage of 12V. This value is the average driving voltage of the EPS motor during this steering process.
[0053] This invention effectively eliminates the influence of instantaneous voltage fluctuations and measurement noise by averaging all voltage values over the driving operation period, resulting in a more stable and accurate driving voltage. This improves the reliability and consistency of the assessment of the driving motor's operating status and provides precise data support for motor performance testing and fault diagnosis.
[0054] In one embodiment of the present invention, sampling the voltage signal of the drive motor includes: acquiring the voltage signal of the drive motor through the I / O port of the test device at a preset sampling period; the sampling frequency of the test device is lower than the modulation frequency of the voltage signal output by the drive motor.
[0055] In this embodiment of the invention, when sampling the voltage signal of the drive motor, the testing equipment can continuously collect the voltage signal at both ends of the motor using a pre-set fixed sampling period. This sampling period is usually determined by the sampling frequency of the I / O port of the testing equipment, for example, once every millisecond or every few milliseconds, thus forming a voltage sampling sequence arranged in chronological order. It should be noted that in this embodiment of the invention, the sampling frequency of the testing equipment is set to be lower than the modulation frequency of the output voltage signal of the drive motor. Here, the modulation frequency usually refers to the switching frequency of the PWM modulation signal output by the motor drive circuit. This frequency is generally much higher than the I / O sampling frequency of the testing equipment, for example, tens to hundreds of kilohertz, while the sampling frequency of the testing equipment may only be several kilohertz or lower. Since the sampling frequency is lower than the modulation frequency, the voltage signal collected by the testing equipment is actually an undersampling of the high-frequency PWM modulation signal. Each voltage value collected essentially reflects the average level of the high-frequency PWM voltage within the sampling period, rather than the instantaneous value. In this way, the testing equipment can obtain an equivalent average voltage that reflects the actual working state of the motor without complex high-speed sampling circuits, thereby reducing equipment costs and data processing pressure while ensuring detection accuracy.
[0056] Taking the drive motor of a new energy vehicle as an example, its inverter typically uses a PWM modulation frequency of around 20kHz to drive the motor, while the sampling frequency of the I / O port of the test equipment on the vehicle may only be 1kHz, far lower than the modulation frequency of 20kHz. When the test equipment collects the motor voltage with a sampling period of 1kHz, each sampling point is actually a reflection of the average voltage value of the 20kHz high-frequency PWM signal within 1 millisecond. For example, when the PWM duty cycle is 80%, its average voltage is about 80% of the bus voltage, and the voltage value collected by the test equipment is close to this average level. Through this undersampling method, the test equipment can obtain the equivalent operating voltage of the motor under different load conditions with lower cost and computing resources, which can be used for subsequent drive state identification, drive voltage calculation and fault diagnosis.
[0057] This invention achieves an equivalent average voltage reflecting the actual operating state of the motor by undersampling at a sampling frequency lower than the motor voltage modulation frequency, without relying on a high-speed sampling circuit. This reduces the hardware cost and data processing burden of the testing equipment while ensuring the effectiveness and reliability of voltage detection, thus achieving a balance between low cost and high precision.
[0058] In one embodiment of the present invention, the method further includes: determining whether the drive detection result meets the drive requirements; if the drive detection result does not meet the drive requirements, then outputting fault information.
[0059] In this embodiment of the invention, after generating the drive detection result, the test equipment can further compare the drive detection result with the preset drive requirements. The drive requirements typically include multiple evaluation indicators such as whether the drive voltage is within the specified range, whether the drive working time reaches the design value, and whether the voltage fluctuation is abnormal. These indicators are pre-configured based on the performance parameters of the drive motor, application scenario requirements, and safety specifications.
[0060] The testing equipment can compare the actual drive voltage, drive duration, and other test results one by one with the corresponding standard thresholds to determine whether the actual drive state of the motor meets expectations. If the comparison results show that the drive test results meet all drive requirements, the drive motor is judged to be working normally. Conversely, if any indicator in the test results does not meet the drive requirements, such as drive voltage being too high or too low, drive duration being too short, or voltage fluctuation exceeding the allowable range, the testing equipment can immediately generate and output corresponding fault information. This fault information can include fault type, fault parameters, fault time, etc., so that operators or host computer systems can promptly understand the abnormal situation of the motor and take appropriate measures.
[0061] Taking the electric air conditioning compressor drive motor of a new energy vehicle as an example, its drive requirements stipulate that the drive voltage should be between 260V and 320V, and the drive duration should be no less than 5 seconds. In a voltage test, the test equipment calculated the drive voltage to be 240V, which is significantly lower than the minimum requirement. At the same time, the drive duration was only 3 seconds, which did not meet the specified time. After comparing these test results with the preset drive requirements, the test equipment determined that the drive test results did not meet the drive requirements and output fault information, such as "drive voltage too low" or "drive duration insufficient". After receiving the fault information, the vehicle controller can immediately take measures such as limiting the operation of the air conditioning, prompting the driver to check the system, or entering the protection mode to avoid system damage or affecting vehicle comfort due to abnormal compressor drive.
[0062] This invention compares the drive detection results with preset drive requirements and outputs fault information when the requirements are not met, which can promptly detect abnormal states of the drive motor, improve the safety and reliability of the motor drive system, provide a clear basis for subsequent fault diagnosis and maintenance, and effectively avoid equipment damage or performance degradation caused by drive abnormalities.
[0063] like Figure 2The diagram illustrates a voltage detection method according to an embodiment of the present invention. First, a suitable power supply voltage can be set, and different power supply voltage values can be set to adapt to different application scenarios. Then, a corresponding test environment circuit is built. Next, the voltage signals at both ends of the drive motor are collected through the test equipment. Finally, the working time and drive voltage value of the motor drive are calculated based on the collected voltage signals, thereby completing the evaluation and analysis of the drive working status.
[0064] This invention discloses a voltage detection method. The method involves automatically sampling and grouping the voltage signal of the drive motor after it is powered on using a testing device. The average value of each group of voltage signals is calculated, and the driving duration and corresponding driving voltage of the drive motor are automatically identified based on the average value of each group, thereby generating a drive detection result. This method achieves automated, objective, and high-precision detection of the electrical information of the drive motor, effectively reducing errors caused by manual operation, improving testing efficiency, reducing labor costs, and shortening the testing cycle. It can better meet the needs of large-scale, automated production and testing.
[0065] like Figure 3 The diagram illustrates a structural block diagram of a voltage detection system provided in an embodiment of the present invention, comprising: Drive motor 201; The area controller 202 is connected to the drive motor and is used to power on the drive motor; The testing device 203 is connected to both ends of the drive motor and is used to sample the voltage signal of the drive motor after the drive motor is powered on, obtaining multiple sets of voltage signal sets. Each set of voltage signal sets includes multiple voltage signals arranged in chronological order. The arithmetic mean of each set of voltage signal sets is calculated to obtain the average voltage of each set of voltage signal sets. The drive operating time of the drive motor is determined based on the average voltage of each set of voltage signal sets. The average voltage of the voltage signal sets within the drive operating time is determined and identified as the drive voltage of the drive motor. The drive detection result dynamic voltage is generated based on the drive operating time and the drive voltage. The drive detection result is generated based on the drive operating time and the drive voltage.
[0066] In one embodiment of the present invention, the testing device 203 is used to determine the start time corresponding to the voltage signal set where the average value of the drive motor voltage first exceeds a preset threshold; to determine the end time corresponding to the voltage signal set where the average value of the drive motor voltage last exceeds the preset threshold; and to determine the drive motor operating time based on the drive motor start time and drive motor end time.
[0067] In one embodiment of the present invention, the testing device 203 is used to take the voltage signals of the drive motor sampled at preset time intervals as a set of voltage signals; determine multiple consecutive sets of voltage signals as an initial voltage signal set; discard the earliest set of voltage signals in the initial voltage signal set of the drive motor and add the new set of voltage signals of the drive motor to form a new voltage signal set; determine multiple sets of voltage signals of the drive motor based on the initial voltage signal set of the drive motor and multiple new voltage signal sets of the drive motor.
[0068] In one embodiment of the present invention, the test device 203 is used to randomly select M voltage signals from N voltage signals for each set of voltage signals of the drive motor, where M is a positive integer less than N; and calculate the arithmetic mean of the M voltage signals of the drive motor as the average voltage of each set of voltage signals of the drive motor.
[0069] In one embodiment of the present invention, the testing device 203 is used to accumulate the average voltage of all voltage signal sets within the driving time of the drive motor to obtain a total voltage value; determine the number of voltage signal sets within the driving time of the drive motor; and divide the total voltage value of the drive motor by the number of voltage signal sets of the drive motor to obtain the driving voltage of the drive motor.
[0070] In one embodiment of the present invention, the test device 203 is used to acquire the voltage signal of the drive motor through the I / O port of the drive motor test device at a preset sampling period; the sampling frequency of the drive motor test device is lower than the modulation frequency of the voltage signal output by the drive motor.
[0071] In one embodiment of the present invention, the testing device 203 is further used to determine whether the drive motor drive test result meets the drive requirements; if the drive motor drive test result does not meet the drive requirements, then a fault message is output.
[0072] This invention discloses a voltage detection system that automatically and continuously samples and groups the voltage signal of the drive motor after it is powered on by the testing equipment, calculates the average value of each group of voltage signals, and then automatically identifies the driving duration and corresponding driving voltage of the drive motor based on the average value of each group, thereby generating drive detection results. This system realizes automated, objective, and high-precision detection of the electrical information of the drive motor, effectively reduces errors caused by manual operation, improves testing efficiency, reduces labor costs, and shortens the testing cycle, thus better meeting the needs of large-scale, automated production and testing.
[0073] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.
[0074] This invention also provides a vehicle, including: a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, it implements the steps of the voltage detection method described above and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0075] The present invention also discloses a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the voltage detection method as described in any one of claims 1-7.
[0076] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0077] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0078] Embodiments of the present invention are described with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0079] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0080] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0081] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.
[0082] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.
[0083] The present invention has provided a detailed description of a voltage detection method, system, vehicle, and medium. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, those skilled in the art will recognize that, based on the ideas of the present invention, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A voltage detection method, characterized in that, The method is applied to a testing device connected to a drive motor, and includes: After the drive motor is powered on, the voltage signal of the drive motor is sampled to obtain multiple sets of voltage signals; each set of voltage signals includes multiple voltage signals arranged in chronological order. The arithmetic mean of each voltage signal set is calculated to obtain the average voltage value of each voltage signal set. The driving duration of the drive motor is determined based on the average voltage of each voltage signal set. Determine the average voltage value of the voltage signal set within the driving operating time, and determine it as the driving voltage of the drive motor; Based on the driving operating time and the driving voltage, a driving detection result is generated.
2. The voltage detection method according to claim 1, characterized in that, The step of determining the driving duration of the drive motor based on the average voltage of each voltage signal set includes: Determine the starting time corresponding to the voltage signal set where the average voltage first exceeds a preset threshold; Determine the end time corresponding to the set of voltage signals for which the average voltage value last exceeds the preset threshold; The driving duration is determined based on the start time and the end time.
3. The voltage detection method according to claim 1, characterized in that, The voltage signal of the drive motor is sampled to obtain multiple sets of voltage signals, including: The voltage signals sampled at preset time intervals are used as a set of voltage signals; A series of consecutive voltage signals are used to determine the initial voltage signal set; Each time a new set of voltage signals is obtained, the earliest set of voltage signals in the initial voltage signal set is discarded and the new set of voltage signals is added to form a new voltage signal set; The multiple sets of voltage signal sets are determined based on the initial voltage signal set and the multiple new voltage signal sets.
4. The voltage detection method according to claim 1, characterized in that, The step of performing an arithmetic mean operation on each set of voltage signals to obtain the average voltage value of each set of voltage signals includes: For each set of voltage signals, M sets of voltage signals are randomly selected from the N sets of voltage signals contained therein, where M is a positive integer less than N; Calculate the arithmetic mean of the M groups of voltage signals, and use it as the voltage average of each voltage signal set.
5. The voltage detection method according to claim 1, characterized in that, The step of determining the average voltage value of the voltage signal set within the driving operating time and determining it as the driving voltage of the drive motor includes: The total voltage value is obtained by summing the average voltage values of all voltage signal sets within the driving operation period. Determine the number of voltage signal sets within the drive operating duration; The driving voltage of the drive motor is obtained by dividing the total voltage value by the number of voltage signal sets.
6. The voltage detection method according to claim 1, characterized in that, The sampling of the voltage signal of the drive motor includes: The voltage signal of the drive motor is acquired through the I / O port of the test device at a preset sampling period; the sampling frequency of the test device is lower than the modulation frequency of the voltage signal output by the drive motor.
7. The voltage detection method according to claim 1, characterized in that, Also includes: Determine whether the driver detection result meets the driver requirements; If the drive detection result does not meet the drive requirements, a fault message will be output.
8. A voltage detection system, characterized in that, include: Drive motor; A zone controller, connected to the drive motor, is used to power on the drive motor; The testing equipment is connected to both ends of the drive motor and is used to sample the voltage signal of the drive motor after the drive motor is powered on to obtain multiple sets of voltage signals. Each set of voltage signals includes multiple voltage signals arranged in chronological order. The arithmetic mean of each set of voltage signals is calculated to obtain the average voltage of each set of voltage signals. The driving duration of the drive motor is determined based on the average voltage of each set of voltage signals. Determine the average voltage value of the voltage signal set within the driving operating time, and determine it as the driving voltage of the drive motor; Based on the driving operating time and the driving voltage, a driving detection result dynamic voltage is generated; based on the driving operating time and the driving voltage, a driving detection result is generated.
9. A vehicle, characterized in that, include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the steps of the voltage detection method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the steps of the voltage detection method as described in any one of claims 1-7.