Detection method and storage medium

By receiving and analyzing the data of peripheral devices in the terminal device and generating simulation data to determine the fault location, the problem of low detection efficiency of embedded devices is solved and efficient fault location is achieved.

CN118733306APending Publication Date: 2024-10-01XIAN TIBORS ELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310331125.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Due to limitations in processing capabilities of embedded devices during fault detection, existing methods need to repeatedly update use cases and analyze logs, resulting in low detection efficiency.

Method used

By receiving data from peripheral devices in the terminal device, generating simulation data and analyzing it to determine the fault location, it avoids direct debugging of hardware and log analysis processes, and achieves remote monitoring and fault location.

Benefits of technology

It improves the detection efficiency and fault location accuracy of embedded devices, reduces the detection cycle, and simplifies the process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733306A_ABST
    Figure CN118733306A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of detection, and provides a detection method and a storage medium. According to the detection method, when the second data is detected to be abnormal, the correct first analog data is generated based on the first data of the plurality of related peripheral devices, the second analog data is obtained by performing data processing through the arithmetic unit, and whether the terminal device or the peripheral devices have faults or not is determined according to the data analysis result of the second analog data. According to the technical scheme, remote monitoring of the terminal equipment and the peripheral equipment can be completed under the condition that hardware is not directly debugged, use cases do not need to be used, the log analysis process is omitted, meanwhile, the equipment with faults can be accurately positioned, and therefore the fault positioning accuracy is improved while the detection efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of detection technology, and in particular, relates to a detection method and a storage medium. Background Art

[0002] Embedded devices (Embedded System) are built according to the requirements of specified tasks. When processing specified tasks, compared with general computer systems, they have the advantages of low power consumption, small size, high reliability, and high cost performance, making them widely used in communications, transportation, medical care, smart homes, smart cars and other fields.

[0003] Embedded devices are limited by their processing power and cannot self-test to find the cause of a fault. Current detection methods usually update use cases to embedded devices, read and analyze system logs to determine the cause of the fault, and when a use case cannot determine the cause of the fault, different use cases need to be updated repeatedly, resulting in low detection efficiency. Therefore, how to improve the detection efficiency of embedded devices has become an urgent problem to be solved. Summary of the invention

[0004] In view of this, an embodiment of the present application provides a detection method and a storage medium to solve the problem of low detection efficiency of existing embedded devices.

[0005] A first aspect of an embodiment of the present application provides a detection method, which is applied to a terminal device, wherein the terminal device is connected to at least one peripheral device, and the terminal device includes a computing unit, and the method includes:

[0006] receiving first data sent by at least one peripheral device;

[0007] Processing the first data of any peripheral device by the computing unit to obtain corresponding second data;

[0008] If the second data is determined to be abnormal based on the current standard value of the second data, generating first simulation data according to the first data of a plurality of related peripheral devices through the computing unit; wherein the device type of the related peripheral devices is the same as the device type of any one of the peripheral devices;

[0009] Processing the first simulation data by the computing unit to obtain corresponding second simulation data;

[0010] The second simulation data is analyzed to determine a fault existing in the terminal device or any one of the peripheral devices.

[0011] The first aspect of the embodiment of the present application provides a detection method, by generating correct first simulation data based on the first data of multiple related peripheral devices when detecting the abnormality of the second data, and obtaining the second simulation data by data processing through the operation unit, and determining whether the terminal device or the peripheral device has a fault according to the data analysis result of the second simulation data. Remote monitoring of terminal devices and peripheral devices can be completed without directly debugging the hardware, and use cases are not required and the log analysis process is omitted. At the same time, the faulty device can be accurately located, thereby improving the detection efficiency and the accuracy of locating the fault.

[0012] A second aspect of an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the detection method provided in the first aspect of the embodiment of the present application are implemented.

[0013] It can be understood that the beneficial effects of the second aspect mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0015] Figure 1 This is a schematic diagram of a first scenario of communication between a terminal device and a peripheral device provided in an embodiment of the present application;

[0016] Figure 2 This is a schematic diagram of a second scenario of communication between a terminal device and a peripheral device provided in an embodiment of the present application;

[0017] Figure 3 This is a schematic diagram of the first process of the detection method provided in the embodiment of the present application;

[0018] Figure 4 This is a second flow chart of the detection method provided in the embodiment of the present application;

[0019] Figure 5 This is a third flow chart of the detection method provided in the embodiment of the present application. DETAILED DESCRIPTION

[0020] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0021] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0022] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0023] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0024] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0025] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0026] In applications, embedded devices are limited by their processing capabilities and cannot self-test to find the cause of a fault. Current detection methods usually update use cases to embedded devices, read and analyze system logs to determine the cause of the fault, and when one use case cannot determine the cause of the fault, different use cases need to be updated repeatedly, resulting in a long detection cycle and low detection efficiency. Therefore, how to improve the detection efficiency of embedded devices has become an urgent problem to be solved.

[0027] In view of the above technical problems, the embodiment of the present application provides a detection method, which generates correct first simulation data based on the first data of multiple related peripheral devices when the second data is detected to be abnormal, and obtains second simulation data by data processing through a computing unit, and determines whether the terminal device or the peripheral device has a fault according to the data analysis result of the second simulation data. Remote monitoring of terminal devices and peripheral devices can be completed without directly debugging the hardware, and use cases are not required and the log analysis process is omitted. At the same time, the faulty device can be accurately located, thereby improving the detection efficiency and the accuracy of fault location.

[0028] The detection method provided in the embodiment of the present application can be applied to a terminal device, which can be a sending card, a receiving card or a driving unit, and can specifically be an LED display asynchronous control card; when the terminal device is a sending card or a receiving card, it can transmit display data to the driving unit / LED display asynchronous control card; when the terminal device is a driving unit / LED display asynchronous control card, it can be connected to a display array and drive the display array according to the received display data. The display array can be any type of device with a display function, such as a display, a television, a laptop, a tablet computer, a multimedia advertising machine, an electronic billboard, etc.

[0029] In the application, the display array includes a display panel, which can be a liquid crystal display panel based on TFT-LCD (Thin Film Transistor Liquid Crystal Display) technology, a liquid crystal display panel based on LCD (Liquid Crystal Display) technology, an organic electric laser display panel based on OLED (Organic Light Emitting Diode) technology, a quantum dot light emitting diode display panel based on QLED (Quantum Dot Light Emitting Diodes) technology, or a curved display panel, etc.

[0030] In application, the display array can specifically be an LED display array composed of multiple LED (Light Emitting Diode) display panels. The embodiment of the present application does not impose any restriction on the number of LED display panels included in the display array. The LED display panels included in the display array can be display panels using any LED technology such as LED, OLED or QLED.

[0031] In application, the terminal device provided in the embodiment of the present application may also be any embedded device including software and hardware.

[0032] Figure 1 The schematic diagram of a scenario in which a terminal device 1 communicates with a peripheral device 2 is exemplarily shown. The terminal device 1 can be connected to at least one peripheral device 2 .

[0033] In the application, the terminal device 1 can receive data sent by at least one peripheral device 2, can control any peripheral device 2 to process data and / or send and receive data, and can send data to any peripheral device 2. Figures 3 to 5 With any corresponding detection method, the terminal device 1 can detect itself and the peripheral device 2 to determine whether there is a fault in the terminal device 1 and the peripheral device 2, and specifically locate the software fault or hardware fault of the device.

[0034] In application, the terminal device 1 may include a computing unit 110 and a memory, the computing unit 110 may be a central processing unit (CPU), the computing unit 110 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The computing unit 110 may specifically be an integrated circuit (IC) or a timer control register (TCON).

[0035] In applications, the memory may be an internal storage unit of a terminal device in some embodiments, such as a hard disk or memory of the terminal device. In other embodiments, the memory may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the terminal device. Further, the memory may also include both an internal storage unit of the terminal device and an external storage device. The memory is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as program codes of a computer program, etc. The memory may also be used to temporarily store data that has been output or is to be output.

[0036] In the application, the peripheral device 2 may include a sensor for collecting the first data, specifically a light sensor, a temperature sensor, a humidity sensor, an infrared sensor, etc. The embodiment of the present application does not impose any limitation on the device type of the peripheral device.

[0037] In the application, the peripheral device may include a data acquisition unit and a sending interface, and the terminal device may include a receiving interface; wherein the data acquisition unit is used to collect the first data and send it to the terminal device through the sending interface, and the receiving interface is used to receive the first data sent by the peripheral device. The sending interface and the receiving interface may specifically include an IO (Input / Output) interface, a serial interface (Serial Interface) or various types of hardware interfaces (HardwareInterface), and the hardware interface may include a SATA (Serial Advanced Technology Attachment) interface, a SCSI interface (Small Computer System Interface), an HDMI interface (High Definition Multimedia Interface), a DP interface (DisplayPort), etc. The embodiment of the present application does not impose any restrictions on the specific types of the sending interface and the receiving interface.

[0038] Figure 2 The schematic diagram exemplarily shows a structure in which the terminal device 1 is connected to the sending interface 210 of each peripheral device 2 via the receiving interface 120 .

[0039] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 1 and the peripheral device 2. In other embodiments of the present application, the terminal device 1 and the peripheral device 2 may include more or fewer components than those illustrated, or may combine certain components, or different components, for example, may also include input and output devices, network access devices, etc. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0040] like Figure 3 As shown, the detection method provided in the embodiment of the present application is applied to a terminal device, the terminal device is connected to at least one peripheral device, and the terminal device includes a computing unit, including the following steps S301 to S305:

[0041] Step S301: Receive first data sent by at least one peripheral device.

[0042] In the application, the terminal device is connected to at least one peripheral device, and the terminal device can receive the first data sent by each peripheral device. Specifically, each peripheral device can send one or more first data, and the data type of the first data sent by the peripheral device is determined according to the device type of the corresponding peripheral device.

[0043] Step S302: Process the first data of any peripheral device through the computing unit to obtain corresponding second data.

[0044] In the application, for the first data of any peripheral device, the operation unit can process the first data to obtain corresponding second data. The data processing method can be determined according to the data type of the first data, and the terminal device can pre-store the corresponding relationship between the data type of the first data and the data processing method.

[0045] For example, assuming that the first data is light intensity, the second data may be light data of the same area within a preset time period, and the corresponding data processing method may be to calculate the average value of the light intensity within the preset time period.

[0046] Step S303: if the second data is determined to be abnormal based on the current standard value of the second data, generate first simulation data according to the first data of multiple related peripheral devices through a computing unit; wherein the device type of the related peripheral device is the same as the device type of any peripheral device.

[0047] In the application, the operation unit can determine whether the second data is abnormal based on the current standard value of the second data. If it is abnormal, it means that there is a fault in the terminal device or any of the above peripheral devices, and the cause of the fault can be detected by generating the first simulation data. The method for generating the first simulation data can specifically be to obtain the first data of multiple related peripheral devices, and calculate the average value, median and other data of the first data of the above multiple related peripheral devices through the operation unit to obtain the first simulation data.

[0048] In the application, after obtaining the first data of multiple related peripheral devices, the first data of multiple related peripheral devices can also be filtered through the computing unit to obtain multiple first standard data, and the average value, median and other data of the above multiple first standard data can be calculated through the computing unit to obtain the first simulation data; wherein the filtering condition can be that the difference between any two first standard data is within a second preset range.

[0049] In the application, the current standard value of the second data can be obtained by processing the first data of multiple related peripheral devices to obtain corresponding multiple second data, and the current standard value of the second data is determined according to the multiple second data. The specific method for obtaining the current standard value is described below.

[0050] In one embodiment, before step S303, the method further includes:

[0051] Processing the first data of the plurality of related peripheral devices by the computing unit to obtain the corresponding plurality of second data;

[0052] Screening all the second data based on the first preset range to obtain at least one second standard data; all the second data include a plurality of second data corresponding to a plurality of related peripheral devices, and second data corresponding to any one peripheral device;

[0053] Determining a current standard value of the second data according to at least one second standard data;

[0054] Comparing the second data corresponding to any one of the peripheral devices with the current standard value to determine the discreteness of the corresponding second data;

[0055] When the discreteness of the second data corresponding to any one of the peripheral devices is greater than a preset discreteness, it is determined that the corresponding second data is abnormal.

[0056] In the application, the computing unit can process the first data of multiple related peripheral devices to obtain multiple second data corresponding to the first data of multiple related peripheral devices. For example, the related peripheral device can be a light sensor, the corresponding first data can be light intensity, and the second data can be light data of the same area within a preset time period.

[0057] In the application, the current standard value of the second data can be calculated based on all the second data obtained; the current standard value of the second data can be determined by calculating the average, median, variance, standard deviation or fitting value of all the second data. It should be noted that before calculating the current standard value of the second data, the second data can be screened, and the specific screening condition can be the second data whose value is within the first preset range, or the difference between any two second data is within the first preset range, so as to screen at least one second standard data, and calculate the current standard value of the second data based on the above second standard data.

[0058] In the application, after determining the current standard value, the second data corresponding to any one of the above peripheral devices can be compared with the current standard value to determine the discreteness of the corresponding second data. Specifically, the discreteness of the corresponding second data can be determined by obtaining the difference between the above corresponding second data and the current standard value; the discreteness of the corresponding second data can also be determined by obtaining the ratio between the above corresponding second data and the current standard value. When the discreteness of the corresponding second data is greater than the preset discreteness, the above corresponding second data is determined to be abnormal.

[0059] Step S304: Processing the first simulation data by a computing unit to obtain corresponding second simulation data;

[0060] Step S305: Analyze the second simulation data to determine the fault in the terminal device or any peripheral device.

[0061] In the application, after obtaining the first analog data, the operation unit can process the first analog data to obtain corresponding second analog data, wherein the data processing method for the first analog data is consistent with the data processing method for the first data, which will not be repeated here.

[0062] In the application, the second simulation data can be analyzed by any computing unit (specifically, the operation unit) of the terminal device or sent to a server connected to the terminal device to determine whether the second simulation data is abnormal. If it is abnormal, it means that the terminal device cannot generate the second simulation data based on the correct first simulation data, then the operation unit is faulty, or the first simulation data is damaged during the transmission process, indicating that the receiving interface or the sending interface of any of the above peripheral devices (used to send the first data and / or the first simulation data) is faulty; if it is normal, it means that any of the above peripheral devices cannot collect normal first data, resulting in the abnormal second data in step S303, then the data collection unit is faulty, or the first simulation data is damaged during the transmission process, indicating that the receiving interface or the sending interface of any of the above peripheral devices (used to send the first data and / or the first simulation data) is faulty.

[0063] In the application, when the terminal device detects that the second data is abnormal, it can generate correct first simulation data based on the first data of multiple related peripheral devices, and obtain second simulation data through data processing by the operation unit, and determine whether the terminal device or the peripheral device has a fault according to the data analysis result of the second simulation data. Remote monitoring of terminal devices and peripheral devices can be completed through software without directly debugging hardware, and there is no need to use use cases and the log analysis process is omitted, and the faulty device can be accurately located, which improves the detection efficiency and the accuracy of fault location.

[0064] like Figure 4 As shown, in one embodiment, based on Figure 3 In the corresponding embodiment, the receiving interface of the terminal device is connected to the sending interface of each peripheral device respectively, and the peripheral device collects the first data through the data collection unit. The embodiment includes the following steps S401 to S407:

[0065] Step S401, receiving first data sent by at least one peripheral device;

[0066] Step S402: Process the first data of any peripheral device through a computing unit to obtain corresponding second data;

[0067] Step S403: if the second data is determined to be abnormal based on the current standard value of the second data, first simulation data is generated according to the first data of multiple related peripheral devices by a computing unit; wherein the device type of the related peripheral device is the same as the device type of any peripheral device.

[0068] In the application, the detection method provided by step S401 to step S403 can refer to the relevant description in the above-mentioned step S301 to step S303, and will not be repeated here.

[0069] Step S404: Control a sending interface of any peripheral device to send first analog data, and receive the first analog data through a receiving interface.

[0070] In the application, the terminal device can send the first simulation data to any of the above peripheral devices, and transmit it to the terminal device via any of the above peripheral devices, so that the terminal device can receive the first simulation data according to the real transmission path. Specifically, any of the above peripheral devices can be controlled to send the first simulation data through the sending interface, and receive the first simulation data through the receiving interface. While simulating the real transmission path, by using the first simulation data instead of the first data, the data acquisition unit in the peripheral device can be virtualized, avoiding inaccurate first data due to failure of the data acquisition unit, and improving detection accuracy.

[0071] Step S405: Process the first simulation data by a computing unit to obtain corresponding second simulation data.

[0072] In the application, the detection method provided in step S405 can refer to the relevant description in the above step S304, which will not be repeated here.

[0073] Step S406: If the second simulation data is normal, determine that a data acquisition unit of any peripheral device is faulty;

[0074] Step S407: If the second simulation data is abnormal, determine that a sending interface, a receiving interface or a computing unit of any peripheral device is faulty.

[0075] In the application, when the first analog data is transmitted using a real sending interface and receiving interface, the specific faulty component can be judged according to whether the second analog data is abnormal. Specifically, when the second analog data is normal, it means that the second analog data can be transmitted normally through the sending interface of any of the above peripheral devices and the receiving interface of the terminal device, and the operation unit can process the first analog data normally, then it can be determined that the data acquisition unit of any of the above peripheral devices is faulty;

[0076] When the second simulation data is abnormal, it means that the simulation data cannot be transmitted normally through the sending interface of any of the above-mentioned peripheral devices and the receiving interface of the terminal device, or the computing unit cannot process the first simulation data normally. It can be determined that the sending interface, receiving interface or computing unit of any of the peripheral devices is faulty.

[0077] In one embodiment, before step S406, the method further includes:

[0078] Comparing the second simulation data with the current standard value of the second data to determine the dispersion of the second simulation data;

[0079] When the discreteness of the second simulation data is greater than a preset discreteness, determining that the second simulation data is abnormal;

[0080] When the discreteness of the second simulation data is not greater than the preset discreteness, it is determined that the second simulation data is normal.

[0081] In the application, the method for obtaining the current standard value of the second data and the method for comparing the second simulation data with the current standard value can refer to the relevant description in the above step S303, which will not be repeated here.

[0082] In the application, the first simulation data is sent through the real interface of the peripheral device and the terminal device, and the specific faulty component can be determined according to whether the second simulation data is abnormal, so as to detect the hardware in a targeted manner, thereby improving the accuracy of the detection.

[0083] like Figure 5 As shown, in one embodiment, based on Figure 3 In the corresponding embodiment, the receiving interface of the terminal device is connected to the sending interface of each peripheral device respectively, and the peripheral device collects the first data through the data collection unit. The embodiment includes the following steps S501 to S507:

[0084] Step S501, receiving first data sent by at least one peripheral device;

[0085] Step S502: Process the first data of any peripheral device through a computing unit to obtain corresponding second data;

[0086] Step S503: if the second data is determined to be abnormal based on the current standard value of the second data, generating first simulation data according to the first data of a plurality of related peripheral devices through a computing unit; wherein the device type of the related peripheral device is the same as the device type of any one of the peripheral devices;

[0087] In the application, the detection method provided by steps S501 to S503 can refer to the relevant description in the above steps S301 to S303, which will not be repeated here.

[0088] Step S504: receiving first simulation data sent by any peripheral device through a virtual interface; the virtual interface includes a first virtual interface corresponding to a receiving interface, and / or a second virtual interface corresponding to a sending interface of any peripheral device.

[0089] In the application, after the terminal device generates the first simulation data, the first simulation data can also be transmitted by calling a virtual interface, and the virtual interface can virtualize the real interface and perform the data transmission function instead of the real interface. The called virtual interface may include a first virtual interface corresponding to the receiving interface and / or a second virtual interface corresponding to the sending interface of any peripheral device.

[0090] In the application, the terminal device can read the interface type and technical specifications of the receiving interface and the above-mentioned sending interface to generate the corresponding first virtual interface and second virtual interface. Specifically, taking the receiving interface as an example, if the receiving interface adopts an IO interface, a first virtual interface with the same technical specifications as the above-mentioned IO interface can be generated; or if the receiving interface adopts a serial interface, a first virtual interface with the same technical specifications as the above-mentioned serial interface can be generated; and according to the interface type, a communication protocol matching the interface type is configured for the first virtual interface, so that the first virtual interface has the same communication function as the corresponding receiving interface. The first virtual interface of the terminal device can be encapsulated into one or more SDKs (Software Development Kit, software development kit), so that the terminal device can directly call the first virtual interface through the SDK and perform specified actions. The generation process of the second virtual interface can refer to the generation process of the above-mentioned first virtual interface, which will not be repeated here.

[0091] In applications, the terminal device can switch any interface between the terminal device and the peripheral device to use a real interface or a virtual interface for communication according to actual detection needs. Specifically, it can include the following three combinations to call the virtual interface:

[0092] 1. Control a sending interface of any peripheral device to send first analog data, and receive the first analog data through a first virtual interface;

[0093] 2. Control the second virtual interface to send the first simulation data, and receive the first simulation data through the receiving interface;

[0094] 3. Control the second virtual interface to send the first simulation data, and receive the first simulation data through the first virtual interface.

[0095] In one embodiment, step S504 further includes:

[0096] When the first simulation data is transmitted through the virtual interface, the receiving interface and / or the sending interface corresponding to the virtual interface is shielded.

[0097] In an application, when the first simulation data is transmitted through a virtual interface, the receiving interface / transmitting interface corresponding to the virtual interface may be shielded to prevent the real receiving interface / transmitting interface from transmitting the first data and affecting the detection accuracy during the detection process.

[0098] Step S505: Process the first simulation data by a computing unit to obtain corresponding second simulation data.

[0099] In the application, the detection method provided in step S505 can refer to the relevant description in the above step S304, which will not be repeated here.

[0100] Step S506: Determine the fault existing in the terminal device or any peripheral device according to the data analysis result of the second simulation data and the called virtual interface.

[0101] In the application, different fault conditions can be analyzed for different data analysis results and different virtual interfaces. The specific fault determination method is as follows (refer to Table 1):

[0102] 1. If the second simulation data is normal, and the called virtual interface includes the first virtual interface, it means that the sending interface and the computing unit are normal, and it can be determined that the data acquisition unit or the receiving interface of any of the above peripheral devices is faulty;

[0103] 2. If the second simulation data is normal, and the called virtual interface includes the second virtual interface, it means that the receiving interface and the computing unit are normal, and it can be determined that the sending interface or the data acquisition unit of any peripheral device is faulty;

[0104] 3. If the second simulation data is normal, and the called virtual interface includes the first virtual interface and the second virtual interface, it means that the operation unit is normal, and it can be determined that the data acquisition unit, the sending interface of any peripheral device or the receiving interface of the terminal device is faulty;

[0105] 4. If the second simulation data is abnormal, and the called virtual interface includes the first virtual interface, under the condition that the first simulation data is normal, it can be determined that the sending interface or the computing unit of any peripheral device is faulty;

[0106] 5. If the second simulation data is abnormal, and the called virtual interface includes the second virtual interface, it can be determined that the receiving interface or the computing unit is faulty while ensuring that the first simulation data is normal;

[0107] 6. If the second simulation data is abnormal, and the called virtual interface includes the first virtual interface and the second virtual interface, it can be determined that the operation unit is faulty while ensuring that the first simulation data is normal.

[0108]

[0109] Table 1

[0110] It should be noted that the inspector can select any fault determination method to determine or troubleshoot the faulty component according to actual needs, and can also determine or troubleshoot the faulty component in combination with the above steps S406 and S407. Specifically, the suspected faulty component can be preliminarily determined through the above steps S406 and S407, and then the faulty component can be further accurately determined in combination with the fault determination method shown in Table 1.

[0111] For example, after determining through step S407 that the sending interface, receiving interface or computing unit of any peripheral device is faulty, fault determination method 4 can be used to determine whether the sending interface or computing unit is faulty. If not, it indicates that the receiving interface is faulty. If so, it can be further determined through fault determination method 6 whether the computing unit is faulty. If so, it indicates that the computing unit is faulty. If not, it indicates that the sending interface is faulty.

[0112] In the application, by generating a virtual interface corresponding to the real interface for detection, suspicious components can be checked in a targeted manner, which improves the detection efficiency and the accuracy of locating faults, while improving the flexibility of detection to adapt to different fault conditions for detection.

[0113] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0114] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned various detection method embodiments can be implemented.

[0115] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0116] Those of ordinary skill in the art will appreciate that the modules 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 this application.

[0117] In the embodiments provided in the present application, it should be understood that the disclosed terminal device and method can be implemented in other ways. For example, the terminal device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0118] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A detection method, characterized in that: Applied to a terminal device, the terminal device is connected to at least one peripheral device, the terminal device includes a computing unit, and the method includes: receiving first data sent by at least one peripheral device; Processing the first data of any peripheral device by the computing unit to obtain corresponding second data; If the second data is determined to be abnormal based on the current standard value of the second data, generating first simulation data according to the first data of a plurality of related peripheral devices through the computing unit; wherein the device type of the related peripheral devices is the same as the device type of any one of the peripheral devices; Processing the first simulation data by the computing unit to obtain corresponding second simulation data; The second simulation data is analyzed to determine a fault existing in the terminal device or any one of the peripheral devices.

2. The detection method according to claim 1, characterized in that If it is determined that the second data is abnormal based on the current standard value of the second data, before generating the first simulation data according to the first data of the plurality of related peripheral devices by the operation unit, the method further includes: Processing the first data of the plurality of related peripheral devices by the computing unit to obtain the corresponding plurality of second data; Screening all the second data based on the first preset range to obtain at least one second standard data; the all the second data include a plurality of second data corresponding to the plurality of related peripheral devices, and second data corresponding to any one of the peripheral devices; Determining a current standard value of the second data according to the at least one second standard data; Comparing the second data corresponding to any one of the peripheral devices with the current standard value to determine the discreteness of the corresponding second data; When the discreteness of the second data corresponding to any one of the peripheral devices is greater than a preset discreteness, it is determined that the corresponding second data is abnormal.

3. The detection method according to claim 1, characterized in that If it is determined that the second data is abnormal based on the current standard value of the second data, generating first simulation data according to the first data of a plurality of related peripheral devices by the operation unit includes: If the second data is determined to be abnormal based on the current standard value of the second data, the first data of multiple related peripheral devices are screened by the computing unit to obtain multiple first standard data; wherein the difference between any two first standard data is within a second preset range; First simulation data is generated according to the plurality of first standard data.

4. The detection method according to any one of claims 1 to 3, characterized in that: The receiving interface of the terminal device is connected to the sending interface of each peripheral device respectively, and the peripheral device collects first data through a data collection unit. The method further includes: Controlling a sending interface of any one of the peripheral devices to send the first analog data, and receiving the first analog data through the receiving interface; The performing data analysis on the second simulation data to determine a fault existing in the terminal device or any one of the peripheral devices includes: If the second simulation data is normal, determining that the data acquisition unit of any one of the peripheral devices is faulty; If the second simulation data is abnormal, it is determined that the sending interface, the receiving interface or the computing unit of any one of the peripheral devices is faulty.

5. The detection method according to claim 4, characterized in that: The performing data analysis on the second simulation data includes: comparing the second simulation data with a current standard value of the second data to determine a dispersion of the second simulation data; When the discreteness of the second simulation data is greater than a preset discreteness, determining that the second simulation data is abnormal; When the discreteness of the second simulation data is not greater than a preset discreteness, it is determined that the second simulation data is normal.

6. The detection method according to any one of claims 1 to 3, characterized in that: The receiving interface of the terminal device is connected to the sending interface of each peripheral device respectively, and the peripheral device collects first data through a data collection unit. The method further includes: Receiving the first simulation data sent by any one of the peripheral devices through a virtual interface; the virtual interface includes a first virtual interface corresponding to the receiving interface, and / or a second virtual interface corresponding to the sending interface of any one of the peripheral devices; The performing data analysis on the second simulation data to determine a fault existing in the terminal device or any one of the peripheral devices includes: According to the data analysis result of the second simulation data and the called virtual interface, a fault existing in the terminal device or any one of the peripheral devices is determined.

7. The detection method according to claim 6, characterized in that The receiving, through the virtual interface, the first analog data sent by any one of the peripheral devices comprises: Controlling a sending interface of any one of the peripheral devices to send the first simulation data, and receiving the first simulation data through the first virtual interface; Alternatively, controlling the second virtual interface to send the first simulation data, and receiving the first simulation data through the receiving interface; Alternatively, the second virtual interface is controlled to send the first simulation data, and the first simulation data is received through the first virtual interface.

8. The detection method according to claim 7, characterized in that The determining, according to the data analysis result of the second simulation data and the called virtual interface, a fault existing in the terminal device or any one of the peripheral devices, comprises: If the second simulation data is normal, and the called virtual interface includes the first virtual interface, determining that the data acquisition unit or the receiving interface of any one of the peripheral devices is faulty; If the second simulation data is normal, and the called virtual interface includes the second virtual interface, determining that the sending interface or the data acquisition unit of any one of the peripheral devices is faulty; If the second simulation data is normal, and the called virtual interface includes the first virtual interface and the second virtual interface, it is determined that the data acquisition unit of any one of the peripheral devices, the sending interface of any one of the peripheral devices, or the receiving interface is faulty; If the second simulation data is abnormal, and the called virtual interface includes the first virtual interface, determining that the sending interface of any one of the peripheral devices or the computing unit is faulty; If the second simulation data is abnormal, and the called virtual interface includes the second virtual interface, it is determined that the receiving interface or the computing unit is faulty; If the second simulation data is abnormal, and the called virtual interface includes a first virtual interface and a second virtual interface, it is determined that the operation unit is faulty.

9. The detection method according to claim 6, characterized in that: The method further comprises: When the first simulation data is transmitted through the virtual interface, the receiving interface and / or the sending interface corresponding to the virtual interface is shielded.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the detection method according to any one of claims 1 to 9 are implemented.