Off-board test method and apparatus for vehicle driving electric motor, and device and medium
By obtaining test configuration files and changing communication timing, the problems of low efficiency and stability in off-vehicle testing of 48V motors were solved, achieving efficient and accurate motor testing and greatly reducing maintenance costs and time.
Patent Information
- Application Number
- PCT/CN2025/092811
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-05-29
- Filing Date
- 2025-05-06
- Publication Date
- 2025-12-04
AI Technical Summary
Existing 48V motor off-vehicle testing methods are inefficient and cannot guarantee test stability. Traditional methods require disassembling the motor for repair before testing, which is time-consuming and labor-intensive.
By acquiring a test configuration file that matches the specifications of the motor under test, configuring the communication link, changing the communication timing, sending continuous test commands, and determining the test results, the conflict between the link holding command and the test command is avoided, thus improving communication efficiency.
Without the need for link-keeping commands, the efficiency of test command transmission is improved, greatly reducing the maintenance cost and time of 48V motors.
Smart Images

Figure CN2025092811_04122025_PF_FP_ABST
Abstract
Description
Vehicle driving motor off-vehicle detection method, device, equipment and medium
[0001] The present application is based on the Chinese invention application No. 202410682155.1, filed on May 29, 2024, entitled "Vehicle driving motor off-vehicle detection method, device, equipment and medium", and claims priority thereto. TECHNICAL FIELD
[0002] The present application is applicable to the new energy technology field, and particularly relates to a vehicle driving motor off-vehicle detection method, device, equipment and medium. BACKGROUND
[0003] With the development of clean energy, in order to meet the requirements of energy saving and emission reduction, new technologies are introduced in the development of automobiles, for example, 24V, 48V and other motor and internal combustion engine light hybrid systems, which have the characteristics of low investment, obvious energy saving and emission reduction, and can significantly improve the power of vehicle-mounted power supply.
[0004] For example, a standard 48V system is composed of three parts: a motor, a lithium ion battery pack and a DC-DC converter. The core working principle is that when the output torque of the automobile engine is insufficient or the engine is operating in a non-efficient zone, the power generation and driving integrated machine acts as a driving motor to consume the power of the 48V battery to provide torque, and when the output torque of the engine is sufficient or the battery power is insufficient, the power generation and driving integrated machine acts as a generator to store power into the 48V battery.
[0005] The automobile 48V system has the performance in different working conditions such as automatic start-stop, energy recovery, acceleration assistance, cruise assistance and coasting assistance. Due to the design concept and working principle of the 48V system, the 48V system has obvious advantages compared with the 12V start-stop system and other hybrid power systems.
[0006] With the increase of the number of such hybrid electric vehicles, and the inevitable damage of 48V motors, there are certain difficulties in maintenance and detection. The traditional maintenance and detection need to disassemble the motor for maintenance, and after maintenance, the motor is installed back into the vehicle to test whether it has been repaired, and if the test is abnormal, it needs to be disassembled and repaired again. This process is time-consuming and labor-intensive. The existing method can detect the disassembled and repaired motor off-vehicle by configuring a battery, a DC-DC converter and other lines on site. However, the efficiency of detecting the 48V motor in sequence is low, and the stability of the test cannot be guaranteed.
[0007] Therefore, how to improve the process of motor off-vehicle detection to improve the off-vehicle detection efficiency has become a problem to be solved. SUMMARY
[0008] Embodiments of the present application provide a vehicle driving motor off-vehicle detection method, device, equipment and medium, to solve the problem of how to improve the process of motor off-vehicle detection, and improve the off-vehicle detection efficiency.
[0009] A vehicle driving motor off-vehicle detection method, applied to a detection device, comprising:
[0010] After successfully connecting the motor to be detected with the detection device, a test configuration file matching the specifications of the motor to be detected is obtained, and the motor to be detected is configured for a communication link according to the test configuration file, so as to obtain a communication link between the motor to be detected and the detection device;
[0011] The holding operation of the communication link is stopped, the communication timing of the communication link is changed, the changed communication timing is obtained, and the changed communication timing is used to make the detection device send continuous test instructions to the motor to be detected;
[0012] A test instruction set matching the specifications of the motor to be detected is obtained, and each test instruction in the test instruction set is sent to the motor to be detected in turn based on the changed communication timing, and the test instruction is used to enable the motor to be detected to respond to determine the detection result according to the operation after the response.
[0013] A vehicle driving motor off-vehicle detection device, applied to a detection device, comprising:
[0014] A communication configuration module is configured to, after successfully connecting the motor to be detected with the detection device, obtain a test configuration file matching the specifications of the motor to be detected, and configure the motor to be detected for a communication link according to the test configuration file, so as to obtain a communication link between the motor to be detected and the detection device;
[0015] A link update module is configured to stop the holding operation of the communication link, change the communication timing of the communication link, obtain the changed communication timing, and use the changed communication timing to make the detection device send continuous test instructions to the motor to be detected;
[0016] An off-vehicle test module is configured to obtain a test instruction set matching the specifications of the motor to be detected, and send each test instruction in the test instruction set to the motor to be detected in turn based on the changed communication timing, and use the test instruction to enable the motor to be detected to respond to determine the detection result according to the operation after the response.
[0017] A computer device comprises a memory, a processor, and a readable storage medium stored in the memory and executable on the processor, wherein the computer device corresponds to a detection device, and the processor implements the following steps when the readable storage medium is executed:
[0018] After the to-be-detected motor is successfully connected with the detection device, a test configuration file matching the specification of the to-be-detected motor is acquired, and the to-be-detected motor is configured for a communication link according to the test configuration file, so as to obtain the communication link between the to-be-detected motor and the detection device.
[0019] The holding operation on the communication link is stopped, the communication timing of the communication link is changed, and a changed communication timing is obtained, wherein the changed communication timing is used to enable the detection device to send continuous test instructions to the to-be-detected motor.
[0020] A test instruction set matching the specification of the to-be-detected motor is acquired, and each test instruction in the test instruction set is sent to the to-be-detected motor in sequence based on the changed communication timing, wherein the test instruction is used to enable the to-be-detected motor to respond, so as to determine a detection result according to the operation condition after the response.
[0021] One or more readable storage media storing computer readable instructions, wherein the computer readable instructions are stored in the detection device, and the computer readable instructions are executed by one or more processors to enable the one or more processors to perform the following steps:
[0022] After the to-be-detected motor is successfully connected with the detection device, a test configuration file matching the specification of the to-be-detected motor is acquired, and the to-be-detected motor is configured for a communication link according to the test configuration file, so as to obtain the communication link between the to-be-detected motor and the detection device.
[0023] The holding operation on the communication link is stopped, the communication timing of the communication link is changed, and a changed communication timing is obtained, wherein the changed communication timing is used to enable the detection device to send continuous test instructions to the to-be-detected motor.
[0024] A test instruction set matching the specification of the to-be-detected motor is acquired, and each test instruction in the test instruction set is sent to the to-be-detected motor in sequence based on the changed communication timing, wherein the test instruction is used to enable the to-be-detected motor to respond, so as to determine a detection result according to the operation condition after the response.
[0025] The application obtains a test configuration file matched with the specification of the motor to be detected after the motor to be detected is successfully connected with the detection device, performs communication link configuration on the motor to be detected according to the test configuration file, obtains a communication link between the motor to be detected and the detection device, stops the link maintenance operation, changes the communication timing of the communication link, obtains the changed communication timing, obtains a test instruction set matched with the specification of the motor to be detected, and sends each test instruction in the test instruction set to the motor to be detected in turn based on the changed communication timing, so as to enable the motor to be detected to respond, determine the detection result according to the operation condition after the response, and prevent the conflict between the link maintenance instruction and the test instruction without sending the link maintenance instruction. The changed communication timing is used to enable the detection device to send continuous test instructions to the motor to be detected, so as to maintain the effectiveness of the communication link without the link maintenance, effectively improve the efficiency of the test instruction transmission to the motor, and improve the off-vehicle test efficiency of the motor. BRIEF DESCRIPTION OF DRAWINGS
[0026] In order to more clearly illustrate the technical solutions of the embodiments of the application, the drawings needed to be used in the description of the embodiments of the application will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the application, and other drawings can be obtained by those skilled in the art without creative labor.
[0027] FIG. 1 is a schematic diagram of an application environment of an off-vehicle detection method of a vehicle driving motor according to an embodiment of the application;
[0028] FIG. 2 is a flowchart of an off-vehicle detection method of a vehicle driving motor according to an embodiment of the application;
[0029] FIG. 3 is a flowchart of an off-vehicle detection method of a vehicle driving motor according to an embodiment of the application;
[0030] FIG. 4 is a flowchart of an off-vehicle detection method of a vehicle driving motor according to an embodiment of the application;
[0031] FIG. 5 is a flowchart of an off-vehicle detection method of a vehicle driving motor according to an embodiment of the application;
[0032] FIG. 6 is a structural schematic diagram of an off-vehicle detection device of a vehicle driving motor according to an embodiment of the application;
[0033] FIG. 7 is a structural schematic diagram of a computer device according to an embodiment of the application. DETAILED DESCRIPTION
[0034] With reference to the drawings and in terms of the examples described herein, the technical solutions in the examples will be described in a clear and complete manner. Obviously, the described examples are only some, but not all, of the examples of the present application. Based on the examples described herein, all other examples obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.
[0035] To illustrate the technical solutions of the present application, the following will be described by specific examples.
[0036] The off-vehicle detection method of the vehicle driving motor provided in the example one can be applied in the application environment as shown in FIG. 1. The detection device is used to carry the off-vehicle detection method. The measured motor is disassembled from the vehicle. The vehicle can be a pure electric vehicle, a light hybrid oil-electric vehicle, or a plug-in hybrid oil-electric vehicle. The measured motor is a device driven by a driving battery in the vehicle. There is no association between the detection device and the measured motor in the initial state. The detection device is connected with the measured motor when the measured motor is tested. In addition, a corresponding driving battery or energy storage capacitor needs to be configured to connect the measured motor for power supply in the off-vehicle state of the motor. The detection device can include, but is not limited to, a palm computer, a desktop computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cloud computer device, a personal digital assistant (PDA), and other computer devices.
[0037] Referring to FIG. 2, it is a flowchart of the off-vehicle detection method of the vehicle driving motor provided in the example two. The off-vehicle detection method is applied to the detection device in FIG. 1. As shown in FIG. 2, the off-vehicle detection method of the vehicle driving motor can include the following steps:
[0038] In step S201, after the to-be-detected motor is successfully connected with the detection device, a test configuration file matched with the specification of the to-be-detected motor is obtained. The to-be-detected motor is configured in communication link according to the test configuration file, and the communication link between the to-be-detected motor and the detection device is obtained.
[0039] In the example, the to-be-detected motor and the detection device are described in the above example one. The execution of the subsequent steps is triggered after the detection device and the to-be-detected motor are successfully connected. Of course, the off-vehicle detection method can be packaged into an application program (APP) in the detection device. The user triggers the APP to start in the detection device, and provides a corresponding operation interface to guide the user to complete the connection of the to-be-detected motor and the detection device.
[0040] According to the specification of the motor to be detected, a corresponding test configuration file can be matched, wherein the test configuration file includes communication interface, parameters and the like, for example, protocol type, handshake method and handshake parameters, for example, command default flag, link maintenance time and identification, packaging method and packaging parameters, for example, requested byte interval time, frame interval time, timeout time, in addition, baud rate, data bits, parity bits, transmit-receive IO and the like, so that the detection motor and the detection device can be well matched, and the communication link between the detection motor and the detection device is obtained according to the test configuration file, and the communication is realized, which lays a foundation for instruction transmission and the like.
[0041] In an embodiment, test configuration files of various types of motors are designed in advance and stored in a corresponding database, which can be a local library or a cloud database. For example, 48V motors, 24V motors and the like. In implementation, the identification parameter of the motor is used to match the corresponding test configuration file from the database, or the corresponding motor selection identification is provided in the interface of the APP, and the user can find the test configuration file of the corresponding motor type by selection, and the test configuration file selected by the user needs to be further determined by motor specification matching before testing.
[0042] In this step, through the analysis of the 48V motor of the new energy vehicle, the vehicle type menu selection and the communication related parameters are designed into a library for corresponding function processing according to the parameter configuration value in the diagnostic code.
[0043] In an embodiment, the user can select the corresponding test configuration file of the motor type in the opened APP, and through the script configuration of the test configuration file, the off-vehicle diagnosis connection mode of the detection device and the selected motor type can be given, for example, the value "MSG(4);STATUS(3);" configured in the script can be used to prompt the user to use the 6+14 jumper of the on-board diagnostic system (OBD) to connect the internal controller area network bus (CAN) interface of the 48V motor.
[0044] In step S202, the maintenance operation of the communication link is stopped, the communication timing of the communication link is changed, the changed communication timing is obtained, and the changed communication timing is used to make the detection device send continuous test instructions to the motor to be detected.
[0045] In the embodiment, the communication link needs to be maintained by performing the corresponding maintaining instruction in time to maintain the communication between the detection device and the motor to be detected. The communication link is stopped by not sending the corresponding maintaining instruction, so that the conflict between the maintaining instruction and the corresponding test instruction can be effectively avoided, the sending of the instruction is reduced, and the communication efficiency is improved.
[0046] When there is an initial communication timing sequence between the detection device and the motor to be detected, the initial communication timing sequence is in accordance with the timing sequence when the motor is running in the vehicle. When the off-vehicle test is directly observed from the outside, the operation of the motor to be detected can be performed without the collection and analysis of the instruction feedback, and therefore, some special communication timing sequence can be used to replace the initial communication timing sequence.
[0047] Specifically, since the detection device does not need to receive the return value of the instruction when the motor is tested, in order to transmit the instruction to the motor more efficiently, all the test instructions are continuously sent, which is matched with the stopping of the maintaining of the communication link, the continuous test instructions can ensure the maintaining of the communication link, and the transmission efficiency of the test instruction is improved, and the test efficiency of the motor is effectively improved.
[0048] Optionally, the communication timing sequence of the communication link is changed to obtain a changed communication timing sequence, and the method further includes:
[0049] The byte interval time of the test instruction sent by the detection device in the communication link is changed to 0.
[0050] The byte interval time of the test instruction sent by the detection device in the communication link is changed to 0.
[0051] Optionally, the communication timing sequence of the communication link is changed to obtain a changed communication timing sequence, and the method further includes:
[0052] The interval time between the end of the current test instruction and the sending of the next test instruction by the detection device is changed to a first preset time value.
[0053] The first preset time value is less than the time value representing the interval between the end of the current test instruction and the sending of the next test instruction by the detection device in the initial moment.
[0054] Optionally, the first preset time value is any time value in 3000ms-5000ms. If the first preset time value is less than 3000ms, interference between data communications may occur. In general, data communication of a test instruction can be completed within 5000ms. If the first preset time value is greater than 5000ms, there may be a waiting time in the execution of the instruction, resulting in low efficiency. Therefore, the first preset time value is set to any time value in 3000ms-5000ms, which can ensure efficiency and prevent signal interference.
[0055] In the above embodiment, the changed communication timing is set as CCommEcu::SetCommTime(0, 5, 0, 0), wherein the first parameter is the byte interval time requested by the detection device, the second parameter is the interval time between the end of the motor response and the start of the new request of the detection device, the third parameter is the interval time between the request of the detection device and the response of the motor, and the fourth parameter is the byte interval time of the motor response.
[0056] By setting the byte interval time to zero and the response instruction interval time to zero, the time can be shortened to the maximum extent while meeting the format requirements of the test instruction. In addition, the interval time between the end of the motor response and the start of the new request of the detection device is set to 5s to meet the complete execution of a test instruction by the motor.
[0057] In step S203, a test instruction set matching the specification of the to-be-detected motor is obtained, and each test instruction in the test instruction set is sent to the to-be-detected motor in sequence based on the changed communication timing. The test instruction is used to enable the to-be-detected motor to respond, so as to determine the detection result according to the running condition after the response.
[0058] In this embodiment, for a to-be-detected motor, a corresponding test instruction set is configured. Correspondingly, the test instruction set can be stored in the above-mentioned database and mapped with the specification of the motor by a corresponding mapping method to realize specification matching.
[0059] For all test instructions in the test instruction set, the above-mentioned changed communication timing is used to send all test instructions in sequence, so that the to-be-detected motor receives each test instruction and responds to the test instruction, thereby obtaining the running condition after the response. The detection result can be determined according to the running condition after the response. For example, if the motor still cannot rotate after responding to all test instructions, it is determined that the motor is still faulty. Otherwise, it is determined that the motor is operating normally.
[0060] Before sending each test instruction from the test instruction set to the motor under test, a pre-test preparation instruction is also sent to preheat the motor before entering the function. This pre-test preparation instruction is sent without accepting feedback frames; that is, once the pre-test preparation instruction is sent, the process of sending each test instruction from the test instruction set to the motor under test can begin. For example, the preparation instructions are 8817FC00850414FFFFFF000000 and 0807000104FF14FFFFFF55.
[0061] In one embodiment, the aforementioned APP can also provide a display and function execution interface, enabling maintenance users to perform motor testing more intuitively and conveniently using the software. This includes a software UI interface where motor testing operations are performed via interface buttons, such as start and stop buttons configured on the interface.
[0062] (1) Enable:
[0063] Start the motor test, set the on state to true, and then send the command set in a loop. The interface will display the status: Testing... Observe the motor's response to determine whether the motor test is normal. If the motor rotates normally after being turned on, the test is normal. Otherwise, the motor test has failed.
[0064] (2) Stop:
[0065] Clicking the stop button will stop sending commands to the motor, thus ceasing operation on the motor. Setting the test start status to false will also prevent commands from being sent to the motor.
[0066] The interface displays the status: Test stopped.
[0067] In one embodiment, after the testing of the motor to be tested is completed, the initial communication timing and link hold need to be restored to restore the original communication function of the motor system so that the motor can be used in the actual vehicle.
[0068] In one embodiment, after step S203 is completed, log data is recorded and stored. This process is closely related to each step in the software operation process. The implementation method is to write important process data into a log file and then store the generated log in a log database for function management, maintenance, and troubleshooting.
[0069] In this embodiment, after successfully connecting the motor under test to the testing equipment, a test configuration file matching the specifications of the motor under test is obtained. Based on the test configuration file, a communication link is configured for the motor under test to obtain the communication link between the motor under test and the testing equipment. The communication link holding operation is stopped, and the communication timing of the communication link is changed to obtain the changed communication timing. A test instruction set matching the specifications of the motor under test is obtained. Based on the changed communication timing, each test instruction in the test instruction set is sent sequentially to the motor under test. The test instructions are used to enable the motor under test to respond, and the test result is determined based on the operation after the response. Notably, there is no need to send a link holding instruction, which effectively prevents conflicts between the link holding instruction and the test instructions. The changed communication timing allows the testing equipment to send continuous test instructions to the motor under test, maintaining the effectiveness of the communication link even without link holding. This effectively improves the efficiency of transmitting test instructions to the motor, thereby improving the efficiency of off-vehicle testing of the motor and greatly reducing the maintenance cost of the 48V motor.
[0070] Referring to Figure 3, which is a flowchart illustrating a method for detecting the off-vehicle operation of a vehicle drive motor according to Embodiment 3 of this application, as shown in Figure 3, step S203 above, which involves sequentially sending each test instruction in the test instruction set to the motor under test based on the modified communication timing, may include the following steps:
[0071] Step S301: When the user provides the operation instruction to start the test based on the preset operation interface, the test instruction set is written into the batch processing pool, any test instruction in the batch processing pool is sent to the motor to be tested, and the number of times it is sent is recorded.
[0072] Step S302: Remove the test commands that have been sent from the batch processing pool.
[0073] Step S303: If the number of transmissions is less than the number of test instructions in the test instruction set, then return to execute any test instruction in the batch processing pool and send it to the motor to be tested until the number of transmissions reaches the number of test instructions.
[0074] Step 304: Restore the communication timing of the communication link after the change, and after the original communication timing of the communication link is restored, display the test end information on the operation interface.
[0075] The test completion message is used to indicate to the user that the motor under test has been tested and restored to its original state.
[0076] In this embodiment, the motor test is started by setting the on state to true, and then the command set is sent cyclically to form all the test commands in the batch processing pool. The test commands are then sent to the motor under test in a cyclic manner. At the same time, the number of times the commands are sent is recorded to determine whether the command sending is complete, thereby improving the accuracy of the test command sending, avoiding the omission of test commands, and improving the accuracy of the test. After the test is completed, in order to ensure the normal use of the motor, the communication link of the motor also needs to be restored and displayed in the operation interface, so that the user can intuitively observe the end of the test.
[0077] Referring to Figure 4, which is a flowchart illustrating a method for detecting a vehicle drive motor off-vehicle according to Embodiment 4 of this application, as shown in Figure 4, step S201 above, which configures the communication link between the motor to be tested and the testing device based on the test configuration file, may include the following steps:
[0078] Step S401: Establish the initial communication link between the motor to be tested and the testing equipment.
[0079] Step S402: Configure the initial link according to the protocol information, baud rate information and pin information in the test configuration file.
[0080] Step S403: After the configured initial link meets the initialization conditions, the initial link is initialized based on the preset initialization instructions.
[0081] Step S404: Obtain the response information of the motor under test to the initialization command. If the initialization is determined to be complete based on the response information, then the initial link after initialization is determined to be the communication link between the motor under test and the testing device.
[0082] In this embodiment, communication is initialized, which involves setting up the link and initializing the communication link, including setting the protocol, pins, baud rate, etc., which are used when entering the motor system to form a successful communication link, thus ensuring the effectiveness of communication between the motor under test and the testing equipment.
[0083] Additionally, when clicking the "Start Motor Test" function, since motor testing requires a battery, the user should be prompted to connect an external battery before starting the test to prevent it from failing to start. For example, the prompt could indicate that the motor and battery are wired, and that the app needs to be restarted if no power is connected. Furthermore, the user could be reminded to monitor the battery level to avoid insufficient battery power negatively impacting the test results for the motor under test.
[0084] Referring to Figure 5, this is a flowchart illustrating a method for detecting the departure of a vehicle drive motor according to Embodiment 5 of this application. As shown in Figure 5, the method for detecting the departure of a vehicle further includes the following steps:
[0085] Step S501: Obtain the specification information of the motor to be tested selected by the user, and obtain the wiring diagram from the preset database based on the specification information. Display the wiring diagram so that the user can connect the testing equipment and the motor to be tested according to the wiring diagram.
[0086] Step S502: Check whether the connection between the testing equipment and the motor to be tested meets the wiring diagram.
[0087] Step S503: If the connection between the testing device and the motor under test is found to meet the wiring diagram, then it is determined that the connection between the motor under test and the testing device is successful.
[0088] In this embodiment, the connection method between the testing equipment and motors of all specifications or models is determined by identifying the connection method and matching pins between the testing equipment and the motor, drawing a wiring diagram, saving the wiring diagram locally or in the cloud, and forming a matching relationship between the wiring diagram and specification information. The corresponding wiring diagram is obtained by matching the specification information of the motor to be tested.
[0089] The provided interface displays a wiring diagram to guide users in connecting the testing equipment and the motor under test.
[0090] If the wiring diagram is stored in the cloud, the testing device in this application can be connected to the network and download the wiring diagram from the cloud.
[0091] This application embodiment improves the user's success rate in wiring the motor and testing equipment by showing the wiring diagram, reduces wiring time, and thus improves the testing efficiency of the motor.
[0092] Optionally, it can be checked whether the connection between the testing equipment and the motor under test conforms to the wiring diagram, including:
[0093] Obtain the voltage value of each terminal marked in the wiring diagram, and detect the voltage signal of each terminal using a detection device;
[0094] For any connection point, check whether the voltage signal at the connection point reaches the voltage value of the connection point;
[0095] If the voltage signal of all connection points reaches the voltage value of the corresponding connection point, it is determined that the connection between the testing device and the motor under test meets the wiring diagram. If the voltage signal of any connection point does not reach the voltage value of the corresponding connection point, it is determined that the connection between the testing device and the motor under test does not meet the wiring diagram.
[0096] Each connection point in the wiring diagram has a preset voltage value. The testing device can collect the voltage signal at each connection point, allowing it to determine whether the connection between the testing device and the motor under test is correct, thus improving the user's wiring efficiency. Furthermore, for cases where the wiring diagram is not followed, the diagram is displayed, showing the corresponding connection points. This helps users visually observe unconnected points and adjust the wiring accordingly.
[0097] Optionally, before obtaining the voltage value of each terminal marked on the wiring diagram, the following steps are also included:
[0098] The trained image recognition model is used to identify the wiring diagram and determine each wiring point.
[0099] Based on the characteristics of each connection point, the voltage value corresponding to each connection point is determined by searching within the marked area of the connection point in the wiring diagram. The marked area records the mapping relationship between all connection points and voltage values.
[0100] For any given wiring diagram, without requiring any other relevant information, the testing equipment in this application is equipped with a pre-trained image recognition model that can automatically identify the wiring points in the wiring diagram and determine the voltage value of the corresponding mark for each wiring point. This helps to improve the universality of the wiring diagram and reduce the complexity of wiring diagram prefabrication.
[0101] Corresponding to the vehicle drive motor off-vehicle detection method in the above embodiments, Figure 6 shows a structural block diagram of the vehicle drive motor off-vehicle detection device provided in Embodiment Six of this application. The off-vehicle detection device is applied to the server in Figure 1. For ease of explanation, only the parts related to the embodiments of this application are shown.
[0102] Referring to Figure 6, the off-vehicle detection device includes:
[0103] The communication configuration module 61 is used to obtain a test configuration file that matches the specifications of the motor under test after successfully connecting the motor under test to the testing equipment, and to configure the communication link between the motor under test and the testing equipment according to the test configuration file.
[0104] The link update module 62 is used to stop the maintenance operation of the communication link, change the communication timing of the communication link, and obtain the changed communication timing. The changed communication timing is used to enable the detection device to send continuous test commands to the motor under test.
[0105] The off-vehicle testing module 63 is used to acquire a set of test instructions that match the specifications of the motor under test. Based on the modified communication timing, it sends each test instruction in the test instruction set to the motor under test in sequence. The test instructions are used to enable the motor under test to respond, so as to determine the test result based on the operation after the response.
[0106] Optionally, the link update module 62 includes:
[0107] The byte change unit is used to change the byte interval time for the detection device to send test commands in the communication link to 0.
[0108] Optionally, the link update module 62 also includes:
[0109] The instruction interval change unit is used to change the interval between the end of the current test instruction response by the motor under test in the communication link and the sending of the next test instruction by the testing equipment to a first preset time value.
[0110] The first preset time value is less than the time interval between the end of the current test command response by the motor under test and the sending of the next test command by the testing device at the initial moment of the communication link.
[0111] Optionally, the first preset time value is any time value between 3000ms and 5000ms.
[0112] Optionally, the off-vehicle testing module 63 includes:
[0113] The sending and recording unit is used to write the test instruction set into the batch processing pool when it receives the operation instruction to start the test provided by the user based on the preset operation interface, and to send any test instruction in the batch processing pool to the motor to be tested, and record the number of times it is sent.
[0114] The removal unit is used to remove test commands that have been sent in the batch processing pool;
[0115] The return execution unit is used to send any test instruction from the batch processing pool to the motor under test if the number of transmissions is less than the number of test instructions in the test instruction set, until the number of transmissions reaches the number of test instructions.
[0116] The restoration unit is used to restore the communication timing of the communication link after the change. After the communication link is restored to the original communication timing, the test end information is displayed on the operation interface. The test end information is used to indicate to the user that the motor under test has been tested and restored to its original state.
[0117] Optionally, the communication configuration module 61 includes:
[0118] The link establishment unit is used to establish the initial link for communication between the motor under test and the testing equipment.
[0119] The link configuration unit is used to configure the initial link according to the protocol information, baud rate information and pin information in the test configuration file;
[0120] The link initialization unit is used to initialize the initial link based on a preset initialization command after the configured initial link meets the initialization conditions.
[0121] The communication establishment unit is used to obtain the response information of the motor under test to the initialization command. If the initialization is determined to be complete based on the response information, the initial link after initialization is determined to be the communication link between the motor under test and the testing device.
[0122] Optionally, the off-vehicle detection device also includes:
[0123] The wiring diagram display module is used to obtain the specification information of the motor to be tested selected by the user, and to obtain the wiring diagram from the preset database based on the specification information, and display the wiring diagram so that the user can connect the testing equipment and the motor to be tested according to the wiring diagram;
[0124] The connection detection module is used to check whether the connection between the detection equipment and the motor under test meets the wiring diagram.
[0125] The connection determination module is used to determine that the connection between the motor under test and the testing equipment is successful if the connection between the testing equipment and the motor under test meets the wiring diagram.
[0126] Optionally, the connection detection module includes:
[0127] The acquisition unit is used to acquire the voltage value of each connection point marked in the wiring diagram and to detect the voltage signal of each connection point through a detection device.
[0128] The detection unit is used to detect whether the voltage signal at any connection point reaches the voltage value of the connection point.
[0129] The detection result determination unit is used to determine that if the voltage signal of all the connection points reaches the voltage value of the corresponding connection point, the connection between the detection device and the motor under test meets the wiring diagram; if the voltage signal of any connection point does not reach the voltage value of the corresponding connection point, the connection between the detection device and the motor under test does not meet the wiring diagram.
[0130] Optionally, the connection detection module also includes:
[0131] The image recognition unit is used to identify each connection point in the wiring diagram using a trained image recognition model before acquiring the voltage value of each connection point marked in the wiring diagram.
[0132] The voltage value determination unit is used to search within the marked area of the wiring diagram based on the characteristics of each wiring point to determine the voltage value corresponding to each wiring point. The marked area of the wiring point records the mapping relationship between all wiring points and voltage values.
[0133] It should be noted that the information interaction and execution process between the above modules are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, which will not be repeated here.
[0134] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram is shown in Figure 7. The computer device includes a processor, memory, a network interface, and a database connected via a system bus. This computer device corresponds to a detection device, and its processor provides computational and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system, a readable storage medium, and a database. The internal memory provides an environment for the operation of the operating system and the readable storage medium. The database of the computer device stores raw user data. The network interface of the computer device is used for communication with external terminals via a network connection. When the readable storage medium is executed by the processor, it implements a method for detecting the departure of a vehicle drive motor.
[0135] In one embodiment, a computer device is provided, including a memory, a processor, and a readable storage medium stored on the memory and executable on the processor. When the processor executes the readable storage medium, it implements the steps of the vehicle drive motor off-vehicle detection method in the above embodiments, such as steps S201-S203 shown in FIG2, or the steps shown in FIG3 to FIG5. To avoid repetition, these steps will not be described again here. Alternatively, when the processor executes the readable storage medium, it implements the functions of each module / unit in the user data processing device embodiment, such as the functions of the communication configuration module 61, link update module 62, and off-vehicle test module 63 shown in FIG6. To avoid repetition, these functions will not be described again here.
[0136] In one embodiment, one or more readable storage media storing computer-readable instructions are provided. When executed by one or more processors, these computer-readable instructions cause the processors to perform the steps of the vehicle drive motor off-vehicle detection method described in the above embodiments, such as steps S201-S203 shown in FIG2, or the steps shown in FIG3 to 5. To avoid repetition, these steps will not be described again here. Alternatively, when the processor executes the readable storage medium, it performs the functions of various modules / units in this embodiment of the user data processing device, such as the functions of the communication configuration module 61, link update module 62, and off-vehicle test module 63 shown in FIG6. To avoid repetition, these functions will not be described again here. The readable storage medium in this embodiment includes both non-volatile readable storage media and volatile readable storage media.
[0137] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by instructing related hardware through a readable storage medium. The readable storage medium can be stored in a non-volatile computer-readable storage medium, which, when executed, can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0138] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0139] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A method for detecting the off-vehicle movement of a vehicle drive motor, wherein, The vehicle departure detection method is applied to a detection device, and the vehicle departure detection method includes: After successfully connecting the motor to be tested to the testing equipment, a test configuration file matching the specifications of the motor to be tested is obtained. Based on the test configuration file, the communication link of the motor to be tested is configured to obtain the communication link between the motor to be tested and the testing equipment. Stop the holding operation of the communication link, change the communication timing of the communication link to obtain the changed communication timing, and the changed communication timing is used to enable the detection device to send continuous test commands to the motor under test. A set of test instructions matching the specifications of the motor under test is obtained. Based on the modified communication timing, each test instruction in the set of test instructions is sent to the motor under test in sequence. The test instructions are used to enable the motor under test to respond, so as to determine the test result based on the operation after the response.
2. The off-vehicle detection method according to claim 1, wherein, The process of changing the communication timing of the communication link to obtain the changed communication timing includes: The byte interval time for the detection device to send test commands in the communication link is changed to 0.
3. The off-vehicle detection method according to claim 2, wherein, The step of changing the communication timing of the communication link to obtain the changed communication timing further includes: The interval between the end of the current test command response by the motor under test and the sending of the next test command by the testing device in the communication link is changed to a first preset time value; Wherein, the first preset time value is less than the time value at the initial moment of the communication link, which represents the time interval between the end of the motor under test responding to the current test command and the sending of the next test command by the testing device.
4. The off-vehicle detection method according to claim 3, wherein, The first preset time value is any time value between 3000ms and 5000ms.
5. The off-vehicle detection method according to claim 1, wherein, Based on the modified communication timing, the step of sequentially sending each test instruction in the test instruction set to the motor under test includes: When a user provides an operation command to start the test based on a preset operation interface, the test command set is written into a batch processing pool, and any test command in the batch processing pool is sent to the motor to be tested, and the number of times it is sent is recorded. Remove the test commands that have been sent from the batch processing pool; If the number of transmissions is less than the number of test instructions in the test instruction set, then return to execute any test instruction in the batch processing pool and send it to the motor to be tested until the number of transmissions reaches the number of test instructions. The communication timing of the communication link after the change is restored, and after the original communication timing of the communication link is restored, the test end information is displayed on the operation interface. The test end information is used to indicate to the user that the motor to be tested has been tested and restored to its original state.
6. The off-vehicle detection method according to claim 1, wherein, The step of configuring the communication link between the motor under test and the testing device according to the test configuration file includes: Establish an initial communication link between the motor to be tested and the testing equipment; Configure the initial link according to the protocol information, baud rate information, and pin information in the test configuration file; After the initial link is configured and meets the initialization conditions, the initial link is initialized based on the preset initialization instructions; Obtain the response information of the motor under test to the initialization command. If the initialization is determined to be complete based on the response information, then determine the initial link after initialization as the communication link between the motor under test and the testing device.
7. The off-vehicle detection method according to any one of claims 1 to 6, wherein, The off-vehicle detection method also includes: The system obtains the specification information of the motor to be tested selected by the user, matches the wiring diagram from a preset database based on the specification information, and displays the wiring diagram so that the user can connect the testing equipment and the motor to be tested according to the wiring diagram. Check whether the connection between the testing device and the motor to be tested meets the wiring diagram; If the connection between the testing device and the motor under test is found to meet the wiring diagram, then the connection between the motor under test and the testing device is determined to be successful.
8. The off-vehicle detection method according to claim 7, wherein, The step of checking whether the connection between the testing device and the motor under test meets the wiring diagram includes: Obtain the voltage value of each terminal marked in the wiring diagram, and detect the voltage signal of each terminal using the detection device; For any connection point, detect whether the voltage signal at the connection point reaches the voltage value of the connection point; If the voltage signal of all connection points reaches the voltage value of the corresponding connection point, it is determined that the connection between the detection device and the motor under test satisfies the wiring diagram. If the voltage signal of any connection point does not reach the voltage value of the corresponding connection point, it is determined that the connection between the detection device and the motor under test does not satisfy the wiring diagram.
9. The off-vehicle detection method according to claim 8, wherein, Before obtaining the voltage value of each terminal marked in the wiring diagram, the method further includes: The trained image recognition model is used to identify the wiring diagram and determine each wiring point; Based on the characteristics of each connection point, a search is performed within the connection point marking area in the wiring diagram to determine the voltage value corresponding to each connection point. The connection point marking area records the mapping relationship between all connection points and voltage values.
10. A vehicle drive motor off-vehicle detection device, wherein, The vehicle departure detection device is used in the detection equipment, and the vehicle departure detection device includes: The communication configuration module is used to obtain a test configuration file that matches the specifications of the motor under test after successfully connecting the motor under test to the testing equipment, and configure the communication link of the motor under test according to the test configuration file to obtain the communication link between the motor under test and the testing equipment. The link update module is used to stop the maintenance operation of the communication link, change the communication timing of the communication link, and obtain the changed communication timing. The changed communication timing is used to enable the detection device to send continuous test commands to the motor under test. The off-vehicle testing module is used to acquire a set of test instructions that match the specifications of the motor under test. Based on the modified communication timing, it sequentially sends each test instruction in the set of test instructions to the motor under test. The test instructions are used to enable the motor under test to respond, so as to determine the test result based on the operation after the response.
11. The vehicle departure detection device according to claim 10, wherein, The off-vehicle detection device also includes: The wiring diagram display module is used to obtain the specification information of the motor to be tested selected by the user, match the wiring diagram from the preset database according to the specification information, and display the wiring diagram so that the user can connect the testing equipment and the motor to be tested according to the wiring diagram; A connection detection module is used to detect whether the connection between the detection device and the motor to be tested meets the wiring diagram. The connection determination module is used to determine that the connection between the testing device and the motor under test is successful if the connection between the testing device and the motor under test is found to meet the wiring diagram.
12. A computer device comprising a memory, a processor, and a readable storage medium stored in the memory and operable on the processor, wherein, The computer device corresponds to the detection device, and when the processor executes the readable storage medium, it performs the following steps: After successfully connecting the motor to be tested to the testing equipment, a test configuration file matching the specifications of the motor to be tested is obtained. Based on the test configuration file, the communication link of the motor to be tested is configured to obtain the communication link between the motor to be tested and the testing equipment. Stop the holding operation of the communication link, change the communication timing of the communication link to obtain the changed communication timing, and the changed communication timing is used to enable the detection device to send continuous test commands to the motor under test. A set of test instructions matching the specifications of the motor under test is obtained. Based on the modified communication timing, each test instruction in the set of test instructions is sent to the motor under test in sequence. The test instructions are used to enable the motor under test to respond, so as to determine the test result based on the operation after the response.
13. The computer device according to claim 12, wherein, The process of changing the communication timing of the communication link to obtain the changed communication timing includes: The byte interval time for the detection device to send test commands in the communication link is changed to 0.
14. The computer device according to claim 13, wherein, The step of changing the communication timing of the communication link to obtain the changed communication timing further includes: The interval between the end of the current test command response by the motor under test and the sending of the next test command by the testing device in the communication link is changed to a first preset time value; Wherein, the first preset time value is less than the time value at the initial moment of the communication link, which represents the time interval between the end of the motor under test responding to the current test command and the sending of the next test command by the testing device.
15. The computer device according to claim 14, wherein, The first preset time value is any time value between 3000ms and 5000ms.
16. The computer device according to claim 12, wherein, Based on the modified communication timing, the step of sequentially sending each test instruction in the test instruction set to the motor under test includes: When a user provides an operation command to start the test based on a preset operation interface, the test command set is written into a batch processing pool, and any test command in the batch processing pool is sent to the motor to be tested, and the number of times it is sent is recorded. Remove the test commands that have been sent from the batch processing pool; If the number of transmissions is less than the number of test instructions in the test instruction set, then return to execute any test instruction in the batch processing pool and send it to the motor to be tested until the number of transmissions reaches the number of test instructions. The communication timing of the communication link after the change is restored, and after the original communication timing of the communication link is restored, the test end information is displayed on the operation interface. The test end information is used to indicate to the user that the motor to be tested has been tested and restored to its original state.
17. The computer device according to claim 12, wherein, The step of configuring the communication link between the motor under test and the testing device according to the test configuration file includes: Establish an initial communication link between the motor to be tested and the testing equipment; Configure the initial link according to the protocol information, baud rate information, and pin information in the test configuration file; After the initial link is configured and meets the initialization conditions, the initial link is initialized based on the preset initialization instructions; Obtain the response information of the motor under test to the initialization command. If the initialization is determined to be complete based on the response information, then determine the initial link after initialization as the communication link between the motor under test and the testing device.
18. The computer device according to any one of claims 12 to 17, wherein, The off-vehicle detection method also includes: The system obtains the specification information of the motor to be tested selected by the user, matches the wiring diagram from a preset database based on the specification information, and displays the wiring diagram so that the user can connect the testing equipment and the motor to be tested according to the wiring diagram. Check whether the connection between the testing device and the motor to be tested meets the wiring diagram; If the connection between the testing device and the motor under test is found to meet the wiring diagram, then the connection between the motor under test and the testing device is determined to be successful.
19. The computer device according to claim 18, wherein, The step of checking whether the connection between the testing device and the motor under test meets the wiring diagram includes: Obtain the voltage value of each terminal marked in the wiring diagram, and detect the voltage signal of each terminal using the detection device; For any connection point, detect whether the voltage signal at the connection point reaches the voltage value of the connection point; If the voltage signal of all connection points reaches the voltage value of the corresponding connection point, it is determined that the connection between the detection device and the motor under test satisfies the wiring diagram. If the voltage signal of any connection point does not reach the voltage value of the corresponding connection point, it is determined that the connection between the detection device and the motor under test does not satisfy the wiring diagram.
20. One or more readable storage media storing computer-readable instructions, wherein, When the computer-readable storage medium is located in the detection device, and the computer-readable instructions are executed by one or more processors, the one or more processors perform the following steps: After successfully connecting the motor to be tested to the testing equipment, a test configuration file matching the specifications of the motor to be tested is obtained. Based on the test configuration file, the communication link of the motor to be tested is configured to obtain the communication link between the motor to be tested and the testing equipment. Stop the holding operation of the communication link, change the communication timing of the communication link to obtain the changed communication timing, and the changed communication timing is used to enable the detection device to send continuous test commands to the motor under test. A set of test instructions matching the specifications of the motor under test is obtained. Based on the modified communication timing, each test instruction in the set of test instructions is sent to the motor under test in sequence. The test instructions are used to enable the motor under test to respond, so as to determine the test result based on the operation after the response.
Citation Information
Patent Citations
Communication link testing method and system
CN105553782A
Off-line testing system and method for electric vehicle
CN106526346A
Multi-station rapid configuration device and configuration method thereof for FPGA test
CN106680698A
Electrical equipment action characteristic detection method and system
CN108627710A
Equipment link detection method and device, equipment and readable storage medium
CN109962827A