A linkage processing method, apparatus, device, and storage medium
By using a streaming data processing engine and message queue technology, the system directly obtains the status of target single indicators of IoT devices and performs linkage processing based on joint diagnostic rules. This solves the problem of large development workload in complex IoT business scenarios and achieves efficient and real-time linkage processing.
Patent Information
- Application Number
- CN202111597470.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-24
- Publication Date
- 2025-12-23
- Estimated Expiration
- 2041-12-24
AI Technical Summary
Existing technologies require customized processing solutions for each complex IoT business scenario, resulting in a large development workload and making them unsuitable for scenarios with high real-time requirements.
By employing a streaming data processing engine and message queue, the system obtains the status of target individual indicators of an object, determines the joint diagnostic results based on joint diagnostic rules, and executes linked processing operations. This reduces the steps of obtaining and calculating individual indicator data, and improves real-time performance and applicability.
It enables efficient and real-time collaborative processing across various business scenarios, reducing development workload and improving data processing efficiency and applicability.
Smart Images

Figure CN114418319B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of Internet of Things, and in particular to a linkage processing method and device, equipment and a storage medium. BACKGROUND
[0002] With the development of technology, complex Internet of Things business scenarios can involve joint state diagnosis of multiple devices. For example, in the smart agriculture scenario, it is necessary to combine temperature, humidity, historical irrigation time and other factors in the field to determine whether to start the irrigation switch and estimate the irrigation duration.
[0003] The existing solutions for scenarios involving comprehensive decision-making processing of multiple state parameters generally involve writing customized processing solutions for each business scenario, using periodically collected state data in combination with customized processing solutions to perform decision-making processing on objects in the business scenario. This method is not suitable for complex business scenarios, as it requires a large amount of development work and is not universal, and the periodic processing method is not suitable for scenarios with high real-time requirements. SUMMARY
[0004] The present application aims to at least solve one of the technical problems in the prior art. To this end, the first aspect of the present application proposes a linkage processing method, which comprises:
[0005] determining an object to be diagnosed and a business to be diagnosed;
[0006] based on a stream data processing engine, obtaining a corresponding joint diagnosis rule according to the business to be diagnosed, and determining a target single indicator included in the joint diagnosis rule;
[0007] obtaining the state corresponding to the target single indicator of the object from the message queue;
[0008] determining a joint diagnosis result according to the state corresponding to the target single indicator and the joint diagnosis rule;
[0009] performing a linkage processing operation on the object according to the joint diagnosis result.
[0010] Optionally, before determining the object to be diagnosed and the business to be diagnosed, the method further comprises:
[0011] receiving real-time detection data of a plurality of objects collected by a plurality of sensing devices from a message queue;
[0012] processing the real-time detection data according to a preset business indicator configuration rule to obtain single indicator data of each object;
[0013] determining the state corresponding to the single indicator data according to a preset single diagnosis rule;
[0014] Send the state corresponding to the single indicator data of each object to a message queue.
[0015] Optionally, the business indicator configuration rule includes an object and indicator name field, an associated sensing device field, and an associated parameter field, and the processing of the real-time detection data according to the preset business indicator configuration rule includes:
[0016] Obtaining a business indicator configuration rule corresponding to the object;
[0017] Obtaining at least one single indicator data of the object according to the associated sensing device field information and the associated parameter field information in the business indicator configuration rule;
[0018] Storing the single indicator data in a data packet corresponding to the object and the indicator name.
[0019] Optionally, the performing of the linkage processing operation on the object with respect to the business to be diagnosed according to the joint diagnosis result includes:
[0020] Obtaining a linkage processing strategy pre-configured for the joint diagnosis result;
[0021] Controlling a corresponding device to perform a target operation according to the linkage processing strategy, the target operation being associated with the object and the business to be diagnosed.
[0022] Optionally, after determining the joint diagnosis result, the method further includes sending a notification message to a target terminal.
[0023] The second aspect of the application provides a linkage processing device, and the device includes:
[0024] A diagnosis determination module is configured to determine an object to be diagnosed and a business to be diagnosed.
[0025] A single indicator determination module is configured to obtain a joint diagnosis rule corresponding to the business to be diagnosed based on a stream data processing engine, and determine a target single indicator included in the joint diagnosis rule.
[0026] A state acquisition module is configured to obtain a state corresponding to the target single indicator of the object from a message queue.
[0027] A diagnosis module is configured to determine a joint diagnosis result according to the state corresponding to the target single indicator and the joint diagnosis rule.
[0028] An execution module is configured to perform a linkage processing operation on the object with respect to the business to be diagnosed according to the joint diagnosis result.
[0029] Optionally, the device further comprises:
[0030] a receiving module configured to receive real-time detection data of a plurality of objects collected by a plurality of sensing devices from a message queue;
[0031] a processing module configured to process the real-time detection data according to a preset service index configuration rule to obtain single index data of each object;
[0032] a state determining module configured to determine a state corresponding to the single index data of each object according to a preset single diagnosis rule;
[0033] a sending module configured to send the state corresponding to the single index data of each object to the message queue.
[0034] Optionally, the service index configuration rule comprises an object and index name field, an associated sensing device field and an associated parameter field, and the processing module is specifically configured to:
[0035] obtain the service index configuration rule corresponding to the object;
[0036] obtain at least one single index data of the object according to the associated sensing device field information and the associated parameter field information in the service index configuration rule;
[0037] store the single index data in a data packet corresponding to the object and index name.
[0038] Optionally, the execution module is specifically configured to:
[0039] obtain a linkage processing strategy pre-configured for the joint diagnosis result;
[0040] control a corresponding device to perform a target operation according to the linkage processing strategy, the target operation being associated with the object and the to-be-diagnosed service.
[0041] Optionally, the device further comprises a notification module configured to send a notification message to a target terminal.
[0042] A third aspect of the present application provides a device, which comprises a processor and a memory, and the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement the linkage processing method according to the first aspect.
[0043] The fourth aspect of the present application provides a computer readable storage medium, wherein the storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the linkage processing method as described in the first aspect.
[0044] According to the specific embodiments provided by the present application, the present application has the following technical effects:
[0045] The linkage processing method provided by the embodiments of the present application determines an object to be diagnosed and a service to be diagnosed; acquires a corresponding joint diagnosis rule based on a stream data processing engine according to the service to be diagnosed, and determines a target single index included in the joint diagnosis rule; acquires a state corresponding to the target single index of the object from a message queue; determines a joint diagnosis result according to the state corresponding to the target single index and the joint diagnosis rule; and performs a linkage processing operation on the object with respect to the service to be diagnosed according to the joint diagnosis result. In this scheme, the state corresponding to the target single index of the object is directly acquired from the message queue, thereby eliminating the step of acquiring single index data and calculating the state of the single index, shortening the data processing time, and further shortening the data processing time by using the stream data processing engine, thereby improving the real-time performance. Moreover, because the message queue includes different service index data of different objects, the method is applicable to various service scenarios.
[0046] Additional aspects and advantages of the present application will be described in the following description, will become apparent from the following description, or will be learned by practice of the present application. BRIEF DESCRIPTION OF DRAWINGS
[0047] In order to more clearly illustrate the technical solutions of the present application, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor on the basis of these drawings.
[0048] Figure 1 A step flowchart of a linkage processing method provided by the embodiments of the present application;
[0049] Figure 2 A step flowchart of another linkage processing method provided by the embodiments of the present application;
[0050] Figure 3 A structure block diagram of a linkage processing device provided by the embodiments of the present application. DETAILED DESCRIPTION
[0051] The technical solutions in the embodiments of the present application will be clearly and completely described with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work belong to the scope of the present application.
[0052] Figure 1 A flowchart of a linkage processing method is provided in the embodiments of the present application. The present specification provides method operation steps as described in the embodiments or flowcharts, but more or fewer operation steps can be included based on conventional or non-creative work. In actual system or server product execution, the method can be executed in sequence or in parallel (for example, in a parallel processor or multi-thread processing environment) as shown in the embodiments or the drawings.
[0053] The method can include the following steps:
[0054] Step 101, determining an object to be diagnosed and a business to be diagnosed.
[0055] The embodiments of the present application are mainly aimed at obtaining the state of an Internet of Things terminal device through a mobile communication network, controlling the operation of the Internet of Things terminal device, and controlling the operation of the Internet of Things terminal device in smart agriculture, smart fishing, unmanned aerial vehicle control, and other Internet of Things projects.
[0056] The monitoring and diagnosis of the state of the device directly affect the production and operation of the enterprise and the economic benefit. Effective and real-time device state diagnosis can timely make reasonable maintenance decisions when the device state changes, avoid losses, and make the device operation develop towards the expected state.
[0057] For example, in the smart agriculture scenario, it is necessary to combine the temperature, humidity, historical irrigation time, and other factors of the agricultural park to determine whether to start the irrigation switch and determine the irrigation time.
[0058] In the unmanned aerial vehicle control scenario, it is necessary to combine the current latitude and longitude, flight height, power, flight attitude, flight speed, obstacles, and other factors of the unmanned aerial vehicle to determine whether the unmanned aerial vehicle needs to change direction and re-determine the flight route.
[0059] In the embodiments of the present application, the object to be diagnosed is the above-mentioned agricultural park, unmanned aerial vehicle, and other Internet of Things terminal devices, and the business to be diagnosed is the judgment of the business associated with the Internet of Things terminal device or the state of the Internet of Things terminal device itself, for example, whether the agricultural park starts the irrigation switch, determines the irrigation time, whether the unmanned aerial vehicle needs to change direction, and re-determines the flight route.
[0060] In step 102, based on the stream data processing engine, a corresponding joint diagnosis rule is acquired according to the business to be diagnosed, and a target single index included in the joint diagnosis rule is determined.
[0061] The stream data processing engine is a general stream computing engine framework for real-time data processing, has the characteristics of high throughput, low delay and fault tolerance, supports high concurrency, supports advanced semantics and complex event processing functions. Specifically, the stream data processing engine can be flink.
[0062] In the embodiment of the application, flink is used to perform data processing. Flink is an open source stream processing framework developed by the Apache Software Foundation, and its core is a distributed stream data flow engine written in Java and Scala. Flink executes any stream data program in a data parallel and pipelining manner, which can significantly improve the data processing efficiency and meet the real-time requirement.
[0063] The business to be diagnosed and the joint diagnosis rule have a one-to-one correspondence relationship. Different businesses to be diagnosed correspond to different joint diagnosis rules. The corresponding relationship can be set in the memory of the server, and the corresponding joint diagnosis rule can be called according to the business to be diagnosed.
[0064] The joint diagnosis rule is used for joint diagnosis of the object to be diagnosed. The joint diagnosis rule includes: the business to be diagnosed, the state of the single index of the object, and the joint diagnosis expression.
[0065] For example, the business to be diagnosed can be whether the blueberry garden area needs to be irrigated, the state of the single index of the object can be whether the temperature of the blueberry garden area is greater than X, whether the humidity of the blueberry garden area is less than Y, and whether the soil humidity of the blueberry garden area is less than Z, and the joint diagnosis expression can be a logical expression connected by and, or, not and the like.
[0066] The joint diagnosis rule is read, the state of the single index of the object included in the joint diagnosis rule is acquired, and the single index of the object is determined as the target single index.
[0067] The target single index includes the object to be diagnosed and the single index name. For example, the target single index can be the temperature of the blueberry garden area, the humidity of the blueberry garden area, and the soil humidity of the blueberry garden area.
[0068] In step 103, the state corresponding to the target single index of the object is acquired from the message queue.
[0069] The message queue includes real-time single index state data of a plurality of objects. The single index state data is calculated according to the single diagnosis rule on the real-time single index data.
[0070] The server can acquire real-time single-item indicator data of multiple objects, and perform rapid calculation on the single-item indicator data through a streaming data processing engine to obtain real-time state data. The state data is stored in an Hbase database for backup, and is sent to a message queue to meet real-time requirements for subsequent use.
[0071] Therefore, the state data corresponding to the target single-item indicator of the object to be diagnosed can be directly acquired from the message queue.
[0072] In the prior method, in the diagnosis of a service, target single-item indicators included in joint diagnosis rules are first determined, and then target single-item indicator data is periodically acquired from corresponding sensor devices, and the state corresponding to the single-item indicator is calculated according to single-item diagnosis rules.
[0073] In the embodiment of the present application, the server pre-acquires real-time single-item indicator data collected by all sensors, and utilizes a streaming data processing engine to calculate the state corresponding to the single-item indicator according to single-item diagnosis rules, and then sends the state data corresponding to the single-item indicator of each object to a message queue, that is, the message queue includes real-time state data of each single-item indicator of each object. In this way, when service diagnosis of an object is required, the real-time state data is directly acquired, avoiding the steps of acquiring and calculating the single-item indicator data, and improving the execution efficiency of service diagnosis.
[0074] Moreover, the streaming data processing engine sends the processing result to the message queue for use in the next step after each calculation, and also stores the processing result in a database for backup. In the present application, the data source of each calculation step is the message queue, so that the next event processing is driven by data flow, and the real-time performance of data processing is improved.
[0075] In addition, the message queue stores state data of each single-item indicator of each object, and when any service of any object is diagnosed, the data can be directly called from the message queue, achieving universality for different service scenarios. In this way, compared with the prior art of writing a customized processing method for each service scenario, the embodiment of the present application has small development workload, achieves universality for different service scenarios, saves calculation and processing time, has high real-time performance, and improves data processing efficiency.
[0076] In step 104, a joint diagnosis result is determined according to the state corresponding to the target single-item indicator and the joint diagnosis rules.
[0077] The state of the target single-item indicator object obtained in step 103 is substituted into the joint diagnosis rules, and the joint diagnosis result can be obtained by logical operation on each target single-item indicator state data.
[0078] For example, if the joint diagnosis rule is: if (the temperature of the blueberry garden area 1 is greater than X) and (the humidity of the blueberry garden area 1 is less than Y) and (the soil humidity of the blueberry garden area 1 is less than Z), the blueberry garden area 1 needs to be irrigated.
[0079] Then, according to the target single indicator state data, it is determined whether the above three conditions are met at the same time. If they are met at the same time, the joint diagnosis result that the blueberry garden area 1 needs to be irrigated is obtained. If one of the conditions is not met, the joint diagnosis result that the blueberry garden area 1 does not need to be irrigated is obtained.
[0080] Step 105, performing a linkage processing operation on the object according to the joint diagnosis result.
[0081] Specifically, the operation rule of the linkage processing operation can be configured in advance. The operation rule of the linkage processing can include an operation type, an operation device, an operation content, and the like. The operation rule corresponds to the object to be diagnosed, the business to be diagnosed, and the joint diagnosis result.
[0082] When the joint diagnosis result of the business to be diagnosed of the object to be diagnosed is obtained, the operation rule of the corresponding linkage processing can be determined, and then the specified program is triggered and executed according to the set rule.
[0083] The linkage processing operation can include controlling other devices to execute a preset program or triggering a preset program to be executed by itself. For example, for the server of the blueberry garden area 1, the irrigation device of the blueberry garden area 1 can be controlled to open the switch; for the unmanned aerial vehicle, the steering device of the unmanned aerial vehicle can be triggered to adjust the flight direction.
[0084] In summary, the linkage processing method provided by the embodiment of the present application determines the object to be diagnosed and the business to be diagnosed; based on the stream data processing engine, the corresponding joint diagnosis rule is obtained according to the business to be diagnosed, and the target single indicator included in the joint diagnosis rule is determined; the state corresponding to the target single indicator of the object is obtained from the message queue; according to the state corresponding to the target single indicator and the joint diagnosis rule, the joint diagnosis result is determined; and according to the joint diagnosis result, the linkage processing operation on the object with respect to the business to be diagnosed is performed. In this scheme, the state corresponding to the target single indicator of the object is directly obtained from the message queue, which eliminates the step of obtaining single indicator data and calculating single indicator state, shortens the data processing time, and further shortens the data processing time by using the stream data processing engine, thereby improving the real-time performance. Moreover, because the message queue includes different business indicator data of different objects, the method is applicable to various business scenarios.
[0085] Figure 2A flowchart of another linkage processing method provided by an embodiment of the present application.
[0086] Step 201: Real-time detection data of a plurality of objects collected by a plurality of sensor devices is received from a message queue.
[0087] The plurality of sensor devices are installed inside the object to be diagnosed to collect state data of the object to be diagnosed itself, or the plurality of sensor devices are arranged in an environment area where the object to be diagnosed is located to collect environment data of the area around the object to be diagnosed.
[0088] For example, an inertial navigation sensor is installed inside a drone to collect flight attitude data of the drone, and a temperature sensor and a humidity sensor are arranged in a space area of a blueberry garden area to collect temperature and humidity data of the space where the blueberry garden area is located.
[0089] The data collected by the sensors is delivered to the server in the form of a message queue.
[0090] A message queue is a container that saves messages in the process of message transmission. A message queue manager acts as an intermediary when relaying messages from their sources to their targets. The main purpose of a queue is to provide routing and guarantee the delivery of messages; if the recipient is unavailable when the message is sent, the message queue will keep the message until it can be successfully delivered.
[0091] Using a message queue to receive data can guarantee the real-time and reliability of data transmission. The server can store the received real-time detection data in Hbase (Hadoop Database), which is a high-reliability, high-performance, column-oriented, scalable distributed storage system.
[0092] Step 202: The real-time detection data is processed according to a preset business index configuration rule to obtain single index data of each object.
[0093] The business index configuration rule mainly refers to the correspondence between the index name and the index source, and the index source refers to the sensor identifier and parameter identifier from which the data information corresponding to the index name is derived. The business index configuration rule can be stored in a data table, and the data table includes a plurality of business index configuration rules to indicate the sources of the single index data of each object.
[0094] After obtaining the real-time detection data, the real-time detection data is converted into a plurality of single index data according to the business index configuration rule.
[0095] For example, the server receives detection data from air sensors in multiple areas, and converts the detection data into single indicator data such as temperature data of the first area of the blueberry garden, humidity data of the first area of the blueberry garden, temperature data of the second area of the blueberry garden, humidity data of the second area of the blueberry garden, and the like according to the business indicator configuration rule.
[0096] Optionally, the business indicator configuration rule includes an object and indicator name field, an associated sensor device field, and an associated parameter field. The processing of the real-time detection data according to the preset business indicator configuration rule includes the following steps A1-A3.
[0097] A1, obtaining the business indicator configuration rule corresponding to the object;
[0098] A2, obtaining at least one single indicator data of the object according to the associated sensor device field information and the associated parameter field information in the business indicator configuration rule;
[0099] A3, storing the single indicator data in a storage area corresponding to the object and indicator name.
[0100] In steps A1-A3, the business indicator configuration rule includes an object and indicator name field, according to which the business indicator configuration rule corresponding to the current object can be obtained. Then, according to the associated sensor device field information and the associated parameter field information, multiple single indicator data belonging to the object can be obtained from a large amount of detection data. In order to facilitate subsequent retrieval and use, these single indicator data can be stored in the Hbase corresponding storage area.
[0101] Step 203, determining the state corresponding to the single indicator data according to the preset single diagnosis rule.
[0102] The single diagnosis rule includes single indicator, single diagnosis expression, and diagnosis threshold value, etc. The single indicator is operated by the single diagnosis expression, and the operation result is compared with the diagnosis threshold value to obtain the state of the single indicator.
[0103] For example, the single indicator is the temperature of the first area of the blueberry garden at 8 o'clock 25 degrees, the temperature of the first area of the blueberry garden at 14 o'clock 33 degrees, and the temperature of the first area of the blueberry garden at 21 o'clock 27 degrees. The single diagnosis expression is average(), and the diagnosis threshold value is 30 degrees. The single indicator is operated by the single diagnosis expression, and the operation result is 28.3 degrees. The operation result 28.3 degrees is compared with 30 degrees, and the state of the single indicator is that the average temperature of the first area of the blueberry garden is less than 30 degrees.
[0104] Step 204, sending the state corresponding to the single indicator data of each object to the message queue.
[0105] The stream data processing engine sends the state data corresponding to each single index data to the message queue for use by the next step after calculating the state each time. The application drives the next event processing by data stream to realize real-time stream processing.
[0106] In the message queue, the state corresponding to each single index data can be stored in the format of object and index name to facilitate subsequent retrieval in joint diagnosis.
[0107] Step 205: determining the object to be diagnosed and the business to be diagnosed.
[0108] In the embodiment of the application, step 205 can refer to step 101, which will not be repeated here.
[0109] Step 206: based on the stream data processing engine, obtaining the corresponding joint diagnosis rule according to the business to be diagnosed, and determining the target single index included in the joint diagnosis rule.
[0110] In the embodiment of the application, step 206 can refer to step 102, which will not be repeated here.
[0111] Step 207: obtaining the state corresponding to the target single index of the object from the message queue.
[0112] In the embodiment of the application, step 207 can refer to step 103, which will not be repeated here.
[0113] Step 208: determining the joint diagnosis result according to the state corresponding to the target single index and the joint diagnosis rule.
[0114] In the embodiment of the application, step 208 can refer to step 104, which will not be repeated here.
[0115] Step 209: obtaining the linkage processing strategy pre-configured for the joint diagnosis result.
[0116] In the embodiment of the application, step 209 can refer to step 105, which will not be repeated here.
[0117] Step 210: controlling the corresponding device to perform the target operation associated with the object and the business to be diagnosed according to the linkage processing strategy.
[0118] Step 211: sending a notification message to the target terminal.
[0119] The terminal device and the notification mode that need to be notified of the joint diagnosis result can be pre-set according to the joint diagnosis result, so that the management personnel can know the diagnosis result in time. The notification mode can include email, short message, WeChat message, DingDing message, voice call, etc.
[0120] In conclusion, Figure 2 The linkage processing method in the middle, in addition to having Figure 1 In addition to the beneficial effects of the linkage processing method, the use of a message queue to receive data ensures the real-time and reliable transmission of data. Furthermore, real-time detection data is processed according to preset business indicator configuration rules. The pre-setting of these rules improves data processing efficiency and ensures the real-time nature of the calculation results. Moreover, the status of individual indicator data is determined according to preset individual diagnostic rules, and the corresponding status is sent to the message queue. This facilitates efficient retrieval based on object and indicator name, further improving data processing efficiency.
[0121] Figure 3 This is a structural block diagram of the linkage processing device provided in an embodiment of the present invention.
[0122] like Figure 3 As shown, the linkage processing device 300 includes:
[0123] The diagnosis determination module 301 is used to determine the objects to be diagnosed and the services to be diagnosed.
[0124] The single indicator determination module 302 is used to obtain the corresponding joint diagnosis rules based on the business to be diagnosed according to the streaming data processing engine, and determine the target single indicators included in the joint diagnosis rules.
[0125] The status acquisition module 303 is used to acquire the status corresponding to the target single indicator of the object from the message queue;
[0126] The diagnostic module 304 is used to determine the joint diagnostic result based on the status corresponding to the target single indicator and the joint diagnostic rules;
[0127] The execution module 305 is used to perform a linkage processing operation on the object regarding the business to be diagnosed based on the joint diagnostic results.
[0128] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0129] In another embodiment of the present invention, a device is also provided, the device including a processor and a memory, the memory storing at least one instruction, at least one program, code set or instruction set, the at least one instruction, the at least one program, the code set or instruction set being loaded and executed by the processor to implement the linkage processing method described in the embodiment of the present invention.
[0130] In yet another embodiment of the present application, a computer readable storage medium is also provided, in which at least one instruction, at least one program, a code set or an instruction set is stored, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the linkage processing method described in the embodiments of the present application.
[0131] In the above embodiments, the implementation can be wholly or partially achieved by software, hardware, firmware or any combination thereof. When implemented by software, the implementation can be wholly or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are wholly or partially generated. The computer can be a general purpose computer, a special purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be transferred from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) manner. The computer readable storage medium can be any available medium accessible by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media sets. The available media can be magnetic media (for example, floppy disk, hard disk, magnetic tape), optical media (for example, DVD) or semiconductor media (for example, solid state disk (SSD)) and the like.
[0132] It should be noted that, in this document, the relationship terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between the entities or operations. Moreover, the terms "include", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the processes, methods, articles or devices including a series of elements not only include those elements, but also include other elements not explicitly listed or inherent to such processes, methods, articles or devices. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0133] The various embodiments in the specification are described in a related manner, and the same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the difference from other embodiments. In particular, the system embodiments are described simply because they are basically similar to the method embodiments, and the relevant parts can be referred to the part of the method embodiments.
[0134] The above description is merely the preferred embodiment of the present application, but not for limiting the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method of linked processing, characterized by, The method comprises: determining an object to be diagnosed and a service to be diagnosed; the object to be diagnosed is an Internet of Things terminal device, and the service to be diagnosed is a judgment of a service associated with the Internet of Things terminal device or a judgment of a state of the Internet of Things terminal device itself; based on a stream data processing engine, acquiring a corresponding joint diagnosis rule according to the service to be diagnosed, and determining a target single index included in the joint diagnosis rule; the joint diagnosis rule has a one-to-one correspondence with the service to be diagnosed, the joint diagnosis rule is a logical rule for jointly judging states of multiple target single indexes, the target single index is a device state or an environmental parameter related to the service to be diagnosed, and the target single index includes an object to be diagnosed and a single index name; acquiring a state corresponding to the target single index of the object from a message queue in which state data of each single index of each object is stored; the state corresponding to the target single index is obtained by pre-acquiring real-time single index data from a sensor by a server, and performing calculation on the real-time single index data according to a single diagnosis rule; the sensor is installed inside the object to be diagnosed, and collects state data of the object itself; or the sensor is arranged in an environmental area where the object is located, and collects environmental data of a surrounding area of the object; determining a joint diagnosis result according to the state corresponding to the target single index and the joint diagnosis rule; determining an operation rule of corresponding linkage processing according to the joint diagnosis result, and performing linkage processing operation on the object with respect to the service to be diagnosed according to the operation rule; the linkage processing operation is to control other devices to execute a preset program or trigger the self to execute a preset program; before determining the object to be diagnosed and the service to be diagnosed, further comprising: receiving real-time detection data of multiple objects collected by multiple sensing devices from a message queue; processing the real-time detection data according to a preset service index configuration rule to obtain single index data of each object; determining a state corresponding to the single index data according to a preset single diagnosis rule; sending the state corresponding to the single index data of each object to the message queue; the single diagnosis rule includes a single index, a single diagnosis expression and a diagnosis threshold, and the state corresponding to the single index data is determined according to the preset single diagnosis rule, which comprises: performing operation on the single index through the single diagnosis expression, and comparing the operation result with the diagnosis threshold to obtain the state of the single index data.
2. The method of claim 1, wherein, The service index configuration rule includes an object and an index name field, an associated sensing device field and an associated parameter field, and the real-time detection data is processed according to the preset service index configuration rule, which comprises: acquiring a service index configuration rule corresponding to the object; acquiring at least one single index data of the object according to the associated sensing device field information and the associated parameter field information in the service index configuration rule Store the single-item indicator data in a data packet corresponding to the object and the indicator name.
3. The method according to claim 1 or 2, characterized in that, The operation of performing the linkage processing operation on the object in relation to the business to be diagnosed according to the joint diagnosis result comprises: Obtaining a linkage processing strategy pre-configured for the joint diagnosis result; According to the linkage processing strategy, control the corresponding device to perform the target operation, the target operation is associated with the object and the business to be diagnosed.
4. The method according to claim 1 or 2, characterized in that, After determining the joint diagnosis result, further comprising: sending a notification message to the target terminal.
5. A linked processing apparatus characterized by comprising: The device comprises: A diagnosis determination module is configured to determine an object to be diagnosed and a business to be diagnosed. The object to be diagnosed is an Internet of Things terminal device, and the business to be diagnosed is a judgment of a business associated with the Internet of Things terminal device or a judgment of a state of the Internet of Things terminal device itself. A single-item indicator determination module is configured to obtain a joint diagnosis rule corresponding to the business to be diagnosed based on a stream data processing engine, and determine target single-item indicators included in the joint diagnosis rule. The joint diagnosis rule has a one-to-one correspondence with the business to be diagnosed. The joint diagnosis rule is a logical rule for jointly judging states of multiple target single-item indicators. The target single-item indicators are device states or environmental parameters related to the business to be diagnosed. The target single-item indicators include an object to be diagnosed and a single-item indicator name. A state acquisition module is configured to acquire states corresponding to the target single-item indicators of the object from a message queue. The states corresponding to the target single-item indicators are obtained by a server pre-acquiring real-time single-item indicator data from a sensor and calculating the real-time single-item indicator data according to a single-item diagnosis rule. The sensor is installed inside the object to be diagnosed to collect state data of the object itself. Alternatively, the sensor is arranged in an environmental area where the object is located to collect environmental data in the surrounding area of the object. A diagnosis module is configured to determine a joint diagnosis result according to the states corresponding to the target single-item indicators and the joint diagnosis rule. An execution module is configured to determine an operation rule of linkage processing according to the joint diagnosis result, and perform a linkage processing operation on the object in relation to the business to be diagnosed according to the operation rule. The linkage processing operation is to control other devices to execute a preset program or trigger the devices to execute a preset program. The device further comprises: A receiving module is configured to receive real-time detection data of multiple objects collected by multiple sensor devices from a message queue in which state data of single-item indicators of each object is stored. A processing module is configured to process the real-time detection data according to a preset business indicator configuration rule to obtain single-item indicator data of each object. A state determination module is configured to determine states corresponding to the single-item indicator data according to a preset single-item diagnosis rule. A sending module is configured to send the states corresponding to the single-item indicator data of each object to the message queue. The single-item diagnosis rule includes a single-item indicator, a single-item diagnosis expression, and a diagnosis threshold. The state determination module is further configured to: The single-item diagnostic expression is used to operate the single-item index, and the operation result is compared with the diagnostic threshold to obtain the state of the single-item index data.
6. The apparatus of claim 5, wherein, The service index configuration rule includes an object and index name field, an associated sensor device field, and an associated parameter field, and the processing module is specifically configured to: Obtain the service index configuration rule corresponding to the object; According to the associated sensor device field information and the associated parameter field information in the service index configuration rule Obtain at least one single-item index data of the object; Store the single-item index data in the data packet corresponding to the object and the index name.
7. The apparatus of claim 5 or 6, wherein, The execution module is specifically configured to: Obtain a pre-configured linkage processing strategy for the joint diagnostic result; According to the linkage processing strategy, control the corresponding device to perform a target operation, and the target operation is associated with the object and the to-be-diagnosed service.
8. The apparatus of claim 5 or 6, wherein, The device further includes a notification module configured to send a notification message to a target terminal.
9. An apparatus, comprising: The device includes a processor and a memory, and the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the linkage processing method according to any one of claims 1-4.
10. A computer-readable storage medium, characterized in that, The storage medium stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the linkage processing method according to any one of claims 1-4.
Citation Information
Patent Citations
Event linkage processing method, device and system, electronic equipment and storage medium
CN111177214A
Data calculation system and method
CN111459986A