Vehicle-mounted module network injection time test method and system, electronic equipment and storage medium
By performing the injection network test operation in a circular manner, multiple on-board modules are automatically tested, solving the problems of low efficiency and poor accuracy of injection network time testing in the existing technology, and achieving efficient and accurate test results.
Patent Information
- Application Number
- CN202411907762.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-03-28
AI Technical Summary
In the prior art, the network injection time test of vehicle-mounted modules is low in efficiency and high in cost, and the test results are easily disturbed by human factors and have low accuracy.
By performing the network injection test operation in a circular manner, multiple vehicle-mounted modules are automatically tested, the network injection status of the modules is monitored in real time, and the network injection time is recorded to generate test results.
Automatic testing of vehicle-mounted modules is realized, which avoids human errors, improves the accuracy of test results, and reduces the testing cost and work burden of personnel.
Smart Images

Figure CN119729524A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of module testing, and more specifically to a vehicle-mounted module network injection time testing method, system, electronic equipment and storage medium. Background Art
[0002] With the continuous improvement of automobile electronics and intelligence, the application of vehicle-mounted modules in the automotive industry has become increasingly important. In order to ensure the communication performance of vehicle-mounted modules, it is usually necessary to test the network injection time of vehicle-mounted modules.
[0003] In the related art, when testing the power-on and network injection time of multiple on-board modules on a vehicle, the test is usually performed manually by staff. This test method is inefficient and costly, and the test results are easily interfered by human factors, resulting in low accuracy of the test results.
[0004] In view of this, the present invention is proposed. Summary of the invention
[0005] The present invention is proposed in view of the above problems. According to one aspect of the present invention, a method for testing the network injection time of a vehicle-mounted module is provided, comprising: For each of the multiple vehicle-mounted modules, the following network injection test operations are performed cyclically: Control the vehicle-mounted module to start; After the vehicle-mounted module is turned on, the network injection status of the vehicle-mounted module is monitored in real time according to the working log of the vehicle-mounted module; When the network injection state of the vehicle-mounted module is successful, the network injection time of the vehicle-mounted module in the current network injection test operation is recorded; When the number of network injection test operations performed on each of the multiple vehicle-mounted modules reaches the target round, determining that the tests of the multiple vehicle-mounted modules are completed; Generate a test result, the test result includes multiple test information, and the multiple test information are respectively used to represent the status of each vehicle-mounted module among the multiple vehicle-mounted modules in each network injection test operation; for any one of the multiple test information, the test information at least includes the network injection status of the corresponding vehicle-mounted module in the current network injection test operation, and the network injection time of the corresponding vehicle-mounted module when the network injection status is successful injection.
[0006] Exemplarily, after the vehicle-mounted module is controlled to be turned on, the network injection test operation further includes: Start timing when the vehicle-mounted module is turned on and obtain the timing duration; When the network injection status of the vehicle-mounted module is successful, stop timing; The network injection time is the timing duration when the timing is stopped.
[0007] Exemplarily, the network injection test operation further includes: When the timing duration reaches the duration threshold, if the vehicle-mounted module has not yet been registered to the network, determining that the network registration state of the vehicle-mounted module is network registration failure; When the network injection status of the vehicle-mounted module is network injection failure, record the problem information of the vehicle-mounted module; The test result includes the problem information, and the problem information includes the round of the current execution of the network injection test operation.
[0008] Exemplarily, the start-up time of each of the multiple vehicle-mounted modules in the same round of network injection test operation is the same.
[0009] Exemplarily, the real-time monitoring of the network injection status of the vehicle-mounted module according to the work log of the vehicle-mounted module includes: Querying the work log to determine whether the work log includes the network injection keyword; When the network injection keyword is included in the work log, the network injection status of the vehicle-mounted module is successful.
[0010] Exemplarily, the test result also includes an average network search time of each of the multiple vehicle-mounted modules; For any vehicle-mounted module among the multiple vehicle-mounted modules, the average network-finding time of the vehicle-mounted module is the average value of the network-addition time of the vehicle-mounted module in the network-addition test operation of the target round.
[0011] Exemplarily, before cyclically executing the network injection test operation, the method further includes: Assigning a unique serial number to each of the plurality of vehicle-mounted modules; Wherein, the test information also includes the serial number of the corresponding vehicle-mounted module; and / or, Before cyclically executing the network injection test operation, the method further includes: In response to a parameter setting operation of a user, generating a test parameter, wherein the test parameter includes the target round; and / or, Before cyclically executing the network injection test operation, the method further includes: In response to a module information setting operation of a user, setting module information of each of the plurality of vehicle-mounted modules; Among them, for any vehicle-mounted module among the multiple vehicle-mounted modules, the module information of the vehicle-mounted module includes the module name of the vehicle-mounted module.
[0012] According to another aspect of the present invention, a vehicle-mounted module network injection time testing system is provided, which is used to test the network injection time of the multiple vehicle-mounted modules; the testing system includes a power supply, a relay and a controller, the power supply is respectively connected to the multiple vehicle-mounted modules through the relay to power the vehicle-mounted modules; the controller is respectively connected to the multiple vehicle-mounted modules; the controller is used to implement the method in any of the above embodiments.
[0013] According to another aspect of the present invention, there is provided an electronic device, including a processor and a memory, wherein a computer program is stored in the memory, and the processor is used to execute the computer program to implement the above method.
[0014] According to another aspect of the present invention, a computer-readable storage medium is provided, storing a computer program / instruction, and the computer program / instruction implements the above method when executed by a processor.
[0015] The above technical solution can realize multiple tests on each vehicle-mounted module by cyclically executing the target round of network injection test operations through each vehicle-mounted module among multiple vehicle-mounted modules. Therefore, automatic testing of vehicle-mounted modules can be realized, and the testing process does not require human participation, which can avoid the introduction of human errors, help improve the accuracy of test results, and this automatic testing method helps reduce the workload of testers, improve test efficiency, and reduce test costs.
[0016] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages 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
[0017] The above and other purposes, features and advantages of the present invention will become more apparent by describing the embodiments of the present invention in more detail in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings, the same reference numerals generally represent the same components or steps.
[0018] Figure 1 A schematic flow chart of a testing method provided according to an embodiment of the present invention is shown; Figure 2 A schematic block diagram of an electronic device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical scheme and advantages of the present invention more obvious, the exemplary embodiments according to the present invention will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments of the present invention, and it should be understood that the present invention is not limited to the exemplary embodiments described herein. Based on the embodiments of the present invention described in the present invention, all other embodiments obtained by those skilled in the art without creative work should fall within the protection scope of the present invention.
[0020] In the current multi-module power-on network time test process, testers must manually record the data of different on-board modules on the vehicle. Due to the differences in the information reported by each module during network registration, testers have to manually start and stop the power supply to record the network time of each module after powering on. A module needs to be counted multiple times before the tester can move to the next module and compile the network time data of all modules into a table. According to the current test specifications, each module needs to be counted ten times to obtain the average time. In a static test environment, this one-by-one manual testing method is not only time-consuming, but also the tester cannot perform other tasks during the test, which significantly reduces the test efficiency and increases the cost. In addition, this manual testing method is prone to introduce errors, thereby affecting the accuracy of the test results.
[0021] When conducting field dynamic tests, in order to compare the startup and network injection time of multiple modules when the vehicle is in motion, additional testers have to be dispatched. However, the inconsistency of operations between different testers may further expand the deviation of the test results. In field tests under complex road conditions, testers need to continuously monitor the computer to count the network injection time. This working mode can easily cause the testers to experience motion sickness and other discomforts, thereby interfering with the smooth progress of the test. In order to solve the above technical problems, the present invention provides a method, system, electronic device and storage medium for testing the network injection time of a vehicle-mounted module. The method can realize automatic testing of the vehicle-mounted module. The testing process does not require human participation, which can avoid the introduction of human errors, help improve the accuracy of the test results, and this automatic testing method helps to improve test efficiency and reduce test costs.
[0022] According to one aspect of an embodiment of the present invention, a method for testing the network injection time of a vehicle-mounted module is provided. Figure 1 FIG. 1 is a schematic flow chart of a testing method according to an embodiment of the present invention. Figure 1 As shown, the testing method may include the following steps S110 , S120 and S130 .
[0023] In step S110 , a network injection test operation is cyclically performed for each of the plurality of vehicle-mounted modules.
[0024] In this article, the vehicle-mounted module refers to a module used in a vehicle and needs to be connected to the Internet when in use. The vehicle-mounted module includes but is not limited to a communication module, a smart module, a data transmission module, etc., which will not be described in detail.
[0025] As mentioned above, a module needs to be counted multiple times. That is to say, during the module network injection time test, each vehicle-mounted module to be tested needs to be tested multiple times. In the solution of this example, the network injection test operation is cyclically performed on each vehicle-mounted module to complete multiple automatic tests on each vehicle-mounted module.
[0026] In this example, the network injection test operation can be performed cyclically on each vehicle-mounted module. Optionally, the network injection test operation can be performed cyclically on each vehicle-mounted module in a parallel operation manner. That is, the network injection test can be performed on multiple vehicle-mounted modules at the same time. In this way, there is no need to test each module in turn, which helps to improve the test efficiency.
[0027] In the solution of this example, the network injection test operation may include the following steps S111, S112 and S113.
[0028] In step S111, the vehicle-mounted module is controlled to start.
[0029] In step S112, after the vehicle-mounted module is turned on, the network injection status of the vehicle-mounted module is monitored in real time according to the work log of the vehicle-mounted module.
[0030] In step S113, when the network injection state of the vehicle-mounted module is successful, the network injection time of the vehicle-mounted module in the current network injection test operation is recorded.
[0031] In the solution of this example, when performing the network injection test operation, the vehicle-mounted module is first controlled to be turned on, that is, the vehicle-mounted module is controlled to be powered on.
[0032] After the vehicle-mounted module is powered on, the network injection status of the vehicle-mounted module can be monitored in real time according to the work log of the vehicle-mounted module. It can be understood that after the vehicle-mounted module is powered on, a work log will be generated in real time. The content of the work log includes but is not limited to system events, user operations, communication data, error messages, warning messages, etc. In step S112 of this example, the network injection status of the vehicle-mounted module can be monitored in real time according to the content of the work log generated in real time by the vehicle-mounted module. In some embodiments, step S112 may specifically include the following steps: obtaining the work log of the vehicle-mounted module in real time; and monitoring the network injection status of the vehicle-mounted module in real time according to the obtained work log.
[0033] After the vehicle-mounted module is confirmed to be successfully networked according to the vehicle-mounted module's work log, the network time of this network test operation can be recorded. The network time is the time from the vehicle-mounted module being turned on to the network being successfully networked, which will not be repeated.
[0034] In step S120, when the number of network injection test operations performed on each of the multiple vehicle-mounted modules reaches the target round, it is determined that the tests of the multiple vehicle-mounted modules are completed.
[0035] The target rounds can be set as needed. For example, the target rounds can be a value preset according to user needs, or a value input by the user before performing the network injection test operation. It can be understood that when the number of network injection test operations performed on each vehicle-mounted module reaches the target rounds, the number of tests for each vehicle-mounted module has reached the target rounds, and at this time, it can be determined that the tests of all vehicle-mounted modules are completed.
[0036] In step S130, a test result is generated, which includes multiple test information, and the multiple test information are respectively used to indicate the status of each vehicle-mounted module among the multiple vehicle-mounted modules in each network injection test operation; for any one of the multiple test information, the test information at least includes the network injection status of the corresponding vehicle-mounted module in the current network injection test operation, and the network injection time of the corresponding vehicle-mounted module when the network injection status is successful.
[0037] After all vehicle-mounted modules have been tested, the test results can be generated based on the situation of each network injection test operation performed on each vehicle-mounted module. As described above, the test results include multiple test information, and the multiple test information are used to represent the situation of each vehicle-mounted module in each network injection test operation. That is, one network injection test operation performed on each vehicle-mounted module corresponds to one test information. If the number of vehicle-mounted modules is N and the target round is M, the number of test information is N*M.
[0038] In some embodiments, the network injection test operation may further include the following steps: after each network injection test operation is completed, test information is generated according to the situation of the corresponding vehicle-mounted module in the network injection test operation. Step S130, generating test results, includes: generating test results according to the test information obtained after each network injection test operation performed on each vehicle-mounted module. In a specific embodiment, a table (which may be an Excel table) for storing test results may be pre-established. After each test information is generated, the test information is recorded in the table. When the number of network injection test operations performed on each vehicle-mounted module in multiple vehicle-mounted modules reaches the target round, the test information obtained after each network injection test operation performed on each vehicle-mounted module can be added to the table. The table is a test report for representing the test results. It can be understood that the information in the table is not limited to the above-mentioned multiple pieces of information, and may also include the average network search time, problem information, etc., which will not be repeated.
[0039] As described above, the test information at least includes the network injection state of the corresponding vehicle-mounted module in the current network injection test operation (i.e., whether the network injection test operation succeeded or failed), and the network injection time of the corresponding vehicle-mounted module when the network injection state is successful. In some embodiments, the test information may also include at least one of the name of the corresponding vehicle-mounted module, the module serial number, the operator of the SIM card used, the current test round, etc.
[0040] The above technical solution can realize multiple tests on each vehicle-mounted module by cyclically executing the target round of network injection test operations through each vehicle-mounted module among multiple vehicle-mounted modules. Therefore, automatic testing of vehicle-mounted modules can be realized, and the testing process does not require human participation, which can avoid the introduction of human errors, help improve the accuracy of test results, and this automatic testing method helps reduce the workload of testers, improve test efficiency, and reduce test costs.
[0041] Exemplarily, after controlling the vehicle-mounted module to turn on, the network injection test operation also includes: starting timing when the vehicle-mounted module is turned on and obtaining the timing duration; when the network injection status of the vehicle-mounted module is successful, stopping timing; wherein the network injection time is the timing duration when the timing is stopped.
[0042] In the solution of this example, the timing can be started when the vehicle-mounted module is turned on, and the timing can be stopped when the vehicle-mounted module is successfully networked. Therefore, the network-injection time of the vehicle-mounted module in the current round of network-injection test operations can be obtained more accurately, thereby helping to ensure the accuracy of the generated test results. The test results can provide a more accurate basis for testers to evaluate the performance of the vehicle-mounted module.
[0043] Exemplarily, the network injection test operation also includes: when the timing duration reaches a duration threshold, if the vehicle-mounted module has not yet registered to the network, determining that the network injection status of the vehicle-mounted module is network injection failure; when the network injection status of the vehicle-mounted module is network injection failure, recording the problem information of the vehicle-mounted module; wherein the test result includes the problem information, and the problem information includes the round of the current network injection test operation.
[0044] In the solution of this example, when the network search time (i.e., timing time) of a certain vehicle-mounted module in a certain network injection test operation reaches the time threshold, if the vehicle-mounted module has not yet registered with the network, it can be determined that the network injection status of the vehicle-mounted module in the current network injection test operation is network injection failure. In this case, the problem information of the vehicle-mounted module can be recorded so that the tester can analyze the cause of the network injection failure. The time threshold can be set according to user needs and will not be described in detail.
[0045] Optionally, the problem information may be the test information corresponding to the vehicle-mounted module in this network injection test operation. Of course, the problem information may also be different from the test information, which will not be described in detail.
[0046] In the solution of this example, the problem information includes the round of the current network injection test operation. In some embodiments, the problem information may also include at least one of the name of the corresponding vehicle-mounted module, the module serial number, the operator of the SIM card used, the current test round, etc. In a specific embodiment, the problem information may be: module serial number - current test round - SIM card operator - timestamp log.
[0047] The above technical solution can determine whether the vehicle-mounted module has failed to connect to the network based on the comparison result of the network search time of the vehicle-mounted module and the time threshold, thereby avoiding the vehicle-mounted module from trying to connect to the network for a long time without success, thereby improving the efficiency of the entire test process. At the same time, by recording the problem information when the vehicle-mounted module fails to connect to the network, it is convenient for testers to analyze the vehicle-mounted module and improve the user experience.
[0048] Exemplarily, the start-up time of each of the multiple vehicle-mounted modules in the same round of network injection test operation is the same.
[0049] During the research, the inventor discovered that in the related art, when multiple vehicle-mounted modules are tested, the next vehicle-mounted module is tested only after the test of one vehicle-mounted module is completed. By analogy, the difference in test time of different vehicle-mounted modules may lead to changes in the network environment (for example, when the vehicle is tested during driving, the external environment is different when multiple vehicle-mounted modules are tested, resulting in differences in the network environment), thereby affecting the signal quality, and further causing the accuracy of the network injection time test results to be impaired. In the scheme of this example, the start-up time of each of the multiple vehicle-mounted modules in the same round of network injection test operations is the same. That is to say, in each round of network injection test operations in the target round, multiple vehicle-mounted modules are powered on at the same time. In this way, it can be ensured that the network environment faced by multiple vehicle-mounted modules in the same round of network injection test operations is the same, which helps to ensure the accuracy of the network injection time test results and facilitates users to analyze multiple vehicle-mounted modules more accurately. When this method is applied to the field test of vehicle-mounted modules, multiple vehicle-mounted modules can still be ensured to be in the same network environment when the vehicle is driving. The data obtained in this way is more convincing, which is conducive to testers to more accurately analyze and compare the performance of multiple vehicle-mounted modules.
[0050] Exemplarily, based on the work log of the vehicle-mounted module, the network injection status of the vehicle-mounted module is monitored in real time, including: querying the work log to determine whether the work log includes the network injection keyword; when the work log includes the network injection keyword, the network injection status of the vehicle-mounted module is successful.
[0051] Optionally, the network injection keywords of different vehicle-mounted modules may be the same or different. The network injection keyword corresponding to each vehicle-mounted module may be determined according to the model of the vehicle-mounted module, which will not be described in detail.
[0052] The above technical solution can more accurately determine whether the vehicle-mounted module is successfully networked by querying the network injection keywords in the work log obtained in real time, thereby providing a more accurate basis for subsequent steps.
[0053] Exemplarily, the test results also include the average network search time of each of the multiple vehicle-mounted modules; for any vehicle-mounted module among the multiple vehicle-mounted modules, the average network search time of the vehicle-mounted module is the average value of the network search time of the vehicle-mounted module in the target round of network search test operations.
[0054] It can be understood that for any round of network injection test operation of the vehicle-mounted module, when the network injection status is network injection failure, there is no network injection time in the corresponding test information. In the scheme of this example, the average network search time of the vehicle-mounted module is determined according to the time recorded for each successful network injection of each vehicle-mounted module and the number of successful network injections. For example, assuming that a vehicle-mounted module successfully injects the network (that is, the network injection status is network injection success) 3 times in 5 network injection test operations, and the network injection time is 15 seconds, 20 seconds and 25 seconds respectively, then the average network search time is calculated as follows: (15 seconds + 20 seconds + 25 seconds) / 3 times = 60 seconds / 3 times = 20 seconds, that is, the average network search time of the vehicle-mounted module is 20 seconds.
[0055] The above technical solution can more accurately determine the average network search time of the vehicle-mounted module, thereby providing a more accurate basis for testers to evaluate the performance of the vehicle-mounted module.
[0056] Exemplarily, before the network injection test operation is cyclically executed, the method also includes: assigning a unique serial number to each of the multiple vehicle-mounted modules; wherein the test information also includes the serial number of the corresponding vehicle-mounted module; and / or, before the network injection test operation is cyclically executed, the method also includes: generating test parameters in response to a user's parameter setting operation, wherein the test parameters include a target round; and / or, before the network injection test operation is cyclically executed, the method also includes: setting module information of each of the multiple vehicle-mounted modules in response to a user's module information setting operation; wherein, for any vehicle-mounted module among the multiple vehicle-mounted modules, the module information of the vehicle-mounted module includes the module name of the vehicle-mounted module.
[0057] Optionally, before the network injection test operation is cyclically executed, the method further includes: assigning a unique serial number to each of the plurality of vehicle-mounted modules; wherein the test information also includes the serial number of the corresponding vehicle-mounted module. Thus, it is convenient for users to distinguish the test information of different vehicle-mounted modules according to the module serial number, which helps to improve the user experience.
[0058] Optionally, before the injection test operation is cyclically executed, the method further comprises: generating test parameters in response to a parameter setting operation of a user, wherein the test parameters include a target round. In this embodiment, the user can set the value of the target round according to actual test needs, thereby helping to improve the flexibility of the method and user experience.
[0059] In some embodiments, the test parameters may also include a duration threshold. In other embodiments, the test parameters may also include a storage path for the question information and a storage path for the test results. This method of customizing the test parameters helps to improve the flexibility of the method and the user experience.
[0060] Optionally, before the network injection test operation is executed in a loop, the method further includes: in response to the user's module information setting operation, setting the module information of each vehicle-mounted module in the multiple vehicle-mounted modules; wherein, for any vehicle-mounted module in the multiple vehicle-mounted modules, the module information of the vehicle-mounted module includes the module name of the vehicle-mounted module. In a specific embodiment, the user can write the module information of each module on the test system used to implement the test method (this action is the module information setting operation). For example, the module information can be, for example: module A, A module serial port selection, A module adbdevices device number, A module network injection keyword, A module SIM card operator. Thereby, the generation of test results in subsequent steps and the query and confirmation of network injection status can be facilitated.
[0061] According to another aspect of an embodiment of the present invention, a vehicle-mounted module network injection time test system is provided. The test system is used to test the network injection time of multiple vehicle-mounted modules; the test system includes a power supply, a relay and a controller, the power supply is connected to the multiple vehicle-mounted modules through the relay respectively, so as to supply power to the vehicle-mounted modules; the controller is connected to the multiple vehicle-mounted modules respectively; the controller is used to implement the method in any of the above embodiments.
[0062] Optionally, the number of relays can be determined according to the number of vehicle-mounted modules. It is understandable that a relay has multiple ports, each of which can power a vehicle-mounted module. Therefore, in some embodiments, the number of relays can be determined according to the number of ports of the relay and the number of vehicle-mounted modules.
[0063] It can be understood that the relay can be used to control the on-board module and the power supply. By controlling the relay, different vehicle modules can be powered on.
[0064] In a specific embodiment, the positive pole of the power supply is connected to the A end of the relay, the B end of the relay (i.e., the port of the relay) is connected to the positive pole of each vehicle-mounted module, and the GND of each vehicle-mounted module is connected to the negative pole of the power supply. Each vehicle-mounted module is connected to the controller (which can be called the PC end) via a UART line or a USB line. It can be specifically determined according to the location of the log containing the network injection keyword printed by the vehicle-mounted module. If the vehicle-mounted module uses the log printed by the uart port to determine the network injection time, network injection status and other network injection information, then the UART line is used to connect to the PC end; if the vehicle-mounted module uses the URC (i.e., log) reported by the AT port of the USB line to determine the network injection time, network injection status and other network injection information, then the USB line is used to connect to the PC end.
[0065] In this embodiment, each vehicle-mounted module is connected to an antenna and has a SIM card that can be injected into the network inserted therein.
[0066] The testing method of this article is described below through a specific embodiment combined with the testing system.
[0067] When the network injection time test is required, the tester can first select the relay control port and the corresponding port information of the corresponding network injection log of each vehicle-mounted module, such as: module A, A module serial port selection, A module adbdevices device number, A module network injection keyword, A module SIM card operator (that is, set the module information of each module). And enter the round of automatic testing (that is, the target round), time threshold, the path to save the problem information, and the path to save the test results. Then, the automatic test of each vehicle-mounted module is realized by looping the network injection test operation.
[0068] During the automatic test process, multiple vehicle-mounted modules are automatically tested in each round and powered on uniformly, and timing begins. At the same time, the work log of each vehicle-mounted module is queried through the port corresponding to each vehicle-mounted module. If the work log includes the network injection keyword, the timing of the corresponding vehicle-mounted module is stopped, and the module serial number, network injection time, SIM card used and its operator of the corresponding module are recorded in the Excel table. If the vehicle-mounted module is still not registered to the network when the timing reaches the duration threshold, the problem information is generated (for example, the problem module log can be exported to the log automatic save path through the unique device number of adb devices corresponding to the USB cable corresponding to the problem module. The naming rule of the log can be module number__test round_SIM card operator used_timestamp log).
[0069] In a round of automatic testing, when all vehicle-mounted modules have completed the test (i.e., network injection is successful or failed), all vehicle-mounted modules can be powered off uniformly to prepare for the next round of testing.
[0070] After all vehicle-mounted modules have completed the target round of automatic testing, the average network search time of each vehicle-mounted module is calculated, and a comparative test report (i.e., test results) is generated based on the test information generated by each vehicle-mounted module in each test.
[0071] The above test system can output accurate test results, thereby effectively assisting testers to conduct in-depth analysis of the network access performance of numerous vehicle-mounted modules.
[0072] According to yet another aspect of the embodiments of the present invention, an electronic device is provided. Figure 2 FIG. 2 shows a schematic block diagram of an electronic device according to an embodiment of the present invention. Figure 2 As shown, the electronic device 200 includes: a processor 210 and a memory 220. The memory 220 stores a computer program, and the processor 210 is used to execute the computer program to implement the above method.
[0073] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is also provided. The storage medium stores a computer program / instruction, and the computer program / instruction implements the above method when executed by a processor. The storage medium may include, for example, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable compact disk read-only memory (CD-ROM), a USB memory, or any combination of the above storage media. The computer-readable storage medium may be any combination of one or more computer-readable storage media.
[0074] A person skilled in the art can easily understand the implementation structure, working principle and beneficial effects of the test system, electronic device and computer-readable storage medium by reading the above method, and will not be described in detail for the sake of brevity.
[0075] Although example embodiments have been described herein with reference to the accompanying drawings, it should be understood that the above example embodiments are merely exemplary and are not intended to limit the scope of the present invention thereto. Various changes and modifications may be made therein by one of ordinary skill in the art without departing from the scope and spirit of the present invention. All such changes and modifications are intended to be included within the scope of the present invention as required by the appended claims.
[0076] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0077] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.
[0078] 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. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0079] Similarly, it should be understood that in order to streamline the present invention and help understand one or more of the various inventive aspects, in the description of the exemplary embodiments of the present invention, the various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, the method of the present invention should not be interpreted as reflecting the following intention: the claimed invention requires more features than the features explicitly stated in each claim. More specifically, as reflected in the corresponding claims, the inventive point is that the corresponding technical problem can be solved with less than all the features of a single disclosed embodiment. Therefore, the claims following the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present invention.
[0080] Those skilled in the art will understand that, except for mutually exclusive features, all features disclosed in this specification (including the accompanying claims, abstract and drawings) and all processes or units of any method or device disclosed in this specification may be combined in any combination. Unless otherwise explicitly stated, each feature disclosed in this specification (including the accompanying claims, abstract and drawings) may be replaced by an alternative feature that provides the same, equivalent or similar purpose.
[0081] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims, any one of the claimed embodiments may be used in any combination.
[0082] The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some modules in an electronic device according to an embodiment of the present invention. The present invention may also be implemented as a device program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0083] 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.
[0084] The above is only a specific embodiment of the present invention or an explanation of a specific embodiment. The protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. The protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for testing the network injection time of a vehicle-mounted module, characterized in that: include: For each of the multiple vehicle-mounted modules, the following network injection test operations are performed cyclically: Control the vehicle-mounted module to start; After the vehicle-mounted module is turned on, the network injection status of the vehicle-mounted module is monitored in real time according to the working log of the vehicle-mounted module; When the network injection state of the vehicle-mounted module is successful, the network injection time of the vehicle-mounted module in the current network injection test operation is recorded; When the number of network injection test operations performed on each of the multiple vehicle-mounted modules reaches the target round, determining that the tests of the multiple vehicle-mounted modules are completed; Generate a test result, the test result includes multiple test information, and the multiple test information are respectively used to represent the status of each vehicle-mounted module among the multiple vehicle-mounted modules in each network injection test operation; for any one of the multiple test information, the test information at least includes the network injection status of the corresponding vehicle-mounted module in the current network injection test operation, and the network injection time of the corresponding vehicle-mounted module when the network injection status is successful injection.
2. The vehicle-mounted module injection time testing method according to claim 1, characterized in that: After the vehicle-mounted module is controlled to be turned on, the network injection test operation further includes: Start timing when the vehicle-mounted module is turned on and obtain the timing duration; When the network injection status of the vehicle-mounted module is successful, stop timing; The network injection time is the timing duration when the timing is stopped.
3. The vehicle-mounted module network injection time testing method according to claim 2, characterized in that: The network injection test operation also includes: When the timing duration reaches the duration threshold, if the vehicle-mounted module has not yet been registered to the network, determining that the network registration state of the vehicle-mounted module is network registration failure; When the network injection status of the vehicle-mounted module is network injection failure, record the problem information of the vehicle-mounted module; The test result includes the problem information, and the problem information includes the round of the current execution of the network injection test operation.
4. The vehicle-mounted module injection time testing method according to claim 1, characterized in that: The start-up time of each of the multiple vehicle-mounted modules in the same round of network injection test operation is the same.
5. The vehicle-mounted module network injection time testing method according to claim 1, characterized in that: The real-time monitoring of the network injection status of the vehicle-mounted module according to the working log of the vehicle-mounted module includes: Querying the work log to determine whether the work log includes the network injection keyword; When the network injection keyword is included in the work log, the network injection status of the vehicle-mounted module is successful.
6. The vehicle-mounted module network injection time testing method according to claim 1, characterized in that: The test result also includes an average network search time of each of the multiple vehicle-mounted modules; For any vehicle-mounted module among the multiple vehicle-mounted modules, the average network-finding time of the vehicle-mounted module is the average value of the network-addition time of the vehicle-mounted module in the network-addition test operation of the target round.
7. The vehicle-mounted module network injection time testing method according to claim 1, characterized in that: Before cyclically executing the network injection test operation, the method further includes: Assigning a unique serial number to each of the plurality of vehicle-mounted modules; Wherein, the test information also includes the serial number of the corresponding vehicle-mounted module; and / or, Before cyclically executing the network injection test operation, the method further includes: In response to a parameter setting operation of a user, generating a test parameter, wherein the test parameter includes the target round; and / or, Before cyclically executing the network injection test operation, the method further includes: In response to a module information setting operation of a user, setting module information of each of the plurality of vehicle-mounted modules; Among them, for any vehicle-mounted module among the multiple vehicle-mounted modules, the module information of the vehicle-mounted module includes the module name of the vehicle-mounted module.
8. A vehicle-mounted module injection time test system, characterized in that: Used to test the network injection time of the multiple vehicle-mounted modules; the test system includes a power supply, a relay and a controller, and the power supply is connected to the multiple vehicle-mounted modules respectively through the relay to supply power to the vehicle-mounted modules; The controller is connected to the multiple vehicle-mounted modules respectively; the controller is used to implement the method described in any one of claims 1-7.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used to execute the computer program to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: A computer program / instruction is stored, and when the computer program / instruction is executed by a processor, the method according to any one of claims 1 to 7 is implemented.