Information detection processing method, equipment, medium and system based on Internet of things

文档序号:923971 发布日期:2021-03-02 浏览:3次 中文

阅读说明:本技术 基于物联网的信息检测处理方法、设备、介质及系统 (Information detection processing method, equipment, medium and system based on Internet of things ) 是由 兰陵 何晓霞 于 2019-08-26 设计创作,主要内容包括:本发明公开一种基于物联网的信息检测处理方法、设备、介质及系统。该方法包括:采集待测产品终端对应的第一产品信息,第一产品信息包括终端标识;基于终端标识查询系统数据库,获取与终端标识相对应的第二产品信息;对第一产品信息进行形式检测,获取第一检测结果,并对第二产品信息进行形式检测,获取第二检测结果;基于第一检测结果和第二检测结果,对第一产品信息和/或第二产品信息进行诊断更新处理。该方法通过对第一产品信息和第二产品信息进行形式检测,以快速检测定位出存在异常的产品信息;基于第一检测结果和第二检测结果,对第一产品信息和/或第二产品信息进行诊断更新处理,以达到自动修复异常产品信息的目的。(The invention discloses an information detection processing method, equipment, a medium and a system based on the Internet of things. The method comprises the following steps: acquiring first product information corresponding to a product terminal to be detected, wherein the first product information comprises a terminal identifier; inquiring a system database based on the terminal identification to acquire second product information corresponding to the terminal identification; performing form detection on the first product information to obtain a first detection result, and performing form detection on the second product information to obtain a second detection result; and performing diagnosis updating processing on the first product information and/or the second product information based on the first detection result and the second detection result. The method carries out form detection on the first product information and the second product information to quickly detect and position the product information with abnormity; and diagnosing and updating the first product information and/or the second product information based on the first detection result and the second detection result so as to achieve the purpose of automatically repairing the abnormal product information.)

1. An information detection processing method based on the Internet of things is characterized by comprising the following steps:

acquiring first product information corresponding to a product terminal to be detected, wherein the first product information comprises a terminal identifier;

inquiring a system database based on the terminal identification to acquire second product information corresponding to the terminal identification;

performing form detection on the first product information to obtain a first detection result, and performing form detection on the second product information to obtain a second detection result;

and performing diagnosis updating processing on the first product information and/or the second product information based on the first detection result and the second detection result.

2. The internet-of-things-based information detection processing method of claim 1, wherein the first product information includes at least one product attribute data, each product attribute data including a data type and a product attribute value;

the first product information that the collection awaits measuring product terminal corresponds includes:

generating a first data query request, wherein the first data query request comprises at least one request data corresponding to the data type and a preset time interval;

and sending at least one request data to the product terminal to be tested according to the preset time interval, and receiving a product attribute value corresponding to the data type returned by the product terminal to be tested to form the product attribute data.

3. The method for detecting and processing information based on the internet of things according to claim 1, wherein the querying a system database based on the terminal identifier to obtain the second product information corresponding to the terminal identifier comprises:

inquiring a system database based on the terminal identification, and judging whether binding product information corresponding to the terminal identification is stored;

and if the bound product information is stored, determining the bound product information as second product information corresponding to the terminal identification.

4. The method for detecting and processing information based on the internet of things as claimed in claim 3, wherein after the determining whether the binding product information corresponding to the terminal identifier is stored, the method for detecting and processing information based on the internet of things further comprises the steps of:

and if the bound product information is not stored, triggering an information generation tool to generate second product information which corresponds to the terminal identification and carries a generation label.

5. The information detection processing method based on the internet of things as claimed in claim 1, wherein the performing diagnosis update processing on the first product information and/or the second product information based on the first detection result and the second detection result comprises:

if the first detection result and the second detection result are both data detection normal, performing consistency diagnosis on the first product information and the second product information to obtain diagnosis results; and if the diagnosis result is diagnosis failure, updating second product information in the system database by adopting the first product information.

6. The information detection processing method based on the internet of things as claimed in claim 1, wherein the performing diagnosis update processing on the first product information and/or the second product information based on the first detection result and the second detection result comprises:

and if the first detection result is that the data detection is normal and the second detection result is that the data detection is abnormal, updating second product information in the system database by adopting the first product information.

7. The information detection processing method based on the internet of things as claimed in claim 1, wherein the performing diagnosis update processing on the first product information and/or the second product information based on the first detection result and the second detection result comprises:

and if the first detection result is abnormal data detection, the second detection result is normal data detection, and the first product information on the product terminal to be detected is updated by adopting the second product information.

8. The information detection processing method based on the internet of things as claimed in claim 1, wherein the performing diagnosis update processing on the first product information and/or the second product information based on the first detection result and the second detection result comprises:

and if the first detection result and the second detection result are both data detection abnormity, generating abnormity diagnosis reminding information.

9. The method for detecting and processing information based on the internet of things according to claim 1, wherein before the collecting the first product information corresponding to the product terminal to be detected, the method for detecting and processing information based on the internet of things further comprises: and initializing the information acquisition port and establishing a diagnosis communication channel.

10. The method for detecting and processing information based on the internet of things according to claim 1, wherein after the performing the form detection on the first product information to obtain a first detection result, and performing the form detection on the second product information to obtain a second detection result, the method for detecting and processing information based on the internet of things further comprises:

if the first detection result and/or the second detection result are abnormal data detection, updating the current abnormal times, and if the current abnormal times are smaller than a preset time threshold, re-acquiring the first product information and/or the second product information and performing form detection.

11. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for processing information detection based on internet of things according to any one of claims 1 to 10 when executing the computer program.

12. A computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the method for detecting and processing information based on internet of things according to any one of claims 1 to 10.

13. An internet of things system, comprising a server, at least one client and at least one product terminal, wherein the server is connected with the at least one client and the at least one product terminal, and the client is connected with the at least one product terminal, and the client or the server is provided with a memory, a processor and a computer program stored in the memory and capable of running on the processor, and the processor implements the information detection processing method based on the internet of things according to any one of claims 1 to 10 when executing the computer program.

Technical Field

The invention relates to the technical field of Internet of things, in particular to an information detection processing method, equipment, medium and system based on the Internet of things.

Background

The Internet of Things (The Internet of Things, IOT for short) is to collect various required information corresponding to any object to be monitored, connected and interacted in real time through various devices and technologies such as various information sensors, radio frequency identification technologies, global positioning systems, infrared sensors, laser scanners and The like, to realize ubiquitous connection of objects and objects, and objects and people through various possible network accesses, and to realize intelligent sensing, identification and management of objects and processes. For example, if the object corresponding to the information to be collected is a vehicle, the internet of things is an internet of vehicles, and the internet of vehicles means that the electronic tags loaded on the vehicles extract and effectively utilize attribute information and static and dynamic information of all vehicles on an information network platform through identification technologies such as radio frequency identification and the like, and effectively supervise the running states of all vehicles according to different functional requirements and provide comprehensive services.

The thing networking generally includes the server, client and product terminal, this product terminal is the thing on the thing networking, it links to each other with server and client, when the product terminal networking, the product information is distributed for the product terminal to the server, the client realizes carrying out information interaction with product terminal and server based on this product information, promptly carry out intelligent perception based on this product information, processing such as discernment and management, when the product information on the product terminal and the product information of prestoring appear unusually in the server, can lead to product terminal and server to communicate through the network, make thing networking function failure, consequently, how to detect product information fast comprehensively and whether the anomaly appears become the problem that the thing networking development is waited to solve urgently.

Disclosure of Invention

The embodiment of the invention provides an information detection processing method, equipment, a medium and a system based on the Internet of things, and aims to solve the problem of how to quickly detect whether product information is abnormal.

The invention provides an information detection processing method based on the Internet of things, which comprises the following steps:

acquiring first product information corresponding to a product terminal to be detected, wherein the first product information comprises a terminal identifier;

inquiring a system database based on the terminal identification to acquire second product information corresponding to the terminal identification;

performing form detection on the first product information to obtain a first detection result, and performing form detection on the second product information to obtain a second detection result;

and performing diagnosis updating processing on the first product information and/or the second product information based on the first detection result and the second detection result.

Preferably, the first product information includes at least one product attribute data, each product attribute data including a data type and a product attribute value;

the first product information that the collection awaits measuring product terminal corresponds includes:

generating a first data query request, wherein the first data query request comprises at least one request data corresponding to the data type and a preset time interval;

and sending at least one request data to the product terminal to be tested according to the preset time interval, and receiving a product attribute value corresponding to the data type returned by the product terminal to be tested to form the product attribute data.

Preferably, the querying a system database based on the terminal identifier to obtain the second product information corresponding to the terminal identifier includes:

inquiring a system database based on the terminal identification, and judging whether binding product information corresponding to the terminal identification is stored;

and if the bound product information is stored, determining the bound product information as second product information corresponding to the terminal identification.

Preferably, after the determining whether the bound product information corresponding to the terminal identifier is stored, the information detection processing method based on the internet of things further includes the following steps:

and if the bound product information is not stored, triggering an information generation tool to generate second product information which corresponds to the terminal identification and carries a generation label.

Preferably, the performing diagnosis update processing on the first product information and/or the second product information based on the first detection result and the second detection result includes:

if the first detection result and the second detection result are both data detection normal, performing consistency diagnosis on the first product information and the second product information to obtain diagnosis results; and if the diagnosis result is diagnosis failure, updating second product information in the system database by adopting the first product information.

Preferably, the performing diagnosis update processing on the first product information and/or the second product information based on the first detection result and the second detection result includes:

and if the first detection result is that the data detection is normal and the second detection result is that the data detection is abnormal, updating second product information in the system database by adopting the first product information.

Preferably, the performing diagnosis update processing on the first product information and/or the second product information based on the first detection result and the second detection result includes:

and if the first detection result is abnormal data detection, the second detection result is normal data detection, and the first product information on the product terminal to be detected is updated by adopting the second product information.

Preferably, the performing diagnosis update processing on the first product information and/or the second product information based on the first detection result and the second detection result includes:

and if the first detection result and the second detection result are both data detection abnormity, generating abnormity diagnosis reminding information.

Preferably, before the acquiring the first product information corresponding to the product terminal to be detected, the information detection processing method based on the internet of things further includes: and initializing the information acquisition port and establishing a diagnosis communication channel.

Preferably, after the performing the form detection on the first product information to obtain a first detection result, performing the form detection on the second product information to obtain a second detection result, the information detection processing method based on the internet of things further includes:

if the first detection result and/or the second detection result are abnormal data detection, updating the current abnormal times, and if the current abnormal times are smaller than a preset time threshold, re-acquiring the first product information and/or the second product information and performing form detection.

The invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, wherein the processor realizes the information detection processing method based on the internet of things when executing the computer program.

The invention also provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the information detection processing method based on the internet of things.

The invention also provides an internet of things system, which comprises a server, at least one client and at least one product terminal, wherein the server is connected with the at least one client and the at least one product terminal, the client is connected with the at least one product terminal, the client or the server is provided with a memory, a processor and a computer program which is stored in the memory and can run on the processor, and the processor realizes the information detection processing method based on the internet of things when executing the computer program.

According to the information detection processing method, the equipment, the medium and the system based on the Internet of things, the abnormal product information is quickly detected and positioned by acquiring the first product information corresponding to the product terminal to be detected and acquiring the corresponding second product information in the system database and performing form detection on the first product information and the second product information, so that the purpose of abnormal positioning is achieved; in addition, the first product information and the second product information are acquired through networking, so that the acquired product information is more comprehensive, and the comprehensiveness of product information detection is effectively guaranteed; and then, based on the first detection result and the second detection result, diagnosis and update processing are carried out on the first product information and/or the second product information so as to repair the first product information and/or the second product information with the abnormality, so that the purpose of automatically repairing the abnormal product information is achieved, the consistency of the first product information and the second product information is ensured, and the function realization of the Internet of things system is ensured.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.

Fig. 1 is a schematic diagram of an internet of things system according to an embodiment of the invention;

FIG. 2 is a flowchart of a method for detecting and processing information based on the Internet of things according to an embodiment of the present invention;

fig. 3 is another flowchart of an information detection processing method based on the internet of things according to an embodiment of the present invention;

fig. 4 is another flowchart of an information detection processing method based on the internet of things according to an embodiment of the present invention;

fig. 5 is another flowchart of an information detection processing method based on the internet of things according to an embodiment of the present invention;

FIG. 6 is a schematic diagram of a computer device according to an embodiment of the invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

The information detection processing method based on the internet of things provided by the embodiment of the invention can be applied to the application environment shown in fig. 1. Specifically, the information detection processing method based on the internet of things is applied to the internet of things system shown in fig. 1, the internet of things system comprises a client, a server and a product terminal which are in communication connection with the client and the server as shown in fig. 1, and the system database is arranged on the server or connected with the server and used for storing product information; the client communicates with the server through a network, and is used for realizing anomaly detection processing on product information in the product terminal and product information acquired by the server from the system database so as to ensure consistency of the product information in the product terminal and prestored product information, thereby ensuring realization of functions of the Internet of things. The client is also called a user side, and refers to a program corresponding to the server and providing local services for the client. The client may be installed on, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. The server may be implemented as a stand-alone server or as a server cluster consisting of a plurality of servers.

In the internet of things system provided by this embodiment, an information diagnosis program is configured in advance, and the information diagnosis program is a computer program for implementing abnormality detection processing on product information in a product terminal and product information stored in advance.

In a specific implementation manner, the information diagnosis program may be set on a client, so that the information diagnosis program is executed on the client, thereby implementing exception detection processing on product information in a product terminal and pre-stored product information, and ensuring implementation of functions of the internet of things.

In another specific embodiment, the information diagnosis program may be set on a server, so that the information diagnosis program is executed on the server, thereby implementing abnormality detection processing on product information in a product terminal and product information stored in advance, and ensuring implementation of functions of the internet of things.

In an embodiment, an information detection processing method based on the internet of things is provided, and an information diagnosis program is executed on a client or a server to realize the information detection processing method based on the internet of things. As shown in fig. 2, the information detection processing method based on the internet of things includes the following steps:

s201: the method comprises the steps of collecting first product information corresponding to a product terminal to be detected, wherein the first product information comprises a terminal identification.

The product terminal to be detected is a product terminal which needs to carry out product information detection in the Internet of things system. As an example, a user may autonomously select a product terminal to be tested through a client, for example, an internet of things system includes a product terminal a, a product terminal B, a product terminal C, and a product terminal D, and if the user wants to detect whether product information on the product terminal a and the product terminal B matches product information pre-stored in a system database, the product terminal a and the product terminal B may be autonomously selected as the product terminal to be tested through a detection configuration interface on the client.

The first product information refers to product information of a product terminal to be tested, which is connected with the client or the server and is acquired by an information diagnosis program arranged on the client or the server in real time. The terminal identification is an identification used for a unique product terminal, and the terminal identification is an identification which is carried by product equipment and can uniquely identify the identity of the product equipment. For example, when the internet of things system is a car networking system, the product terminal to be tested may be a car terminal, and the corresponding terminal identifier may be a car Identification Number (VIN for short), which is a car frame Number, corresponding to the car terminal, or may be a user account identifier which is automatically input by the user.

The first product information comprises a terminal identification used for identifying the identity of a product terminal to be detected, and also comprises at least one product attribute data corresponding to the terminal identification, wherein the product attribute data is data specific to the product terminal to be detected, and can be used for performing product information abnormity detection based on the at least one product attribute data, so that the product information stored in the product terminal to be detected is ensured to correspond to the product information stored in the server, and the realization of the function of the internet of things is ensured.

In this embodiment, the product attribute data includes, but is not limited to, data such as IMSI, GUID, and UUID. The IMSI (International Mobile Subscriber Identity) is an identifier that is used to distinguish different subscribers in a cellular network and is not repeated in all cellular networks, and may be used to query information of a Subscriber in a Home Location Register (HLR) or a Visitor Location Register (VLR). GUID (global Unique Identifier) is a digital Identifier with a binary length of 128 bits generated by an algorithm, and is mainly used in a network or a system having a plurality of nodes and a plurality of computers. Ideally, no computer or cluster of computers will generate two identical GUIDs, the total number of GUIDs reaching 2^128(3.4 x 10^38), so the probability of generating two identical GUIDs at random is very small, but not 0. UUID (abbreviation of universal Unique Identifier), which is a standard for software construction, is also part of the field of distributed computing environments organized by the open software foundation, and aims to allow all elements in a distributed system to have Unique identification information without specifying the identification information through a central control end.

Specifically, the process of acquiring the first product information corresponding to the product terminal to be tested by the information diagnostic program may specifically include the following steps: the information diagnosis program sends a first data query request to the product terminal to be tested, and receives first product information corresponding to the first data query request returned by the product terminal to be tested. The first data query request is a request for requesting the product terminal to be tested to return corresponding stored product information.

As an example, when the information diagnosis program is set on the client, the information diagnosis program triggers the client to send a first data query request to a terminal of a product to be tested connected to the client through a network, and after the terminal of the product to be tested receives the first data query request, corresponding first product information is returned to the client, so that the information diagnosis program of the client can receive the corresponding first product information.

As another example, when the information diagnosis program is set on the server, the server is triggered to send a first data query request to a terminal of the product to be tested connected to the server through a network, and after the terminal of the product to be tested receives the first data query request, corresponding first product information is returned to the server, so that the information diagnosis program of the server can receive the corresponding first product information.

S202: and querying a system database based on the terminal identification to acquire second product information corresponding to the terminal identification.

The system database is used for storing data such as product information and log information in the Internet of things system. The system database may be located within the server or may be connected to the server so that the server may access the system database to read or write data. The second product information refers to product information corresponding to the terminal identification stored in the system database. It is understood that the second product information includes not only the terminal identifier, but also at least one product attribute data corresponding to the terminal identifier, the product attribute data including, but not limited to, IMSI, GUID, UUID, and the like.

As an example, when the information diagnosis program is set on the client, the information diagnosis program triggers the client to send a second data query request corresponding to the portable terminal identifier to the server; after receiving the second data query request, the server queries the system database based on the second data query request to obtain second product information corresponding to the terminal identifier, and sends the second product information to the client, so that the information diagnosis program on the client can obtain the second product information corresponding to the terminal identifier.

As another example, when the information diagnosing program is provided on the server, the information diagnosing program may generate a second data query request directly based on the terminal identification, and query the system database based on the second data query request, so that the information diagnosing program on the server acquires the second product information corresponding to the terminal identification.

S203: and performing form detection on the first product information to obtain a first detection result, and performing form detection on the second product information to obtain a second detection result.

The form detection of the first product information is a process for detecting whether at least one product attribute data in the first product information meets a corresponding data standard. Since the first product information includes at least one product attribute data corresponding to the terminal identifier, when receiving the first product information, the information diagnosis program on the client or the server needs to detect whether the data types, data formats, and data lengths of all product attribute data in the first product information satisfy the corresponding data standards, so as to obtain a first detection result.

Accordingly, the form detection of the second product information is a process for detecting whether at least one product attribute data in the second product information meets the corresponding data standard. Since the second product information includes at least one product attribute data corresponding to the terminal identifier, when the information diagnosis program on the client or the server receives the second product information, it needs to detect whether the data types, data formats, and data lengths of all product attribute data in the second product information satisfy the corresponding data standards, so as to obtain a second detection result.

The data criterion here is a criterion condition generated in advance for evaluating whether the acquired product information satisfies the requirement. The data type is a type for defining product attribute data that the product information that needs to be acquired should contain, including, for example, IMSI and/or GUID. The data format is a format corresponding to product attribute data of a specific data type, for example, product attribute data such as IMSI needs to include three parts of data, MCC + MNC + MSIN. The data length is a length corresponding to product attribute data of a specific data type, for example, the data length of the IMSI is 15 bits.

Specifically, after the information diagnosis program obtains the first product information and the second product information, the form detection can be performed on the first product information and the second product information according to the sequence, so that the processing overhead of the system running the information diagnosis program is saved; the first product information and the second product information can also be detected in parallel, and the detection processes are synchronously executed, so that the processing time is saved.

The first product information is subjected to form detection, and the obtained first detection result comprises two results, namely data detection normal and data detection abnormal. And performing form detection on the second product information, wherein the obtained second detection result comprises two results of normal data detection and abnormal data detection. The method and the device have the advantages that the first product information and the second product information are subjected to form detection, so that the product information with data detection abnormity can be positioned, the abnormity affecting the communication of the Internet of things system can be positioned, and the function realization of the Internet of things system is guaranteed.

S204: and performing diagnosis updating processing on the first product information and/or the second product information based on the first detection result and the second detection result.

As described above, the first detection result and the second detection result both include normal data detection and abnormal data detection, and after the information diagnosis program obtains the first detection result and the second detection result, the information diagnosis program needs to perform diagnosis and update processing on the first product information on the terminal of the product to be detected and/or the second product information on the system database according to different combinations of the first detection result and the second detection result, so as to repair the first product information on the terminal of the product to be detected and/or the second product information on the system database, ensure consistency of the first product information and the second product information, and thus ensure the function implementation of the internet of things system.

As an example, after executing step S201 to obtain the first product information, the information diagnosing program may first execute step S202 to obtain the second product information, and then execute step S203, that is, perform form detection on the first product information to obtain the first detection result, and perform form detection on the second product information to obtain the second detection result; and finally, executing step S204 to realize diagnosis and update processing on the first product information and/or the second product information, thereby ensuring the consistency of the first product information on the product terminal to be tested and the second product information on the system database, and further ensuring the function realization of the Internet of things system.

As another example, after executing step S201 to obtain the first product information, the information diagnosing program may first execute the formal detection on the first product information in step S203 to obtain a first detection result; step S202 is executed again to obtain second product information, and then the second product information is subjected to form detection in step S203 to obtain a second detection result; and finally, executing step S204 to realize diagnosis and update processing on the first product information and/or the second product information, thereby ensuring the consistency of the first product information on the product terminal to be tested and the second product information on the system database, and further ensuring the function realization of the Internet of things system.

In the information detection processing method based on the internet of things provided by this embodiment, by acquiring first product information corresponding to a product terminal to be detected and acquiring corresponding second product information in a system database, form detection is performed on the first product information and the second product information to quickly detect and position product information with abnormality, so as to achieve the purpose of abnormality positioning; in addition, the first product information and the second product information are acquired through networking, so that the acquired product information is more comprehensive, and the comprehensiveness of product information detection is effectively guaranteed; and then, based on the first detection result and the second detection result, diagnosis and update processing are carried out on the first product information and/or the second product information so as to repair the first product information and/or the second product information with the abnormality, so that the purpose of automatically repairing the abnormal product information is achieved, the consistency of the first product information and the second product information is ensured, and the function realization of the Internet of things system is ensured.

In an embodiment, before step S201, the method for detecting and processing information based on the internet of things further includes: and initializing the information acquisition port and establishing a diagnosis communication channel.

The information acquisition port is specifically a port for acquiring product information on a terminal where the information diagnostic program is located, and specifically may include a first acquisition port for acquiring first product information and a second acquisition port for acquiring second product information. In this embodiment, the first acquisition port and the second acquisition port connected to the information diagnostic program are initialized, and a diagnostic communication channel is established, so that both the terminal and the server of the product to be tested can be connected to the information diagnostic program in a communication manner, and the server can be connected to the system database in a communication manner. The diagnosis communication channel is used for establishing mutual communication between the information diagnosis program and the terminal and the server of the product to be detected.

As an example, if the internet of things system is an internet of vehicles system and the information diagnosis program is set on the client, the first acquisition port set on the client may be a CAN bus interface for acquiring product information of a product terminal on the internet of vehicles system; the second acquisition port may be a communication port or a communication portal for communicating with the server. The process of initializing the first acquisition port and the second acquisition port may specifically be initializing the CAN bus interface according to preset information such as port type, port number, baud rate, and the like, and initializing the communication port or the communication network port to clear the system cache, so as to avoid that the cached data affects the acquired first product information before the first product information corresponding to the product terminal to be detected is acquired, thereby ensuring accuracy of data detection processing.

As an example, when the information diagnosis program is set on the client, the process of establishing the diagnosis communication channel includes the following steps: sending first request information to a product terminal to be tested, and if first response information returned by the product terminal to be tested is received within first preset response time, establishing a communication channel between a client and the product terminal to be tested; and then sending second request information to the server, and if second response information returned by the server is received within second preset response time, establishing a communication channel between the client and the server so as to establish a diagnosis communication channel. The first request information and the second request information are respectively used for requesting the terminal of the product to be tested and the server to perform response processing. The first response information and the second response information are respectively response information returned to the information diagnosis program by the product terminal to be tested and the server. The first response time and the second response time are preset times waiting for responses.

As another example, when the information diagnosing program is provided on the server, the process of establishing the diagnostic communication channel includes the steps of: and sending first request information to the product terminal to be tested, and if first response information returned by the product terminal to be tested is received within first preset response time, establishing a diagnostic communication channel between the server and the product terminal to be tested.

In one embodiment, the first product information includes at least one product attribute data, each product attribute data including a data type and a product attribute value. For example, in the product attribute data of IMSI 310150123456789, IMSI is data type, and 310150123456789 is product attribute value.

Correspondingly, as shown in fig. 3, the step S201 of acquiring the first product information corresponding to the terminal of the product to be tested specifically includes the following steps:

s301: and generating a first data query request, wherein the first data query request comprises at least one request data corresponding to the data type and a preset time interval.

The first data query request is a request triggered by the information diagnosis program and used for requesting to acquire product information of the product terminal to be tested. The first data query request comprises at least one request data corresponding to each data type and a preset time interval, wherein the request data is the data which is determined to be sent based on the message protocol corresponding to the data type and is used for requesting to acquire the product information. The preset time interval is the time interval of sending two adjacent request data determined based on the message protocol corresponding to the data type. As can be appreciated, the first data query request is determined based on the data type corresponding to the first product information to be obtained, so as to quickly and accurately obtain the first product information to be obtained.

S302: and sending at least one request data to the product terminal to be tested according to a preset time interval, and receiving a product attribute value corresponding to the data type returned by the product terminal to be tested to form product attribute data.

For example, if the product attribute data of the IMSI needs to be acquired, the information diagnostic program needs to send three frames of request data to the client, the preset time interval between the first frame of request data and the second frame of request data is 50ms, the preset time interval between the second frame of request data and the third frame of request data is 100ms, and the information diagnostic program sends the three frames of request data to the product terminal to be tested, so that the product attribute data of the IMSI returned by the product terminal to be tested can be received.

Specifically, the product attribute data required to be collected by the first product information includes at least two, and each product attribute data determines at least one corresponding request data and a preset time interval according to a message protocol corresponding to the data type of the product attribute data. For example, the first product information includes IMSI and GUID, and may first send three frames of request data corresponding to IMSI according to a preset time interval to obtain a product attribute value corresponding to IMSI to obtain product attribute data of IMSI; and then at least one request data corresponding to the GUID is sent according to a preset time interval to acquire the product attribute data of the GUID.

The first data query request is generated based on the data type corresponding to the first product information to be acquired, so that at least one request data is sent to the product terminal to be detected according to the preset time interval, and therefore the first product information can be acquired quickly and accurately.

In an embodiment, as shown in fig. 4, step S202, namely, querying the system database based on the terminal identifier, to obtain the second product information corresponding to the terminal identifier, specifically includes the following steps:

s401: and inquiring a system database based on the terminal identification, and judging whether the binding product information corresponding to the terminal identification is stored.

The binding product information corresponding to the terminal identification refers to product information which is distributed to the product terminal to be detected in advance by the server when the product terminal to be detected is registered and added to the Internet of things system. In the working process of the Internet of things system, the server can send a control instruction to the corresponding product terminal to be tested based on the bound product information so as to control the product terminal to be tested; the client can also control the product terminal to be tested based on the binding product information.

S402: and if the bound product information is stored, determining the bound product information as second product information corresponding to the terminal identifier.

Specifically, if the system database stores the bound product information corresponding to the terminal identifier, the bound product information can be directly determined as the second product information corresponding to the terminal identifier, so that the second product information is sent to the information diagnosis program, the information diagnosis program can quickly acquire the second product information corresponding to the terminal identifier, the acquisition efficiency of the second product information is guaranteed, and the subsequent processing efficiency of information detection processing is further guaranteed.

As an example, when the information diagnosis program is set on the client, the information diagnosis program triggers the client to send a second data query request corresponding to the portable terminal identifier to the server; after receiving the second data query request, the server queries a system database based on the second data query request, and judges whether the system database stores binding product information corresponding to the terminal identifier; and if the binding product information is stored, the server determines the binding product information as second product information and sends the second product information to the client, so that an information diagnosis program on the client can quickly acquire the second product information corresponding to the terminal identification.

As another example, when the information diagnosing program is installed on the server, the information diagnosing program may directly generate a second data query request based on the terminal identifier, and query the system database based on the second data query request to determine the bound product information corresponding to the terminal identifier in the system database as the second product information, so that the information diagnosing program on the server can quickly acquire the second product information corresponding to the terminal identifier without performing an information interaction process between the client and the server, which is beneficial to improving the acquisition efficiency of the second product information and further improving the efficiency of the information detection processing.

S403: and if the binding product information is not stored, triggering an information generation tool to generate second product information which corresponds to the terminal identification and carries the generation label.

The information generation tool is a tool preset by the system for generating the product information, and the information generation tool may be a computer program for generating the product information. It can be understood that the information generating tool is arranged on the server, so that the user can quickly generate corresponding second product information when applying for registering the networked product terminal to the server through the client. The generated label is used for identifying the second product information as a label corresponding to the newly generated product information, so that the product information abnormity positioning is carried out based on the generated label, and the data detection abnormity is distinguished from the data detection abnormity caused by the reason that the second product information is not written into the system database or other reasons, thereby achieving the purpose of abnormity detection. It can be understood that when the system database does not store the bound product information, the second product information carrying the generation tag is generated by triggering the information generation tool, so that the second product information can be ensured to be successfully acquired, the subsequent form detection and diagnosis updating processing based on the first product information and the second product information is feasible, and the abnormal positioning of the product information can be realized.

Specifically, if the system database does not store the bound product information corresponding to the terminal identifier, it is determined that the second product information corresponding to the terminal identifier is not written into the system database before the system time, so that the server cannot acquire the second product information corresponding to the terminal identifier from the system database, and in order to ensure the function of the internet of things system, the corresponding second product information needs to be redistributed to the product terminal to be detected corresponding to the terminal identifier, and therefore, an information generation tool needs to be triggered to generate the second product information corresponding to the terminal identifier and carrying a generation tag.

As an example, the information generation tool is arranged on the server, and the information diagnosis program is arranged on the client, and when the second product information corresponding to the terminal identification needs to be acquired, the information diagnosis program triggers the client to send a second data query request corresponding to the carried terminal identification to the server. And after receiving the second data query request, the server queries a system database based on the second data query request, and returns abnormal reminding information without storing the bound product information to an information diagnosis program on the client when the bound product information corresponding to the terminal identifier is not stored in the system database. After receiving the abnormal reminding information, the information diagnosis program can send a data application request carrying the terminal identifier to the server. After receiving the data application request, the server triggers the information generation tool to generate second product information which corresponds to the terminal identification and carries the generated label, and sends the second product information carrying the generated label to the information diagnosis program on the client, so that the information diagnosis program can acquire the second product information carrying the generated label, abnormal positioning can be achieved, and the information diagnosis program can be guaranteed to acquire the second product information.

As another example, when the information generation tool is disposed on the server and the information diagnosis program is disposed on the server, when second product information corresponding to the terminal identifier needs to be acquired, the information diagnosis program may directly generate a second data query request based on the terminal identifier and query the system database based on the second data query request, and if the system database does not store the bound product information corresponding to the terminal identifier, the information generation tool on the server may be directly triggered to generate the second product information corresponding to the terminal identifier and carrying the generation tag, so that the information diagnosis program may quickly acquire the corresponding second product information without performing an information interaction process, which is beneficial to improving the acquisition efficiency of the second product information.

Further, after generating second product information corresponding to the terminal identifier and carrying the generated tag, the information detection processing method based on the internet of things further includes: and storing the second product information serving as binding product information in a system database in a manner of being associated with the terminal identifier. It can be understood that after the second product information is generated by the information generation tool, the second product information is stored in the system database as the binding product information in association with the terminal identifier, so that the subsequent information detection process can be directly performed based on the binding product information stored in the system database, and the efficiency of the information detection process is improved.

In an embodiment, as shown in fig. 5, in step S204, the diagnostic updating process is performed on the first product information and/or the second product information based on the first detection result and the second detection result, and specifically includes the following steps:

s501: if the first detection result and the second detection result are both data detection normal, performing consistency diagnosis on the first product information and the second product information to obtain diagnosis results; and if the diagnosis result is diagnosis failure, updating second product information in the system database by adopting the first product information.

Specifically, if the first detection result and the second detection result are both data detection normal, it is indicated that the data types, data formats, and data lengths of all product attribute data in the first product information and the second product information all conform to the data standard, and at this time, consistency diagnosis is performed on the first product information and the second product information to determine whether the contents of the first product information and the second product information are completely consistent, so as to obtain a diagnosis result. The consistency diagnosis process of the first product information and the second product information refers to comparing at least one product attribute data in the first product information with at least one product attribute data in the second product information one by one, and if all the product attribute data are consistent, obtaining a diagnosis result of successful diagnosis; and if any product attribute data are inconsistent, acquiring a diagnosis result of diagnosis failure.

In this embodiment, consistency diagnosis is performed on the first product information and the second product information, and the obtained diagnosis result includes two results, namely a diagnosis success result and a diagnosis failure result. For the diagnosis result of successful diagnosis, it is indicated that all product attribute data in the first product information and the second product information are data detected normally and completely and are consistent, and no abnormality exists, so that no further processing is needed. For the diagnosis result of the failure diagnosis, it is described that in the first product information and the second product information, although the detection results of all product attribute data for formal detection are normal data detection, at least one product attribute data is inconsistent, so that the first product information is inconsistent with the second product information, at this time, the first product information is needed to update the second product information in the system database, that is, the first product information on the product terminal to be detected is uploaded to the system database to update the second product information in the system database, thereby ensuring the consistency of the first product information on the product terminal to be detected and the second product information on the system database, and ensuring the realization of the internet of things function.

The first product information is updated to the second product information in the system database when the consistency diagnosis is performed on the first product information and the second product information, and the obtained diagnosis result is diagnosis failure, so that the abnormal condition of the product information, namely the first product information on the product terminal to be detected is legally modified, the system database does not update the second product information on the system database in time, is automatically repaired, and the repair efficiency of the product information is improved.

S502: and if the first detection result is that the data detection is normal and the second detection result is that the data detection is abnormal, updating the second product information in the system database by adopting the first product information.

In this embodiment, when the first detection result of the first product information performing the form detection is that the data detection is normal, and the second detection result of the second product information performing the form detection is that the data detection is abnormal, it indicates that the data type, the data format, and the data length of the first product information acquired by the information diagnostic program all conform to the data standard, but at least one of the data type, the data format, and the data length of the second product information does not conform to the data standard, and indicates that the first product information is not abnormal and the second product information is abnormal. For the situation, the first product information can be directly adopted to update the second product information in the system database, that is, the first product information on the product terminal to be tested is uploaded to the system database to update the second product information in the system database, so that the consistency of the first product information on the product terminal to be tested and the second product information on the system database is ensured, and the realization of the function of the internet of things is ensured. The method has the advantages that the first product information with normal data detection is adopted to directly update the second product information with abnormal data detection, consistency diagnosis is not needed, real-time repair and update of the second product information with abnormal data detection in the system database are facilitated, and repair efficiency of the product information is improved.

S503: and if the first detection result is abnormal data detection, the second detection result is normal data detection, and the first product information on the product terminal to be detected is updated by adopting the second product information.

In this embodiment, when a first detection result of the first product information performing the form detection is data detection abnormality, and a second detection result of the second product information performing the form detection is data detection abnormality, it is described that at least one of the data type, the data format, and the data length of the first product information acquired by the information diagnostic program does not meet the data standard, and the data type, the data format, and the data length of the second product information all meet the data standard, which indicates that the first product information is abnormal and the second product information is not abnormal. For the situation, the second product information can be directly adopted to update the first product information in the product terminal to be detected, so that the consistency of the first product information on the product terminal to be detected and the second product information on the system database is ensured, and the realization of the function of the internet of things is ensured. The second product information with normal data detection is adopted to directly update the first product information with abnormal data detection, consistency diagnosis is not needed, real-time repair and update of the first product information with abnormal data detection in the system database are facilitated, and repair efficiency of the product information is improved.

S504: and if the first detection result and the second detection result are both data detection abnormity, generating abnormity diagnosis reminding information.

In this embodiment, the first detection result of the formal detection of the first product information is data detection abnormality, and when the second detection result of the second product information for form detection is data detection abnormity, at least one of the data type, the data format and the data length in the first product information and the second product information acquired by the information diagnosis program is not in accordance with the data standard, the first product information and the second product information are both determined to be abnormal, abnormal diagnosis reminding information is generated and sent to the client corresponding to the corresponding monitoring personnel, so that monitoring personnel can carry out manual detection processing on the first product information and the second product information of which the first detection result and the second detection result are abnormal data detection in time, therefore, the abnormal reasons can be found in time and the artificial repair can be carried out, and the abnormal repair efficiency can be improved.

In an embodiment, after step S203, that is, after performing the form detection on the first product information to obtain a first detection result, and performing the form detection on the second product information to obtain a second detection result, the information detection processing method based on the internet of things further includes: and if the first detection result and/or the second detection result is abnormal data detection, updating the current abnormal times, and if the current abnormal times is smaller than a preset time threshold, re-acquiring the first product information and/or the second product information and performing form detection.

The current abnormal times refer to the times of data detection abnormity obtained when the same product information is acquired in the information detection processing process for form detection. The preset number threshold is a preset number for evaluating whether or not the formal detection needs to be continued again.

In a first example of the foregoing embodiments, when the first detection result is a data detection abnormality, the current abnormality number corresponding to the first product information is updated, even if the current abnormality number corresponding to the first product information is increased by 1; comparing the current abnormal times corresponding to the first product information with a preset time threshold; if the current abnormal times is smaller than a preset time threshold, re-executing the steps of collecting first product information corresponding to the product terminal to be detected to obtain the first product information, and executing form detection on the first product information to obtain a first detection result; if the current abnormal frequency is not less than the preset frequency threshold, the following step S204 is executed. The processing mode can effectively avoid the interference of data abnormity caused by the external environment to the information detection processing process of the first product information, so that the subsequent information detection processing process is more accurate.

In a second example of the foregoing embodiment, when the second detection result is data detection abnormality, the current abnormality number corresponding to the second product information is updated, even if the current abnormality number corresponding to the second product information is increased by 1; comparing the current abnormal times corresponding to the second product information with a preset time threshold; if the current abnormal times is smaller than a preset time threshold, re-executing the step of acquiring second product information corresponding to the product terminal to be detected to acquire the second product information, and executing the step of performing form detection on the second product information to acquire a second detection result; if the current abnormal frequency is not less than the preset frequency threshold, the following step S204 is executed. The processing mode can effectively avoid the interference of the second product information on the information detection processing process due to the data abnormity caused by the external environment, so that the subsequent information detection processing process is more accurate.

In the third example in the foregoing embodiment, when both the first detection result and the second detection result are abnormal data detection, the processing procedure of the third example executes the processes of the first example and the second example at the same time, and for avoiding repetition, details are not repeated here.

It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.

In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer equipment is used for executing data adopted or generated in the process of the information detection processing method based on the Internet of things. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to realize an information detection processing method based on the Internet of things. It is understood that the computer device may be a device for installing a client of the internet of things system, or may be a server in the internet of things system.

In an embodiment, a computer device is provided, and includes a memory, a processor, and a computer program stored on the memory and capable of running on the processor, where the processor implements the information detection processing method based on the internet of things in the foregoing embodiments when executing the computer program, for example, S201 to S204 shown in fig. 2, or fig. 3 to 4, and details are not repeated here to avoid repetition. It is to be understood that the computer program herein is embodied as the information diagnosis program in the above-described embodiment.

In an embodiment, a computer-readable storage medium is provided, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method for detecting and processing information based on an internet of things in the foregoing embodiments is implemented, for example, S201 to S204 shown in fig. 2, or shown in fig. 3 to fig. 4, which is not described herein again to avoid repetition. It is to be understood that the computer program herein is embodied as the information diagnosis program in the above-described embodiment.

In an embodiment, an internet of things system is provided, and includes a server, at least one client, and at least one product terminal, where the server is connected to the at least one client and the at least one product terminal, the client is connected to the at least one product terminal, and a memory, a processor, and a computer program that is stored in the memory and can be run on the processor are provided on the client or the server, and when the processor executes the computer program, the information detection processing method based on the internet of things in the foregoing embodiment is implemented, for example, S201 to S204 shown in fig. 2, or shown in fig. 3 to fig. 4, and is not described here again to avoid repetition. It is to be understood that the computer program herein is embodied as the information diagnosis program in the above-described embodiment.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.

The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种引导式系统故障快速排查方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!