+

WO2018176244A1 - Data collection method, device, and dynamic environment network management system - Google Patents

Data collection method, device, and dynamic environment network management system Download PDF

Info

Publication number
WO2018176244A1
WO2018176244A1 PCT/CN2017/078497 CN2017078497W WO2018176244A1 WO 2018176244 A1 WO2018176244 A1 WO 2018176244A1 CN 2017078497 W CN2017078497 W CN 2017078497W WO 2018176244 A1 WO2018176244 A1 WO 2018176244A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
protocol
xml
data collection
monitoring
Prior art date
Application number
PCT/CN2017/078497
Other languages
French (fr)
Chinese (zh)
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 深圳中兴力维技术有限公司
Priority to PCT/CN2017/078497 priority Critical patent/WO2018176244A1/en
Publication of WO2018176244A1 publication Critical patent/WO2018176244A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a data collection method, apparatus, and dynamic ring network management system.
  • the dynamic ring network management system needs to write an acquisition library and a protocol analysis library for each smart device after accessing the smart device and performing data collection, and the access service module of the same ring network management system is also required. Add the corresponding adapter library. Therefore, whenever a new smart device needs access, it requires a lot of programming, debugging and testing work, which causes the workload to increase exponentially, which makes the acquisition and monitoring program difficult to expand, and it is difficult to adapt to the customer. Some special needs.
  • the existing dynamic ring network management system cannot implement dynamic access of new smart devices, and has poor compatibility and scalability, and high cost.
  • the main purpose of the embodiments of the present invention is to provide a data collection method, device, and dynamic ring network management system, which are designed to implement dynamic access of new smart devices, enhance compatibility and scalability, and reduce burst cost.
  • a data collection method includes the following steps: [0007] acquiring a preset XML protocol template that matches an accessed smart device;
  • the method before the step of acquiring the preset XML protocol template that matches the accessed smart device, the method further includes:
  • the device point table data includes a device protocol
  • the associating the device point table data with a data model includes:
  • the device point table data further includes a public parameter
  • the step of defining a data structure of the monitoring quantity in the data model and a data structure of the monitoring quantity in the device protocol further includes:
  • the XML protocol template includes performance parameters, device parameters, protocol tags, and mapping relationships.
  • the performance parameter includes a maximum number of groups of monitoring quantities and a capacity of each group of monitoring quantities.
  • the method further includes: sending the first bottom end data packet to the smart device according to the maximum number of groups and the each group of capacity.
  • the device parameter includes a device code and a device network address.
  • the mapping relationship is a correspondence between the data model and each attribute in the data structure of the monitoring quantity in the device protocol.
  • the attribute includes a channel number, a channel name, and a channel type.
  • the attribute further includes a monitoring quantity name, a monitoring quantity type, a group number of the monitoring quantity, an ID and a value in the monitoring quantity group.
  • the XML data includes scan data, remote adjustment data, and remote control data in an XML format.
  • Another aspect provides a data collection device, the device comprising: [0027] an access service module, configured to acquire a preset XML protocol template that matches the accessed smart device; [0028] a protocol conversion module, configured to include a first data acquisition instruction according to the XML protocol template Converting the data model to the first XML data;
  • the communication processing module is configured to convert the first XML data into the first bottom end data of the support device protocol and send the data to the smart device, and receive the original data that is returned by the smart device and include the smart device. Second bottom end data, and converting the second bottom end data into second XML data;
  • the protocol conversion module is further configured to: convert the second XML data into a second data model, and obtain the original data in the second data model.
  • the device further includes a protocol configuration module, where the protocol configuration module is configured to: obtain device point table data of the smart device, associate the device point table data with a data model, and generate an XML protocol template. .
  • the device point table data includes a device protocol
  • the protocol configuration module includes:
  • a defining unit configured to define a data structure of the monitoring quantity in the data model and a data structure of the monitoring quantity in the device protocol;
  • a mapping unit configured to establish a mapping relationship between a data structure of the monitoring quantity in the data model and a data structure of the monitoring quantity in the device protocol.
  • the device point table data further includes a common parameter
  • the protocol configuration module further includes a parameter extraction unit
  • the parameter abstraction unit is configured to:
  • the communication processing module is configured to: send the first bottom end data packet to the smart device according to the maximum number of groups and the each group of capacity.
  • a moving ring network management system is also proposed, and the system includes:
  • one or more applications wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications being Configured to perform the aforementioned data collection methods.
  • a data collection method provided by an embodiment of the present invention, by presetting an XML protocol template, converting a data model and an XML data according to an XM L protocol template, and converting the XML data and the bottom end data, Realize the dynamic transmission of the data acquisition command from the dynamic ring network management system to the intelligent device and the dynamic transmission of the original data from the intelligent device to the dynamic ring network management system, realizing the dynamic access of the newly added intelligent devices, without separately preparing the collection library for each intelligent device.
  • the protocol parsing library and the adapting library reduce duplication and increase system compatibility and scalability. When there is a new smart device access, only a small amount of code is required to configure a new XML protocol template, which is easy to test, greatly reduces the bursting workload and reduces the cost of bursting.
  • FIG. 1 is a flow chart of a first embodiment of a data collection method of the present invention
  • FIG. 2 is a specific flowchart of generating an XML protocol template by a dynamic ring network management system according to an embodiment of the present invention
  • FIG. 3 is a flow chart of a second embodiment of the data collection method of the present invention.
  • FIG. 4 is a schematic block diagram of a first embodiment of a data collection device of the present invention.
  • FIG. 6 is a schematic block diagram of a second embodiment of a data collection device of the present invention.
  • FIG. 7 is a block diagram of the protocol configuration module of FIG. 6.
  • first”, “second” and the like in the present invention are used for descriptive purposes only, and are not to be construed as indicating or implying their relative importance or implicitly indicating the number of indicated technical features. .
  • features defining “first” and “second” may include at least one of the features, either explicitly or implicitly.
  • the technical solutions between the various embodiments may be combined with each other, but must be based on the realization of those skilled in the art, and when the combination of the technical solutions is contradictory or impossible to implement, it should be considered that the combination of the technical solutions does not exist. It is also within the scope of protection required by the present invention.
  • the method can be applied to a dynamic network management system, and the method includes the following steps:
  • the dynamic ring network management system extracts from the preset multiple extensible markup language (XML) according to the device code (ID) of the smart device. Obtain an XML protocol template matching the smart device in the protocol template.
  • XML preset multiple extensible markup language
  • the XML protocol template stores a full-scale mapping, which includes parameters such as performance parameters, device parameters, protocol tags, and mapping relationships, and optionally, may also include communication parameters. among them:
  • the performance parameter is a parameter required for data processing according to a configuration of a communication response speed, a communication delay, and the like, and includes a maximum number of groups of monitoring quantities (or a maximum number of processing groups) and a capacity of each group of monitoring quantities (ie, Capacity of each group of monitoring);
  • device parameters including device code and device network address
  • Protocol mark divided into two modes: get (GET) and set (SET);
  • the mapping relationship is a correspondence between each attribute of the data structure of the monitoring model in the data model and the device protocol (ie, the original protocol of the smart device), wherein the data model can be abstracted into a channel number, a channel name, and a channel type, and the data structure
  • the attributes in the channel include at least the channel number, the channel name, and the channel type. It can also include the monitoring quantity name, the monitoring type, the monitoring group number, the monitoring group ID, and the value.
  • Performance parameters data processing, maximum number of monitoring quantities, and monitoring capacity per group;
  • the attributes of the data structure include the channel number, the channel name, the channel type, the monitoring quantity name, the monitoring type, the group number of the monitoring quantity, the ID and the value of the monitoring quantity group.
  • the dynamic ring network management system can configure the XML protocol template according to the protocol configuration program.
  • the protocol configuration program receives the device point table data of the smart device input by the maintenance personnel, and associates the device point table data with the channel of the data model. , generate an XML protocol template.
  • the device point table data includes at least a device protocol, and may also include related public parameters.
  • a specific process for generating an XML protocol template for a dynamic ring network management system includes the following steps:
  • S102 Establish a mapping relationship between the data structure of the monitoring quantity in the data model and the data structure of the monitoring quantity in the device protocol.
  • the data structure includes a plurality of attributes, and a one-to-one correspondence is established between the data model and corresponding attributes in the device protocol.
  • the attributes in the data structure include at least the channel number, channel name, and channel type. It can also include the monitoring quantity name, the monitoring type, the group number of the monitoring quantity, the ID and value of the monitoring quantity group, and so on.
  • the method may further include:
  • Step S100 Abstract public parameters, and configure performance parameters of the data processing according to the abstracted public parameters.
  • the performance parameter is a parameter required for data processing according to a communication response speed, a communication delay related requirement, and the like.
  • the abstracted public parameters may also include device parameters including device code, device network address, etc., to subsequently identify the smart device based on the device code.
  • step S12 the dynamic ring network management system generates a data acquisition instruction, fills the data collection instruction into a data model (or a network management model), generates a first data model including the data collection instruction, and then according to The first data model is converted into the first XML data by parameters such as a mapping relationship in the matched XML protocol template.
  • the XML data includes scan data in XML format, remote adjustment data, remote control data, and the like.
  • step S13 the dynamic ring network management system then converts the first XML data into the first bottom end data of the support device protocol according to the mapping relationship and the like in the XML protocol template, and sends the first bottom end data to the smart
  • the first bottom end data includes a data collection instruction, so that the smart device returns the original data that needs to be collected by the dynamic ring network management system according to the data collection instruction.
  • the dynamic ring network management system divides the first bottom end data into multiple data packets according to performance parameters such as a maximum number of monitoring quantities set in the XML protocol template, and a monitoring capacity of each group, and the first A bottom data packet is sent to the smart device. Thereby preventing data loss and improving the stability and reliability of data transmission.
  • the smart device after receiving the first bottom end data, parses out the data collection instruction in the first bottom end data, acquires corresponding original data according to the data collection instruction, and generates the original data.
  • the second bottom data is sent to the dynamic ring network management system.
  • step S14 the dynamic ring network management system receives the second bottom end data returned by the smart device, and converts the second bottom end data into the second XML data according to parameters such as a mapping relationship in the XML protocol template. Specifically, the dynamic ring network management system may first parse the original data in the second bottom end data, and then fill the original data into the first XML data to generate the second XML data.
  • step S15 the dynamic ring network management system further converts the second XML data into a second data model according to parameters such as a mapping relationship in the XML protocol template, and parses out the original data in the second data model, thereby implementing The collection of raw data from smart devices.
  • the dynamic ring network management system parses the original data, the original data can be input into the data system, the data is updated, and corresponding data processing operations are performed.
  • step S11 Also included before:
  • Step S10 When the smart device access is detected, establish a communication link with the smart device and maintain the communication link.
  • step S10 after detecting the access of the smart device, the dynamic ring network management system controls the bus scanning and data transceiving process of the smart device, establishes a communication link with the smart device, and after the communication link is successfully established.
  • the data collection method of the embodiment of the present invention can realize the data collection instruction from the data template by implementing the XML protocol template, converting the data model and the XML data according to the XML protocol template, and converting the XML data with the bottom data.
  • the dynamic transmission of the dynamic ring network management system to the intelligent device and the dynamic transmission of the original data from the smart device to the dynamic ring network management system realizes the dynamic access of the newly added intelligent device, and does not need to separately write the collection library, the protocol analysis library and the appropriate for each intelligent device.
  • the library which reduces duplication, enhances system compatibility and scalability. When there is a new smart device access, only a small amount of code is used to configure a new XML protocol template, which is easy to test, greatly reducing the bursting workload and reducing the cost of bursting.
  • the data collection method of the embodiment of the present invention can flexibly configure the XML protocol template, and does not require the format of the device protocol of the accessed smart device, and is not restricted by the communication mode and protocol content of the smart device, and is flexible. high.
  • a first embodiment of a data collection device of the present invention is provided.
  • the device can be applied to a dynamic ring network management system, which includes a protocol conversion module 20, an access service module 10, and a communication processing module that are sequentially connected.
  • the access service module 10 is connected to the smart device by using the communication processing module 30, where:
  • the access service module 10 is configured to obtain a preset XML protocol template that matches the accessed smart device.
  • the access service module 10 is a main module of the dynamic ring network management system, and is also a public module, focusing on the integrated management of the access device and the realization of the service function.
  • the access server module can control the access of the smart device, implement specific service functions, manage service data, etc., and can support Transmission Control Protocol (TCP) and User Datagram Protocol (UDP). Multiple communication protocols such as Code Division Multiple Access (CDMA), which can support intelligent devices. Ready for dynamic configuration access.
  • TCP Transmission Control Protocol
  • UDP User Datagram Protocol
  • CDMA Code Division Multiple Access
  • the access service module 10 obtains the smart device from the preset multiple XML protocol templates according to the device code (ID) of the smart device.
  • the matched XML protocol template is sent to the protocol conversion module 20 and the communication processing module 30.
  • the access service module 10 generates a data collection instruction, and sends the data collection instruction to the protocol conversion module 20.
  • the XML protocol template is pre-stored in the dynamic ring network management system, and the dynamic ring network management system can obtain the XML protocol template from an external device or download the XML protocol template from the network.
  • a full-scale mapping is stored in the XML protocol template.
  • Each of the interaction processes generates protocol data according to the data collection instruction sent by the access service module 10.
  • the XML protocol template includes parameters such as performance parameters, device parameters, protocol flags, and mapping relationships, and optionally, communication parameters. among them:
  • the performance parameter is a parameter required for the data processing by the communication processing module 30 configured according to the communication response speed, the communication delay related requirement, and the like, including the maximum number of monitoring groups (or the maximum processing group number) and the monitoring amount. Capacity of each group (ie the capacity of each group of monitoring);
  • a device parameter including a device code of the smart device and a device network address
  • Protocol marking divided into two modes: acquisition (GET) and setting (SET);
  • the mapping relationship is a correspondence between each of the attributes in the data structure of the monitoring quantity in the data model of the access service module 10 and the device protocol of the smart device (ie, the original protocol of the smart device), wherein the data model can be abstracted into a channel Number, channel name and channel type.
  • the attributes in the data structure include at least the channel number, channel name and channel type. It can also include the monitoring quantity name, the monitoring type, the group number of the monitoring quantity, the ID and value of the monitoring quantity group.
  • the corresponding XML protocol template includes the following parameters:
  • the communication processing module 30 performs data processing, the maximum number of monitoring quantities, and the capacity of each group of monitoring quantities;
  • Device parameters device code, device network address;
  • the attributes of the data structure include channel number, channel name, channel type, and monitoring amount. Name, type of monitoring quantity, group number of monitoring quantity, ID and value of monitoring quantity group.
  • the protocol conversion module 20 is configured to convert the first data model including the data collection instruction into the first XML data according to the XML protocol template; convert the second XML data into the second data model, and obtain the second data model Raw data.
  • the protocol conversion module 20 is also a common module, which can implement mutual conversion between the data model of the access service module 10 and the XML data, including converting the instructions issued by the access service module 10 into XML data, and the communication processing module.
  • the XML data reported by the 30 is converted into a data model, thereby updating the original data of the collected smart device to the access service module 10.
  • the protocol conversion module 20 obtains the XML protocol template sent by the access service module 10, and receives the data collection instruction sent by the access service module 10, and populates the data collection instruction into the access service module.
  • a first data model including data acquisition instructions is generated, and then the first data model is converted into the first XML data according to parameters such as a mapping relationship in the X ML protocol template, and the first XML data is reported to the data.
  • the access service module 10 sends the first XML data to the communication processing module 30.
  • the XML data includes scan data in XML format, remote adjustment data, remote control data, and the like.
  • the protocol conversion module 20 After receiving the second X ML data reported by the communication processing module 30 delivered by the access service module 10, the protocol conversion module 20 converts the second XML data into the second according to the mapping relationship in the XML protocol template. The data model, and parsing the original data in the second data model, thereby realizing the collection of the original data of the smart device. After parsing out the original data, the protocol conversion module 20 reports the original data to the access service module 10, and the access service module 10 can input the original data into the data system, perform data update, and perform corresponding data processing operations.
  • the communication processing module 30 is configured to convert the first XML data into the first bottom end data of the support device protocol and send the data to the smart device, and receive the second bottom end data of the original data that is returned by the smart device, where the smart device returns And converting the second bottom end data into the second XML data.
  • the communication processing module 30 implements a communication connection with the smart device, receives the XML data, and translates the bottom end data translated into the support device protocol to the smart device, and receives the bottom end data containing the original data from the smart device and converts the data into XML data. And reported to the access service module 10.
  • the communication processing module 30 receives the first XML data sent by the access service module 10. After that, the first XML data is converted into the first bottom end data of the support device protocol according to the mapping relationship in the XML protocol template, and the first bottom end data is sent to the smart device, where the first bottom end data includes
  • the data collection instruction is configured to enable the smart device to return the original data that needs to be collected by the dynamic ring network management system according to the data collection instruction.
  • the dynamic ring network management system divides the first bottom end data into multiple data packets according to performance parameters such as a maximum group number of monitoring quantities set in the XML protocol template, and a monitoring capacity of each group, and the first A bottom data packet is sent to the smart device. Thereby preventing data loss and improving the stability and reliability of data transmission.
  • the communication processing module 30 After receiving the second bottom end data returned by the smart device, the communication processing module 30 converts the second bottom end data into the second XML data according to parameters such as a mapping relationship in the XML protocol template. Specifically, the communication processing module 30 may first parse the original data in the second bottom end data, and then fill the original data into the first XML data, thereby generating the second XML data, and reporting the second XML data to the data. In the service module 10, the access server module sends the second XML data to the protocol conversion module 20.
  • the access service module 10 generates a data collection instruction and sends it to the protocol conversion module 20. At the same time, the access service module 10 also acquires a preset XML protocol template that matches the accessed smart device.
  • the protocol conversion module 20 converts the first data model including the data collection instruction into the first XML data and reports it to the access service module 10.
  • the protocol conversion module 20 receives the data collection instruction sent by the access service module 10, and fills the data collection instruction into the data model of the access service module 10, generates a first data model including the data collection instruction, and then The first data model is converted into the first XML data by the parameters of the mapping relationship in the XML protocol template, and the first XML data is reported to the access service module 10.
  • the access server module sends the first XML data to the communication processing module 30.
  • the access service module 10 After receiving the first XML data reported by the protocol conversion module 20, the access service module 10 immediately sends the first X ML data to the communication processing module 30.
  • the communication processing module 30 converts the first XML data into the first bottom end data and sends the data to the smart device.
  • the communication processing module 30 After receiving the first XML data sent by the access service module 10, the communication processing module 30 converts the first XML data into the first bottom end number of the support device protocol according to parameters such as a mapping relationship in the XML protocol template. And sending the first bottom end data to the smart device, where the first bottom end data includes a data collection instruction, so that the smart device returns the original data that needs to be collected by the dynamic ring network management system according to the data collection instruction.
  • the communication processing module 30 receives the second bottom end data of the original data returned by the smart device, and converts the second bottom end data into the second XML data and reports the data to the access service module 10.
  • the communication processing module 30 After receiving the second bottom end data returned by the smart device, the communication processing module 30 converts the second bottom end data into the second XML data according to the mapping relationship and the like in the XML protocol template, and reports the second XML data.
  • the access service module 10 is provided.
  • the access service module 10 receives the second XML data and sends the data to the protocol conversion module 20.
  • the access service module 10 After receiving the second XML data reported by the communication processing module 30, the access service module 10 immediately performs the second X.
  • the ML data is sent to the protocol conversion module 20.
  • the protocol conversion module 20 converts the second XML data into a second data model, and reports the original data in the second data model to the access service module 10.
  • the protocol conversion module 20 receives the second X that is sent by the access processing module 10 and is reported by the communication processing module 30.
  • the second XML data is converted into the second data model according to the mapping relationship in the XML protocol template, and the original data in the second data model is parsed, and the original data is reported to the access service module 10 .
  • the access service module 10 receives the original data and performs data update.
  • the access service module 10 After receiving the original data reported by the protocol conversion module 20, the access service module 10 inputs the original data into the data system to perform data update.
  • the access service module 10 performs data processing.
  • the access service module 10 may directly invoke the protocol conversion module 20 to perform mutual conversion between the data model and the XML data.
  • a protocol configuration module 40 is further included, and the protocol configuration module 40 is configured to: acquire a device point table of the smart device. Data, associating device point table data with the channel of the data model to generate an XML protocol template. Therefore, the parameters in the X ML protocol template can be customized, and the partial processing of the communication processing module 30 can be further implemented, that is, the communication processing module 30 is required to be transmitted by each of the smart devices.
  • the protocol configuration module 40 includes a receiving unit 41, a defining unit 42, and a mapping unit 43, wherein:
  • the receiving unit 41 is configured to receive the device point table data input by the maintenance personnel.
  • the device point table data includes at least the device protocol and may also include related public parameters.
  • Definition unit 42 A data structure that is set to define the amount of monitoring in the data model, and a data structure of the monitoring amount in the device protocol.
  • Mapping unit 43 is set to establish a mapping relationship between the data structure of the monitoring quantity in the data model and the data structure of the monitoring quantity in the device protocol.
  • the data structure includes multiple attributes, and a one-to-one correspondence is established between the data model and corresponding attributes in the device protocol.
  • the attributes in the data structure include at least the channel number, channel name, and channel type. It can also include the monitoring quantity name, the monitoring type, the group number of the monitoring quantity, the ID and value of the monitoring quantity group, and so on.
  • the protocol configuration module 40 may further include a parameter abstraction unit 44, which is configured to: abstract common parameters, and configure performance parameters of the data processing according to the abstracted common parameters.
  • the performance parameter is a parameter required for the data processing by the communication processing module 30 configured according to the communication response speed, the communication delay related requirement, and the like, and includes the maximum number of groups of the monitoring amount and the capacity of each group of the monitoring amount.
  • the abstracted public parameters may also include device parameters including device code, device network address, etc., to subsequently identify the smart device based on the device code.
  • the access service module 10 is further configured to: control the communication processing module 30 to establish a communication link with the smart device and maintain the communication link.
  • the access service module 10 scans to the smart device access port through the bus, invokes the communication processing module 30 to initiate a communication connection, and establishes a communication link with the smart device. After the communication link is successfully established, the communication processing module 30 monitors the connection state, maintains the heartbeat connection, and reconnects when the connection is broken, so as to ensure that the communication link is always connected. Thereby improving the stability of the connection between the dynamic ring network management system and the smart device.
  • the data collection device of the embodiment of the present invention can realize the data collection instruction by presetting the XML protocol template, converting the data model and the XML data according to the XML protocol template, and converting the XML data and the bottom end data.
  • the dynamic transmission of the dynamic ring network management system to the smart device and the dynamic transmission of the original data from the smart device to the dynamic ring network management system realizes the dynamic access of the newly added smart device, without having to
  • the device can separately write the collection library, the protocol analysis library and the adaptation library, which reduces the repeated bursts and enhances the compatibility and scalability of the system.
  • only a small amount of code bursting work can be configured to configure a new XML protocol template, which is easy to test, greatly reduces the bursting workload and reduces the cost of bursting.
  • the data collection device of the embodiment of the present invention can flexibly configure the XML protocol template, and does not require the format of the device protocol of the accessed smart device, and is not restricted by the communication mode and protocol content of the smart device, and is flexible. high.
  • the communication processing module 30 of the data collection device of the embodiment of the present invention can be designed to be partially common according to the characteristics of the protocol.
  • the parameter (Param) in the XML protocol template defines the same smart device, and a common communication processing can be shared. Module 30. Thereby, it is possible to reduce repeated bursts and further reduce the cost of bursting.
  • the data collection method and device of the embodiments of the present invention are applicable to other related systems and devices, and are not limited by the present invention.
  • the present invention also provides a dynamic ring network management system, the system comprising: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the And being configured in the memory to be executed by the one or more processors, the one or more applications being configured to perform a data collection method.
  • the data collection method includes the following steps: acquiring a preset XML protocol template matching the accessed smart device; converting the first data model including the data collection instruction into the first XML data according to the XML protocol template; Converting the first XML data to the first bottom end data of the support device protocol and sending the data to the smart device, and receiving the second bottom end data of the original data that is returned by the smart device and including the smart device, and Converting the second bottom end data into the second X ML data; converting the second XML data into the second data model to obtain the original data in the second data model.
  • the data collection method described in this embodiment is the data collection method involved in the foregoing embodiment of the present invention, and details are not described herein again.
  • a data collection method provided by an embodiment of the present invention, by presetting an XML protocol template, converting a data model and an XML data according to an XM L protocol template, and converting the XML data and the bottom end data, Realize the dynamic transmission of the data acquisition command from the dynamic ring network management system to the intelligent device and the dynamic transmission of the original data from the intelligent device to the dynamic ring network management system, realizing the dynamic access of the newly added intelligent devices, without separately preparing the collection library for each intelligent device.
  • the protocol parsing library and the adapting library reduce duplication and increase system compatibility and scalability. When there is a new smart device access, only a small amount of code is required to configure a new XML protocol template, which is easy to test, greatly reduces the bursting workload and reduces the cost of bursting. Therefore, it has industrial applicability.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention discloses a data collection method, device, and dynamic environment network management system. The method comprises the following steps: obtaining a preset XML protocol template matching an accessed intelligent device; transforming, according to the XML protocol template, a first data model comprising data collection commands into first XML data; transforming the first XML data into first bottom-end data that supports a device protocol, transmitting the first bottom-end data to the intelligent device, receiving second bottom-end data comprising raw data of the intelligent device and returned by the intelligent device, and transforming the second bottom-end data into second XML data; and transforming the second XML data into a second data model, and obtaining raw data in the second data model. Thus, dynamic access for adding an intelligent device is realized, and there is no need to respectively write a collection library, a protocol analysis library, and an adaptation library for each intelligent device. Hence, repeated development is reduced, system compatibility and scalability are improved, only a small amount of code development work is required, testing is easy, and development workloads and costs are reduced.

Description

技术领域  Technical field

[0001] 本发明涉及通信技术领域, 尤其是涉及一种数据采集方法、 装置和动环网管系 统。  [0001] The present invention relates to the field of communications technologies, and in particular, to a data collection method, apparatus, and dynamic ring network management system.

背景技术  Background technique

[0002] 在动环网管系统中, 数据的采集涉及到一些智能终端设备, 这些智能终端设备 具有种类繁多、 接口差异大以及协议不统一等特点, 导致设备接入吋工作量较 大, 从而给系统中前端的数据采集和监控带来很大的困难。  [0002] In the dynamic ring network management system, data collection involves some intelligent terminal devices, which have various types, large interface differences, and inconsistent protocols, resulting in a large workload of device access, thereby giving The data acquisition and monitoring of the front end in the system brings great difficulties.

[0003] 目前, 动环网管系统在接入智能设备并进行数据采集吋, 需要针对每个智能设 备分别编写一个采集库和一个协议解析库, 同吋动环网管系统的接入服务模块 也需要新增相应的适配库。 因此, 每当有新的智能设备需要接入吋, 都需要大 量的编程、 调试和测试工作, 从而在幵发上造成了工作量的成倍增加, 导致采 集和监控程序扩展困难, 难以适应客户的一些特殊需求。  [0003] At present, the dynamic ring network management system needs to write an acquisition library and a protocol analysis library for each smart device after accessing the smart device and performing data collection, and the access service module of the same ring network management system is also required. Add the corresponding adapter library. Therefore, whenever a new smart device needs access, it requires a lot of programming, debugging and testing work, which causes the workload to increase exponentially, which makes the acquisition and monitoring program difficult to expand, and it is difficult to adapt to the customer. Some special needs.

[0004] 综上所述可知, 现有的动环网管系统, 无法实现新增智能设备的动态接入, 兼 容性和可扩展性较差, 幵发成本高。  [0004] In summary, the existing dynamic ring network management system cannot implement dynamic access of new smart devices, and has poor compatibility and scalability, and high cost.

技术问题  technical problem

[0005] 本发明实施例的主要目的在于提供一种数据采集方法、 装置和动环网管系统, 旨在实现新增智能设备的动态接入, 增强兼容性和可扩展性, 降低幵发成本。 问题的解决方案  The main purpose of the embodiments of the present invention is to provide a data collection method, device, and dynamic ring network management system, which are designed to implement dynamic access of new smart devices, enhance compatibility and scalability, and reduce burst cost. Problem solution

技术解决方案  Technical solution

[0006] 为达以上目的, 一方面提出一种数据采集方法, 所述方法包括以下步骤: [0007] 获取预置的与接入的智能设备相匹配的 XML协议模板;  [0006] In order to achieve the above objective, a data collection method is provided on the one hand, and the method includes the following steps: [0007] acquiring a preset XML protocol template that matches an accessed smart device;

[0008] 根据所述 XML协议模板将包含数据采集指令的第一数据模型转换为第一 XML 数据;  [0008] converting the first data model including the data collection instruction into the first XML data according to the XML protocol template;

[0009] 将所述第一 XML数据转换为支持设备协议的第一底端数据并发送给所述智能设 备, 接收所述智能设备返回的包含所述智能设备的原始数据的第二底端数据, 并将所述第二底端数据转换为第二 XML数据; Converting the first XML data into the first bottom end data of the support device protocol and sending the data to the smart device, and receiving the second bottom end data of the original data that is returned by the smart device and including the smart device. , Converting the second bottom end data into second XML data;

[0010] 将所述第二 XML数据转换为第二数据模型, 获取所述第二数据模型中的所述原 始数据。 [0010] converting the second XML data into a second data model, and acquiring the original data in the second data model.

[0011] 可选地, 所述获取预置的与接入的智能设备相匹配的 XML协议模板的步骤之前 还包括:  [0011] Optionally, before the step of acquiring the preset XML protocol template that matches the accessed smart device, the method further includes:

[0012] 获取智能设备的设备点表数据, 将所述设备点表数据与数据模型相关联, 生成 XML协议模板。  [0012] acquiring device point table data of the smart device, associating the device point table data with the data model, and generating an XML protocol template.

[0013] 可选地, 所述设备点表数据包括设备协议, 所述将所述设备点表数据与数据模 型相关联包括:  [0013] Optionally, the device point table data includes a device protocol, and the associating the device point table data with a data model includes:

[0014] 定义数据模型中监控量的数据结构以及所述设备协议中监控量的数据结构; [0015] 建立所述数据模型中监控量的数据结构与所述设备协议中监控量的数据结构的 映射关系。  [0014] defining a data structure of the monitoring quantity in the data model and a data structure of the monitoring quantity in the device protocol; [0015] establishing a data structure of the monitoring quantity in the data model and a data structure of the monitoring quantity in the device protocol Mapping relations.

[0016] 可选地, 所述设备点表数据还包括公共参数, 所述定义数据模型中监控量的数 据结构以及所述设备协议中监控量的数据结构的步骤之前还包括:  [0016] Optionally, the device point table data further includes a public parameter, and the step of defining a data structure of the monitoring quantity in the data model and a data structure of the monitoring quantity in the device protocol further includes:

[0017] 抽象所述公共参数, 根据抽象后的公共参数配置数据处理的性能参数。 [0017] abstracting the common parameter, configuring performance parameters of the data processing according to the abstracted public parameters.

[0018] 可选地, 所述 XML协议模板中包括性能参数、 设备参数、 协议标记和映射关系 [0018] Optionally, the XML protocol template includes performance parameters, device parameters, protocol tags, and mapping relationships.

[0019] 可选地, 所述性能参数包括监控量的最大组数和监控量的每组容量。 [0019] Optionally, the performance parameter includes a maximum number of groups of monitoring quantities and a capacity of each group of monitoring quantities.

[0020] 可选地, 所述方法还包括: 根据所述最大组数和所述每组容量将所述第一底端 数据分包发送给所述智能设备。  Optionally, the method further includes: sending the first bottom end data packet to the smart device according to the maximum number of groups and the each group of capacity.

[0021] 可选地, 所述设备参数包括设备编码和设备网络地址。 [0021] Optionally, the device parameter includes a device code and a device network address.

[0022] 可选地, 所述映射关系为数据模型与设备协议中的监控量的数据结构中各属性 的对应关系。  [0022] Optionally, the mapping relationship is a correspondence between the data model and each attribute in the data structure of the monitoring quantity in the device protocol.

[0023] 可选地, 所述属性包括通道号、 通道名称和通道类型。  [0023] Optionally, the attribute includes a channel number, a channel name, and a channel type.

[0024] 可选地, 所述属性还包括监控量名称、 监控量类型、 监控量所在组号、 监控量 组内 ID和值。  [0024] Optionally, the attribute further includes a monitoring quantity name, a monitoring quantity type, a group number of the monitoring quantity, an ID and a value in the monitoring quantity group.

[0025] 可选地, 所述 XML数据包括 XML格式的扫描数据、 遥调数据和遥控数据。  [0025] Optionally, the XML data includes scan data, remote adjustment data, and remote control data in an XML format.

[0026] 另一方面提出一种数据采集装置, 所述装置包括: [0027] 接入服务模块, 设置为获取预置的与接入的智能设备相匹配的 XML协议模板; [0028] 协议转换模块, 设置为根据所述 XML协议模板将包含数据采集指令的第一数据 模型转换为第一 XML数据; [0026] Another aspect provides a data collection device, the device comprising: [0027] an access service module, configured to acquire a preset XML protocol template that matches the accessed smart device; [0028] a protocol conversion module, configured to include a first data acquisition instruction according to the XML protocol template Converting the data model to the first XML data;

[0029] 通讯处理模块, 设置为将所述第一 XML数据转换为支持设备协议的第一底端数 据并发送给所述智能设备, 接收所述智能设备返回的包含所述智能设备的原始 数据的第二底端数据, 并将所述第二底端数据转换为第二 XML数据; [0029] The communication processing module is configured to convert the first XML data into the first bottom end data of the support device protocol and send the data to the smart device, and receive the original data that is returned by the smart device and include the smart device. Second bottom end data, and converting the second bottom end data into second XML data;

[0030] 所述协议转换模块还设置为: 将所述第二 XML数据转换为第二数据模型, 获取 所述第二数据模型中的所述原始数据。 [0030] The protocol conversion module is further configured to: convert the second XML data into a second data model, and obtain the original data in the second data model.

[0031] 可选地, 所述装置还包括协议配置模块, 所述协议配置模块设置为: 获取智能 设备的设备点表数据, 将所述设备点表数据与数据模型相关联, 生成 XML协议 模板。 [0031] Optionally, the device further includes a protocol configuration module, where the protocol configuration module is configured to: obtain device point table data of the smart device, associate the device point table data with a data model, and generate an XML protocol template. .

[0032] 可选地, 所述设备点表数据包括设备协议, 所述协议配置模块包括:  [0032] Optionally, the device point table data includes a device protocol, where the protocol configuration module includes:

[0033] 定义单元, 设置为定义数据模型中监控量的数据结构以及所述设备协议中监控 量的数据结构; [0033] a defining unit, configured to define a data structure of the monitoring quantity in the data model and a data structure of the monitoring quantity in the device protocol;

[0034] 映射单元, 设置为建立所述数据模型中监控量的数据结构与所述设备协议中监 控量的数据结构的映射关系。  [0034] a mapping unit, configured to establish a mapping relationship between a data structure of the monitoring quantity in the data model and a data structure of the monitoring quantity in the device protocol.

[0035] 可选地, 所述设备点表数据还包括公共参数, 所述协议配置模块还包括参数抽 象单元, 所述参数抽象单元设置为: [0035] Optionally, the device point table data further includes a common parameter, the protocol configuration module further includes a parameter extraction unit, and the parameter abstraction unit is configured to:

[0036] 抽象所述公共参数, 根据抽象后的公共参数配置所述通讯处理模块进行数据处 理的性能参数。 [0036] abstracting the common parameter, and configuring performance parameters of the data processing module by the communication processing module according to the abstracted public parameter.

[0037] 可选地, 所述通讯处理模块设置为: 根据所述最大组数和所述每组容量将所述 第一底端数据分包发送给所述智能设备。  [0037] Optionally, the communication processing module is configured to: send the first bottom end data packet to the smart device according to the maximum number of groups and the each group of capacity.

[0038] 同吋, 还提出一种动环网管系统, 所述系统包括: [0038] Similarly, a moving ring network management system is also proposed, and the system includes:

[0039] 一个或多个处理器; [0039] one or more processors;

[0040] 存储器; [0040] a memory;

[0041] 一个或多个应用程序, 其中所述一个或多个应用程序被存储在所述存储器中并 被配置为由所述一个或多个处理器执行, 所述一个或多个应用程序被配置为用 于执行前述数据采集方法。 发明的有益效果 [0041] one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications being Configured to perform the aforementioned data collection methods. Advantageous effects of the invention

有益效果  Beneficial effect

[0042] 本发明实施例所提供的一种数据采集方法, 通过预置 XML协议模板, 根据 XM L协议模板实现数据模型与 XML数据的相互转换以及 XML数据与底端数据的相 互转换, 就能实现数据采集指令从动环网管系统到智能设备传递以及原始数据 从智能设备到动环网管系统的动态传递, 实现了新增智能设备的动态接入, 无 需为每个智能设备分别编写采集库、 协议解析库和适配库, 减少重复幵发, 增 强了系统的兼容性和可扩展性。 当有新的智能设备接入吋, 只需少量的代码幵 发工作配置出新的 XML协议模板即可, 易于测试, 大大减小了幵发工作量, 降 低了幵发成本。  [0042] A data collection method provided by an embodiment of the present invention, by presetting an XML protocol template, converting a data model and an XML data according to an XM L protocol template, and converting the XML data and the bottom end data, Realize the dynamic transmission of the data acquisition command from the dynamic ring network management system to the intelligent device and the dynamic transmission of the original data from the intelligent device to the dynamic ring network management system, realizing the dynamic access of the newly added intelligent devices, without separately preparing the collection library for each intelligent device. The protocol parsing library and the adapting library reduce duplication and increase system compatibility and scalability. When there is a new smart device access, only a small amount of code is required to configure a new XML protocol template, which is easy to test, greatly reduces the bursting workload and reduces the cost of bursting.

对附图的简要说明  Brief description of the drawing

附图说明  DRAWINGS

[0043] 图 1是本发明的数据采集方法第一实施例的流程图;  1 is a flow chart of a first embodiment of a data collection method of the present invention;

[0044] 图 2是本发明实施例中动环网管系统生成 XML协议模板的具体流程图;  2 is a specific flowchart of generating an XML protocol template by a dynamic ring network management system according to an embodiment of the present invention;

[0045] 图 3是本发明的数据采集方法第二实施例的流程图;  3 is a flow chart of a second embodiment of the data collection method of the present invention;

[0046] 图 4是本发明的数据采集装置第一实施例的模块示意图;  4 is a schematic block diagram of a first embodiment of a data collection device of the present invention;

[0047] 图 5是本发明实施例中数据采集装置进行数据采集吋各单元模块的交互示意图  5 is a schematic diagram of interaction of each unit module in data collection by the data collection device in the embodiment of the present invention;

[0048] 图 6是本发明的数据采集装置第二实施例的模块示意图; 6 is a schematic block diagram of a second embodiment of a data collection device of the present invention;

[0049] 图 7是图 6中的协议配置模块的模块示意图。 7 is a block diagram of the protocol configuration module of FIG. 6.

[0050] 本发明目的的实现、 功能特点及优点将结合实施例, 参照附图做进一步说明。  [0050] The implementation, functional features, and advantages of the present invention will be further described with reference to the accompanying drawings.

本发明的实施方式 Embodiments of the invention

[0051] 应当理解, 此处所描述的具体实施例仅仅用以解释本发明, 并不用于限定本发 明。 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明的一部分实施例, 而不 是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创 造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。 The specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, those of ordinary skill in the art are not making All other embodiments obtained under the premise of productive labor are within the scope of the invention.

[0052] 需要说明, 本发明实施例中所有方向性指示 (诸如上、 下、 左、 右、 前、 后… …)仅用于解释在某一特定姿态 (如附图所示)下各部件之间的相对位置关系、 运 动情况等, 如果该特定姿态发生改变吋, 则该方向性指示也相应地随之改变。  [0052] It should be noted that all directional indications (such as up, down, left, right, front, back, ...) in the embodiments of the present invention are only used to explain the components in a certain posture (as shown in the drawing). The relative positional relationship, the motion situation, and the like, if the specific posture changes, the directional indication also changes accordingly.

[0053] 另外, 在本发明中涉及"第一"、 "第二"等的描述仅用于描述目的, 而不能理解 为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。 由此, 限 定有"第一"、 "第二 "的特征可以明示或者隐含地包括至少一个该特征。 另外, 各 个实施例之间的技术方案可以相互结合, 但是必须是以本领域普通技术人员能 够实现为基础, 当技术方案的结合出现相互矛盾或无法实现吋应当认为这种技 术方案的结合不存在, 也不在本发明要求的保护范围之内。  In addition, the descriptions of "first", "second" and the like in the present invention are used for descriptive purposes only, and are not to be construed as indicating or implying their relative importance or implicitly indicating the number of indicated technical features. . Thus, features defining "first" and "second" may include at least one of the features, either explicitly or implicitly. In addition, the technical solutions between the various embodiments may be combined with each other, but must be based on the realization of those skilled in the art, and when the combination of the technical solutions is contradictory or impossible to implement, it should be considered that the combination of the technical solutions does not exist. It is also within the scope of protection required by the present invention.

[0054] 参见图 1, 提出本发明的数据采集方法的第一实施例, 所述方法可以应用于动 环网管系统, 所述方法包括以下步骤: Referring to FIG. 1, a first embodiment of the data collection method of the present invention is proposed. The method can be applied to a dynamic network management system, and the method includes the following steps:

[0055] Sl l、 获取预置的与接入的智能设备相匹配的 XML协议模板。 [0055] Sl l, obtaining a preset XML protocol template that matches the accessed smart device.

[0056] 本步骤 S11中, 当智能设备接入动环网管系统后, 动环网管系统则根据智能设 备的设备编码 (ID) 从预置的多个可扩展标记语言 (extensible Markup Language , XML)协议模板中获取与该智能设备相匹配的 XML协议模板。 [0056] In this step S11, after the smart device accesses the dynamic ring network management system, the dynamic ring network management system extracts from the preset multiple extensible markup language (XML) according to the device code (ID) of the smart device. Obtain an XML protocol template matching the smart device in the protocol template.

[0057] XML协议模板中存储了全量映射, 其包括性能参数、 设备参数、 协议标记和映 射关系等参数, 可选地, 还可以包括通讯参数。 其中: [0057] The XML protocol template stores a full-scale mapping, which includes parameters such as performance parameters, device parameters, protocol tags, and mapping relationships, and optionally, may also include communication parameters. among them:

[0058] 性能参数, 是根据通讯响应速度、 通讯延吋相关要求等配置的数据处理所需参 数, 包括监控量的最大组数 (或称最大处理组数) 和监控量的每组容量 (即每 组监控量的容量) ; [0058] The performance parameter is a parameter required for data processing according to a configuration of a communication response speed, a communication delay, and the like, and includes a maximum number of groups of monitoring quantities (or a maximum number of processing groups) and a capacity of each group of monitoring quantities (ie, Capacity of each group of monitoring);

[0059] 设备参数, 包括设备编码和设备网络地址; [0059] device parameters, including device code and device network address;

[0060] 协议标记, 分为获取 (GET) 和设置 (SET) 两种模式; [0060] Protocol mark, divided into two modes: get (GET) and set (SET);

[0061] 映射关系, 是数据模型与设备协议 (即智能设备的原始协议) 中的监控量的数 据结构中各属性的对应关系, 其中数据模型可以抽象为通道号、 通道名和通道 类型, 数据结构中的属性至少包括通道号、 通道名称和通道类型, 还可以包括 监控量名称、 监控量类型、 监控量所在组号、 监控量组内 ID、 值等。 [0061] The mapping relationship is a correspondence between each attribute of the data structure of the monitoring model in the data model and the device protocol (ie, the original protocol of the smart device), wherein the data model can be abstracted into a channel number, a channel name, and a channel type, and the data structure The attributes in the channel include at least the channel number, the channel name, and the channel type. It can also include the monitoring quantity name, the monitoring type, the monitoring group number, the monitoring group ID, and the value.

[0062] 以设备协议为国电南自串口 103通信规约的智能设备为例, 其对应的 XML协议 模板中包含以下参数: [0062] Taking the device protocol as an example of the intelligent device of the national communication protocol from the serial port 103, the corresponding XML protocol The template contains the following parameters:

[0063] (1) 性能参数: 数据处理吋监控量的最大组数和监控量的每组容量;  [0063] (1) Performance parameters: data processing, maximum number of monitoring quantities, and monitoring capacity per group;

[0064] (2) 设备参数: 设备编码、 设备网络地址; [0064] (2) device parameters: device code, device network address;

[0065] (3) 协议标记: 读、 写; [0065] (3) Protocol mark: read and write;

[0066] (4) 映射关系: 数据结构的属性包括通道号、 通道名称、 通道类型、 监控量 名称、 监控量类型、 监控量所在组号、 监控量组内 ID、 值。  [0066] (4) Mapping relationship: The attributes of the data structure include the channel number, the channel name, the channel type, the monitoring quantity name, the monitoring type, the group number of the monitoring quantity, the ID and the value of the monitoring quantity group.

[0067] 动环网管系统可以根据协议配置程序来配置 XML协议模板, 具体的, 通过协议 配置程序接收维护人员输入的智能设备的设备点表数据, 将设备点表数据与数 据模型的通道相关联, 生成 XML协议模板。 设备点表数据至少包括设备协议, 还可以包括相关的公共参数。  [0067] The dynamic ring network management system can configure the XML protocol template according to the protocol configuration program. Specifically, the protocol configuration program receives the device point table data of the smart device input by the maintenance personnel, and associates the device point table data with the channel of the data model. , generate an XML protocol template. The device point table data includes at least a device protocol, and may also include related public parameters.

[0068] 如图 2所示, 为动环网管系统生成 XML协议模板的具体流程, 包括以下步骤: [0068] As shown in FIG. 2, a specific process for generating an XML protocol template for a dynamic ring network management system includes the following steps:

[0069] S101、 定义数据模型中监控量的数据结构, 以及设备协议中监控量的数据结构 [0069] S101, defining a data structure of the monitoring quantity in the data model, and a data structure of the monitoring quantity in the device protocol

[0070] S102、 建立数据模型中监控量的数据结构与设备协议中监控量的数据结构的映 射关系。 [0070] S102. Establish a mapping relationship between the data structure of the monitoring quantity in the data model and the data structure of the monitoring quantity in the device protocol.

[0071] 数据结构中包括多种属性, 在数据模型与设备协议中对应的属性之间建立一一 对应关系。 数据结构中的属性至少包括通道号、 通道名称和通道类型, 还可以 包括监控量名称、 监控量类型、 监控量所在组号、 监控量组内 ID、 值等。  [0071] The data structure includes a plurality of attributes, and a one-to-one correspondence is established between the data model and corresponding attributes in the device protocol. The attributes in the data structure include at least the channel number, channel name, and channel type. It can also include the monitoring quantity name, the monitoring type, the group number of the monitoring quantity, the ID and value of the monitoring quantity group, and so on.

[0072] 进一步地, 在步骤 S101之前, 还可以包括:  [0072] Further, before step S101, the method may further include:

[0073] 步骤 S100、 抽象公共参数, 根据抽象后的公共参数配置数据处理的性能参数。  [0073] Step S100: Abstract public parameters, and configure performance parameters of the data processing according to the abstracted public parameters.

[0074] 性能参数是根据通讯响应速度、 通讯延吋相关要求等配置的数据处理所需参数[0074] The performance parameter is a parameter required for data processing according to a communication response speed, a communication delay related requirement, and the like.

, 包括监控量的最大组数和监控量的每组容量。 抽象后的公共参数还可以包括 设备参数, 该设备参数包括设备编码、 设备网络地址等, 以便后续根据设备编 码识别智能设备。 , including the maximum number of groups of monitoring and the amount of each group of monitored quantities. The abstracted public parameters may also include device parameters including device code, device network address, etc., to subsequently identify the smart device based on the device code.

[0075] S12、 根据 XML协议模板将包含数据采集指令的第一数据模型转换为第一 XML 数据。  [0075] S12. Convert the first data model including the data collection instruction into the first XML data according to the XML protocol template.

[0076] 本步骤 S12中, 动环网管系统生成数据采集指令, 将数据采集指令填充到数据 模型 (或称网管模型) 中, 生成包含数据采集指令的第一数据模型, 然后根据 匹配出的 XML协议模板中的映射关系等参数将第一数据模型转换为第一 XML数 据。 [0076] In step S12, the dynamic ring network management system generates a data acquisition instruction, fills the data collection instruction into a data model (or a network management model), generates a first data model including the data collection instruction, and then according to The first data model is converted into the first XML data by parameters such as a mapping relationship in the matched XML protocol template.

[0077] 可选地, XML数据包括 XML格式的扫描数据、 遥调数据、 遥控数据等。  [0077] Optionally, the XML data includes scan data in XML format, remote adjustment data, remote control data, and the like.

[0078] S13、 将第一 XML数据转换为支持设备协议的第一底端数据并发送给智能设备 [0078] S13. Convert the first XML data into the first bottom end data of the support device protocol and send the data to the smart device.

[0079] 本步骤 S13中, 动环网管系统接着根据 XML协议模板中的映射关系等参数将第 一 XML数据转换为支持设备协议的第一底端数据, 并将第一底端数据发送给智 能设备, 该第一底端数据中包含了数据采集指令, 以使智能设备根据该数据采 集指令返回动环网管系统需要采集的原始数据。 [0079] In step S13, the dynamic ring network management system then converts the first XML data into the first bottom end data of the support device protocol according to the mapping relationship and the like in the XML protocol template, and sends the first bottom end data to the smart The device, the first bottom end data includes a data collection instruction, so that the smart device returns the original data that needs to be collected by the dynamic ring network management system according to the data collection instruction.

[0080] 可选地, 动环网管系统根据 XML协议模板中设定的监控量的最大组数、 监控量 的每组容量等性能参数将第一底端数据分成多个数据包, 并将第一底端数据分 包发送给智能设备。 从而防止数据丢失, 提高数据传输的稳定性和可靠性。  [0080] Optionally, the dynamic ring network management system divides the first bottom end data into multiple data packets according to performance parameters such as a maximum number of monitoring quantities set in the XML protocol template, and a monitoring capacity of each group, and the first A bottom data packet is sent to the smart device. Thereby preventing data loss and improving the stability and reliability of data transmission.

[0081] S14、 接收智能设备返回的包含智能设备的原始数据的第二底端数据, 并将第 二底端数据转换为第二 XML数据。  [0081] S14. Receive second bottom end data of the original data of the smart device returned by the smart device, and convert the second bottom end data into the second XML data.

[0082] 本发明实施例中, 智能设备接收到第一底端数据后, 解析出第一底端数据中的 数据采集指令, 根据该数据采集指令获取相应的原始数据, 并将该原始数据生 成为第二底端数据发送给动环网管系统。  [0082] In the embodiment of the present invention, after receiving the first bottom end data, the smart device parses out the data collection instruction in the first bottom end data, acquires corresponding original data according to the data collection instruction, and generates the original data. The second bottom data is sent to the dynamic ring network management system.

[0083] 本步骤 S14中, 动环网管系统接收智能设备返回的第二底端数据, 并根据 XML 协议模板中的映射关系等参数将第二底端数据转换为第二 XML数据。 具体实施 吋, 动环网管系统可以首先解析出第二底端数据中的原始数据, 然后将原始数 据填充到第一 XML数据中, 从而生成第二 XML数据。  [0083] In step S14, the dynamic ring network management system receives the second bottom end data returned by the smart device, and converts the second bottom end data into the second XML data according to parameters such as a mapping relationship in the XML protocol template. Specifically, the dynamic ring network management system may first parse the original data in the second bottom end data, and then fill the original data into the first XML data to generate the second XML data.

[0084] S15、 将第二 XML数据转换为第二数据模型, 获取第二数据模型中的原始数据  [0084] S15. Convert the second XML data into a second data model, and obtain the original data in the second data model.

[0085] 本步骤 S15中, 动环网管系统接着根据 XML协议模板中的映射关系等参数将第 二 XML数据转换为第二数据模型, 并解析出该第二数据模型中的原始数据, 从 而实现智能设备的原始数据的采集。 动环网管系统解析出原始数据后, 可以将 该原始数据输入数据系统中, 进行数据更新, 并进行相应的数据处理操作。 [0085] In step S15, the dynamic ring network management system further converts the second XML data into a second data model according to parameters such as a mapping relationship in the XML protocol template, and parses out the original data in the second data model, thereby implementing The collection of raw data from smart devices. After the dynamic ring network management system parses the original data, the original data can be input into the data system, the data is updated, and corresponding data processing operations are performed.

[0086] 进一步地, 如图 3所示, 在本发明的数据采集方法的第二实施例中, 步骤 S11之 前还包括: [0086] Further, as shown in FIG. 3, in the second embodiment of the data collection method of the present invention, step S11 Also included before:

[0087] 步骤 S10、 当检测到智能设备接入吋, 建立与智能设备的通讯链路并维护该通 讯链路。  [0087] Step S10: When the smart device access is detected, establish a communication link with the smart device and maintain the communication link.

[0088] 本步骤 S10中, 动环网管系统检测到智能设备接入后, 控制智能设备所在总线 扫描以及数据收发流程, 与智能设备建立通讯链路, 并在通讯链路建立成功后 [0088] In this step S10, after detecting the access of the smart device, the dynamic ring network management system controls the bus scanning and data transceiving process of the smart device, establishes a communication link with the smart device, and after the communication link is successfully established.

, 监听连接状态, 维持心跳连接, 当连接断幵吋进行重连。 从而提高了动环网 管系统与智能设备连接的稳定性。 , monitor the connection status, maintain the heartbeat connection, and reconnect when the connection is broken. Thereby improving the stability of the connection between the dynamic ring network system and the smart device.

[0089] 本发明实施例的数据采集方法, 通过预置 XML协议模板, 根据 XML协议模板 实现数据模型与 XML数据的相互转换以及 XML数据与底端数据的相互转换, 就 能实现数据采集指令从动环网管系统到智能设备传递以及原始数据从智能设备 到动环网管系统的动态传递, 实现了新增智能设备的动态接入, 无需为每个智 能设备分别编写采集库、 协议解析库和适配库, 减少重复幵发, 增强了系统的 兼容性和可扩展性。 当有新的智能设备接入吋, 只需少量的代码幵发工作配置 出新的 XML协议模板即可, 易于测试, 大大减小了幵发工作量, 降低了幵发成 本。  [0089] The data collection method of the embodiment of the present invention can realize the data collection instruction from the data template by implementing the XML protocol template, converting the data model and the XML data according to the XML protocol template, and converting the XML data with the bottom data. The dynamic transmission of the dynamic ring network management system to the intelligent device and the dynamic transmission of the original data from the smart device to the dynamic ring network management system realizes the dynamic access of the newly added intelligent device, and does not need to separately write the collection library, the protocol analysis library and the appropriate for each intelligent device. The library, which reduces duplication, enhances system compatibility and scalability. When there is a new smart device access, only a small amount of code is used to configure a new XML protocol template, which is easy to test, greatly reducing the bursting workload and reducing the cost of bursting.

[0090] 本发明实施例的数据采集方法, 可以对 XML协议模板进行灵活配置, 对接入的 智能设备的设备协议的格式没有要求, 不受智能设备的通讯方式、 协议内容的 约束, 灵活性高。  The data collection method of the embodiment of the present invention can flexibly configure the XML protocol template, and does not require the format of the device protocol of the accessed smart device, and is not restricted by the communication mode and protocol content of the smart device, and is flexible. high.

[0091] 参见图 4, 提出本发明的数据采集装置的第一实施例, 所述装置可以应用于动 环网管系统, 其包括依次连接的协议转换模块 20、 接入服务模块 10和通讯处理 模块 30, 接入服务模块 10通过通讯处理模块 30连接智能设备, 其中:  [0091] Referring to FIG. 4, a first embodiment of a data collection device of the present invention is provided. The device can be applied to a dynamic ring network management system, which includes a protocol conversion module 20, an access service module 10, and a communication processing module that are sequentially connected. 30. The access service module 10 is connected to the smart device by using the communication processing module 30, where:

[0092] 接入服务模块 10: 设置为获取预置的与接入的智能设备相匹配的 XML协议模板  [0092] The access service module 10: is configured to obtain a preset XML protocol template that matches the accessed smart device.

[0093] 接入服务模块 10是动环网管系统的主模块, 也是公共模块, 专注于接入设备的 综合管理以及业务功能的实现。 接入服务器模块可以控制智能设备的接入、 实 现具体的业务功能、 管理业务数据等, 可支持传输控制协议 (Transmission Control Protocol, TCP)、 用户数据报 1"办议 (User Datagram Protocol, UDP) 、 码 分多址(Code Division Multiple Access, CDMA)等多种通信协议, 可支持智能设 备的动态配置接入。 [0093] The access service module 10 is a main module of the dynamic ring network management system, and is also a public module, focusing on the integrated management of the access device and the realization of the service function. The access server module can control the access of the smart device, implement specific service functions, manage service data, etc., and can support Transmission Control Protocol (TCP) and User Datagram Protocol (UDP). Multiple communication protocols such as Code Division Multiple Access (CDMA), which can support intelligent devices. Ready for dynamic configuration access.

[0094] 本实施例中, 当智能设备接入动环网管系统后, 接入服务模块 10则根据智能设 备的设备编码 (ID) 从预置的多个 XML协议模板中获取与该智能设备相匹配的 XML协议模板, 并将匹配出的 XML协议模板发送给协议转换模块 20和通讯处理 模块 30。 同吋, 接入服务模块 10生成数据采集指令, 并将数据采集指令下发给 协议转换模块 20。  [0094] In this embodiment, after the smart device is connected to the dynamic ring network management system, the access service module 10 obtains the smart device from the preset multiple XML protocol templates according to the device code (ID) of the smart device. The matched XML protocol template is sent to the protocol conversion module 20 and the communication processing module 30. In the same manner, the access service module 10 generates a data collection instruction, and sends the data collection instruction to the protocol conversion module 20.

[0095] XML协议模板预先存储于动环网管系统中, 动环网管系统可以从外部设备获取 或者从网络上下载该 XML协议模板。 XML协议模板中存储了全量映射, 具体每 个交互过程根据接入服务模块 10下发的数据采集指令来生成协议数据。 XML协 议模板包括性能参数、 设备参数、 协议标记和映射关系等参数, 可选地, 还可 以包括通讯参数。 其中:  [0095] The XML protocol template is pre-stored in the dynamic ring network management system, and the dynamic ring network management system can obtain the XML protocol template from an external device or download the XML protocol template from the network. A full-scale mapping is stored in the XML protocol template. Each of the interaction processes generates protocol data according to the data collection instruction sent by the access service module 10. The XML protocol template includes parameters such as performance parameters, device parameters, protocol flags, and mapping relationships, and optionally, communication parameters. among them:

[0096] 性能参数, 是根据通讯响应速度、 通讯延吋相关要求等配置的通讯处理模块 30 进行数据处理所需的参数, 包括监控量的最大组数 (或称最大处理组数) 和监 控量的每组容量 (即每组监控量的容量) ; [0096] The performance parameter is a parameter required for the data processing by the communication processing module 30 configured according to the communication response speed, the communication delay related requirement, and the like, including the maximum number of monitoring groups (or the maximum processing group number) and the monitoring amount. Capacity of each group (ie the capacity of each group of monitoring);

[0097] 设备参数, 包括智能设备的设备编码和设备网络地址; [0097] a device parameter, including a device code of the smart device and a device network address;

[0098] 协议标记, 分为获取 (GET) 和设置 (SET) 两种模式; [0098] Protocol marking, divided into two modes: acquisition (GET) and setting (SET);

[0099] 映射关系, 是接入服务模块 10的数据模型与智能设备的设备协议 (即智能设备 的原始协议) 中的监控量的数据结构中各属性的对应关系, 其中数据模型可以 抽象为通道号、 通道名和通道类型, 数据结构中的属性至少包括通道号、 通道 名称和通道类型, 还可以包括监控量名称、 监控量类型、 监控量所在组号、 监 控量组内 ID、 值等。 [0099] The mapping relationship is a correspondence between each of the attributes in the data structure of the monitoring quantity in the data model of the access service module 10 and the device protocol of the smart device (ie, the original protocol of the smart device), wherein the data model can be abstracted into a channel Number, channel name and channel type. The attributes in the data structure include at least the channel number, channel name and channel type. It can also include the monitoring quantity name, the monitoring type, the group number of the monitoring quantity, the ID and value of the monitoring quantity group.

[0100] 以设备协议为国电南自串口 103通信规约的智能设备为例, 其对应的 XML协议 模板中包含以下参数:  [0100] Taking the device protocol as an example of the smart device of the Guodian South from the serial port 103 communication protocol, the corresponding XML protocol template includes the following parameters:

[0101] (1) 性能参数: 通讯处理模块 30进行数据处理吋监控量的最大组数和监控量 的每组容量;  [0101] (1) Performance parameters: The communication processing module 30 performs data processing, the maximum number of monitoring quantities, and the capacity of each group of monitoring quantities;

[0102] (2) 设备参数: 设备编码、 设备网络地址;  [0102] (2) Device parameters: device code, device network address;

[0103] (3) 协议标记: 读、 写; [0103] (3) Protocol mark: read and write;

[0104] (4) 映射关系: 数据结构的属性包括通道号、 通道名称、 通道类型、 监控量 名称、 监控量类型、 监控量所在组号、 监控量组内 ID、 值。 [0104] (4) Mapping relationship: The attributes of the data structure include channel number, channel name, channel type, and monitoring amount. Name, type of monitoring quantity, group number of monitoring quantity, ID and value of monitoring quantity group.

[0105] 协议转换模块 20: 设置为根据 XML协议模板将包含数据采集指令的第一数据模 型转换为第一 XML数据; 将第二 XML数据转换为第二数据模型, 获取第二数据 模型中的原始数据。 [0105] the protocol conversion module 20 is configured to convert the first data model including the data collection instruction into the first XML data according to the XML protocol template; convert the second XML data into the second data model, and obtain the second data model Raw data.

[0106] 协议转换模块 20也是一个公共模块, 其可以实现接入服务模块 10的数据模型与 XML数据的相互转换, 包括将接入服务模块 10下发的指令转换成 XML数据, 将 通讯处理模块 30上报的 XML数据转换为数据模型, 从而将采集到的智能设备的 原始数据更新至接入服务模块 10。  [0106] The protocol conversion module 20 is also a common module, which can implement mutual conversion between the data model of the access service module 10 and the XML data, including converting the instructions issued by the access service module 10 into XML data, and the communication processing module. The XML data reported by the 30 is converted into a data model, thereby updating the original data of the collected smart device to the access service module 10.

[0107] 本发明实施例中, 协议转换模块 20获取接入服务模块 10发送的 XML协议模板, 以及接收接入服务模块 10下发的数据采集指令, 并将数据采集指令填充到接入 服务模块 10的数据模型中, 生成包含数据采集指令的第一数据模型, 然后根据 X ML协议模板中的映射关系等参数将第一数据模型转换为第一 XML数据, 并将第 一 XML数据上报给接入服务模块 10, 接入服务模块 10接收到第一 XML数据后再 下发给通讯处理模块 30。  In the embodiment of the present invention, the protocol conversion module 20 obtains the XML protocol template sent by the access service module 10, and receives the data collection instruction sent by the access service module 10, and populates the data collection instruction into the access service module. In the data model of 10, a first data model including data acquisition instructions is generated, and then the first data model is converted into the first XML data according to parameters such as a mapping relationship in the X ML protocol template, and the first XML data is reported to the data. After the service module 10 receives the first XML data, the access service module 10 sends the first XML data to the communication processing module 30.

[0108] 可选地, XML数据包括 XML格式的扫描数据、 遥调数据、 遥控数据等。  [0108] Optionally, the XML data includes scan data in XML format, remote adjustment data, remote control data, and the like.

[0109] 协议转换模块 20接收到接入服务模块 10下发的由通讯处理模块 30上报的第二 X ML数据后, 根据 XML协议模板中的映射关系等参数将第二 XML数据转换为第二 数据模型, 并解析出该第二数据模型中的原始数据, 从而实现智能设备的原始 数据的采集。 协议转换模块 20解析出原始数据后, 将原始数据上报给接入服务 模块 10, 接入服务模块 10可以将该原始数据输入数据系统中, 进行数据更新, 并进行相应的数据处理操作。  [0109] After receiving the second X ML data reported by the communication processing module 30 delivered by the access service module 10, the protocol conversion module 20 converts the second XML data into the second according to the mapping relationship in the XML protocol template. The data model, and parsing the original data in the second data model, thereby realizing the collection of the original data of the smart device. After parsing out the original data, the protocol conversion module 20 reports the original data to the access service module 10, and the access service module 10 can input the original data into the data system, perform data update, and perform corresponding data processing operations.

[0110] 通讯处理模块 30: 设置为将第一 XML数据转换为支持设备协议的第一底端数据 并发送给智能设备, 接收智能设备返回的包含智能设备的原始数据的第二底端 数据, 并将第二底端数据转换为第二 XML数据。  [0110] The communication processing module 30 is configured to convert the first XML data into the first bottom end data of the support device protocol and send the data to the smart device, and receive the second bottom end data of the original data that is returned by the smart device, where the smart device returns And converting the second bottom end data into the second XML data.

[0111] 通讯处理模块 30实现与智能设备的通讯连接, 接收 XML数据, 翻译成支持设备 协议的底端数据下发给智能设备, 从智能设备接收包含原始数据的底端数据并 转换成 XML数据, 上报给接入服务模块 10。  [0111] The communication processing module 30 implements a communication connection with the smart device, receives the XML data, and translates the bottom end data translated into the support device protocol to the smart device, and receives the bottom end data containing the original data from the smart device and converts the data into XML data. And reported to the access service module 10.

[0112] 本发明实施例中, 通讯处理模块 30接收到接入服务模块 10下发的第一 XML数据 后, 根据 XML协议模板中的映射关系等参数将第一 XML数据转换为支持设备协 议的第一底端数据, 并将第一底端数据发送给智能设备, 该第一底端数据中包 含了数据采集指令, 以使智能设备根据该数据采集指令返回动环网管系统需要 采集的原始数据。 [0112] In the embodiment of the present invention, the communication processing module 30 receives the first XML data sent by the access service module 10. After that, the first XML data is converted into the first bottom end data of the support device protocol according to the mapping relationship in the XML protocol template, and the first bottom end data is sent to the smart device, where the first bottom end data includes The data collection instruction is configured to enable the smart device to return the original data that needs to be collected by the dynamic ring network management system according to the data collection instruction.

[0113] 可选地, 动环网管系统根据 XML协议模板中设定的监控量的最大组数、 监控量 的每组容量等性能参数将第一底端数据分成多个数据包, 并将第一底端数据分 包发送给智能设备。 从而防止数据丢失, 提高数据传输的稳定性和可靠性。  [0113] Optionally, the dynamic ring network management system divides the first bottom end data into multiple data packets according to performance parameters such as a maximum group number of monitoring quantities set in the XML protocol template, and a monitoring capacity of each group, and the first A bottom data packet is sent to the smart device. Thereby preventing data loss and improving the stability and reliability of data transmission.

[0114] 通讯处理模块 30接收到智能设备返回的第二底端数据后, 根据 XML协议模板中 的映射关系等参数将第二底端数据转换为第二 XML数据。 具体实施吋, 通讯处 理模块 30可以首先解析出第二底端数据中的原始数据, 然后将原始数据填充到 第一 XML数据中, 从而生成第二 XML数据, 并将第二 XML数据上报给接入服务 模块 10, 接入服务器模块再将第二 XML数据下发给协议转换模块 20。  [0114] After receiving the second bottom end data returned by the smart device, the communication processing module 30 converts the second bottom end data into the second XML data according to parameters such as a mapping relationship in the XML protocol template. Specifically, the communication processing module 30 may first parse the original data in the second bottom end data, and then fill the original data into the first XML data, thereby generating the second XML data, and reporting the second XML data to the data. In the service module 10, the access server module sends the second XML data to the protocol conversion module 20.

[0115] 参见图 5, 本发明实施例的数据采集装置进行数据采集的具体流程如下:  [0115] Referring to FIG. 5, the specific process of data collection by the data collection device in the embodiment of the present invention is as follows:

[0116] S21、 接入服务模块 10生成数据采集指令并下发给协议转换模块 20。 同吋, 接 入服务模块 10还获取预置的与接入的智能设备相匹配的 XML协议模板。  [0116] S21. The access service module 10 generates a data collection instruction and sends it to the protocol conversion module 20. At the same time, the access service module 10 also acquires a preset XML protocol template that matches the accessed smart device.

[0117] S22、 协议转换模块 20将包含数据采集指令的第一数据模型转换为第一 XML数 据并上报给接入服务模块 10。  [0117] S22. The protocol conversion module 20 converts the first data model including the data collection instruction into the first XML data and reports it to the access service module 10.

[0118] 协议转换模块 20接收接入服务模块 10下发的数据采集指令, 并将数据采集指令 填充到接入服务模块 10的数据模型中, 生成包含数据采集指令的第一数据模型 , 然后根据 XML协议模板中的映射关系等参数将第一数据模型转换为第一 XML 数据, 并将第一 XML数据上报给接入服务模块 10。  [0118] The protocol conversion module 20 receives the data collection instruction sent by the access service module 10, and fills the data collection instruction into the data model of the access service module 10, generates a first data model including the data collection instruction, and then The first data model is converted into the first XML data by the parameters of the mapping relationship in the XML protocol template, and the first XML data is reported to the access service module 10.

[0119] S23、 接入服务器模块将第一 XML数据下发给通讯处理模块 30。  [0119] S23. The access server module sends the first XML data to the communication processing module 30.

[0120] 接入服务模块 10接收到协议转换模块 20上报的第一 XML数据后, 立即将第一 X ML数据下发给通讯处理模块 30。  [0120] After receiving the first XML data reported by the protocol conversion module 20, the access service module 10 immediately sends the first X ML data to the communication processing module 30.

[0121] S24、 通讯处理模块 30将第一 XML数据转换为第一底端数据并发送给智能设备  [0121] S24. The communication processing module 30 converts the first XML data into the first bottom end data and sends the data to the smart device.

[0122] 通讯处理模块 30接收到接入服务模块 10下发的第一 XML数据后, 根据 XML协 议模板中的映射关系等参数将第一 XML数据转换为支持设备协议的第一底端数 据, 并将第一底端数据发送给智能设备, 该第一底端数据中包含了数据采集指 令, 以使智能设备根据该数据采集指令返回动环网管系统需要采集的原始数据 [0122] After receiving the first XML data sent by the access service module 10, the communication processing module 30 converts the first XML data into the first bottom end number of the support device protocol according to parameters such as a mapping relationship in the XML protocol template. And sending the first bottom end data to the smart device, where the first bottom end data includes a data collection instruction, so that the smart device returns the original data that needs to be collected by the dynamic ring network management system according to the data collection instruction.

[0123] S25、 通讯处理模块 30接收智能设备返回的包含原始数据的第二底端数据, 并 将第二底端数据转换为第二 XML数据后上报给接入服务模块 10。 [0123] S25. The communication processing module 30 receives the second bottom end data of the original data returned by the smart device, and converts the second bottom end data into the second XML data and reports the data to the access service module 10.

[0124] 通讯处理模块 30接收到智能设备返回的第二底端数据后, 根据 XML协议模板中 的映射关系等参数将第二底端数据转换为第二 XML数据, 并将第二 XML数据上 报给接入服务模块 10。 [0124] After receiving the second bottom end data returned by the smart device, the communication processing module 30 converts the second bottom end data into the second XML data according to the mapping relationship and the like in the XML protocol template, and reports the second XML data. The access service module 10 is provided.

[0125] S26、 接入服务模块 10接收第二 XML数据并下发给协议转换模块 20。 [0125] S26. The access service module 10 receives the second XML data and sends the data to the protocol conversion module 20.

[0126] 接入服务模块 10接收到通讯处理模块 30上报的第二 XML数据后, 立即将第二 X[0126] After receiving the second XML data reported by the communication processing module 30, the access service module 10 immediately performs the second X.

ML数据下发给协议转换模块 20。 The ML data is sent to the protocol conversion module 20.

[0127] S27、 协议转换模块 20将第二 XML数据转换为第二数据模型, 并将第二数据模 型中的原始数据上报给接入服务模块 10。 [0127] S27. The protocol conversion module 20 converts the second XML data into a second data model, and reports the original data in the second data model to the access service module 10.

[0128] 协议转换模块 20接收到接入服务模块 10下发的由通讯处理模块 30上报的第二 X[0128] The protocol conversion module 20 receives the second X that is sent by the access processing module 10 and is reported by the communication processing module 30.

ML数据后, 根据 XML协议模板中的映射关系等参数将第二 XML数据转换为第二 数据模型, 并解析出该第二数据模型中的原始数据, 并将原始数据上报给接入 服务模块 10。 After the ML data, the second XML data is converted into the second data model according to the mapping relationship in the XML protocol template, and the original data in the second data model is parsed, and the original data is reported to the access service module 10 .

[0129] S28、 接入服务模块 10接收原始数据并进行数据更新。  [0129] S28. The access service module 10 receives the original data and performs data update.

[0130] 接入服务模块 10接收到协议转换模块 20上报的原始数据后, 将该原始数据输入 数据系统中, 进行数据更新。  [0130] After receiving the original data reported by the protocol conversion module 20, the access service module 10 inputs the original data into the data system to perform data update.

[0131] S29、 接入服务模块 10进行数据处理。 [0131] S29. The access service module 10 performs data processing.

[0132] 可选地, 在其它实施例中, 接入服务模块 10也可以直接调用协议转换模块 20进 行数据模型与 XML数据的相互转换。  [0132] Optionally, in other embodiments, the access service module 10 may directly invoke the protocol conversion module 20 to perform mutual conversion between the data model and the XML data.

[0133] 进一步地, 如图 6所示, 在本发明的数据采集装置的第二实施例中, 还包括一 协议配置模块 40, 所述协议配置模块 40设置为: 获取智能设备的设备点表数据 , 将设备点表数据与数据模型的通道相关联, 生成 XML协议模板。 从而, 使得 X ML协议模板内的参数可自定义, 可以进一步实现通讯处理模块 30的部分通用, 也就是说并不需要每种智能设备的接入都需要幵发一个对应的通讯处理模块 30 [0134] 如图 7所示, 协议配置模块 40包括接收单元 41、 定义单元 42和映射单元 43, 其 中: [0133] Further, as shown in FIG. 6, in the second embodiment of the data collection device of the present invention, a protocol configuration module 40 is further included, and the protocol configuration module 40 is configured to: acquire a device point table of the smart device. Data, associating device point table data with the channel of the data model to generate an XML protocol template. Therefore, the parameters in the X ML protocol template can be customized, and the partial processing of the communication processing module 30 can be further implemented, that is, the communication processing module 30 is required to be transmitted by each of the smart devices. [0134] As shown in FIG. 7, the protocol configuration module 40 includes a receiving unit 41, a defining unit 42, and a mapping unit 43, wherein:

[0135] 接收单元 41 : 设置为接收维护人员输入的设备点表数据。 设备点表数据至少包 括设备协议, 还可以包括相关的公共参数。  [0135] The receiving unit 41: is configured to receive the device point table data input by the maintenance personnel. The device point table data includes at least the device protocol and may also include related public parameters.

[0136] 定义单元 42: 设置为定义数据模型中监控量的数据结构, 以及设备协议中监控 量的数据结构。 [0136] Definition unit 42: A data structure that is set to define the amount of monitoring in the data model, and a data structure of the monitoring amount in the device protocol.

[0137] 映射单元 43: 设置为建立数据模型中监控量的数据结构与设备协议中监控量的 数据结构的映射关系。  [0137] Mapping unit 43: is set to establish a mapping relationship between the data structure of the monitoring quantity in the data model and the data structure of the monitoring quantity in the device protocol.

[0138] 数据结构中包括多种属性, 在数据模型与设备协议中对应的属性之间建立一一 对应关系。 数据结构中的属性至少包括通道号、 通道名称和通道类型, 还可以 包括监控量名称、 监控量类型、 监控量所在组号、 监控量组内 ID、 值等。  [0138] The data structure includes multiple attributes, and a one-to-one correspondence is established between the data model and corresponding attributes in the device protocol. The attributes in the data structure include at least the channel number, channel name, and channel type. It can also include the monitoring quantity name, the monitoring type, the group number of the monitoring quantity, the ID and value of the monitoring quantity group, and so on.

[0139] 更进一步地, 协议配置模块 40还可以包括参数抽象单元 44, 所述参数抽象单元 44设置为: 抽象公共参数, 根据抽象后的公共参数配置数据处理的性能参数。  [0139] Further, the protocol configuration module 40 may further include a parameter abstraction unit 44, which is configured to: abstract common parameters, and configure performance parameters of the data processing according to the abstracted common parameters.

[0140] 性能参数是根据通讯响应速度、 通讯延吋相关要求等配置的通讯处理模块 30进 行数据处理所需的参数, 包括监控量的最大组数和监控量的每组容量。 抽象后 的公共参数还可以包括设备参数, 该设备参数包括设备编码、 设备网络地址等 , 以便后续根据设备编码识别智能设备。  [0140] The performance parameter is a parameter required for the data processing by the communication processing module 30 configured according to the communication response speed, the communication delay related requirement, and the like, and includes the maximum number of groups of the monitoring amount and the capacity of each group of the monitoring amount. The abstracted public parameters may also include device parameters including device code, device network address, etc., to subsequently identify the smart device based on the device code.

[0141] 进一步地, 当检测到智能设备接入吋, 接入服务模块 10还设置为: 控制通讯处 理模块 30建立与智能设备的通讯链路并维护该通讯链路。  [0141] Further, when the smart device access port is detected, the access service module 10 is further configured to: control the communication processing module 30 to establish a communication link with the smart device and maintain the communication link.

[0142] 接入服务模块 10通过总线扫描到智能设备接入吋, 调用通讯处理模块 30启动通 信连接, 与智能设备建立通讯链路。 通讯处理模块 30在通讯链路建立成功后, 监听连接状态, 维持心跳连接, 当连接断幵吋进行重连, 以保证通讯链路一直 处于连接状态。 从而提高了动环网管系统与智能设备连接的稳定性。  [0142] The access service module 10 scans to the smart device access port through the bus, invokes the communication processing module 30 to initiate a communication connection, and establishes a communication link with the smart device. After the communication link is successfully established, the communication processing module 30 monitors the connection state, maintains the heartbeat connection, and reconnects when the connection is broken, so as to ensure that the communication link is always connected. Thereby improving the stability of the connection between the dynamic ring network management system and the smart device.

[0143] 本发明实施例的数据采集装置, 通过预置 XML协议模板, 根据 XML协议模板 实现数据模型与 XML数据的相互转换以及 XML数据与底端数据的相互转换, 就 能实现数据采集指令从动环网管系统到智能设备传递以及原始数据从智能设备 到动环网管系统的动态传递, 实现了新增智能设备的动态接入, 无需为每个智 能设备分别编写采集库、 协议解析库和适配库, 减少重复幵发, 增强了系统的 兼容性和可扩展性。 当有新的智能设备接入吋, 只需少量的代码幵发工作配置 出新的 XML协议模板即可, 易于测试, 大大减小了幵发工作量, 降低了幵发成 本。 [0143] The data collection device of the embodiment of the present invention can realize the data collection instruction by presetting the XML protocol template, converting the data model and the XML data according to the XML protocol template, and converting the XML data and the bottom end data. The dynamic transmission of the dynamic ring network management system to the smart device and the dynamic transmission of the original data from the smart device to the dynamic ring network management system realizes the dynamic access of the newly added smart device, without having to The device can separately write the collection library, the protocol analysis library and the adaptation library, which reduces the repeated bursts and enhances the compatibility and scalability of the system. When there is a new smart device access, only a small amount of code bursting work can be configured to configure a new XML protocol template, which is easy to test, greatly reduces the bursting workload and reduces the cost of bursting.

[0144] 本发明实施例的数据采集装置, 可以对 XML协议模板进行灵活配置, 对接入的 智能设备的设备协议的格式没有要求, 不受智能设备的通讯方式、 协议内容的 约束, 灵活性高。  The data collection device of the embodiment of the present invention can flexibly configure the XML protocol template, and does not require the format of the device protocol of the accessed smart device, and is not restricted by the communication mode and protocol content of the smart device, and is flexible. high.

[0145] 本发明实施例的数据采集装置的通讯处理模块 30可以根据协议特点, 设计为部 分通用, 比如 XML协议模板中的参数 (Param) 定义相同的智能设备, 就可公用 一个通用的通讯处理模块 30。 从而可以减少重复幵发, 进一步降低幵发成本。  [0145] The communication processing module 30 of the data collection device of the embodiment of the present invention can be designed to be partially common according to the characteristics of the protocol. For example, the parameter (Param) in the XML protocol template defines the same smart device, and a common communication processing can be shared. Module 30. Thereby, it is possible to reduce repeated bursts and further reduce the cost of bursting.

[0146] 本发明实施例的数据采集方法和装置, 除了应用于动环网管系统外, 还可以应 用于其它的相关系统和设备, 本发明对此不作限定。  The data collection method and device of the embodiments of the present invention are applicable to other related systems and devices, and are not limited by the present invention.

[0147] 本发明同吋提出一种动环网管系统, 所述系统包括: 一个或多个处理器; 存储 器; 一个或多个应用程序, 其中所述一个或多个应用程序被存储在所述存储器 中并被配置为由所述一个或多个处理器执行, 所述一个或多个应用程序被配置 为用于执行数据采集方法。 所述数据采集方法包括以下步骤: 获取预置的与接 入的智能设备相匹配的 XML协议模板; 根据所述 XML协议模板将包含数据采集 指令的第一数据模型转换为第一 XML数据; 将所述第一 XML数据转换为支持设 备协议的第一底端数据并发送给所述智能设备, 接收所述智能设备返回的包含 所述智能设备的原始数据的第二底端数据, 并将所述第二底端数据转换为第二 X ML数据; 将所述第二 XML数据转换为第二数据模型, 获取所述第二数据模型中 的所述原始数据。 本实施例中所描述的数据采集方法为本发明中上述实施例所 涉及的数据采集方法, 在此不再赘述。  [0147] The present invention also provides a dynamic ring network management system, the system comprising: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the And being configured in the memory to be executed by the one or more processors, the one or more applications being configured to perform a data collection method. The data collection method includes the following steps: acquiring a preset XML protocol template matching the accessed smart device; converting the first data model including the data collection instruction into the first XML data according to the XML protocol template; Converting the first XML data to the first bottom end data of the support device protocol and sending the data to the smart device, and receiving the second bottom end data of the original data that is returned by the smart device and including the smart device, and Converting the second bottom end data into the second X ML data; converting the second XML data into the second data model to obtain the original data in the second data model. The data collection method described in this embodiment is the data collection method involved in the foregoing embodiment of the present invention, and details are not described herein again.

[0148] 通过以上的实施方式的描述, 本领域的技术人员可以清楚地了解到上述实施例 方法可借助软件加必需的通用硬件平台的方式来实现, 当然也可以通过硬件, 但很多情况下前者是更佳的实施方式。 基于这样的理解, 本发明的技术方案本 质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来, 该计 算机软件产品存储在一个存储介质 (如 ROM/RAM、 磁碟、 光盘) 中, 包括若干 指令用以使得一台终端设备 (可以是手机, 计算机, 服务器, 空调器, 或者网 络设备等) 执行本发明各个实施例所述的方法。 [0148] Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former It is a better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, In the CD), including several The instructions are for causing a terminal device (which may be a cell phone, computer, server, air conditioner, or network device, etc.) to perform the methods described in various embodiments of the present invention.

[0149] 应当理解的是, 以上仅为本发明的优选实施例, 不能因此限制本发明的专利范 围, 凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换, 或直 接或间接运用在其他相关的技术领域, 均同理包括在本发明的专利保护范围内 工业实用性  [0149] It is to be understood that the foregoing is only a preferred embodiment of the present invention, and is not intended to limit the scope of the invention, the equivalent structure or equivalent Indirect use in other related technical fields, including the industrial applicability within the scope of patent protection of the present invention.

[0150] 本发明实施例所提供的一种数据采集方法, 通过预置 XML协议模板, 根据 XM L协议模板实现数据模型与 XML数据的相互转换以及 XML数据与底端数据的相 互转换, 就能实现数据采集指令从动环网管系统到智能设备传递以及原始数据 从智能设备到动环网管系统的动态传递, 实现了新增智能设备的动态接入, 无 需为每个智能设备分别编写采集库、 协议解析库和适配库, 减少重复幵发, 增 强了系统的兼容性和可扩展性。 当有新的智能设备接入吋, 只需少量的代码幵 发工作配置出新的 XML协议模板即可, 易于测试, 大大减小了幵发工作量, 降 低了幵发成本。 因此, 具有工业实用性。  [0150] A data collection method provided by an embodiment of the present invention, by presetting an XML protocol template, converting a data model and an XML data according to an XM L protocol template, and converting the XML data and the bottom end data, Realize the dynamic transmission of the data acquisition command from the dynamic ring network management system to the intelligent device and the dynamic transmission of the original data from the intelligent device to the dynamic ring network management system, realizing the dynamic access of the newly added intelligent devices, without separately preparing the collection library for each intelligent device. The protocol parsing library and the adapting library reduce duplication and increase system compatibility and scalability. When there is a new smart device access, only a small amount of code is required to configure a new XML protocol template, which is easy to test, greatly reduces the bursting workload and reduces the cost of bursting. Therefore, it has industrial applicability.

Claims

权利要求书 Claim [权利要求 1] 一种数据采集方法, 包括以下步骤: [Claim 1] A data collection method comprising the following steps: 获取预置的与接入的智能设备相匹配的 XML协议模板;  Obtaining a preset XML protocol template that matches the accessed smart device; 根据所述 XML协议模板将包含数据采集指令的第一数据模型转换为 第一 XML数据;  Converting the first data model including the data collection instruction into the first XML data according to the XML protocol template; 将所述第一 XML数据转换为支持设备协议的第一底端数据并发送给 所述智能设备, 接收所述智能设备返回的包含所述智能设备的原始数 据的第二底端数据, 并将所述第二底端数据转换为第二 XML数据; 将所述第二 XML数据转换为第二数据模型, 获取所述第二数据模型 中的所述原始数据。  Converting the first XML data into the first bottom end data of the support device protocol and sending the data to the smart device, and receiving the second bottom end data of the original data that is returned by the smart device, and Converting the second bottom end data into second XML data; converting the second XML data into a second data model to obtain the original data in the second data model. [权利要求 2] 根据权利要求 1所述的数据采集方法, 其中, 所述获取预置的与接入 的智能设备相匹配的 XML协议模板的步骤之前还包括:  [Claim 2] The data collection method according to claim 1, wherein the step of acquiring the preset XML protocol template matching the accessed smart device further includes: 获取智能设备的设备点表数据, 将所述设备点表数据与数据模型相关 联, 生成 XML协议模板。  Obtaining device point table data of the smart device, associating the device point table data with the data model, and generating an XML protocol template. [权利要求 3] 根据权利要求 2所述的数据采集方法, 其中, 所述设备点表数据包括 设备协议, 所述将所述设备点表数据与数据模型相关联包括: 定义数据模型中监控量的数据结构以及所述设备协议中监控量的数据 结构;  [Claim 3] The data collection method according to claim 2, wherein the device point table data includes a device protocol, and the associating the device point table data with a data model comprises: defining a monitoring amount in a data model Data structure and data structure of the monitoring amount in the device protocol; 建立所述数据模型中监控量的数据结构与所述设备协议中监控量的数 据结构的映射关系。  Establishing a mapping relationship between the data structure of the monitoring quantity in the data model and the data structure of the monitoring quantity in the device protocol. [权利要求 4] 根据权利要求 2所述的数据采集方法, 其中, 所述设备点表数据还包 括公共参数, 所述定义数据模型中监控量的数据结构以及所述设备协 议中监控量的数据结构的步骤之前还包括:  [Claim 4] The data collection method according to claim 2, wherein the device point table data further includes a common parameter, the data structure of the monitoring quantity in the definition data model, and the monitoring quantity data in the device protocol The steps of the structure also include: 抽象所述公共参数, 根据抽象后的公共参数配置数据处理的性能参数  Abstracting the public parameters, configuring performance parameters of the data processing according to the abstracted public parameters [权利要求 5] 根据权利要求 1所述的数据采集方法, 其中, 所述 XML协议模板中包 括性能参数、 设备参数、 协议标记和映射关系。 [Claim 5] The data collection method according to claim 1, wherein the XML protocol template includes performance parameters, device parameters, protocol tags, and mapping relationships. [权利要求 6] 根据权利要求 5所述的数据采集方法, 其中, 所述性能参数包括监控 量的最大组数和监控量的每组容量。 [Claim 6] The data collection method according to claim 5, wherein the performance parameter includes monitoring The maximum number of groups and the amount of each group of monitored quantities. [权利要求 7] 根据权利要求 6所述的数据采集方法, 其中, 所述方法还包括: [Claim 7] The data collection method according to claim 6, wherein the method further includes: 根据所述最大组数和所述每组容量将所述第一底端数据分包发送给所 述智能设备。  The first bottom end data is packetized to the smart device according to the maximum number of groups and the capacity of each group. [权利要求 8] 根据权利要求 5所述的数据采集方法, 其中, 所述设备参数包括设备 编码和设备网络地址。  [Claim 8] The data collection method according to claim 5, wherein the device parameters include a device code and a device network address. [权利要求 9] 根据权利要求 5所述的数据采集方法, 其中, 所述映射关系为数据模 型与设备协议中的监控量的数据结构中各属性的对应关系。  [Claim 9] The data collection method according to claim 5, wherein the mapping relationship is a correspondence between a data model and each attribute in a data structure of a monitoring amount in a device protocol. [权利要求 10] 根据权利要求 9所述的数据采集方法, 其中, 所述属性包括通道号、 通道名称和通道类型。  [Claim 10] The data collection method according to claim 9, wherein the attribute includes a channel number, a channel name, and a channel type. [权利要求 11] 根据权利要求 10所述的数据采集方法, 其中, 所述属性还包括监控量 名称、 监控量类型、 监控量所在组号、 监控量组内 ID和值。  [Claim 11] The data collection method according to claim 10, wherein the attribute further includes a monitoring quantity name, a monitoring quantity type, a group number of the monitoring quantity, an ID and a value in the monitoring quantity group. [权利要求 12] 根据权利要求 1所述的数据采集方法, 其中, 所述 XML数据包括 XML 格式的扫描数据、 遥调数据和遥控数据。 [Claim 12] The data collection method according to claim 1, wherein the XML data includes scan data, remote adjustment data, and remote control data in an XML format. [权利要求 13] —种数据采集装置, 包括: [Claim 13] A data collection device, comprising: 接入服务模块, 设置为获取预置的与接入的智能设备相匹配的 XML 协议模板;  The access service module is configured to obtain a preset XML protocol template that matches the accessed smart device; 协议转换模块, 设置为根据所述 XML协议模板将包含数据采集指令 的第一数据模型转换为第一 XML数据;  a protocol conversion module, configured to convert the first data model including the data collection instruction into the first XML data according to the XML protocol template; 通讯处理模块, 设置为将所述第一 XML数据转换为支持设备协议的 第一底端数据并发送给所述智能设备, 接收所述智能设备返回的包含 所述智能设备的原始数据的第二底端数据, 并将所述第二底端数据转 换为第二 XML数据;  a communication processing module, configured to convert the first XML data into first bottom end data of a support device protocol and send the data to the smart device, and receive a second data that is returned by the smart device and includes original data of the smart device Bottom data, and converting the second bottom data into second XML data; 所述协议转换模块还设置为: 将所述第二 XML数据转换为第二数据 模型, 获取所述第二数据模型中的所述原始数据。  The protocol conversion module is further configured to: convert the second XML data into a second data model, and obtain the original data in the second data model. [权利要求 14] 根据权利要求 13所述的数据采集装置, 其中, 所述装置还包括协议配 置模块, 所述协议配置模块设置为: 获取智能设备的设备点表数据, 将所述设备点表数据与数据模型相关联, 生成 XML协议模板。 根据权利要求 14所述的数据采集装置, 其中, 所述设备点表数据包括 设备协议, 所述协议配置模块包括: The data collection device according to claim 13, wherein the device further includes a protocol configuration module, where the protocol configuration module is configured to: acquire device point table data of the smart device, and set the device point table The data is associated with the data model to generate an XML protocol template. The data collection device according to claim 14, wherein the device point table data comprises a device protocol, and the protocol configuration module comprises: 定义单元, 设置为定义数据模型中监控量的数据结构以及所述设备协 议中监控量的数据结构; a definition unit, configured to define a data structure of the monitoring amount in the data model and a data structure of the monitoring amount in the device protocol; 映射单元, 设置为建立所述数据模型中监控量的数据结构与所述设备 协议中监控量的数据结构的映射关系。 The mapping unit is configured to establish a mapping relationship between the data structure of the monitoring quantity in the data model and the data structure of the monitoring quantity in the device protocol. 根据权利要求 15所述的数据采集装置, 其中, 所述设备点表数据还包 括公共参数, 所述协议配置模块还包括参数抽象单元, 所述参数抽象 单元设置为: The data collection device according to claim 15, wherein the device point table data further includes a common parameter, the protocol configuration module further includes a parameter abstraction unit, and the parameter abstraction unit is configured to: 抽象所述公共参数, 根据抽象后的公共参数配置所述通讯处理模块进 行数据处理的性能参数。 Abstracting the common parameter, configuring performance parameters of the data processing module by the communication processing module according to the abstracted public parameter. 根据权利要求 13所述的数据采集装置, 其中, 所述 XML协议模板中 包括性能参数、 设备参数、 协议标记和映射关系。 The data collection device according to claim 13, wherein the XML protocol template includes performance parameters, device parameters, protocol tags, and mapping relationships. 根据权利要求 17所述的数据采集装置, 其中, 所述性能参数包括监控 量的最大组数和监控量的每组容量。 The data collection device according to claim 17, wherein said performance parameter includes a maximum number of groups of monitoring amounts and a capacity of each group of monitoring amounts. 根据权利要求 18所述的数据采集装置, 其中, 所述通讯处理模块设置 为: 根据所述最大组数和所述每组容量将所述第一底端数据分包发送 给所述智能设备。 The data collection device according to claim 18, wherein the communication processing module is configured to: send the first bottom end data packet to the smart device according to the maximum number of groups and the each group of capacity. 根据权利要求 17所述的数据采集装置, 其中, 所述设备参数包括设备 编码和设备网络地址。 The data collection device according to claim 17, wherein the device parameters include a device code and a device network address. 根据权利要求 17所述的数据采集装置, 其中, 所述映射关系为数据模 型与设备协议中的监控量的数据结构中各属性的对应关系。 The data collection device according to claim 17, wherein the mapping relationship is a correspondence between each of the attributes in the data structure of the data model and the monitoring amount in the device protocol. 根据权利要求 21所述的数据采集装置, 其中, 所述属性包括通道号、 通道名称和通道类型。 The data collection device according to claim 21, wherein said attribute comprises a channel number, a channel name, and a channel type. 根据权利要求 22所述的数据采集装置, 其中, 所述属性还包括监控量 名称、 监控量类型、 监控量所在组号、 监控量组内 ID和值。 The data collection device according to claim 22, wherein the attribute further includes a monitoring quantity name, a monitoring quantity type, a monitoring quantity group number, a monitoring quantity group ID and a value. 根据权利要求 13所述的数据采集装置, 其中, 所述 XML数据包括 XM L格式的扫描数据、 遥调数据和遥控数据。 [权利要求 25] —种动环网管系统, 包括: The data collection device according to claim 13, wherein the XML data includes scan data, remote adjustment data, and remote control data in an XM L format. [Claim 25] - A dynamic ring network management system, comprising: 一个或多个处理器;  One or more processors; 存储器;  Memory 一个或多个应用程序, 其中所述一个或多个应用程序被存储在所述存 储器中并被配置为由所述一个或多个处理器执行, 所述一个或多个应 用程序被配置为用于执行权利要求 1至 12任一项所述的数据采集方法  One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications being configured to use Method for performing data collection according to any one of claims 1 to 12
PCT/CN2017/078497 2017-03-29 2017-03-29 Data collection method, device, and dynamic environment network management system WO2018176244A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/078497 WO2018176244A1 (en) 2017-03-29 2017-03-29 Data collection method, device, and dynamic environment network management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/078497 WO2018176244A1 (en) 2017-03-29 2017-03-29 Data collection method, device, and dynamic environment network management system

Publications (1)

Publication Number Publication Date
WO2018176244A1 true WO2018176244A1 (en) 2018-10-04

Family

ID=63673855

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/078497 WO2018176244A1 (en) 2017-03-29 2017-03-29 Data collection method, device, and dynamic environment network management system

Country Status (1)

Country Link
WO (1) WO2018176244A1 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112054955A (en) * 2020-08-21 2020-12-08 深圳金智凌轩视讯技术有限公司 Equipment communication method based on gateway
CN112669956A (en) * 2020-12-30 2021-04-16 上海电气集团股份有限公司 Method and equipment for collecting medical instrument data
CN112985491A (en) * 2019-12-13 2021-06-18 南京品尼科自动化有限公司 Power environment monitoring all-in-one machine
CN112994244A (en) * 2020-03-30 2021-06-18 深圳友讯达科技股份有限公司 Dynamic configuration method for plug and play TTU
CN113824587A (en) * 2021-09-13 2021-12-21 中信科移动通信技术股份有限公司 Multi-communication protocol equipment management method and system
CN114363313A (en) * 2020-09-27 2022-04-15 中兴通讯股份有限公司 Device control method, server, and storage medium
CN115242894A (en) * 2022-06-08 2022-10-25 三一智矿科技有限公司 Data processing method, data processing device, storage medium and computer equipment
CN115277794A (en) * 2022-09-27 2022-11-01 北京亚康万玮信息技术股份有限公司 Intelligent data acquisition method and system based on multiple protocols
CN116055557A (en) * 2022-12-29 2023-05-02 北京四方继保工程技术有限公司 Proxy communication method, system and device for data of power transmission and transformation Internet of things
CN117319517A (en) * 2023-11-27 2023-12-29 佛山市灏飞科技信息技术有限公司 Multi-protocol-based water supply equipment data integration and forwarding method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201118620Y (en) * 2007-08-15 2008-09-17 扬州贝尔斯通科技有限公司 A wireless sensor network gateway for ship
CN105187771A (en) * 2015-07-31 2015-12-23 山东创德软件技术有限公司 Plant-level comprehensive supervision platform
CN106341393A (en) * 2016-08-18 2017-01-18 广州市迪士普音响科技有限公司 Method and system for making modules of wisdom platform compatible

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201118620Y (en) * 2007-08-15 2008-09-17 扬州贝尔斯通科技有限公司 A wireless sensor network gateway for ship
CN105187771A (en) * 2015-07-31 2015-12-23 山东创德软件技术有限公司 Plant-level comprehensive supervision platform
CN106341393A (en) * 2016-08-18 2017-01-18 广州市迪士普音响科技有限公司 Method and system for making modules of wisdom platform compatible

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112985491A (en) * 2019-12-13 2021-06-18 南京品尼科自动化有限公司 Power environment monitoring all-in-one machine
CN112994244A (en) * 2020-03-30 2021-06-18 深圳友讯达科技股份有限公司 Dynamic configuration method for plug and play TTU
CN112994244B (en) * 2020-03-30 2024-05-17 深圳友讯达科技股份有限公司 Dynamic configuration method of plug-and-play TTU
CN112054955A (en) * 2020-08-21 2020-12-08 深圳金智凌轩视讯技术有限公司 Equipment communication method based on gateway
CN114363313A (en) * 2020-09-27 2022-04-15 中兴通讯股份有限公司 Device control method, server, and storage medium
CN112669956A (en) * 2020-12-30 2021-04-16 上海电气集团股份有限公司 Method and equipment for collecting medical instrument data
CN113824587B (en) * 2021-09-13 2023-08-29 中信科移动通信技术股份有限公司 Multi-communication protocol equipment management method and system
CN113824587A (en) * 2021-09-13 2021-12-21 中信科移动通信技术股份有限公司 Multi-communication protocol equipment management method and system
CN115242894A (en) * 2022-06-08 2022-10-25 三一智矿科技有限公司 Data processing method, data processing device, storage medium and computer equipment
CN115242894B (en) * 2022-06-08 2023-11-17 三一智矿科技有限公司 Data processing method, device, storage medium and computer equipment
CN115277794B (en) * 2022-09-27 2023-01-17 北京亚康万玮信息技术股份有限公司 Intelligent data acquisition method and system based on multiple protocols
CN115277794A (en) * 2022-09-27 2022-11-01 北京亚康万玮信息技术股份有限公司 Intelligent data acquisition method and system based on multiple protocols
CN116055557A (en) * 2022-12-29 2023-05-02 北京四方继保工程技术有限公司 Proxy communication method, system and device for data of power transmission and transformation Internet of things
CN117319517A (en) * 2023-11-27 2023-12-29 佛山市灏飞科技信息技术有限公司 Multi-protocol-based water supply equipment data integration and forwarding method
CN117319517B (en) * 2023-11-27 2024-02-20 佛山市灏飞科技信息技术有限公司 Multi-protocol-based water supply equipment data integration and forwarding method

Similar Documents

Publication Publication Date Title
WO2018176244A1 (en) Data collection method, device, and dynamic environment network management system
CN108667807B (en) A protocol adaptive method and system based on monitoring cloud platform and gateway
CN108173874B (en) An intelligent device management method, platform, system, medium and device
US11929873B1 (en) OPC UA-based centralized user configuration method and system for time-sensitive network
CN104010039B (en) Multi-radar remote monitoring system and method based on WebSocket
WO2013091382A1 (en) Method and system for realizing compatibility of electrical appliance, and universal peripheral access gateway
WO2022179140A1 (en) Data processing method and system
CN109788004B (en) Analysis method and system for automatically adapting national standard custom protocol of new energy automobile
CN103905333A (en) Internet of things multi-protocol access transform device and control method thereof
CN105739317A (en) Intelligent household control method, device and system
CN104883266A (en) Network configuration accessing method and device thereof
WO2008003257A1 (en) Method, system and device of converting information in transaction managing interface
CN114554618B (en) Wireless access point device, equipment access method, equipment and storage medium
CN112187922A (en) Intelligent Internet of things shutdown machine based on MQTT communication protocol
CN111526052A (en) Network element instruction management method, device, network device and storage medium
CN103117881A (en) Resource management system of Internet of Things
CN110058900B (en) Data transmission service system based on pluggable component framework
EP2521307A1 (en) Device management method, system and device
CN103197664B (en) Embedded type controller parameter calibration system and method based on common object request breaker architecture (CORBA)
KR20160103110A (en) Network element data access method and apparatus, and network management system
CN114722099A (en) Method and equipment for transmitting and storing working condition data of engineering machinery
CN114095584A (en) Model conversion and construction method of industrial equipment data and readable storage medium
CN114040018A (en) Data receiving and transmitting method and device based on JSON data format
JP2009265718A (en) Network device transmitting only difference data of network management information, server, program and method
CN112559472A (en) File transmission method and device, computer equipment and storage medium

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: 17904105

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: 17904105

Country of ref document: EP

Kind code of ref document: A1

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载