Performance test method, device and system based on automobile
By screening and assigning target cars that meet performance testing needs for testing, the problem of mismatch in automobile performance testing in the prior art is solved, and the testing efficiency and progress are improved.
Patent Information
- Application Number
- CN202411371870.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2024-11-12
AI Technical Summary
The existing automotive performance testing methods have inconsistent vehicle status, model and hardware performance, resulting in mismatched test script allocation, affecting the test progress and efficiency.
By obtaining performance test information and car list, filter target cars that meet the task computing power requirements and are on-line, perform matching allocation and test tasks, ensure that the test script matches the car, and tests through multiple cars to shorten time consumption .
The matching of test cars and scripts is achieved, avoiding test failures, shortening test time and improving testing efficiency.
Smart Images

Figure CN118936931A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of performance testing, and specifically to a performance testing method, device and system based on an automobile. Background Art
[0002] With the development of technology, more and more companies are building software for their enterprise services. Through service software, they provide online services to different users, which also facilitates companies to carry out digital transformation and realize online business management.
[0003] As user demands continue to increase, software requirements become increasingly complex, and the functions that different software can achieve are gradually increasing. Therefore, performance testing of multiple functions is required. Because calling a single server to test multiple functions takes a long time, the current commonly used testing method is: let users build test scripts for different functions in advance, then randomly assign the test scripts for different functions to different vehicles, and then call different vehicles to test the test scripts for different functions until all tests meet the requirements.
[0004] However, the commonly used testing methods currently have the following technical problems: the status, model and hardware performance of different vehicles are different, and the random allocation method of assigning test performance scripts to different vehicles will cause the assigned vehicles to not match the test performance scripts, making it impossible to execute performance tests, affecting the test progress, increasing the time spent on test processing, and reducing test efficiency. Summary of the invention
[0005] In view of the above problems, the embodiments of the present invention provide a vehicle-based performance testing method, device and system for solving the technical problem in the prior art that the test progress is affected and the test efficiency is reduced due to the vehicle being unable to meet the test performance requirements.
[0006] According to one aspect of an embodiment of the present invention, a vehicle-based performance testing method is provided, the method comprising:
[0007] Acquire performance test information and a first car list, wherein the first car list includes: information of a plurality of cars that have completed registration communication and test environment deployment;
[0008] According to the performance test information, a plurality of target vehicles are selected from the first vehicle list, where the target vehicles are vehicles that meet the task computing power requirements of the performance test information and are in an online state;
[0009] A test task is sent to a plurality of the target vehicles, so that each of the target vehicles performs a performance test according to the test task, and the test result is fed back after the performance test is completed.
[0010] The present invention is implemented by acquiring performance test information and a first car list; screening a number of target cars that meet the task computing power requirements of the performance test information and are in an online state from the first car list according to the performance test information; and then calling a number of target cars that meet the requirements to perform performance testing; not only can the test car be matched with the test script to avoid the situation where the test cannot be executed due to mismatch, but also the test processing by multiple cars can shorten the test time and improve the test efficiency.
[0011] According to another aspect of an embodiment of the present invention, there is provided a vehicle-based performance testing device, comprising: an acquisition module, a screening module and a testing module;
[0012] The acquisition module is used to acquire performance test information and a first car list, wherein the first car list includes: information of multiple cars that have completed registration communication and test environment deployment;
[0013] The screening module is used to screen a number of target vehicles from the first vehicle list according to the performance test information, wherein the target vehicles are vehicles that meet the task computing power requirements of the performance test information and are in an online state;
[0014] The test module is used to send a test task to a plurality of target vehicles, so that each target vehicle can perform a performance test according to the test task, and feed back the test result after completing the performance test.
[0015] According to another aspect of an embodiment of the present invention, there is provided a vehicle-based performance test system, the system comprising: a test platform and a plurality of vehicles, the test platform communicating with the plurality of vehicles respectively;
[0016] The test platform is suitable for the vehicle-based performance testing method as described above.
[0017] According to another aspect of an embodiment of the present invention, there is provided a vehicle-based performance test device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;
[0018] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the steps of the automobile-based performance testing method provided by the above embodiment.
[0019] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein the storage medium stores at least one executable instruction, wherein the executable instruction enables a vehicle-based performance testing device / apparatus to perform the following operations:
[0020] Acquire performance test information and a first car list, wherein the first car list includes: information of a plurality of cars that have completed registration communication and test environment deployment;
[0021] According to the performance test information, a plurality of target vehicles are selected from the first vehicle list, where the target vehicles are vehicles that meet the task computing power requirements of the performance test information and are in an online state;
[0022] A test task is sent to a plurality of the target vehicles, so that each of the target vehicles performs a performance test according to the test task, and the test result is fed back after the performance test is completed.
[0023] The present invention is implemented by acquiring performance test information and a first car list; screening a number of target cars that meet the task computing power requirements of the performance test information and are in an online state from the first car list according to the performance test information; and then calling a number of target cars that meet the requirements to perform performance testing; not only can the test car be matched with the test script to avoid the situation where the test cannot be executed due to mismatch, but also the test processing by multiple cars can shorten the test time and improve the test efficiency.
[0024] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present invention. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:
[0026] Figure 1 A schematic flow chart of a first embodiment of a vehicle-based performance testing method provided by the present invention is shown;
[0027] Figure 2 A schematic flow chart of a second embodiment of a vehicle-based performance testing method provided by the present invention is shown;
[0028] Figure 3 A schematic structural diagram of a first embodiment of a vehicle-based performance testing device provided by the present invention is shown;
[0029] Figure 4 A schematic structural diagram of an embodiment of a vehicle-based performance testing device provided by the present invention is shown. DETAILED DESCRIPTION
[0030] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.
[0031] Figure 1 The flowchart of the first embodiment of the vehicle-based performance test method provided by the present invention is shown, and the method is executed by a test platform. The test platform can be connected to multiple vehicles in communication, and the test platform determines whether the connected vehicles meet the requirements of the performance test. If they meet the requirements, the test tasks and test scripts are allocated to the corresponding vehicles, thereby avoiding
[0032] like Figure 1 As shown, the method comprises the following steps:
[0033] Step 110: Acquire performance test information and a first car list, wherein the first car list includes: information of multiple cars that have completed registration communication and test environment deployment.
[0034] In one embodiment, the performance test information may be relevant information of the performance test being conducted this time, including: the number of test tasks, computing power requirements for the test, test content, test network requirements, test scripts, etc.
[0035] The first car list is a list consisting of information of multiple cars. The multiple cars in the first car list may be cars in the same area or region, for example, cars located in the same town or the same city.
[0036] In an optional embodiment, the test platform can be communicatively connected to multiple cars, and the multiple cars can be divided according to regions. For example, the information of multiple cars in city A is constructed into a first car list, the information of multiple cars in city B is constructed into a second car list, and so on.
[0037] In a preferred embodiment, the region corresponding to the first car list may be a region in the same city as the test platform. The first car list in the same city may be preferentially screened for cars that meet the requirements, so as to call the cars that meet the requirements for testing.
[0038] In one embodiment, in order to determine the number of tasks required for this test and the parameter requirements and test scripts required for each task, in actual operation, after receiving the performance test information, the number of tasks to be assigned can be calculated based on the performance test information.
[0039] For example, based on industry experience, for a 4-core 8G 80M configuration of the Linux operating system, the number of test tasks can roughly simulate 800-1000 concurrencies. The test platform can take the lowest value for conversion, that is, 1 core 2G20M can simulate 200 concurrencies, a total of 200*4=800 concurrencies, and the corresponding number of tasks is 800.
[0040] By breaking down the number of concurrency required for this task, we can get the number of tasks, and then calculate the total computing power, memory, and network requirements for each task.
[0041] If the total demand is less than the total computing power, memory, and network data of the test platform, it is determined that this performance test can be executed, and the test platform initiates a computing power resource application to trigger subsequent operations; conversely, if the total demand is greater than the total computing power, memory, and network data of the test platform, it is determined that this performance test cannot be executed, and it can be determined that this task has failed, and feedback will be provided to the technical staff.
[0042] In one embodiment, if the car is not registered and recorded in the test platform, the test platform cannot communicate with the car, nor can it send the corresponding test tasks and test content to the car. In order to enable the test platform to communicate with the car, as an example, the operation of registering communication includes the following steps:
[0043] Step 210: Acquire the network parameters of the vehicle, which are the parameters calculated when the vehicle is powered on for the first time and hardware detection is completed.
[0044] Step 220: If the network parameters meet the parameter range values of the preset test parameters, a registration message is sent to the car.
[0045] Step 230: Complete registration and establish communication with the car according to the registration request fed back by the car, wherein the registration request is a request fed back after the user of the car views the registration message and agrees to the registration.
[0046] Specifically, after the car is powered on for the first time, the car can independently complete software and hardware self-tests, which can be used to calculate various parameters of the vehicle so that the test platform can determine whether the car can perform the test task based on the various parameters.
[0047] The specific self-test operation method can be to analyze the total values of various parameters of the vehicle (for example, total computing power, total memory, total network bandwidth, etc., hereinafter referred to as total values), average usage values in a stationary state (for example, average computing power usage value, average memory usage value, average network bandwidth usage value, etc., hereinafter referred to as average usage value), and usage peaks in a driving state (for example, computing power usage peaks, memory usage peaks, network bandwidth usage peaks, etc., hereinafter referred to as usage peaks) based on the historical data of the vehicle's resource manager to obtain network parameters.
[0048] During the use of the vehicle, the user may need to call multiple functions, which may cause its network parameters to decrease. Subsequent tests may often not be able to perform test tasks according to the network parameters in its static state. If the network parameters in its static state are uploaded and used as the judgment standard, it may deviate from the actual situation. In a preferred example, (total value-average usage value)*0.8 and (total value-peak usage)*0.8 are used to generate the maximum and minimum available values of the vehicle's computing power, memory, and bandwidth to obtain the network parameters. It should be noted that the above calculated ratio of 0.8 can be adjusted according to actual needs.
[0049] In one embodiment, in order to enable the car to send various parameter values uniformly, after calculating various network parameters, the car can use the network parameters to generate a report, and the vehicle reports the report to the test platform. If the minimum available value of each parameter meets the minimum configuration requirements of the test platform and the vehicle has not been registered in advance, the test platform can push the registration message to the vehicle and perform subsequent registration processing.
[0050] After receiving the pushed registration message, the vehicle can display the pushed registration message and let the vehicle user determine whether to register. If the user chooses no, the registration process can be determined to be over and the operation can be stopped; if the user chooses yes, the vehicle can feedback information to allow the test platform to establish communication with the vehicle.
[0051] It should be noted that the test platform may also determine that the vehicle has completed registration at a previous time, so there is no need to register again, and a communication connection can be directly established with the vehicle and subsequent communication processing can be performed. Alternatively, if the minimum available values of various parameters do not meet the minimum configuration requirements of the test platform, the registration process can also be determined to be completed, the operation is stopped, and the test platform marks the vehicle as unsuitable.
[0052] In one embodiment, since the vehicles may be of roughly the same model, in order to distinguish each vehicle and allow the test platform to establish communication with each vehicle respectively, as an example, completing registration and establishing communication with the vehicle according to the registration request fed back by the vehicle includes the following steps:
[0053] Step 310: Extract the vehicle verification information, vehicle identification code and vehicle parameters from the registration request.
[0054] Step 320: If it is determined that the verification information is valid, the preset database does not store the vehicle identification code, and the vehicle parameters meet the parameter range value of the registration parameters, the vehicle information contained in the registration request is stored in the preset database, and a registration completion notification is sent to the vehicle, so that the vehicle can establish a communication connection based on the registration response code, connection IP and connection interface of the registration completion notification.
[0055] In specific operations, the registration message pushed by the test platform may include: registration interface domain name, port, path, method, parameters, etc. The vehicle initiates a registration request to the test platform through the registration message pushed by the test platform. The registration request may include verification information, vehicle identification code and vehicle parameters.
[0056] The signature verification information may be information encrypted by asymmetric encryption based on the timestamp, parameter name and content of the current request.
[0057] The vehicle identification code may be a vehicle Vin code, with the Vin code as a unique identifier. The vehicle parameters may include: CPU architecture, operating system release version type, maximum available value, minimum available value, whether the operating environment is deployed, etc.
[0058] After the test platform receives the registration request, it first verifies the validity of the above-mentioned signature verification information. If it is valid, it can query the database to see if the vin code of the vehicle exists. If it does not exist, it will check again whether the vehicle parameters are legal, and specifically whether the parameters meet the parameter requirements and whether the version can be matched. If the vehicle parameters meet the parameter range value of the registration parameters, the information of the vehicle contained in the registration request will be stored in the preset database, and then the vehicle information of the vehicle will be stored in the database. The stored vehicle information may include the registration success response code and the registration center long connection IP and port. At the same time, a registration completion notification is sent to the vehicle so that the vehicle can establish a communication connection based on the registration response code, connection IP and connection interface of the registration completion notification.
[0059] The specific connection operation plan can be that the vehicle creates a socket object through the new Socket(ip,port) construction method, and then establishes a long socket connection with the test platform through the socket.connect(new InetSocketAddress(ip,port), timeout) method to complete the connection processing.
[0060] In one embodiment, different vehicles may have different models and different hardware resources. In order to allow each vehicle to have the test environment conditions, it is necessary to perform a test environment deployment operation on the vehicle so that each vehicle has the same test environment conditions. As an example, the test environment deployment operation includes the following steps:
[0061] Step 410: After determining the model information of the car, search and push the environment installation package to the car according to the model information, so that the car can upload the installation success information after the installation is completed.
[0062] Step 420: Add the car to the first car list based on the installation success information, and receive information reports uploaded by the car at preset time intervals.
[0063] After establishing a communication connection with the vehicle, the test platform can synchronize vehicle information in real time, and then determine the vehicle CPU architecture, operating system release version and other model information about the vehicle model from the vehicle information, and then analyze the operating environment installation package based on the vehicle CPU architecture and operating system release version to find the environment installation package suitable for the vehicle.
[0064] Then the adapted installation package and the Master node IP message of the test platform can be pushed to the vehicle. The vehicle obtains the download link of the installation package from the Master node IP message, automatically downloads and completes the installation. From then on, the vehicle can meet the environmental conditions of the test. At this time, various information of the vehicle can be added to the first car list. At the same time, in order to monitor the real-time status of the vehicle, the information report uploaded by the car at a preset time interval can be received. The information report can be a report that records the real-time network parameters of the car. For example, the car can report the maximum and minimum available values of the vehicle's computing power, memory, and network bandwidth to the test platform every 5 seconds.
[0065] In an optional embodiment, after adding the vehicle to the first car list, the computing power related data reported by the registered vehicle can be received in real time. At this time, the test platform can obtain the vehicle's participation score and completion score.
[0066] The participation score can be used to indicate the number of times a vehicle has participated in a test task, and the completion score can be used to indicate the number of times a vehicle has completed a test task. Each time a car participates in a test task, its participation score can be increased by 1 and its participation score can be recorded. Similarly, each time a car completes a test task, its completion score can be increased by 1 and its completion score can be recorded.
[0067] After adding the vehicle information to the first car list, you can sort different vehicles based on the participation score or completion score to facilitate subsequent screening.
[0068] For example, different vehicles can be sorted from high to low according to the size of the participation score, or different vehicles can be sorted from high to low according to the size of the completion score, or different vehicles can be sorted from high to low according to the sum of the participation score and the completion score. After sorting, the total computing power, memory, and network data of each vehicle in the cluster, as well as the total computing power, memory, and network data of all vehicles can be summarized at the same time, which is convenient for subsequent determination of whether the first car list meets the test requirements.
[0069] It should be noted that after pushing the Master node IP message, the test platform configures itself as the Slave node of the performance test cluster where the Master is located. If the car installation fails, the installation failure information is reported to the test platform. If the installation is successful, the installation success information can be reported to the test platform. The test platform can update the vehicle operating environment to deployed, and can identify the Slave node in the performance test cluster. At this time, the vehicle status is registered and online.
[0070] In one embodiment, during the communication between the vehicle and the test platform, communication interruption may occur, or the vehicle may be unable to communicate with the test platform due to various reasons, resulting in the interruption of the vehicle test or the inability to feedback the test results. In order to allow the test platform to monitor the communication status of the vehicle in real time, as an example, after completing the step of registering and establishing communication with the vehicle according to the registration request fed back by the vehicle, the method further includes the following steps:
[0071] Step 510: Detect the communication heartbeat packet of the car in real time.
[0072] Step 520: If the communication node of the car is determined to be an abnormal node based on the communication heartbeat packet, the state of the car in the first car list is modified to an offline state, and the performance test information is updated.
[0073] Among them, the abnormal node must meet any one of the following conditions: the number of times the communication heartbeat packet cannot be received is greater than or equal to the preset communication number of times, and the number of times the network strength of the communication heartbeat packet is less than the preset strength is greater than or equal to the preset strength number of times.
[0074] In one embodiment, the connection and support health check can be maintained by detecting the car's communication heartbeat packet (including heartbeat, vehicle location, vehicle status, and network strength data). Before the vehicle is powered off, the test platform does not actively close the long connection. If an abnormality occurs during the period and the connection is closed, the above steps are repeated again to allow the test platform and the vehicle to re-establish the connection and continue communicating.
[0075] During the communication process, the test platform can monitor the car's communication heartbeat packets in real time. If the car's communication heartbeat packets have the following situations, the test platform considers the node communicating with the car to be an abnormal node or an unhealthy node. At this time, the car's status in the first car list can be changed to an offline state, for example, to registered and offline. At the same time, the car's performance test information can also be updated, for example, total computing power, memory, network and other data can be updated. In subsequent tests, cars in offline state can be excluded.
[0076] In specific operations, the following situations may be considered abnormal nodes or unhealthy nodes: the test platform fails to obtain the communication heartbeat packet of the same vehicle for 2 or more times; the test platform detects the network strength of the communication heartbeat packet of the same vehicle for 2 or more times and the network strength is lower than 75%. If the above situations occur, the test platform considers the node communicating with the vehicle to be an abnormal node or an unhealthy node.
[0077] The real-time communication status of the vehicle can be determined through the communication heartbeat packet. If the vehicle communication is unstable, its status can be modified immediately, thereby avoiding the selection of vehicles with poor communication quality for testing and ensuring that the test can be executed stably.
[0078] Step 120: Filter a number of target vehicles from the first vehicle list according to the performance test information, wherein the target vehicles are vehicles that meet the task computing power requirements of the performance test information and are in an online state.
[0079] In one embodiment, the performance test information includes the numerical value of the computing power requirement for this test, the number of tasks, the test script and other information, and the first car list contains information of multiple cars. A greedy algorithm can be used to filter several cars that meet the above requirements in the first car list according to the performance test information, and the car corresponding to the car information is used as the target car, so as to obtain several cars that meet the above requirements.
[0080] In specific operations, the car information in the first car list can be arranged according to the participation score and the completion score. In order to select target cars that meet the requirements, you can first filter according to the status of the vehicle, then filter according to the task computing power requirements, and finally filter according to the size of the participation score and the completion score.
[0081] For example, the first car list records 10 cars, of which 8 are online and 2 are offline. Among the 8 cars, 5 are stationary and 3 are driving. The computing power of each car meets the computing power requirements.
[0082] Assuming that 5 cars are needed this time, you can prioritize screening from the stationary cars. If there are exactly 5 cars, then the 5 stationary cars are taken as the target cars.
[0083] Assuming that 3 cars are needed this time, and there are 5 stationary cars, 3 cars with the largest sum of participation scores and completion scores can be selected from the 5 cars, and the selected 3 cars are used as target cars.
[0084] Because a stationary car can provide computing power, memory and network with the maximum available value, and the car is idle and the vehicle network it is in is good, a greedy algorithm can be used to prioritize the screening of stationary cars.
[0085] It should be noted that if a car with a higher participation score and completion score does not meet the test quantity requirements, a car with a lower participation score and completion score can be selected as a concession. The real-time network parameters of the car with a lower participation score and completion score (such as its computing power and bandwidth data) need to meet the computing power requirements of the test.
[0086] In one embodiment, the number of target cars screened may not meet the number of tasks, and there may not be enough cars for test processing. For example, referring to the above example, the first car list records 10 cars, of which 8 are online and 2 are offline. Among the 8 cars, 5 are stationary and 3 are driving. The computing power of each car meets the computing power requirements. Assuming that this test requires 8 cars, but there are only 5 cars in a stationary state, the number of target cars screened does not meet the requirements of the number of test tasks.
[0087] In order to meet the requirement of the number of test tasks, as an example, after the step of screening a plurality of target vehicles from the first vehicle list according to the performance test information, the method further includes the following steps:
[0088] Step 610: If the number of the target cars is less than the number of tasks in the performance test information, a greedy algorithm is used to filter a number of target cars from a second car list according to the difference between the number of tasks and the number of target cars, wherein the second car list includes: information of multiple cars that have completed registration communication and test environment deployment, and the cars in the first car list and the cars in the second car list are in different areas.
[0089] Specifically, the task quantity may be extracted from the performance test information, where the task quantity may be the number of test steps sent, each test script may correspond to a functional test, and each functional test may be executed by a target vehicle.
[0090] If the number of target cars is less than the number of tasks in the performance test information, it means that the number of target cars screened from the first car list cannot meet the test requirements. In order to meet the test requirements, a second car list can be obtained, which includes: information on multiple cars that have completed registration communication and test environment deployment, and the cars in the second car list are in different areas from the cars in the first car list. According to the above analysis, the test platform can divide multiple cars into multiple lists according to the area in advance. A list of areas adjacent to the test platform can be obtained to obtain the second car list.
[0091] Then, a greedy algorithm is used to select several target cars from the second car list according to the difference between the number of tasks and the number of target cars. The specific screening method can also refer to the above example, with static state being given priority, and then screening based on the size of the participation score and completion score. If the car with a higher participation score and completion score does not meet the test quantity requirement, you can give way to the car with a lower participation score and completion score.
[0092] Optionally, the number of target cars screened in the second car list may still not meet the test quantity requirement, and the screening can be continued in the Nth car list. If the sum of all the cars in the stationary state in the list cannot meet the test quantity requirement, the cars in the driving state can be screened in the first car list. It should be noted that the real-time network parameters of the car in the driving state (such as its computing power and bandwidth data) need to meet the computing power requirements of the test. Continue screening in this way until the test quantity requirement is met.
[0093] In another optional example, if the number of cars in driving status that meet the computing power requirements of the test cannot meet the test quantity requirement again, the test platform can send performance test applications to cars that are currently online but not registered to request these cars to register and undergo test processing.
[0094] The present invention can continuously screen target vehicles in the above manner, so that the number of target vehicles can meet the requirement of the test quantity, thereby ensuring that the test can be carried out as scheduled.
[0095] Step 130: Sending a test task to a plurality of the target vehicles, so that each of the target vehicles performs a performance test according to the test task, and feeding back the test result after completing the performance test.
[0096] After each target car is screened, a test task can be sent to each target car separately. If the target car accepts the test task, a test script can be sent to it so that the target car can call the built-in hardware resources to perform performance testing using the test script according to the content of the test task, and feedback the test results after completing the performance test.
[0097] In one embodiment, during the execution of the test task, the car may be powered off or the user may need to drive the car to perform other driving operations. At this time, the target car may interrupt the test or fail to meet the test requirements. In order to detect the state of the target car in real time and determine whether the target car can meet the test requirements, as an example, after the step of performing performance testing on each of the target cars according to the test task, the method further includes the following steps:
[0098] Step 710: Monitor the health status and usage status of the target vehicle in real time.
[0099] Step 720: If the health status does not meet the health condition or the use status is switched from stationary to driving, the test is terminated and the target car is screened again in the first car list.
[0100] In one operation mode, the test platform can monitor the health status and usage status of the target car in real time through the communication heartbeat packet. During the test of the target car, if the health status of the target car changes, the current test is terminated, and the target car can be sent to the test platform, and the test platform re-screens the target car according to the above steps of screening the target car.
[0101] Alternatively, if the target vehicle's usage status switches from a stationary state to a driving state, and it is determined that its usage status has changed, the test can be terminated, and the target vehicle can be sent to the test platform so that the test platform can perform the above-mentioned step of screening the target vehicle and re-screen the target vehicle.
[0102] It should be noted that if the use state of the target vehicle is switched from a driving state to a stationary state, the test may not be terminated.
[0103] In one embodiment, when sending a test task to a target car, a user may need to use the car, thereby making the screened target car unable to perform the test task. In order to record the number of times the target car uses the test script to perform the test task and the number of times the test task is completed, it is convenient to screen the car according to the results of the test execution and the test completion. As an example, after the step of performing a performance test on the target car according to the test task and feeding back the test result after completing the performance test, the method further includes the following steps:
[0104] Step 910: When the target vehicle is undergoing a performance test, the participation score of the target vehicle is adjusted, and after the target vehicle provides feedback on the test results, the completion score of the target vehicle is adjusted.
[0105] Step 920: Adjust the order of the target car in the first car list according to the participation score and the completion score.
[0106] Specifically, after completing the registration, each car has an initial participation score and completion score, which are assumed to be 0. After sending the test task to the target car, the user of the target car can choose whether to accept the task of this performance test. If the user can choose to accept the task of this performance test, the target car can report its consent to the test platform, and the test platform will add 1 point to the participation score of the vehicle. At the same time, the test platform will send the test script to the target car. At this time, the test platform can send an execution instruction to the target car to let the target car start the performance test. If the target car completes the test and feedbacks the test results, the target car can also report the test results to the test platform, and the test platform will add 1 point to the completion score of the vehicle.
[0107] Similarly, if the user of the target car can choose not to accept the task of this performance test, repeat the above steps and screen the target cars again until a target car whose vehicle computing power, memory, and network meet the requirements of this test is found.
[0108] It should be noted that if the participation score and completion score of the target car change, the order of the target car in the first car list can be adjusted according to the changed participation score and completion score, so as to facilitate the next screening according to the new participation score and completion score.
[0109] The present invention is implemented by acquiring performance test information and a first car list; using a greedy algorithm to screen a number of target cars that meet the task computing power requirements of the performance test information and are in an online state from the first car list according to the performance test information; and then calling a number of target cars that meet the requirements to perform performance testing; not only can the test car be matched with the test script to avoid the situation where the test cannot be executed due to mismatch, but also the test processing by multiple cars can shorten the test time and improve the test efficiency.
[0110] Figure 2 The flowchart of another embodiment of the automobile-based performance test method provided by the present invention is shown, and the method is executed by a test platform. In one embodiment, the test platform may include four units: a registration center, a scheduling center, an execution engine, and a result module.
[0111] Specifically, Figure 2 As shown, the method comprises the following steps:
[0112] Step 1: 1. When the vehicle is powered on for the first time, it will complete self-test of its software and hardware. Based on the historical data of its resource manager, it will analyze the comprehensive values of the vehicle's computing power, memory, and network (hereinafter referred to as the total value), the average usage value in a stationary state (hereinafter referred to as the average usage value), and the usage peak value in a driving state (hereinafter referred to as the usage peak value). The maximum and minimum available values of the vehicle's computing power, memory, and bandwidth are generated by (total value - average usage value)*0.8 and (total value - usage peak value)*0.8. The vehicle reports the report to the registration center. If the minimum available value meets the minimum configuration requirements of the registration center and the vehicle is not registered, the registration center pushes a registration message to the vehicle. If the vehicle is registered, jump to step 3. If the configuration does not meet the requirements, the process ends and the registration center marks the vehicle as not applicable. The vehicle chooses whether to register based on the push message. If not, the process ends; if yes, jump to step 2.
[0113] In the second step, the vehicle initiates a registration request through the registration message pushed by the registration center (including the registration interface domain name, port, path, method, parameters, etc.), with the Vin code as the unique identifier. Other parameters include the vehicle Vin code, CPU architecture, operating system release version type, maximum available value, minimum available value, whether the operating environment is deployed and signature verification information (the signature verification information is based on the timestamp, parameter name and content of this request, and is encrypted by asymmetric encryption). After receiving the request, the registration center first verifies the validity of the signature verification information. If it passes, it queries the registration center database to see if the vehicle Vin code exists. If it passes, it checks whether other parameters are legal. If they all pass, the vehicle information is stored in the database, and a notification is sent to the vehicle at the same time, including the registration success response code and the registration center's long connection IP and port.
[0114] In the third step, the vehicle creates a socket object through the new Socket(ip,port) construction method, and then establishes a socket long connection with the registration center through the socket.connect(new InetSocketAddress(ip,port), timeout) method, and then maintains the connection and supports health checks through heartbeat packets (including heartbeat, vehicle location, vehicle status, and network strength data). Before the vehicle is powered off, it does not actively close the long connection. If an exception occurs during the period and the connection is closed, repeat the third step again. If the vehicle does not have the operating environment installed, jump to the fourth step, at which time the vehicle status is registered and not deployed; otherwise jump to the fifth step, at which time the vehicle status is registered and online.
[0115] In the fourth step, the registration center synchronizes vehicle information to the execution engine in real time. The execution engine analyzes the operating environment installation package based on the vehicle CPU architecture and operating system release version, and pushes the adaptation installation package and the execution engine Master node IP message to the vehicle. The vehicle obtains the installation package download link from the message, automatically downloads and completes the installation, and configures itself as the Slave node of the performance test cluster where the Master is located. If the installation fails, the installation failure information is reported to the registration center, and the process ends. At this time, the vehicle status is registered and not applicable; otherwise, the installation success information is reported to the registration center, and the registration center updates the vehicle operating environment to deployed. At the same time, the Slave node can be identified in the performance test cluster. At this time, the vehicle status is registered and online. The vehicle reports the maximum and minimum available values of vehicle computing power, memory, and network bandwidth to the registration center every 5 seconds.
[0116] In the fifth step, the registration center receives the computing power-related data reported by the registered vehicles, and sorts the registered and online vehicles from high to low based on the participation score and completion score, and summarizes the total computing power, memory, and network data of the cluster.
[0117] In the sixth step, the registration center monitors the heartbeat packet in real time. If the heartbeat packet shows the following situations, the node is considered to be an unhealthy node: 1. The heartbeat packet of the same vehicle cannot be obtained for 2 or more times; 2. The vehicle network strength in the heartbeat packet is less than 75% for 2 or more times. The registration center sets the unhealthy vehicle status to offline and synchronizes the VIN code information to the execution engine. The execution engine removes it from the test cluster. The registration center updates the total computing power, memory and network data. At this time, the vehicle status is registered and offline.
[0118] In the seventh step, the dispatch center receives the performance test task. Based on industry experience, a 4-core 8G80M configuration of the Linux operating system can roughly simulate 800-1000 concurrencies. The dispatch center takes the lowest value for conversion, that is, 1 core 2G20M can simulate 200 concurrencies. By breaking down the number of concurrencies required for this task, the total requirements for computing power, memory, and network can be obtained. If the total requirement is greater than the total computing power, memory, and network data of the dispatch center, the task execution fails. Otherwise, the dispatch center initiates a computing power resource application to the registration center.
[0119] In the eighth step, the registration center adopts a greedy algorithm, that is, it prioritizes vehicles from the list of vehicles that are stationary (stationary vehicles can provide computing power, memory and network with the maximum available values), idle, in a good vehicle network, in the same city as the system to be tested, with high participation scores, high completion rates and registered, and online, until the computing power data meets this demand; if it cannot be met, it will give way to cross-city selection, and if it still cannot be met, it will give way to vehicles in driving state (after selecting a running vehicle, the computing power, memory and network provided by the vehicle are converted to the minimum available values); if it cannot be met again, it will give way to vehicles with lower participation and completion rates; after the registration center completes the vehicle selection, it pushes the vehicle VIN code value to the dispatch center. The dispatch center sends a performance test application to the selected vehicle.
[0120] In the ninth step, the vehicle independently chooses whether to accept this performance test. If yes, it reports to the dispatch center for approval. The dispatch center synchronizes the vehicle information to the execution engine, adds 1 point to the vehicle's participation, and the execution engine sends the test script to the vehicle. If no, repeat the eighth step until the vehicle's computing power, memory, and network meet the requirements of this test. At this time, the dispatch center sends a dispatch completion instruction to the execution engine, and the execution engine sends an execution instruction to the vehicle, and the vehicle starts to perform the performance test.
[0121] In the tenth step, the registration center monitors the health and status of the vehicle in real time. If the health status changes during the execution process, the current test is terminated and the eighth step is repeated. If the vehicle status changes (driving -> stationary), it does not affect the task execution. If it is stationary -> driving, the current test is terminated and the eighth step is repeated.
[0122] In the eleventh step, if the vehicle is powered off during the task execution, the power-off message is reported to the registration center and the eighth step is repeated.
[0123] Step 12: After the test is completed, the execution engine synchronizes the execution results to the statistical module for result output, and adds 1 point to the completion degree of the vehicle that has completed the test.
[0124] Compared with the prior art, the present invention independently selects external output performance test capabilities based on idle hardware resources such as CPU, memory, and network of personal intelligent vehicles, automatically identifies unhealthy vehicles based on a registration center, and maintains high availability of the cluster; completes vehicle selection and task distribution based on a dispatch center; and completes test cluster software environment maintenance based on an execution engine, with no additional cost.
[0125] Figure 3 FIG. 2 is a schematic diagram showing a structure of an embodiment of a vehicle performance testing device provided by the present invention. Figure 3 As shown, the device 300 includes: an acquisition module 310, a screening module 320 and a testing module 330.
[0126] The acquisition module is used to acquire performance test information and a first car list, wherein the first car list includes: information of multiple cars that have completed registration communication and test environment deployment;
[0127] The screening module is used to screen a number of target vehicles from the first vehicle list according to the performance test information, wherein the target vehicles are vehicles that meet the task computing power requirements of the performance test information and are in an online state;
[0128] The test module is used to send a test task to a plurality of target vehicles, so that each target vehicle can perform a performance test according to the test task, and feed back the test result after completing the performance test.
[0129] In an optional manner, the operation of registering the communication includes:
[0130] Obtaining the network parameters of the vehicle, which are the parameters calculated when the vehicle is powered on for the first time and hardware detection is completed;
[0131] If the network parameter meets the parameter range value of the preset test parameter, a registration message is sent to the car;
[0132] The registration is completed and communication is established with the car according to a registration request fed back by the car, wherein the registration request is a request for the user of the car to view the registration message and agree to the post-registration feedback.
[0133] In an optional manner, completing registration and establishing communication with the vehicle according to the registration request fed back by the vehicle includes:
[0134] Extracting the verification information, the vehicle identification code and the vehicle parameters of the vehicle from the registration request;
[0135] If it is determined that the verification information is valid, the vehicle identification code is not stored in the preset database, and the vehicle parameters meet the parameter range value of the registration parameters, the vehicle information contained in the registration request is stored in the preset database, and a registration completion notification is sent to the vehicle so that the vehicle can establish a communication connection based on the registration response code, connection IP and connection interface of the registration completion notification.
[0136] In an optional manner, the device further includes:
[0137] A heartbeat packet detection module, used for detecting the communication heartbeat packet of the car in real time after completing the registration and establishing communication with the car according to the registration request fed back by the car;
[0138] A node abnormality module, for modifying the state of the car in the first car list to an offline state and updating performance test information if the communication node of the car is determined to be an abnormal node based on the communication heartbeat packet;
[0139] Among them, the abnormal node must meet any one of the following conditions: the number of times the communication heartbeat packet cannot be received is greater than or equal to the preset communication number of times, and the number of times the network strength of the communication heartbeat packet is less than the preset strength is greater than or equal to the preset strength number of times.
[0140] In an optional manner, the operation of deploying the test environment includes:
[0141] After determining the model information of the car, search and push the environment installation package to the car according to the model information, so that the car can upload the installation success information after the installation is completed;
[0142] The car is added to the first car list based on the installation success information, and an information report uploaded by the car at a preset time interval is received.
[0143] In an optional manner, the device further includes:
[0144] The second list module is used to, after the step of screening a plurality of target cars from the first car list according to the performance test information, if the number of target cars is less than the number of tasks of the performance test information, screen a plurality of target cars from the second car list according to the difference between the number of tasks and the number of target cars by using a greedy algorithm, wherein the second car list includes: information of a plurality of cars that have completed registration communication and test environment deployment, and the cars in the first car list and the cars in the second car list are in different areas.
[0145] In an optional manner, the device further includes:
[0146] A detection status module, used for real-time monitoring of the health status and use status of the target vehicle after each of the target vehicles calls the built-in hardware resources to perform the performance test according to the test task;
[0147] The test termination module is used to terminate the test if the health state does not meet the health condition or the use state is switched from stationary to driving, and re-screen the target car in the first car list.
[0148] In an optional manner, the device further includes:
[0149] A score adjustment module is used to adjust the participation score of the target vehicle when the target vehicle performs the performance test, and adjust the completion score of the target vehicle after the target vehicle feeds back the test result after the target vehicle feeds back the test result, after the target vehicle calls the built-in hardware resources to perform the performance test according to the test task and feeds back the test result after the performance test is completed;
[0150] The sorting adjustment module is used to adjust the order of the target car in the first car list according to the participation score and the completion score.
[0151] Figure 4 A schematic structural diagram of an embodiment of a vehicle-based performance testing device provided by the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the vehicle-based performance testing device.
[0152] like Figure 4 As shown, the automobile-based performance testing device may include: a processor 402 , a communications interface 404 , a memory 406 , and a communications bus 408 .
[0153] The processor 402, the communication interface 404, and the memory 406 communicate with each other via the communication bus 408. The communication interface 404 is used to communicate with other devices such as a client or other server network elements. The processor 402 is used to execute the program 410, which can specifically execute the relevant steps in the above-mentioned embodiment of the performance test method based on the vehicle.
[0154] Specifically, the program 410 may include program code including computer executable instructions.
[0155] The processor 402 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiment of the present invention. The one or more processors included in the automobile-based performance test equipment may be processors of the same type, such as one or more CPUs; or may be processors of different types, such as one or more CPUs and one or more ASICs.
[0156] The memory 406 is used to store the program 410. The memory 406 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0157] The program 410 may be specifically invoked by the processor 402 to enable the vehicle-based performance testing device to perform the following operations:
[0158] Acquire performance test information and a first car list, wherein the first car list includes: information of a plurality of cars that have completed registration communication and test environment deployment;
[0159] According to the performance test information, a plurality of target vehicles are selected from the first vehicle list, where the target vehicles are vehicles that meet the task computing power requirements of the performance test information and are in an online state;
[0160] A test task is sent to a plurality of the target vehicles, so that each of the target vehicles performs a performance test according to the test task, and the test result is fed back after the performance test is completed.
[0161] In an optional manner, the operation of registering the communication includes:
[0162] Obtaining the network parameters of the vehicle, which are the parameters calculated when the vehicle is powered on for the first time and hardware detection is completed;
[0163] If the network parameter meets the parameter range value of the preset test parameter, a registration message is sent to the car;
[0164] The registration is completed and communication is established with the car according to a registration request fed back by the car, wherein the registration request is a request for the user of the car to view the registration message and agree to the post-registration feedback.
[0165] In an optional manner, completing registration and establishing communication with the vehicle according to the registration request fed back by the vehicle includes:
[0166] Extracting the verification information, the vehicle identification code and the vehicle parameters of the vehicle from the registration request;
[0167] If it is determined that the verification information is valid, the vehicle identification code is not stored in the preset database, and the vehicle parameters meet the parameter range value of the registration parameters, the vehicle information contained in the registration request is stored in the preset database, and a registration completion notification is sent to the vehicle so that the vehicle can establish a communication connection based on the registration response code, connection IP and connection interface of the registration completion notification.
[0168] In an optional manner, after the step of completing registration and establishing communication with the vehicle according to the registration request fed back by the vehicle, the method further includes:
[0169] Detect the car's communication heartbeat packet in real time;
[0170] If the communication node of the car is determined to be an abnormal node based on the communication heartbeat packet, the state of the car in the first car list is modified to an offline state, and the performance test information is updated;
[0171] Among them, the abnormal node must meet any one of the following conditions: the number of times the communication heartbeat packet cannot be received is greater than or equal to the preset communication number of times, and the number of times the network strength of the communication heartbeat packet is less than the preset strength is greater than or equal to the preset strength number of times.
[0172] In an optional manner, the operation of deploying the test environment includes:
[0173] After determining the model information of the car, search and push the environment installation package to the car according to the model information, so that the car can upload the installation success information after the installation is completed;
[0174] The car is added to the first car list based on the installation success information, and an information report uploaded by the car at a preset time interval is received.
[0175] In an optional manner, after the step of using a greedy algorithm to filter a plurality of target vehicles from the first vehicle list according to the performance test information, the method further includes:
[0176] If the number of target cars is less than the number of tasks in the performance test information, a greedy algorithm is used to filter several target cars from a second car list according to the difference between the number of tasks and the number of target cars, wherein the second car list includes: information of multiple cars that are located in adjacent areas and have completed registration communication and test environment deployment.
[0177] In an optional manner, after the step of each of the target vehicles calling built-in hardware resources to perform performance testing according to the test task, the method further includes:
[0178] Monitor the health status and usage status of the target car in real time;
[0179] If the health status does not meet the health condition or the use status is switched from stationary to driving, the test is terminated and the target car is screened again in the first car list.
[0180] In an optional manner, after the step of invoking built-in hardware resources of the target vehicle to perform performance testing according to the test task and feeding back the test results after completing the performance testing, the method further includes:
[0181] When the target vehicle is undergoing a performance test, adjusting the participation score of the target vehicle, and after the target vehicle provides feedback on the test results, adjusting the completion score of the target vehicle;
[0182] The order of the target car in the first car list is adjusted according to the participation score and the completion score.
[0183] In an optional manner, the program 410 is called by the processor 402 to enable the vehicle-based performance testing device to perform the following operations:
[0184] Acquire performance test information and a first car list, wherein the first car list includes: information of a plurality of cars that have completed registration communication and test environment deployment;
[0185] According to the performance test information, a plurality of target vehicles are selected from the first vehicle list, where the target vehicles are vehicles that meet the task computing power requirements of the performance test information and are in an online state;
[0186] A test task is sent to a plurality of the target vehicles, so that each of the target vehicles performs a performance test according to the test task, and the test result is fed back after the performance test is completed.
[0187] In an optional manner, the operation of registering the communication includes:
[0188] Obtaining the network parameters of the vehicle, which are the parameters calculated when the vehicle is powered on for the first time and hardware detection is completed;
[0189] If the network parameters meet the parameter range values of the preset test parameters, a registration message is sent to the car;
[0190] The registration is completed and communication is established with the car according to a registration request fed back by the car, wherein the registration request is a request for the user of the car to view the registration message and agree to the post-registration feedback.
[0191] In an optional manner, completing registration and establishing communication with the vehicle according to the registration request fed back by the vehicle includes:
[0192] Extracting the verification information, the vehicle identification code and the vehicle parameters of the vehicle from the registration request;
[0193] If it is determined that the verification information is valid, the vehicle identification code is not stored in the preset database, and the vehicle parameters meet the parameter range value of the registration parameters, the vehicle information contained in the registration request is stored in the preset database, and a registration completion notification is sent to the vehicle so that the vehicle can establish a communication connection based on the registration response code, connection IP and connection interface of the registration completion notification.
[0194] In an optional manner, after the step of completing registration and establishing communication with the vehicle according to the registration request fed back by the vehicle, the method further includes:
[0195] Detect the car's communication heartbeat packet in real time;
[0196] If the communication node of the car is determined to be an abnormal node based on the communication heartbeat packet, the state of the car in the first car list is modified to an offline state, and the performance test information is updated;
[0197] Among them, the abnormal node must meet any one of the following conditions: the number of times the communication heartbeat packet cannot be received is greater than or equal to the preset communication number of times, and the number of times the network strength of the communication heartbeat packet is less than the preset strength is greater than or equal to the preset strength number of times.
[0198] In an optional manner, the operation of deploying the test environment includes:
[0199] After determining the model information of the car, search and push the environment installation package to the car according to the model information, so that the car can upload the installation success information after the installation is completed;
[0200] The car is added to the first car list based on the installation success information, and an information report uploaded by the car at a preset time interval is received.
[0201] In an optional manner, after the step of using a greedy algorithm to filter a plurality of target vehicles from the first vehicle list according to the performance test information, the method further includes:
[0202] If the number of target cars is less than the number of tasks in the performance test information, a greedy algorithm is used to filter a number of target cars from a second car list according to the difference between the number of tasks and the number of target cars, wherein the second car list includes: information of multiple cars that are located in adjacent areas and have completed registration communication and test environment deployment.
[0203] In an optional manner, after the step of each of the target vehicles calling built-in hardware resources to perform performance testing according to the test task, the method further includes:
[0204] Monitor the health status and usage status of the target car in real time;
[0205] If the health status does not meet the health condition or the use status is switched from stationary to driving, the test is terminated and the target car is screened again in the first car list.
[0206] In an optional manner, after the step of invoking built-in hardware resources of the target vehicle to perform performance testing according to the test task and feeding back the test results after completing the performance testing, the method further includes:
[0207] When the target vehicle is undergoing a performance test, adjusting the participation score of the target vehicle, and after the target vehicle provides feedback on the test results, adjusting the completion score of the target vehicle;
[0208] The order of the target car in the first car list is adjusted according to the participation score and the completion score.
[0209] An embodiment of the present invention provides a computer-readable storage medium, which stores at least one executable instruction. When the executable instruction is executed on a vehicle-based performance testing device / apparatus, the vehicle-based performance testing device / apparatus executes the vehicle-based performance testing method in any of the above-mentioned method embodiments.
[0210] The executable instructions may be specifically used to enable the vehicle-based performance testing equipment / device to perform the following operations:
[0211] Acquire performance test information and a first car list, wherein the first car list includes: information of a plurality of cars that have completed registration communication and test environment deployment;
[0212] According to the performance test information, a plurality of target vehicles are selected from the first vehicle list, where the target vehicles are vehicles that meet the task computing power requirements of the performance test information and are in an online state;
[0213] A test task is sent to a plurality of the target vehicles, so that each of the target vehicles performs a performance test according to the test task, and the test result is fed back after the performance test is completed.
[0214] In an optional manner, the operation of registering the communication includes:
[0215] Obtaining the network parameters of the vehicle, which are the parameters calculated when the vehicle is powered on for the first time and hardware detection is completed;
[0216] If the network parameter meets the parameter range value of the preset test parameter, a registration message is sent to the car;
[0217] The registration is completed and communication is established with the car according to a registration request fed back by the car, wherein the registration request is a request for the user of the car to view the registration message and agree to the post-registration feedback.
[0218] In an optional manner, completing registration and establishing communication with the vehicle according to the registration request fed back by the vehicle includes:
[0219] Extracting the verification information, the vehicle identification code and the vehicle parameters of the vehicle from the registration request;
[0220] If it is determined that the verification information is valid, the vehicle identification code is not stored in the preset database, and the vehicle parameters meet the parameter range value of the registration parameters, the vehicle information contained in the registration request is stored in the preset database, and a registration completion notification is sent to the vehicle so that the vehicle can establish a communication connection based on the registration response code, connection IP and connection interface of the registration completion notification.
[0221] In an optional manner, after the step of completing registration and establishing communication with the vehicle according to the registration request fed back by the vehicle, the method further includes:
[0222] Detect the car's communication heartbeat packet in real time;
[0223] If the communication node of the car is determined to be an abnormal node based on the communication heartbeat packet, the state of the car in the first car list is modified to an offline state, and the performance test information is updated;
[0224] Among them, the abnormal node must meet any one of the following conditions: the number of times the communication heartbeat packet cannot be received is greater than or equal to the preset communication number of times, and the number of times the network strength of the communication heartbeat packet is less than the preset strength is greater than or equal to the preset strength number of times.
[0225] In an optional manner, the operation of deploying the test environment includes:
[0226] After determining the model information of the car, search and push the environment installation package to the car according to the model information, so that the car can upload the installation success information after the installation is completed;
[0227] The car is added to the first car list based on the installation success information, and an information report uploaded by the car at a preset time interval is received.
[0228] In an optional manner, after the step of using a greedy algorithm to filter a plurality of target vehicles from the first vehicle list according to the performance test information, the method further includes:
[0229] If the number of target cars is less than the number of tasks in the performance test information, a greedy algorithm is used to filter several target cars from a second car list according to the difference between the number of tasks and the number of target cars, wherein the second car list includes: information of multiple cars that are located in adjacent areas and have completed registration communication and test environment deployment.
[0230] In an optional manner, after the step of each of the target vehicles calling built-in hardware resources to perform performance testing according to the test task, the method further includes:
[0231] Monitor the health status and usage status of the target car in real time;
[0232] If the health status does not meet the health condition or the use status is switched from stationary to driving, the test is terminated and the target car is screened again in the first car list.
[0233] In an optional manner, after the step of invoking built-in hardware resources of the target vehicle to perform performance testing according to the test task and feeding back the test results after completing the performance testing, the method further includes:
[0234] When the target vehicle is undergoing a performance test, adjusting the participation score of the target vehicle, and after the target vehicle provides feedback on the test results, adjusting the completion score of the target vehicle;
[0235] The order of the target car in the first car list is adjusted according to the participation score and the completion score.
[0236] In an optional manner, the executable instructions cause the vehicle-based performance testing equipment / device to perform the following operations:
[0237] Acquire performance test information and a first car list, wherein the first car list includes: information of a plurality of cars that have completed registration communication and test environment deployment;
[0238] According to the performance test information, a plurality of target vehicles are selected from the first vehicle list, where the target vehicles are vehicles that meet the task computing power requirements of the performance test information and are in an online state;
[0239] A test task is sent to a plurality of the target vehicles, so that each of the target vehicles performs a performance test according to the test task, and the test result is fed back after the performance test is completed.
[0240] In an optional manner, the operation of registering the communication includes:
[0241] Obtaining the network parameters of the vehicle, which are the parameters calculated when the vehicle is powered on for the first time and hardware detection is completed;
[0242] If the network parameters meet the parameter range values of the preset test parameters, a registration message is sent to the car;
[0243] The registration is completed and communication is established with the car according to a registration request fed back by the car, wherein the registration request is a request for the user of the car to view the registration message and agree to the post-registration feedback.
[0244] In an optional manner, completing registration and establishing communication with the vehicle according to the registration request fed back by the vehicle includes:
[0245] Extracting the verification information, the vehicle identification code and the vehicle parameters of the vehicle from the registration request;
[0246] If it is determined that the verification information is valid, the vehicle identification code is not stored in the preset database, and the vehicle parameters meet the parameter range value of the registration parameters, the vehicle information contained in the registration request is stored in the preset database, and a registration completion notification is sent to the vehicle so that the vehicle can establish a communication connection based on the registration response code, connection IP and connection interface of the registration completion notification.
[0247] In an optional manner, after the step of completing registration and establishing communication with the vehicle according to the registration request fed back by the vehicle, the method further includes:
[0248] Detect the car's communication heartbeat packet in real time;
[0249] If the communication node of the car is determined to be an abnormal node based on the communication heartbeat packet, the state of the car in the first car list is modified to an offline state, and the performance test information is updated;
[0250] Among them, the abnormal node must meet any one of the following conditions: the number of times the communication heartbeat packet cannot be received is greater than or equal to the preset communication number of times, and the number of times the network strength of the communication heartbeat packet is less than the preset strength is greater than or equal to the preset strength number of times.
[0251] In an optional manner, the operation of deploying the test environment includes:
[0252] After determining the model information of the car, search and push the environment installation package to the car according to the model information, so that the car can upload the installation success information after the installation is completed;
[0253] The car is added to the first car list based on the installation success information, and an information report uploaded by the car at a preset time interval is received.
[0254] In an optional manner, after the step of using a greedy algorithm to filter a plurality of target vehicles from the first vehicle list according to the performance test information, the method further includes:
[0255] If the number of target cars is less than the number of tasks in the performance test information, a greedy algorithm is used to filter a number of target cars from a second car list according to the difference between the number of tasks and the number of target cars, wherein the second car list includes: information of multiple cars that are located in adjacent areas and have completed registration communication and test environment deployment.
[0256] In an optional manner, after the step of each of the target vehicles calling built-in hardware resources to perform performance testing according to the test task, the method further includes:
[0257] Monitor the health status and usage status of the target car in real time;
[0258] If the health status does not meet the health condition or the use status is switched from stationary to driving, the test is terminated and the target car is screened again in the first car list.
[0259] In an optional manner, after the step of invoking built-in hardware resources of the target vehicle to perform performance testing according to the test task and feeding back the test results after completing the performance testing, the method further includes:
[0260] When the target vehicle is undergoing a performance test, adjusting the participation score of the target vehicle, and after the target vehicle provides feedback on the test results, adjusting the completion score of the target vehicle;
[0261] The order of the target car in the first car list is adjusted according to the participation score and the completion score.
[0262] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system or other device. In addition, the embodiments of the present invention are not directed to any particular programming language.
[0263] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. Similarly, in order to simplify the present invention and help understand one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. Wherein, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself is a separate embodiment of the present invention.
[0264] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and further may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive.
[0265] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.
Claims
1. A performance testing method based on automobiles, It is characterized in that The method comprises: Acquire performance test information and a first car list, wherein the first car list includes: information of a plurality of cars that have completed registration communication and test environment deployment; According to the performance test information, a plurality of target vehicles are selected from the first vehicle list, where the target vehicles are vehicles that meet the task computing power requirements of the performance test information and are in an online state; A test task is sent to a plurality of the target vehicles, so that each of the target vehicles performs a performance test according to the test task, and the test result is fed back after the performance test is completed.
2. The method according to claim 1, It is characterized in that The operation of registering communication includes: Obtaining the network parameters of the vehicle, which are the parameters calculated when the vehicle is powered on for the first time and hardware detection is completed; If the network parameter meets the parameter range value of the preset test parameter, a registration message is sent to the car; The registration is completed and communication is established with the car according to a registration request fed back by the car, wherein the registration request is a request for the user of the car to view the registration message and agree to the post-registration feedback.
3. The method according to claim 2, It is characterized in that The step of completing registration and establishing communication with the vehicle according to the registration request fed back by the vehicle includes: Extracting the verification information, the vehicle identification code and the vehicle parameters of the vehicle from the registration request; If it is determined that the verification information is valid, the vehicle identification code is not stored in the preset database, and the vehicle parameters meet the parameter range value of the registration parameters, the vehicle information contained in the registration request is stored in the preset database, and a registration completion notification is sent to the vehicle so that the vehicle can establish a communication connection based on the registration response code, connection IP and connection interface of the registration completion notification.
4. The method according to claim 3, It is characterized in that After the step of completing registration and establishing communication with the vehicle according to the registration request fed back by the vehicle, the method further includes: Detect the car's communication heartbeat packet in real time; If the communication node of the car is determined to be an abnormal node based on the communication heartbeat packet, the state of the car in the first car list is modified to an offline state, and the performance test information is updated; Among them, the abnormal node must meet any one of the following conditions: the number of times the communication heartbeat packet cannot be received is greater than or equal to the preset communication number of times, and the number of times the network strength of the communication heartbeat packet is less than the preset strength is greater than or equal to the preset strength number of times.
5. The method according to claim 1, It is characterized in that The test environment deployment operations include: After determining the model information of the car, search and push the environment installation package to the car according to the model information, so that the car can upload the installation success information after the installation is completed; The car is added to the first car list based on the installation success information, and an information report uploaded by the car at a preset time interval is received.
6. The method according to claim 1, It is characterized in that After the step of screening a plurality of target vehicles from the first vehicle list according to the performance test information, the method further comprises: If the number of target cars is less than the number of tasks in the performance test information, a greedy algorithm is used to screen a number of target cars from a second car list according to the difference between the number of tasks and the number of target cars, wherein the second car list includes: information of multiple cars that have completed registration communication and test environment deployment, and the cars in the first car list and the cars in the second car list are in different areas.
7. The method according to claim 1, It is characterized in that After the step of performing a performance test on each of the target vehicles according to the test task, the method further includes: Monitor the health status and usage status of the target car in real time; If the health status does not meet the health condition or the use status is switched from stationary to driving, the test is terminated and the target car is screened again in the first car list.
8. The method according to claim 1, It is characterized in that After the step of performing a performance test on the target vehicle according to the test task and feeding back the test result after completing the performance test, the method further includes: When the target vehicle is undergoing a performance test, adjusting the participation score of the target vehicle, and after the target vehicle provides feedback on the test results, adjusting the completion score of the target vehicle; The order of the target car in the first car list is adjusted according to the participation score and the completion score.
9. A performance test device based on a car, It is characterized in that The device comprises: an acquisition module, a screening module and a testing module; The acquisition module is used to acquire performance test information and a first car list, wherein the first car list includes: information of multiple cars that have completed registration communication and test environment deployment; The screening module is used to screen a number of target vehicles from the first vehicle list according to the performance test information, wherein the target vehicles are vehicles that meet the task computing power requirements of the performance test information and are in an online state; The test module is used to send a test task to a plurality of target vehicles, so that each target vehicle can perform a performance test according to the test task, and feed back the test result after completing the performance test.
10. A car-based performance testing system, It is characterized in that The system comprises: a test platform and a plurality of vehicles, wherein the test platform communicates with the plurality of vehicles respectively; The test platform is applicable to the automobile-based performance test method as described in any one of claims 1-8.
