CN107872515B - Data release system and method - Google Patents

Data release system and method Download PDF

Info

Publication number
CN107872515B
CN107872515B CN201710930389.3A CN201710930389A CN107872515B CN 107872515 B CN107872515 B CN 107872515B CN 201710930389 A CN201710930389 A CN 201710930389A CN 107872515 B CN107872515 B CN 107872515B
Authority
CN
China
Prior art keywords
data
equipment
controller
publisher
subscriber
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
CN201710930389.3A
Other languages
Chinese (zh)
Other versions
CN107872515A (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201710930389.3A priority Critical patent/CN107872515B/en
Publication of CN107872515A publication Critical patent/CN107872515A/en
Application granted granted Critical
Publication of CN107872515B publication Critical patent/CN107872515B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Abstract

The invention discloses a data publishing system and a data publishing method, which at least solve the problem of poor real-time performance of data acquisition of the Internet of things in the related technology. The disclosed data distribution system includes: the data acquisition unit is used for acquiring data of equipment connected with the data acquisition unit; the controller is used for receiving the equipment data acquired by the data acquisition unit and sending the received equipment data to the data manager; the data manager is used for receiving the equipment data sent by the controller and sending the received equipment data to the data distributor; the data distributor is used for receiving a request which is sent by user end equipment and is connected with the controller, and establishing a publisher and a subscriber according to a channel identifier corresponding to the controller, wherein the subscriber is used for monitoring a control instruction sent by the user end equipment, and the publisher is used for sending equipment data indicated by the control instruction to the user end equipment. The real-time performance of the data collected by the Internet of things is improved.

Description

Data release system and method
Technical Field
The invention relates to the technical field of Internet of things, in particular to a data publishing system and method.
Background
With the rapid development of the internet of things, how to acquire data of physical equipment in real time and quickly respond to a user is the first step of the energy internet and is also an important step. At present, the data acquisition and transmission of the internet of things can be realized in a centralized management mode in the related technology. However, in the internet of things across regions and even in a larger range, data is collected in a subscription/distribution centralized management mode and transmitted to the database, so that the real-time performance of the data is poor, and the method is not suitable for the quick response requirement of the current global internet of things.
Disclosure of Invention
The invention provides a data release system and a data release method, which are used for at least solving the problem of poor real-time performance of data of the Internet of things in the related technology.
According to an aspect of the present application, there is provided a data distribution system including: the data acquisition unit is used for acquiring data of the electronic equipment connected with the data acquisition unit; the controller is used for receiving the equipment data acquired by the data acquisition unit and sending the received equipment data to the data manager; the data manager is used for receiving the equipment data sent by the controller and sending the received equipment data to the data distributor; the data distributor is used for receiving a request which is sent by user end equipment and is connected with the controller, and establishing a publisher and a subscriber according to a channel identifier corresponding to the controller, wherein the subscriber is used for monitoring a control instruction sent by the user end equipment, and the publisher is used for sending equipment data indicated by the control instruction to the user end equipment.
Optionally, the data manager is further configured to: creating a transmission channel corresponding to each controller and distributing a channel identifier for each controller, and identifying received equipment data sent by the controllers according to the channel identifiers; and analyzing the received equipment data, and sending the analyzed data to the data distributor after carrying the channel identifier.
Optionally, the publisher and the subscriber transmit message data through a message queue.
Optionally, the data manager is further configured to: and selecting the data distributor to create the subscriber and the publisher according to the network delay condition on the principle of shortest path and/or maximum transmission rate.
Optionally, the electronic device includes the data collector.
According to another aspect of the present application, there is provided a data distribution method including: receiving a request for establishing connection with a controller, which is sent by user side equipment; creating a publisher and a subscriber according to the channel identifier corresponding to the controller indicated in the connection request; monitoring a control instruction sent by the customer premise equipment by using the subscriber; and sending the equipment data indicated by the control instruction to the customer premise equipment by using the publisher.
Optionally, the publisher and the subscriber transmit message data through a message queue.
Optionally, the method further comprises: and when receiving the equipment data sent by the controller, creating a receiving channel for the controller and distributing a channel identifier corresponding to the controller.
Optionally, the creating a publisher and a subscriber according to the channel identifier corresponding to the controller indicated in the connection request includes: and selecting a data distributor to create the subscriber and the publisher according to the network delay condition on the principle of shortest path and/or maximum transmission rate.
Optionally, the electronic device includes the data collector.
According to the scheme provided by the embodiment of the application, when the user end equipment requests to establish connection with the controller, the publisher and the subscriber are created according to the channel identification corresponding to the controller, so that the subscriber monitors the control instruction sent by the user end equipment, and the publisher sends the equipment data corresponding to the control instruction to the user end equipment, the real-time acquisition of the equipment data in a large range is realized, and the real-time performance of the acquired data is improved.
Drawings
Fig. 1 is a block diagram of a data distribution system provided in embodiment 1 of the present application;
fig. 2 is a schematic diagram of an architecture of a data distribution system related to embodiment 1 of the present application;
FIG. 3 is a schematic view of a data processing flow of a data manager involved in embodiment 1 of the present application;
fig. 4 is a flowchart of a data distribution method provided in embodiment 2 of the present application.
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 invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Example 1
The present embodiment provides a data distribution system, and before explaining the system, an implementation scenario of the system is first briefly explained.
A plurality of electronic devices are arranged in a certain area, and each electronic device is provided with a corresponding data acquisition unit; a controller is arranged in an area, and the controller can be a DDC (direct digital Control ) controller, the embodiment takes DDC as an example for explanation, and how many data collectors can be connected to the DDC is determined according to the number of points that the DDC can be connected to, so that one area may have multiple DDCs; each area has only one data router, and the data router is connected with a plurality of DDCs; the data management layer and the data scheduling layer are constructed in a distributed mode, the data management layer and the data scheduling layer are not limited to a certain area, and the data manager and the data distributor can be deployed in the same area or different areas; the region of the user terminal device is not limited. The data distribution system in this embodiment is not a physical device structure arranged in a specific area, and can be multiplexed to a residential district, a factory, an office building, a city, or a global area by the system architecture of this embodiment.
Fig. 1 is a block diagram of a data distribution system provided in this embodiment, and as shown in fig. 1, the system includes a data collector 11, a controller 12, a data manager 13, and a data distributor 14.
The data acquisition unit 11 is used for acquiring data of the electronic equipment connected with the data acquisition unit;
in this embodiment, the data collector 11 may be integrated into the electronic device, that is, the electronic device itself provides a data collecting interface to the outside, so that the electronic device realizes data collection and functions controlled by an external instruction.
The controller 12 is used for receiving the equipment data acquired by the data acquisition unit and sending the received equipment data to the data manager;
in this embodiment, the controller 12 may integrate the functions of the router, so that the controller can intelligently detect the shortest path and the highest transmission rate path for transmission. The data manager 13 is used for receiving the device data sent by the controller and sending the received device data to the data distributor;
in one aspect, the data manager 13 is further configured to: establishing a corresponding transmission channel for each controller in the system, distributing a channel identifier, and identifying received equipment data sent by the controller according to the channel identifier; the received device data is analyzed, and the analyzed data is sent to the data distributor 14 after carrying the channel identifier. The publisher and the subscriber transmit message data through the message queue.
On the other hand, the data manager 13 is further configured to: and selecting a data distributor to create a subscriber and a publisher according to the network delay condition on the principle of shortest path and/or maximum transmission rate.
The data distributor 14 is configured to receive a request sent by a user end device to establish a connection with the controller, and create a publisher and a subscriber according to a channel identifier corresponding to the controller, where the subscriber is configured to monitor a control instruction sent by the user end device, and the publisher is configured to send device data indicated by the control instruction to the user end device.
The data distribution system of this embodiment is divided by functions, and as shown in fig. 2, the overall architecture of the system is divided into a device layer, a data control layer, a data management layer, a data scheduling layer, and a user end device.
The data control layer includes a device manager, a DDC, and a data router. The device manager (not shown in fig. 2) is correspondingly connected with a device, and is responsible for acquiring all acquirable data of the device, receiving a control instruction and controlling the device according to the control instruction. The device manager autonomously transmits the collected device data to the DDC, the DDC controller is connectable to a plurality of device managers, and the DDC can also issue control instructions to the device managers, thereby indirectly controlling the devices.
The equipment in the same area can be provided with corresponding DDC and data router at the location of the equipment, and one data router can be connected with a plurality of DDC controllers. The data router is used for broadcasting information to the online data managers in the network, searching the latest available data manager resources according to the principle of minimum network delay, establishing a communication connection channel with the latest available data manager resources and completing communication.
After detecting the connected data manager, the DDC actively creates a communication connection, starts reporting DDC information (including the unique ID number of the DDC, i.e., the channel number) and device data, and sends a heartbeat at regular time.
And a data manager is distributed in the data management layer and comprises a data receiver, a data parser, a data memory and a data transmitter. The data processing flow of the data manager is shown in fig. 3 as follows:
the data receiver creates a reception channel for each DDC and assigns a channel Identification (ID) according to which data transmitted in the DDC is received.
The data analyzer analyzes the received equipment data according to the communication protocol and filters the noise of the received data, the data analyzer transmits the analyzed data to the data storage device to complete storage, and transmits the data to the data scheduling layer in real time through the data transmitter to uniformly transmit and schedule the data.
The data storage stores the data analyzed by the data analyzer according to the specified format rule and provides a data reading interface.
After parsing the data of the DDC, requesting a data distributor in the data scheduling layer to create a publisher (for sending the collected device data to the customer premise equipment) and a subscriber (for listening to a control instruction sent by the receiving customer premise equipment) corresponding to the ID number according to the unique ID number of the DDC. The publisher and the subscriber transmit message data through an intermediate message queue, for example, the publisher sends a message M1 to the channel C1, since the queue has a first-in first-out characteristic, the message M1 enters the queue from the tail of the queue, and the subscriber listens to the message of the queue and fetches the message data from the head of the queue.
The data transmitter parses the data according to the communication protocol and filters the received data noise.
The data scheduling layer mainly includes a data distributor and an Http (hypertext transfer protocol) service, wherein the Http service is a service for establishing communication between the Http user terminal and the data distributor. When data are collected, the Http service intelligently selects a data distributor with the shortest path to establish a subscriber according to the network delay condition; under command control, the Http service intelligently selects the best data distributor for publisher creation. Therefore, when data acquisition or instruction control is carried out, the system can complete acquisition and control operations in the shortest path and the fastest speed.
The data distributor comprises a publisher and a subscriber. Under the condition that customer premise equipment requests to connect a certain DDC, the data distributor creates an issuer and a subscriber according to the ID number of the DDC after receiving the request of the customer premise equipment, wherein the issuer and the subscriber share the same ID creation, and the issuer and the subscriber are in the same communication channel and are not interfered by data of other communication channels. Thus, the data confusion generated when the data are collected in parallel is avoided. The ordered control of data is carried out between the publisher and the subscriber through the message queue, and the dependence of the user end device and the device end is relieved, namely, the data is continuously transmitted and stored in the data transceiver when the user end device does not initiate requests. The user end equipment can check the current real-time data and the historical data immediately after logging in.
The above description is a process of acquiring data in real time from an acquired device end to a user device end, where a process of sending a control instruction by a user device to control the acquired device to perform an operation is also mentioned, the process is substantially opposite to the process of acquiring data, and the performed operation is similar, and is not described here again.
Example 2
The present embodiment provides a data distribution method, which may be executed by the data distribution system provided in embodiment 1 above, and fig. 4 is a flowchart of the method, and as shown in fig. 4, the apparatus includes the following processes:
step 401: receiving a request for establishing connection with a controller, which is sent by user side equipment;
step 402: creating a publisher and a subscriber according to the channel identifier corresponding to the controller indicated in the connection request;
optionally, in this embodiment, the creating the publisher and the subscriber according to the channel identifier corresponding to the controller indicated in the connection request may include: and selecting a data distributor to create a subscriber and a publisher according to the network delay condition on the principle of shortest path and/or maximum transmission rate.
In this embodiment, the publisher and the subscriber perform transmission of message data through the message queue.
Step 403: monitoring a control instruction sent by user equipment by using a subscriber;
step 404: and sending the device data indicated by the control instruction to the customer premise equipment by using an issuer.
In this embodiment, the data transceiver and the data manager are established in a distributed manner.
Further, on the basis of the above steps 401 to 404, the data publishing method provided in this embodiment may further include: when receiving the device data sent by the controller, creating a receiving channel for the controller and allocating a channel identifier corresponding to the controller.
With regard to the apparatus in the above embodiments, the specific manner in which each unit and each module performs operations has been described in detail in the embodiments related to the method, and will not be described in detail herein.
According to the technical scheme provided by the embodiment of the application, the publisher and the subscriber are established based on the same identifier and are positioned in the same communication channel, so that the data interference of other communication channels is avoided, and the data confusion during parallel acquisition is avoided; the data are orderly controlled by the subscriber and the publisher, even if the user end equipment does not initiate a request, the controller can continuously send the data to the data manager, and the data manager can store the data, so that the terminal user can quickly acquire the data when the terminal user wants to acquire the equipment data, and the real-time performance of the data is improved.
Other embodiments of the invention 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 invention 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 invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements 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 invention is limited only by the appended claims.

Claims (9)

1. A data distribution system, comprising:
the data acquisition unit is used for acquiring data of the electronic equipment connected with the data acquisition unit;
the controller is used for receiving the equipment data acquired by the data acquisition unit and sending the received equipment data to the data manager;
the data manager is used for receiving the equipment data sent by the controller and sending the received equipment data to the data distributor;
the data distributor is used for receiving a request which is sent by user end equipment and is connected with the controller, and establishing a publisher and a subscriber according to a channel identifier corresponding to the controller, wherein the subscriber is used for monitoring a control instruction sent by the user end equipment, and the publisher is used for sending equipment data indicated by the control instruction to the user end equipment.
2. The system of claim 1, wherein the data manager is further configured to:
creating a transmission channel corresponding to each controller and distributing a channel identifier for each controller, and identifying received equipment data sent by the controllers according to the channel identifiers; and analyzing the received equipment data, and sending the analyzed data to the data distributor after carrying the channel identifier.
3. The system of claim 1, wherein the publisher and the subscriber communicate message data via a message queue.
4. The system of claim 1, wherein the data manager is further configured to:
and selecting the data distributor to create the subscriber and the publisher according to the network delay condition on the principle of shortest path and/or maximum transmission rate.
5. The system of any one of claims 1 to 4, wherein the electronic device comprises the data collector.
6. A method for data distribution, comprising:
receiving a request for establishing connection with a controller, which is sent by user side equipment;
creating a publisher and a subscriber according to the channel identifier corresponding to the controller indicated in the connection request;
monitoring a control instruction sent by the customer premise equipment by using the subscriber;
and sending the equipment data indicated by the control instruction to the customer premise equipment by using the publisher.
7. The method of claim 6, wherein the publisher and the subscriber transmit message data via a message queue.
8. The method of claim 6, further comprising:
and when receiving the equipment data sent by the controller, creating a receiving channel for the controller and distributing a channel identifier corresponding to the controller.
9. The method according to claim 6, wherein the creating a publisher and a subscriber according to the channel identifier corresponding to the controller indicated in the connection request comprises:
and selecting a data distributor to create the subscriber and the publisher according to the network delay condition on the principle of shortest path and/or maximum transmission rate.
CN201710930389.3A 2017-10-09 2017-10-09 Data release system and method Active CN107872515B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710930389.3A CN107872515B (en) 2017-10-09 2017-10-09 Data release system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710930389.3A CN107872515B (en) 2017-10-09 2017-10-09 Data release system and method

Publications (2)

Publication Number Publication Date
CN107872515A CN107872515A (en) 2018-04-03
CN107872515B true CN107872515B (en) 2020-03-10

Family

ID=61752774

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710930389.3A Active CN107872515B (en) 2017-10-09 2017-10-09 Data release system and method

Country Status (1)

Country Link
CN (1) CN107872515B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103297517A (en) * 2013-05-20 2013-09-11 中国电子科技集团公司第四十一研究所 Distributed data transmission method of condition monitoring system
CN104111634A (en) * 2013-04-17 2014-10-22 珠海格力电器股份有限公司 Smart home system and control method
CN106254428A (en) * 2016-07-25 2016-12-21 南京从容信息科技有限公司 Full mobile based on cloud computing supervision Ore-controlling Role

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160239675A1 (en) * 2015-02-17 2016-08-18 Joshua D. Tobkin System and method for permission based digital content syndication, monetization, and licensing with access control by the copyright holder

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104111634A (en) * 2013-04-17 2014-10-22 珠海格力电器股份有限公司 Smart home system and control method
CN103297517A (en) * 2013-05-20 2013-09-11 中国电子科技集团公司第四十一研究所 Distributed data transmission method of condition monitoring system
CN106254428A (en) * 2016-07-25 2016-12-21 南京从容信息科技有限公司 Full mobile based on cloud computing supervision Ore-controlling Role

Also Published As

Publication number Publication date
CN107872515A (en) 2018-04-03

Similar Documents

Publication Publication Date Title
KR20220083851A (en) Method and apparatus for transmitting data in Internet of Things system, gateway device and storage medium thereof
CN106209542B (en) Industry internet field layer wideband bus architecture system
US9705745B2 (en) System and method for virtualizing software defined network (SDN)-based network monitoring
KR101439018B1 (en) System for providing vehicle information
WO2020028602A3 (en) Method and system for a network presence platform with intelligent routing
CN106302017B (en) The small capaciated flow network velocity-measuring system of high concurrent and method
US20130159410A1 (en) System and method for hierarchical message transmission between devices in heterogeneous network environment
RU2007113617A (en) ALLOCATION OF RESOURCES IN THE COMMUNICATION SYSTEM
US10849075B2 (en) Method and device for allocation of transmission power and terminal
CN102238571B (en) Apparatus of Internet of Things machine to machine/man (M2M) business processing, system and method thereof
CN107872515B (en) Data release system and method
CN111147817B (en) Video processing method and device, electronic equipment and storage medium
CN111159092A (en) Serial port communication system, method and device and electronic equipment
KR101536350B1 (en) Self-management system of production resources based wired and wireless sensor network
CN105099936A (en) Network resource configuration method and apparatus as well as network system
CN209803613U (en) Plastic mechanical equipment monitoring device and system
CN112653717B (en) Multi-cloud cooperation distributed system and application distribution method
CN100593298C (en) Radio communication method, radio communication terminal accommodating apparatus, and radio communication terminal
KR102028756B1 (en) Apparatus and method for controlling a traffic in automatic meter reading system
KR20140103557A (en) System for SDP based convergence service collaborating distributed device resource object
CN110995794B (en) Remote acquisition method of electric power data
CN113225204B (en) Gateway control method and system
CN108123887B (en) Message processing method and device
US11797362B2 (en) Data processing system, data processing apparatus, and recording medium
CN108134660B (en) Oil well data processing method and period setting method and equipment

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