Information detection and processing method, device, medium and system based on Internet of Things

By collecting and detecting product information in the Internet of Things system, conducting formal detection and diagnostic update processing, the problem of product information abnormality detection in the Internet of Things system is solved, and rapid positioning and automatic repair are achieved to ensure the stability of system functions and the comprehensive information of the system. sex.

CN112434192BActive Publication Date: 2025-01-14BYD CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201910791759.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-08-26
Publication Date
2025-01-14
Estimated Expiration
2039-08-26

AI Technical Summary

Technical Problem

In the Internet of Things system, it is difficult to detect product information abnormalities quickly and comprehensively, resulting in system functions failure.

Method used

By collecting product information from the product terminal to be tested, querying the system database to obtain corresponding information, conducting formal testing and diagnostic update processing, ensuring information consistency and achieving automatic repair.

Benefits of technology

Quickly locate and repair abnormal product information to ensure the functional stability and comprehensive information of the Internet of Things system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112434192B_ABST
    Figure CN112434192B_ABST
Patent Text Reader

Abstract

The present invention discloses an information detection and processing method, device, medium and system based on the Internet of Things. The method includes: collecting first product information corresponding to the terminal of the product to be tested, the first product information includes a terminal identification; querying a system database based on the terminal identification to obtain second product information corresponding to the terminal identification; performing a formal detection on the first product information to obtain a first detection result, and performing a formal detection on the second product information to obtain a second detection result; based on the first detection result and the second detection result, performing a diagnostic update process on the first product information and / or the second product information. The method performs a formal detection on the first product information and the second product information to quickly detect and locate abnormal product information; based on the first detection result and the second detection result, performing a diagnostic update process on the first product information and / or the second product information to achieve the purpose of automatically repairing abnormal product information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Internet of Things, and in particular to an information detection and processing method, device, medium and system based on the Internet of Things. Background Art

[0002] The Internet of Things (IOT) refers to the real-time collection of various required information corresponding to any object that needs to be monitored, connected and interacted with through various devices and technologies such as information sensors, radio frequency identification technology, global positioning system, infrared sensor, laser scanner, etc., and the realization of ubiquitous connection between objects and objects and between objects and people through various possible network accesses, and the realization of intelligent perception, identification and management of objects and processes. For example, if the object corresponding to the information to be collected is a vehicle, then the Internet of Things is the Internet of Vehicles, which refers to the electronic tags installed on the vehicle through wireless radio frequency and other identification technologies to realize the extraction and effective use of the attribute information and static and dynamic information of all vehicles on the information network platform, and effectively supervise the operating status of all vehicles and provide comprehensive services according to different functional requirements.

[0003] The Internet of Things generally includes servers, clients and product terminals. The product terminal is the object on the Internet of Things, which is connected to the server and the client. When the product terminal is connected to the Internet, the server distributes product information to the product terminal, and the client realizes information exchange with the product terminal and the server based on the product information, that is, performs intelligent perception, identification and management based on the product information. When there is an abnormality between the product information on the product terminal and the product information pre-stored in the server, the product terminal and the server will be unable to communicate through the network, making the Internet of Things function invalid. Therefore, how to quickly and comprehensively detect whether there is an abnormality in product information has become an urgent problem to be solved in the development of the Internet of Things. Summary of the invention

[0004] The embodiments of the present invention provide an information detection and processing method, device, medium and system based on the Internet of Things to solve the problem of how to quickly detect whether product information is abnormal.

[0005] The present invention provides an information detection and processing method based on the Internet of Things, comprising:

[0006] Collecting first product information corresponding to the product terminal to be tested, where the first product information includes a terminal identifier;

[0007] Based on the terminal identification, query the system database to obtain second product information corresponding to the terminal identification;

[0008] Performing a formal test on the first product information to obtain a first test result, and performing a formal test on the second product information to obtain a second test result;

[0009] Based on the first detection result and the second detection result, the first product information and / or the second product information are diagnosed and updated.

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

[0011] The collecting of first product information corresponding to the terminal of the product to be tested includes:

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

[0013] According to the preset time interval, at least one request data is sent to the terminal of the product to be tested, and a product attribute value corresponding to the data type returned by the terminal of the product to be tested is received to form the product attribute data.

[0014] Preferably, querying a system database based on the terminal identification to obtain second product information corresponding to the terminal identification includes:

[0015] Based on the terminal identification, query the system database to determine whether bound product information corresponding to the terminal identification is stored;

[0016] If the bound product information is stored, the bound product information is determined as the second product information corresponding to the terminal identifier.

[0017] Preferably, after determining whether the bound product information corresponding to the terminal identifier is stored, the information detection and processing method based on the Internet of Things further includes the following steps:

[0018] If the bound product information is not stored, the information generation tool is triggered to generate second product information carrying a generation tag corresponding to the terminal identifier.

[0019] Preferably, the performing diagnosis and 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:

[0020] If both the first test result and the second test result are normal data detection, the first product information and the second product information are diagnosed for consistency to obtain a diagnosis result; if the diagnosis result is a diagnosis failure, the first product information is used to update the second product information in the system database.

[0021] Preferably, the performing diagnosis and 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:

[0022] If the first detection result is that the data detection is normal, and the second detection result is that the data detection is abnormal, the first product information is used to update the second product information in the system database.

[0023] Preferably, the performing diagnosis and 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:

[0024] If the first detection result is that the data detection is abnormal, and the second detection result is that the data detection is normal, the second product information is used to update the first product information on the terminal of the product to be tested.

[0025] Preferably, the performing diagnosis and 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:

[0026] If both the first detection result and the second detection result are data detection abnormalities, abnormal diagnosis reminder information is generated.

[0027] Preferably, before collecting the first product information corresponding to the terminal of the product to be tested, the information detection and processing method based on the Internet of Things also includes: initializing the information collection port and establishing a diagnostic communication channel.

[0028] Preferably, after performing a formal detection on the first product information to obtain a first detection result, and performing a formal detection on the second product information to obtain a second detection result, the information detection and processing method based on the Internet of Things further includes:

[0029] If the first detection result and / or the second detection result is a data detection anomaly, the current number of anomalies is updated. If the current number of anomalies is less than a preset number threshold, the first product information and / or the second product information is re-acquired and a form detection is performed.

[0030] The present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned information detection and processing method based on the Internet of Things when executing the computer program.

[0031] The present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned information detection and processing method based on the Internet of Things is implemented.

[0032] The present invention also provides an Internet of Things system, including a server, at least one client and at least one product terminal, the server is connected to at least one of the clients and at least one of the product terminals, the client is connected to at least one of the product terminals, the client or the server is provided with a memory, a processor and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the above-mentioned information detection and processing method based on the Internet of Things is implemented.

[0033] The above-mentioned information detection and processing method, equipment, medium and system based on the Internet of Things collect the first product information corresponding to the terminal of the product to be tested and obtain the corresponding second product information in the system database, and perform formal detection on the first product information and the second product information to quickly detect and locate the abnormal product information, so as to achieve the purpose of abnormal location; and, by obtaining the first product information and the second product information through networking, the obtained product information is more comprehensive, effectively ensuring the comprehensiveness of product information detection; and then based on the first detection result and the second detection result, the first product information and / or the second product information are diagnosed and updated to repair the abnormal first product information and / or the second product information, so as to achieve the purpose of automatically repairing the abnormal product information, thereby ensuring the consistency of the first product information and the second product information, thereby ensuring the functional realization of the Internet of Things system. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0035] Figure 1 is a schematic diagram of an Internet of Things system in one embodiment of the present invention;

[0036] Figure 2 is a flow chart of an information detection and processing method based on the Internet of Things in one embodiment of the present invention;

[0037] Figure 3 is another flow chart of an information detection and processing method based on the Internet of Things in one embodiment of the present invention;

[0038] Figure 4 is another flow chart of an information detection and processing method based on the Internet of Things in one embodiment of the present invention;

[0039] Figure 5is another flow chart of an information detection and processing method based on the Internet of Things in one embodiment of the present invention;

[0040] Figure 6 is a schematic diagram of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION

[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] The information detection and processing method based on the Internet of Things provided by the embodiment of the present invention can be applied to Figure 1 Specifically, the information detection and processing method based on the Internet of Things is applied in Figure 1 In the Internet of Things system shown in FIG. 1 , the Internet of Things system includes: Figure 1 The client, server, and product terminal that are connected to both the client and the server are shown. The system database is set on the server or connected to the server for storing product information; the client and the server communicate through the network to realize abnormal detection and processing of the product information in the product terminal and the product information obtained by the server from the system database to ensure the consistency of the product information in the product terminal with the pre-stored product information, thereby ensuring the realization of the Internet of Things function. Among them, the client, also known as the user end, refers to the program corresponding to the server that provides local services to customers. The client can be installed on but not limited to various personal computers, laptops, smart phones, tablets, and portable wearable devices. The server can be implemented as an independent server or a server cluster consisting of multiple servers.

[0043] In the Internet of Things system provided in this embodiment, an information diagnosis program is pre-configured. The information diagnosis program is a computer program for implementing abnormality detection processing on product information in the product terminal and pre-stored product information.

[0044] In a specific implementation, the information diagnostic program can be set on the client so that the information diagnostic program can be executed on the client to perform abnormal detection and processing on the product information in the product terminal and the pre-stored product information to ensure the realization of the Internet of Things function.

[0045] In another specific implementation, the information diagnostic program can be set on a server so that the information diagnostic program can be executed on the server to perform abnormality detection and processing on product information in the product terminal and pre-stored product information to ensure the realization of the Internet of Things function.

[0046] In one embodiment, an information detection and processing method based on the Internet of Things is provided, and the information detection and processing method based on the Internet of Things is implemented by executing an information diagnosis program on a client or a server. Figure 2 As shown, the information detection and processing method based on the Internet of Things includes the following steps:

[0047] S201: Collect first product information corresponding to the product terminal to be tested, where the first product information includes a terminal identifier.

[0048] The product terminal to be tested refers to the product terminal in the IoT system that needs to perform product information detection. As an example, the user can independently select the product terminal to be tested through the client. For example, an IoT system includes product terminal A, product terminal B, product terminal C, and product terminal D. If the user wants to detect whether the product information on product terminal A and product terminal B matches the product information pre-stored in the system database, the user can independently select product terminal A and product terminal B as the product terminal to be tested through the detection configuration interface on the client.

[0049] The first product information refers to the product information of the terminal of the product to be tested connected to it and collected in real time by the information diagnosis program set on the client or server. The terminal identification refers to the identification used for the unique product terminal, and the terminal identification is the identification carried by the product device itself that can uniquely identify its identity. For example, when the Internet of Things system is a vehicle networking system, the terminal of the product to be tested can be a vehicle terminal, and the corresponding terminal identification can be the vehicle identification number (VIN) corresponding to the vehicle terminal, or it can be a user account identification entered by the user.

[0050] The first product information not only includes a terminal identifier for identifying the identity of the product terminal to be tested, but also includes at least one product attribute data corresponding to the terminal identifier. The product attribute data is data exclusive to the product terminal to be tested. Product information anomaly detection can be performed based on at least one product attribute data to ensure that the product information stored in the product terminal to be tested corresponds to the product information stored in the server, thereby ensuring the realization of the Internet of Things function.

[0051] In this embodiment, product attribute data includes but is not limited to IMSI, GUID, and UUID. Among them, IMSI (International Mobile Subscriber Identity) is an identification code used to distinguish different users in a cellular network and is not repeated in all cellular networks. IMSI can be used to query user information in the Home Location Register (HLR) or the Visitor Location Register (VLR). GUID (Globally Unique Identifier) ​​is a digital identifier with a binary length of 128 bits generated by an algorithm, mainly used in networks or systems with multiple nodes and multiple computers. Ideally, no computer or computer cluster will generate two identical GUIDs, and the total number of GUIDs reaches 2^128 (3.4×10^38), so the possibility of randomly generating two identical GUIDs is very small, but not zero. UUID (Universally Unique Identifier) ​​is a software construction standard and is also part of the Open Software Foundation in the field of distributed computing environments. Its purpose is to allow all elements in a distributed system to have unique identification information without the need for a central control terminal to specify the identification information.

[0052] Specifically, the process of the information diagnosis program collecting the first product information corresponding to the product terminal under test may specifically include the following steps: the information diagnosis program sends a first data query request to the product terminal under test, and receives the first product information corresponding to the first data query request returned by the product terminal under test. The first data query request refers to a request for requesting the product terminal under test to return the corresponding product information stored therein.

[0053] 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 the terminal of the product to be tested connected to its network. After receiving the first data query request, the terminal of the product to be tested returns the corresponding first product information to the client, so that the information diagnosis program of the client can receive the corresponding first product information.

[0054] 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 the terminal of the product under test connected to its network. After receiving the first data query request, the terminal of the product under test returns the corresponding first product information to the server, so that the information diagnosis program of the server can receive the corresponding first product information.

[0055] S202: querying a system database based on the terminal identifier to obtain second product information corresponding to the terminal identifier.

[0056] Among them, the system database is a database in the Internet of Things system for storing data such as product information and log information. The system database can be set in the server or connected to the server so that the server can access the system database to read or write data. The second product information refers to the product information corresponding to the terminal identifier stored in the system database. It can be 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, and the product attribute data includes but is not limited to data such as IMSI, GUID and UUID.

[0057] As an example, when the information diagnostic program is set on the client, the information diagnostic program triggers the client to send a second data query request corresponding to the 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 the second product information corresponding to the terminal identifier, and sends the second product information to the client, so that the information diagnostic program on the client can obtain the second product information corresponding to the terminal identifier.

[0058] As another example, when the information diagnostic program is set on the server, the information diagnostic program can directly generate a second data query request based on the terminal identifier, and query the system database based on the second data query request, so that the information diagnostic program on the server obtains the second product information corresponding to the terminal identifier.

[0059] S203: Perform a formal test on the first product information to obtain a first test result, and perform a formal test on the second product information to obtain a second test result.

[0060] Among them, performing form detection on the first product information is a process for detecting whether at least one product attribute data in the first product information meets the corresponding data standard. Since the first product information includes at least one product attribute data corresponding to the terminal identifier, when the information diagnosis program on the client or server receives the first product information, it is necessary to detect whether the data type, data format and data length of all product attribute data in the first product information meet the corresponding data standard to obtain a first detection result.

[0061] Accordingly, performing a form detection on 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 receiving the second product information, the information diagnosis program on the client or server needs to detect whether the data type, data format and data length of all product attribute data in the second product information meet the corresponding data standard to obtain a second detection result.

[0062] The data standard here is a pre-generated standard condition for evaluating whether the obtained product information meets the requirements. The data type is used to limit the type of product attribute data that the required product information should contain, for example, including IMSI and / or GUID. The data format is the format corresponding to the product attribute data of a specific data type. For example, the product attribute data of IMSI must include three parts of data: MCC+MNC+MSIN. The data length is the length corresponding to the product attribute data of a specific data type. For example, the data length of IMSI is 15 bits.

[0063] Specifically, after obtaining the first product information and the second product information, the information diagnostic program can perform a formal test on the first product information and the second product information in order of sequence to save the overhead of the system running the information diagnostic program for processing; it can also perform a formal test on the first product information and the second product information in parallel, and the test process is executed synchronously to save processing time.

[0064] Among them, the first product information is subjected to a formal detection, and the first detection result obtained includes two results: normal data detection and abnormal data detection. The second product information is subjected to a formal detection, and the second detection result obtained includes two results: normal data detection and abnormal data detection. It can be understood that by performing a formal detection on the first product information and the second product information, it can help locate the product information with abnormal data detection, so as to locate the abnormality that affects the communication of the Internet of Things system and ensure the functional realization of the Internet of Things system.

[0065] S204: Based on the first detection result and the second detection result, diagnose and update the first product information and / or the second product information.

[0066] As described above, the first test result and the second test result both include normal data detection and abnormal data detection. After obtaining the first test result and the second test result, the information diagnosis program needs to perform diagnostic update processing on the first product information on the product terminal to be tested and / or the second product information on the system database according to different combinations of the first test result and the second test result, so as to repair the first product information on the product terminal to be tested and / or the second product information on the system database, ensure the consistency of the first product information and the second product information, and thus ensure the functional realization of the Internet of Things system.

[0067] As an example, after executing step S201 to obtain the first product information, the information diagnosis program may first execute step S202 to obtain the second product information, and then execute step S203, that is, perform a formal test on the first product information to obtain a first test result, and perform a formal test on the second product information to obtain a second test result; finally, execute step S204 to perform diagnostic 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, thereby ensuring the functional realization of the Internet of Things system.

[0068] As another example, after executing step S201 to obtain the first product information, the information diagnostic program may first execute step S203 to perform a formal test on the first product information to obtain a first test result; then execute step S202 to obtain the second product information, and then execute step S203 to perform a formal test on the second product information to obtain a second test result; finally, execute step S204 to perform diagnostic 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, thereby ensuring the functional realization of the Internet of Things system.

[0069] In the information detection and processing method based on the Internet of Things provided in this embodiment, by collecting the first product information corresponding to the terminal of the product to be tested and obtaining the corresponding second product information in the system database, the first product information and the second product information are subjected to a form detection to quickly detect and locate the abnormal product information, so as to achieve the purpose of abnormal location; and, by obtaining the first product information and the second product information through networking, the obtained product information is made 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, the first product information and / or the second product information are diagnosed and updated to repair the abnormal first product information and / or the second product information, so as to achieve the purpose of automatically repairing the abnormal product information, thereby ensuring the consistency of the first product information and the second product information, thereby ensuring the functional realization of the Internet of Things system.

[0070] In one embodiment, before step S201, the information detection and processing method based on the Internet of Things further includes: initializing the information collection port and establishing a diagnostic communication channel.

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

[0072] As an example, if the Internet of Things system is a vehicle networking system, and the information diagnosis program is set on the client, the first acquisition port set on the client can be a CAN bus interface for collecting product information of product terminals on the vehicle networking system; the second acquisition port can be a communication port or a communication network port for communicating with the server. The process of initializing the first acquisition port and the second acquisition port can be specifically to initialize the CAN bus interface according to the pre-set port type, port number, baud rate and other information, and initialize the communication port or communication network port to clear the system cache, so as to avoid the data cached before the first product information corresponding to the product terminal to be tested is collected. The impact on the first product information is affected, thereby ensuring the accuracy of data detection processing.

[0073] As an example, when the information diagnosis program is set on the client, the process of establishing a diagnostic communication channel includes the following steps: sending a first request message to the terminal of the product to be tested, and if a first response message returned by the terminal of the product to be tested is received within a first preset response time, a communication channel between the client and the terminal of the product to be tested is established; then sending a second request message to the server, and if a second response message returned by the server is received within a second preset response time, a communication channel between the client and the server is established, thereby establishing a diagnostic communication channel. Among them, the first request message and the second request message are respectively information for requesting the terminal of the product to be tested and the server to respond. The first response message and the second response message are respectively response messages returned by the terminal of the product to be tested and the server to the information diagnosis program. The first response time and the second response time are pre-set waiting times for responses.

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

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

[0076] Accordingly, if Figure 3 As shown, the step S201 of collecting the first product information corresponding to the product terminal to be tested specifically includes the following steps:

[0077] S301: Generate a first data query request, where the first data query request includes at least one request data corresponding to a data type and a preset time interval.

[0078] Among them, the first data query request is a request triggered by the information diagnosis program for requesting to obtain product information of the terminal of the product to be tested. The first data query request includes at least one request data corresponding to each data type and a preset time interval, and the request data is the data that needs to be sent to request to obtain product information based on the message protocol corresponding to the data type. The preset time interval is the time interval between the sending of two adjacent request data determined based on the message protocol corresponding to the data type. It can be understood that 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 required first product information.

[0079] S302: Send at least one request data to the product terminal to be tested according to a preset time interval, receive a product attribute value corresponding to the data type returned by the product terminal to form product attribute data.

[0080] For example, if you need to obtain the product attribute data of IMSI, the information diagnosis program needs to send three frames of request data to the client, and the preset time interval between the first frame request data and the second frame request data is 50ms, and the preset time interval between the second frame request data and the third frame request data is 100ms. The information diagnosis program sends these three frames of request data to the product terminal under test, and can receive the product attribute data of IMSI returned by the product terminal under test.

[0081] Specifically, the product attribute data to be collected for the first product information includes at least two, and each product attribute data determines its corresponding at least one request data and preset time interval according to the message protocol corresponding to its data type. For example, the first product information includes IMSI and GUID, and three frames of request data corresponding to IMSI can be sent according to the preset time interval to obtain the product attribute value corresponding to IMSI, so as to obtain the product attribute data of IMSI; and then at least one request data corresponding to GUID can be sent according to the preset time interval to obtain the product attribute data of GUID.

[0082] It can be understood that a first data query request is generated based on a data type corresponding to the first product information to be obtained, so as to send at least one request data to the terminal of the product to be tested according to a preset time interval, thereby ensuring that the first product information is obtained quickly and accurately.

[0083] In one embodiment, if Figure 4 As shown, step S202, that is, 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:

[0084] S401: querying a system database based on the terminal identification to determine whether bound product information corresponding to the terminal identification is stored.

[0085] The bound product information corresponding to the terminal identifier refers to the product information that the server pre-assigns to the product terminal under test when the product terminal under test registers and joins the Internet of Things system. During the operation of the Internet of Things system, the server can send a control instruction to the corresponding product terminal under test based on the bound product information so as to control the product terminal under test; the client can also control the product terminal under test based on the bound product information.

[0086] S402: If the bound product information is stored, the bound product information is determined as the second product information corresponding to the terminal identifier.

[0087] Specifically, if the system database stores 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 can be sent to the information diagnosis program, so that the information diagnosis program can quickly obtain the second product information corresponding to the terminal identifier, thereby ensuring the efficiency of obtaining the second product information, and further ensuring the efficiency of subsequent information detection and processing.

[0088] As an example, when the information diagnostic program is set on the client, the information diagnostic program triggers the client to send a second data query request corresponding to the 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 determine whether the system database has stored binding product information corresponding to the terminal identifier; if the binding product information is stored, the server determines the binding product information as the second product information and sends it to the client, so that the information diagnostic program on the client can quickly obtain the second product information corresponding to the terminal identifier.

[0089] As another example, when the information diagnostic program is set on the server, the information diagnostic program can 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 diagnostic program on the server can quickly obtain the second product information corresponding to the terminal identifier. The process does not require the information interaction process between the client and the server, which helps to improve the efficiency of obtaining the second product information, and thereby improve the efficiency of information detection processing.

[0090] S403: If no bound product information is stored, trigger an information generation tool to generate second product information carrying a generation tag corresponding to the terminal identifier.

[0091] Among them, the information generation tool is a tool pre-set by the system for generating product information, and the information generation tool can be a computer program for generating product information. It can be understood that the information generation tool is set on the server so that the corresponding second product information can be quickly generated when the user applies to the server through the client to register the networked product terminal. The generation tag is used to identify the second product information as a tag corresponding to the newly generated product information, so as to locate the abnormality of the product information based on the generation tag, so as to distinguish whether the data detection abnormality is caused by the second product information not being written into the system database, or other reasons, so as to achieve the purpose of abnormality 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, which can not only ensure that the second product information can be obtained smoothly, so that the subsequent form detection and diagnosis update processing based on the first product information and the second product information is feasible, but also realize the abnormal location of the product information.

[0092] 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 has not been written into the system database before the system time, so that the server cannot query and obtain the second product information corresponding to the terminal identifier from the system database. In order to ensure the functional realization of the Internet of Things system, the corresponding second product information needs to be reallocated to the product terminal under test corresponding to the terminal identifier. Therefore, the information generation tool needs to be triggered to generate the second product information carrying the generation tag corresponding to the terminal identifier.

[0093] As an example, the information generation tool is set on the server, and the information diagnosis program is set on the client. When it is necessary to obtain the second product information corresponding to the terminal identifier, the information diagnosis program triggers the client to send a second data query request corresponding to the 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. If the system database does not store the bound product information corresponding to the terminal identifier, it returns an abnormal reminder message that the bound product information is not stored to the information diagnosis program on the client. After receiving the abnormal reminder message, 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 the second product information carrying the generated tag corresponding to the terminal identifier, and sends the second product information carrying the generated tag to the information diagnosis program on the client, so that the information diagnosis program can obtain the second product information carrying the generated tag, which can not only realize the abnormal location, but also ensure that the information diagnosis program can obtain the second product information.

[0094] As another example, when an information generation tool is set on a server and an information diagnosis program is set on the server, when it is necessary to obtain the second product information corresponding to the terminal identifier, the information diagnosis program can directly generate a second data query request based on the terminal identifier, and query the system database based on the second data query request. If the system database does not store the bound product information corresponding to the terminal identifier, the information generation tool on the server can be directly triggered to generate the second product information carrying the generated tag corresponding to the terminal identifier, so that the information diagnosis program can quickly obtain the corresponding second product information without the need for an information interaction process, which helps to improve the efficiency of obtaining the second product information.

[0095] Furthermore, after generating the second product information carrying the generated tag corresponding to the terminal identifier, the information detection and processing method based on the Internet of Things further includes: storing the second product information as bound product information in association with the terminal identifier in the system database. 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 bound product information in association with the terminal identifier, so that the subsequent information detection process can directly perform information detection processing based on the bound product information stored in the system database, thereby improving the efficiency of information detection processing.

[0096] In one embodiment, if Figure 5 As shown, in step S204, based on the first detection result and the second detection result, the first product information and / or the second product information is diagnosed and updated, which specifically includes the following steps:

[0097] S501: If both the first detection result and the second detection result are normal data detection, the first product information and the second product information are diagnosed for consistency to obtain a diagnosis result; if the diagnosis result is a diagnosis failure, the first product information is used to update the second product information in the system database.

[0098] Specifically, if both the first test result and the second test result are normal data tests, it means that the data type, data format and data length of all product attribute data in the first product information and the second product information meet the data standard. At this time, the first product information and the second product information are subjected to consistency diagnosis to determine whether the contents of the first product information and the second product information are completely consistent, thereby obtaining 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. If all product attribute data are consistent, a diagnosis result of successful diagnosis is obtained; if any product attribute data is inconsistent, a diagnosis result of failed diagnosis is obtained.

[0099] In this embodiment, the consistency diagnosis is performed on the first product information and the second product information, and the obtained diagnostic results include two results: successful diagnosis and failed diagnosis. For the diagnostic result of successful diagnosis, it means that all product attribute data in the first product information and the second product information are normal and completely consistent in data detection, and there is no abnormality. Therefore, no further processing is required. For the diagnostic result of failed diagnosis, it means that in the first product information and the second product information, although the test results of the formal detection of all product attribute data are normal, there is at least one product attribute data inconsistency, which makes the first product information and the second product information inconsistent. At this time, the first product information needs to be used 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 as to ensure the consistency of the first product information on the product terminal to be tested and the second product information on the system database, so as to ensure the realization of the Internet of Things function.

[0100] It can be understood that when a consistency diagnosis is performed on the first product information and the second product information and the diagnostic result obtained is a diagnosis failure, the first product information is used to update the second product information in the system database, so as to automatically repair the product information anomaly situation in which the first product information on the product terminal under test is legally modified but the system database fails to update the second product information in the system database in time, thereby improving the efficiency of product information repair.

[0101] S502: If the first detection result is that the data detection is normal, and the second detection result is that the data detection is abnormal, the first product information is used to update the second product information in the system database.

[0102] In this embodiment, when the first test result of the formal test of the first product information is that the data test is normal, and the second test result of the formal test of the second product information is that the data test is abnormal, it means that the data type, data format and data length of the first product information obtained by the information diagnosis program all meet the data standard, but at least one of the data type, data format and data length of the second product information does not meet the data standard, indicating that the first product information is not abnormal but the second product information is abnormal. In this case, the first product information can be directly used to update the second product information in the system database, that is, the first product information on the terminal of the product to be tested is uploaded to the system database to update the second product information in the system database, so as to ensure the consistency of the first product information on the terminal of the product to be tested and the second product information on the system database, so as to ensure the realization of the Internet of Things function. It can be understood that the first product information with normal data detection is used to directly update the second product information with abnormal data detection, without the need for consistency diagnosis, which helps to improve the real-time repair and update of the second product information with abnormalities in the system database and improve the repair efficiency of product information.

[0103] S503: If the first detection result is that the data detection is abnormal, and the second detection result is that the data detection is normal, the second product information is used to update the first product information on the terminal of the product to be tested.

[0104] In this embodiment, when the first detection result of the formal detection of the first product information is a data detection abnormality, and the second detection result of the formal detection of the second product information is a data detection normal, it means that at least one of the data type, data format and data length of the first product information obtained by the information diagnosis program does not meet the data standard, while the data type, data format and data length of the second product information all meet the data standard, indicating that the first product information is abnormal but the second product information is not abnormal. In this case, the second product information can be directly used to update the first product information in the product terminal to be tested, so as to ensure the consistency of the first product information on the product terminal to be tested and the second product information on the system database, so as to ensure the realization of the Internet of Things function. It can be understood that the use of the second product information with normal data detection to directly update the first product information with abnormal data detection, without the need for consistency diagnosis, helps to improve the real-time repair and update of the first product information with abnormalities in the system database, and improve the efficiency of product information repair.

[0105] S504: If both the first detection result and the second detection result are data detection abnormalities, abnormal diagnosis reminder information is generated.

[0106] In this embodiment, when the first detection result of the formal detection of the first product information is a data detection abnormality, and the second detection result of the formal detection of the second product information is a data detection abnormality, it means that at least one of the data type, data format and data length in the first product information and the second product information obtained by the information diagnosis program does not meet the data standard, and it can be determined that both the first product information and the second product information are abnormal, and abnormal diagnosis reminder information is generated. The abnormal diagnosis reminder information is sent to the client corresponding to the corresponding monitoring personnel, so that the monitoring personnel can promptly perform manual detection and processing on the first product information and the second product information where both the first detection result and the second detection result are data detection abnormalities, so as to promptly discover the cause of the abnormality and perform manual repair, which helps to improve the efficiency of abnormality repair.

[0107] In one embodiment, after step S203, that is, after performing a formal detection on the first product information to obtain a first detection result, and performing a formal detection on the second product information to obtain a second detection result, the information detection and processing method based on the Internet of Things also includes: if the first detection result and / or the second detection result is a data detection abnormality, updating the current abnormal number of times; if the current abnormal number of times is less than a preset number threshold, reacquiring the first product information and / or the second product information and performing a formal detection.

[0108] The current number of abnormalities refers to the number of abnormal data detections obtained when the same product information is collected for form detection during the current information detection process. The preset number threshold is a preset number of times used to evaluate whether it is necessary to continue to re-perform form detection.

[0109] In the first example of the above embodiment, when the first detection result is a data detection anomaly, the current anomaly count corresponding to the first product information is updated, that is, the current anomaly count corresponding to the first product information is increased by 1; then the current anomaly count corresponding to the first product information is compared with the preset number threshold; if the current anomaly count is less than the preset number threshold, the first product information corresponding to the terminal of the product to be tested is collected again to obtain the first product information, and the step of performing a formal detection on the first product information to obtain the first detection result is performed; if the current anomaly count is not less than the preset number threshold, the subsequent step S204 is executed. This processing method can effectively avoid the interference of the data anomaly of the first product information caused by the external environment on the information detection processing process, making the subsequent information detection processing process more accurate.

[0110] In the second example of the above embodiment, when the second detection result is a data detection anomaly, the current anomaly count corresponding to the second product information is updated, that is, the current anomaly count corresponding to the second product information is increased by 1; then the current anomaly count corresponding to the second product information is compared with the preset number threshold; if the current anomaly count is less than the preset number threshold, the second product information corresponding to the terminal of the product to be tested is collected again to obtain the second product information, and the step of performing a formal detection on the second product information to obtain the second detection result is performed; if the current anomaly count is not less than the preset number threshold, the subsequent step S204 is executed. This processing method can effectively avoid the interference of the data anomaly of the second product information caused by the external environment on the information detection processing process, making the subsequent information detection processing process more accurate.

[0111] In the third example in the above embodiment, when both the first detection result and the second detection result are data detection anomalies, the processing process simultaneously executes the processes of the above first example and the second example, which are not described one by one here to avoid repetition.

[0112] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0113] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 6As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile 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 the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to execute the data adopted or generated by the process of the information detection processing method based on the Internet of Things. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an information detection processing method based on the Internet of Things is implemented. It can be understood that the computer device can be a device for installing a client of the Internet of Things system, or it can be a server in the Internet of Things system.

[0114] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the information detection and processing method based on the Internet of Things in the above embodiment is implemented, for example Figure 2 S201-S204 as shown, or Figure 3 to Figure 4 As shown in , to avoid repetition, it will not be described here. It can be understood that the computer program here is specifically the information diagnosis program in the above embodiment.

[0115] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the information detection and processing method based on the Internet of Things in the above embodiment is implemented, for example Figure 2 S201-S204 as shown, or Figure 3 to Figure 4 As shown in , to avoid repetition, it will not be described here. It can be understood that the computer program here is specifically the information diagnosis program in the above embodiment.

[0116] In one embodiment, an Internet of Things system is provided, including a server, at least one client, and at least one product terminal. The server is connected to at least one of the clients and at least one of the product terminals, and the client is connected to at least one of the product terminals. The client or the server is provided with a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the information detection and processing method based on the Internet of Things in the above embodiment is implemented, for example Figure 2 S201-S204 as shown, or Figure 3 to Figure 4 As shown in , to avoid repetition, it will not be described here. It can be understood that the computer program here is specifically the information diagnosis program in the above embodiment.

[0117] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. 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. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0118] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

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

Claims

1. An information detection and processing method based on the Internet of Things, characterized in that: include: Collecting first product information corresponding to the product terminal to be tested, wherein the first product information includes a terminal identifier and at least one product attribute data; The product attribute data is data specific to the product terminal to be tested; Based on the terminal identification, query the system database to determine whether bound product information corresponding to the terminal identification is stored; If the bound product information is stored, the bound product information is determined as second product information corresponding to the terminal identifier; the second product information includes at least one product attribute data; If the bound product information is not stored, triggering the information generation tool to generate second product information carrying a generation tag corresponding to the terminal identifier; the generation tag is a tag that identifies the second product information as newly generated product information and is used to locate product information anomalies; Performing a form test on the first product information to obtain a first test result, and performing a form test on the second product information to obtain a second test result; the form test is a process for detecting whether the data type, data format and data length of the product attribute data in the first product information and / or the second product information conform to corresponding data standards; Based on the first detection result and the second detection result, diagnosing and updating the first product information and / or the second product information, including: If the first detection result is that the data detection is normal, and the second detection result is that the data detection is abnormal, then using the first product information to update the second product information in the system database; If the first detection result is that the data detection is abnormal, and the second detection result is that the data detection is normal, the second product information is used to update the first product information on the terminal of the product to be tested.

2. The information detection and processing method based on the Internet of Things according to claim 1, characterized in that: Each product attribute data includes a data type and a product attribute value; The collecting of first product information corresponding to the terminal of the product to be tested includes: generating a first data query request, wherein the first data query request includes at least one request data corresponding to the data type and a preset time interval; According to the preset time interval, at least one request data is sent to the terminal of the product to be tested, and a product attribute value corresponding to the data type returned by the terminal of the product to be tested is received to form the product attribute data.

3. The information detection and processing method based on the Internet of Things according to claim 1, characterized in that: The performing diagnosis and 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 both the first test result and the second test result are normal data detection, the first product information and the second product information are diagnosed for consistency to obtain a diagnosis result; if the diagnosis result is a diagnosis failure, the first product information is used to update the second product information in the system database.

4. The information detection and processing method based on the Internet of Things according to claim 1, characterized in that: The performing diagnosis and 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 both the first detection result and the second detection result are data detection abnormalities, abnormal diagnosis reminder information is generated.

5. The information detection and processing method based on the Internet of Things according to claim 1, characterized in that: Before collecting the first product information corresponding to the terminal of the product to be tested, the information detection and processing method based on the Internet of Things also includes: initializing the information collection port and establishing a diagnostic communication channel.

6. The information detection and processing method based on the Internet of Things according to claim 1, characterized in that: After performing a formal detection on the first product information to obtain a first detection result, and performing a formal detection on the second product information to obtain a second detection result, the information detection and processing method based on the Internet of Things further includes: If the first detection result and / or the second detection result is a data detection anomaly, the current number of anomalies is updated. If the current number of anomalies is less than a preset number threshold, the first product information and / or the second product information is re-acquired and a form detection is performed.

7. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the information detection and processing method based on the Internet of Things as described in any one of claims 1 to 6 is implemented.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the information detection and processing method based on the Internet of Things as described in any one of claims 1 to 6 is implemented.

9. An Internet of Things system, comprising a server, at least one client and at least one product terminal, wherein the server is connected to at least one of the client and at least one of the product terminals, and the client is connected to at least one of the product terminals, characterized in that: The client or the server is provided with a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the information detection and processing method based on the Internet of Things as described in any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Network cell equipment data maintenance method and device

    CN105227333A

  • Industrial equipment management method and system based on Internet of Things

    CN108737555A