Data analysis method, device and electronic equipment
By using the replication technology of attribute tags and configuration parameters in the sensor, combined with preset detection methods, the accuracy and timeliness of sensor abnormal working state detection are solved, and the working state of the sensor is realized without relying on network signals. Accurate analysis.
Patent Information
- Application Number
- CN202210131905.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-14
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2042-02-14
AI Technical Summary
When detecting abnormal working state of the sensor, the prior art depends on the network signal strength, resulting in inaccurate detection and inability to be timely, and the analysis based on communication data is too single, so it is impossible to accurately judge the working state of the sensor.
Classify the chip through attribute tags, copy the configuration parameters of the first chip to the second chip, and connect it to the preset circuit board, and analyze the electrical signals of the sensor using preset detection methods to ensure that it does not rely on network signals. Accurately determine the working status of the sensor under the circumstances.
It realizes accurate detection of the working status of the sensor, improves detection efficiency and accuracy, does not affect the overall communication of the circuit board, and is suitable for the analysis of all circuit boards.
Smart Images

Figure CN114548247B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical fields of Internet of Things and Industrial Internet, and in particular to a data analysis method, device and electronic equipment. Background Art
[0002] With the development of the industrial Internet, the market demand for technological automation and intelligence is increasing, and the types and number of sensors used to meet this demand will also increase. All sensors are connected to a main system device. When a sensor is attacked, it is often accompanied by an attack on the sensor of the corresponding type. The attacked sensor will be in an abnormal working state.
[0003] In order to detect whether the sensor is in an abnormal working state, the current method is to detect whether the communication data generated by each sensor on the main system device contains abnormal communication data. When it is determined that the communication data generated by the sensor contains abnormal communication data, it is determined that the sensor is in an abnormal working state. However, the communication data of the sensor depends on the strength of the network signal. When the network signal is unstable, if the sensor is in an abnormal working state, the main system device will not be able to obtain the communication data of the sensor in time, resulting in the inability to detect the sensor in an abnormal working state in time. In addition, the method of analyzing the working state of the sensor based on the communication data of the sensor is too simple. When the sensor is in a working state, the communication data is only part of the data generated by the sensor. Therefore, analyzing the working state of the sensor based on the communication data of the sensor will lead to inaccurate analysis of the working state of the sensor. Summary of the invention
[0004] The present application provides a method, device and electronic device for data analysis, which classify chips through attribute labels so that the main system device to which each sensor is connected can analyze the electrical signals of multiple types of sensors at the same time, and configure the configuration parameters of the first chip on the second chip, and connect the second chip to a preset circuit board. In the process of detecting the electrical signal of the sensor, when the sensor fails or is attacked, the abnormal electrical signal of the sensor can be determined in time, thereby ensuring the accuracy of the working state of the sensor determined based on the electrical signal. At the same time, it does not affect the overall communication of the preset circuit board, and can be applied to the analysis work of all circuit boards.
[0005] In a first aspect, the present application provides a data analysis method, the method comprising:
[0006] Obtaining configuration parameters and an attribute tag of a first chip, wherein the attribute tag includes a time when the configuration parameters are obtained and a name of a sensor to which the first chip belongs;
[0007] When the configuration parameters are configured on the second chip, the second chip is controlled to be connected to a preset circuit board, and electrical signals of various sensors corresponding to the second chip are collected based on the attribute tags;
[0008] Each electrical signal is detected by a preset detection method to obtain a detection result of each electrical signal, and the working state of the sensor corresponding to each electrical signal is determined based on the detection result.
[0009] In a possible design, obtaining configuration parameters of the first chip includes:
[0010] Extracting usage configuration data corresponding to the first chip to obtain configuration parameters of the first chip; or
[0011] Based on all pin parameters of the first chip, configuration parameters of the first chip are obtained.
[0012] In a possible design, obtaining configuration parameters of the first chip based on all pin parameters of the first chip includes:
[0013] Sending communication data to the pin of at least one other chip based on the pin of the first chip;
[0014] When it is determined that the communication reply data returned by the other chip is consistent with the preset reply data of the pin of the first chip, the pin parameters of the pin are determined, wherein the pin parameters include pin voltage, bit rate, and pin type;
[0015] Traversing all pins of the first chip in sequence to obtain pin parameters corresponding to each pin;
[0016] Based on the pin parameters corresponding to each pin, configuration parameters of the first chip are obtained, wherein the configuration parameters are a set of all pin parameters.
[0017] In a possible design, each electrical signal is detected by a preset detection method to obtain a detection result of each electrical signal, including:
[0018] Extracting the digital sequences corresponding to the respective electrical signals, and detecting whether the respective digital sequences are in the preset digital sequence set;
[0019] When the preset digital sequence set does not include a digital sequence, determining that the detection result of the electrical signal corresponding to the digital sequence is an abnormal electrical signal; or
[0020] When the preset digital sequence set includes a digital sequence, it is determined that the detection result of the electrical signal corresponding to the digital sequence is a normal electrical signal.
[0021] In a possible design, each electrical signal is detected by a preset detection method to obtain a detection result of each electrical signal, which also includes:
[0022] Calculate the bit rates corresponding to the respective electrical signals, and detect whether the respective bit rates are within a preset range, wherein the bit rates represent the number of bits transmitted per unit time;
[0023] When it is determined that the bit rate is within the preset range, treating the electrical signal corresponding to the bit rate as a normal electrical signal; or
[0024] When it is determined that the bit rate is not within the preset range, the electrical signal corresponding to the bit rate is taken as an abnormal electrical signal.
[0025] In a possible design, determining the working state of the sensor corresponding to each electrical signal based on the detection result includes:
[0026] When the electrical signal is a normal electrical signal, determining that the working state of the sensor corresponding to the electrical signal is a normal working state; or
[0027] When the electrical signal is an abnormal electrical signal, it is determined that the working state of the sensor corresponding to the electrical signal is an abnormal working state.
[0028] In a second aspect, the present application provides a data analysis device, the device comprising:
[0029] An acquisition module, used to obtain configuration parameters and attribute tags of the first chip;
[0030] an acquisition module, configured to control the second chip to access a preset circuit board when the configuration parameters are configured on the second chip, and to acquire electrical signals of various sensors corresponding to the second chip based on the attribute tags;
[0031] The determination module is used to detect each electrical signal using a preset detection method, obtain the detection result of each electrical signal, and determine the working state of the sensor corresponding to each electrical signal based on the detection result.
[0032] In a possible design, the acquisition module is specifically used to extract the usage configuration data corresponding to the first chip, obtain the configuration parameters of the first chip, and obtain the configuration parameters of the first chip based on all pin parameters of the first chip.
[0033] In a possible design, the acquisition module is also used to send communication data to the pin of at least one other chip based on the pin of the first chip, and when it is determined that the communication reply data returned by the other chip is consistent with the preset reply data of the pin of the first chip, determine the pin parameters of the pin, traverse all the pins of the first chip in turn, obtain the pin parameters corresponding to each pin, and obtain the configuration parameters of the first chip based on the pin parameters corresponding to each pin, wherein the configuration parameters are a set of all pin parameters.
[0034] In one possible design, the determination module is specifically used to extract the digital sequences corresponding to each electrical signal, detect whether each digital sequence is in a preset digital sequence set, and when the preset digital sequence set does not contain the digital sequence, determine that the detection result of the electrical signal corresponding to the digital sequence is an abnormal electrical signal, or when the preset digital sequence set contains the digital sequence, determine that the detection result of the electrical signal corresponding to the digital sequence is a normal electrical signal.
[0035] In a possible design, the determination module is also used to calculate the bit rate corresponding to each electrical signal, detect whether each bit rate is within a preset range, and when it is determined that the bit rate is within the preset range, treat the electrical signal corresponding to the bit rate as a normal electrical signal; or when it is determined that the bit rate is not within the preset range, treat the electrical signal corresponding to the bit rate as an abnormal electrical signal.
[0036] In one possible design, the determination module is also used to determine that the working state of the sensor corresponding to the electrical signal is a normal working state when the electrical signal is a normal electrical signal, or to determine that the working state of the sensor corresponding to the electrical signal is an abnormal working state when the electrical signal is an abnormal electrical signal.
[0037] In a third aspect, the present application provides an electronic device, including:
[0038] Memory, used to store computer programs;
[0039] The processor is used to implement the above-mentioned data analysis method steps when executing the computer program stored in the memory.
[0040] In a fourth aspect, a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned data analysis method steps are implemented.
[0041] For each aspect from the first to the fourth aspect and the technical effects that may be achieved by each aspect, please refer to the above description of the technical effects that can be achieved by the first aspect or various possible schemes in the first aspect, and no further details will be given here. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 A flowchart of the steps of a data analysis method provided in this application;
[0043] Figure 2 A schematic diagram of the structure of a data analysis device provided in this application;
[0044] Figure 3 A schematic diagram of the structure of an electronic device provided in this application. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The specific operating methods in the method embodiments can also be applied to device embodiments or system embodiments. It should be noted that in the description of the present application, "multiple" is understood as "at least two". "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A is connected to B, which can represent: A is directly connected to B and A is connected to B through C. In addition, in the description of the present application, words such as "first" and "second" are only used to distinguish the purpose of description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.
[0046] In the previous technology, in order to detect whether a sensor is in an abnormal working state, the method adopted is to detect whether the communication data generated by each sensor on the main system device contains abnormal communication data. When it is determined that the communication data generated by the sensor contains abnormal communication data, it can be determined that the sensor is in an abnormal working state. However, the detection of the communication data of the sensor depends on the strength of the network signal. When the network signal is unstable, if the sensor is in an abnormal working state, the main system device will not be able to obtain the communication data of the sensor in time, resulting in the inability to detect the sensor in an abnormal working state in time. Moreover, when the sensor is in a working state, the communication data is only part of the data generated by the sensor. Therefore, analyzing the working state of the sensor based on the communication data of the sensor will lead to inaccurate analysis of the working state of the sensor.
[0047] In order to solve the above problems, the embodiments of the present application provide a data analysis method for accurately analyzing the working state of the sensor, so that the detection result of the working state of the sensor is determined independently of the network signal. The method and the device described in the embodiments of the present application are based on the same technical concept. Since the principles of the problems solved by the method and the device are similar, the embodiments of the device and the method can refer to each other, and the repeated parts will not be repeated.
[0048] The embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0049] Reference Figure 1 The present application provides a data analysis method, which can ensure the accuracy of the working state of the detected sensor, and can detect the working state of the sensor without relying on network signals. The implementation process of the method is as follows:
[0050] Step S1: Obtain configuration parameters and attribute tags of a first chip.
[0051] The embodiment of the present application determines the working state of the sensor through the electrical signal of the sensor. In order to be able to detect the abnormal electrical signal of the sensor in time when the sensor fails in the working state or is attacked during the detection of the electrical signal of the sensor, it is necessary to distinguish the detection circuit from the sensor circuit. The first chip is in the sensor. Therefore, it is necessary to copy the configuration parameters of the first chip to the second chip. First, it is necessary to obtain the configuration parameters of the first chip. There are two ways to obtain the first configuration parameters. The specific ways are as follows:
[0052] Method 1: The main system device directly reads the usage configuration data corresponding to the first chip, and then obtains the configuration parameters of the first chip from the usage configuration data.
[0053] Method 2: obtaining configuration parameters of the first chip based on pin parameters of each pin of the first chip.
[0054] In order to obtain the pin parameters of each pin of the first chip, taking the pin parameters of a pin in the first chip as an example, the pin needs to send communication data to the pin of at least one other chip. After the pin of the other chip receives the communication data sent by the first chip, it will generate a communication reply data based on the communication data, and then send the communication reply data to the pin of the first chip. The pin will compare the communication reply data with the preset reply data. When the communication reply data is consistent with the preset reply data, the pin of the first chip can parse the pin parameters from the communication reply data. The pin parameters include pin voltage, bit rate, and pin type. The bit rate is the number of bits transmitted per unit time. Repeating the steps described above can obtain the pin parameters of each pin of the first chip, and then generate the configuration parameters of the first chip based on all the pin parameters of the first chip. The configuration parameters are a collection of all pin parameters.
[0055] It should be further explained that, after the above-mentioned description of the acquisition of configuration parameters, the embodiments of the present application can also realize the detection of multiple types of sensors at the same time. Since each type of sensor is involved, it is necessary to distinguish the various types of sensors with attribute labels. The attribute label can be the time for obtaining the configuration parameters of the first chip and the name of the sensor to which the first chip belongs.
[0056] Step S2: When the configuration parameters are configured on the second chip, the second chip is controlled to be connected to a preset circuit board, and the electrical signals of the sensors corresponding to the second chip are collected based on the attribute tags.
[0057] In the above description, the configuration parameters and attribute labels of the first chip are obtained. When detecting the electrical signal of the sensor, in order to avoid that the detection of the electrical signal of the sensor is not affected by the fault when the sensor fails, the second chip for detecting the electrical signal needs to be connected to the preset circuit board, and then the second chip and the preset circuit board are connected to the sensor or the main system device together. The second chip is connected to the preset circuit board by flying wires based on the reproducible physical characteristics of the electrical signal. Other methods of connecting the second chip to the preset circuit board will not be specifically described here, and this application describes a data analysis method. Therefore, the process of connecting the second chip to the preset circuit board will not be specifically described here.
[0058] After the second chip and the preset circuit board are connected to the sensor, the electrical signal of the sensor needs to be collected based on the attribute tag. Since the attribute tag includes the time of obtaining the configuration parameters of the first chip and the name of the sensor to which the first chip belongs, in order to avoid randomly collecting electrical signals from each sensor during the process of collecting the electrical signals of the sensor, the time and sensor name in the attribute tag are used for classification. The specific classification is shown in Table 1:
[0059]
[0060]
[0061] Table 1
[0062] In the above Table 1, only the electrical signals collected by the four sensors at three different time nodes are described. For each sensor, the electrical signals collected at three different time nodes may be the same or different, depending on the actual situation, and the time for collecting the electrical signals can be adjusted according to the actual situation. The type and number of sensors also depend on the actual situation. The electrical signals collected by other sensors at different time nodes refer to the examples of any sensor in Table 1, which will not be elaborated here.
[0063] Through the above method, in the process of collecting the electrical signals of the sensor, the electrical signals are classified based on the time dimension and the name of each sensor. When an abnormal electrical signal is determined, a certain time node and a certain sensor can be quickly determined, and then the working status of the sensor can be quickly determined.
[0064] Step S3: Detect each electrical signal using a preset detection method to obtain a detection result of each electrical signal, and determine the working state of the sensor corresponding to each electrical signal based on the detection result.
[0065] The above describes how to collect the electrical signals of the sensor. Here we will explain how to collect the electrical signals of the sensor. To collect the electrical signals of the sensor, it is necessary to ensure that the sensor is in a working state. After confirming that the sensor is in a working state, the specific analysis method of the electrical signals of the sensor is as follows:
[0066] Method 1: A digital sequence corresponding to the electrical signal is parsed from the collected electrical signal, for example: 101010 represents a high level, and 0 represents a low level. After obtaining the digital sequence of the electrical signal, the digital sequence is matched with a preset digital sequence in a preset digital sequence set. When the matched digital sequence is consistent with the preset digital sequence, the electrical signal corresponding to the digital sequence is regarded as a normal electrical signal. When the matched digital sequence is inconsistent with the preset digital sequence, the electrical signal corresponding to the digital sequence is regarded as an abnormal electrical signal.
[0067] Method 2: Calculate the bit rate of each electrical signal. Since the method for calculating the bit rate is a technology well known to those skilled in the art, the method for calculating the bit rate is not described here. For example, the bit rate is 115200=115200 (bits / second). After determining the bit rate of each electrical signal, detect whether each bit rate is within a preset range. When the bit rate is within the preset range, the electrical signal corresponding to the bit rate is regarded as a normal electrical signal. When the bit rate is outside the preset range, the electrical signal corresponding to the bit rate is regarded as an abnormal electrical signal.
[0068] Based on the above description of the electrical signal of the sensor, it can be known that the electrical signal of the sensor has two detection results, one is a normal electrical signal, and the other is an abnormal electrical signal. When the detection result of the electrical signal is determined, the working state of the sensor can be determined. When the electrical signal is a normal electrical signal, the sensor is in a normal working state. When the electrical signal is an abnormal electrical signal, the sensor is in an abnormal working state.
[0069] Through the above description, the configuration parameters of the first chip are configured in the second chip, and the second chip is connected to the sensor together with the preset circuit board to detect the electrical signal of the sensor, ensuring that in the process of detecting the electrical signal of the sensor, it is not affected by the working state of the sensor, thereby improving the efficiency of detecting the working state of the sensor. In addition, in the process of detecting the working state of the sensor, the electrical signal is collected based on the classification of the attribute label. When it is determined that the sensor is in an abnormal working state, a specific sensor can be quickly determined, thereby improving the accuracy of detecting the working state of the sensor.
[0070] Based on the same inventive concept, a data analysis device is also provided in the embodiment of the present application. The thread-bound device is used to implement the function of a data analysis method. Figure 2 , the device comprises:
[0071] An acquisition module 201 is used to obtain configuration parameters and attribute tags of a first chip;
[0072] The acquisition module 202 is used to control the second chip to access a preset circuit board when the configuration parameters are configured on the second chip, and to acquire electrical signals of each sensor corresponding to the second chip based on the attribute tag;
[0073] The determination module 203 is used to detect each electrical signal in a preset detection manner, obtain the detection result of each electrical signal, and determine the working state of the sensor corresponding to each electrical signal based on the detection result.
[0074] In a possible design, the acquisition module 201 is specifically used to extract the usage configuration data corresponding to the first chip, obtain the configuration parameters of the first chip, and obtain the configuration parameters of the first chip based on all pin parameters of the first chip.
[0075] In a possible design, the acquisition module 201 is also used to send communication data to the pin of at least one other chip based on the pin of the first chip, and when it is determined that the communication reply data returned by the other chip is consistent with the preset reply data of the pin of the first chip, determine the pin parameters of the pin, traverse all the pins of the first chip in turn, obtain the pin parameters corresponding to each pin, and obtain the configuration parameters of the first chip based on the pin parameters corresponding to each pin, wherein the configuration parameters are a set of all pin parameters.
[0076] In one possible design, the determination module 203 is specifically used to extract the digital sequences corresponding to each electrical signal, detect whether each digital sequence is in a preset digital sequence set, and when the preset digital sequence set does not contain the digital sequence, determine that the detection result of the electrical signal corresponding to the digital sequence is an abnormal electrical signal, or when the preset digital sequence set contains the digital sequence, determine that the detection result of the electrical signal corresponding to the digital sequence is a normal electrical signal.
[0077] In a possible design, the determination module 203 is also used to calculate the bit rate corresponding to each electrical signal, detect whether each bit rate is within a preset range, and when it is determined that the bit rate is within the preset range, treat the electrical signal corresponding to the bit rate as a normal electrical signal; or when it is determined that the bit rate is not within the preset range, treat the electrical signal corresponding to the bit rate as an abnormal electrical signal.
[0078] In one possible design, the determination module is also used to determine that the working state of the sensor corresponding to the electrical signal is a normal working state when the electrical signal is a normal electrical signal, or to determine that the working state of the sensor corresponding to the electrical signal is an abnormal working state when the electrical signal is an abnormal electrical signal.
[0079] Based on the same inventive concept, an electronic device is also provided in the embodiment of the present application, and the electronic device can realize the functions of the aforementioned data analysis device, referring to Figure 3 , the electronic device comprises:
[0080] At least one processor 301, and a memory 302 connected to the at least one processor 301. The specific connection medium between the processor 301 and the memory 302 is not limited in the embodiment of the present application. Figure 3 In the example, the processor 301 and the memory 302 are connected via the bus 300. The bus 300 is connected to the memory 302 via the bus 300. Figure 3 The bus 300 is represented by a bold line, and the connection between other components is only for schematic illustration and is not intended to be limiting. The bus 300 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. Alternatively, the processor 301 can also be called a controller, and there is no limitation on the name.
[0081] In the embodiment of the present application, the memory 302 stores instructions that can be executed by at least one processor 301. The at least one processor 301 can execute a data analysis method discussed above by executing the instructions stored in the memory 302. The processor 301 can implement Figure 2 The functions of each module in the device shown.
[0082] Among them, the processor 301 is the control center of the device, and can use various interfaces and lines to connect the various parts of the entire control device. By running or executing instructions stored in the memory 302 and calling data stored in the memory 302, the various functions of the device and process data, the device can be monitored as a whole.
[0083] In one possible design, the processor 301 may include one or more processing units, and the processor 301 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 301. In some embodiments, the processor 301 and the memory 302 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on separate chips.
[0084] Processor 301 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of a data analysis method disclosed in conjunction with the embodiments of the present application can be directly embodied as a hardware processor to be executed, or a combination of hardware and software modules in the processor can be executed.
[0085] The memory 302 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 302 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 302 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 302 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0086] By programming the processor 301, the code corresponding to the data analysis method described in the above embodiment can be fixed into the chip, so that the chip can execute the code when running. Figure 1 The step of a data analysis in the embodiment shown is as follows: How to design and program the processor 301 is a technique known to those skilled in the art and will not be described in detail here.
[0087] Based on the same inventive concept, an embodiment of the present application further provides a storage medium, which stores computer instructions. When the computer instructions are executed on a computer, the computer executes a data analysis method discussed above.
[0088] In some possible implementations, various aspects of a data analysis method provided by the present application may also be implemented in the form of a program product, which includes program code. When the program product is run on an apparatus, the program code is used to enable the control device to execute the steps of a data analysis method according to various exemplary implementations of the present application described above in this specification.
[0089] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0090] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0091] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0092] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0093] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A data analysis method, characterized in that: include: Obtaining configuration parameters and an attribute tag of a first chip, wherein the attribute tag includes a time when the configuration parameters are obtained and a name of a sensor to which the first chip belongs; configuring the configuration parameters of the first chip in the second chip, controlling the second chip to be connected to a preset circuit board, connecting the second chip and the preset circuit board together to the sensor, and collecting each electrical signal of the sensor corresponding to the second chip based on the attribute tag; A preset detection method is used to detect each electrical signal to obtain a detection result of each electrical signal, and a working state of a sensor corresponding to each electrical signal is determined based on the detection result, wherein the preset detection method includes: extracting a digital sequence corresponding to each electrical signal, detecting whether each digital sequence is in a preset digital sequence set, and calculating a bit rate corresponding to each electrical signal, and detecting whether each bit rate is within a preset range.
2. The method according to claim 1, characterized in that The configuration parameters of the first chip are obtained, including: Extracting usage configuration data corresponding to the first chip to obtain configuration parameters of the first chip; or Based on all pin parameters of the first chip, configuration parameters of the first chip are obtained.
3. The method according to claim 2, characterized in that Based on all pin parameters of the first chip, obtaining configuration parameters of the first chip includes: Sending communication data to the pin of at least one other chip based on the pin of the first chip; When it is determined that the communication reply data returned by the other chip is consistent with the preset reply data of the pin of the first chip, the pin parameters of the pin are determined, wherein the pin parameters include pin voltage, bit rate, and pin type; Traversing all pins of the first chip in sequence to obtain pin parameters corresponding to each pin; Based on the pin parameters corresponding to each pin, configuration parameters of the first chip are obtained, wherein the configuration parameters are a set of all pin parameters.
4. The method according to claim 1, characterized in that Each electrical signal is detected using a preset detection method to obtain the detection results of each electrical signal, including: Extracting the digital sequences corresponding to the respective electrical signals, and detecting whether the respective digital sequences are in the preset digital sequence set; When the preset digital sequence set does not include a digital sequence, determining that the detection result of the electrical signal corresponding to the digital sequence is an abnormal electrical signal; or When the preset digital sequence set includes a digital sequence, it is determined that the detection result of the electrical signal corresponding to the digital sequence is a normal electrical signal.
5. The method according to claim 1, characterized in that Detecting each electrical signal using a preset detection method to obtain a detection result of each electrical signal also includes: Calculate the bit rates corresponding to the respective electrical signals, and detect whether the respective bit rates are within a preset range, wherein the bit rates represent the number of bits transmitted per unit time; When it is determined that the bit rate is within the preset range, treating the electrical signal corresponding to the bit rate as a normal electrical signal; or When it is determined that the bit rate is not within the preset range, the electrical signal corresponding to the bit rate is taken as an abnormal electrical signal.
6. The method according to claim 1, characterized in that And based on the detection results, the working states of the sensors corresponding to the respective electrical signals are determined, including: When the electrical signal is a normal electrical signal, determining that the working state of the sensor corresponding to the electrical signal is a normal working state; or When the electrical signal is an abnormal electrical signal, it is determined that the working state of the sensor corresponding to the electrical signal is an abnormal working state.
7. A data analysis device, characterized in that: include: An acquisition module, used for acquiring configuration parameters and attribute tags of the first chip, wherein the attribute tags include the time when the configuration parameters are acquired and the name of the sensor to which the first chip belongs; an acquisition module, configured to configure the configuration parameters of the first chip in the second chip, control the second chip to be connected to a preset circuit board, connect the second chip and the preset circuit board together to the sensor, and acquire each electrical signal of the sensor corresponding to the second chip based on the attribute tag; A determination module is used to detect each electrical signal using a preset detection method, obtain the detection results of each electrical signal, and determine the working state of the sensor corresponding to each electrical signal based on the detection results, wherein the preset detection method includes: extracting the digital sequences corresponding to each electrical signal, detecting whether each digital sequence is in a preset digital sequence set, and calculating the bit rates corresponding to each electrical signal, and detecting whether each bit rate is within a preset range.
8. The device according to claim 7, characterized in that The obtaining module is specifically used to extract the usage configuration data corresponding to the first chip, obtain the configuration parameters of the first chip, and obtain the configuration parameters of the first chip based on all pin parameters of the first chip.
9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 6 when executing the computer program stored in the memory.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 6 are implemented.
