WO2022179140A1 - 一种数据处理方法及系统 - Google Patents

一种数据处理方法及系统 Download PDF

Info

Publication number
WO2022179140A1
WO2022179140A1 PCT/CN2021/125578 CN2021125578W WO2022179140A1 WO 2022179140 A1 WO2022179140 A1 WO 2022179140A1 CN 2021125578 W CN2021125578 W CN 2021125578W WO 2022179140 A1 WO2022179140 A1 WO 2022179140A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
target
resource attribute
subscription request
collection service
Prior art date
Application number
PCT/CN2021/125578
Other languages
English (en)
French (fr)
Inventor
蔡其星
姚杰
罗凯
李淼
Original Assignee
浙江中控技术股份有限公司
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 浙江中控技术股份有限公司 filed Critical 浙江中控技术股份有限公司
Publication of WO2022179140A1 publication Critical patent/WO2022179140A1/zh

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
    • 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/56Provisioning of proxy services
    • H04L67/566Grouping or aggregating service requests, e.g. for unified processing

Definitions

  • the present invention relates to the field of computer technology, and more particularly, to a data processing method and system.
  • the distributed control system DCS includes multiple subsystems, and the resource attribute data of each subsystem mainly includes model variables, Alarm information, screen information, equipment information, real-time data information and so on.
  • the client when a client wants to obtain the resource attribute data of the distributed control system DCS, the client can open a web page to send a data subscription request, and then use the webSocket technology to establish a relationship between the client and the collection service corresponding to the data subscription request.
  • this method needs to establish a communication link between each collection service and the client, and different collection services use different communication protocols to return resource attribute data, which greatly increases the client's difficulty in obtaining resource attribute data. complexity and error rate.
  • the present invention provides a data processing method and system, aiming at reducing the complexity and error rate of a client when acquiring resource attribute data.
  • a first aspect of the present invention discloses a data processing method, which is applied to a data exchange center, and the method includes:
  • the data subscription request When monitoring the existence of a data subscription request in the first message queue, obtain the data subscription request from the first message queue, wherein the first message queue is preset in the message middleware, and the data subscription request It is sent by the client based on a preset unified data format, and the data subscription request includes subscription content;
  • the target data distribution rule corresponding to the target collection service to distribute the data subscription request to the target collection service, wherein the target collection service is a collection service that matches the subscription content, and the data exchange center is pre-integrated with a plurality of said collection services;
  • the method further includes:
  • the collection service corresponding to the subscription content in the data subscription request is a preset collection service
  • the resource attribute data packet is encapsulated into target resource attribute data based on the preset unified data format, and the target resource attribute data is sent to the client.
  • invoking the target data distribution rule corresponding to the target collection service to distribute the data subscription request to the target collection service includes:
  • the target data distribution rule is invoked to distribute the data subscription request to the target collection service.
  • the resource attribute data package is encapsulated into target resource attribute data based on a preset unified data format, including:
  • the service data is encapsulated into target resource attribute data based on the preset unified data format.
  • the method before receiving the resource attribute data packet collected by the target collection service based on the subscription content of the data subscription request, the method further includes:
  • the data subscription request is forwarded to any other data exchange center in the same distributed control system as the data exchange center.
  • a second aspect of the present invention discloses a data processing system, which is applied to a data exchange center, and the system includes:
  • a monitoring unit configured to obtain the data subscription request from the first message queue when monitoring the existence of the data subscription request in the first message queue, wherein the first message queue is preset in the message middleware,
  • the data subscription request is sent by the client based on a preset unified data format, and the data subscription request includes subscription content;
  • a calling unit configured to call a target data distribution rule corresponding to a target collection service to distribute the data subscription request to the target collection service, wherein the target collection service is a collection service matching the subscription content, and the data
  • the exchange center is pre-integrated with a plurality of the collection services
  • a first receiving unit configured to receive a resource attribute data packet collected by the target collection service based on the subscription content of the data subscription request
  • a first encapsulation unit configured to encapsulate the resource attribute data package into target resource attribute data based on the preset unified data format
  • a first sending unit configured to send the target resource attribute data to a second message queue preset in the message middleware, so that the client can retrieve the data from the second message queue in the message middleware Acquire attribute data of the target resource.
  • system further includes:
  • an acquisition unit configured to receive a data subscription request sent by the client, wherein the acquisition service corresponding to the subscription content in the data subscription request is a preset acquisition service;
  • a second sending unit configured to send the data subscription request to the preset collection service
  • a second receiving unit configured to receive a resource attribute data packet collected by the preset collection service based on the subscription content of the data subscription request
  • a second encapsulation unit configured to encapsulate the resource attribute data packet into target resource attribute data based on the preset unified data format, and send the target resource attribute data to the client.
  • the calling unit includes:
  • a determining unit configured to determine the target data distribution rule corresponding to the target collection service according to the preset correspondence between the data distribution rule and the collection service;
  • the calling subunit is configured to call the target data distribution rule to distribute the data subscription request to the target collection service.
  • the first packaging unit includes:
  • a parsing unit configured to parse the resource attribute data packet and extract business data
  • a third encapsulation unit configured to encapsulate the service data into target resource attribute data based on the preset unified data format.
  • system further includes:
  • a forwarding unit configured to forward the data subscription request to any other data exchange center in the same distributed control system as the data exchange center if the target collection service is abnormal or the data exchange center is abnormal .
  • the invention provides a data processing method and system, which are applied to a data exchange center, a unified data format is preset, a plurality of collection services are integrated in the data exchange center, and a data distribution rule corresponding to each collection service is preset, After the client sends the data subscription request to the first message queue preset in the message middleware through the preset unified data format, the data exchange center can distribute the data subscription request in the message queue to the corresponding data distribution rules through the corresponding data distribution rules.
  • the resource attribute data packet is encapsulated into resource attribute data according to the preset unified data format, and sent to the second message queue preset in the message middleware , the client can directly obtain the corresponding resource attribute data from the second message queue preset in the message middleware, without the need to establish a communication link between each collection service and the client, and realizes the communication between the client and the collection service.
  • the decoupling between the resource attributes reduces the complexity of the client when acquiring the resource attribute data, and the data format of the data obtained by the client in the resource attribute data is unified, which reduces the processing of the acquired resource attribute data by the client error rate.
  • FIG. 1 is a schematic flowchart of a data processing method according to an embodiment of the present invention.
  • FIG. 2 is an example diagram of a correspondence between a preset data distribution rule and a collection service provided by an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of another data processing method provided by an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a data processing system according to an embodiment of the present invention.
  • the terms “comprising”, “comprising” or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device comprising a list of elements includes not only those elements, but also no Other elements expressly listed, or which are also inherent to such a process, method, article or apparatus.
  • an element qualified by the phrase “comprising a" does not preclude the presence of additional identical elements in the process, method, article, or device that includes the element.
  • FIG. 1 a schematic flowchart of a data processing method provided by an embodiment of the present invention is shown.
  • the data processing method is applied to a data exchange center, and the data processing method specifically includes the following steps:
  • a unified data format is preset, and the preset unified data format is preset based on a protobuf message protocol.
  • Set the message queue monitored by the data exchange center in the message middleware in advance (for the convenience of distinction, the message queue monitored by the data exchange center preset in the message middleware is called the first message queue), so that the data exchange center can monitor the first message queue by monitoring the first message queue.
  • the message queue obtains the data subscription request sent by the client based on the preset unified data format in time.
  • step S101 the client sends the data subscription request to the first message queue based on the preset unified data format, so that when the data exchange center detects that there is a data subscription request in the first message queue, it can start from the first message queue.
  • the data subscription request includes at least subscription content
  • the subscription content included in the data subscription request may be real-time data, diagnostic data, model data, or alarm data.
  • the model is used to define the production and process related to the industry, so that the Session Initiation Protocol (SIP) can realize a specific industry system in a way corresponding to the actual production structure.
  • This correspondence is called “Organization Model” (OM) in the SIP platform, and the generic representation of this model is called “Organization Template” (OT);
  • model data can be variables, variables It is a class of resources native to the model space, which is used to store the state of the model during the running process.
  • the variables in the model space can be directly related to the variables provided by the specified device in the network space, which are called “device variables”, and the changes that are not associated with the specified device in the network space are called “native variables”.
  • the data subscription request may also include basic information of the client that sends the data subscription request.
  • S102 Invoke the target data distribution rule corresponding to the target collection service to distribute the data subscription request to the target collection service, where the target collection service is a collection service matching the subscription content, and the data exchange center is pre-integrated with multiple collection services.
  • step S102 multiple collection services are pre-integrated in the data exchange center.
  • the collection services integrated in the data exchange center are real-time data services, diagnostic subsystem services, model services, real-time alarm services, and so on.
  • the real-time data service provides real-time data of measuring points, supports data processing of 1 million points, 100 client connections, subscriptions according to groups, and each group supports 100,000 points of subscription online, and also supports different groups subscribe to the same tag number.
  • the diagnostic subsystem service is an application-level service of the SIP platform. It can load the diagnostic data of the device configuration configuration, subscribe to the diagnostic data of all controllers in the configuration, and receive the diagnostic data from the controller, network equipment, instrumentation, and control system through the DDA service. It can also push diagnostic data to the data exchange center, store diagnostic data, and provide an interface for querying diagnostic historical data.
  • the model service can provide interface services for obtaining model data for each runtime service. Specifically, it provides an interface for querying alarm definitions for the alarm service to load alarm data; it provides an interface for querying event definitions for the event service to load event data; it provides query logs The defined interface is used by the log service to load log data; the interface for querying the model resource tree is provided for the monitoring service to generate a screen tree; the interface for querying screen details is provided for the monitoring client to generate the screen; the interface for querying variable types is provided for the monitoring client
  • the terminal generates variable selectors; provides an interface for querying variable definitions, and allows real-time data services to create variable objects; it can also respond to configuration publishing events, update model data, and provide TCP protocol interfaces and HTTP protocol interfaces.
  • the alarm service can load the alarm data, receive the real-time data of the tag number, calculate and generate the alarm information in real time, and distribute the generated alarm information to the client in real time. It can also record alarm information in real time, support querying alarms according to conditions such as alarm source and alarm level, and receive alarm data from third parties such as DDA.
  • step S102 for the real-time data service, the diagnosis subsystem service, the model service, and the real-time alarm, data distribution rules corresponding to each collection service are preset.
  • the corresponding data distribution rules set in advance for the real-time data service, the diagnosis subsystem service, the model service and the real-time alarm are shown in FIG. 2 .
  • a collection service that matches the subscription content of the data subscription request is determined from a plurality of pre-integrated collection services (for the convenience of distinction, the The collection service that matches the subscription content of the data subscription request is called the target collection service), and then according to the preset correspondence between the collection service and the data distribution rule, the target data distribution rule corresponding to the target collection service is determined, so as to call the target data distribution rule.
  • the determined target data distribution rule distributes the data subscription request to the target collection service.
  • the corresponding relationship between the preset collection service and the data distribution rule is shown in Figure 2.
  • the subscription content diagnostic data of the data subscription request obtained from the first message queue is obtained from the first message queue, the data subscription request can be determined.
  • the collection service that matches the subscription content is the diagnosis service (target collection service).
  • the target data distribution rule corresponding to the diagnosis service (target collection service) is "diag://", and then the target data distribution rule is called. ("diag://") distributes the data subscription request to the diagnostic service (target acquisition service).
  • S103 Receive a resource attribute data packet collected by the target collection service based on the subscription content requested by the data subscription request.
  • the target collection service can collect the corresponding resource attribute data package according to the subscription content in the data subscription request, and collect the collected data packets.
  • the resource attribute data package is returned to the data exchange center.
  • the data exchange center and the collection service communicate through the TCP protocol.
  • the data exchange center can regenerate a new TCP protocol, and then according to the new TCP protocol.
  • the generated TCP protocol communicates with the acquisition service.
  • S104 Encapsulate the resource attribute data package into target resource attribute data based on a preset unified data format.
  • step S104 after receiving the resource attribute data packet collected by the target collection service based on the subscription content of the data subscription request, the received resource attribute data packet is parsed, and then the resource attribute data packet in the resource attribute data packet is extracted. business data, and encapsulate the extracted business data according to a preset unified data format to obtain target resource attribute data.
  • S105 Send the target resource attribute data to a second message queue preset in the message middleware, so that the client obtains the target resource attribute data from the second message queue in the message middleware.
  • the message queue monitored by the client is set in the message middleware in advance (for the convenience of distinction, the message queue monitored by the client is referred to as the second message queue).
  • the resource attribute data packet is encapsulated into target resource attribute data based on the preset unified data format
  • the target resource attribute data is sent to the second message queue in the message middleware, so that the client can monitor the existence of the second message queue.
  • the attribute data of the target resource is obtained, the corresponding attribute data of the target resource is obtained from the second message queue.
  • the client may acquire corresponding target resource attribute data from the second message queue by using the mqtt protocol.
  • the data subscription request is forwarded to any other data exchange center in the same distributed control system as the data exchange center, and any other data exchange center is in the same distributed control system as the data exchange center.
  • a data exchange center executes the data processing method provided by the embodiment of the present invention, and sends the obtained target resource attribute data to the second message queue of the message middleware, so that the client can monitor the second
  • the target resource attribute data exists in the message queue
  • the corresponding target resource attribute data is obtained from the second message queue, so that when the target collection service is abnormal, or the data exchange center is abnormal, it does not affect the client to obtain the corresponding target resource attribute. data.
  • the acquired data subscription request can also be recorded, and when the client closes or exits the client by mistake, or when the client automatically exits abnormally, the next time the client receives the same subscription request sent by the client.
  • the content data subscription request is made, the previously encapsulated target resource attribute data is automatically sent to the second message queue of the message middleware, so that the client can quickly obtain the corresponding target resource attribute data.
  • the invention provides a data processing method, which is applied to a data exchange center, pre-sets a unified data format, integrates multiple collection services in the data exchange center, and presets data distribution rules corresponding to each collection service, and the client
  • the data exchange center can distribute the data subscription request in the message queue to the corresponding collector through the corresponding data distribution rules
  • the resource attribute data packet is encapsulated into resource attribute data according to the preset unified data format, and sent to the second message queue preset in the message middleware.
  • the client can directly obtain the corresponding resource attribute data from the second message queue preset in the message middleware, and does not need to establish a communication link between each collection service and the client, and realizes the communication between the client and the collection service.
  • Decoupling reduces the complexity of the client in obtaining resource attribute data, and the data format of the data obtained by the client in the resource attribute data is unified, reducing the error in processing the obtained resource attribute data by the client Rate.
  • a historical data service can also be integrated in the data exchange center.
  • the collection service corresponding to the subscription content of the data subscription request sent by the client is a historical data service
  • the corresponding data can be obtained in the following manner:
  • FIG. 3 shows a schematic flowchart of another data processing method provided by an embodiment of the present invention. The data processing method is applied to a data exchange center, and the data processing method specifically includes the following steps:
  • S301 Receive a data subscription request sent by a client, wherein the collection service corresponding to the subscription content in the data subscription request is a preset collection service.
  • the preset collection service is a historical data service. If the client wants to send a data subscription request whose subscription content is historical data, the client can send the data subscription request to the data exchange center through the HTTP protocol. .
  • S302 Send the data subscription request to the preset collection service.
  • step S302 after receiving the data subscription request sent by the client based on the preset unified data format and the subscription content is historical data, the data subscription request may be sent to the preset collection service through the grpc process, That is, the data subscription request is sent to the historical data service through the grpc process.
  • S303 Receive a resource attribute data package collected by a preset collection service based on a subscription content requested by a data subscription request.
  • step S303 after the data subscription request is sent to the historical data service (preset collection service), the historical data service (preset collection service) collects corresponding data according to the subscription content (historical data) in the data subscription request.
  • the resource attribute data package is returned, and the collected resource attribute data package is returned to the data exchange center.
  • the data exchange center communicates with the historical data service through the TCP protocol.
  • the data exchange center can regenerate a new TCP protocol, and then Communicate with the historical data service according to the regenerated TCP protocol.
  • S304 Encapsulate the resource attribute data packet into target resource attribute data based on a preset unified data format, and send the target resource attribute data to the client.
  • step S304 after receiving the resource attribute data package collected by the preset collection service (historical data service) based on the subscription content of the data subscription request, parse the received resource attribute data package, and then extract the The business data in the resource attribute data package is encapsulated according to the preset unified data format to obtain the target resource attribute data, and the target resource attribute data is sent to the client through the restful api interface.
  • the preset collection service historical data service
  • the data exchange center when receiving a data subscription request sent by a client, sends the data subscription request to a preset collection service that matches the subscription content of the data subscription request, so that the preset collection service is based on The subscription content of the data subscription request collects the corresponding resource attribute data package; when receiving the resource attribute data package returned by the preset collection service, encapsulate the resource attribute data package based on the preset unified data format to obtain the target resource attribute data , and send the target resource attribute data to the client, without establishing a communication link between the collection service and the client, realizes the decoupling between the client and the collection service, and reduces the time when the client obtains the resource attribute data.
  • the complexity of the resource attribute data obtained by the client is uniform, and the data format of the data in the resource attribute data obtained by the client is uniform, which reduces the error rate of the client in processing the obtained resource attribute data.
  • the embodiment of the present invention also provides a data processing system, and the data processing system is applied to a data exchange center.
  • FIG. 4 an embodiment of the present invention is shown.
  • a schematic structural diagram of a data processing system is provided, the data processing system includes:
  • the monitoring unit 41 is configured to obtain a data subscription request from the first message queue when monitoring the existence of a data subscription request in the first message queue, wherein the first message queue is preset in the message middleware, and the data subscription request is a client based on the preset unified data format, the data subscription request includes the subscription content;
  • the calling unit 42 is used to call the target data distribution rule corresponding to the target collection service to distribute the data subscription request to the target collection service, wherein the target collection service is the collection service matching the subscription content, and the data exchange center is pre-integrated with a plurality of collection services ;
  • a first receiving unit 43 configured to receive resource attribute data packets collected by the target collection service based on the subscription content requested by the data subscription request;
  • a first encapsulation unit 44 configured to encapsulate the resource attribute data package into target resource attribute data based on a preset unified data format
  • the first sending unit 45 is configured to send the target resource attribute data to the second message queue preset in the message middleware, so that the client can obtain the target resource attribute data from the second message queue in the message middleware.
  • the invention provides a data processing system, which is applied to a data exchange center, pre-sets a unified data format, integrates multiple collection services in the data exchange center, and presets data distribution rules corresponding to each collection service, and the client
  • the data exchange center can distribute the data subscription request in the message queue to the corresponding collector through the corresponding data distribution rules
  • the resource attribute data packet is encapsulated into resource attribute data according to the preset unified data format, and sent to the second message queue preset in the message middleware.
  • the client can directly obtain the corresponding resource attribute data from the second message queue preset in the message middleware, and does not need to establish a communication link between each collection service and the client, and realizes the communication between the client and the collection service.
  • Decoupling reduces the complexity of the client in obtaining resource attribute data, and the data format of the data obtained by the client in the resource attribute data is unified, reducing the error in processing the obtained resource attribute data by the client Rate.
  • the data processing system provided by the embodiment of the present invention further includes:
  • an acquisition unit configured to receive a data subscription request sent by the client, wherein the acquisition service corresponding to the subscription content in the data subscription request is a preset acquisition service;
  • a second sending unit configured to send the data subscription request to the preset collection service
  • a second receiving unit configured to receive a resource attribute data packet collected by a preset collection service based on a subscription content requested by a data subscription request;
  • the second encapsulation unit is configured to encapsulate the resource attribute data packet into target resource attribute data based on a preset unified data format, and send the target resource attribute data to the client.
  • the calling unit includes:
  • a determining unit configured to determine the target data distribution rule corresponding to the target collection service according to the preset correspondence between the data distribution rule and the collection service;
  • the calling subunit is used to call the target data distribution rule to distribute the data subscription request to the target collection service.
  • the first packaging unit includes:
  • the parsing unit is used for parsing the resource attribute data package and extracting business data
  • the third encapsulation unit is configured to encapsulate the service data into target resource attribute data based on a preset unified data format.
  • the data processing system provided by the embodiment of the present invention further includes:
  • the forwarding unit is used to forward the data subscription request to any other data exchange center in the same distributed control system as the data exchange center if the target collection service is abnormal or the data exchange center is abnormal.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明提供一种数据处理方法及系统,当监听到第一消息队列中存在数据订阅请求时,从第一消息队列中获取数据订阅请求;调用目标采集服务对应的目标数据分发规则将数据订阅请求分发给目标采集服务,其中,目标采集服务为与订阅内容匹配的采集服务,数据交换中心预先集成有多个采集服务;接收目标采集服务基于数据订阅请求的订阅内容采集的资源属性数据包;基于预先设置的统一数据格式将资源属性数据包封装成目标资源属性数据;将目标资源属性数据发送至消息中间件中预先设置的第二消息队列,以便客户端从消息中间件中的第二消息队列中获取目标资源属性数据。基于本发明,能够降低客户端在获取资源属性数据时的复杂度和出错率。

Description

一种数据处理方法及系统
本申请要求于2021年02月23日提交中国专利局、申请号为202110200074.X、发明名称为“一种数据处理方法及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及计算机技术领域,更具体地说,涉及一种数据处理方法及系统。
背景技术
随着应用信息系统逐渐庞大,分布式控制系统(Distributed Control System,DCS)的应用越来越广泛,其中,分布式控制系统DCS包括多个子系统,每个子系统的资源属性数据主要包括模型变量、报警信息、画面信息、设备信息、实时数据信息等等。
在现有技术中,当客户想要获取分布式控制系统DCS的资源属性数据时,可以通过客户端打开web页面发送数据订阅请求,进而通过webSocket技术建立客户端与数据订阅请求对应的采集服务之间的通讯链路,以便该数据订阅请求对应的采集服务采集相应资源属性数据,并采用对应的通讯协议将采集的资源属性数据通过该通讯链路返回给客户端。
但是,这种方式需要建立每个采集服务与客户端之间的通讯链路,且不同的采集服务在返回资源属性数据采用的通讯协议不同,大大的增加了客户端在获取资源属性数据时的复杂度和出错率。
发明内容
本发明提供一种数据处理方法及系统,以降低客户端在获取资源属性数据时的复杂度和出错率为目的。
本发明第一方面公开一种数据处理方法,应用于数据交换中心,所述方法包括:
当监听到第一消息队列中存在数据订阅请求时,从所述第一消息队列中获取所述数据订阅请求,其中,所述第一消息队列预先设置于消息中间件中,所述数据订阅请求是客户端基于预先设置的统一数据格式发送的,所述数据订阅请求包括订阅内容;
调用目标采集服务对应的目标数据分发规则将所述数据订阅请求分发给所述目标采集服务,其中,所述目标采集服务为与所述订阅内容匹配的采集服务,所述数据交换中心预先集成有多个所述采集服务;
接收所述目标采集服务基于所述数据订阅请求的订阅内容采集的资源属性数据包;
基于所述预先设置的统一数据格式将所述资源属性数据包封装成目标资源属性数据;
将所述目标资源属性数据发送至所述消息中间件中预先设置的第二消息队列,以便所述客户端从所述消息中间件中的所述第二消息队列中获取所述目标资源属性数据。
可选的,所述方法还包括:
接收所述客户端发送的数据订阅请求,其中,所述数据订阅请求中的订阅内容对应的采集服务为预设采集服务;
将所述数据订阅请求发送给所述预设采集服务;
接收所述预设采集服务基于所述数据订阅请求的订阅内容采集的资源属性数据包;
基于所述预先设置的统一数据格式将所述资源属性数据包封装成目标资源属性数据,并将所述目标资源属性数据发送给所述客户端。
可选的,所述调用目标采集服务对应的目标数据分发规则将所述数据订阅请求分发给所述目标采集服务,包括:
根据预先设置的数据分发规则和采集服务之间的对应关系,确定与目标采集服务对应的目标数据分发规则;
调用所述目标数据分发规则将所述数据订阅请求分发给所述目标采集服务。
可选的,所述基于预先设置的统一数据格式将所述资源属性数据包封装成目标资源属性数据,包括:
对所述资源属性数据包进行解析,提取出业务数据;
基于所述预先设置的统一数据格式将所述业务数据封装成目标资源属性数据。
可选的,在接收所述目标采集服务基于所述数据订阅请求的订阅内容采集的资源属性数据包之前,所述方法还包括:
若所述目标采集服务发生异常,或者所述数据交换中心发生异常,将所述数据订阅请求转发给与所述数据交换中心处于同一分布式控制系统的其他任一数据交换中心。
本发明第二方面公开一种数据处理系统,应用于数据交换中心,所述系统包括:
监听单元,用于当监听到第一消息队列中存在数据订阅请求时,从所述第一消息队列中获取所述数据订阅请求,其中,所述第一消息队列预先设置于消息中间件中,所述数据订阅请求是客户端基于预先设置的统一数据格式发送的,所述数据订阅请求包括订阅内容;
调用单元,用于调用目标采集服务对应的目标数据分发规则将所述数据订阅请求分发给所述目标采集服务,其中,所述目标采集服务为与所述订阅内容匹配的采集服务,所述数据交换中心预先集成有多个所述采集服务;
第一接收单元,用于接收所述目标采集服务基于所述数据订阅请求的订阅内容采集的资源属性数据包;
第一封装单元,用于基于所述预先设置的统一数据格式将所述资源属性数据包封装成目标资源属性数据;
第一发送单元,用于将所述目标资源属性数据发送至所述消息中间件中预先设置的第二消息队列,以便所述客户端从所述消息中间件中的所述第二消息队列中获取所述目标资源属性数据。
可选的,所述系统还包括:
获取单元,用于接收所述客户端发送的数据订阅请求,其中,所述数据订阅请求中的订阅内容对应的采集服务为预设采集服务;
第二发送单元,用于将所述数据订阅请求发送给所述预设采集服务;
第二接收单元,用于接收所述预设采集服务基于所述数据订阅请求的订阅内容采集的资源属性数据包;
第二封装单元,用于基于所述预先设置的统一数据格式将所述资源属性数据包封装成目标资源属性数据,并将所述目标资源属性数据发送给所述客户端。
可选的,所述调用单元,包括:
确定单元,用于根据预先设置的数据分发规则和采集服务之间的对应关系,确定与目标采集服务对应的目标数据分发规则;
调用子单元,用于调用所述目标数据分发规则将所述数据订阅请求分发给所述目标采集服务。
可选的,所述第一封装单元,包括:
解析单元,用于对所述资源属性数据包进行解析,提取出业务数据;
第三封装单元,用于基于所述预先设置的统一数据格式将所述业务数据封装成目标资源属性数据。
可选的,所述系统还包括:
转发单元,用于若所述目标采集服务发生异常,或者所述数据交换中心发生异常,将所述数据订阅请求转发给与所述数据交换中心处于同一分布式控制系统的其他任一数据交换中心。
本发明提供一种数据处理方法及系统,应用于数据交换中心,预先设置了统一数据格式,在数据交换中心中集成了多个采集服务,以及预先设置了每个采集服务对应的数据分发规则,客户端通过预先设置的统一数据格式将数据订阅请求发送至消息中间件中预先设置的第一消息队列后,数据交换中心便可通过相应的数据分发规则将消息队列中的数据订阅请求分发给相应的采集服务,并在采集服务返回相应的资源属性数据包后,根据预先设置的统一数据格式将资源属性数据包封装成资源属性数据,并发送至消息中间件中预先设置的第二消息队列中,客户端可以直接从消息中间件中预先设置的第二消息队列中获取相应的资源属性数据,不需要建立每个采集服务与客户端之间的通讯链路,实现了客户端与采集服务之间的解耦,降低客户端在获取资源属性数据时的复杂度,且客户端获取到资源属性数据中的数据的数据格式均是统一的,降低了客户端对所获取的资源属性数据进行处理的出错率。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创 造性劳动的前提下,还可以根据提供的附图获得其他的附图。
图1为本发明实施例提供的一种数据处理方法的流程示意图;
图2为本发明实施例提供的一种预先设置的数据分发规则与采集服务之间的对应关系示例图;
图3为本发明实施例提供的另一种数据处理方法的流程示意图;
图4为本发明实施例提供的一种数据处理系统的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
在本申请中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、物品或者设备中还存在另外的相同要素。
参见图1,示出了本发明实施例提供的一种数据处理方法的流程示意图,该数据处理方法应用于数据交换中心,该数据处理方法具体包括以下步骤:
S101:当监听到第一消息队列中存在数据订阅请求时,从第一消息队列中获取所述数据订阅请求,其中,第一消息队列预先设置于消息中间件中,数据订阅请求是客户端基于预先设置的统一数据格式发送的,数据订阅请求包括订阅内容。
在步骤S101中,预先设置有统一数据格式,预先设置的统一数据格式是基于protobuf的消息协议预先设置的。预先在消息中间件中设置数据交换中心监听的消息队列(为了便于区分,将消息中间件中预先设置的数据交换中心监听的消息队列称为第一消息队列),以便数据交换中心通过监听第一消息队列及时获取客户端基于预先设置的统一数据格式发送的数据订阅请求。
在具体执行步骤S101的过程中,客户端基于预先设置的统一数据格式将数据订阅请求发送至第一消息队列中,以便数据交换中心在监听到第一消息队列中存在数据订阅请求时,从第一消息队列中获取数据订阅请求。
在本申请实施例中,数据订阅请求至少包括订阅内容,数据订阅请求包括的订阅内容可以为实时数据、诊断数据、模型数据或者报警数据。其中,模型是用于定义与行业相关的生产及过程,使会话初始协议(Session Initiation Protocol,SIP)可以以一种对应实际生产结构的方式实现特定的行业系统。这种对应方式在SIP平台中被称为“组织模型”(Organization Modal,OM),这种模型的泛型表示被称为“组织模板”(Organization Template,OT);模型数据可以为变量,变量是模型空间原生的一类资源,它用于存储模型在运行过程中的状态。为了方便应用,模型空间中的变量可以直接关联至网络空间中指定设备提供的变量,称为“设备变量”,不与网络空间中指定设备关联的变更则被称为“原生变量”。
需要说明的是,数据订阅请求还可以包括发送该数据订阅请求的客户端的基本信息。
S102:调用目标采集服务对应的目标数据分发规则将数据订阅请求分发给目标采集服务,其中,目标采集服务为与订阅内容匹配的采集服务,数据交换中心预先集成有多个采集服务。
在步骤S102中,数据交换中心中预先集成有多个采集服务。其中,数据交换中心中集成的采集服务为实时数据服务、诊断子系统服务、模型服务、实时报警服务等等。
其中,实时数据服务提供测点的实时数据,支持100万点数据处理、100个客户端连接、按照分组订阅,并且每个分组支持10万点订阅上线,还支持不同分组订阅相同的位号。
诊断子系统服务是SIP平台的应用级服务,可以加载设备配置组态的诊断数据,订阅组态所有控制器的诊断数据,通过DDA服务接收来自控制器、网络设备、仪表、控制系统产生的诊断数据,并向数据交换中心推送诊断数据,还能够存储诊断数据,以及提供查询诊断历史数据的接口。
模型服务可以为各运行期服务提供获取模型数据的接口服务,具体的,提供查询报警定义的接口,供报警服务加载报警数据;提供查询事件定义的接口,供事件服务加载事件数据;提供查询日志定义的接口,供日志服务加载日志数据;提供查询模型资源树的接口,供监控服务生成画面树;提供查询画面详情的接口,供监控客户端生成画面;提供查询变量类型的接口,供监控客户端生成变量选择器;提供查询变量定义的接口,供实时数据服务创建变量对象;还能够响应组态发布事件,更新模型数据,以及提供TCP协议接口和HTTP协议接口。
报警服务可以加载报警数据,接收位号实时数据,实时计算并产生报警信息,将产生的报警信息实时分发给客户端;支持报警确认、手自动搁置、自动抑制等操作,以及客户端订阅报警。还可以实时记录报警信息,支持按报警源、报警等级等条件查询报警,以及接收来自DDA等第三方的报警数据。
在步骤S102中,针对实时数据服务、诊断子系统服务、模型服务、实时报警,预先设置有每个采集服务对应的数据分发规则。预先为实时数据服务、诊断子系统服务、模型服务以及实时报警设置的对应的数据分发规则如图2所示。
在具体执行步骤S102的过程中,在从第一消息队列中获取到数据订阅请求后,从预先集成的多个采集服务中确定与数据订阅请求的订阅内容匹配的采集服务(为了便于区分,将与数据订阅请求的订阅内容匹配的采集服务称为目标采集服务),进而根据预先设置的采集服务与数据分发规则之间的对应关系,确定与目标采集服务对应的目标数据分发规则,以便调用所确定的目标数据分发规则将该数据订阅请求分发给目标采集服务。
比如,预先设置的采集服务与数据分发规则之间的对应关系如图2所示,若从第一消息队列中获取到的数据订阅请求的订阅内容诊断数据,进而可以确定与该数据订阅请求的订阅内容匹配的采集服务为诊断服务(目标采集服务),从图2中可以知道,与诊断服务(目标采集服务)对应的目标数据分发规则为“diag://”,进而调用目标数据分发规则(“diag://”)将该数据订阅请求分发给诊断服务(目标采集服务)。
S103:接收目标采集服务基于数据订阅请求的订阅内容采集的资源属性数据包。
在具体执行步骤S103的过程中,在调用目标数据分发规则将数据订阅请求分发给目标采集服务后,目标采集服务可以根据数据订阅请求中的订阅内容采集相应的资源属性数据包,并将采集到的资源属性数据包返回给数据交换中心。
在本申请实施例中,数据交换中心与采集服务是通过TCP协议进行通讯的,当数据交换中心与采集服务之间的通讯断开时,数据交换中心可以重新生成新的TCP协议,进而根据重新生成的TCP协议与采集服务进行通讯。
S104:基于预先设置的统一数据格式将资源属性数据包封装成目标资源属性数据。
在具体执行步骤S104的过程中,在接收到目标采集服务基于数据订阅请求的订阅内容采集的资源属性数据包后,对接收到的资源属性数据包进行解析,进而提取出资源属性数据包中的业务数据,并根据预先设置的统一数据格式对提取出的业务数据进行封装得到目标资源属性数据。
S105:将目标资源属性数据发送至消息中间件中预先设置的第二消息队列,以便客户端从所述消息中间件中的第二消息队列中获取目标资源属性数据。
在具体执行步骤S105的过程中,预先在消息中间件中设置客户端监听的消息队列(为了便于区分,将客户端监听的的消息队列称为第二消息队列)。在基于预先设置的统一数据格式将资源属性数据包封装成目标资源属性数据后,将目标资源属性数据发送至消息中间件中的第二消息队列,以便客户端在监听到第二消息队列中存在目标资源属性数据时,从第二消息队列中获取相应的目标资源属性数据。
需要说明的是,客户端可以采用mqtt协议从第二消息队列中获取相应的目标资源属性数据。
进一步的,在本申请实施例中,若目标采集服务发生异常,或者数据交换中心发生异常,将数据订阅请求转发给与数据交换中心处于同一分布式控制系统的其他任一数据交换中心,其他任一数据交换中心在接收到该数据订阅请求 后,执行本发明实施例提供的数据处理方法,将得到的目标资源属性数据发送消息中间件的第二消息队列中,以便客户端在监听到第二消息队列中存在目标资源属性数据时,从第二消息队列中获取相应的目标资源属性数据,能够在目标采集服务发生异常,或者数据交换中心发生异常时,不影响客户端获取相应的目标资源属性数据。
进一步的,在本申请实施例中,还可以记录所获取的数据订阅请求,可以在客户错误关闭或者退出客户端,或者客户端发生异常自动退出时,在下次接收该客户端发送的含有相同订阅内容的数据订阅请求时,自动将之前封装好的目标资源属性数据发送至消息中间件的第二消息队列中,以便客户端可以快速的获取到相应的目标资源属性数据。
本发明提供一种数据处理方法,应用于数据交换中心,预先设置了统一数据格式,在数据交换中心中集成了多个采集服务,以及预先设置了每个采集服务对应的数据分发规则,客户端通过预先设置的统一数据格式将数据订阅请求发送至消息中间件中预先设置的第一消息队列后,数据交换中心便可通过相应的数据分发规则将消息队列中的数据订阅请求分发给相应的采集服务,并在采集服务返回相应的资源属性数据包后,根据预先设置的统一数据格式将资源属性数据包封装成资源属性数据,并发送至消息中间件中预先设置的第二消息队列中,客户端可以直接从消息中间件中预先设置的第二消息队列中获取相应的资源属性数据,不需要建立每个采集服务与客户端之间的通讯链路,实现了客户端与采集服务之间的解耦,降低客户端在获取资源属性数据时的复杂度,且客户端获取到资源属性数据中的数据的数据格式均是统一的,降低了客户端对所获取的资源属性数据进行处理的出错率。
进一步的,在本申请实施例中,还可以在数据交换中心中集成历史数据服务,当客户端发送的数据订阅请求的订阅内容对应的采集服务为历史数据服务时,可通过以下方式获取相应的资源属性数据,参见图3,示出了本发明实施例提供的另一种数据处理方法的流程示意图,该数据处理方法应用于数据交换中心,该数据处理方法具体包括以下步骤:
S301:接收客户端发送的数据订阅请求,其中,数据订阅请求中的订阅内容对应的采集服务为预设采集服务。
在具体执行步骤S301的过程中,预设的采集服务为历史数据服务,若客户想要发送订阅内容为历史数据的数据订阅请求,客户端可以通过HTTP协议将该数据订阅请求发送给数据交换中心。
S302:将数据订阅请求发送给预设采集服务。
在具体执行步骤S302的过程中,在接收到客户端基于预先设置的统一数据格式发送的订阅内容为历史数据的数据订阅请求后,可以通过grpc进程将该数据订阅请求发送给预设采集服务,即通过grpc进程将该数据订阅请求发送给历史数据服务。
S303:接收预设采集服务基于数据订阅请求的订阅内容采集的资源属性数据包。
在具体执行步骤S303的过程中,将数据订阅请求发送给历史数据服务(预设采集服务)后,历史数据服务(预设采集服务)根据数据订阅请求中的订阅内容(历史数据)采集相应的资源属性数据包,并将采集的资源属性数据包返回给数据交换中心。
在本申请实施例中,数据交换中心与历史数据服务是通过TCP协议进行通讯的,当数据交换中心与历史数据服务之间的通讯断开时,数据交换中心可以重新生成新的TCP协议,进而根据重新生成的TCP协议与历史数据服务进行通讯。
S304:基于预先设置的统一数据格式将资源属性数据包封装成目标资源属性数据,并将目标资源属性数据发送给客户端。
在具体执行步骤S304的过程中,在接收到预设采集服务(历史数据服务)基于数据订阅请求的订阅内容采集的资源属性数据包后,对接收到的资源属性数据包进行解析,进而提取出资源属性数据包中的业务数据,并根据预先设置的统一数据格式对提取出的业务数据进行封装得到目标资源属性数据,并通过restful api接口将目标资源属性数据发送给客户端。
在本申请实施例中,数据交换中心当接收到客户端发送的数据订阅请求时, 将该数据订阅请求发送给该数据订阅请求的订阅内容匹配的预设采集服务,以便该预设采集服务基于该数据订阅请求的订阅内容采集相应的资源属性数据包;当接收到预设采集服务返回的资源属性数据包时,基于预先设置的统一数据格式对该资源属性数据包进行封装得到目标资源属性数据,并将该目标资源属性数据发送给客户端,不需要建立采集服务与客户端之间的通讯链路,实现了客户端与采集服务之间的解耦,降低客户端在获取资源属性数据时的复杂度,且客户端获取到资源属性数据中的数据的数据格式均是统一的,降低了客户端对所获取的资源属性数据进行处理的出错率。
基于上述本发明实施例提供的一种数据处理方法,相应的,本发明实施例还提供一种数据处理系统,该数据处理系统应用于数据交换中心,参见图4,示出了本发明实施例提供的一种数据处理系统的结构示意图,该数据处理系统,包括:
监听单元41,用于当监听到第一消息队列中存在数据订阅请求时,从第一消息队列中获取数据订阅请求,其中,第一消息队列预先设置于消息中间件中,数据订阅请求是客户端基于预先设置的统一数据格式发送的,数据订阅请求包括订阅内容;
调用单元42,用于调用目标采集服务对应的目标数据分发规则将数据订阅请求分发给目标采集服务,其中,目标采集服务为与订阅内容匹配的采集服务,数据交换中心预先集成有多个采集服务;
第一接收单元43,用于接收目标采集服务基于数据订阅请求的订阅内容采集的资源属性数据包;
第一封装单元44,用于基于预先设置的统一数据格式将资源属性数据包封装成目标资源属性数据;
第一发送单元45,用于将目标资源属性数据发送至消息中间件中预先设置的第二消息队列,以便客户端从消息中间件中的第二消息队列中获取目标资源属性数据。
上述本发明实施例公开的数据处理系统中各个单元具体的原理和执行过 程,与上述本发明实施例公开的数据处理方法相同,可参见上述本发明实施例公开的数据处理方法中相应的部分,这里不再进行赘述。
本发明提供一种数据处理系统,应用于数据交换中心,预先设置了统一数据格式,在数据交换中心中集成了多个采集服务,以及预先设置了每个采集服务对应的数据分发规则,客户端通过预先设置的统一数据格式将数据订阅请求发送至消息中间件中预先设置的第一消息队列后,数据交换中心便可通过相应的数据分发规则将消息队列中的数据订阅请求分发给相应的采集服务,并在采集服务返回相应的资源属性数据包后,根据预先设置的统一数据格式将资源属性数据包封装成资源属性数据,并发送至消息中间件中预先设置的第二消息队列中,客户端可以直接从消息中间件中预先设置的第二消息队列中获取相应的资源属性数据,不需要建立每个采集服务与客户端之间的通讯链路,实现了客户端与采集服务之间的解耦,降低客户端在获取资源属性数据时的复杂度,且客户端获取到资源属性数据中的数据的数据格式均是统一的,降低了客户端对所获取的资源属性数据进行处理的出错率。
进一步的,本发明实施例提供的数据处理系统还包括:
获取单元,用于接收客户端发送的数据订阅请求,其中,数据订阅请求中的订阅内容对应的采集服务为预设采集服务;
第二发送单元,用于将数据订阅请求发送给预设采集服务;
第二接收单元,用于接收预设采集服务基于数据订阅请求的订阅内容采集的资源属性数据包;
第二封装单元,用于基于预先设置的统一数据格式将资源属性数据包封装成目标资源属性数据,并将目标资源属性数据发送给客户端。
优选的,调用单元,包括:
确定单元,用于根据预先设置的数据分发规则和采集服务之间的对应关系,确定与目标采集服务对应的目标数据分发规则;
调用子单元,用于调用目标数据分发规则将数据订阅请求分发给目标采集 服务。
优选的,第一封装单元,包括:
解析单元,用于对资源属性数据包进行解析,提取出业务数据;
第三封装单元,用于基于预先设置的统一数据格式将业务数据封装成目标资源属性数据。
进一步的,本发明实施例提供的数据处理系统还包括:
转发单元,用于若目标采集服务发生异常,或者数据交换中心发生异常,将数据订阅请求转发给与数据交换中心处于同一分布式控制系统的其他任一数据交换中心。
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统或系统实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的系统及系统实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本 发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。

Claims (10)

  1. 一种数据处理方法,其特征在于,应用于数据交换中心,所述方法包括:
    当监听到第一消息队列中存在数据订阅请求时,从所述第一消息队列中获取所述数据订阅请求,其中,所述第一消息队列预先设置于消息中间件中,所述数据订阅请求是客户端基于预先设置的统一数据格式发送的,所述数据订阅请求包括订阅内容;
    调用目标采集服务对应的目标数据分发规则将所述数据订阅请求分发给所述目标采集服务,其中,所述目标采集服务为与所述订阅内容匹配的采集服务,所述数据交换中心预先集成有多个所述采集服务;
    接收所述目标采集服务基于所述数据订阅请求的订阅内容采集的资源属性数据包;
    基于所述预先设置的统一数据格式将所述资源属性数据包封装成目标资源属性数据;
    将所述目标资源属性数据发送至所述消息中间件中预先设置的第二消息队列,以便所述客户端从所述消息中间件中的所述第二消息队列中获取所述目标资源属性数据。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    接收所述客户端发送的数据订阅请求,其中,所述数据订阅请求中的订阅内容对应的采集服务为预设采集服务;
    将所述数据订阅请求发送给所述预设采集服务;
    接收所述预设采集服务基于所述数据订阅请求的订阅内容采集的资源属性数据包;
    基于所述预先设置的统一数据格式将所述资源属性数据包封装成目标资源属性数据,并将所述目标资源属性数据发送给所述客户端。
  3. 根据权利要求1所述的方法,其特征在于,所述调用目标采集服务对应的目标数据分发规则将所述数据订阅请求分发给所述目标采集服务,包括:
    根据预先设置的数据分发规则和采集服务之间的对应关系,确定与目标采 集服务对应的目标数据分发规则;
    调用所述目标数据分发规则将所述数据订阅请求分发给所述目标采集服务。
  4. 根据权利要求1所述的方法,其特征在于,所述基于预先设置的统一数据格式将所述资源属性数据包封装成目标资源属性数据,包括:
    对所述资源属性数据包进行解析,提取出业务数据;
    基于所述预先设置的统一数据格式将所述业务数据封装成目标资源属性数据。
  5. 根据权利要求1所述的方法,其特征在于,在接收所述目标采集服务基于所述数据订阅请求的订阅内容采集的资源属性数据包之前,所述方法还包括:
    若所述目标采集服务发生异常,或者所述数据交换中心发生异常,将所述数据订阅请求转发给与所述数据交换中心处于同一分布式控制系统的其他任一数据交换中心。
  6. 一种数据处理系统,其特征在于,应用于数据交换中心,所述系统包括:
    监听单元,用于当监听到第一消息队列中存在数据订阅请求时,从所述第一消息队列中获取所述数据订阅请求,其中,所述第一消息队列预先设置于消息中间件中,所述数据订阅请求是客户端基于预先设置的统一数据格式发送的,所述数据订阅请求包括订阅内容;
    调用单元,用于调用目标采集服务对应的目标数据分发规则将所述数据订阅请求分发给所述目标采集服务,其中,所述目标采集服务为与所述订阅内容匹配的采集服务,所述数据交换中心预先集成有多个所述采集服务;
    第一接收单元,用于接收所述目标采集服务基于所述数据订阅请求的订阅内容采集的资源属性数据包;
    第一封装单元,用于基于所述预先设置的统一数据格式将所述资源属性数据包封装成目标资源属性数据;
    第一发送单元,用于将所述目标资源属性数据发送至所述消息中间件中预 先设置的第二消息队列,以便所述客户端从所述消息中间件中的所述第二消息队列中获取所述目标资源属性数据。
  7. 根据权利要求6所述的系统,其特征在于,所述系统还包括:
    获取单元,用于接收所述客户端发送的数据订阅请求,其中,所述数据订阅请求中的订阅内容对应的采集服务为预设采集服务;
    第二发送单元,用于将所述数据订阅请求发送给所述预设采集服务;
    第二接收单元,用于接收所述预设采集服务基于所述数据订阅请求的订阅内容采集的资源属性数据包;
    第二封装单元,用于基于所述预先设置的统一数据格式将所述资源属性数据包封装成目标资源属性数据,并将所述目标资源属性数据发送给所述客户端。
  8. 根据权利要求6所述的系统,其特征在于,所述调用单元,包括:
    确定单元,用于根据预先设置的数据分发规则和采集服务之间的对应关系,确定与目标采集服务对应的目标数据分发规则;
    调用子单元,用于调用所述目标数据分发规则将所述数据订阅请求分发给所述目标采集服务。
  9. 根据权利要求6所述的系统,其特征在于,所述第一封装单元,包括:
    解析单元,用于对所述资源属性数据包进行解析,提取出业务数据;
    第三封装单元,用于基于所述预先设置的统一数据格式将所述业务数据封装成目标资源属性数据。
  10. 根据权利要求6所述的系统,其特征在于,所述系统还包括:
    转发单元,用于若所述目标采集服务发生异常,或者所述数据交换中心发生异常,将所述数据订阅请求转发给与所述数据交换中心处于同一分布式控制系统的其他任一数据交换中心。
PCT/CN2021/125578 2021-02-23 2021-10-22 一种数据处理方法及系统 WO2022179140A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110200074.X 2021-02-23
CN202110200074.XA CN112671933B (zh) 2021-02-23 2021-02-23 一种数据处理方法及系统

Publications (1)

Publication Number Publication Date
WO2022179140A1 true WO2022179140A1 (zh) 2022-09-01

Family

ID=75399318

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/125578 WO2022179140A1 (zh) 2021-02-23 2021-10-22 一种数据处理方法及系统

Country Status (2)

Country Link
CN (1) CN112671933B (zh)
WO (1) WO2022179140A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115344331A (zh) * 2022-10-14 2022-11-15 杭州城市大脑有限公司 基于城市大脑一网统管的接口数据动态提取方法及装置

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112671933B (zh) * 2021-02-23 2022-04-26 浙江中控技术股份有限公司 一种数据处理方法及系统
CN113098978B (zh) * 2021-04-21 2023-04-07 上海微盟企业发展有限公司 一种数据传输方法、装置及介质
CN115150466B (zh) * 2022-06-29 2023-08-15 北京百度网讯科技有限公司 一种数据分发的实现方法、装置、电子设备及存储介质
CN115567577A (zh) * 2022-09-22 2023-01-03 三一海洋重工有限公司 起重机自动化数据通信系统、方法及起重机
CN115361348B (zh) * 2022-10-19 2023-01-10 理工全盛(北京)科技有限公司 由数据采集设备执行的与web浏览器通信的方法
CN115580619B (zh) * 2022-11-25 2023-03-10 江苏金恒信息科技股份有限公司 数据处理系统和数据处理方法
CN116032849B (zh) * 2022-12-22 2024-05-24 中国电信股份有限公司 数据交换的方法、装置、系统及电子设备
CN115766689A (zh) * 2023-01-10 2023-03-07 理工全盛(北京)科技有限公司 web服务端与无人机探测及反制设备双向通信的方法

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050015488A1 (en) * 2003-05-30 2005-01-20 Pavan Bayyapu Selectively managing data conveyance between computing devices
US20160261395A1 (en) * 2015-03-05 2016-09-08 International Business Machines Corporation Channel ownership in a publish-subscribe system
CN106230896A (zh) * 2016-07-18 2016-12-14 深圳国泰安教育技术股份有限公司 一种消息推送方法、装置及系统
CN107577820A (zh) * 2017-09-30 2018-01-12 中国联合网络通信集团有限公司 数据处理的方法、设备及系统
CN109660607A (zh) * 2018-12-05 2019-04-19 北京金山云网络技术有限公司 一种业务请求分发方法、接收方法、装置及服务器集群
CN112671933A (zh) * 2021-02-23 2021-04-16 浙江中控技术股份有限公司 一种数据处理方法及系统

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9923677B2 (en) * 2014-12-26 2018-03-20 Intel Corporation Multiplexing many client streams over a single connection
CN106487560A (zh) * 2015-08-31 2017-03-08 北京国双科技有限公司 一种服务器配置信息的采集方法、装置及系统
CN105472042B (zh) * 2016-01-15 2018-09-21 中煤电气有限公司 Web端控制的消息中间件系统及其数据传送方法
US10432704B2 (en) * 2016-03-23 2019-10-01 Sap Se Translation of messages using sensor-specific and unified protocols
CN107493251A (zh) * 2016-06-12 2017-12-19 深圳市斑点猫信息技术有限公司 一种登录目标服务器的方法及终端
CN107332787A (zh) * 2017-06-29 2017-11-07 北京奇艺世纪科技有限公司 一种消息分发方法和装置
CN107819824B (zh) * 2017-10-09 2020-10-09 中国电子科技集团公司第二十八研究所 一种城市数据开放与信息服务系统及服务方法
CN108076135B (zh) * 2017-10-31 2021-03-02 中国银联股份有限公司 基于安全模块的终端设备统一管理系统及其管理方法
CN110912947A (zh) * 2018-09-14 2020-03-24 西安西拓电气股份有限公司 数据处理方法及装置
CN110247971B (zh) * 2019-06-17 2021-12-24 福建天泉教育科技有限公司 减少消息中间件连接数量的方法及其系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050015488A1 (en) * 2003-05-30 2005-01-20 Pavan Bayyapu Selectively managing data conveyance between computing devices
US20160261395A1 (en) * 2015-03-05 2016-09-08 International Business Machines Corporation Channel ownership in a publish-subscribe system
CN106230896A (zh) * 2016-07-18 2016-12-14 深圳国泰安教育技术股份有限公司 一种消息推送方法、装置及系统
CN107577820A (zh) * 2017-09-30 2018-01-12 中国联合网络通信集团有限公司 数据处理的方法、设备及系统
CN109660607A (zh) * 2018-12-05 2019-04-19 北京金山云网络技术有限公司 一种业务请求分发方法、接收方法、装置及服务器集群
CN112671933A (zh) * 2021-02-23 2021-04-16 浙江中控技术股份有限公司 一种数据处理方法及系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115344331A (zh) * 2022-10-14 2022-11-15 杭州城市大脑有限公司 基于城市大脑一网统管的接口数据动态提取方法及装置

Also Published As

Publication number Publication date
CN112671933B (zh) 2022-04-26
CN112671933A (zh) 2021-04-16

Similar Documents

Publication Publication Date Title
WO2022179140A1 (zh) 一种数据处理方法及系统
US7676562B2 (en) Computer system for accessing instrumentation information
CN110659109B (zh) 一种openstack集群虚拟机监控系统及方法
CN112104754B (zh) 网络代理方法、系统、装置、设备及存储介质
CN113630372A (zh) 一种边缘计算的云边协同系统
WO2002103521A1 (en) Real-time streaming media measurement system and method
US10834033B2 (en) Method and system for transferring messages between messaging systems
CN112583895B (zh) Tcp通信方法、系统及装置
WO2018176244A1 (zh) 数据采集方法、装置和动环网管系统
US11368410B2 (en) System and method for scaling analytics collection
CN115086176A (zh) 基于SpringCloud微服务技术实现服务治理策略动态下发的系统
CN117615043B (zh) 一种边缘网关上服务间通信方法及系统
CN109428745B (zh) Jms消息转发方法、装置、电子设备和存储介质
CN113010379A (zh) 电子设备监控系统
CN111212119B (zh) 一种dubbo服务调用方法及系统
CN111294358B (zh) 报文的处理方法及装置
US8332498B2 (en) Synchronized relay messaging and coordinated network processing using SNMP
CN113873033B (zh) 一种具有容错功能的智能边缘计算网关平台
CN106254122B (zh) 一种基于eoc设备的简单网络管理协议代理实现方法
CN113848834A (zh) 一种基于边云协同的车间设备接入系统及方法
CN113778628B (zh) 边缘节点管控方法及系统
CN107612768B (zh) 基于Windows本地数据库访问流量采集方法及系统
CN105323098B (zh) 一种告警消息处理方法、装置及系统
CN115914376A (zh) 物联网数据处理方法、装置、设备和计算机可读存储介质
CN113691388A (zh) 一种基于lvs和snmp协议的数据采集系统及方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21927564

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21927564

Country of ref document: EP

Kind code of ref document: A1