CN113660119A - Internet of things terminal state data tracing method and system - Google Patents

Internet of things terminal state data tracing method and system Download PDF

Info

Publication number
CN113660119A
CN113660119A CN202110926442.9A CN202110926442A CN113660119A CN 113660119 A CN113660119 A CN 113660119A CN 202110926442 A CN202110926442 A CN 202110926442A CN 113660119 A CN113660119 A CN 113660119A
Authority
CN
China
Prior art keywords
data
internet
abnormal
storage queue
real
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110926442.9A
Other languages
Chinese (zh)
Inventor
徐培龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CHONGQING HEHANG TECHNOLOGY CO LTD
Original Assignee
CHONGQING HEHANG TECHNOLOGY CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CHONGQING HEHANG TECHNOLOGY CO LTD filed Critical CHONGQING HEHANG TECHNOLOGY CO LTD
Priority to CN202110926442.9A priority Critical patent/CN113660119A/en
Publication of CN113660119A publication Critical patent/CN113660119A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/6245Modifications to standard FIFO or LIFO
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computing Systems (AREA)
  • Medical Informatics (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method for tracing state data of an Internet of things terminal, which comprises the following steps: acquiring real-time state data of the terminal of the Internet of things; judging whether the real-time state data of the Internet of things terminal is abnormal, if so, extracting the real-time state data of each of N Internet of things terminals before and after the abnormal data to form an abnormal data packet and storing the abnormal data packet; extracting the mark information when the abnormal data packet is stored, and correspondingly storing the mark information and the abnormal data to form a query data packet; when the abnormal data packet is called, inquiring and calling the abnormal data packet according to the information contained in the inquiry data packet; the abnormal data and the state data before and after the abnormal data of the terminal of the Internet of things can be accurately obtained when the terminal of the Internet of things is abnormal, data support is provided for analyzing key data or sensitive data of the system of the Internet of things, consumption of network resources and storage resources caused by massive data can be effectively reduced, and the efficiency of data transmission, storage and follow-up data tracing is improved.

Description

Internet of things terminal state data tracing method and system
Technical Field
The invention relates to the field of Internet of things, in particular to a method and a system for tracing state data of an Internet of things terminal.
Background
With the rise of the interconnection of everything, more and more urban infrastructures, factory machine equipment, traffic facilities and household articles are organically connected together through an internet of things system, and remote monitoring and management are realized according to professional categories. After the controlled object is in an abnormal state or an accident, the user is very concerned about the abnormal state data or the monitoring data before and after the accident, and the abnormal state data or the monitoring data after the accident are used as the analysis basis of the abnormal state or the accident.
In the prior art, for the analysis of an abnormal state or an accident, all data of the internet of things terminal are often uploaded to a data center in real time, and after the controlled object is in the abnormal state or the accident, a user queries data before and after the time point according to the time point of the abnormal state or the accident to analyze, so that the tracing function of the monitoring data of the internet of things is realized. However, this method has the following drawbacks: because massive monitoring data of the internet of things are uploaded to the data center, huge loss is brought to network resources and storage resources, and when massive monitoring data of the internet of things which are not critical or sensitive are uploaded to the data center, great burden is brought to storage, arrangement and analysis, and meanwhile, great inconvenience is brought to a user for tracing the abnormal state or accident data of a controlled object.
Therefore, in order to solve the above technical problems, it is necessary to provide a new technical means.
Disclosure of Invention
In view of the above, the present invention provides a method and a system for tracing state data of an internet of things terminal, which can accurately obtain abnormal data of the internet of things terminal and state data before and after the abnormal data when the terminal of the internet of things is abnormal, provide accurate data support for analyzing key data or sensitive data of an internet of things system, effectively reduce consumption of network resources and storage resources due to massive data, and effectively improve efficiency of data transmission, storage and subsequent data tracing.
The invention provides a method for tracing state data of an Internet of things terminal, which comprises the following steps:
acquiring real-time state data of the terminal of the Internet of things;
judging whether the real-time state data of the Internet of things terminal is abnormal, if so, extracting the real-time state data of each of N Internet of things terminals before and after the abnormal data to form an abnormal data packet and storing the abnormal data packet;
extracting the mark information when the abnormal data packet is stored, and correspondingly storing the mark information and the abnormal data to form a query data packet;
and when the abnormal data packet is called, inquiring and calling the abnormal data packet according to the information contained in the inquiry data packet.
Further, an exception packet is formed according to the following method:
storing the acquired real-time data of the terminal of the Internet of things into a first storage queue, wherein the first storage queue accesses the data according to a first-in first-out principle and is provided with N real-time data storage spaces;
when the real-time state data of the Internet of things terminal is abnormal, storing the current abnormal data into a first storage queue, and writing the real-time state data of the Internet of things terminal extruded by the abnormal data in the first storage queue into a second storage queue;
the real-time state data of the terminal of the Internet of things after the current abnormal data is continuously written into the first storage queue and the real-time state data extruded from the first storage queue is written into the second storage queue;
judging whether the current abnormal data is extruded out of the first storage queue, if so, writing the abnormal data into the second storage queue, and sequentially writing all data in the first storage queue when the current abnormal data is extruded into the second storage queue and behind the current abnormal data;
and when the real-time state data of the internet of things terminal stored in the first storage queue when the current abnormal data is extruded is stored in the second storage queue, forming an abnormal data packet by the current abnormal data in the second storage queue and the real-time state data of N internet of things terminals before and after the current abnormal data.
Furthermore, the mark information when the abnormal data packet is stored is the first address and the last address of the abnormal data packet.
Further, the query data packet and the abnormal data packet are in different storage queues during storage.
Further, after the abnormal data packet is formed, the first address and the last address of the abnormal data packet are extracted, and the current abnormal data and the first address and the last address of the abnormal data packet are correspondingly stored in the third storage queue.
Correspondingly, the invention also provides an Internet of things terminal state data tracing system, which comprises a processor, a first memory and a second memory;
the processor is used for acquiring the real-time state data of the terminal of the Internet of things, judging whether the real-time state data of the terminal of the Internet of things is abnormal or not, and outputting alarm information when the real-time state data of the terminal of the Internet of things is abnormal;
the processor stores real-time state data of the terminal of the Internet of things into a first memory and a second memory;
the first memory is used for storing the real-time state data of the Internet of things terminal acquired by the processor, and the first processor follows a first-in first-out principle when accessing the data;
the second memory is provided with a state data storage queue and an alarm data storage queue, when the real-time state data of the Internet of things terminal is abnormal, 2N real-time state data before and after the current abnormal data and the current abnormal data form abnormal data packets to be stored in the state data storage queue, and the head address and the tail address of the abnormal data packets and the current abnormal data form inquiry data packets to be stored in the alarm data storage queue.
Further, an exception packet is formed according to the following method:
the processor stores the acquired real-time data of the terminal of the Internet of things into a first storage queue, wherein the first storage queue accesses the data according to a first-in first-out principle and is provided with N real-time data storage spaces;
when the processor judges that the real-time state data of the Internet of things terminal is abnormal, the current abnormal data is stored into a first storage queue, and then the real-time state data of the Internet of things terminal extruded by the abnormal data in the first storage queue is written into a second storage queue;
the processor continues to write the real-time state data of the Internet of things terminal after the current abnormal data into the first storage queue and write the real-time state data extruded from the first storage queue into the second storage queue;
the processor judges whether the current abnormal data is extruded out of the first storage queue, if so, the abnormal data is written into the second storage queue, and all data in the first storage queue when the current abnormal data is extruded are sequentially written into the second storage queue and are positioned behind the current abnormal data;
and when the real-time state data of the internet of things terminal stored in the first storage queue when the current abnormal data is extruded is stored in the second storage queue, forming an abnormal data packet by the current abnormal data in the second storage queue and the real-time state data of N internet of things terminals before and after the current abnormal data.
Further, the processor calls the exception packet according to the following method:
the processor receives a calling instruction sent by the upper computer;
the processor searches a query data packet corresponding to the current calling instruction in an alarm data storage queue of the second memory according to the calling instruction, analyzes the searched query data packet to obtain abnormal data information contained in the calling instruction and a first address and a last address of the abnormal data packet corresponding to the abnormal information;
and the processor calls the abnormal data packet from the state data storage queue of the second memory according to the abnormal data information and the first address and the last address of the abnormal data packet.
Further, the device also comprises an input module and an output module;
the input module is in communication connection with the processor and is used for inputting real-time state data of the terminal of the Internet of things into the processor;
the output module is connected with the processor and used for transmitting the data of the processor to the upper computer.
The invention has the beneficial effects that: according to the method and the device, the abnormal data of the terminal of the Internet of things and the state data before and after the abnormal data can be accurately obtained when the terminal of the Internet of things is abnormal, accurate data support is provided for analyzing key data or sensitive data of the system of the Internet of things, consumption of network resources and storage resources caused by massive data can be effectively reduced, and the efficiency of data transmission, storage and follow-up data tracing is effectively improved.
Drawings
The invention is further described below with reference to the following figures and examples:
FIG. 1 is a schematic flow chart of the present invention.
FIG. 2 is a schematic flow chart of the present invention.
Fig. 3 is a schematic diagram of the system structure of the present invention.
FIG. 4 is a schematic diagram of the data storage of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings of the specification:
the invention provides a method for tracing state data of an Internet of things terminal, which comprises the following steps:
acquiring real-time state data of the terminal of the Internet of things;
judging whether the real-time state data of the Internet of things terminal is abnormal, if so, extracting the real-time state data of each of N Internet of things terminals before and after the abnormal data to form an abnormal data packet and storing the abnormal data packet;
extracting the mark information when the abnormal data packet is stored, and correspondingly storing the mark information and the abnormal data to form a query data packet;
when the abnormal data packet is called, inquiring and calling the abnormal data packet according to the information contained in the inquiry data packet; by the method, the abnormal data of the Internet of things terminal and the state data before and after the abnormal data can be accurately obtained when the Internet of things terminal is abnormal, accurate data support is provided for analysis of key data or sensitive data of the Internet of things system, consumption of network resources and storage resources caused by massive data can be effectively reduced, and the efficiency of data transmission, storage and follow-up data tracing is effectively improved.
Specifically, the method comprises the following steps: forming an exception packet according to the following method:
storing the acquired real-time data of the terminal of the Internet of things into a first storage queue, wherein the first storage queue accesses the data according to a first-in first-out principle and is provided with N real-time data storage spaces;
when the real-time state data of the Internet of things terminal is abnormal, storing the current abnormal data into a first storage queue, and writing the real-time state data of the Internet of things terminal extruded by the abnormal data in the first storage queue into a second storage queue;
the real-time state data of the terminal of the Internet of things after the current abnormal data is continuously written into the first storage queue and the real-time state data extruded from the first storage queue is written into the second storage queue;
judging whether the current abnormal data is extruded out of the first storage queue, if so, writing the abnormal data into the second storage queue, and sequentially writing all data in the first storage queue when the current abnormal data is extruded into the second storage queue and behind the current abnormal data;
and when the real-time state data of the internet of things terminal stored in the first storage queue when the current abnormal data is extruded is stored in the second storage queue, forming an abnormal data packet by the current abnormal data in the second storage queue and the real-time state data of N internet of things terminals before and after the current abnormal data.
Wherein: the flag information when the abnormal data packet is stored is the first address and the last address of the abnormal data packet, and of course, other flag information may be additionally provided for distinguishing different abnormal data packets, so that the abnormal data packets are convenient to search.
The query data packet and the abnormal data packet are in different storage queues during storage, that is to say:
after the abnormal data packet is formed, extracting the first address and the last address of the abnormal data packet, and correspondingly storing the current abnormal data and the first address and the last address of the abnormal data packet in a third storage queue.
This is further illustrated below with reference to fig. 4:
in fig. 4, the left sequence is a first storage queue, the middle sequence is a third storage queue, and the right sequence is a second storage queue;
the method comprises the steps that after real-time state data of an Internet of things terminal are obtained, the real-time state data are stored into a first storage queue, the access principle of the first storage queue is a first-in first-out principle, namely the first-in data are stored into the first storage queue first, the later data are stored according to the sequence, N data can be stored in the first storage queue, and along with the data storage, when the storage limit of the first storage queue is reached, the first-in data are extruded;
when judging that abnormal data (the abnormal data are data representing the state of the terminal of the internet of things, such as too large and too small indexes represented by the data) exist at present, storing the abnormal data into a first storage queue at the moment, wherein the abnormal data are also the real-time state of the terminal of the internet of things represented by the data; when the first data extruded by the abnormal data is stored in the second storage queue, the first address of the first data stored in the second storage queue is used as the first address of the current abnormal data packet; the real-time status data after the abnormal data is still stored in the first storage queue, the data is continuously extruded from the first storage queue along with the data writing, the extruded data is sequentially stored into the second storage queue, when the abnormal status data is extruded from the first storage queue, the first storage queue stores N data after the abnormal data occurs, the N data are all stored into the second storage queue (of course, the N data are sequentially extruded based on the subsequent data being written into the first storage queue), and the data are positioned behind the current abnormal data, the N real-time status data after the current abnormal data are all written into the second storage queue, the last address of the last N data after the last data are stored into the second storage queue is used as the last address of the current abnormal data packet, at this time, the current abnormal data are stored in the second storage queue, the method comprises the steps that N data before and after current abnormal data form an abnormal data packet, a complete tracing data packet is further formed, when calling is needed, a query data packet needed by a calling instruction is obtained from a third storage queue according to the calling instruction, the query data packet is analyzed, corresponding abnormal data information and the first address and the last address of the abnormal data packet are obtained, the corresponding abnormal data packet is searched from a second storage queue according to the analysis result of the query data packet, and the tracing data packet is obtained. In the process, other non-abnormal data (or called sensitive data) does not need to be stored, so that network resources, storage resources and transmission efficiency are saved, and the calling efficiency is also obviously improved. The alarm data stored in the third storage queue, that is, the abnormal data, and when the abnormal data occurs, the internet of things system generates corresponding alarm information, so the abnormal data is also called as alarm data.
In the above example, it is stated that one abnormal data occurs or two abnormal data occur with a long interval (long means that normal real-time status data between two adjacent abnormal data is greater than N); the following situation often occurs in practical applications:
1. the method comprises the steps that abnormal data are generated when the Internet of things starts to operate, namely the abnormal data are firstly obtained in a first storage queue, no data exist before the abnormal data occur, at the moment, the steps are still completed according to the steps, the difference is that only N +1 data exist in a current abnormal data packet, the data are marked as 0 before the abnormal data, and the first address of the abnormal data packet in a second storage queue is the first address of the current abnormal data stored in the second storage queue.
2. Continuously occurring abnormal data such as: A. b, C when A is judged to be abnormal data, only A is taken as abnormal data, B and C are both taken as normal data to be processed, after A is judged to be abnormal data, when B is judged to be abnormal data, only B is taken as abnormal data, the rest are taken as normal data, and the subsequent processing process is completely consistent with the process in the previous step.
Correspondingly, the invention also provides an Internet of things terminal state data tracing system, which comprises a processor, a first memory and a second memory;
the processor is used for acquiring the real-time state data of the terminal of the Internet of things, judging whether the real-time state data of the terminal of the Internet of things is abnormal or not, and outputting alarm information when the real-time state data of the terminal of the Internet of things is abnormal;
the processor stores real-time state data of the terminal of the Internet of things into a first memory and a second memory;
the first memory is used for storing the real-time state data of the Internet of things terminal acquired by the processor, and the first processor follows a first-in first-out principle when accessing the data;
the second memory is provided with a state data storage queue and an alarm data storage queue, when the real-time state data of the Internet of things terminal is abnormal, 2N real-time state data before and after the current abnormal data and the current abnormal data form abnormal data packets to be stored in the state data storage queue, and the head address and the tail address of the abnormal data packets and the current abnormal data form inquiry data packets to be stored in the alarm data storage queue. Through the system, the abnormal data of the Internet of things terminal and the state data before and after the abnormal data can be accurately obtained when the Internet of things terminal is abnormal, accurate data support is provided for analyzing key data or sensitive data of the Internet of things system, consumption caused by mass data to network resources and storage resources can be effectively reduced, and the efficiency of data transmission, storage and follow-up data tracing is effectively improved.
Specifically, the method comprises the following steps: forming an exception packet according to the following method:
the processor stores the acquired real-time data of the terminal of the Internet of things into a first storage queue, wherein the first storage queue accesses the data according to a first-in first-out principle and is provided with N real-time data storage spaces;
when the processor judges that the real-time state data of the Internet of things terminal is abnormal, the current abnormal data is stored into a first storage queue, and then the real-time state data of the Internet of things terminal extruded by the abnormal data in the first storage queue is written into a second storage queue;
the processor continues to write the real-time state data of the Internet of things terminal after the current abnormal data into the first storage queue and write the real-time state data extruded from the first storage queue into the second storage queue;
the processor judges whether the current abnormal data is extruded out of the first storage queue, if so, the abnormal data is written into the second storage queue, and all data in the first storage queue when the current abnormal data is extruded are sequentially written into the second storage queue and are positioned behind the current abnormal data;
and when the real-time state data of the internet of things terminal stored in the first storage queue when the current abnormal data is extruded is stored in the second storage queue, forming an abnormal data packet by the current abnormal data in the second storage queue and the real-time state data of N internet of things terminals before and after the current abnormal data.
And calling the abnormal data according to the following steps: the processor calls the abnormal data packet according to the following method:
the processor receives a calling instruction sent by the upper computer;
the processor searches a query data packet corresponding to the current calling instruction in an alarm data storage queue of the second memory according to the calling instruction, analyzes the searched query data packet to obtain abnormal data information contained in the calling instruction and a first address and a last address of the abnormal data packet corresponding to the abnormal information;
and the processor calls the abnormal data packet from the state data storage queue of the second memory according to the abnormal data information and the first address and the last address of the abnormal data packet.
Of course, the second memory can also be replaced by two memories, and the storage of state data and the storage of alarm data are respectively realized; it is also possible to use one memory instead of the first memory and the second memory, and if one memory is used, then the first storage queue, the second storage queue and the third storage queue as described above are created in the memory, and these are all equivalent alternatives.
In this embodiment, the terminal further comprises an input module and an output module, wherein the input module is in communication connection with the processor and is used for inputting real-time state data of the terminal of the internet of things into the processor.
Specifically, the method comprises the following steps: the input module is a transmission interface.
The access module is a wireless transmission module.
The output module is connected with the processor and used for transmitting the data of the processor to the upper computer.
The output module is a transmission interface.
The output module is a wireless transmission module. The transmission interface adopts the existing interface, such as an ethernet interface, an optical fiber interface, etc., and the wireless transmission module adopts the existing module, such as a bluetooth module, a mobile communication module (such as a 4G module, a 5G module), a UWB module, a ZigBee module, etc.
Finally, the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all of them should be covered in the claims of the present invention.

Claims (9)

1. A method for tracing state data of an Internet of things terminal is characterized by comprising the following steps: the method comprises the following steps:
acquiring real-time state data of the terminal of the Internet of things;
judging whether the real-time state data of the Internet of things terminal is abnormal, if so, extracting the real-time state data of each of N Internet of things terminals before and after the abnormal data to form an abnormal data packet and storing the abnormal data packet;
extracting the mark information when the abnormal data packet is stored, and correspondingly storing the mark information and the abnormal data to form a query data packet;
and when the abnormal data packet is called, inquiring and calling the abnormal data packet according to the information contained in the inquiry data packet.
2. The internet of things terminal state data tracing method according to claim 1, characterized in that: forming an exception packet according to the following method:
storing the acquired real-time data of the terminal of the Internet of things into a first storage queue, wherein the first storage queue accesses the data according to a first-in first-out principle and is provided with N real-time data storage spaces;
when the real-time state data of the Internet of things terminal is abnormal, storing the current abnormal data into a first storage queue, and writing the real-time state data of the Internet of things terminal extruded by the abnormal data in the first storage queue into a second storage queue;
the real-time state data of the terminal of the Internet of things after the current abnormal data is continuously written into the first storage queue and the real-time state data extruded from the first storage queue is written into the second storage queue;
judging whether the current abnormal data is extruded out of the first storage queue, if so, writing the abnormal data into the second storage queue, and sequentially writing all data in the first storage queue when the current abnormal data is extruded into the second storage queue and behind the current abnormal data;
and when the real-time state data of the internet of things terminal stored in the first storage queue when the current abnormal data is extruded is stored in the second storage queue, forming an abnormal data packet by the current abnormal data in the second storage queue and the real-time state data of N internet of things terminals before and after the current abnormal data.
3. The internet of things terminal state data tracing method according to claim 1, characterized in that: the mark information when the abnormal data packet is stored is the first address and the last address of the abnormal data packet.
4. The internet of things terminal state data tracing method according to claim 3, characterized in that: the query data packet and the abnormal data packet are in different storage queues during storage.
5. The Internet of things terminal state data tracing method according to claim 4, wherein: after the abnormal data packet is formed, extracting the first address and the last address of the abnormal data packet, and correspondingly storing the current abnormal data and the first address and the last address of the abnormal data packet in a third storage queue.
6. The utility model provides a thing networking terminal state data system of traceing back which characterized in that: comprises a processor, a first memory and a second memory;
the processor is used for acquiring the real-time state data of the terminal of the Internet of things, judging whether the real-time state data of the terminal of the Internet of things is abnormal or not, and outputting alarm information when the real-time state data of the terminal of the Internet of things is abnormal;
the processor stores real-time state data of the terminal of the Internet of things into a first memory and a second memory;
the first memory is used for storing the real-time state data of the Internet of things terminal acquired by the processor, and the first processor follows a first-in first-out principle when accessing the data;
the second memory is provided with a state data storage queue and an alarm data storage queue, when the real-time state data of the Internet of things terminal is abnormal, 2N real-time state data before and after the current abnormal data and the current abnormal data form abnormal data packets to be stored in the state data storage queue, and the head address and the tail address of the abnormal data packets and the current abnormal data form inquiry data packets to be stored in the alarm data storage queue.
7. The internet of things terminal state data tracing system of claim 6, wherein: forming an exception packet according to the following method:
the processor stores the acquired real-time data of the terminal of the Internet of things into a first storage queue, wherein the first storage queue accesses the data according to a first-in first-out principle and is provided with N real-time data storage spaces;
when the processor judges that the real-time state data of the Internet of things terminal is abnormal, the current abnormal data is stored into a first storage queue, and then the real-time state data of the Internet of things terminal extruded by the abnormal data in the first storage queue is written into a second storage queue;
the processor continues to write the real-time state data of the Internet of things terminal after the current abnormal data into the first storage queue and write the real-time state data extruded from the first storage queue into the second storage queue;
the processor judges whether the current abnormal data is extruded out of the first storage queue, if so, the abnormal data is written into the second storage queue, and all data in the first storage queue when the current abnormal data is extruded are sequentially written into the second storage queue and are positioned behind the current abnormal data;
and when the real-time state data of the internet of things terminal stored in the first storage queue when the current abnormal data is extruded is stored in the second storage queue, forming an abnormal data packet by the current abnormal data in the second storage queue and the real-time state data of N internet of things terminals before and after the current abnormal data.
8. The internet of things terminal state data tracing system of claim 7, wherein: the processor calls the abnormal data packet according to the following method:
the processor receives a calling instruction sent by the upper computer;
the processor searches a query data packet corresponding to the current calling instruction in an alarm data storage queue of the second memory according to the calling instruction, analyzes the searched query data packet to obtain abnormal data information contained in the calling instruction and a first address and a last address of the abnormal data packet corresponding to the abnormal information;
and the processor calls the abnormal data packet from the state data storage queue of the second memory according to the abnormal data information and the first address and the last address of the abnormal data packet.
9. The internet of things terminal state data tracing system of claim 6, wherein: the device also comprises an input module and an output module;
the input module is in communication connection with the processor and is used for inputting real-time state data of the terminal of the Internet of things into the processor;
the output module is connected with the processor and used for transmitting the data of the processor to the upper computer.
CN202110926442.9A 2021-08-12 2021-08-12 Internet of things terminal state data tracing method and system Pending CN113660119A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110926442.9A CN113660119A (en) 2021-08-12 2021-08-12 Internet of things terminal state data tracing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110926442.9A CN113660119A (en) 2021-08-12 2021-08-12 Internet of things terminal state data tracing method and system

Publications (1)

Publication Number Publication Date
CN113660119A true CN113660119A (en) 2021-11-16

Family

ID=78491585

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110926442.9A Pending CN113660119A (en) 2021-08-12 2021-08-12 Internet of things terminal state data tracing method and system

Country Status (1)

Country Link
CN (1) CN113660119A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108301989A (en) * 2018-01-31 2018-07-20 湖南优利泰克自动化系统有限公司 A kind of Wind turbines failure logging method
CN111768513A (en) * 2020-06-10 2020-10-13 奇瑞新能源汽车股份有限公司 Data recording and fault diagnosis method for bidirectional DCDC converter based on UDS
JP2021005758A (en) * 2019-06-25 2021-01-14 東芝三菱電機産業システム株式会社 Failure data recording system and failure data transmitting device
CN113123932A (en) * 2021-02-23 2021-07-16 北京华能新锐控制技术有限公司 Real-time dynamic fault diagnosis method for wind turbine generator
CN113190415A (en) * 2021-05-27 2021-07-30 北京京东拓先科技有限公司 Internet hospital system monitoring method, equipment, storage medium and program product

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108301989A (en) * 2018-01-31 2018-07-20 湖南优利泰克自动化系统有限公司 A kind of Wind turbines failure logging method
JP2021005758A (en) * 2019-06-25 2021-01-14 東芝三菱電機産業システム株式会社 Failure data recording system and failure data transmitting device
CN111768513A (en) * 2020-06-10 2020-10-13 奇瑞新能源汽车股份有限公司 Data recording and fault diagnosis method for bidirectional DCDC converter based on UDS
CN113123932A (en) * 2021-02-23 2021-07-16 北京华能新锐控制技术有限公司 Real-time dynamic fault diagnosis method for wind turbine generator
CN113190415A (en) * 2021-05-27 2021-07-30 北京京东拓先科技有限公司 Internet hospital system monitoring method, equipment, storage medium and program product

Similar Documents

Publication Publication Date Title
CN106790718A (en) Service call link analysis method and system
CN111092852A (en) Network security monitoring method, device, equipment and storage medium based on big data
WO2021169268A1 (en) Data processing method, apparatus and device, and storage medium
CN110191024B (en) Network traffic monitoring method and device
CN113938928B (en) Communication system for inland lake observation network
CN116866095B (en) Industrial router with touch panel and standby control method thereof
CN113676526A (en) Industrial data access management system and method
CN114444096B (en) Network data storage encryption detection system based on data analysis
CN113328927B (en) Industrial Internet of things gateway with calculation, storage and network exchange functions
CN113485282B (en) Message tracking display method, system, equipment and storage medium for distributed control system
CN100571267C (en) A kind of method for associating general multiple protocols
CN117176802B (en) Full-link monitoring method and device for service request, electronic equipment and medium
CN110830416A (en) Network intrusion detection method and device
CN113157609A (en) Storage system, data processing method, data processing device, electronic device, and storage medium
CN113660687A (en) Network difference cell processing method, device, equipment and storage medium
CN113660119A (en) Internet of things terminal state data tracing method and system
CN111209314A (en) System for processing massive log data of power information system in real time
CN114513553A (en) Data processing method and device, electronic equipment and storage medium
CN112687267A (en) Internet of things data semantic processing system
CN113010483A (en) Mass log management method and system
CN113157628A (en) Storage system, data processing method and device, storage system and electronic equipment
CN111597198A (en) Internet of things data query method for heterogeneous resource access and related equipment
CN110691164A (en) Method and system for realizing emergency broadcast based on mobile phone terminal
CN109992626A (en) A kind of data processing method and device of Multidimensional Data Model
CN114884844B (en) Flow recording method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination