Automated testing method, system and vehicle for vehicle messages
Patent Information
- Application Number
- CN202310467313.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-26
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2043-04-26
AI Technical Summary
[0004]本发明实施例提供了一种车辆消息的自动化测试方法、系统及车辆,以至少解决了相关技术中对车辆消息进行测试时,测试的效率较低的技术问题
[0017] Through the above steps, a test sequence is built based on the host computer, and test instructions are generated. The target device is controlled to operate based on the test instructions, so that the vehicle is in the target state corresponding to the test instructions. The target device is positioned around the vehicle. A first vehicle message received by a preset application is acquired, whereby the first vehicle message is pushed from the vehicle to the preset application. The first vehicle message is compared with preset vehicle messages to obtain the test result of the first vehicle message. It is noteworthy that triggering the vehicle through the target device avoids manually simulating the target state of the vehicle, thereby reducing the workload of testing, simplifying the testing process, and improving the testing efficiency of the vehicle. This solves the technical problem of low testing efficiency when testing vehicle messages in related technologies.
Smart Images

Figure CN116527724B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent vehicles, and more specifically, to an automated testing method, system, and vehicle for vehicle messages. Background Technology
[0002] Intelligent connected vehicles are a major trend in the current automotive industry. However, users often forget to close windows when getting out of the car. If a user leaves a window open or forgets to close it when getting out, they will have to close it to prevent rainwater from entering the vehicle. Alternatively, if the vehicle is parked at night in an unmonitored area, users may worry about its safety. When a user is not in the vehicle, a vehicle notification push function can remind them of the vehicle's current status. Therefore, the accuracy of vehicle notification pushes is crucial, making the accuracy testing of these pushes essential. However, artificially simulating dangerous scenarios to test the vehicle notification push function is labor-intensive and complex, resulting in low testing efficiency.
[0003] There is currently no effective solution to the above problems. Summary of the Invention
[0004] This invention provides an automated testing method, system, and vehicle for vehicle messages, which at least solves the technical problem of low testing efficiency when testing vehicle messages in related technologies.
[0005] According to one aspect of the present invention, an automated testing method for vehicle messages is provided, comprising: building a test sequence based on a host computer and generating test instructions; controlling a target device to operate based on the test instructions so that the vehicle is in a target state corresponding to the test instructions, wherein the target device is set around the vehicle; acquiring a first vehicle message received by a preset application, wherein the first vehicle message is pushed to the preset application by the vehicle; and comparing the first vehicle message with preset vehicle messages to obtain a test result of the first vehicle message.
[0006] Optionally, the target device includes a water spray module, and the target state includes a rainy parking state. The target device is controlled to operate based on test commands to put the vehicle in the target state corresponding to the test commands, including: spraying water onto the rain sensing area on the vehicle based on the water spray module to put the vehicle in a rainy parking state.
[0007] Optionally, the target device includes a robotic arm, and the target state includes a door intrusion state. The target device is controlled to operate based on test instructions to put the vehicle in the target state corresponding to the test instructions, including: pushing the door with the robotic arm to put the vehicle in the door intrusion state.
[0008] Optionally, the target state includes a vehicle towing state. The target device is controlled to work based on the test command so that the vehicle is in the target state corresponding to the test command, including: the vehicle is towed by a robotic arm so that the vehicle is in a vehicle towing state.
[0009] Optionally, the first vehicle message includes an image message. Acquiring the first vehicle message received by the preset application includes: acquiring the image message by an image acquisition device located near the electronic device, wherein the preset application is installed on the electronic device.
[0010] According to another aspect of the present invention, an automated testing system for vehicle messages is also provided, comprising: a host computer for building a test program and generating test instructions; a target device connected to the host computer for working based on the test instructions to make the vehicle be in the target state corresponding to the test instructions; the host computer is further configured to acquire a first vehicle message received by a preset application and compare the first vehicle message with preset vehicle messages to obtain a test result of the first vehicle message, wherein the first vehicle message is pushed to the preset application by the vehicle.
[0011] Optionally, the target equipment includes: a water spray module for spraying water onto the rain-sensing area of the vehicle to put the vehicle in a rainy parking state; and a robotic arm for pushing the vehicle door to put the vehicle in a door intrusion state, or for dragging the vehicle to put the vehicle in a towing state.
[0012] Optionally, the first vehicle message includes image messages. The system also includes an image acquisition device, located near the electronic device and connected to a host computer, for acquiring image messages. The electronic device has a preset application installed on it.
[0013] Optionally, the system may also include: a housing, inside which the target equipment is installed, and the vehicle is placed inside the housing; and an indicator light located on the top of the housing to illuminate the interior of the housing.
[0014] According to another aspect of the present invention, an automated testing device for vehicle messages is also provided, comprising: a generation module for building a test sequence based on a host computer and generating test instructions; a control module for controlling a target device to operate based on the test instructions, so that the vehicle is in the target state corresponding to the test instructions, wherein the target device is disposed around the vehicle; an acquisition module for acquiring a first vehicle message received by a preset application, wherein the first vehicle message is pushed to the preset application by the vehicle; and a comparison module for comparing the first vehicle message with preset vehicle messages to obtain a test result of the first vehicle message.
[0015] According to another aspect of the present invention, an electronic device is also provided, characterized in that it includes: one or more processors; a storage device for storing one or more programs; and an automated testing method for vehicle messages of any one of the above when the one or more programs are executed by the one or more processors.
[0016] According to another aspect of the present invention, a vehicle is also provided, characterized in that it includes: one or more processors; a storage device for storing one or more programs; and an automated testing method for, when the one or more programs are executed by the one or more processors, causing the one or more processors to execute vehicle messages as described above.
[0017] Through the above steps, a test sequence is built based on the host computer, and test instructions are generated. The target device is controlled to operate based on the test instructions, so that the vehicle is in the target state corresponding to the test instructions. The target device is positioned around the vehicle. A first vehicle message received by a preset application is acquired, whereby the first vehicle message is pushed from the vehicle to the preset application. The first vehicle message is compared with preset vehicle messages to obtain the test result of the first vehicle message. It is noteworthy that triggering the vehicle through the target device avoids manually simulating the target state of the vehicle, thereby reducing the workload of testing, simplifying the testing process, and improving the testing efficiency of the vehicle. This solves the technical problem of low testing efficiency when testing vehicle messages in related technologies. Attached Figure Description
[0018] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0019] Figure 1 This is a flowchart of an optional automated testing method for vehicle messages according to an embodiment of the present invention;
[0020] Figure 2 This is a schematic diagram of an automated testing method for vehicle messages in a rainy parking state according to an embodiment of the present invention;
[0021] Figure 3 This is a schematic diagram of an automated testing system for vehicle messages according to an embodiment of the present invention;
[0022] Figure 4 This is a schematic diagram of an automated testing device for vehicle messages according to an embodiment of the present invention. Detailed Implementation
[0023] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0024] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0025] Currently, most mobile application software testing phases combine manual and real-vehicle testing methods. This involves manually splashing water on rain sensors, simulating vehicle theft scenarios, or manually pushing a real car to cause it to be dragged. However, this testing method has its drawbacks:
[0026] 1) Real-vehicle testing is not very safe;
[0027] 2) The actual vehicle is too heavy, making it difficult to trigger a vehicle towing alert.
[0028] 3) Non-automated testing, resulting in low testing efficiency.
[0029] Example 1
[0030] According to an embodiment of the present invention, a method embodiment for data processing is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0031] Figure 1 This is a flowchart of an optional automated testing method for vehicle messages according to an embodiment of the present invention, such as... Figure 1 As shown, the method includes the following steps:
[0032] Step S102: Build a test sequence based on the host computer and generate test instructions.
[0033] The aforementioned host computer can be a computer capable of directly issuing operation commands. Optionally, the aforementioned host computer can be used to build automated test sequences. Optionally, depending on the type of vehicle messages to be tested, automated test programs can be divided into several different types, such as automated test sequences for testing the accuracy of vehicle messages when parking in the rain, automated test sequences for testing the accuracy of vehicle messages when the vehicle is towed away, and other automated test sequences.
[0034] The aforementioned test instructions can be used to instruct the testing of vehicle messages. Optionally, if the corresponding test sequence has been set up, corresponding test instructions can be generated. These test instructions can be in the form of indicator lights, voice commands, alarms, etc., to instruct the operation of relevant equipment, thereby creating a corresponding test environment.
[0035] In one optional embodiment, when automating vehicle message testing, a test sequence can be built using a host computer. This test sequence can be used to test vehicle messages when the vehicle is parked in the rain, when a door is intruded upon, when the vehicle is maliciously damaged, and when the vehicle is towed. Furthermore, after the test sequence is built on the host computer, it can be started in the CANOE (Can Open, a development environment) environment, and test commands can be generated.
[0036] To illustrate, let's assume we need to simulate a vehicle being towed. We can first build a corresponding test sequence and generate relevant test commands via a host computer. Assuming the test commands are represented by indicator lights, the lights will start flashing when the test sequence is complete, indicating that the target device is starting to tow the vehicle, thus simulating the towing scenario. When the vehicle's alarm system detects that it is being towed, it can sound its horn to alert the user (the vehicle owner). Furthermore, the vehicle can also use its onboard camera to take a picture of the towing device and upload it to the user's phone to remind them that their vehicle is about to be towed.
[0037] Suppose we need to simulate a scenario where a vehicle is parked and it rains. We can first build a test sequence on a host computer to simulate the rain scenario and generate corresponding test commands to instruct the target device to start working. Assuming the test commands are in the form of an alarm, after the corresponding test sequence is generated, the alarm will sound, instructing the target device to start spraying water onto the vehicle's rain-sensing area to simulate a rain scenario. Furthermore, after the vehicle senses rain, it will quickly check whether its windows and sunroof are closed and upload their current status to the user's mobile phone to remind the user of the current status of the vehicle's windows and sunroof. If the windows or sunroof are not closed, the user can be reminded to close them promptly; if they are closed, the user can rest assured, thus improving the user's driving experience.
[0038] Step S104: Control the target device to work based on the test command so that the vehicle is in the target state corresponding to the test command, wherein the target device is set around the vehicle.
[0039] The aforementioned target equipment can be used to simulate dangerous situations encountered by a vehicle. This target equipment may include various devices such as water sprayers, robotic arms, and vehicle models. Optionally, the target equipment can be installed in the vehicle testing environment, near the location where the vehicle is placed. Furthermore, the target equipment can be used to simulate scenarios where the vehicle encounters dangerous situations. Optionally, dangerous situations may include situations such as water leaking from the windows when the vehicle is parked in the rain, unauthorized intrusion into the doors, malicious damage to the vehicle, and the vehicle being towed away.
[0040] The aforementioned target states can include situations such as water leaking from car windows when the car is parked in the rain, unlawful intrusion into the car door, the vehicle being towed away, malicious damage to the vehicle, and being hit by other vehicles.
[0041] In one optional embodiment, assuming the vehicle needs to be placed in a state of malicious damage, a corresponding test sequence can be built by the host computer. Once the test sequence is built, a corresponding test command can be issued. Assuming the test command is in the form of an alarm, the alarm will sound after the test sequence is built. Optionally, after the alarm sounds, the target device can be controlled to start working. Since a scenario of malicious damage to the vehicle needs to be created, a robotic arm can be controlled to strike the vehicle's windows, thereby causing the vehicle to suffer malicious damage.
[0042] In another optional embodiment, assuming the goal is to simulate a vehicle being struck by another vehicle, the host computer can first build the corresponding test sequence. Assuming the test command is in voice format, after the test sequence is built, the voice prompt "Start working" will sound. Upon receiving the test command, the target device will quickly determine the type of device that needs to work and start that device to perform the operation, thereby creating a scenario where the vehicle is struck by another vehicle. Optionally, since the goal is to create a scenario where the vehicle is struck by another vehicle, the vehicle model in the target device can be driven to collide with the vehicle, thus creating the scenario.
[0043] Step S106: Obtain the first vehicle message received by the preset application, wherein the first vehicle message is pushed to the preset application by the vehicle.
[0044] The aforementioned preset application can be application software. Optionally, the application software can be installed on a mobile phone, computer, or other devices that can remind the user.
[0045] The aforementioned first vehicle message can be a message indicating the dangerous situation currently encountered by the vehicle. Optionally, the aforementioned first vehicle message can be presented in the form of pictures, videos, text, and voice.
[0046] Assuming the first vehicle message is in the form of an image, when the vehicle is in a dangerous state, the vehicle's camera can capture the image information of the vehicle in a dangerous state and identify this image information as the first vehicle message. Optionally, the first vehicle message can be pushed to an application software installed on a mobile phone or computer, and the application software can remind the user of the current status of the vehicle.
[0047] Assuming the first vehicle message is in video format, when the vehicle encounters a dangerous situation, the vehicle's camera can record a video of the vehicle in a dangerous situation, and this video can be identified as the first vehicle message. Optionally, the first vehicle message can be pushed to an application installed on a mobile phone, computer, or other devices, and the user can be alerted to the vehicle's current status through the application.
[0048] Assuming the first vehicle message is in voice format, when the vehicle encounters danger, the type of danger state encountered by the vehicle can be detected by the sensors on the vehicle body, and the type of danger state can be pushed to the application software installed on the mobile phone, computer or other devices in voice format, and the application software can remind the user of the current status of the vehicle.
[0049] In one optional embodiment, assuming the vehicle is currently facing a dangerous situation of being struck by another vehicle, a target device can be used to impact the vehicle from the front. Optionally, to make the impact effect more realistic, a vehicle model can be selected from the target device for impact. At this time, the vehicle's alarm system will detect the impact and activate the vehicle's camera to take photos and record videos. The captured videos and photos are identified as the first vehicle message and uploaded to a preset application. The photos and videos captured by the vehicle's camera can display the vehicle model's license plate number and appearance. Furthermore, the preset application can upload the received first vehicle message to a host computer and use the host computer to test the first vehicle message, or install an image acquisition device on the host computer to collect the first vehicle message from the preset application for testing.
[0050] Step S108: Compare the first vehicle message with the preset vehicle message to obtain the test result of the first vehicle message.
[0051] The aforementioned preset vehicle messages can be standard messages that a vehicle should push when it encounters a dangerous situation. Optionally, the type of preset vehicle messages can be image type, video type, etc. This application does not impose specific restrictions on the type of preset vehicle messages.
[0052] In one optional embodiment, after the vehicle pushes the first vehicle message to a preset application, the preset application can upload the first vehicle message to a host computer and use the host computer to compare the first vehicle message with preset vehicle messages stored on the host computer, thereby determining the similarity between the first vehicle message and the preset vehicle messages stored on the host computer, and evaluating the first vehicle message based on the similarity between the first vehicle message and the preset vehicle messages stored on the host computer, thereby realizing the testing of the vehicle message.
[0053] The following example illustrates this: Assume the first vehicle message is in image format, and the message states that a car window was left open during rain, causing a leak. Optionally, the first vehicle message can be compared with a preset vehicle message. The preset message should include the status of all windows and the sunroof, indicating whether they are fully closed. If the image shows the window or sunroof is fully closed, the image should show the specific location of the leak, the vehicle's location, and which windows are open. Optionally, by comparing the first vehicle message with the preset message, it can be determined whether the first message contains all the information mentioned in the preset message. If the comparison shows that the first message contains all the information mentioned in the preset message, the test result is considered that the vehicle message was correctly pushed. If the comparison shows that the first message does not completely contain all the information mentioned in the preset message, the test result is considered that the vehicle message was incorrectly pushed. Furthermore, technical personnel can adjust the test sequence and target equipment based on the test results to improve the test method.
[0054] Through the above steps, a test sequence is built based on the host computer, and test instructions are generated. The target device is controlled to operate based on the test instructions, so that the vehicle is in the target state corresponding to the test instructions. The target device is positioned around the vehicle. A first vehicle message received by a preset application is acquired, whereby the first vehicle message is pushed from the vehicle to the preset application. The first vehicle message is compared with preset vehicle messages to obtain the test result of the first vehicle message. It is noteworthy that triggering the vehicle through the target device avoids manually simulating the target state of the vehicle, thereby reducing the workload of testing, simplifying the testing process, and improving the testing efficiency of the vehicle. This solves the technical problem of low testing efficiency when testing vehicle messages in related technologies.
[0055] Optionally, the target device includes a water spray module, and the target state includes a rainy parking state. The target device is controlled to operate based on test commands to put the vehicle in the target state corresponding to the test commands, including: spraying water onto the rain sensing area on the vehicle based on the water spray module to put the vehicle in a rainy parking state.
[0056] The aforementioned water spray module can be used to spray water onto the rain-sensing area of a vehicle, thereby simulating a parking situation in the rain.
[0057] In one optional embodiment, the target device may include a water spray module. When the target device includes a water spray module, it can spray water onto the rain-sensing area of the vehicle to simulate a parking state in rainy weather. Optionally, when the vehicle's rain-sensing area detects water spray, the vehicle's camera will activate its shooting function to capture images of the windows and sunroof. The captured images of the windows and sunroof will be pushed to a preset application, which will then upload the received information to a host computer. Alternatively, a related data acquisition device can be installed on the host computer to collect the information received by the preset application. The host computer can then compare the first vehicle information with the preset vehicle information to test the accuracy of the first vehicle information. Optionally, by testing the accuracy of the first information, the user can understand the current environment of the vehicle, whether the windows and sunroof are closed, and if the captured images show that a window or sunroof is open, the user can be promptly reminded to close it. When the camera captures images showing that the windows and sunroof are closed, it informs the user that these features are indeed closed, thus alleviating any concerns and further enhancing the user experience.
[0058] Optionally, the target device includes a robotic arm, and the target state includes a door intrusion state. The target device is controlled to operate based on test instructions to put the vehicle in the target state corresponding to the test instructions, including: pushing the door with the robotic arm to put the vehicle in the door intrusion state.
[0059] In one optional embodiment, a robotic arm can be used to push the vehicle door, thereby putting the vehicle in a door intrusion state. Optionally, when a vehicle door is pushed, the vehicle body camera will activate its shooting function to capture the entire vehicle body's state, determine which doors have been pushed and who is pushing them, and push the captured images to a preset application. The preset application then uploads the received information to a host computer, which compares the first vehicle information with the preset vehicle information to test the accuracy of the first vehicle information.
[0060] If the vehicle information is accurate, the system can alert the user that their vehicle is currently experiencing door intrusion, allowing them to take immediate action to stop it. Optionally, after receiving the alert, the user can provide feedback to confirm receipt of the message. Feedback can be in the form of closing the alert or simply marking it as read. If no feedback is received from the user within a preset time after the alert, an alarm can be triggered to ensure the user's property safety.
[0061] Optionally, the target state includes a vehicle towing state. The target device is controlled to work based on the test command so that the vehicle is in the target state corresponding to the test command, including: the vehicle is towed by a robotic arm so that the vehicle is in a vehicle towing state.
[0062] In one optional embodiment, a robotic arm can be used to drag the vehicle, simulating a scenario where the vehicle is towed away. Optionally, when the vehicle's position changes, a camera on the vehicle body activates its recording function to capture the entire vehicle's state, determine who is dragging the vehicle, and upload the captured information to a preset application. The preset application then uploads the received information to a host computer, which tests the accuracy of the information. Optionally, when the captured image shows that the vehicle is about to be towed away by traffic police due to illegal parking, the user can be alerted to check immediately. When the captured image shows that illegal individuals are attempting to tow the vehicle, the user can be alerted to stop them immediately, thereby protecting the user's property safety.
[0063] Optionally, the first vehicle message includes an image message. Acquiring the first vehicle message received by the preset application includes: acquiring the image message by an image acquisition device located near the electronic device, wherein the preset application is installed on the electronic device.
[0064] The aforementioned image acquisition device can be used to collect information about the first vehicle. The image acquisition device can be installed near an electronic device, such as a mobile phone or computer.
[0065] In one alternative embodiment, an image acquisition device can be installed on an electronic device with a preset application installed, so that the image acquisition device can be used to collect the first vehicle message received by the preset application, and further, the user can understand the current status of the vehicle.
[0066] Figure 2 This is a schematic diagram of an automated testing method for vehicle messages in rainy parking conditions according to an embodiment of the present invention, as shown below. Figure 2As shown, the user can first drive the actual vehicle into the enclosure, and then set up the corresponding test sequence on the host computer and issue commands. Further, upon receiving the command, the sequence needs to be executed. The water spray module receives the execution command and begins spraying water onto the vehicle's rain sensor to simulate rainy conditions. The image acquisition device captures images and uploads the results to the host computer, which then determines whether the rainy parking status reminder message pushed is consistent with the preset vehicle message. Optionally, the host computer can store the execution results of a single command. Furthermore, it can determine whether the test sequence executed by the host computer is the last test sequence. If it is, the test result can be output; otherwise, the next test sequence can be executed.
[0067] Example 2
[0068] According to embodiments of the present invention, an automated testing method system for vehicle messages is also provided, which can execute the data processing methods described in the above embodiments. Figure 3 This is a schematic diagram of an automated testing system for vehicle messages according to an embodiment of the present invention, such as... Figure 3 As shown, the system includes the following components:
[0069] The host computer 31 is used to build the test program and generate test instructions.
[0070] The target device 32 is connected to the host computer and is used to work based on test commands so that the vehicle is in the target state corresponding to the test command.
[0071] The host computer 31 is also used to obtain the first vehicle message received by the preset application, and compare the first vehicle message with the preset vehicle message to obtain the test result of the first vehicle message, wherein the first vehicle message is pushed to the preset application by the vehicle.
[0072] Optionally, the target device 32 includes: a water spray module 3201 for spraying water onto the rain sensing area of the vehicle to put the vehicle in a rainy parking state; and a robotic arm 3202 for pushing the vehicle door to put the vehicle in a door intrusion state, or dragging the vehicle to put the vehicle in a vehicle dragging state.
[0073] Optionally, the first vehicle message includes image messages. The system also includes an image acquisition unit 33, which is located near the electronic device and connected to the host computer for acquiring image messages. The electronic device has a preset application program 35 installed on it.
[0074] The aforementioned electronic devices can be mobile phones or computers, etc.
[0075] Optionally, the system also includes: a housing 34, inside which the target equipment is installed, and the vehicle is placed inside the housing 34; and an indicator light 36, located on the top of the housing, for illuminating the interior of the housing 34.
[0076] The aforementioned box 34 can be a black box. Optionally, the volume of the aforementioned box 34 is larger than the volume of the vehicle, so that the vehicle can be placed inside the box 34 to test vehicle information.
[0077] The aforementioned indicator light 36 can be used to illuminate the enclosure 34. Optionally, the indicator light 36 can be red, green, yellow, or other colors. In this application, no specific limitation is made on the color of the indicator light 36.
[0078] Example 3
[0079] According to embodiments of the present invention, an automated testing apparatus for vehicle messages is also provided, which can execute the data processing methods described in the above embodiments. Figure 4 This is a schematic diagram of an automated testing device for vehicle messages according to an embodiment of the present invention, such as... Figure 4 As shown, the device includes the following components:
[0080] The generation module 402 is used to build test sequences based on the host computer and generate test instructions.
[0081] The control module 404 is used to control the target device to work based on the test command, so that the vehicle is in the target state corresponding to the test command, wherein the target device is set around the vehicle.
[0082] The acquisition module 406 is used to acquire a first vehicle message received by a preset application, wherein the first vehicle message is pushed to the preset application by the vehicle.
[0083] The comparison module 408 is used to compare the first vehicle message with the preset vehicle message to obtain the test result of the first vehicle message.
[0084] Optionally, the control module 404 includes: a water spraying unit for spraying water onto the rain sensing area on the vehicle based on the water spraying module, so that the vehicle is in a rainy parking state.
[0085] Optionally, the control module 404 further includes a push unit for pushing the door based on a robotic arm, so that the vehicle is in a door intrusion state.
[0086] Optionally, the control module 404 further includes a towing unit for towing the vehicle based on the robotic arm, so that the vehicle is in a towing state.
[0087] Optionally, the acquisition module 406 includes: an acquisition unit for acquiring image messages via an image acquisition device located near the electronic device, wherein a preset application is installed on the electronic device.
[0088] Example 4
[0089] According to an embodiment of the present invention, an electronic device is also provided, comprising: one or more processors; a storage device for storing one or more programs; and an automated testing method for, when the one or more programs are executed by the one or more processors, causing the one or more processors to execute vehicle messages as described above.
[0090] Example 5
[0091] According to an embodiment of the present invention, a vehicle is also provided, comprising: one or more processors; a storage device for storing one or more programs; and an automated testing method for, when the one or more programs are executed by the one or more processors, causing the one or more processors to execute vehicle messages as described above.
[0092] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0093] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0094] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.
[0095] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0096] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0097] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0098] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. An automated testing method for vehicle messages, characterized in that, include: The test sequence is built based on the host computer, and test instructions are generated. The target device is controlled to operate based on the test command so that the vehicle is in the target state corresponding to the test command. The target device is set around the vehicle. The test command is in the form of an alarm, voice, or indicator light. The target device is used to simulate dangerous states encountered by the vehicle. The target device includes at least a robotic arm and a water spray module. The target state includes at least the following states: door intrusion state, vehicle towing state, vehicle damage state, and rainy parking state. Obtain a first vehicle message received by a preset application, wherein the first vehicle message is pushed to the preset application by the vehicle; The first vehicle message is compared with the preset vehicle message to obtain the test result of the first vehicle message; The method of controlling the target device to operate based on the test command, so that the vehicle is in the target state corresponding to the test command, includes: spraying water onto the rain sensing area on the vehicle based on the water spray module, so that the vehicle is in the rainy parking state; pushing the door based on the robotic arm, so that the vehicle is in the door intrusion state; dragging the vehicle based on the robotic arm, so that the vehicle is in the vehicle dragging state; and controlling the robotic arm to knock on the glass of the vehicle, so that the vehicle is in the vehicle damage state. The first vehicle message includes an image message. Obtaining the first vehicle message received by the preset application includes: acquiring the image message by an image acquisition device set near the electronic device, wherein the preset application is installed on the electronic device, the image acquisition device includes at least a camera set on the vehicle body, and the electronic device includes at least a mobile phone and a computer. The image message is acquired by an image acquisition device located near the electronic device, including: in response to the vehicle being parked in the rainy weather, using the camera to photograph the vehicle's windows and sunroof to obtain the image message; in response to the vehicle being in the door intrusion state or the vehicle being towed, using the camera to photograph the entire body of the vehicle to obtain the image message.
2. An automated testing system for vehicle messages, comprising: The host computer is used to build the test program and generate test instructions; The target device, connected to the host computer, is used to operate based on the test command to put the vehicle in the target state corresponding to the test command. The target device is set around the vehicle. The test command is in the form of an alarm, voice, or indicator light. The target device is used to simulate dangerous states encountered by the vehicle. The target device includes at least a robotic arm and a water spray module. The target states include at least the following: door intrusion state, vehicle towing state, vehicle damage state, and rainy parking state. The host computer is also used to acquire a first vehicle message received by a preset application, and compare the first vehicle message with a preset vehicle message to obtain a test result of the first vehicle message, wherein the first vehicle message is pushed to the preset application by the vehicle; The target device includes: a water spray module for spraying water onto the rain sensing area of the vehicle to put the vehicle in a rainy parking state; and a robotic arm for pushing the vehicle door to put the vehicle in a door intrusion state, or dragging the vehicle to put the vehicle in a vehicle dragging state, or knocking on the vehicle window to put the vehicle in a vehicle damage state. The first vehicle message includes image messages. The system further includes an image acquisition device, which is located near the electronic device and connected to the host computer, for acquiring the image messages. The electronic device has a preset application installed on it. The image acquisition device includes at least a camera installed on the vehicle body. The electronic device includes at least a mobile phone and a computer. The image acquisition device is also used to capture images of the vehicle's windows and sunroof in response to the vehicle being parked in the rainy weather, and to obtain the image message; and to capture images of the entire vehicle body in response to the vehicle being in the door intrusion state or the vehicle being towed, and to obtain the image message.
3. The system according to claim 2, characterized in that, The system also includes: The container, inside which the target equipment is installed, and the vehicle is placed inside the container; An indicator light is located on the top of the enclosure to illuminate the interior of the enclosure.
4. A vehicle, characterized in that, include: One or more processors; Storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors perform the automated testing method for vehicle messages as described in claim 1.
Citation Information
Patent Citations
Automatic driving testing method, testing device and testing system
CN110147085A
Vehicle-mounted terminal software real vehicle testing method and system
CN113190454A
Vehicle test simulation system
CN114895644A
Testing apparatus for electric vehicle
WO2022087864A1