CN115102992B - Data publishing method and device, electronic equipment and computer readable medium - Google Patents

Data publishing method and device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN115102992B
CN115102992B CN202210828953.1A CN202210828953A CN115102992B CN 115102992 B CN115102992 B CN 115102992B CN 202210828953 A CN202210828953 A CN 202210828953A CN 115102992 B CN115102992 B CN 115102992B
Authority
CN
China
Prior art keywords
data acquisition
data
acquisition process
configuration information
function group
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
CN202210828953.1A
Other languages
Chinese (zh)
Other versions
CN115102992A (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.)
Nanjing Shurui Data Technology Co ltd
Original Assignee
Nanjing Shurui Data 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 Nanjing Shurui Data Technology Co ltd filed Critical Nanjing Shurui Data Technology Co ltd
Priority to CN202210828953.1A priority Critical patent/CN115102992B/en
Publication of CN115102992A publication Critical patent/CN115102992A/en
Application granted granted Critical
Publication of CN115102992B publication Critical patent/CN115102992B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y30/00IoT infrastructure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/24Negotiation of communication capabilities

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the disclosure discloses a data publishing method, a data publishing device, electronic equipment and a computer readable medium. One embodiment of the method comprises: classifying data acquisition functions in the gateway of the Internet of things according to different data acquisition protocols to obtain a data acquisition function group set; separating the data acquisition function in each data acquisition function group in the data acquisition function group set from the gateway of the Internet of things to obtain a data acquisition process set; configuring and storing a data release address and a data format of each data acquisition process in the data acquisition process set; acquiring data by using a data acquisition process in the data acquisition process set; and issuing the acquired data according to the configured data format and the data issuing address so as to be acquired by the data application process. The implementation mode realizes dynamic selection of the data acquisition protocol supported by the gateway of the Internet of things.

Description

Data publishing method and device, electronic equipment and computer readable medium
Technical Field
Embodiments of the present disclosure relate to the field of computer technologies, and in particular, to a data publishing method, apparatus, electronic device, and computer-readable medium.
Background
The updating of the data acquisition protocol of the gateway of the internet of things is a technology for updating the data acquisition protocol in the gateway of the internet of things when a new data acquisition protocol appears so that the gateway of the internet of things can support the new data acquisition protocol. At present, when a gateway data acquisition protocol of the internet of things is updated, the method generally adopted is as follows: and re-developing the whole gateway of the Internet of things to realize the support of a data acquisition protocol.
However, when the internet of things gateway data acquisition protocol is updated in the above manner, the following technical problems often exist:
firstly, it is difficult to dynamically select a data acquisition protocol supported by the gateway of the internet of things according to actual application requirements;
secondly, the coupling between data acquisition and data application is too high, so that the flexibility of the gateway of the Internet of things is reduced;
thirdly, the development period is long and the development difficulty is high when the support of the newly added data protocol is realized.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose methods, apparatuses, devices/terminals/servers and computer readable media for generating web pages to solve one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a data publishing method, including: classifying data acquisition functions in the Internet of things gateway according to different data acquisition protocols to obtain a data acquisition function group set, wherein the data acquisition protocols corresponding to the data acquisition functions in the data acquisition function group set are different; separating the data acquisition function in each data acquisition function group in the data acquisition function group set from the gateway of the Internet of things to obtain a data acquisition process set; configuring and storing a data release address and a data format of each data acquisition process in the data acquisition process set; acquiring data by using a data acquisition process in the data acquisition process set; and issuing the acquired data according to the configured data format and the data issuing address so as to be acquired by the data application process.
Optionally, the configuring and storing the data publishing address and the data format of each data collection process in the data collection process set includes:
receiving a data acquisition process configuration information set, wherein the data acquisition process configuration information in the data acquisition process configuration information set comprises: a data acquisition protocol, a data release address and a data format;
matching the data acquisition process configuration information in the data acquisition process configuration information set with the data acquisition process in the data acquisition process set to obtain a matching pair set, wherein the matching pair in the matching pair set comprises the data acquisition process configuration information and a process identifier of the data acquisition process;
and storing the process identification, the data release address and the data format in each matching pair in the matching pair set as configuration information.
Optionally, the matching the data acquisition process configuration information in the data acquisition process configuration information set with the data acquisition process in the data acquisition process set to obtain a matching pair set includes:
and for each data acquisition process in the data acquisition process set, determining the data acquisition process configuration information meeting preset conditions in the data acquisition process configuration information set as data acquisition process configuration information matched with the data acquisition process to obtain a matched pair, wherein the preset conditions are that a data acquisition protocol in the data acquisition process configuration information is the same as a data acquisition protocol corresponding to the data acquisition process.
Optionally, the data application process obtains the target data through the following steps:
determining at least one piece of data acquisition information from the issued data acquisition information as target data acquisition information;
performing message subscription on a data publishing address in at least one piece of target data acquisition information;
receiving data sent by a data release address in any target data acquisition information in at least one piece of target data acquisition information;
and carrying out service processing on the received data.
Optionally, the method further includes:
generating a newly added data acquisition process by utilizing a newly added data acquisition protocol in response to receiving the newly added data acquisition protocol, wherein the newly added data transmission protocol is a data acquisition protocol different from the data acquisition protocol corresponding to each data acquisition process in the data acquisition process set;
and adding the newly added data acquisition process into the data acquisition process set.
In a second aspect, some embodiments of the present disclosure provide a data publishing apparatus, the apparatus comprising: the classification unit is configured to classify data acquisition functions in the gateway of the Internet of things according to different data acquisition protocols to obtain a data acquisition function group set, wherein the data acquisition protocols corresponding to the data acquisition functions in the data acquisition function group set are different; the separation unit is configured to separate the data acquisition function in each data acquisition function group in the data acquisition function group set from the gateway of the internet of things to obtain a data acquisition process set; the configuration and storage unit is configured to configure and store the data release address and the data format of each data acquisition process in the data acquisition process set; the utilization unit is configured to utilize the data acquisition process in the data acquisition process set to acquire data; and the issuing unit is configured to issue the acquired data according to the configured data format and the data issuing address so as to be acquired by the data application process.
In a third aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors, cause the one or more processors to implement the method described in any of the implementations of the first aspect.
In a fourth aspect, some embodiments of the disclosure provide a computer readable medium on which a computer program is stored, wherein the program when executed by a processor implements the method described in any implementation of the first aspect.
The above embodiments of the present disclosure have the following advantages: according to the data release method provided by some embodiments of the disclosure, the data acquisition protocol supported by the gateway of the Internet of things can be dynamically selected according to actual application requirements, so that the flexibility of the gateway of the Internet of things is improved. Specifically, the reason why it is difficult to dynamically select the data acquisition protocol supported by the gateway of the internet of things according to the actual application requirement is that: the data acquisition functions corresponding to the data acquisition protocols in the gateway of the Internet of things are mixed with each other. Based on this, according to the data publishing method of some embodiments of the present disclosure, firstly, data collection functions in the internet of things gateway are classified according to different data collection protocols to obtain a data collection function group set, where the data collection protocols corresponding to the data collection functions in the data collection function group set are different. And then, separating the data acquisition function in each data acquisition function group in the data acquisition function group set from the gateway of the Internet of things to obtain a data acquisition process set. Therefore, the data acquisition functions with different data acquisition protocols are separated, and an independent data acquisition process is formed. And then, configuring and storing the data publishing address and the data format of each data acquisition process in the data acquisition process set. And then, carrying out data acquisition by using the data acquisition process in the data acquisition process set. Thus, the data acquisition is realized by using a single data acquisition process. And finally, issuing the acquired data according to the configured data format and the data issuing address so as to be acquired by the data application process. Furthermore, according to the actual application requirements, the data acquisition process which is not needed to be used temporarily can be stopped, and loading is carried out again when the data acquisition process is needed again. Therefore, dynamic selection of the data acquisition protocol supported by the gateway of the Internet of things is realized.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a flow diagram of some embodiments of a data publication method according to the present disclosure;
FIG. 2 is a block diagram of some embodiments of a data publication apparatus of the present disclosure;
FIG. 3 is a schematic block diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a" or "an" in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will appreciate that references to "one or more" are intended to be exemplary and not limiting unless the context clearly indicates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates a flow 100 of some embodiments of a data publication method according to the present disclosure. The data issuing method comprises the following steps:
step 101, classifying data acquisition functions in the internet of things gateway according to different data acquisition protocols to obtain a data acquisition function group set.
In some embodiments, the execution subject of the data publishing method may classify the data collection functions in the internet of things gateway according to different data collection protocols to obtain a data collection function group set. The data acquisition protocols corresponding to the data acquisition functions in the data acquisition function group set may be different. Each data acquisition function in the gateway of the internet of things corresponds to one data acquisition protocol, and data acquisition is carried out according to the corresponding data acquisition protocol.
Therefore, firstly, according to different data acquisition protocols, the data acquisition functions in the internet of things gateway are classified, so that each data acquisition function group in the obtained data acquisition function group set respectively corresponds to different data acquisition protocols.
And step 102, separating the data acquisition function in each data acquisition function group in the data acquisition function group set from the gateway of the Internet of things to obtain a data acquisition process set.
In some embodiments, the separating, by the executing main body, the data collection function in each data collection function group in the data collection function group set from the internet of things gateway to obtain a data collection process set may include:
and packaging codes corresponding to the data acquisition functions in each data acquisition function group in the data acquisition function group set in the gateway of the Internet of things to generate a data acquisition process, so as to obtain a data acquisition process set. Therefore, each data acquisition protocol can independently provide data acquisition service to the outside.
And 103, configuring and storing the data issuing address and the data format of each data acquisition process in the data acquisition process set.
In some embodiments, the configuring and storing the data publishing address and the data format of each data collection process in the data collection process set by the execution subject may include:
the first step is to receive a data acquisition process configuration information set. The data acquisition process configuration information in the data acquisition process configuration information set may include: data acquisition protocol, data release address and data format. The data publishing address may be a topic of data publishing.
And secondly, matching the data acquisition process configuration information in the data acquisition process configuration information set with the data acquisition processes in the data acquisition process set to obtain a matching pair set. The matching pairs in the matching pair set may include configuration information of a data acquisition process and a process identifier of the data acquisition process.
Optionally, the matching the data acquisition process configuration information in the data acquisition process configuration information set and the data acquisition process in the data acquisition process set by the execution main body to obtain a matching pair set may include the following steps:
and for each data acquisition process in the data acquisition process set, determining the data acquisition process configuration information meeting preset conditions in the data acquisition process configuration information set as data acquisition process configuration information matched with the data acquisition process to obtain a matched pair. The preset condition may be that a data acquisition protocol in the configuration information of the data acquisition process is the same as a data acquisition protocol corresponding to the data acquisition process.
Therefore, by configuring the data publishing address and the data format of each data acquisition process, after the data acquisition process acquires the data, the data can be sent to the designated data publishing address according to the corresponding data format. The data acquisition process does not need to be directly butted with other processes needing to utilize the data, decoupling between the processes is realized, and the flexibility of the data acquisition process is improved.
And thirdly, storing the process identification, the data release address and the data format in each matching pair in the matching pair set as configuration information. Wherein the configuration information of which the configuration is completed can be stored in a local storage space.
The above steps are taken as an invention point of the embodiment of the disclosure, and the technical problems mentioned in the background art that the coupling between data acquisition and data application is too high and the flexibility of the gateway of the internet of things is reduced are solved. The factors that lead to the above technical problem tend to be as follows: the data acquisition process is directly interfaced with the data application process. If the above factors are solved, the effects of reducing the coupling and improving the flexibility can be achieved. To achieve this, the present disclosure first receives a set of data collection process configuration information. The data acquisition process configuration information in the data acquisition process configuration information set may include: data acquisition protocol, data release address and data format. And then, matching the data acquisition process configuration information in the data acquisition process configuration information set with the data acquisition processes in the data acquisition process set to obtain a matching pair set. And then, storing the process identification and the data release address and the data format in each matching pair in the matching pair set as configuration information. Therefore, by configuring the data release address and the data format of each data acquisition process, after the data acquisition process acquires the data, the data can be sent to the specified data release address according to the corresponding data format. The data acquisition process does not need to be directly butted with other processes needing to utilize the data, decoupling between the processes is realized, and the flexibility of the data acquisition process is improved.
And step 104, acquiring data by using the data acquisition process in the data acquisition process set.
In some embodiments, the execution subject may perform data collection by using a data collection process in the data collection process set.
In some optional implementation manners of some embodiments, before performing data acquisition by using a data acquisition process in the data acquisition process set, the executing body may perform the following steps:
and issuing the process identification, the corresponding data issuing address and the data format of each data acquisition process in the data acquisition process set as data acquisition information.
Therefore, the data application process can subscribe the data publishing address receiving the data format according to the required data format, so as to acquire the corresponding data.
And 105, issuing the acquired data according to the configured data format and the data issuing address so as to be acquired by the data application process.
In some embodiments, the issuing, by the execution subject, the collected data according to the configured data format and the data issuing address, so as to be acquired by the data application process, may include the following steps:
executing the following data publishing steps for each data acquisition process in the data acquisition process set:
firstly, original data acquired by the data acquisition process is converted into a data format corresponding to the data acquisition process, and target data are obtained. In which conversion rules for converting the collected raw data into each data format may be stored in advance. Therefore, the corresponding conversion rule can be searched according to the data format corresponding to the data acquisition process. And then, converting the acquired original data into target data in a corresponding data format by using a conversion rule.
And secondly, sending the target data to a data release address corresponding to the data acquisition process.
In some optional implementations of some embodiments, the executing body may further perform the following steps:
the first step, in response to receiving the new data acquisition protocol, generating a new data acquisition process by using the new data acquisition protocol. The newly added data transmission protocol may be a data acquisition protocol different from the data acquisition protocol corresponding to each data acquisition process in the data acquisition process set.
Therefore, mutually independent data acquisition processes are separated from the gateway of the Internet of things, and the data acquisition processes are not interfered with each other. Therefore, when a new data protocol appears and data acquisition needs to be performed in the gateway of the internet of things by using the new data protocol, a new data acquisition process can be independently developed in the gateway of the internet of things aiming at the new data acquisition protocol. The whole gateway process of the internet of things does not need to be re-developed. Therefore, the workload and the difficulty of development are reduced, and the support of a newly added data acquisition protocol can be conveniently realized.
And secondly, adding the newly added data acquisition process into the data acquisition process set.
Optionally, the data application process may obtain the target data through the following steps:
the method comprises the first step of determining at least one piece of data acquisition information from each piece of issued data acquisition information as target data acquisition information.
Therefore, the data application process can determine the data format of the required data according to the actual requirement, so as to subscribe the data publishing address corresponding to the data format and acquire the corresponding data. The data application process can not need to realize the perception of the data acquisition protocol and the data acquisition process, thereby realizing decoupling and improving the flexibility of data acquisition and data application.
And secondly, subscribing the information of the data publishing address in at least one piece of target data acquisition information. Therefore, the data acquired by the data publishing address can be acquired in time through the message subscription of the data publishing address.
And thirdly, receiving data sent by a data release address in any one of the target data acquisition information.
And fourthly, carrying out service processing on the received data.
The above steps are taken as an invention point of the embodiment of the disclosure, and the technical problems mentioned in the background art are solved, namely, the development period is long and the development difficulty is high when the support of the newly added data protocol is realized. The factors that lead to the above technical problems tend to be as follows: when the internet of things gateway data acquisition protocol is updated, the whole internet of things gateway needs to be re-developed so as to support the data acquisition protocol. If the factors are solved, the effects of shortening the development period and reducing the development difficulty are achieved. In order to achieve this effect, the present disclosure first converts the original data acquired by the data acquisition process into a data format corresponding to the data acquisition process to obtain target data. And then, sending the target data to a data release address corresponding to the data acquisition process. And then, responding to the received newly added data acquisition protocol, and generating a newly added data acquisition process by using the newly added data acquisition protocol. The new data transmission protocol may be a data acquisition protocol different from the data acquisition protocol corresponding to each data acquisition process in the data acquisition process set. Therefore, mutually independent data acquisition processes are separated from the gateway of the Internet of things, and the data acquisition processes are not interfered with each other. Therefore, when a new data protocol appears and data acquisition needs to be performed in the gateway of the internet of things by using the new data protocol, a new data acquisition process can be independently developed in the gateway of the internet of things aiming at the new data acquisition protocol. The whole gateway process of the internet of things does not need to be re-developed. Therefore, the workload and the difficulty of development are reduced, and the support of a newly added data acquisition protocol can be conveniently realized. And then, adding the newly added data acquisition process into the data acquisition process set. Meanwhile, the data application process can acquire the target data through the following steps: the method comprises the first step of determining at least one piece of data acquisition information from each piece of issued data acquisition information as target data acquisition information. Therefore, the data application process can determine the data format of the required data according to the actual requirement, so as to subscribe the data publishing address corresponding to the data format and acquire the corresponding data. The data application process can realize the sensing of the data acquisition protocol and the data acquisition process without realizing, thereby realizing the decoupling and improving the flexibility of data acquisition and data application. And secondly, subscribing the information of the data publishing address in at least one piece of target data acquisition information. Therefore, the data acquired by the data publishing address can be acquired in time through subscribing the message of the data publishing address. And thirdly, receiving data sent by a data release address in any one of the target data acquisition information. And fourthly, carrying out service processing on the received data. Furthermore, through the steps, when the data acquisition protocol of the gateway of the internet of things is updated, the whole gateway of the internet of things does not need to be re-developed, and the data acquisition protocol can be conveniently supported.
The above embodiments of the present disclosure have the following advantages: according to the data publishing method provided by some embodiments of the disclosure, the data acquisition protocol supported by the gateway of the Internet of things can be dynamically selected according to actual application requirements, so that the flexibility of the gateway of the Internet of things is improved. Specifically, the reason why it is difficult to dynamically select the data acquisition protocol supported by the gateway of the internet of things according to the actual application requirement is that: the data acquisition functions corresponding to the data acquisition protocols in the gateway of the Internet of things are mixed with each other. Based on this, according to the data publishing method of some embodiments of the present disclosure, firstly, data collection functions in the internet of things gateway are classified according to different data collection protocols to obtain a data collection function group set, where the data collection protocols corresponding to the data collection functions in the data collection function group set are different. And then, separating the data acquisition function in each data acquisition function group in the data acquisition function group set from the gateway of the Internet of things to obtain a data acquisition process set. Therefore, the data acquisition functions with different data acquisition protocols are separated, and an independent data acquisition process is formed. And then, configuring and storing the data publishing address and the data format of each data acquisition process in the data acquisition process set. And then, data acquisition is carried out by utilizing the data acquisition process in the data acquisition process set. Thus, the data acquisition is realized by using a separate data acquisition process. And finally, issuing the acquired data according to the configured data format and the data issuing address so as to be acquired by the data application process. Furthermore, according to the actual application requirements, the data acquisition process which is not needed to be used temporarily can be stopped, and loading is carried out again when the data acquisition process is needed again. Therefore, dynamic selection of the data acquisition protocol supported by the gateway of the Internet of things is realized.
With further reference to fig. 2, as an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a data distribution apparatus, which correspond to those of the method embodiments shown in fig. 1, and which may be applied in various electronic devices in particular.
As shown in fig. 2, the data distribution apparatus 200 of some embodiments includes: a classification unit 201, a separation unit 202, a configuration and storage unit 203, a utilization unit 204 and a publication unit 205. The classifying unit 201 is configured to classify data acquisition functions in the internet of things gateway according to different data acquisition protocols to obtain a data acquisition function group set, where the data acquisition protocols corresponding to the data acquisition functions in the data acquisition function group set are different; a separating unit 202, configured to separate the data acquisition function in each data acquisition function group in the data acquisition function group set from the internet of things gateway, so as to obtain a data acquisition process set; a configuration and storage unit 203 configured to configure and store a data issue address and a data format of each data acquisition process in the data acquisition process set; a utilizing unit 204 configured to utilize the data acquisition process in the data acquisition process set to perform data acquisition; the publishing unit 205 is configured to publish the collected data according to the configured data format and the data publishing address, so as to be acquired by the data application process.
It will be understood that the units described in the apparatus 200 correspond to the various steps in the method described with reference to fig. 1. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 200 and the units included therein, and are not described herein again.
Referring now to FIG. 3, a block diagram of an electronic device 300 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 3, electronic device 300 may include a processing device (e.g., central processing unit, graphics processor, etc.) 301 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 302 or a program loaded from a storage device 308 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data necessary for the operation of the electronic apparatus 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
Generally, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; and a communication device 309. The communication means 309 may allow the electronic device 300 to communicate with other devices, wireless or wired, to exchange data. While fig. 3 illustrates an electronic device 300 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may be alternatively implemented or provided. Each block shown in fig. 3 may represent one device or may represent multiple devices, as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302. The computer program, when executed by the processing apparatus 301, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: classifying data acquisition functions in the gateway of the Internet of things according to different data acquisition protocols to obtain a data acquisition function group set, wherein the data acquisition protocols corresponding to the data acquisition functions in the data acquisition function group set are different; separating the data acquisition function in each data acquisition function group in the data acquisition function group set from the gateway of the Internet of things to obtain a data acquisition process set; configuring and storing a data release address and a data format of each data acquisition process in the data acquisition process set; acquiring data by using a data acquisition process in the data acquisition process set; and issuing the acquired data according to the configured data format and the data issuing address so as to be acquired by the data application process.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, and may be described as: a processor includes a sorting unit, a separating unit, a configuration and storage unit, a utilization unit, and an issuing unit. For example, the receiving unit may also be described as a unit that "classifies data acquisition functions in the internet of things gateway according to different data acquisition protocols, so as to obtain a data acquisition function group set.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems on a chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.

Claims (7)

1. A method of data distribution, comprising:
classifying data acquisition functions in the Internet of things gateway according to different data acquisition protocols to obtain a data acquisition function group set, wherein the data acquisition protocols corresponding to the data acquisition functions in the data acquisition function group set are different;
separating the data acquisition function in each data acquisition function group in the data acquisition function group set from the gateway of the Internet of things to obtain a data acquisition process set;
configuring and storing a data publishing address and a data format of each data acquisition process in the data acquisition process set;
acquiring data by using a data acquisition process in the data acquisition process set;
issuing the acquired data according to the configured data format and the data issuing address so as to be acquired by a data application process;
the configuring and storing the data issue address and the data format of each data acquisition process in the data acquisition process set includes:
receiving a data acquisition process configuration information set, wherein the data acquisition process configuration information in the data acquisition process configuration information set comprises: a data acquisition protocol, a data release address and a data format;
matching the data acquisition process configuration information in the data acquisition process configuration information set with the data acquisition process in the data acquisition process set to obtain a matching pair set, wherein the matching pair in the matching pair set comprises the data acquisition process configuration information and a process identifier of the data acquisition process;
storing the process identification, the data release address and the data format in each matching pair in the matching pair set as configuration information;
the matching the data acquisition process configuration information in the data acquisition process configuration information set with the data acquisition process in the data acquisition process set to obtain a matching pair set, including:
and for each data acquisition process in the data acquisition process set, determining data acquisition process configuration information meeting preset conditions in the data acquisition process configuration information set as data acquisition process configuration information matched with the data acquisition process to obtain a matched pair, wherein the preset conditions are that a data acquisition protocol in the data acquisition process configuration information is the same as a data acquisition protocol corresponding to the data acquisition process.
2. The method of claim 1, wherein prior to said utilizing a data acquisition process of the set of data acquisition processes for data acquisition, the method further comprises:
and issuing the process identification, the corresponding data issuing address and the data format of each data acquisition process in the data acquisition process set as data acquisition information.
3. The method of claim 1, wherein the publishing the collected data according to the configured data format and data publishing address comprises:
for each data collection process in the set of data collection processes, performing the following data publishing steps:
converting the original data acquired by the data acquisition process into a data format corresponding to the data acquisition process to obtain target data;
and sending the target data to a data issuing address corresponding to the data acquisition process.
4. The method according to one of claims 1 to 3, wherein the separating the data acquisition function in each data acquisition function group in the data acquisition function group set from the gateway of the internet of things to obtain a data acquisition process set comprises:
and packaging codes corresponding to the data acquisition functions in each data acquisition function group in the data acquisition function group set in the gateway of the Internet of things to generate a data acquisition process, so as to obtain a data acquisition process set.
5. A data distribution apparatus comprising:
the classification unit is configured to classify data acquisition functions in the gateway of the Internet of things according to different data acquisition protocols to obtain a data acquisition function group set, wherein the data acquisition protocols corresponding to the data acquisition functions in the data acquisition function group set are different;
the separation unit is configured to separate the data acquisition function in each data acquisition function group in the data acquisition function group set from the gateway of the internet of things to obtain a data acquisition process set;
the configuration and storage unit is configured to configure and store the data release address and the data format of each data acquisition process in the data acquisition process set;
a utilization unit configured to utilize a data acquisition process in the set of data acquisition processes for data acquisition;
the issuing unit is configured to issue the acquired data according to the configured data format and the data issuing address so as to be acquired by the data application process;
wherein the configuration and storage unit is further configured to:
receiving a data acquisition process configuration information set, wherein the data acquisition process configuration information in the data acquisition process configuration information set comprises: a data acquisition protocol, a data release address and a data format;
matching the data acquisition process configuration information in the data acquisition process configuration information set with the data acquisition process in the data acquisition process set to obtain a matching pair set, wherein the matching pair in the matching pair set comprises the data acquisition process configuration information and a process identifier of the data acquisition process;
storing the process identification, the data release address and the data format in each matching pair in the matching pair set as configuration information;
said matching data acquisition process configuration information in said set of data acquisition process configuration information with data acquisition processes in said set of data acquisition processes to obtain a set of matched pairs, further configured to:
and for each data acquisition process in the data acquisition process set, determining the data acquisition process configuration information meeting preset conditions in the data acquisition process configuration information set as data acquisition process configuration information matched with the data acquisition process to obtain a matched pair, wherein the preset conditions are that a data acquisition protocol in the data acquisition process configuration information is the same as a data acquisition protocol corresponding to the data acquisition process.
6. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-4.
7. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-4.
CN202210828953.1A 2022-07-15 2022-07-15 Data publishing method and device, electronic equipment and computer readable medium Active CN115102992B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210828953.1A CN115102992B (en) 2022-07-15 2022-07-15 Data publishing method and device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210828953.1A CN115102992B (en) 2022-07-15 2022-07-15 Data publishing method and device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN115102992A CN115102992A (en) 2022-09-23
CN115102992B true CN115102992B (en) 2022-12-02

Family

ID=83297628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210828953.1A Active CN115102992B (en) 2022-07-15 2022-07-15 Data publishing method and device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN115102992B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116860353A (en) * 2023-06-30 2023-10-10 北京百度网讯科技有限公司 Data processing method, device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105025056A (en) * 2014-04-25 2015-11-04 上海迪爱斯通信设备有限公司 Internet of Things information collection and monitoring system design method
CN108366051A (en) * 2018-01-25 2018-08-03 北京农业信息技术研究中心 A kind of Internet of Things perception data shared system
CN111751614A (en) * 2020-06-29 2020-10-09 深圳供电局有限公司 Non-invasive electricity consumption data testing system and method based on ModBus
CN111817897A (en) * 2020-07-17 2020-10-23 四川长虹电器股份有限公司 Acquisition transmission monitoring system and acquisition transmission monitoring method capable of configuring gateway
CN112307071A (en) * 2020-12-04 2021-02-02 上海连尚网络科技有限公司 Monitoring data acquisition method and device, electronic equipment and computer readable medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112384924A (en) * 2018-07-26 2021-02-19 西门子股份公司 Method and device for establishing product performance prediction model, computer equipment, computer readable storage medium, product performance prediction method and prediction system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105025056A (en) * 2014-04-25 2015-11-04 上海迪爱斯通信设备有限公司 Internet of Things information collection and monitoring system design method
CN108366051A (en) * 2018-01-25 2018-08-03 北京农业信息技术研究中心 A kind of Internet of Things perception data shared system
CN111751614A (en) * 2020-06-29 2020-10-09 深圳供电局有限公司 Non-invasive electricity consumption data testing system and method based on ModBus
CN111817897A (en) * 2020-07-17 2020-10-23 四川长虹电器股份有限公司 Acquisition transmission monitoring system and acquisition transmission monitoring method capable of configuring gateway
CN112307071A (en) * 2020-12-04 2021-02-02 上海连尚网络科技有限公司 Monitoring data acquisition method and device, electronic equipment and computer readable medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MT7628与OpenWrt的MQTT异构协议设计;陶伟等;《单片机与嵌入式系统应用》;20210930;第14-22页 *

Also Published As

Publication number Publication date
CN115102992A (en) 2022-09-23

Similar Documents

Publication Publication Date Title
CN111291103B (en) Interface data analysis method and device, electronic equipment and storage medium
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN115102992B (en) Data publishing method and device, electronic equipment and computer readable medium
CN114513552A (en) Data processing method, device, equipment and storage medium
CN112699111B (en) Report generation method and device, electronic equipment and computer readable medium
CN114490718A (en) Data output method, data output device, electronic equipment and computer readable medium
CN112507676B (en) Method and device for generating energy report, electronic equipment and computer readable medium
CN113126985B (en) Method, apparatus, electronic device and computer readable medium for page rendering
CN112464039A (en) Data display method and device of tree structure, electronic equipment and medium
CN112732457A (en) Image transmission method, image transmission device, electronic equipment and computer readable medium
CN111580890A (en) Method, apparatus, electronic device, and computer-readable medium for processing features
CN111898061A (en) Method, device, electronic equipment and computer readable medium for searching network
CN111414161A (en) Method, device, medium and electronic equipment for generating ID L file
CN113472565B (en) Method, apparatus, device and computer readable medium for expanding server function
CN116319322B (en) Power equipment node communication connection method, device, equipment and computer medium
CN113157365B (en) Program running method, program running device, electronic equipment and computer readable medium
CN115277421B (en) Configuration information pushing method, device, electronic equipment and computer readable medium
CN111400322B (en) Method, apparatus, electronic device and medium for storing data
CN112311833B (en) Data updating method and device
CN115941750B (en) Calculation force optimization method, equipment and computer medium of automatic driving system chip
CN111314457B (en) Method and device for setting virtual private cloud
CN118069758A (en) Distributed database data changing method and device, electronic equipment and medium
CN116126818A (en) Retail data synchronization method, device, electronic equipment and computer readable medium
CN113778956A (en) Resource processing method and device, electronic equipment and computer readable medium
CN114493765A (en) Order processing information generation method and device, electronic equipment and 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