CN114338800B - Data stream configuration method and device, electronic equipment and storage medium - Google Patents

Data stream configuration method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114338800B
CN114338800B CN202210217671.8A CN202210217671A CN114338800B CN 114338800 B CN114338800 B CN 114338800B CN 202210217671 A CN202210217671 A CN 202210217671A CN 114338800 B CN114338800 B CN 114338800B
Authority
CN
China
Prior art keywords
data
module
port
reporting
equipment
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
CN202210217671.8A
Other languages
Chinese (zh)
Other versions
CN114338800A (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.)
Hangzhou Kongtrolink Information Technology Co ltd
Original Assignee
Hangzhou Kongtrolink Information Technology 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 Hangzhou Kongtrolink Information Technology Co ltd filed Critical Hangzhou Kongtrolink Information Technology Co ltd
Priority to CN202210217671.8A priority Critical patent/CN114338800B/en
Publication of CN114338800A publication Critical patent/CN114338800A/en
Application granted granted Critical
Publication of CN114338800B publication Critical patent/CN114338800B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The application provides a data stream configuration method, a device, an electronic device and a storage medium, wherein the method comprises the following steps: and responding to the user operation, and acquiring a corresponding first data acquisition module, a corresponding first data circulation module and a corresponding first data reporting module from the currently stored configuration file. The data collection module defines an equipment port for data collection, the data circulation module defines data processing to be executed, and the data reporting module defines communication information reported by data. And performing corresponding data channel configuration based on the first data acquisition module, the first data circulation module and the first data reporting module to establish a data channel between the equipment and the cloud platform. According to the scheme, the data channel matched with the user is established according to the requirement of the user, and the flexibility of data reporting is improved.

Description

Data stream configuration method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of industrial internet, and in particular, to a data stream configuration method and apparatus, an electronic device, and a storage medium.
Background
In the advancing process of the industrial internet, in order to better realize resource cooperation, industrial enterprises need to report data to an industrial brain, or subsidiary companies need to report data to headquarters, and the working efficiency is greatly improved.
However, the industrial enterprise data uploading interface is generally a fixed interface, namely the type and the quantity of data uploading are determined during interface development, and once the interface is solidified, the data uploading cannot be changed. When a user needs to filter and not report certain data, the data can not be changed at will according to own ideas, and a professional IT development company needs to be used for carrying out secondary development on the interface, so that the period is long.
Therefore, how to improve the flexibility of data reporting is the key to improve the work efficiency.
Disclosure of Invention
The application provides a data stream configuration method, a device, an electronic device and a storage medium, which are used for establishing a data channel according to the requirements of a user.
In a first aspect, the present application provides a data stream configuration method, including: responding to user operation, and acquiring a corresponding first data acquisition module, a corresponding first data circulation module and a corresponding first data reporting module from a currently stored configuration file; the data collection module defines equipment ports and parameter settings for data collection, the data circulation module defines data processing to be executed, and the data reporting module defines communication information reported by data; and performing corresponding data channel configuration based on the first data acquisition module, the first data circulation module and the first data reporting module to establish a data channel between the equipment and the cloud platform.
In one possible implementation, each configuration file is assigned a unique identifier; the responding to the user operation, obtaining the corresponding first data acquisition module, first data circulation module and first data reporting module from the currently stored configuration file, includes: pushing the identifier of the currently stored configuration file to a user; responding to the selection operation of the user, and respectively using the data acquisition module, the data circulation module and the data reporting module selected by the user as the first data acquisition module, the first data circulation module and the first data reporting module.
In a possible implementation manner, the configuring a data channel based on the first data acquisition module, the first data transfer module, and the first data reporting module to establish a data channel between the device and the cloud platform includes: binding a physical port connected with the equipment port defined by the first data acquisition module according to the connection information of the embedded programmable controller and the equipment, and using the physical port as a data acquisition port of the data channel; the connection information comprises connection information between a physical port of the embedded programmable controller and an equipment port of equipment; binding an uplink port of the embedded programmable controller according to the connection information of the embedded programmable controller and the cloud platform to serve as a data reporting port of the data channel, and configuring communication parameters of the data reporting port; compiling and generating an executable file according to the first data acquisition module, the first data circulation module and the first data reporting module, and issuing the executable file to the embedded programmable controller for execution so as to establish the data channel in the embedded programmable controller; the first data flow module defines the processing to be executed when the device data is transmitted from the data acquisition port of the data channel to the data reporting port.
In one possible implementation, the method further includes: acquiring equipment data of equipment corresponding to an equipment port through the equipment port for data acquisition defined by the data channel according to the established data channel and the parameter setting for data acquisition defined by the data channel; processing the acquired equipment data according to the data processing which is defined by the data channel and needs to be executed; and reporting the processed equipment data to a cloud platform according to the communication information defined by the data channel.
In a possible implementation manner, the communication information includes a data reporting port and a communication protocol; the reporting the processed device data to a cloud platform according to the communication information defined by the data channel includes: according to a communication protocol defined by the data channel, encrypting and decrypting the processed equipment data; and transmitting the encrypted and decrypted device data to the cloud platform through a data reporting port in the communication information.
In a second aspect, the present application provides a data stream configuration apparatus, comprising; the acquisition module is used for responding to user operation and acquiring a corresponding first data acquisition module, a corresponding first data circulation module and a corresponding first data reporting module from a currently stored configuration file; the data collection module defines equipment ports and parameter settings for data collection, the data circulation module defines data processing to be executed, and the data reporting module defines communication information reported by data; and the creating module is used for carrying out corresponding data channel configuration based on the first data acquisition module, the first data circulation module and the first data reporting module so as to establish a data channel between the equipment and the cloud platform.
In a possible implementation manner, the obtaining module is specifically configured to push an identifier of a currently stored configuration file to a user; the obtaining module is specifically further configured to respond to a selection operation of a user, and use a data acquisition module, a data transfer module, and a data reporting module selected by the user as the first data acquisition module, the first data transfer module, and the first data reporting module, respectively.
In a possible implementation manner, the creating module is specifically configured to bind, according to connection information between an embedded programmable controller and a device, a physical port connected to a device port defined by the first data acquisition module, as a data acquisition port of the data channel; the connection information comprises connection information between a physical port of the embedded programmable controller and an equipment port of equipment; the creating module is specifically further configured to bind an uplink port of the embedded programmable controller according to connection information between the embedded programmable controller and the cloud platform, serve as a data reporting port of the data channel, and configure communication parameters of the data reporting port; the creating module is specifically further configured to compile and generate an executable file according to the first data acquisition module, the first data transfer module, and the first data reporting module, and issue the executable file to the embedded programmable controller for execution, so as to establish the data channel in the embedded programmable controller; the first data flow module defines the processing to be executed when the device data is transmitted from the data acquisition port of the data channel to the data reporting port.
In one possible implementation, the apparatus further includes: the acquisition module is used for acquiring equipment data of equipment corresponding to an equipment port according to the established data channel, through the equipment port for data acquisition defined by the data channel and according to the parameter setting for data acquisition defined by the data channel; the circulation module is used for processing the acquired equipment data according to the data processing to be executed defined by the data channel; and the reporting module is used for reporting the processed equipment data to the cloud platform according to the communication information defined by the data channel.
In one possible implementation, the apparatus further includes: the security module is used for encrypting and decrypting the processed equipment data according to a communication protocol defined by the data channel; and the security module is further used for transmitting the encrypted and decrypted device data to the cloud platform through a data reporting port in the communication information.
In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively coupled to the processor; the memory stores computer-executable instructions; the processor executes computer-executable instructions stored by the memory to implement the method of any of the first aspects.
In a fourth aspect, the present application provides a computer-readable storage medium having stored therein computer-executable instructions for execution by a processor to perform the method of any of the first aspects.
The data stream configuration method, the data stream configuration device, the electronic device and the storage medium respond to user operation, and obtain the corresponding first data acquisition module, the corresponding first data circulation module and the corresponding first data reporting module from the currently stored configuration file. The data collection module defines equipment ports and parameter settings for data collection, the data circulation module defines data processing to be executed, and the data reporting module defines communication information reported by data. And performing corresponding data channel configuration based on the first data acquisition module, the first data circulation module and the first data reporting module to establish a data channel between the equipment and the cloud platform. According to the scheme, the data channel matched with the user is established according to the requirement of the user, and the flexibility of data reporting is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic view of an application scenario of a data stream configuration method according to an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating a data flow configuration method according to an embodiment of the present disclosure;
FIG. 3 is an example of a selection interface provided by an embodiment of the present application;
FIG. 4 is an example of a data channel interface provided in an embodiment of the present application;
FIG. 5 is an example of a data channel provided by an embodiment of the present application;
fig. 6 is a flow chart of a data channel provided in an embodiment of the present application;
fig. 7 is a data channel deployment example provided in an embodiment of the present application;
fig. 8 is a diagram illustrating a structure of a data stream configuration apparatus according to a second embodiment of the present disclosure;
fig. 9 is a block diagram of a data stream configuration apparatus according to a third embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present application.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terms involved are explained first:
embedded programmable controller: a control system for performing specified independent control functions and having the ability to process data in a complex manner.
Fig. 1 is a schematic view of an application scenario of a data stream configuration method according to an embodiment of the present application, as shown in fig. 1, the scenario includes: the system comprises an embedded programmable controller 1, a data channel 2, a device 3 and a cloud platform 4.
Exemplified in connection with the illustrated scenario: the embedded programmable controller 1 determines the data channel 2 in a programming mode, the data channel 2 collects data from the equipment 3, and the data is subjected to screening processing, format processing, encryption and decryption processing and reported to the cloud platform 4.
The following describes an example of the embodiments of the present application with reference to the following embodiments.
Example one
Fig. 2 is a flowchart illustrating a data flow configuration method according to an embodiment of the present application, where the method includes the following steps:
s101, responding to user operation, and obtaining a corresponding first data acquisition module, a first data circulation module and a first data reporting module from a currently stored configuration file; the data collection module defines equipment ports and parameter settings for data collection, the data circulation module defines data processing to be executed, and the data reporting module defines communication information reported by data;
and S102, performing corresponding data channel configuration based on the first data acquisition module, the first data circulation module and the first data reporting module to establish a data channel between the equipment and the cloud platform.
As an example, the execution subject of this embodiment may be a data stream configuration device, and the data stream configuration device may be implemented in various ways. For example, the program may be software, or a medium storing a related computer program, such as a usb disk; alternatively, the apparatus may also be a physical device, such as a chip, an intelligent terminal, a computer, a server, etc., integrated with or installed with the relevant computer program.
In one example, S101 may specifically include: pushing the identifier of the currently stored configuration file to a user; responding to the selection operation of the user, and respectively using the data acquisition module, the data circulation module and the data reporting module selected by the user as the first data acquisition module, the first data circulation module and the first data reporting module.
In connection with the scene example: as shown in FIG. 3, FIG. 3 is an example of a selection interface. When the user uploads the new type of service data, a selection interface is pushed for the user. The selection interface comprises the identification of the currently stored configuration file, and the equipment, the data processing type and the data protocol parameters for the user to select the reported data. And correspondingly selecting the user, and respectively using the configuration files selected by the user as the first data acquisition module, the first data circulation module and the first data reporting module.
Based on the above embodiment, the user can select a suitable configuration file according to the requirement of uploading data.
In one example, S102 may specifically include: binding a physical port connected with the equipment port defined by the first data acquisition module according to the connection information of the embedded programmable controller and the equipment, and using the physical port as a data acquisition port of the data channel; the connection information comprises connection information between a physical port of the embedded programmable controller and an equipment port of equipment; binding an uplink port of the embedded programmable controller according to the connection information of the embedded programmable controller and the cloud platform to serve as a data reporting port of the data channel, and configuring communication parameters of the data reporting port; compiling and generating an executable file according to the first data acquisition module, the first data circulation module and the first data reporting module, and issuing the executable file to the embedded programmable controller for execution so as to establish the data channel in the embedded programmable controller; the first data circulation module defines the processing to be executed between the transmission of the equipment data from the data acquisition port of the data channel to the data reporting port.
And (3) defining a data channel through the embedded programmable controller according to a module selected by a user in combination with the scene example. The data acquisition module establishes connection with the equipment sending the reported data, and the reported data of the equipment sends the reported data to the corresponding data acquisition module according to the corresponding connection and the parameter setting of data acquisition. Wherein the parameter settings include, but are not limited to, baud rate and other parameters required for communication. And correspondingly constructing a series of acquisition modules according to different equipment types. The data reporting module is connected with the cloud platform, configures corresponding communication parameters, and is used for screening data and reporting the data to the cloud platform according to a pre-configured protocol. The data reporting comprises embedding data combination processing and triggering reporting logic codes. For example, the embedded data combining process includes sequential splicing and assigning identifiers, etc. And the trigger reporting logic code is compiled according to the condition reported by the trigger. And if the currently combined data meets the triggering reporting condition, reporting through a corresponding network. The network is determined by user selection, including but not limited to socket connection of tcp/ip, wifi connection, and the like. The data circulation module is used for receiving the data collected by the data collection module, and sending the data to the data reporting module after data processing. Wherein the data processing comprises screening and conversion of data. The data screening is to report the data stream selected by the user and filter the data stream not selected by the user. The data conversion is one or more of conversion modes such as comparison and accumulation, proportion conversion, unit conversion, character string conversion and code conversion of the data stream according to the instruction of a user.
Based on the above embodiment, the configuration file selected by the user is defined as a data channel for reporting data according to the requirement of the user.
In one example, the data stream configuration method further comprises: acquiring equipment data of equipment corresponding to an equipment port through an equipment port defined by the data channel according to the established data channel; processing the acquired equipment data according to the data processing which is defined by the data channel and needs to be executed; and reporting the processed equipment data to a cloud platform according to the communication information defined by the data channel.
For example, as shown in fig. 4, fig. 4 is an example of a data channel interface. The data channel module only comprises an interface for communicating with the equipment 1 and the equipment 2 and an interface for communicating with the cloud platform; the interfaces are configurable, when the interfaces are deployed on the embedded programmable controller, the interfaces are set as physical ports on the embedded programmable controller to complete binding, so that when the controller executes data channel module codes, actual data of equipment can be collected through the physical ports, and the data are reported to the cloud platform from network ports after being processed by the streaming module.
In connection with the scenario example, as shown in fig. 5, fig. 5 is an example of a data channel. The data acquisition module acquires data from the corresponding data according to the configured connection. And the data reporting module selects the reported data and reports the reported data to the cloud platform according to the configured network communication protocol. The data circulation module selects partial data from the reported data collected by the data collection module according to configuration, performs processing such as format conversion on the data, and sends the data to the data reporting module.
For example, as shown in fig. 6, fig. 6 is a data channel flow example. The data selection and implementation code provided by each module is stored in the form of an XML page, such as 'UPS device data acquisition module, XML', 'data statistics module, XML' and 'TCP/IP data reporting module, XML', and a unique ID is allocated to each XML page and stored in a configuration management platform. When a user needs to do according to the scene, the 3 modules are arranged and combined to form a data channel module- 'xml' for reporting the definition of a data channel of UPS statistical data through TCP/IP on a configuration interface of the embedded programmable controller, and the file can generate an executable binary file according to a hardware platform of the embedded programmable controller; when the data channel is deployed, according to the connection management of the embedded programmable controller, equipment and a network in a scene, the physical port and the communication parameters of the data channel are bound, an executable binary file is compiled and generated, and the executable binary file is issued to the embedded programmable controller to be executed, so that the data selection and the reporting control are realized.
Based on the above embodiment, each module of the data channel may execute the corresponding operation according to the requirement of the user.
In one example, the data stream configuration method further comprises: according to a communication protocol defined by the data channel, encrypting and decrypting the processed equipment data; and transmitting the encrypted and decrypted device data to the cloud platform through a data reporting port in the communication information.
In combination with the scenario example, in order to improve the security of reporting data, the data channel executes corresponding encryption and decryption processing on different device data according to the requirements of the user, and reports the processed data to the cloud platform.
Based on the above embodiment, the encryption and decryption operations can be flexibly selected and executed according to the requirements of users.
In one example, the data stream configuration method further comprises: the data channel module is stored on the configuration management platform as an independent file, and when the data channel module is deployed on the embedded programmable controller, a plurality of modules can be selected from the configuration management platform to be combined.
In connection with the scenario example, as shown in fig. 7, fig. 7 is a data channel deployment example. The embedded programmable controller is provided with 2 data channel modules, wherein the data channel 1 reports data of the equipment 1 and the equipment 2, and the data channel 2 reports data of the equipment 3.
Based on the above implementation mode, the combination of a plurality of modules is realized, and the flexibility of reporting data is improved.
In the data stream configuration method provided in this embodiment, in response to a user operation, a corresponding first data acquisition module, a corresponding first data stream module, and a corresponding first data reporting module are obtained from a currently stored configuration file; the data collection module defines an equipment port for data collection, the data circulation module defines data processing to be executed, and the data reporting module defines communication information reported by data. And performing corresponding data channel configuration based on the first data acquisition module, the first data circulation module and the first data reporting module to establish a data channel between the equipment and the cloud platform. According to the scheme, the data channel matched with the user is established according to the requirements of the user, and the flexibility of data reporting is improved.
Example two
Fig. 8 is a diagram illustrating a structure of a data stream configuration device according to a second embodiment of the present application, and as shown in fig. 8, the data stream configuration device includes:
the acquiring module 61 is configured to respond to a user operation and acquire a corresponding first data acquisition module, a corresponding first data streaming module, and a corresponding first data reporting module from a currently stored configuration file; the data collection module defines an equipment port for data collection, the data circulation module defines data processing to be executed, and the data reporting module defines communication information reported by data;
the creating module 62 is configured to perform corresponding data channel configuration based on the first data acquisition module, the first data transfer module, and the first data reporting module, so as to establish a data channel between the device and the cloud platform.
In an example, the obtaining module 61 is specifically configured to push an identifier of a currently stored configuration file to a user; the obtaining module 61 is further specifically configured to respond to a selection operation of a user, and use a data acquisition module, a data transfer module, and a data reporting module selected by the user as the first data acquisition module, the first data transfer module, and the first data reporting module, respectively.
In connection with the scene example: as shown in FIG. 3, FIG. 3 is an example of a selection interface. When the user uploads the new type of service data, a selection interface is pushed for the user. The selection interface comprises the identification of the currently stored configuration file, and the equipment, the data processing type and the data protocol parameters for the user to select the reported data. And correspondingly selecting the user, and respectively using the configuration files selected by the user as the first data acquisition module, the first data circulation module and the first data reporting module.
Based on the above embodiment, the user can select a suitable configuration file according to the requirement of uploading data.
In an example, the creating module 62 is specifically configured to bind, according to connection information between the embedded programmable controller and the device, a physical port connected to a device port defined by the first data acquisition module as a data acquisition port of the data channel; the connection information comprises connection information between a physical port of the embedded programmable controller and an equipment port of equipment; the creating module 62 is further configured to bind an uplink port of the embedded programmable controller according to connection information between the embedded programmable controller and the cloud platform, serve as a data reporting port of the data channel, and configure communication parameters of the data reporting port; the creating module 62 is specifically further configured to compile and generate an executable file according to the first data acquisition module, the first data transfer module, and the first data reporting module, and send the executable file to the embedded programmable controller for execution, so as to establish the data channel in the embedded programmable controller; the first data circulation module defines the processing to be executed between the transmission of the equipment data from the data acquisition port of the data channel to the data reporting port.
And (3) defining a data channel through the embedded programmable controller according to a module file module selected by a user by combining a scene example. The device data acquisition module establishes connection with the device sending the reported data, and the reported data of the device sends the reported data to the corresponding device data acquisition module according to the corresponding connection and the parameter setting of data acquisition. Wherein the parameter settings include, but are not limited to, baud rate and other parameters required for communication. And correspondingly constructing a series of acquisition modules according to different equipment types. The data reporting module is connected with the cloud platform, configures corresponding communication parameters, and is used for screening data and reporting the data to the cloud platform according to a pre-configured protocol. The data reporting comprises embedding data combination processing and triggering reporting logic codes. For example, the embedded data combining process includes sequential splicing and assigning identifiers, etc. And the trigger reporting logic code is compiled according to the condition reported by the trigger. And if the currently combined data meets the triggering reporting condition, reporting through a corresponding network. The network is determined by user selection, including but not limited to tcp/ip socket connection, wifi connection, etc. The data circulation module is used for receiving the data acquired by the data acquisition module and sending the data to the data reporting module after data processing. Wherein the data processing comprises screening and conversion of data. The data screening is to report the data stream selected by the user and filter the data stream not selected by the user. The data conversion is one or more of conversion modes such as comparison and accumulation, proportion conversion, unit conversion, character string conversion and code conversion of the data stream according to the instruction of a user.
Based on the above embodiment, the configuration file selected by the user is defined as a data channel for reporting data to the user's demand.
In one example, the data stream configuration apparatus further includes: the acquisition module 63 is configured to acquire, according to the established data channel, device data of a device corresponding to a device port through the device port defined by the data channel, where the data is acquired; the circulation module 64 is configured to process the acquired device data according to the data processing to be executed defined by the data channel; a reporting module 65, configured to report the processed device data to the cloud platform according to the communication information defined by the data channel.
For example, as shown in fig. 4, fig. 4 is an example of a data channel interface. The data channel module only comprises an interface for communicating with the equipment 1 and the equipment 2 and an interface for communicating with the cloud platform; the interfaces are configurable, when the interfaces are deployed on the embedded programmable controller, the interfaces are set as physical ports on the embedded programmable controller to complete binding, so that when the controller executes data channel module codes, actual data of equipment can be collected through the physical ports, and the data are reported to the cloud platform from network ports after being processed by the streaming module.
In connection with the scenario example, as shown in fig. 5, fig. 5 is an example of a data channel. The data acquisition module acquires data from the corresponding data according to the configured connection. And the data reporting module selects the reported data and reports the reported data to the cloud platform according to the configured network communication protocol. The data circulation module selects part of the data from the reported data collected by the data collection module according to the configuration, performs processing such as format conversion on the data, and sends the data to the data reporting module.
For example, as shown in fig. 6, fig. 6 is a data channel flow example. The data selection and implementation code provided by each module is stored in the form of an XML page, such as 'UPS device data acquisition module, XML', 'data statistics module, XML' and 'TCP/IP data reporting module, XML', and a unique ID is allocated to each XML page and stored in a configuration management platform. When a user needs to do according to the scene, the 3 modules are arranged and combined to form a data channel module- 'xml' for reporting the definition of a data channel of UPS statistical data through TCP/IP on a configuration interface of the embedded programmable controller, and the file can generate an executable binary file according to a hardware platform of the embedded programmable controller; when the data channel is deployed, according to the connection management of the embedded programmable controller, equipment and a network in a scene, the physical port and the communication parameters of the data channel are bound, an executable binary file is compiled and generated, and the executable binary file is issued to the embedded programmable controller to be executed, so that the data selection and the reporting control are realized.
Based on the above embodiment, each module of the data channel may execute a corresponding operation according to the requirement of the user.
In one example, the data stream configuration apparatus further includes: a security module 66, configured to perform encryption and decryption processing on the processed device data according to a communication protocol defined by the data channel; the security module 66 is further configured to transmit the encrypted and decrypted device data to the cloud platform through a data reporting port in the communication information.
In combination with the scenario example, in order to improve the security of the reported data, the data channel executes corresponding encryption and decryption processing on different device data according to the requirements of the user, and reports the processed data to the cloud platform.
Based on the above embodiment, the encryption and decryption operations can be flexibly selected and executed according to the requirements of users.
In one example, the data channel module is stored on the configuration management platform in an independent file, and when the data channel module is deployed on the embedded programmable controller, a plurality of modules can be selected from the configuration management platform to be combined.
In connection with the scenario example, as shown in fig. 7, fig. 7 is a data channel deployment example. 2 data channel modules are deployed on the embedded programmable controller, wherein the data channel 1 reports data of the equipment 1 and the equipment 2, and the data channel 2 reports data of the equipment 3.
Based on the above implementation mode, the combination of a plurality of modules is realized, and the flexibility of reporting data is improved.
In the data flow configuration apparatus provided in this embodiment, the obtaining module is configured to, in response to a user operation, obtain, from a currently stored configuration file, a corresponding first data acquisition module, a corresponding first data flow module, and a corresponding first data reporting module; the data collection module defines an equipment port for data collection, the data circulation module defines data processing to be executed, and the data reporting module defines communication information reported by data. And the creating module is used for carrying out corresponding data channel configuration based on the first data acquisition module, the first data circulation module and the first data reporting module so as to establish a data channel between the equipment and the cloud platform. According to the scheme, the data channel matched with the user is established according to the requirement of the user, and the flexibility of data reporting is improved.
EXAMPLE III
Fig. 9 is a block diagram illustrating an apparatus for a data stream configuration device, which may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, etc., according to an exemplary embodiment.
The apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Example four
Fig. 10 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present application, and as shown in fig. 10, the electronic device includes:
a processor (processor) 291, the electronic device further including a memory (memory) 292; a Communication Interface 293 and bus 294 may also be included. The processor 291, the memory 292, and the communication interface 293 may communicate with each other via the bus 294. Communication interface 293 may be used for the transmission of information. Processor 291 may call logic instructions in memory 294 to perform the methods of the embodiments described above.
Furthermore, the logic instructions in the memory 292 may be implemented in the form of software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product.
The memory 292 is a computer-readable storage medium for storing software programs, computer-executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present application. The processor 291 executes the functional application and data processing by executing the software program, instructions and modules stored in the memory 292, so as to implement the method in the above method embodiments.
The memory 292 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 292 may include a high speed random access memory and may also include a non-volatile memory.
The present application provides a non-transitory computer-readable storage medium, in which computer-executable instructions are stored, and when executed by a processor, the computer-executable instructions are used to implement the method according to the foregoing embodiments.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (8)

1. A method for configuring a data stream, comprising:
responding to user operation, and acquiring a corresponding first data acquisition module, a corresponding first data circulation module and a corresponding first data reporting module from a currently stored configuration file; the data collection module defines equipment ports and parameter settings for data collection, the data circulation module defines data processing to be executed, and the data reporting module defines communication information reported by data;
based on the first data acquisition module, the first data circulation module and the first data reporting module, corresponding data channel configuration is carried out so as to establish a data channel between the equipment and the cloud platform;
the configuring of the data channel based on the first data acquisition module, the first data transfer module and the first data reporting module to establish the data channel between the device and the cloud platform includes:
binding a physical port connected with the equipment port defined by the first data acquisition module according to the connection information of the embedded programmable controller and the equipment, and using the physical port as a data acquisition port of the data channel; the connection information comprises connection information between a physical port of the embedded programmable controller and an equipment port of equipment;
binding an uplink port of the embedded programmable controller according to the connection information of the embedded programmable controller and the cloud platform to serve as a data reporting port of the data channel, and configuring communication parameters of the data reporting port;
compiling and generating an executable file according to the first data acquisition module, the first data circulation module and the first data reporting module, and sending the executable file to the embedded programmable controller for execution so as to establish the data channel in the embedded programmable controller; the first data flow module defines the processing to be executed when the device data is transmitted from the data acquisition port of the data channel to the data reporting port.
2. The method of claim 1, wherein each configuration file is assigned a unique identification; the responding to the user operation, obtaining the corresponding first data acquisition module, first data circulation module and first data reporting module from the currently stored configuration file, includes:
pushing the identifier of the currently stored configuration file to a user;
responding to the selection operation of the user, and respectively using the data acquisition module, the data circulation module and the data reporting module selected by the user as the first data acquisition module, the first data circulation module and the first data reporting module.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
acquiring equipment data of equipment corresponding to an equipment port through the equipment port for data acquisition defined by the data channel according to the established data channel and the parameter setting for data acquisition defined by the data channel;
processing the acquired equipment data according to the data processing which is defined by the data channel and needs to be executed;
and reporting the processed equipment data to a cloud platform according to the communication information defined by the data channel.
4. The method of claim 3, wherein the communication information comprises a data reporting port and a communication protocol; the reporting the processed device data to a cloud platform according to the communication information defined by the data channel includes:
according to a communication protocol defined by the data channel, encrypting and decrypting the processed equipment data;
and transmitting the encrypted and decrypted device data to the cloud platform through a data reporting port in the communication information.
5. A data stream configuration apparatus, comprising:
the acquisition module is used for responding to user operation and acquiring a corresponding first data acquisition module, a corresponding first data circulation module and a corresponding first data reporting module from a currently stored configuration file; the data collection module defines equipment ports and parameter settings for data collection, the data circulation module defines data processing to be executed, and the data reporting module defines communication information reported by data;
the creating module is used for carrying out corresponding data channel configuration based on the first data acquisition module, the first data circulation module and the first data reporting module so as to establish a data channel between the equipment and the cloud platform;
the creating module is specifically configured to bind, according to connection information between the embedded programmable controller and the device, a physical port connected to the device port defined by the first data acquisition module, as a data acquisition port of the data channel; the connection information comprises connection information between a physical port of the embedded programmable controller and an equipment port of equipment;
the creating module is specifically further configured to bind an uplink port of the embedded programmable controller according to connection information between the embedded programmable controller and the cloud platform, serve as a data reporting port of the data channel, and configure communication parameters of the data reporting port;
the creating module is specifically further configured to compile and generate an executable file according to the first data acquisition module, the first data transfer module, and the first data reporting module, and issue the executable file to the embedded programmable controller for execution, so as to establish the data channel in the embedded programmable controller; the first data flow module defines the processing to be executed when the device data is transmitted from the data acquisition port of the data channel to the data reporting port.
6. The apparatus of claim 5,
the acquisition module is specifically used for pushing an identifier of a currently stored configuration file to a user;
the obtaining module is specifically further configured to respond to a selection operation of a user, and use a data acquisition module, a data transfer module, and a data reporting module selected by the user as the first data acquisition module, the first data transfer module, and the first data reporting module, respectively.
7. An electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory to implement the method of any of claims 1-4.
8. A computer-readable storage medium having computer-executable instructions stored therein, which when executed by a processor, are configured to implement the method of any one of claims 1-4.
CN202210217671.8A 2022-03-08 2022-03-08 Data stream configuration method and device, electronic equipment and storage medium Active CN114338800B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210217671.8A CN114338800B (en) 2022-03-08 2022-03-08 Data stream configuration method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210217671.8A CN114338800B (en) 2022-03-08 2022-03-08 Data stream configuration method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114338800A CN114338800A (en) 2022-04-12
CN114338800B true CN114338800B (en) 2022-06-17

Family

ID=81030969

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210217671.8A Active CN114338800B (en) 2022-03-08 2022-03-08 Data stream configuration method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114338800B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064707A (en) * 2012-12-25 2013-04-24 广州杰赛科技股份有限公司 Method and system for configuring parameters of intelligent terminal
CN106506213A (en) * 2016-11-09 2017-03-15 深圳云联讯数据科技有限公司 A kind of internet of things equipment visualization interface display packing and system
CN109725617A (en) * 2018-12-29 2019-05-07 杭州和利时自动化有限公司 A kind of construction method of industrial configuration platform, building system and relevant apparatus
CN112968789A (en) * 2019-12-12 2021-06-15 中兴通讯股份有限公司 Data acquisition method and device, computer equipment and computer readable medium
CN114124952A (en) * 2021-10-22 2022-03-01 上海威派格智慧水务股份有限公司 Cloud platform access system and method of data acquisition equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200348662A1 (en) * 2016-05-09 2020-11-05 Strong Force Iot Portfolio 2016, Llc Platform for facilitating development of intelligence in an industrial internet of things system
CN107295064B (en) * 2017-05-15 2020-12-01 云宏信息科技股份有限公司 Web-based configuration type remote monitoring method, electronic equipment and storage medium
US10942785B2 (en) * 2019-02-19 2021-03-09 Salesforce.Com, Inc. Integration of software applications with infrastructure
CN110598280B (en) * 2019-08-28 2023-06-16 杭州友电科技有限公司 Equipment simulation system and method and computer readable storage medium
CN110888408B (en) * 2019-12-11 2021-08-03 杭州和利时自动化有限公司 Remote switching method, device and equipment for IO module channel

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064707A (en) * 2012-12-25 2013-04-24 广州杰赛科技股份有限公司 Method and system for configuring parameters of intelligent terminal
CN106506213A (en) * 2016-11-09 2017-03-15 深圳云联讯数据科技有限公司 A kind of internet of things equipment visualization interface display packing and system
CN109725617A (en) * 2018-12-29 2019-05-07 杭州和利时自动化有限公司 A kind of construction method of industrial configuration platform, building system and relevant apparatus
CN112968789A (en) * 2019-12-12 2021-06-15 中兴通讯股份有限公司 Data acquisition method and device, computer equipment and computer readable medium
CN114124952A (en) * 2021-10-22 2022-03-01 上海威派格智慧水务股份有限公司 Cloud platform access system and method of data acquisition equipment

Also Published As

Publication number Publication date
CN114338800A (en) 2022-04-12

Similar Documents

Publication Publication Date Title
US10938756B2 (en) Task management based on instant message
KR101759418B1 (en) Method, apparatus, system, program and recording medium for managing administrative relation between account and device
EP3188066B1 (en) A method and an apparatus for managing an application
EP3772700A1 (en) Method and device for encrypting model of neural network, and storage medium
JP6346711B2 (en) Communication carrier network connection method and apparatus, program, and recording medium
KR101744695B1 (en) Configuration method, device, program, and recording medium
KR102160166B1 (en) Device control method, apparatus, program and recording medium
CN105119790B (en) Apparatus control method and device
JP2018519678A (en) Wireless access point access method, apparatus, program, and recording medium
KR101715801B1 (en) Methods, apparatuses, program and recording medium for controlling wireless access point
EP3051772B1 (en) Method and apparatus for accessing network
EP3883285A1 (en) Method and device for using network slice
US20170171794A1 (en) Method and apparatus for acquiring routing information
CN111031002B (en) Broadcast discovery method, broadcast discovery device, and storage medium
JP6917480B2 (en) Cross-carrier scheduling method and equipment
CN107404521B (en) Method, device and system for resetting equipment
JP6310159B2 (en) Application installation method, apparatus, smart device, program, and recording medium
CN111010721A (en) Wireless network distribution method, wireless network distribution device and computer readable storage medium
EP3876451A1 (en) Information feedback method and apparatus
CN103902688A (en) File operation synchronizing method and device
CN107070707B (en) Method and device for determining initialization mode of router
CN114338800B (en) Data stream configuration method and device, electronic equipment and storage medium
CN109922465B (en) Network configuration method and device
CN108924085B (en) Network scheduling method, device and storage medium
EP3177043B1 (en) Method and apparatus for managing routing device and mobile terminal

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