Vehicle terminal device detection method and apparatus, electronic device, and storage medium
By establishing a correspondence between the sub-IP addresses and identification information of the vehicle-mounted terminal, the current test items and parameters are obtained, and the final test items are determined. This solves the problem of difficult location determination in vehicle-mounted terminal testing and achieves an efficient testing process.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ICARVISIONS SHENZHEN TECH CO LTD
- Filing Date
- 2022-10-12
- Publication Date
- 2026-06-16
AI Technical Summary
In existing technologies, it is difficult to accurately distinguish the terminals that have been tested after the vehicle-mounted terminal has completed the testing, resulting in low testing efficiency.
By acquiring the sub-IP addresses and identification information of each vehicle terminal, establishing and storing their corresponding relationships, obtaining the current test item and test parameters based on the sub-IP address, determining whether the current test item is the final test item, and quickly locating the terminal that has completed the test by using the identification information after determining the final sub-IP address.
This improved the efficiency of vehicle-mounted terminal testing, reduced the time required to determine the final terminal location, and ensured the accuracy and efficiency of testing.
Smart Images

Figure CN115643231B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle electronic technology, and in particular to a method, apparatus, electronic device and storage medium for detecting vehicle terminal equipment. Background Technology
[0002] Vehicle-mounted terminals are the front-end devices of vehicle monitoring and management systems. They are typically installed discreetly inside various vehicles. Vehicle-mounted terminal equipment mainly consists of various external devices such as vehicle-mounted video servers, LCD touch screens, external cameras, handsets, and car anti-theft devices. To ensure the performance of vehicle-mounted terminals, they are tested based on IP addresses. Upon completion of the test, staff need to replace the tested vehicle-mounted terminals.
[0003] During the research process, the inventors discovered that when the detection of vehicle terminals is completed, it is necessary to determine the vehicle terminals that have been detected based on their IP addresses. However, it is not easy to distinguish the vehicle terminals that have been detected based on their IP addresses, which reduces the detection efficiency of vehicle terminals. Summary of the Invention
[0004] The purpose of this application is to provide a method, apparatus, electronic device, and storage medium for detecting vehicle-mounted terminal equipment, in order to solve at least one of the above problems.
[0005] The above-mentioned inventive objective of this application is achieved through the following technical solutions:
[0006] Firstly, a method for detecting an in-vehicle terminal device is provided, the method comprising:
[0007] Obtain the sub-IP address and identification information corresponding to each vehicle terminal, with each vehicle terminal having unique identification information; establish and store a first correspondence between the sub-IP address and the identification information;
[0008] Based on the sub-IP address, obtain the current test item and the current test parameter corresponding to each vehicle terminal. The current test parameter is used to characterize the current test result in the vehicle terminal test process. One vehicle terminal corresponds to one current test item, and one current test item of one vehicle terminal corresponds to one current test parameter.
[0009] Determine whether the current test item is the final test item to obtain a first determination result;
[0010] If the first determination result is yes, then the current test parameter corresponding to the final test item is determined as the final parameter, and the sub-IP address corresponding to the final parameter is determined as the final sub-IP address;
[0011] Based on the first correspondence, the final sub-IP address, and the identification information, the final identification information is determined.
[0012] By adopting the above technical solution, the sub-IP addresses and identification information corresponding to each vehicle terminal are obtained. Then, a first correspondence between the sub-IP addresses and identification information is established and stored. Based on the sub-IP addresses, the current test items and current test parameters corresponding to each vehicle terminal are obtained. The current test parameters are used to characterize the current test results in the vehicle terminal testing process. One vehicle terminal corresponds to one current test item, and one current test item of one vehicle terminal corresponds to one current test parameter. After obtaining the current test items and current test parameters, it is determined whether the current test item is the final test item based on the test item, and a first judgment result is obtained. If the first judgment result is yes, the current test parameter corresponding to the current test item is determined as the final parameter, and the sub-IP address corresponding to the final parameter is determined as the final sub-IP address. Based on the first correspondence, the final sub-IP address, and the identification information, the final identification information is quickly determined. That is, in this application, after determining the final sub-IP address, the location of the final vehicle terminal can be determined directly through the correspondence between the sub-IP address and the identification information, which reduces the time for determining the location of the final vehicle terminal and thus improves the working efficiency of the vehicle terminal testing equipment.
[0013] In one possible implementation, the method further includes:
[0014] Establish a network connection based on the sub-IP address;
[0015] Test commands are sent to the vehicle terminal based on the sub-IP address.
[0016] In another possible implementation, determining whether the current test item is the final test item and obtaining the first determination result includes:
[0017] Retrieve historical test items;
[0018] Calculate the number of completed test items based on the current test item and the historical test items;
[0019] Based on the number of completed test items and the preset number of test items, it is determined whether the current test item is the final test item, and a first determination result is obtained.
[0020] In another possible implementation, the step of obtaining the current test item and the current test parameter corresponding to each vehicle terminal based on the sub-IP address further includes:
[0021] Obtain the second correspondence between preset test items and preset parameters;
[0022] Based on the current test item, the preset test item, and the second correspondence, determine whether the current test parameter is equal to the preset parameter, and obtain a second determination result;
[0023] If the second judgment result is negative, then the current test parameter is determined to be the current abnormal parameter, and the sub-IP address corresponding to the current abnormal parameter is determined to be the current abnormal sub-IP address;
[0024] Based on the first correspondence, the current abnormal sub-IP address, and the identification information, the abnormal identification information is determined.
[0025] In another possible implementation, if the first determination result is yes, then the current test parameter corresponding to the final test item is determined as the final parameter, and the sub-IP address corresponding to the final parameter is determined as the final sub-IP address, and then the method further includes:
[0026] Obtain the historical anomaly parameters corresponding to each final sub-IP address;
[0027] Based on the current abnormal parameters and the historical abnormal parameters, determine the abnormal test items corresponding to each final sub-IP address;
[0028] Based on the aforementioned abnormal test items and their corresponding preset weights, calculate the abnormal score for each final sub-IP address.
[0029] The anomaly level of each final sub-IP address is determined based on the anomaly score, and the anomaly level of the anomaly identification information is determined based on the first correspondence.
[0030] In another possible implementation, when the number of final sub-IPs of the vehicle terminals in a batch of vehicle terminals reaches a preset number;
[0031] The method further includes:
[0032] Determine whether there are any identical abnormal test items for all abnormal test items corresponding to each final sub-IP address, and obtain the third judgment result;
[0033] If the third judgment result is yes, then the undetected vehicle terminal is identified as an abnormal prediction vehicle terminal.
[0034] In another possible implementation, the step of determining the anomaly level of each final sub-IP address based on the anomaly score and determining the anomaly level of the anomaly identification information based on the first correspondence further includes:
[0035] The final sub-IP address containing the current abnormal parameter and / or the historical abnormal parameter is determined as the maintenance sub-IP address; after a preset time interval, the maintenance parameters corresponding to each maintenance sub-IP address are obtained based on the abnormal test item;
[0036] Based on the abnormal test item, the preset test item and the second correspondence, it is determined whether the maintenance parameter is equal to the preset parameter, and a fourth determination result is obtained;
[0037] If the fourth judgment result is negative, a warning message is sent to the terminal device based on the abnormal test item corresponding to the maintenance parameter.
[0038] Secondly, a device for detecting vehicle-mounted terminal equipment is provided, the device comprising:
[0039] The first acquisition module is used to acquire the sub-IP address and identification information corresponding to each vehicle terminal. Each vehicle terminal has a unique identification information.
[0040] The first establishment module is used to establish and store a first correspondence between the sub-IP address and the identification information;
[0041] The second acquisition module is used to acquire the current test item and the current test parameter corresponding to each vehicle terminal based on the sub-IP address. The current test parameter is used to characterize the current test result in the vehicle terminal test process. One vehicle terminal corresponds to one current test item, and one current test item of one vehicle terminal corresponds to one current test parameter.
[0042] The first judgment module is used to determine whether the current test item is the final test item and obtain the first judgment result;
[0043] The first determining module is used to determine the current test parameter corresponding to the final test item as the final parameter and the sub-IP address corresponding to the final parameter as the final sub-IP address when the first determination result is yes.
[0044] The second determining module is used to determine the final identification information based on the first correspondence, the final sub-IP address, and the identification information.
[0045] In one possible implementation, the apparatus further includes: a second establishment module and a first sending module, wherein the second establishment module is used to establish a network connection based on the sub-IP address;
[0046] The first sending module is used to send test commands to the vehicle terminal based on the sub-IP address.
[0047] In another possible implementation, when the first judgment module determines whether the current test item is the final test item and obtains the first judgment result, it is specifically used for:
[0048] Retrieve historical test items;
[0049] Calculate the number of completed test items based on the current test item and the historical test items;
[0050] Based on the number of completed test items and the preset number of test items, it is determined whether the current test item is the final test item, and a first determination result is obtained.
[0051] In another possible implementation, the device further includes: a third acquisition module, a second judgment module, a third determination module, and a fourth determination module, wherein,
[0052] The third acquisition module is used to acquire the second correspondence between preset test items and preset parameters;
[0053] The second judgment module is used to determine whether the current test parameter is equal to the preset parameter based on the current test item, the preset test item, and the second correspondence, and to obtain a second judgment result;
[0054] The third determining module is used to determine the current test parameter as the current abnormal parameter and the sub-IP address corresponding to the current abnormal parameter as the current abnormal sub-IP address when the second determination result is negative.
[0055] The fourth determining module is used to determine the abnormal identification information based on the first correspondence, the current abnormal sub-IP address, and the identification information.
[0056] In another possible implementation, the apparatus further includes: a fourth acquisition module, a fifth determination module, a calculation module, and a sixth determination module, wherein,
[0057] The fourth acquisition module is used to acquire the historical abnormal parameters corresponding to each final sub-IP address;
[0058] The fifth determining module is used to determine the abnormal test items corresponding to each final sub-IP address based on the current abnormal parameters and the historical abnormal parameters.
[0059] The calculation module is used to calculate the anomaly score corresponding to each final sub-IP address based on the anomaly test item and the corresponding preset weight.
[0060] The sixth determining module is used to determine the anomaly level of each final sub-IP address based on the anomaly score, and to determine the anomaly level of the anomaly identification information based on the first correspondence.
[0061] In another possible implementation, when the number of final sub-IPs of the vehicle terminals in a batch of vehicle terminals reaches a preset number;
[0062] The device further includes: a third judgment module and a seventh determination module, wherein...
[0063] The third judgment module is used to determine whether there are any identical abnormal test items for all abnormal test items corresponding to each final sub-IP address, and to obtain the third judgment result.
[0064] The seventh determining module is used to determine the undetected vehicle terminal as an abnormal prediction vehicle terminal when the third judgment result is yes.
[0065] In another possible implementation, the device further includes: an eighth determining module, a fifth acquiring module, a fourth judging module, and a second sending module, wherein,
[0066] The eighth determining module is used to determine the final sub-IP address containing the current abnormal parameter and / or the historical abnormal parameter as the maintenance sub-IP address;
[0067] The fifth acquisition module is used to acquire the maintenance parameters corresponding to each maintenance sub-IP address based on the abnormal test item after a preset time interval.
[0068] The fourth judgment module is used to determine whether the maintenance parameter is equal to the preset parameter based on the abnormal test item, the preset test item and the second correspondence, and to obtain the fourth judgment result;
[0069] The second sending module is used to send a warning message to the terminal device based on the abnormal test item corresponding to the maintenance parameter when the fourth judgment result is negative.
[0070] Thirdly, an electronic device is provided, the electronic device comprising:
[0071] One or more processors;
[0072] Memory;
[0073] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications being configured to perform operations corresponding to the method for detecting the vehicle terminal device according to any possible implementation of the first aspect.
[0074] Fourthly, a computer-readable storage medium is provided, the storage medium storing at least one instruction, at least one program, code set, or instruction set, wherein the at least one instruction, at least one program, code set, or instruction set is loaded and executed by a processor to implement a method for detecting an on-board terminal device as shown in any possible implementation of the first aspect.
[0075] In summary, this application includes at least one of the following beneficial technical effects:
[0076] This application provides a method, apparatus, electronic device, and storage medium for testing vehicle-mounted terminal equipment. Compared with related technologies, in this application, the sub-IP addresses and identification information corresponding to each vehicle-mounted terminal are obtained. Then, a first correspondence between the sub-IP addresses and identification information is established and stored. Based on the sub-IP addresses, the current test item and the current test parameter corresponding to each vehicle-mounted terminal are obtained. The current test parameter is used to characterize the current test result during the vehicle-mounted terminal testing process. One vehicle-mounted terminal corresponds to one current test item, and one current test item for one vehicle-mounted terminal corresponds to one current test parameter. After obtaining the current test item and the current... After testing the parameters, the system determines whether the current test item is the final test item based on the test item, and obtains the first judgment result. If the first judgment result is yes, the current test parameter corresponding to the current test item is determined as the final parameter, and the sub-IP address corresponding to the final parameter is determined as the final sub-IP address. Based on the first correspondence, the final sub-IP address, and the identification information, the final identification information is quickly determined. That is, in this application, after determining the final sub-IP address, the location of the final vehicle terminal can be determined directly through the correspondence between the sub-IP address and the identification information, which reduces the time for determining the location of the final vehicle terminal and thus improves the working efficiency of testing vehicle terminal equipment. Attached Figure Description
[0077] Figure 1 This is a schematic flowchart of a method for detecting an in-vehicle terminal device provided in an embodiment of this application.
[0078] Figure 2 This is a schematic diagram of a vehicle-mounted terminal device detection provided in an embodiment of this application.
[0079] Figure 3 This is a schematic diagram of a device structure for detecting vehicle-mounted terminal equipment provided in an embodiment of this application.
[0080] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0081] The present application will be further described in detail below with reference to the accompanying drawings.
[0082] This specific embodiment is merely an explanation of this application and is not intended to limit it. After reading this specification, those skilled in the art can make modifications to this embodiment without contributing any inventive step, but such modifications are protected by patent law as long as they fall within the scope of the claims of this application.
[0083] Testing vehicle-mounted terminal equipment on the production line is quite cumbersome and complex. Manual testing of hardware interfaces and software functions is inefficient. By connecting the vehicle-mounted terminal equipment to test fixtures, the terminal equipment and electronic devices can be linked. Test commands are sent through the electronic devices, enabling automated testing of hardware and software functions, significantly improving production line efficiency. The main test items for vehicle-mounted terminal equipment are those related to hardware interfaces and functions, including whether the main control CPU and auxiliary MCU are functioning correctly, and whether modules such as 4G, Wi-Fi, GPS, gravity-sensor, SATA, USB, Secure Digital Memory Card (SD), RS-232, RS-485, sensor input, and sensor output are used. Check whether the hardware interfaces (OUT) and their accompanying software interfaces are all functioning correctly. RS485 is the standard that defines the electrical characteristics of drivers and receivers in a balanced digital multipoint system. With identical parameter configurations for the vehicle-mounted terminals, communication tests of multiple devices can be performed simultaneously on a single network, saving on the investment of test computers and personnel.
[0084] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0085] Furthermore, the term "and / or" in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article, unless otherwise specified, generally indicates that the preceding and following related objects have an "or" relationship.
[0086] The embodiments of this application will now be described in further detail with reference to the accompanying drawings.
[0087] This application provides a method for detecting an in-vehicle terminal device, executed by an electronic device. This electronic device can be a server or a terminal device. The server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The terminal device can be a smartphone, tablet, laptop, desktop computer, etc., but is not limited to these. The terminal device and the server can be directly or indirectly connected via wired or wireless communication. This application does not impose any limitations on this. Figure 1 As shown, the method may include:
[0088] Step S101: Obtain the sub-IP address and identification information corresponding to each vehicle terminal.
[0089] Each vehicle-mounted terminal has a unique identifier.
[0090] In the embodiments of this application, each batch of vehicle terminals has the same default IP. The vehicle terminals generate sub-IPs through the chip serial number. The new chip serial numbers of the vehicle terminals in the same batch are different to ensure that the sub-IPs of the corresponding vehicle terminals in the same batch are different. For example, there are one hundred vehicle terminals in a batch. The default IPs of the one hundred vehicle terminals are the same. Information is transmitted by adding sub-IPs and electronic devices. For example, the default IP of vehicle terminal device 1 is 192.168.0.250, and the sub-IP is 192.168.2.244. The last digit of the sub-IP is generated according to the chip serial number to ensure that the sub-IP of each vehicle terminal device is different.
[0091] In the embodiments of this application, when testing the vehicle terminal, the vehicle terminal is tested at the test station using a test fixture. One test fixture corresponds to one vehicle test terminal, and each test fixture corresponds to an identification information. The test fixture sends the identification information to the vehicle terminal.
[0092] Furthermore, when a detection request is detected, the electronic device can obtain the sub-IP address, identification information, and correspondence between the sub-IP address and identification information of each vehicle terminal from the vehicle terminal. When detecting the vehicle terminals, a portion of the vehicle terminals in a batch can be detected, and after detection, another portion of the vehicle terminals can be detected until the batch of vehicle terminals is detected.
[0093] In the embodiments of this application, the identification information can be the number of the test fixture or the location information of the test fixture, for example, number 1 or three rows and two columns.
[0094] In this embodiment of the application, before the electronic device obtains the sub-IP address and identification information corresponding to each vehicle terminal, and before other devices (such as a relay server) obtain the sub-IP address and identification information corresponding to each vehicle terminal, the sub-IP address and identification information can be relayed to the electronic device. For example, other devices can send the information corresponding to vehicle terminals numbered 3-6 to the electronic device.
[0095] Step S102: Establish and store the first correspondence between sub-IP addresses and identification information.
[0096] In the embodiments of this application, after obtaining the sub-IP address and identification information, the electronic device can establish a first correspondence between the sub-IP address and identification information and then store the established first correspondence between the sub-IP address and identification information. For example, the identification information corresponding to the IP address 192.168.2.244 is number 2.
[0097] Step S103: Obtain the current test item and the current test parameter corresponding to each vehicle terminal based on the sub-IP address.
[0098] Among them, the current test parameter is used to characterize the current test result in the vehicle terminal testing process. One vehicle terminal corresponds to one current test item, and one current test item of one vehicle terminal corresponds to one current test parameter.
[0099] In the embodiments of this application, the current test parameters and the current test items correspond to each other. For example, the current test item is test item 6, and the current test parameter corresponding to the current test item is 63. The current test parameters corresponding to different vehicle terminals are different, that is, the current test parameters corresponding to different sub-IP addresses are different. For example, the current test parameter obtained based on the sub-IP address 192.168.2.244 is 509.
[0100] Furthermore, after obtaining the current test item, the current test parameters can be obtained. The electronic device can obtain the current test parameters and current test items corresponding to each vehicle terminal in real time based on the sub-IP address, or it can obtain the current test parameters and current test items corresponding to each vehicle terminal based on the sub-IP address at preset intervals, or it can obtain the current test parameters and current test items corresponding to each vehicle terminal based on the sub-IP address when a user's trigger command is detected. In this embodiment, no limitation is made.
[0101] In the above application embodiments, after obtaining the current test parameters and current test items corresponding to each vehicle terminal based on the sub-IP address, the current test parameters and current test items corresponding to each vehicle terminal can be stored locally, or the current test parameters and test items corresponding to each vehicle terminal can be sent to other devices for storage, such as a USB flash drive.
[0102] In the above-mentioned application embodiments, after obtaining the test parameters corresponding to each vehicle terminal based on the sub-IP address, the display device can display the current test parameters and current test items corresponding to each vehicle terminal in real time. It can also display the current test parameters and current test items corresponding to each vehicle terminal when a display command triggered by the user is detected, so that the staff can grasp the test status of each vehicle terminal.
[0103] Step S104: Determine whether the current test item is the final test item, and obtain the first judgment result.
[0104] In the embodiments of this application, it is determined whether the current test item is the last test item to be completed (i.e., the final test item) based on the current test item and historical test items, or it is determined whether the current test item is the final test item based on the current test item and the final test item identification information.
[0105] Step S105: If the first judgment result is yes, then the current test parameter corresponding to the final test item is determined as the final parameter, and the sub-IP address corresponding to the final test parameter is determined as the final sub-IP address.
[0106] In this embodiment of the application, after the electronic device obtains the final test item and the final test parameter, the vehicle terminal test corresponding to the final test parameter is completed. If the current test item is the final test item, the current test parameter corresponding to the final test item is the final test parameter, and the sub-IP address corresponding to the final test parameter is the sub-IP address of the completed test (i.e., the final sub-IP address). The database stores the correspondence between the current test parameter and the current test item. After the current test item is determined, the current test parameter corresponding to the current test item is found from the correspondence stored in the database. For example, if the current test parameter 50 is the final test parameter of the vehicle terminal, and the sub-IP address corresponding to the current test parameter 50 is 192.168.2.244, then the sub-IP address 192.168.2.244 is the final sub-IP address.
[0107] In the above application embodiments, after determining the sub-IP address corresponding to the final test parameters as the final sub-IP address, the display device can display the final sub-IP address in real time, and can also display the final sub-IP address when a display command triggered by the user is detected, so that staff can know the final sub-IP address corresponding to the vehicle terminal after the test is completed.
[0108] Step S106: Determine the final identification information based on the first correspondence, the final sub-IP address, and the identification information.
[0109] In this embodiment of the application, after determining the sub-IP address of the vehicle terminal that has completed the test, it is necessary to determine the identification information corresponding to the vehicle terminal that has completed the test. Through the first correspondence between the sub-IP address and the identification information, the final identification information corresponding to the final sub-IP address is determined from the identification information, so that the staff can identify the vehicle terminal that has completed the test.
[0110] In the above application embodiments, after determining the final identification information based on the first correspondence, the final sub-IP address and the identification information, the display device can display the final identification information in real time, and can also display the final identification information when a display command triggered by the user is detected, so that staff can grasp the test status of each vehicle terminal.
[0111] This application provides a method for detecting vehicle-mounted terminal devices. Compared with related technologies, in this application embodiment, by obtaining the sub-IP address and identification information corresponding to each vehicle-mounted terminal, establishing and storing a first correspondence between the sub-IP address and the identification information, and obtaining the current test item and the current test parameter corresponding to each vehicle-mounted terminal based on the sub-IP address, wherein the current test parameter is used to characterize the current test result in the vehicle-mounted terminal testing process, one vehicle-mounted terminal corresponds to one current test item, and one current test item of one vehicle-mounted terminal corresponds to one current test parameter. After obtaining the current test item and the current test parameter... Then, based on the test item, it is determined whether the current test item is the final test item, and a first judgment result is obtained. If the first judgment result is yes, the current test parameter corresponding to the current test item is determined as the final parameter, and the sub-IP address corresponding to the final parameter is determined as the final sub-IP address. Based on the first correspondence, the final sub-IP address and the identification information, the final identification information is quickly determined. That is, in this embodiment of the application, after determining the final sub-IP address, the location of the final vehicle terminal can be determined directly through the correspondence between the sub-IP address and the identification information, which reduces the time for determining the location of the final vehicle terminal and thus improves the working efficiency of detecting vehicle terminal equipment.
[0112] Another possible implementation of this application embodiment is that the method may further include: step Sa1 (not shown in the figure) and step Sa2 (not shown in the figure), wherein step Sa1 may be executed before step S102, step Sa1 may be executed after step S102, and step Sa1 may be executed simultaneously with step S102.
[0113] Step Sa1: Establish a network connection based on the sub-IP address.
[0114] In the embodiments of this application, after obtaining the sub-IP addresses corresponding to each vehicle terminal, a network connection is established based on the sub-IP addresses of the vehicle terminals and the IP addresses of the electronic devices. Each electronic device corresponds to at least two sub-IP addresses, and the electronic device establishes a network connection with at least two sub-IP addresses. For example, a network connection is established with sub-IP address 192.168.2.244 and a network connection is established with 192.168.3.256.
[0115] Step Sa2: Send test commands to the vehicle terminal based on the sub-IP address.
[0116] In this embodiment of the application, after establishing a network connection, a test command is sent to the sub-IP address via the network connection. The test command includes the current test item; for example, sending the test command "test voltage" to the vehicle terminal with sub-IP address 192.168.2.244 via the network connection. By establishing a network connection and sending the test command to the vehicle terminal, the electronic device can obtain test parameters.
[0117] Another possible implementation of this application embodiment involves determining whether the current test item is the final test item to obtain a first determination result. Specifically, this may include: acquiring historical test items; calculating the number of completed test items based on the current test item and historical test items; determining whether the current test item is the final test item based on the number of completed test items and a preset number of test items to obtain the first determination result. In this application embodiment, the electronic device can acquire historical test items corresponding to each vehicle terminal from local storage, from other devices, or from historical test items corresponding to each vehicle terminal input by the user.
[0118] In this embodiment of the application, the number of completed test items corresponding to the same sub-IP address is calculated using the current test items and historical test items. The current number of test items corresponding to the sub-IP address is calculated using the current test items, and the historical number of test items corresponding to the sub-IP address is calculated using the historical test items. The sum of the current number of test items and the historical number of test items is determined as the number of completed test items. The number of completed test items is compared with the preset number of test items. If the number of completed test items is equal to the preset number of test items, then the current test item is the final test item. The size of the preset number of test items can be preset by the engineer or preset by the system.
[0119] The historical test items refer to the test items that the vehicle terminal corresponding to the current test item has already completed. For example, if the current test item is test item A1, and the historical test items corresponding to this sub-IP address are test items B1 and B2, then the current test item count for this sub-IP address is 1, the historical test item count is 2, and the completed test item count for this sub-IP address is 3. If the preset number of test items is 3, then the current test item is the final test item. By using historical test items, the current test item, and the current test parameters, the final test parameters are accurately determined to determine the final sub-IP address, improving the accuracy of determining the final vehicle terminal and thus improving the efficiency of the final vehicle terminal detection.
[0120] Another possible implementation of this application embodiment is to obtain the current test item and the current test parameter corresponding to each vehicle terminal based on the sub-IP address, and then may include: step Sb1 (not shown in the figure), step Sb2 (not shown in the figure), step Sb3 (not shown in the figure) and step Sb4 (not shown in the figure), wherein step Sb1 is to obtain the second correspondence between the preset test item and the preset parameter;
[0121] In the embodiments of this application, each vehicle terminal corresponds to at least two preset test items, and each preset test item corresponds to a preset parameter. For example, preset test item A corresponds to preset parameter 50. The preset test items are the items that each vehicle terminal needs to be tested. A second correspondence between preset test items and preset parameters can be obtained from local storage, or from other devices, or from user-inputted current test items and preset parameters, but this is not limited in the embodiments of this application.
[0122] Step Sb2: Based on the current test item, the preset test item, and the second correspondence, determine whether the current test parameter is equal to the preset parameter, and obtain the second judgment result.
[0123] In the embodiments of this application, the preset parameters are the correct parameters that the electronic device should obtain during the testing of the vehicle terminal. The current test parameters may be different for different current test items. The same preset test item has the same preset parameters for different vehicle terminals. The current test parameters may also be different for different IP addresses. Based on the current test item, a preset test item that matches the current test item is searched. Based on the third correspondence, the current test parameter is compared with the preset parameter corresponding to the matching preset test item to determine whether the current test parameter is the same as the preset parameter. If the current test parameter and the preset parameter are the same, the current test parameter is normal. If the current test parameter and the preset parameter are different, the current test parameter is abnormal.
[0124] Step Sb3: If the second judgment result is negative, then determine the current test parameter as the current abnormal parameter, and determine the sub-IP address corresponding to the current abnormal parameter as the current abnormal sub-IP address.
[0125] In the embodiments of this application, if the current test parameter and the preset parameter are not the same, the current parameter is the current abnormal parameter, and the sub-IP address corresponding to the current abnormal parameter is determined as the current abnormal sub-IP address.
[0126] In the above-mentioned application embodiments, after the electronic device determines that the current test parameter is the current abnormal parameter and determines that the sub-IP address corresponding to the current abnormal parameter is the current abnormal sub-IP address, it can store the current abnormal parameter and the current abnormal sub-IP address corresponding to the current abnormal parameter locally, or it can send the current abnormal parameter and the current abnormal sub-IP address corresponding to the current abnormal parameter to other devices for storage, such as a USB flash drive.
[0127] In the above-mentioned application embodiments, after determining the current abnormal parameters and the current abnormal sub-IP addresses, the display device can display the current abnormal parameters and the current abnormal sub-IP addresses in real time. It can also display the current abnormal parameters and the current abnormal sub-IP addresses when a display command triggered by the user is detected, so that staff can understand the abnormal situation of the current test parameters corresponding to each sub-IP address.
[0128] Step Sb4: Based on the first correspondence, the current abnormal sub-IP address, and the identification information, determine the abnormal identification information.
[0129] In this embodiment of the application, after determining the current abnormal sub-IP address, the abnormal identification information corresponding to the current abnormal sub-IP address is determined from all the identification information based on the correspondence between the sub-IP address and the identification information.
[0130] In the above-mentioned application embodiments, after determining the abnormal identification information, the above-mentioned display device can display the abnormal identification information in real time, and can also display the abnormal identification information when a display command triggered by the user is detected, so that the staff can grasp the abnormal identification information. By determining the current abnormal parameters, the current abnormal sub-IP address is determined, and the current abnormal identification information is determined based on the correspondence between the sub-IP address and the identification information, so that the staff can quickly identify the abnormal vehicle terminal, further improving the detection efficiency of the vehicle terminal.
[0131] In this embodiment of the application, the vehicle-mounted terminal can perform audio detection and video detection. During audio detection, a piece of text is pre-set in the vehicle-mounted terminal, and the vehicle-mounted terminal collects the audio corresponding to the text from other devices and performs speech recognition on the audio. The vehicle-mounted terminal compares the recognition result with the pre-set text to determine whether the speech can be correctly recognized. During video detection, an image is saved in the vehicle-mounted terminal, and the vehicle-mounted terminal obtains the same image sent by the test fixture. The vehicle-mounted terminal compares the obtained image with the saved image through pixel values to determine whether the vehicle-mounted terminal can correctly capture the image.
[0132] Furthermore, a possible implementation of the embodiments of this application is introduced through a specific scenario, namely, analyzing the detection of three vehicle-mounted terminals, specifically as follows: Figure 2As shown, a test fixture is connected to a vehicle-mounted terminal (test fixture 1 is connected to vehicle-mounted terminal 1, test fixture 2 is connected to vehicle-mounted terminal 2, and test fixture 3 is connected to vehicle-mounted terminal 3). Electronic devices (which can be PCs) are connected to the three vehicle-mounted terminals via network cables. The test fixture performs auxiliary tests on some items. After the test fixture and vehicle-mounted terminals are connected, the test fixture continuously sends information to the vehicle-mounted terminals. When the electronic device sends a test command to the vehicle-mounted terminal, the vehicle-mounted terminal sends the information obtained from the test fixture to the electronic device. For example, the test fixture can test voltage. The test fixture continuously sends the measured voltage from the vehicle-mounted terminal to the vehicle-mounted terminal. When the vehicle-mounted terminal does not transmit voltage, the voltage is 0. When the electronic device sends a voltage test command to the vehicle-mounted terminal, the vehicle-mounted terminal transmits a 5V voltage. The test fixture detects the measured voltage and determines whether the voltage is abnormal. The test fixture sends the measured voltage and abnormality information to the vehicle-mounted terminal, which then sends it to the electronic device. The electronic device obtains the voltage and the result.
[0133] Another possible implementation of this application embodiment, if the first determination result is yes, then the current test parameter corresponding to the final test item is determined as the final parameter, and the sub-IP address corresponding to the final test parameter is determined as the final sub-IP address. This may further include: steps Sc1 (not shown in the figure), Sc2 (not shown in the figure), Sc3 (not shown in the figure), and Sc4 (not shown in the figure), wherein...
[0134] Step Sc1: Obtain the historical anomaly parameters corresponding to each final sub-IP address.
[0135] For the embodiments of this application, the historical abnormal parameters are all abnormal parameters before the current time corresponding to the current parameter of the final sub-IP address. When the vehicle terminal completes the detection (i.e. determines the final sub-IP), it obtains the historical abnormal parameters corresponding to each final sub-IP address. For example, the historical abnormal parameters corresponding to the final sub-IP address 192.168.2.244 are 1, 0 and 100.
[0136] Step Sc2: Based on the current abnormal parameters and historical abnormal parameters, determine the abnormal test items corresponding to each final sub-IP address.
[0137] In this embodiment of the application, after determining the abnormal parameters, based on the current test item corresponding to the current test parameter and the historical abnormal test items corresponding to the historical abnormal parameters, the abnormal test items corresponding to each final sub-IP address are determined. For example, the historical abnormal test items corresponding to the final sub-IP address 192.168.1.254 include: historical abnormal test item C1, historical abnormal test item C2, and historical abnormal test item C3; the current abnormal test item corresponding to the final sub-IP address 192.168.1.254 includes: current abnormal test item D1; then the abnormal test items corresponding to the final sub-IP address include: historical abnormal test item C1, historical abnormal test item C2, historical abnormal test item C3, and current abnormal test item D1.
[0138] Step Sc3: Based on the abnormal test items and their corresponding preset weights, calculate the abnormal score for each final sub-IP address.
[0139] In this embodiment of the application, after determining the abnormal test items, the abnormal test items are vectorized into numerical forms. Based on the abnormal test items and their corresponding preset weights, where the preset weights can be pre-set by engineers or by the system, the abnormal scores corresponding to each final sub-IP address are calculated. For example, based on T = P1*f1 + P2*f2 + ... + P n *f n Where T represents the anomaly score corresponding to the final sub-IP address, P represents the anomaly test item, and f represents the preset weight corresponding to the anomaly test item.
[0140] In the above-mentioned application embodiments, after calculating the abnormal scores corresponding to each final sub-IP address, the display device can display the abnormal scores corresponding to each final sub-IP address in real time. It can also display the abnormal scores corresponding to each final sub-IP address when a display command triggered by the user is detected, so that staff can understand the abnormal scores corresponding to each final sub-IP address.
[0141] Step Sc4: Determine the anomaly level of the final sub-IP address based on the anomaly score, and determine the anomaly level of the final identification information based on the first correspondence.
[0142] In this embodiment of the application, when the final sub-IP address does not have current abnormal parameters or historical abnormal parameters, it indicates that the final sub-IP address has passed the detection. The abnormal test item corresponding to the final sub-IP address that has passed the detection is 0, that is, the abnormal score is 0. The abnormal level of the final sub-IP address is determined by the abnormal score of the final sub-IP address and the preset score range. For example, the final identification information corresponding to the final sub-IP address 192.168.1.254 is number 6, the abnormal score corresponding to the final sub-IP address 192.168.1.254 is 8, the abnormal level of the preset score range is greater than 0 and less than or equal to 5, the abnormal level is level 1, the abnormal level of the preset score range is greater than 5 and less than or equal to 12, the abnormal level is level 2, and the abnormal level of the preset score range is greater than 12, the abnormal level of the final sub-IP address is level 3. Based on the first correspondence between the sub-IP address and the identification information, the abnormal level of the final identification information is determined. Thus, the abnormal level of number 6 is level 2. The preset score range corresponding to the final sub-IP address can be preset by the engineer or by the system. Vehicle terminals with high anomaly levels require longer repair times. By classifying the final sub-IP addresses with abnormal parameters into different anomaly levels, the detection efficiency of vehicle terminals is improved, allowing staff to repair abnormal vehicle terminals according to their anomaly levels.
[0143] In the above-mentioned application embodiments, after determining the anomaly level of the final identification information, the display device can display the anomaly level of the final identification information in real time, and can also display the anomaly level of the final identification information when a display command triggered by the user is detected, so that staff can understand the anomaly level corresponding to the vehicle terminals in different locations.
[0144] Another possible implementation of this application embodiment is when the number of final sub-IPs of the vehicle terminals in a batch of vehicle terminals reaches a preset number;
[0145] The method may further include: determining whether there are identical abnormal test items among all abnormal test items corresponding to each final sub-IP address, and obtaining a third determination result; if the determination result is yes, then the identical abnormal test items are identified as priority test items, and the undetected vehicle terminals are identified as abnormal prediction vehicle terminals. In the embodiments of this application, the preset number can be preset by the engineer or by the system. The preset number can be five or ten, and the specific number is not limited in the embodiments of this application.
[0146] In the embodiments of this application, a batch of vehicle terminals have the same configuration parameters and test items. It is necessary to test a portion of the vehicle terminals first. During the testing of a batch of vehicle terminals, when the final sub-IP address of some vehicle terminals in a certain batch is determined, that is, the testing of a portion of the vehicle terminals is completed. After the testing of a portion of the vehicle terminals is completed, it is judged by comparison whether there is the same abnormal test item in the final sub-IP address. When all the tested vehicle terminals have the same abnormal test item, the batch of vehicle terminals may all have the same abnormal test item. The untested vehicle terminals are identified as abnormal prediction vehicle terminals, so that the untested vehicle terminals can be directly repaired.
[0147] Another possible implementation of this application embodiment is as follows: the abnormality level of the abnormal sub-IP address is determined based on the abnormal score, and the abnormality level of the abnormal identification information is determined based on the first correspondence. This may further include: determining the final sub-IP address containing current abnormal parameters and / or historical abnormal parameters as the maintenance sub-IP address; obtaining the maintenance parameters corresponding to each maintenance sub-IP address based on the abnormal test items after a preset time interval; determining whether the maintenance parameters are equal to the preset parameters based on the abnormal test items, the preset test items, and the second correspondence, to obtain a third judgment result; if the third judgment result is negative, sending a warning message to the terminal device based on the abnormal test items corresponding to the maintenance parameters. In this embodiment, if an abnormal vehicle terminal (i.e., the final sub-IP address with current abnormal parameters and / or historical abnormal parameters) is detected again after testing, an abnormality occurs, indicating a problem in the repair of the vehicle terminal. The preset time period is the repair time corresponding to the vehicle terminal of the repair sub-IP address. After the vehicle terminal is repaired, the abnormal test items corresponding to the vehicle terminal are detected. The repair parameters of the abnormal test items are obtained. The repair parameters are the test parameters corresponding to the abnormal test items after the vehicle terminal is repaired. The abnormal test items are matched with preset test items. Based on the second correspondence between preset test items and preset parameters, the repair parameters are compared with the preset parameters corresponding to the matched preset test items. If the repair parameters and the preset parameters are not equal, the vehicle terminal corresponding to the repair sub-IP address has not been successfully repaired. The abnormal test item corresponding to the repair parameters is identified as a warning test item, and a warning message is sent to the terminal device. The terminal device can be the terminal device corresponding to the vehicle terminal device being repaired. The connection relationship between the terminal device and the electronic device is preset. The warning message may include: alarm test items.
[0148] In this embodiment of the application, by performing abnormal test items on the repaired vehicle terminal, the testing efficiency of the repaired vehicle terminal is reduced. Alarm information is sent to the vehicle terminal that is not successfully repaired, so that the staff can check the repair work, reduce the number of repairs, and thus reduce the number of vehicle terminal tests, thereby improving the testing efficiency of the vehicle terminal.
[0149] The above embodiments describe a method for detecting vehicle-mounted terminal equipment from the perspective of process flow. The following embodiments describe a device for detecting vehicle-mounted terminal equipment from the perspective of virtual modules or virtual units. For details, please refer to the following embodiments.
[0150] This application provides a device for detecting vehicle-mounted terminal equipment, such as... Figure 3 As shown, the detection device 30 of the vehicle-mounted terminal equipment may specifically include: a first acquisition module 31, a first establishment module 32, a second acquisition module 33, a first judgment module 34, a first determination module 35, and a second determination module 36, wherein,
[0151] The first acquisition module 31 is used to acquire the sub-IP address and identification information corresponding to each vehicle terminal, and each vehicle terminal has unique identification information.
[0152] The first establishment module 32 is used to establish and store the first correspondence between sub-IP addresses and identification information;
[0153] The second acquisition module 33 is used to acquire the current test item and the current test parameter corresponding to each vehicle terminal based on the sub-IP address. The current test parameter is used to characterize the current test result in the vehicle terminal test process. One vehicle terminal corresponds to one current test item, and one current test item of one vehicle terminal corresponds to one current test parameter.
[0154] The first judgment module 34 is used to determine whether the current test item is the final test item and obtain the first judgment result;
[0155] The first determining module 35 is used to determine the current test parameter corresponding to the final test item as the final parameter and the sub-IP address corresponding to the final parameter as the final sub-IP address when the first judgment result is yes.
[0156] The second determining module 36 is used to determine the final identification information based on the first correspondence, the final sub-IP address, and the identification information.
[0157] In one possible implementation of this application embodiment, the apparatus 30 further includes: a second establishing module and a first sending module, wherein...
[0158] The second module is used to establish network connections based on sub-IP addresses;
[0159] The first sending module is used to send test commands to the vehicle terminal based on the sub-IP address.
[0160] In another possible implementation of this application embodiment, when the first judgment module 34 determines whether the current test item is the final test item and obtains the first judgment result, it is specifically used for:
[0161] Retrieve historical test items;
[0162] Calculate the number of completed test items based on the current test items and historical test items;
[0163] Based on the number of completed test items and the preset number of test items, determine whether the current test item is the final test item, and obtain the first judgment result.
[0164] In another possible implementation of this application embodiment, the apparatus 30 further includes: a third acquisition module, a second judgment module, a third determination module, and a fourth determination module, wherein,
[0165] The third acquisition module is used to acquire the second correspondence between preset test items and preset parameters;
[0166] The second judgment module is used to determine whether the current test parameter is equal to the preset parameter based on the current test item, the preset test item, and the second correspondence, and to obtain the second judgment result;
[0167] The third determination module is used to determine the current test parameter as the current abnormal parameter and the sub-IP address corresponding to the current abnormal parameter as the current abnormal sub-IP address when the second judgment result is negative.
[0168] The fourth determination module is used to determine the abnormal identification information based on the first correspondence, the current abnormal sub-IP address, and the identification information.
[0169] In another possible implementation of this application embodiment, the apparatus 30 further includes: a fourth acquisition module, a fifth determination module, a calculation module, and a sixth determination module, wherein...
[0170] The fourth acquisition module is used to acquire the historical anomaly parameters corresponding to each final sub-IP address;
[0171] The fifth determination module is used to determine the abnormal test items corresponding to each final sub-IP address based on the current abnormal parameters and historical abnormal parameters.
[0172] The calculation module is used to calculate the anomaly score for each final sub-IP address based on the anomaly test items and their corresponding preset weights.
[0173] The sixth determination module is used to determine the anomaly level of each final sub-IP address based on the anomaly score, and to determine the anomaly level of the anomaly identification information based on the first correspondence.
[0174] Another possible implementation of this application embodiment is when the number of vehicle terminals whose identification information is the final identification information sub-IP in a batch of vehicle terminals reaches a preset number;
[0175] The device 30 also includes: a third judgment module and a seventh determination module, wherein,
[0176] The third judgment module is used to determine whether there are any identical abnormal test items for all abnormal test items corresponding to each final sub-IP address, and to obtain the third judgment result.
[0177] The seventh determination module is used to determine the undetected vehicle terminal as an abnormal prediction vehicle terminal when the third judgment result is yes.
[0178] In another possible implementation of this application embodiment, the device 30 further includes: an eighth determining module, a fifth acquiring module, a fourth judging module, and a second sending module, wherein...
[0179] The eighth determination module is used to determine the final sub-IP address with current abnormal parameters and / or historical abnormal parameters as the maintenance sub-IP address;
[0180] The fifth acquisition module is used to acquire the maintenance parameters corresponding to each maintenance sub-IP address based on the anomaly test item after a preset time interval;
[0181] The fourth judgment module is used to determine whether the maintenance parameters are equal to the preset parameters based on the abnormal test items, the preset test items and the second correspondence, and to obtain the fourth judgment result;
[0182] The second sending module is used to send a warning message to the terminal device based on the abnormal test item corresponding to the maintenance parameters when the fourth judgment result is negative.
[0183] This application provides an apparatus for detecting vehicle-mounted terminal devices. Compared with related technologies, in this application embodiment, by obtaining the sub-IP addresses and identification information corresponding to each vehicle-mounted terminal, establishing and storing a first correspondence between the sub-IP addresses and identification information, and obtaining the current test item and the current test parameter corresponding to each vehicle-mounted terminal based on the sub-IP addresses, wherein the current test parameter is used to characterize the current test result in the vehicle-mounted terminal testing process, one vehicle-mounted terminal corresponds to one current test item, and one current test item of one vehicle-mounted terminal corresponds to one current test parameter. After obtaining the current test item and the current test parameter... Then, based on the test item, it is determined whether the current test item is the final test item, and a first judgment result is obtained. If the first judgment result is yes, the current test parameter corresponding to the current test item is determined as the final parameter, and the sub-IP address corresponding to the final parameter is determined as the final sub-IP address. Based on the first correspondence, the final sub-IP address and the identification information, the final identification information is quickly determined. That is, in this embodiment of the application, after determining the final sub-IP address, the location of the final vehicle terminal can be determined directly through the correspondence between the sub-IP address and the identification information, which reduces the time for determining the location of the final vehicle terminal and thus improves the working efficiency of detecting vehicle terminal equipment.
[0184] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the device for detecting vehicle-mounted terminal equipment described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0185] This application provides an electronic device, such as... Figure 4 As shown, Figure 4 The illustrated electronic device 40 includes a processor 401 and a memory 403. The processor 401 and the memory 403 are connected, for example, via a bus 402. Optionally, the electronic device 40 may also include a transceiver 404. It should be noted that in practical applications, the transceiver 404 is not limited to one type, and the structure of this electronic device 40 does not constitute a limitation on the embodiments of this application.
[0186] Processor 401 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 401 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
[0187] Bus 402 may include a pathway for transmitting information between the aforementioned components. Bus 402 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 402 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 4 The symbol is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0188] The memory 403 may be a ROM (Read Only Memory) or other type of static storage device capable of storing static information and instructions, RAM (Random Access Memory) or other type of dynamic storage device capable of storing information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto.
[0189] The memory 403 is used to store application code that executes the solution of this application, and its execution is controlled by the processor 401. The processor 401 is used to execute the application code stored in the memory 403 to implement the content shown in the foregoing method embodiments.
[0190] Electronic devices include, but are not limited to: mobile terminals such as mobile phones, laptops, digital radio receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and in-vehicle terminals (such as in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Servers can also be included. Figure 4 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0191] This application provides a computer-readable storage medium storing a computer program that, when run on a computer, enables the computer to execute the corresponding content in the aforementioned method embodiments. Compared with related technologies, in this embodiment, by obtaining the sub-IP addresses and identification information corresponding to each vehicle terminal, a first correspondence between the sub-IP addresses and identification information is established and stored. Based on the sub-IP addresses, the current test items and current test parameters corresponding to each vehicle terminal are obtained. The current test parameters are used to characterize the current test results during the vehicle terminal testing process. One vehicle terminal corresponds to one current test item, and one current test item of one vehicle terminal corresponds to one current test parameter. After obtaining the current test items and current test parameters, it is determined whether the current test item is the final test item based on the test item, and a first judgment result is obtained. If the first judgment result is yes, the current test parameter corresponding to the current test item is determined as the final parameter, and the sub-IP address corresponding to the final parameter is determined as the final sub-IP address. Based on the first correspondence, the final sub-IP address, and the identification information, the final identification information is quickly determined. That is, in this embodiment, after determining the final sub-IP address, the location of the final vehicle terminal can be determined directly through the correspondence between the sub-IP address and the identification information, reducing the time for determining the location of the final vehicle terminal and thus improving the working efficiency of the vehicle terminal testing equipment.
[0192] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0193] The above are only some embodiments of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A method for detecting vehicle-mounted terminal equipment, characterized in that, include: Obtain the sub-IP address and identification information corresponding to each vehicle terminal. Each vehicle terminal has a unique identification information. Establish and store a first correspondence between the sub-IP address and the identification information; Based on the sub-IP address, obtain the current test item and the current test parameter corresponding to each vehicle terminal. The current test parameter is used to characterize the current test result in the vehicle terminal test process. One vehicle terminal corresponds to one current test item, and one current test item of one vehicle terminal corresponds to one current test parameter. Determine whether the current test item is the final test item to obtain a first determination result; If the first determination result is yes, then the current test parameter corresponding to the final test item is determined as the final parameter, and the sub-IP address corresponding to the final parameter is determined as the final sub-IP address; Based on the first correspondence, the final sub-IP address, and the identification information, the final identification information is determined; The step of determining whether the current test item is the final test item and obtaining a first determination result includes: Retrieve historical test items; Calculate the number of completed test items based on the current test item and the historical test items; Based on the number of completed test items and the preset number of test items, determine whether the current test item is the final test item, and obtain the first determination result; The vehicle terminal generates a sub-IP based on the chip serial number. The new chip serial numbers of the vehicle terminals in the same batch are different. The last digit of the sub-IP is generated based on the chip serial number to ensure that each vehicle terminal device has a different sub-IP.
2. The method according to claim 1, characterized in that, The method further includes: Establish a network connection based on the sub-IP address; Test commands are sent to the vehicle terminal based on the sub-IP address.
3. The method according to claim 1, characterized in that, The process of obtaining the current test item and the current test parameter corresponding to each vehicle terminal based on the sub-IP address further includes: Obtain the second correspondence between preset test items and preset parameters; Based on the current test item, the preset test item, and the second correspondence, determine whether the current test parameter is equal to the preset parameter, and obtain a second determination result; If the second judgment result is negative, then the current test parameter is determined to be the current abnormal parameter, and the sub-IP address corresponding to the current abnormal parameter is determined to be the current abnormal sub-IP address; Based on the first correspondence, the current abnormal sub-IP address, and the identification information, the abnormal identification information is determined.
4. The method according to claim 3, characterized in that, If the first determination result is yes, then the current test parameter corresponding to the final test item is determined as the final parameter, and the sub-IP address corresponding to the final parameter is determined as the final sub-IP address. The process then further includes: Obtain the historical anomaly parameters corresponding to each final sub-IP address; Based on the current abnormal parameters and the historical abnormal parameters, determine the abnormal test items corresponding to each final sub-IP address; Based on the aforementioned abnormal test items and their corresponding preset weights, calculate the abnormal score for each final sub-IP address. The anomaly level of each final sub-IP address is determined based on the anomaly score, and the anomaly level of the anomaly identification information is determined based on the first correspondence.
5. The method according to claim 4, characterized in that, When the number of the final sub-IPs of the vehicle terminals in a batch reaches a preset number; The method further includes: Determine whether there are any identical abnormal test items for all abnormal test items corresponding to each final sub-IP address, and obtain the third judgment result; If the third judgment result is yes, then the undetected vehicle terminal is identified as an abnormal prediction vehicle terminal.
6. The method according to claim 4, characterized in that, The process of determining the anomaly level of each final sub-IP address based on the anomaly score, and determining the anomaly level of the anomaly identification information based on the first correspondence, further includes: The final sub-IP address containing the current abnormal parameters and / or the historical abnormal parameters is determined as the maintenance sub-IP address; After a preset time interval, the maintenance parameters corresponding to each maintenance sub-IP address are obtained based on the anomaly test items. Based on the abnormal test item, the preset test item and the second correspondence, it is determined whether the maintenance parameter is equal to the preset parameter, and a fourth determination result is obtained; If the fourth judgment result is negative, a warning message is sent to the terminal device based on the abnormal test item corresponding to the maintenance parameter.
7. A device for detecting vehicle-mounted terminal equipment, characterized in that, include: The first acquisition module is used to acquire the sub-IP address and identification information corresponding to each vehicle terminal. Each vehicle terminal has a unique identification information. The first establishment module is used to establish and store a first correspondence between the sub-IP address and the identification information; The second acquisition module is used to acquire the current test item and the current test parameter corresponding to each vehicle terminal based on the sub-IP address. The current test parameter is used to characterize the current test result in the vehicle terminal test process. One vehicle terminal corresponds to one current test item, and one current test item of one vehicle terminal corresponds to one current test parameter. The first judgment module is used to determine whether the current test item is the final test item and obtain the first judgment result; The first determining module is used to determine the current test parameter corresponding to the final test item as the final parameter and the sub-IP address corresponding to the final parameter as the final sub-IP address when the first determination result is yes. The second determining module is used to determine the final identification information based on the first correspondence, the final sub-IP address, and the identification information; The step of determining whether the current test item is the final test item and obtaining a first determination result includes: Retrieve historical test items; Calculate the number of completed test items based on the current test item and the historical test items; Based on the number of completed test items and the preset number of test items, determine whether the current test item is the final test item, and obtain the first determination result; The vehicle terminal generates a sub-IP based on the chip serial number. The new chip serial numbers of the vehicle terminals in the same batch are different. The last digit of the sub-IP is generated based on the chip serial number to ensure that each vehicle terminal device has a different sub-IP.
8. An electronic device, characterized in that, include: One or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications being configured to: perform a method for detecting an in-vehicle terminal device according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by the processor, the program implements the method for detecting an in-vehicle terminal device as described in any one of claims 1 to 6.