CN111897843B - Configuration method and device of data flow strategy of Internet of things and computer equipment - Google Patents

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

Info

Publication number
CN111897843B
CN111897843B CN202010568156.5A CN202010568156A CN111897843B CN 111897843 B CN111897843 B CN 111897843B CN 202010568156 A CN202010568156 A CN 202010568156A CN 111897843 B CN111897843 B CN 111897843B
Authority
CN
China
Prior art keywords
data
circulation
internet
things
configuration
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.)
Active
Application number
CN202010568156.5A
Other languages
Chinese (zh)
Other versions
CN111897843A (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.)
Shenzhen Miracle Intelligent Network Co Ltd
Original Assignee
Shenzhen 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 Shenzhen Miracle Intelligent Network Co Ltd filed Critical Shenzhen 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

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 stream strategy configuration instruction; acquiring a circulation document, a preconfigured middleware instance and preconfigured internet of things resource data according to a data circulation policy configuration instruction; returning 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; and 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. By adopting the method, the interactive resources of the Internet of things platform can be saved.

Description

Configuration method and device of data flow strategy of Internet of things and computer equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for configuring an internet of things data flow policy, a computer device, and a storage medium.
Background
The internet of things is used as an important component of a new generation data technology, and automatic identification of products and interconnection and sharing of data are realized through the internet by utilizing communication perception technologies such as intelligent perception and identification technologies. Along with the rapid development of the internet of things, more and more enterprises manage, analyze and the like on internet of things equipment or products through an internet of things platform. In the traditional mode, when data flow interaction is carried out in the internet of things platform, a data request party is required to initiate a data interaction request to the internet of things platform, so that flow data is acquired from a data provider through the internet of things platform and returned to the data request party, frequent data interaction requests are required, and more interaction resources of the internet of things platform are consumed.
Disclosure of Invention
Based on this, it is necessary to provide a configuration method, a device, a computer device and a storage medium of an internet of things data stream policy, which can save the interactive resources of the internet of things platform, aiming at the technical problems.
A method for configuring an internet of things data flow policy, the method comprising:
receiving a data stream strategy configuration instruction;
acquiring a circulation document, a preconfigured middleware instance and preconfigured internet of things resource data according to the data circulation policy configuration instruction;
returning 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 of the middleware instance according to the circulation document, generates a target middleware instance according to the first selection operation, receives a second selection operation of the Internet of things resource data according to the circulation document, and generates circulation type data according to the second selection operation;
and 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.
In one embodiment, the method further comprises:
screening circulation data from preconfigured internet of things data according to the data circulation strategy;
and sending the circulation data to the target middleware instance so that a requester can acquire corresponding circulation data in the target middleware instance.
In one embodiment, the screening the circulation data in the preconfigured internet of things data according to the data circulation policy includes:
extracting circulation type data from the data circulation strategy;
and screening relevant data corresponding to the circulation type data from the internet of things data, and taking the relevant data as circulation data.
In one embodiment, the data flow policy configuration instruction carries a user identifier and an application identifier, where an organization to which the user identifier belongs corresponds to a plurality of preset application identifiers, and the method includes:
screening a target application identifier from a plurality of preset application identifiers corresponding to organizations to which the user identifier belongs according to the target middleware instance and the application identifier;
acquiring a configured data flow strategy corresponding to the target application identifier;
the configured data flow strategy is sent to the terminal, so that the terminal displays the configured data flow strategy through a data flow strategy configuration interface, strategy configuration operation in the data flow strategy configuration interface is received, and the data flow strategy corresponding to the application identifier is generated 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 as to enable the terminal to acquire basic data corresponding to the configuration data;
and receiving the basic data sent by the terminal, and generating a configured middleware instance.
A configuration apparatus for an internet of things data flow policy, the apparatus comprising:
the communication module is used for receiving a data flow strategy configuration instruction;
the acquisition module is used for acquiring a circulation document, a preconfigured middleware instance and preconfigured internet of things resource data according to the data circulation policy 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 stream type data sent by the terminal;
and the generation 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 circulation data in the preconfigured internet of things data according to the data circulation strategy; and sending the circulation data to the target middleware instance so that a requester can acquire corresponding circulation data in the target middleware instance.
In one embodiment, the filtering module is further configured to extract the flow type data in the data flow policy; and screening relevant data corresponding to the circulation type data from the internet of things data, and taking the relevant data as circulation data.
A computer device comprising a memory storing a computer program executable on the processor and a processor implementing the steps of the method embodiments described above when the computer program is executed by the processor.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the various method embodiments described above.
According to the configuration method, the device, the computer equipment and the storage medium of the data circulation policy of the Internet of things, the configuration instruction of the data circulation policy is received, the circulation document, the pre-configured middleware instance and the pre-configured Internet of things resource data are obtained according to the configuration instruction of the data circulation policy, so that the data are returned to the terminal corresponding to the configuration instruction of the data circulation policy, the terminal receives the first selection operation of the middleware instance according to the circulation document, generates the target middleware instance according to the first selection operation, receives the second selection operation of the Internet of things resource data according to the circulation document, and generates circulation type data according to the second selection operation. And further 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. Because the pre-configured middleware instance is configured according to the middleware provided by the data requesting party in advance, the data transfer strategy is pre-generated through transferring the document, the pre-configured middleware instance and the pre-configured internet of things resource data, and then the data transfer can be automatically performed according to the data transfer strategy, the data requesting party is not required to send the data interaction request internet of things platform, frequent interaction requests are avoided, and further the interaction resources of the internet of things platform are effectively saved.
Drawings
Fig. 1 is an application environment diagram of a configuration method of an internet of things data flow policy in an embodiment;
fig. 2 is a flow chart of a configuration method of an internet of things data flow policy in an embodiment;
fig. 3 is a flow chart of a circulation step of pre-configured internet of things data according to a data circulation policy in an embodiment;
fig. 4 is a block diagram of a configuration device of an internet of things data flow policy in an embodiment;
fig. 5 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The configuration method of the data flow strategy of the Internet of things, provided by the application, can be applied to an application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. When the terminal 102 logs in the internet of things platform, a data flow policy configuration instruction can be generated through triggering operation, the server 104 receives the data flow policy configuration instruction sent by the terminal 102, and obtains a flow document, a preconfigured middleware instance and preconfigured internet of things resource data according to the data flow policy configuration instruction. Then, the server 104 returns the circulation 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 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. The server 104 receives the target intermediate instance and the circulation type data sent by the terminal 102, and generates a data circulation policy according to the target intermediate instance and the circulation 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, among others. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In one embodiment, as shown in fig. 2, a configuration method of an internet of things data flow policy is provided, and the method is applied to the server in fig. 1 for illustration, and includes the following steps:
step 202, a data flow policy configuration instruction is received.
Step 204, obtaining the circulation document, the pre-configured middleware instance and the pre-configured internet of things resource data according to the data circulation policy configuration instruction.
The data flow strategy configuration instruction is used for indicating the server to configure the data flow strategy for the corresponding application of the Internet of things. The user can log in the Internet of things platform through the terminal, and functional 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 a tenant. For example, the tenant may be an enterprise. The application of the internet of things can be an application which is configured by a user with permission and is obtained by the user according to the association relationship between the user and the role and the association relationship between the role and the application. The Internet of things platform can monitor, manage, analyze and the like the Internet of things product or equipment through the configured Internet of things application. For example, the internet of things platform can perform real-time panoramic monitoring on equipment temperature, humidity, switch states and the like of all internet of things equipment on the platform. Therefore, tenants can manage, analyze and the like 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, 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. Such as a data flow policy configuration item, a data processing policy configuration item, a linkage policy configuration item, and the like. The data flow strategy configuration item is used for configuring a data interaction strategy of Internet of things data corresponding to the Internet of things application between the data requester and the data provider. The data processing strategy configuration item is used for configuring the processing strategy of data uploaded by the Internet of things equipment or Internet of things products under the application of the Internet of things. The linkage strategy configuration item is used for carrying out user-defined configuration on the application of the Internet of things according to different service linkage rules, scene linkage rules and strategy linkage rules.
When the terminal detects the triggering operation acting on the data flow strategy configuration item, a data flow strategy configuration instruction is generated and sent to the server. And the server acquires a pre-stored circulation document, a pre-configured middleware instance and pre-configured Internet of things resource data according to the data circulation policy configuration instruction. The pre-stored circulation document can comprise 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, can receive data of the data provider, and the data provider can acquire required data through the middleware instance. The middleware instance is a specific instance of the middleware. The middleware may be a middleware model obtained by abstracting the middleware instances of the same type. The middleware may include various types. For example, MQTT (Message Queuing Telemetry Transport, message queue telemetry), kafka, rabbitMQ, and the like may be included. For example, when the middleware is 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 preconfigured internet of things resource data can comprise product model configuration data of internet of things products, internet of things equipment configuration data and the like.
And 206, returning the circulation document, the middleware instance and the Internet of things resource data to the 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.
And step 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 the server obtains the streaming document, the middleware instance and the Internet of things resource data, the streaming document, the middleware instance and the Internet of things resource data can be returned to the terminal. And the terminal displays the circulation document, the middleware instance and the Internet of things resource data through a data circulation policy configuration interface. The terminal can extract request parameters corresponding to the data requester identifications corresponding to the corresponding Internet of things applications from the circulation document. The request parameters may include middleware examples, specific request internet of things products or devices, and the like. And when the terminal receives a 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 of the internet of things resource data according to the request parameters, and generate 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 parameters. The stream type data may include a plurality of stream types and specific products or devices corresponding to the respective stream types. The circulation type can be a product or equipment, and the product can be an Internet of things product model in Internet of things resource data. The device may be an internet of things device in 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 a camera, the corresponding internet of things device may be camera No. 1, camera No. 2, and so on. For example, when the circulation type is a product, the specific product selected correspondingly may be a camera. When the circulation type is a device, the specific device selected correspondingly may be camera number 1. The data stream policy configuration interface may further include a policy identification configuration item, a Topic (message type) configuration item, and a policy description configuration item. When the terminal detects a first configuration operation acting on the policy identification configuration area, generating a policy identification according to the first configuration operation. When the terminal detects a second configuration operation acting on the Topic (message type) configuration, a message type is generated 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 may send the stream type data to the server according to the target intermediate instance. The terminal thus sends the target intermediate instance, the streaming type data, the policy identification, the message type and the policy description data to the server. When the server receives the data sent by the terminal, the data and configuration items in a data flow strategy configuration interface are correspondingly stored, and a data flow strategy is generated for storage.
In this embodiment, the server receives a data transfer policy configuration instruction, obtains a transfer document, a preconfigured middleware instance and preconfigured internet of things resource data according to the data transfer policy configuration instruction, so as to return the data to a terminal corresponding to the data transfer policy configuration instruction, so that the terminal receives a first selection operation on the middleware instance according to the transfer 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 transfer document, and generates transfer 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. Because the pre-configured middleware instance is configured according to the middleware provided by the data requesting party in advance, the data transfer strategy is pre-generated through transferring the document, the pre-configured middleware instance and the pre-configured internet of things resource data, and then the data transfer can be automatically performed according to the data transfer strategy, the data requesting party is not required to send the data interaction request internet of things platform, frequent interaction requests are avoided, and further the interaction resources of the internet of things platform are effectively saved.
In one embodiment, as shown in fig. 3, the method further includes: the method specifically comprises the steps of carrying out circulation on preconfigured internet of things data according to a data circulation strategy, wherein the steps comprise:
step 302, the circulation data is screened from the preconfigured internet of things data according to the data circulation policy.
Step 304, the circulation data is sent to the target middleware instance, so that the requester obtains the corresponding circulation data in the target middleware instance.
After the configuration of the data flow strategy in the application of the Internet of things is completed, the server acquires the preconfigured data of the Internet of things according to the application of the Internet of things. The internet of things data can comprise internet of things product model configuration data, internet of things device configuration data, reporting data of internet of things products, reporting data of internet of things devices and the like. The internet of things product model configuration data is obtained from application configuration data of the internet of things application. The reported data of the Internet of things product is the data reported by all Internet of things equipment corresponding to the product model in the Internet of things product model configuration data 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 running process in the configuration data of the Internet of things products.
The server can screen the data of the circulation in the preconfigured data of the internet of things according to the data circulation strategy, namely, the data of the internet of things conforming to the data circulation strategy.
In one embodiment, screening the data of the stream from the preconfigured data of the internet of things according to the data stream policy includes: extracting circulation type data in a data circulation strategy; and screening relevant data corresponding to the circulation type data from the internet of things data, wherein the relevant data is used as circulation data.
The server extracts the circulation type data from the circulation policy data, so that the acquired internet of things data is screened for relevant data corresponding to the circulation type 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 display. The user can select corresponding circulation types and specific products or equipment according to specific request internet of things products or equipment, and further the server can screen relevant data corresponding to the specific internet of things products or equipment in the internet of things data, and the relevant data are used as circulation data. The related data can comprise configuration data of the product model or equipment of the Internet of things and data reported by the product or equipment of the Internet of things in the operation process. The data circulation strategy comprises circulation type data, the circulation type data is obtained according to the requirement of a data requester, so that the circulation data is obtained through circulation type data screening, 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 further screens the data of the entire virtual product in the internet of things data. When the circulation type data is camera number 1, the user can select equipment in the circulation type, select camera number 1 in the product, and then screen data of camera number 1 in the internet of things data by the server.
In one embodiment, when the circulation data includes data reported by the internet of things product or equipment in the running process, before the circulation data is sent to the middleware instance, the server may further clean or filter the reported data so as 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 may be used to clean or filter data reported by the internet of things device. 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 operation data meets the attribute judgment conditions in the data verification policy, the operation data fails to pass the verification, which indicates that the operation data is wrong, and the server needs to perform corresponding data processing operation on the operation data according to the data processing operation configuration data, wherein the data processing operation can be a cleaning operation or a filtering operation. When the running data does not meet the attribute judgment conditions in the data verification policy, the running data passes the verification, and the state data is indicated to be correct. Because the policy configuration data is configured in the Internet of things platform and in the corresponding Internet of things application, the reported operation data can be accurately and rapidly checked. When the verification is not passed, the operation data is cleaned or filtered, the data quantity of data transmission is reduced, and the platform resources of the Internet of things are saved.
After obtaining the circulation data, the server sends the circulation data to the target middleware instance. When the data requesting party, namely the requesting party, needs to acquire the data, the required circulation data can be acquired in the target middleware instance.
In this embodiment, the circulation data is screened from the preconfigured internet of things data according to the data circulation policy, and the circulation data is sent to the target middleware instance, so that the requester obtains the corresponding circulation data in the target middleware instance. Because the data flow strategy is preconfigured, 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 target application identifiers from a plurality of preset application identifiers corresponding to organizations to which the user identifiers belong according to the target middleware examples and the application identifiers; acquiring a configured data flow strategy corresponding to a target application identifier; the configured data flow strategy is sent to the terminal, so that the terminal displays the configured data flow strategy through a data flow strategy configuration interface, strategy configuration operation in the data flow strategy configuration interface is received, and the data flow strategy corresponding to the application identifier is generated 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 the user identification and the application identification. The organization to which the user identifier belongs corresponds to a plurality of preset application identifiers, namely the organization to which the user belongs corresponds to a plurality of Internet of things applications.
The pre-configured middleware instance can be configured according to the middleware provided by the data requesting party, one middleware instance can be used for receiving data of internet of things products or devices under a plurality of internet of things applications, and the data flow strategies corresponding to one data requesting party can 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 organizations to which the user identifier belongs according to the target middleware instance and the application identifier. The target application identifier may be a preset application identifier other than the application identifier. The server obtains the configured data flow strategy corresponding to the target application identifier, and further obtains the configured data flow strategy in other Internet of things applications under the organization to which the user belongs.
The server sends the configured data flow strategy corresponding to the target application identifier to the terminal, and the terminal data flow strategy configuration interface displays the configured data flow strategy for reference by a user. The user can select a data flow strategy from the displayed multiple data flow strategies to configure the data flow strategy corresponding to the application identifier. 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 may 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 policy does not conform to the application of the internet of things corresponding to the application identifier, the user can modify the displayed plurality of data flow policies, and the terminal can generate the data flow policy corresponding to the application identifier according to the received modification operation.
In this embodiment, because each application needs to be manually configured, the operation is complicated, and the data transfer policies matched with the application of the internet of things can be determined in the data transfer policies of the application of the other internet of things by acquiring the data transfer policies of the application of the other internet of things corresponding to the organization to which the user belongs, so that the data transfer policies are configured, and the configuration efficiency of the data transfer policies 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 middleware type; returning the configuration data to the terminal corresponding to the middleware instance configuration instruction so as to enable the terminal to acquire basic data corresponding to the configuration data; and receiving the basic data sent by the terminal, and generating the configured middleware instance.
The server may also configure the middleware instance according to the middleware provided by the data requestor before receiving the data flow policy configuration instruction. Specifically, the server receives a middleware instance configuration instruction, and analyzes the middleware instance configuration instruction to obtain a middleware type. The middleware may be a middleware model obtained by abstracting the middleware instances of the same type. Middleware may include a variety of middleware types. For example, MQTT (Message Queuing Telemetry Transport, message queue telemetry), kafka, rabbitMQ, and the like may be included. The middleware instance may be a specific message queue. The middleware instance is used for realizing data flow between the data provider and the data requester, and can receive the data of the data provider, and the data provider can acquire the 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 configuration data corresponding to the middleware type. The configuration data may include a plurality of configuration fields for basic data required to configure the middleware instance. For example, a port number, a user name, a password, etc. 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. The terminal receives configuration operation in 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 the configured middleware instance.
In this embodiment, since 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 the data interaction between the data requester and the data provider can be realized through the configured middleware instance, so that the waste of interaction resources caused by frequent interaction requests is reduced.
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, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2-3 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or stages are performed necessarily occur sequentially, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
In one embodiment, as shown in fig. 4, a configuration device of an internet of things data flow policy is provided, 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.
And the obtaining module 404 is configured to obtain the circulation document, the preconfigured middleware instance, and the preconfigured internet of things resource data according to the data circulation policy configuration instruction.
The communication module 402 is further configured to return the circulation document, the middleware instance, and the internet of things resource data to the 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; and receiving the target intermediate instance and the circulation type data sent by the terminal.
The generating module 406 is configured to generate a data flow policy according to the target intermediate instance and the flow type data.
In one embodiment, the apparatus further comprises: the screening module is used for screening the circulation data from the preconfigured internet of things data according to the data circulation strategy; and sending the circulation data to the target middleware instance so that the requester can acquire the corresponding circulation data in the target middleware instance.
In one embodiment, the screening module is further configured to extract the circulation type data in the data circulation policy; and screening relevant data corresponding to the circulation type data from the internet of things data, wherein the relevant data is used as circulation data.
In one embodiment, the apparatus further comprises: the policy configuration module is used for screening target application identifiers from a plurality of preset application identifiers corresponding to organizations to which the user identifiers belong according to the target middleware examples and the application identifiers; acquiring a configured data flow strategy corresponding to a target application identifier; the configured data flow strategy is sent to the 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 apparatus further comprises: the middleware instance configuration module is used for receiving middleware instance configuration instructions, wherein the middleware instance configuration instructions comprise middleware types; acquiring configuration data corresponding to the middleware type; returning the configuration data to the terminal corresponding to the middleware instance configuration instruction so as to enable the terminal to acquire basic data corresponding to the configuration data; and receiving the basic data sent by the terminal, and generating the configured middleware instance.
For specific limitation of the configuration device of the data flow policy of the internet of things, reference may be made to the limitation of the method for configuring the data flow policy of the internet of things, which is not described herein. All or part of the modules in the data flow strategy configuration device of the internet of things can be realized by software, hardware and a combination of the software and the hardware. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above 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 includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing streaming documents, middleware examples, internet of things data and data streaming strategies. 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 implement a method for configuring an internet of things data flow policy.
It will be appreciated by those skilled in the art that the structure shown in FIG. 5 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the 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 computer program is executed.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored which, when executed by a processor, implements the steps of the various embodiments described above.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile 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), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (10)

1. The configuration method of the data flow strategy of the Internet of things is characterized by comprising the following steps:
receiving a data stream strategy configuration instruction;
acquiring a circulation document, a preconfigured middleware instance and preconfigured internet of things resource data according to the data circulation policy configuration instruction; the circulation document is a document comprising a plurality of data requester identifications and request parameters corresponding to the requester identifications, and the Internet of things resource data comprises product model configuration data of Internet of things products and Internet of things equipment configuration data;
returning 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 of the middleware instance according to the circulation document, generates a target middleware instance according to the first selection operation, receives a second selection operation of the Internet of things resource data according to the circulation document, and generates circulation type data according to the second selection operation; the circulation type data are Internet of things data corresponding to the request Internet of things product or equipment in request parameters of the circulation document; requesting the internet of things product or equipment to be of a circulation type;
and 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.
2. The method according to claim 1, wherein the method further comprises:
screening circulation data from preconfigured internet of things data according to the data circulation strategy;
and sending the circulation data to the target middleware instance so that a requester can acquire corresponding circulation data in the target middleware instance.
3. The method of claim 2, wherein the screening the data stream from the preconfigured internet of things data according to the data stream policy comprises:
extracting circulation type data from the data circulation strategy;
and screening relevant data corresponding to the circulation type data from the internet of things data, and taking the relevant 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 the organization to which the user identifier belongs corresponds to a plurality of preset application identifiers, the method comprising:
screening a target application identifier from a plurality of preset application identifiers corresponding to organizations to which the user identifier belongs according to the target middleware instance and the application identifier;
acquiring a configured data flow strategy corresponding to the target application identifier;
the configured data flow strategy is sent to the terminal, so that the terminal displays the configured data flow strategy through a data flow strategy configuration interface, strategy configuration operation in the data flow strategy configuration interface is received, and the data flow strategy corresponding to the application identifier is generated 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 the receiving a 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 as to enable the terminal to acquire basic data corresponding to the configuration data;
and receiving the basic data sent by the terminal, and generating a configured middleware instance.
6. An apparatus for configuring an internet of things data flow policy, the apparatus comprising:
the communication module is used for receiving a data flow strategy configuration instruction;
the acquisition module is used for acquiring a circulation document, a preconfigured middleware instance and preconfigured internet of things resource data according to the data circulation policy configuration instruction; the circulation document is a document comprising a plurality of data requester identifications and request parameters corresponding to the requester identifications, and the Internet of things resource data comprises product model configuration data of Internet of things products and Internet of things equipment configuration data;
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; the circulation type data are Internet of things data corresponding to the request Internet of things product or equipment in request parameters of the circulation document; requesting the internet of things product or equipment to be of a circulation type; receiving a target intermediate instance and stream type data sent by the terminal;
and the generation 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, wherein the apparatus further comprises: the screening module is used for screening the circulation data in the preconfigured internet of things data according to the data circulation strategy; and sending the circulation data to the target middleware instance so that a requester can acquire corresponding circulation data in the target middleware instance.
8. The apparatus of claim 7, wherein the screening module is further configured to extract the flow type data in the data flow policy; and screening relevant data corresponding to the circulation type data from the internet of things data, and taking the relevant data as circulation data.
9. A computer device comprising a memory and a processor, the memory storing a computer program executable on the processor, characterized in that the processor implements the steps of the method of any one of claims 1 to 5 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any 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 CN111897843A (en) 2020-11-06
CN111897843B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113821361B (en) * 2021-11-24 2022-05-17 中节能晶和智慧城市科技(浙江)有限公司 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 (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
CN111194051A (en) * 2018-11-14 2020-05-22 华为技术有限公司 Transmission path configuration method and device

Family Cites Families (3)

* 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
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
US11580189B2 (en) * 2018-07-31 2023-02-14 Verified First LLC Systems and methods for application data amalgamation

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
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
基于云化的订单中心管理***的设计与实现;杨智程;《中国优秀硕士学位论文全文数据库 信息科技辑》(第2期);I138-275 *

Also Published As

Publication number Publication date
CN111897843A (en) 2020-11-06

Similar Documents

Publication Publication Date Title
CN112910945B (en) Request link tracking method and service request processing method
CN109032824A (en) Database method of calibration, device, computer equipment and storage medium
CN111447102B (en) SDN network device access method and device, computer device and storage medium
CN111897843B (en) Configuration method and device of data flow strategy of Internet of things and computer equipment
US20200175177A1 (en) Auto-injection of security protocols
CN109325010B (en) Log checking method, device, computer equipment and storage medium
CN110716989A (en) Dimension data processing method and device, computer equipment and storage medium
CN111858253A (en) Server operation and maintenance control method and device, computer equipment and storage medium
CN114531477B (en) Method and device for configuring functional components, computer equipment and storage medium
CN112288400A (en) Multi-system data interaction method and device, computer equipment and storage medium
CN109831521B (en) Cache instance management method and device, computer equipment and storage medium
CN116644250B (en) Page detection method, page detection device, computer equipment and storage medium
CN109787963A (en) Business handling method, apparatus, computer equipment and storage medium
CN111835583A (en) Attribute inspection method and device for products of Internet of things and computer equipment
CN112380478A (en) Webpage screenshot method and device, computer equipment and computer-readable storage medium
CN114040378B (en) Method, device, computer equipment and storage medium for arranging application
CN109257256A (en) Apparatus monitoring method, device, computer equipment and storage medium
CN114003384A (en) Task management method, device and equipment
CN112749948A (en) Information processing method and device for project management
CN113542796B (en) Video evaluation method, device, computer equipment and storage medium
CN117170823B (en) Method and device for executing operation in batch container and electronic equipment
CN115297066B (en) Resource dynamic cooperation method, device, server and medium
CN113312230A (en) State monitoring method and device of cloud host, computer equipment and storage medium
CN113518089A (en) Management method and device of access equipment, storage medium and electronic device
CN117155661A (en) Risk log data pushing method, apparatus, computer device 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