CN111897843A - Configuration method and device of data transfer strategy of Internet of things and computer equipment - Google Patents

Configuration method and device of data transfer strategy of Internet of things and computer equipment Download PDF

Info

Publication number
CN111897843A
CN111897843A CN202010568156.5A CN202010568156A CN111897843A CN 111897843 A CN111897843 A CN 111897843A CN 202010568156 A CN202010568156 A CN 202010568156A CN 111897843 A CN111897843 A CN 111897843A
Authority
CN
China
Prior art keywords
data
internet
things
circulation
strategy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010568156.5A
Other languages
Chinese (zh)
Other versions
CN111897843B (en
Inventor
葛长斌
陈琪
傅东生
李鹏
马量
彭宏飞
陈斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Miracle Intelligent Network Co ltd
Original Assignee
Miracle Intelligent Network Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Miracle Intelligent Network Co ltd filed Critical Miracle Intelligent Network Co ltd
Priority to CN202010568156.5A priority Critical patent/CN111897843B/en
Publication of CN111897843A publication Critical patent/CN111897843A/en
Application granted granted Critical
Publication of CN111897843B publication Critical patent/CN111897843B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24568Data stream processing; Continuous queries

Abstract

The application relates to a configuration method and device of an Internet of things data flow strategy and computer equipment. The method comprises the following steps: receiving a data flow strategy configuration instruction; acquiring a flow document, a pre-configured middleware instance and pre-configured internet of things resource data according to a data flow strategy configuration instruction; returning the streaming document, the middleware instance and the internet of things resource data to a terminal corresponding to the data streaming strategy configuration instruction, so that the terminal receives a first selection operation on the middleware instance according to the streaming document, generates a target middleware instance according to the first selection operation, receives a second selection operation on the internet of things resource data according to the streaming document, and generates streaming type data according to the second selection operation; and receiving the target intermediate instance and the streaming type data sent by the terminal, and generating a data streaming strategy according to the target intermediate instance and the streaming type data. By adopting the method, the interaction resources of the Internet of things platform can be saved.

Description

Configuration method and device of data transfer strategy of Internet of things and computer equipment
Technical Field
The application relates to the technical field of computers, in particular to a configuration method and device of a data flow strategy of the Internet of things, computer equipment and a storage medium.
Background
The Internet of things is used as an important component of a new generation of data technology, and automatic identification of products and interconnection and sharing of data are realized through the Internet by utilizing communication sensing technologies such as intelligent sensing and identification technologies. With the rapid development of the internet of things, more and more enterprises manage and analyze the internet of things equipment or products through the internet of things platform. In a traditional mode, when data flow interaction is performed in an internet of things platform, a data requester needs to initiate a data interaction request to the internet of things platform, so that the data flow is acquired from a data provider and returned to the data requester through the internet of things platform, frequent data interaction requests are needed, and more interaction resources of the internet of things platform are consumed.
Disclosure of Invention
Based on this, it is necessary to provide a method and an apparatus for configuring an internet of things data flow policy, a computer device, and a storage medium, which can save interaction resources of an internet of things platform, in order to solve the above technical problems.
A configuration method of a data flow strategy of an Internet of things comprises the following steps:
receiving a data flow strategy configuration instruction;
acquiring a flow document, a pre-configured middleware instance and pre-configured internet of things resource data according to the data flow strategy configuration instruction;
returning the circulation document, the middleware instance and the internet of things resource data to a terminal corresponding to the data circulation strategy configuration instruction, so that the terminal receives a first selection operation on the middleware instance according to the circulation document, generates a target middleware instance according to the first selection operation, receives a second selection operation on the internet of things resource data according to the circulation document, and generates circulation type data according to the second selection operation;
and receiving a target intermediate instance and circulation type data sent by the terminal, and generating a data circulation strategy according to the target intermediate instance and the circulation type data.
In one embodiment, the method further comprises:
screening the data to be circulated in the pre-configured data of the Internet of things according to the data circulation strategy;
and sending the circulation data to the target middleware example so that the requester acquires the corresponding circulation data in the target middleware example.
In one embodiment, the screening of the data flow in the pre-configured internet of things data according to the data flow policy includes:
extracting circulation type data from the data circulation strategy;
and screening related data corresponding to the circulation type data in the data of the Internet of things, and taking the related data as circulation data.
In one embodiment, the data flow policy configuration instruction carries a user identifier and an application identifier, and an organization to which the user identifier belongs corresponds to a plurality of preset application identifiers, and the method includes:
screening target application identifications from a plurality of preset application identifications corresponding to the organization to which the user identifications belong according to the target middleware example and the application identifications;
acquiring a configured data flow strategy corresponding to the target application identifier;
sending the configured data flow strategy to the terminal so that the terminal displays the configured data flow strategy through a data flow strategy configuration interface, receiving strategy configuration operation in the data flow strategy configuration interface, and generating a data flow strategy corresponding to the application identifier according to the strategy configuration operation;
and receiving a data flow strategy corresponding to the application identifier sent by the terminal.
In one embodiment, before the receiving the data flow policy configuration instruction, the method further includes:
receiving a middleware instance configuration instruction, wherein the middleware instance configuration instruction comprises a middleware type;
acquiring configuration data corresponding to the middleware type;
returning the configuration data to a terminal corresponding to the middleware instance configuration instruction so that the terminal can acquire basic data corresponding to the configuration data;
and receiving the basic data sent by the terminal, and generating a configured middleware instance.
An apparatus for configuring a data flow policy of an internet of things, the apparatus comprising:
the communication module is used for receiving a data flow strategy configuration instruction;
the acquisition module is used for acquiring a streaming document, a pre-configured middleware instance and pre-configured Internet of things resource data according to the data streaming strategy configuration instruction;
the communication module is further configured to return the circulation document, the middleware instance, and the internet of things resource data to a terminal corresponding to the data circulation policy configuration instruction, so that the terminal receives a first selection operation on the middleware instance according to the circulation document, generates a target middleware instance according to the first selection operation, receives a second selection operation on the internet of things resource data according to the circulation document, and generates circulation type data according to the second selection operation; receiving a target intermediate instance and flow type data sent by the terminal;
and the generating module is used for generating a data circulation strategy according to the target intermediate instance and the circulation type data.
In one embodiment, the apparatus further comprises: the screening module is used for screening the data to be transferred in the pre-configured Internet of things data according to the data transfer strategy; and sending the circulation data to the target middleware example so that the requester acquires the corresponding circulation data in the target middleware example.
In one embodiment, the screening module is further configured to extract flow type data in the data flow policy; and screening related data corresponding to the circulation type data in the data of the Internet of things, and taking the related data as circulation data.
A computer device comprising a memory and a processor, the memory storing a computer program operable on the processor, the processor implementing the steps in the various method embodiments described above when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the respective method embodiment described above.
The configuration method, the configuration device, the computer equipment and the storage medium of the internet of things data flow strategy receive a data flow strategy configuration instruction, obtain a flow document, a preconfigured middleware example and preconfigured internet of things resource data according to the data flow strategy configuration instruction, and return the data to a terminal corresponding to the data flow strategy configuration instruction, so that the terminal receives a first selection operation on the middleware example according to the flow document, generates a target middleware example according to the first selection operation, receives a second selection operation on the internet of things resource data according to the flow document, and generates flow type data according to the second selection operation. And further receiving the target intermediate instance and the streaming type data sent by the terminal, and generating a data streaming strategy according to the target intermediate instance and the streaming type data. The pre-configured middleware instance is configured according to the middleware provided by the data requester in advance, and the data flow transfer strategy is generated in advance through the transfer document, the pre-configured middleware instance and the pre-configured internet of things resource data, so that data can be transferred automatically according to the data flow strategy subsequently, the data requester is not required to send a data interaction request internet of things platform, frequent interaction requests are avoided, and interaction resources of the internet of things platform are effectively saved.
Drawings
Fig. 1 is an application environment diagram of a configuration method of a data flow policy of the internet of things in one embodiment;
fig. 2 is a schematic flow chart illustrating a configuration method of a data flow policy of the internet of things in one embodiment;
fig. 3 is a schematic flow chart illustrating a step of circulating pre-configured internet of things data according to a data circulation policy in an embodiment;
fig. 4 is a block diagram of a configuration apparatus of a data flow policy of the internet of things in one embodiment;
FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The configuration method of the data flow strategy of the internet of things can be applied to the application environment shown in fig. 1. Wherein the terminal 102 and the server 104 communicate via a network. When the terminal 102 logs in the internet of things platform, a data flow strategy configuration instruction can be generated through triggering operation, the server 104 receives the data flow strategy configuration instruction sent by the terminal 102, and obtains a flow document, a pre-configured middleware instance and pre-configured internet of things resource data according to the data flow strategy configuration instruction. Then, the server 104 returns the streaming document, the middleware instance and the internet of things resource data to the terminal 102, so that the terminal 102 receives a first selection operation on the middleware instance according to the streaming document, generates a target middleware instance according to the first selection operation, receives a second selection operation on the internet of things resource data according to the streaming document, and generates streaming type data according to the second selection operation. The server 104 receives the target intermediate instance and the flow type data sent by the terminal 102, and generates a data flow strategy according to the target intermediate instance and the flow type data. The terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. The server 104 may be implemented as a stand-alone server or as a server cluster comprised of multiple servers.
In an embodiment, as shown in fig. 2, a configuration method of a data flow policy of the internet of things is provided, which is described by taking the method as an example applied to the server in fig. 1, and includes the following steps:
step 202, receiving a data flow policy configuration instruction.
And 204, acquiring a circulation document, a pre-configured middleware instance and pre-configured Internet of things resource data according to the data circulation strategy configuration instruction.
The data flow strategy configuration instruction is used for instructing the server to configure the data flow strategy for the corresponding application of the internet of things. A user can log in the Internet of things platform through the terminal, and function configuration is carried out on the Internet of things application based on the Internet of things platform. The user may be an administrator of a certain tenant, or may be a tenant. For example, a tenant may be an enterprise. The internet of things application can be an application which is obtained by a user according to the incidence relation between the user and the role and between the role and the application, namely an application which is configured by the user with permission. The Internet of things platform can be used for monitoring, managing, analyzing and the like on Internet of things products or equipment through configured Internet of things application. For example, the internet of things platform can perform real-time panoramic monitoring on the temperature, humidity, on-off state and the like of all internet of things equipment on the platform. Therefore, the tenants can manage and analyze various Internet of things devices or products on line through the Internet of things platform.
In the process of configuring the application of the internet of things, the policy engine configuration can be performed on the application of the internet of things. A plurality of configuration items may be included in the policy engine configuration. For example, data flow policy configuration items, data processing policy configuration items, linkage policy configuration items, and the like. The data flow strategy configuration item is used for configuring a data interaction strategy of the data of the internet of things corresponding to the application of the internet of things between the data requester and the data provider. The data processing strategy configuration item is used for configuring a processing strategy of data uploaded by the Internet of things equipment or the Internet of things product under the application of the Internet of things. The linkage strategy configuration item is used for the user to carry out self-defined configuration on the application of the Internet of things according to different business linkage rules, scene linkage rules and strategy linkage rules.
And when the terminal detects the trigger operation acting on the data flow strategy configuration item, generating a data flow strategy configuration instruction and sending the data flow strategy configuration instruction to the server. And the server acquires a prestored circulation document, a preconfigured middleware instance and preconfigured Internet of things resource data according to the data circulation strategy configuration instruction. The pre-stored circulation document may include a plurality of data requester identifications and request parameters corresponding to the requester identifications. The preconfigured middleware instance may be a specific message queue. The pre-configured middleware instance is used for realizing data flow between the data provider and the data requester, and can receive data of the data provider, and the data provider can acquire required data through the middleware instance. Middleware instances are specific instances of middleware. The middleware may be a middleware model obtained by abstracting instances of the same type of middleware. Middleware may include a variety of types. For example, MQTT (Message Queuing telemetry), Kafka and RabbitMQ, etc. may be included. For example, when the middleware is a RabbitMQ, the corresponding middleware instance may be a test message queue. The basic data of the test message queue may include a port number, a user name, a password, and the like. The pre-configured internet of things resource data may include product model configuration data of internet of things products, internet of things device configuration data, and the like.
And step 206, returning the streaming document, the middleware instance and the internet of things resource data to the terminal corresponding to the data streaming strategy configuration instruction, so that the terminal receives a first selection operation on the middleware instance according to the streaming document, generates a target middleware instance according to the first selection operation, receives a second selection operation on the internet of things resource data according to the streaming document, and generates streaming type data according to the second selection operation.
And 208, receiving the target intermediate instance and the circulation type data sent by the terminal, and generating a data circulation strategy according to the target intermediate instance and the circulation type data.
After acquiring the streaming document, the middleware instance and the internet of things resource data, the server can return the streaming document, the middleware instance and the internet of things resource data to the terminal. And the terminal displays the circulation document, the middleware instance and the Internet of things resource data through a data circulation strategy configuration interface. The terminal can extract the request parameters corresponding to the data requester identifications corresponding to the corresponding application of the internet of things from the circulation document. The request parameters may include a middleware instance, a specific request internet of things product or device, and the like. And when the terminal receives the first selection operation of the middleware instance according to the request parameters, generating a target middleware instance according to the first selection operation. The target middleware instance may be a middleware instance in a request parameter, such as a test message queue.
And then, the terminal can receive a second selection operation on the internet of things resource data according to the request parameter and generate the circulation type data according to the second selection operation. The circulation type data may be internet of things data corresponding to a specific request internet of things product or device in the request parameter. The flow type data may include a plurality of flow types and specific products or devices corresponding to each flow type. The circulation type can be a product or equipment, and the product can be an internet of things product model in the internet of things resource data. The device may be an internet of things device in the internet of things resource data. The internet of things product refers to a general model abstracted according to the same type of internet of things equipment, and the internet of things equipment is equivalent to a specific example of each product model. For example, when the internet of things product is the camera, the corresponding internet of things equipment can be camera No. 1, camera No. 2, etc. For example, when the circulation type is a product, the specific product selected correspondingly may be a camera. When the circulation type is the device, the specific device correspondingly selected may be the camera number 1. The data flow strategy configuration interface can also comprise a strategy identification configuration item, a Topic (message type) configuration item and a strategy description configuration item. And when the terminal detects a first configuration operation acting on the policy identifier configuration area, generating the policy identifier according to the first configuration operation. And when the terminal detects a second configuration operation acting on the Topic (message type) configuration, generating the message type according to the second configuration operation. And when the terminal detects a third configuration operation acting on the policy description configuration item, generating policy description data according to the third configuration operation.
The terminal can send the data to the server according to the target intermediate instance and the streaming type data. The terminal then sends the target intermediate instance, the streaming type data, the policy identification, the message type, and the policy description data to the server. And when the server receives the data sent by the terminal, the data and the configuration items in the data flow strategy configuration interface are correspondingly stored, and a data flow strategy is generated and stored.
In this embodiment, the server receives the data flow policy configuration instruction, acquires the flow document, the preconfigured middleware instance, and the preconfigured internet of things resource data according to the data flow policy configuration instruction, and returns the data to the terminal corresponding to the data flow policy configuration instruction, so that the terminal receives a first selection operation on the middleware instance according to the flow document, generates a target middleware instance according to the first selection operation, receives a second selection operation on the internet of things resource data according to the flow document, and generates flow type data according to the second selection operation. And the server receives the target intermediate instance and the circulation type data sent by the terminal and generates a data circulation strategy according to the target intermediate instance and the circulation type data. The pre-configured middleware instance is configured according to the middleware provided by the data requester in advance, and the data flow transfer strategy is generated in advance through the transfer document, the pre-configured middleware instance and the pre-configured internet of things resource data, so that data can be transferred automatically according to the data flow strategy subsequently, the data requester is not required to send a data interaction request internet of things platform, frequent interaction requests are avoided, and interaction resources of the internet of things platform are effectively saved.
In one embodiment, as shown in fig. 3, the method further comprises: the method comprises the following steps of circulating the pre-configured Internet of things data according to a data circulation strategy, wherein the steps specifically comprise:
step 302, screening the data to be transferred in the pre-configured internet of things data according to the data transfer strategy.
Step 304, the circulation data is sent to the target middleware instance, so that the requester can obtain the corresponding circulation data in the target middleware instance.
After the data flow strategy configuration in the Internet of things application is completed, the server acquires the pre-configured Internet of things data according to the Internet of things application. The internet of things data can comprise internet of things product model configuration data, internet of things equipment configuration data, internet of things product reporting data, internet of things equipment reporting data and the like. The internet of things product model configuration data and the internet of things product configuration data are obtained from application configuration data of the internet of things application. The reported data of the product of the internet of things is reported by all the devices of the internet of things corresponding to the product model in the configuration data of the product model of the internet of things in the operation process. The reported data of the internet of things equipment is the data reported by the specific internet of things equipment in the configuration data of the internet of things product in the operation process.
The server can screen the data to be transferred from the pre-configured data of the internet of things according to the data transfer strategy, namely screening the data of the internet of things which accords with the data transfer strategy.
In one embodiment, screening the data flowing in the pre-configured internet of things according to the data flowing policy comprises: extracting circulation type data from a data circulation strategy; and screening related data corresponding to the circulation type data in the data of the Internet of things, and taking the related data as circulation data.
The server extracts the circulation type data from the circulation strategy data, so that the related data corresponding to the circulation type data are screened from the obtained Internet of things data. The circulation type data may include specific request internet of things products or devices. The server can send specific request internet of things products or equipment to the terminal for displaying. The user can select corresponding circulation types and specific products or equipment according to specific request internet of things products or equipment, and then the server can screen relevant data corresponding to the specific internet of things products or equipment in the internet of things data and take the relevant data as circulation data. The related data may include configuration data of the product model or the device of the internet of things, and data reported by the product or the device of the internet of things in the operation process. Because the data circulation strategy comprises circulation type data, and the circulation type data is obtained according to the requirements of the data requester, the circulation data is obtained by screening the circulation type data, and more accurate circulation data can be obtained.
For example, when the circulation type data is a virtual product, the user may select a product in the circulation type, select a virtual product in the product, and the server then screens the data of the entire virtual product in the data of the internet of things. When circulation type data is camera number 1, the user can select equipment in the circulation type, selects camera number 1 in the product, and the server then screens the data of camera number 1 in the data of the internet of things.
In one embodiment, when the streaming data includes data reported by the internet of things product or device in the operation process, before the streaming data is sent to the middleware instance, the server may further clean or filter the reported data to quickly filter out error data. The reported data may be operational data.
Specifically, the server may obtain policy configuration data of the application of the internet of things. The policy configuration data can be used for cleaning or filtering data reported by the internet of things equipment. The server may verify the operational data according to a data processing policy in the policy configuration data. The data processing policy may include data verification configuration data and data processing operation configuration data. The data verification configuration data may include product attributes and attribute judgment conditions. When the operating data meets the attribute judgment condition in the data verification strategy, the operating data is not checked, the operating data is indicated to be wrong, the server needs to perform corresponding data processing operation on the operating data according to the data processing operation configuration data, and the data processing operation can be cleaning operation or filtering operation. And when the operating data does not meet the attribute judgment condition in the data verification strategy, the operating data passes the verification, and the state data is correct. The strategy configuration data is configured in the corresponding Internet of things application in the Internet of things platform, so that the reported operation data can be accurately and quickly verified. When the data does not pass the verification, the running data is cleaned or filtered, the data volume of data transmission is reduced, and the platform resources of the Internet of things are saved.
And after obtaining the circulation data, the server sends the circulation data to the target middleware instance. When a data requester, namely a requester, needs to acquire data, the required streaming data can be acquired in the target middleware instance.
In this embodiment, the data flow strategy is used for screening the data flow in the pre-configured internet of things data, and the data flow is sent to the target middleware instance, so that the requester can obtain the corresponding data flow in the target middleware instance. Because the data flow strategy is configured in advance, the flow data can be automatically screened based on the data flow strategy and sent to the target middleware instance, and the waste of interaction resources caused by frequent interaction requests is reduced.
In one embodiment, the method comprises: screening a target application identifier from a plurality of preset application identifiers corresponding to the organization to which the user identifier belongs according to the target middleware example and the application identifier; acquiring a configured data flow strategy corresponding to a target application identifier; sending the configured data flow strategy to a terminal so that the terminal displays the configured data flow strategy through a data flow strategy configuration interface, receiving strategy configuration operation in the data flow strategy configuration interface, and generating a data flow strategy corresponding to the application identifier according to the strategy configuration operation; and receiving a data flow strategy corresponding to the application identifier sent by the terminal.
The data flow strategy configuration instruction carries a user identifier and an application identifier. After receiving the data flow strategy configuration instruction sent by the terminal, the server analyzes the data flow strategy configuration instruction, and can obtain a user identifier and an application identifier. The organization to which the user identifier belongs corresponds to a plurality of preset application identifiers, that is, the organization to which the user belongs corresponds to a plurality of applications of the internet of things.
The pre-configured middleware instances may be configured according to middleware provided by a data requester, one middleware instance may be used to receive data of internet of things products or devices under application of multiple internet of things, and data flow policies corresponding to one data requester may be the same. Therefore, after receiving the target middleware instance sent by the terminal, the server can screen the target application identifier from a plurality of preset application identifiers corresponding to the organization to which the user identifier belongs according to the target middleware instance and the application identifier. The target application identification may be a preset application identification other than the application identification. And the server acquires the configured data flow strategy corresponding to the target application identifier, and further acquires the configured data flow strategy in other Internet of things applications under the organization to which the user belongs.
And the server sends the configured data flow strategy corresponding to the target application identifier to the terminal, and a terminal data flow strategy configuration interface displays the configured data flow strategy for the user to refer. The user can select the data flow strategy from the displayed multiple data flow strategies to configure and obtain the data flow strategy corresponding to the application identifier. And when the terminal receives the strategy configuration operation in the data flow strategy configuration interface, generating a data flow strategy corresponding to the application identifier according to the strategy configuration operation. The generated data flow policy can be configured according to the configured data flow policy. And sending the generated data flow strategy to a server for storage.
Further, when the displayed data flow strategy does not conform to the internet of things application corresponding to the application identifier, the user can modify the displayed data flow strategies, and the terminal can generate the data flow strategy corresponding to the application identifier according to the received modification operation.
In this embodiment, when each application is configured, the data flow policy needs to be manually configured, which results in complex operation, and by obtaining the data flow policies of other applications of the internet of things, except the application of the internet of things, corresponding to the organization to which the user belongs, the data flow policy matched with the application of the internet of things can be determined in the data flow policies of the applications of the other internet of things, so that the data flow policy is configured, and the configuration efficiency of the data flow policy is effectively improved.
In one embodiment, before receiving the data flow policy configuration instruction, the method further includes: receiving a middleware instance configuration instruction, wherein the middleware instance configuration instruction comprises a middleware type; acquiring configuration data corresponding to the type of the middleware; returning the configuration data to the terminal corresponding to the middleware instance configuration instruction so that the terminal can acquire basic data corresponding to the configuration data; and receiving the basic data sent by the terminal, and generating a configured middleware instance.
The server may also configure the middleware instance according to middleware provided by the data requestor before receiving the data flow policy configuration instruction. Specifically, the server receives the middleware instance configuration instruction, and analyzes the middleware instance configuration instruction to obtain the middleware type. The middleware may be a middleware model obtained by abstracting instances of the same type of middleware. The middleware may include a variety of middleware types. For example, MQTT (Message Queuing telemetry), Kafka and RabbitMQ, etc. may be included. The middleware instance may be a specific message queue. The middleware instance is used for realizing data circulation between the data provider and the data requester, and can receive data of the data provider, and the data provider can acquire required data through the middleware instance. For example, when the middleware type is RabbitMQ, the corresponding middleware instance may be a test message queue.
And the server acquires the configuration data corresponding to the middleware type. The configuration data may include a plurality of configuration fields for basic data needed to configure the middleware instance. For example, a port number, a user name, a password, and the like may be included. The server returns the configuration data to the terminal corresponding to the middleware instance configuration instruction, and the terminal displays the configuration data through the middleware instance configuration interface. And the terminal receives configuration operation on the middleware instance configuration interface and generates basic data corresponding to the configuration data according to the configuration operation. The basic data may include field values of a plurality of configuration fields such as a port number, a user name, and a password. And then, the terminal sends the basic data to a value server, and the server further stores the basic data to obtain a configured middleware example.
In this embodiment, because the middleware type and the corresponding configuration data are created and stored in advance according to the requirement of the data requester, the configuration of the middleware instance is also configured according to the requirement of the data requester, and data interaction between the data requester and the data provider can be realized through the configured middleware instance, thereby reducing the waste of interaction resources caused by frequent interaction requests.
It should be understood that although the steps in the flowcharts of fig. 2 to 3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
In an embodiment, as shown in fig. 4, there is provided an apparatus for configuring a data flow policy of an internet of things, including: a communication module 402, an acquisition module 404, and a generation module 406, wherein:
a communication module 402, configured to receive a data flow policy configuration instruction.
An obtaining module 404, configured to obtain a streaming document, a preconfigured middleware instance, and preconfigured internet of things resource data according to the data streaming policy configuration instruction.
The communication module 402 is further configured to return the streaming document, the middleware instance, and the internet of things resource data to the terminal corresponding to the data streaming policy configuration instruction, so that the terminal receives a first selection operation on the middleware instance according to the streaming document, generates a target middleware instance according to the first selection operation, receives a second selection operation on the internet of things resource data according to the streaming document, and generates streaming type data according to the second selection operation; and receiving the target intermediate instance example and the streaming type data sent by the terminal.
And a generating module 406, configured to generate a data flow policy according to the target intermediate instance and the flow type data.
In one embodiment, the above apparatus further comprises: the screening module is used for screening the data to be transferred in the pre-configured Internet of things data according to the data transfer strategy; and sending the streaming data to the target middleware instance so that the requester acquires the corresponding streaming data in the target middleware instance.
In one embodiment, the screening module is further configured to extract the flow type data in the data flow policy; and screening related data corresponding to the circulation type data in the data of the Internet of things, and taking the related data as circulation data.
In one embodiment, the above apparatus further comprises: the policy configuration module is used for screening a target application identifier from a plurality of preset application identifiers corresponding to the organization to which the user identifier belongs according to the target middleware instance and the application identifier; acquiring a configured data flow strategy corresponding to a target application identifier; sending the configured data flow strategy to a terminal so that the terminal displays the configured data flow strategy through a data flow strategy configuration interface and receives strategy configuration operation in the data flow strategy configuration interface; generating a data flow strategy corresponding to the application identifier according to the strategy configuration operation; and receiving a data flow strategy corresponding to the application identifier sent by the terminal.
In one embodiment, the above apparatus further comprises: the middleware instance configuration module is used for receiving a middleware instance configuration instruction, and the middleware instance configuration instruction comprises a middleware type; acquiring configuration data corresponding to the type of the middleware; returning the configuration data to the terminal corresponding to the middleware instance configuration instruction so that the terminal can acquire basic data corresponding to the configuration data; and receiving the basic data sent by the terminal, and generating a configured middleware instance.
For specific limitations of the configuration device of the data flow policy of the internet of things, reference may be made to the above limitations of the method for configuring the data flow policy of the internet of things, which are not described herein again. All modules in the internet of things data flow strategy configuration device can be completely or partially realized through software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer equipment is used for storing the data of the flow document, the middleware instance, the Internet of things and the data flow strategy. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to realize a configuration method of the data flow strategy of the Internet of things.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory storing a computer program and a processor implementing the steps of the various embodiments described above when the processor executes the computer program.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the respective embodiments described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A configuration method of a data flow strategy of an Internet of things is characterized by comprising the following steps:
receiving a data flow strategy configuration instruction;
acquiring a flow document, a pre-configured middleware instance and pre-configured internet of things resource data according to the data flow strategy configuration instruction;
returning the circulation document, the middleware instance and the internet of things resource data to a terminal corresponding to the data circulation strategy configuration instruction, so that the terminal receives a first selection operation on the middleware instance according to the circulation document, generates a target middleware instance according to the first selection operation, receives a second selection operation on the internet of things resource data according to the circulation document, and generates circulation type data according to the second selection operation;
and receiving a target intermediate instance and circulation type data sent by the terminal, and generating a data circulation strategy according to the target intermediate instance and the circulation type data.
2. The method of claim 1, further comprising:
screening the data to be circulated in the pre-configured data of the Internet of things according to the data circulation strategy;
and sending the circulation data to the target middleware example so that the requester acquires the corresponding circulation data in the target middleware example.
3. The method of claim 2, wherein the screening of the data flow policy for the data flow in the pre-configured data of the internet of things comprises:
extracting circulation type data from the data circulation strategy;
and screening related data corresponding to the circulation type data in the data of the Internet of things, and taking the related data as circulation data.
4. The method according to claim 1, wherein the data flow policy configuration instruction carries a user identifier and an application identifier, and an organization to which the user identifier belongs corresponds to a plurality of preset application identifiers, the method comprising:
screening target application identifications from a plurality of preset application identifications corresponding to the organization to which the user identifications belong according to the target middleware example and the application identifications;
acquiring a configured data flow strategy corresponding to the target application identifier;
sending the configured data flow strategy to the terminal so that the terminal displays the configured data flow strategy through a data flow strategy configuration interface, receiving strategy configuration operation in the data flow strategy configuration interface, and generating a data flow strategy corresponding to the application identifier according to the strategy configuration operation;
and receiving a data flow strategy corresponding to the application identifier sent by the terminal.
5. The method of any of claims 1 to 4, wherein prior to receiving the data flow policy configuration instruction, the method further comprises:
receiving a middleware instance configuration instruction, wherein the middleware instance configuration instruction comprises a middleware type;
acquiring configuration data corresponding to the middleware type;
returning the configuration data to a terminal corresponding to the middleware instance configuration instruction so that the terminal can acquire basic data corresponding to the configuration data;
and receiving the basic data sent by the terminal, and generating a configured middleware instance.
6. A configuration device of a data flow strategy of the Internet of things is characterized by comprising:
the communication module is used for receiving a data flow strategy configuration instruction;
the acquisition module is used for acquiring a streaming document, a pre-configured middleware instance and pre-configured Internet of things resource data according to the data streaming strategy configuration instruction;
the communication module is further configured to return the circulation document, the middleware instance, and the internet of things resource data to a terminal corresponding to the data circulation policy configuration instruction, so that the terminal receives a first selection operation on the middleware instance according to the circulation document, generates a target middleware instance according to the first selection operation, receives a second selection operation on the internet of things resource data according to the circulation document, and generates circulation type data according to the second selection operation; receiving a target intermediate instance and flow type data sent by the terminal;
and the generating module is used for generating a data circulation strategy according to the target intermediate instance and the circulation type data.
7. The apparatus of claim 6, further comprising: the screening module is used for screening the data to be transferred in the pre-configured Internet of things data according to the data transfer strategy; and sending the circulation data to the target middleware example so that the requester acquires the corresponding circulation data in the target middleware example.
8. The apparatus of claim 7, wherein the filtering module is further configured to extract flow type data in the data flow policy; and screening related data corresponding to the circulation type data in the data of the Internet of things, and taking the related data as circulation data.
9. A computer device comprising a memory and a processor, the memory storing a computer program operable on the processor, wherein the processor implements the steps of the method of any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN202010568156.5A 2020-06-19 2020-06-19 Configuration method and device of data flow strategy of Internet of things and computer equipment Active CN111897843B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010568156.5A CN111897843B (en) 2020-06-19 2020-06-19 Configuration method and device of data flow strategy of Internet of things and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010568156.5A CN111897843B (en) 2020-06-19 2020-06-19 Configuration method and device of data flow strategy of Internet of things and computer equipment

Publications (2)

Publication Number Publication Date
CN111897843A true CN111897843A (en) 2020-11-06
CN111897843B CN111897843B (en) 2023-10-31

Family

ID=73206387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010568156.5A Active CN111897843B (en) 2020-06-19 2020-06-19 Configuration method and device of data flow strategy of Internet of things and computer equipment

Country Status (1)

Country Link
CN (1) CN111897843B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113821361A (en) * 2021-11-24 2021-12-21 中节能晶和智慧城市科技(浙江)有限公司 Internet of things platform message processing method and system based on streaming processing
CN115292064A (en) * 2022-07-29 2022-11-04 成都智元汇信息技术股份有限公司 Method, system and device for realizing sequential confirmation of Internet of things equipment based on flow architecture

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030233466A1 (en) * 2002-01-10 2003-12-18 Ian Kinkade System and method for efficient message transport by message queuing middleware
CN102946616A (en) * 2012-11-21 2013-02-27 山东中创软件商用中间件股份有限公司 Internet of things middleware performance testing system and testing method
CN103139251A (en) * 2011-11-29 2013-06-05 神州数码信息系统有限公司 Method of city-level data sharing exchange platform technology
CN103379120A (en) * 2013-01-21 2013-10-30 航天数联信息技术(深圳)有限公司 Method for enterprise service system interacting with middleware and device manager
CN103428627A (en) * 2012-05-22 2013-12-04 中国移动通信集团江苏有限公司 Method for transferring data in internet of things, internet of things system and corresponding device
CN106453482A (en) * 2016-08-05 2017-02-22 成都卡德智能科技有限公司 Internet of things middleware system and Internet of things system
CN107908541A (en) * 2017-07-26 2018-04-13 平安壹钱包电子商务有限公司 Interface test method, device, computer equipment and storage medium
CN108062382A (en) * 2017-12-13 2018-05-22 广州视源电子科技股份有限公司 Method, apparatus, equipment and the storage medium of information exchange
CN108093070A (en) * 2017-12-27 2018-05-29 复旦大学 A kind of Internet of Things data service middleware system
CN108366098A (en) * 2018-01-19 2018-08-03 北京奇安信科技有限公司 A kind of data interactive method and device of network node
US20180338018A1 (en) * 2017-05-18 2018-11-22 Hcl Technologies Limited Hybrid middleware device for facilitating communication amongst devices operating on a distinct communication protocols
CN109981617A (en) * 2019-03-12 2019-07-05 深圳市智物联网络有限公司 A kind of internet of things equipment monitoring method, system and electronic equipment and storage medium
CN110636136A (en) * 2019-10-11 2019-12-31 山东有人信息技术有限公司 Information interaction method for docking Internet of things cloud platform and middleware system
US20200042562A1 (en) * 2018-07-31 2020-02-06 Verified First LLC Systems and methods for application data amalgamation
CN111194051A (en) * 2018-11-14 2020-05-22 华为技术有限公司 Transmission path configuration method and device

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030233466A1 (en) * 2002-01-10 2003-12-18 Ian Kinkade System and method for efficient message transport by message queuing middleware
CN103139251A (en) * 2011-11-29 2013-06-05 神州数码信息系统有限公司 Method of city-level data sharing exchange platform technology
CN103428627A (en) * 2012-05-22 2013-12-04 中国移动通信集团江苏有限公司 Method for transferring data in internet of things, internet of things system and corresponding device
CN102946616A (en) * 2012-11-21 2013-02-27 山东中创软件商用中间件股份有限公司 Internet of things middleware performance testing system and testing method
CN103379120A (en) * 2013-01-21 2013-10-30 航天数联信息技术(深圳)有限公司 Method for enterprise service system interacting with middleware and device manager
CN106453482A (en) * 2016-08-05 2017-02-22 成都卡德智能科技有限公司 Internet of things middleware system and Internet of things system
US20180338018A1 (en) * 2017-05-18 2018-11-22 Hcl Technologies Limited Hybrid middleware device for facilitating communication amongst devices operating on a distinct communication protocols
CN107908541A (en) * 2017-07-26 2018-04-13 平安壹钱包电子商务有限公司 Interface test method, device, computer equipment and storage medium
CN108062382A (en) * 2017-12-13 2018-05-22 广州视源电子科技股份有限公司 Method, apparatus, equipment and the storage medium of information exchange
CN108093070A (en) * 2017-12-27 2018-05-29 复旦大学 A kind of Internet of Things data service middleware system
CN108366098A (en) * 2018-01-19 2018-08-03 北京奇安信科技有限公司 A kind of data interactive method and device of network node
US20200042562A1 (en) * 2018-07-31 2020-02-06 Verified First LLC Systems and methods for application data amalgamation
CN111194051A (en) * 2018-11-14 2020-05-22 华为技术有限公司 Transmission path configuration method and device
CN109981617A (en) * 2019-03-12 2019-07-05 深圳市智物联网络有限公司 A kind of internet of things equipment monitoring method, system and electronic equipment and storage medium
CN110636136A (en) * 2019-10-11 2019-12-31 山东有人信息技术有限公司 Information interaction method for docking Internet of things cloud platform and middleware system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨智程: "基于云化的订单中心管理系统的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》, no. 2, pages 138 - 275 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113821361A (en) * 2021-11-24 2021-12-21 中节能晶和智慧城市科技(浙江)有限公司 Internet of things platform message processing method and system based on streaming processing
CN115292064A (en) * 2022-07-29 2022-11-04 成都智元汇信息技术股份有限公司 Method, system and device for realizing sequential confirmation of Internet of things equipment based on flow architecture

Also Published As

Publication number Publication date
CN111897843B (en) 2023-10-31

Similar Documents

Publication Publication Date Title
CN112910945B (en) Request link tracking method and service request processing method
CN109885624B (en) Data processing method, data processing device, computer equipment and storage medium
CN111818132A (en) Control method and device of Internet of things equipment, computer equipment and storage medium
CN110619206B (en) Operation and maintenance risk control method, system, equipment and computer readable storage medium
CN111897843B (en) Configuration method and device of data flow strategy of Internet of things and computer equipment
CN111897587B (en) Internet of things application configuration method, device, computer equipment and storage medium
CN111858253A (en) Server operation and maintenance control method and device, computer equipment and storage medium
CN110716989A (en) Dimension data processing method and device, computer equipment and storage medium
CN114531477B (en) Method and device for configuring functional components, computer equipment and storage medium
CN110798376A (en) Interface testing method and device, computer equipment and storage medium
CN111835583B (en) Attribute inspection method and device for products of Internet of things and computer equipment
CN112910723B (en) Edge terminal management method, device, equipment and storage medium
CN111046982A (en) Equipment data monitoring method and device, computer equipment and storage medium
CN109831521B (en) Cache instance management method and device, computer equipment and storage medium
CN112559352A (en) Interface test method, device, equipment and storage medium
JP2020502598A (en) Method, electronic device, and storage medium for realizing exchange between business system and multi-assembly
CN112380478A (en) Webpage screenshot method and device, computer equipment and computer-readable storage medium
CN116342256A (en) Wind control strategy testing method and device, computer equipment and storage medium
CN114020612A (en) Test data construction processing method and device, computer equipment and storage medium
CN114167742A (en) Edge data processing method and device, computer equipment and storage medium
CN110969430B (en) Suspicious user identification method, suspicious user identification device, computer equipment and storage medium
CN113949629A (en) Server substrate management controller initialization method and device and computer equipment
CN116264613A (en) Distribution network testing method and system for intelligent camera, computer equipment and medium
CN113986463A (en) Electric power Internet of things security component virtualization construction method and system
CN112527606A (en) Data flow analysis method and device, computer equipment and storage medium

Legal Events

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