CN104917768A - Energy consumption data acquisition unit based on multi-protocol parallel acquisition technology and acquisition method thereof - Google Patents

Energy consumption data acquisition unit based on multi-protocol parallel acquisition technology and acquisition method thereof Download PDF

Info

Publication number
CN104917768A
CN104917768A CN201510320252.7A CN201510320252A CN104917768A CN 104917768 A CN104917768 A CN 104917768A CN 201510320252 A CN201510320252 A CN 201510320252A CN 104917768 A CN104917768 A CN 104917768A
Authority
CN
China
Prior art keywords
data
acquisition
interface
energy consumption
data acquisition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510320252.7A
Other languages
Chinese (zh)
Inventor
徐珍玉
赵秀霞
陶竹海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ANHUI LONGCOM INTERNET OF THINGS Co Ltd
Original Assignee
ANHUI LONGCOM INTERNET OF THINGS Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ANHUI LONGCOM INTERNET OF THINGS Co Ltd filed Critical ANHUI LONGCOM INTERNET OF THINGS Co Ltd
Priority to CN201510320252.7A priority Critical patent/CN104917768A/en
Publication of CN104917768A publication Critical patent/CN104917768A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/14Multichannel or multilink protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Landscapes

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

Abstract

The invention discloses an energy consumption data acquisition unit based on a multi-protocol parallel acquisition technology and an acquisition method thereof. An acquisition module of the energy consumption data acquisition unit comprises a data acquisition unit, a data processing unit, a data real-time value buffer unit, a data storage unit and a data uploading unit, wherein the data acquisition unit comprises acquisition interfaces of several different protocols and is used for loading a corresponding protocol library according to a configuration file, initializing according to an initialization function in the protocol library and carrying out data acquisition through combining a universal method and a specific method; the data processing unit is connected to the data acquisition unit for receiving and processing the data acquired by the data acquisition unit; the data uploading unit is connected to the data real-time value buffer unit and the data storage unit for arranging an IP (Internet Protocol) address and a port of an energy consumption management center, initializing according to the preset initialization function, establishing a connection with the energy consumption management center and continuously transmitting the history data or uploading the real-time data.

Description

Based on energy consumption data acquisition device and the acquisition method thereof of multi-protocols parallel acquisition technique
Technical field
The present invention relates to data collecting field, particularly a kind of energy consumption data acquisition device based on multi-protocols parallel acquisition technique and acquisition method thereof.
Background technology
Heat up at global energy-saving and emission-reduction operation duration, under energy-saving and emission-reduction importance continues the background promoted, energy-conserving and environment-protective industry has emerged all kinds of power-saving technology.Realize energy-saving and emission-reduction, the statistics of energy resource consumption present situation, analysis, carry out energy information work, carrying out with monitoring to current big power consumer is important element task.
Current, energy consumption measurement instrument mainly comprises the instrument such as electric energy meter, calorimeter, water meter, gas meter.The task of energy consumption monitoring is by the data of these energy consumption measurement instrument by means of communication, and concentrated collection also gathers to managing power consumption center, then is undertaken analyzing and optimizing by the software at managing power consumption center.Usually, the communication interface of electric energy meter adopts based on the MODBUS rtu protocol of RS485 or DL/T645-1997, DL/T645-2007 agreement; Calorimeter, water meter, gas meter adopt CJ/T188-2004 agreement.In addition, because managing power consumption center is often divided into enterprise-level, City-level, the many levels such as provincial, national from aspect, energy consumption data needs the administrative center uploading to different aspects.
In industry, the data acquisition unit provided by manufacturers often only supports a kind of standard agreement or himself self-defining communication protocol, cannot gather the instrument of the third Protocol.This cannot use the collector of each manufacturers to gather energy consumption data with regard to causing.From connection and the reliability at collector and managing power consumption center, existing collector often only supports a managing power consumption center, often can only accomplish that the energy consumption data of enterprise-level is concentrated.Meanwhile, in collector and managing power consumption in the heart communication disruption, during there will be communication disruption energy consumption data lose situation.
Summary of the invention
The present invention is directed to prior art above shortcomings, provide a kind of energy consumption data acquisition device based on multi-protocols parallel acquisition technique, the energy-consumption meter meeting standard agreement can be gathered, and provide the process such as unit conversion, warning of gathered energy consumption data, and by the data upload after process to multiple energy consumption data center.This collector can store history energy consumption data, guarantees that the energy consumption data during collector and energy consumption data center communicating interrupt is not lost.This collector is built-in Web page configuration interface also, can is conveniently configured acquisition parameter by Web and adjust.
The present invention is achieved through the following technical solutions:
Based on an energy consumption data acquisition device for multi-protocols parallel acquisition technique, it is characterized in that, comprising:
Acquisition module, in order to data acquisition and processing (DAP);
Configuration module, in order to configuration based on the configuration interface of the access network of the energy consumption data acquisition device of multi-protocols parallel acquisition technique and generating configuration file; And,
Diagnostic module, periodically sends heartbeat notification to acquisition module and configuration module, and receives response, in order to monitor whether acquisition module and configuration module normally run;
Wherein, acquisition module comprises: data acquisition unit, data processing unit, data instantaneous value buffer cell, data storage cell and data upload unit;
Data acquisition unit comprises the acquisition interface of some different agreements, loads corresponding protocol library, and carries out initialization according to the initialization function in protocol library, carry out data acquisition in conjunction with general with special method according to configuration file;
Data processing unit connection data collecting unit, receive the data that data acquisition unit acquires arrives, row relax of going forward side by side, in order to reduce the processing pressure at managing power consumption center;
Data instantaneous value buffer cell connection data processing unit, in order to cushion the data after process;
Data storage cell connection data instantaneous value buffer cell, in order to store data;
Data upload unit connection data instantaneous value buffer cell and data storage cell, IP address and the port at managing power consumption center are set, and carry out initialization according to the initialization function preset, set up the connection with managing power consumption center, resume historical data or upload real time data.
Preferably, configuration interface comprises configuration software configuration interface and Web page configuration interface;
Web page configuration interface is in order to configure based on the network interface IP address of the energy consumption data acquisition device of multi-protocols parallel acquisition technique, the IP address at managing power consumption center and port, to encode based on the building of the energy consumption data acquisition device of multi-protocols parallel acquisition technique;
Configuration software configuration interface in order to configure attribute, the agreement of acquisition interface, and adds instrument node in acquisition interface, and the attribute of configuration instrument, then adds acquisition node on instrument node, and the attribute of configuration acquisition node, with generating configuration file.
Preferably, acquisition module also comprises some RS485 interfaces, some RJ45 interfaces, wave point, in order to transfer of data.
Preferably, data acquisition unit adopts multithreading, and the acquisition interface of some different agreements creates an independently collecting thread respectively.
Preferably, data storage cell adopt multifile dispersion history data store, with hour for interval generation history data file, be stored in corresponding folder by date structure.
The present invention separately provides a kind of energy consumption data acquisition method based on multi-protocols parallel acquisition technique, the energy-consumption meter meeting standard agreement can be gathered, and the process such as unit conversion, warning to gathered energy consumption data, and by the data upload after process to multiple energy consumption data center.
Based on an energy consumption data acquisition method for multi-protocols parallel acquisition technique, provide the above-mentioned energy consumption data acquisition device based on multi-protocols parallel acquisition technique, and execution comprises the following steps:
S1, initialization is carried out to each acquisition interface;
S2, the protocol library corresponding to each acquisition interface loading according to configuration file;
S3, according to the initialization function in protocol library, initialization is carried out to the instrument in acquisition interface and collection point;
S4, carry out data acquisition in conjunction with general with special method;
S5, the data collected to be processed, to reduce the processing pressure at managing power consumption center;
S6, by process after data be stored into data storage cell;
S7, initialization is carried out to managing power consumption center, its IP address and port is set;
S8, according to the initialization function in protocol library, initialization is carried out to the key at managing power consumption center, building coding;
S9, to connect and certification with managing power consumption center;
S10, basis broken string situation before, resume historical data and upload real time data;
Wherein, described S1 and S7 starts simultaneously, asynchronous execution.
Preferably, each acquisition interface comprises the RS485 interface being configured with MODUBS RTU or DL/T645-2007 acquisition protocols.
Preferably, the data acquisition flow of RS485 interface comprises:
S11, serial ports attribute is set according to the baud rate in configuration file, parity information, then from protocol library, selects corresponding protocol library to load according to the acquisition protocols name of this RS485 interface in configuration file;
S12, utilize the initialization function of this protocol library that the device address of lower extension instrument, the register address, collection period etc. of each collection point are set, form one and gather queue, just start formal collection circulation afterwards.
Preferably, step S12 comprises:
Take out the next target needing to gather from gathering queue at every turn, the good data query frame of group bag group of functions of protocol library is used to send from RS485 interface, then the Frame awaited a response in time-out time also uses the verification function of protocol library to verify it, utilize the analytical function of protocol library to carry out resolving the numerical value obtaining each collection point when verification succeeds, then judge whether further to exceed number of retries when taking defeat or verify failure, if when will not exceed expired times, retry sends data query frame, if exceeded number of retries, the Quality Codes then utilizing the analytical function of protocol library to carry out collection point upgrades, after being parsed, this collection target is turned back to again the correct position of queue, then the next collection gathering target is started.
Accompanying drawing explanation
Shown in Fig. 1 is structural representation of the present invention;
Shown in Fig. 2 is the structural representation of acquisition module of the present invention;
Shown in Fig. 3 is the structural representation of data acquisition unit of the present invention;
Shown in Fig. 4 is the workflow diagram of the present invention one acquisition interface;
Shown in Fig. 5 is the workflow diagram of data upload unit of the present invention;
Shown in Fig. 6 is the workflow diagram of building energy consumption directive/guide of the present invention.
Embodiment
Below with reference to accompanying drawing of the present invention; clear, complete description and discussion are carried out to the technical scheme in the embodiment of the present invention; obviously; as described herein is only a part of example of the present invention; it is not whole examples; based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under the prerequisite not making creative work, all belongs to protection scope of the present invention.
For the ease of the understanding to the embodiment of the present invention, be further explained for specific embodiment below in conjunction with accompanying drawing, and each embodiment does not form the restriction to the embodiment of the present invention.
As shown in Figure 1, the whole energy consumption data acquisition device based on multi-protocols parallel acquisition technique by: acquisition module 1, configuration module 2, diagnostic module 3 are formed.
As shown in Figure 2, acquisition module 1 is subdivided into data acquisition unit 11, data processing unit 12, data instantaneous value buffer cell 13, data storage cell 14 and data upload unit 15, and it is the core cell of whole collector.
Data instantaneous value buffer cell 13 is the panel region being used for preserving all collection points real time data (comprising Real-time Collection value, acquisition time stamp, Quality Codes etc.) of opening up in internal memory; the interface of providing convenience is for other unit amendment (being generally data processing unit 12) and read (being generally data storage cell 14 and data upload unit 15); use protection lock mechanism in the interface, ensure that data security during multithreading operation.
Data acquisition unit 11 utilizes multithreading, each acquisition interface create respectively one independently collecting thread be responsible for the collecting work of this interface, conveniently realize the concurrent collection of each interface with this, improve collecting efficiency; In addition data acquisition unit 11 also utilizes the technology of dynamic link library, according to the feature of each acquisition interface, general flow process, method are extract and be integrated among main program, flow process special for different acquisition agreement, method is independent, be packaged in different protocol code storehouses respectively, facilitate with this and improve the extensibility of data acquisition unit 11.
The workflow of data acquisition unit 11 as shown in Figure 3, each interface is when gatherer process starts, first general initialization is carried out to this interface, as the baud rate of RS485 interface, the frequency ranges of wave point etc. (are some general methods: the method namely do not changed with protocol changes here, except initialized example here, also comprise, interface is to the transmission of data and reception etc.), then from protocol code storehouse (being later called for short protocol library), corresponding protocol library is selected to load according to the acquisition protocols name of interface configuration each in configuration file, then the initialization function in protocol library is used to carry out initialization to the instrument on this interface and collection point, the address of following extension instrument, the collection period of collection point etc. (are some special methods: the processing method that namely different agreement is different here, except initialized example here, also comprise, the verification of each agreement different pieces of information frame, resolve), finally in conjunction with general with special flow process, method realizes gatherer process, in the present invention, general in special flow process, method is all adopt existing method, therefore, the present invention does not repeat at this.
Below to be configured with the RS485 interface of MODUBS RTU acquisition protocols, illustrate the workflow of data acquisition unit 11:
As shown in Figure 4, the main capture program of this RS485 interface is first according to the baud rate in configuration file, the information such as parity check arrange serial ports attribute, from protocol library, corresponding protocol library is selected to load according to the acquisition protocols name (MODBUSRTU) of this interface in configuration file again, then utilize the initialization function of this protocol library that the device address of lower extension instrument is set, the register address of each collection point, collection period etc., form one and gather queue, just start formal collection circulation afterwards: take out the next target (set of collection point) needing to gather from gathering queue at every turn, the good data query frame of group bag group of functions of protocol library is used to send from RS485 interface, then the Frame awaited a response in time-out time also uses the verification function of protocol library to verify it, utilize the analytical function of protocol library to carry out resolving the numerical value obtaining each collection point when verification succeeds, then judge whether further to exceed number of retries when taking defeat or verify failure, if when will not exceed expired times, retry sends data query frame, if exceeded number of retries, the Quality Codes then utilizing the analytical function of protocol library to carry out collection point upgrades, after being parsed, this collection target can be turned back to again the correct position of queue, then the next collection gathering target is started.
The data that data processing unit 12 can obtain data acquisition unit 11 are processed further and process, and comprise data reduction, data variation warning etc., the expression formula of process is supported parenthesizedly to add, subtract, multiplication and division, with or etc. computing.By data processing unit, the pressure of server data process can be reduced significantly, obtain desired data etc. more timely, thus expand the range of application of collector.As, at collector layer, electricity can be multiplied by unit price and be scaled expense, server can directly be added up; Also at collector layer, all submeter data (electricity, flow etc.) can be carried out System, reduce calculating pressure when server gathers data; Also can identify abnormal data announcement server in time at once when data acquisition, realize signalling trouble etc. faster.
Data storage cell 13 is responsible to be stored in storage medium (can be CF card, SD card, TF card, nandflash etc.) in the specific format by the data after process.1G memory capacity, can ensure that more than 1 month historical data is preserved with the memory gap of 60 seconds in 2000 collection points.Energy consumption data acquisition device adopts multifile dispersion history data store, with 1 hour for interval generates history data file, exist in corresponding file by date structure, facilitate index and compression, in addition, when breaking down in storage medium local, only the history file at place, fault point is destroyed, fault incidence is limited in local, ensures that other historical datas still can use.If not high to storage capacity requirement, also can adopt redundancy preservation mechanism (or hardware group raid1 or software preserve many parts etc.), improve the fail safe of data further.In addition data storage cell is also responsible for the broken string information recording each managing power consumption center, for resuming of historical data provides record.
Data upload unit 14 is responsible for energy consumption data to report to managing power consumption center.Identical with data acquisition unit 11, energy consumption data acquisition device utilizes multithreading to realize multicenter and concurrently to upload (user can also this set up multipotency consumption administrative center to realize redundancy), the convenient expansion utilizing dynamic link library technology to realize uploading protocol (can be supported " government offices' office building and large public building energy-consumption monitoring system subitem energy consumption data transmission technology directive/guide " (hereinafter referred to as building energy consumption directive/guide), " regenerative resource Application in Building demonstrative project data monitoring system fire protection technology ", ModbusTcp, EnergyWise etc.), as shown in Figure 5, first the data upload unit 14 at each center carries out general initialization to this center, as the phase IP of server, port etc., and then select to load protocol code storehouse according to protocol name, to this service, it carries out protocol initializing in recycling protocol code storehouse, as key, upload the cycle etc., finally start to carry out data upload with this managing power consumption center.
The simple communication flow illustrating collector and managing power consumption center for the managing power consumption center being configured with building energy consumption directive/guide below:
As Fig. 5, shown in Fig. 6, first the data upload unit 14 at each center carries out general initialization to this center, IP is set, port etc., then protocol code storehouse corresponding to building energy consumption directive/guide is loaded according to protocol name, next the key at this center of initialization function initialization of protocol library is utilized, building coding waits other information, then start to connect and certification with server, when connection establishment and after authentication success, according to broken string situation before, resume historical data and upload real time data and prepare other instructions at reception server center, when needs exit time, end data uploading operation.Here can start with the data acquisition unit shown in Fig. 3, asynchronous execution simultaneously.
Configuration module 2 is interactive interfaces of collector and user, is divided into configuration software configuration interface and Web page configuration interface.WEB configure the page can arrange the network interface IP address of collector, the IP address at managing power consumption center and port, amendment collector building coding etc. provide configuration interface for collector access network; In configuration software client, collector represents with arborescence form, each acquisition interface is configurable, user first can revise the attribute (baud rate etc.), acquisition protocols etc. of acquisition interface, then on each interface, instrument node is added, the attribute (meter address etc.) of configuration instrument, then on instrument node, collection point is added, the attribute (register address, data item, collection period, conversion expression formula etc.) of configuration collection point, last generating configuration file downloads to collector, and the configuration file that such collector just can be new carries out collecting work.
Whether diagnostic module 3 charge of overseeing acquisition module 1, configuration module 2 normally run, when it breaks down, and record trouble information, and restart trouble unit, thus improve the availability of whole collector.Its operation principle is periodically send heartbeat notification to other unit, and await a response, other unit must add that heartbeat is responded in duty cycle in link (the 6th step as in Fig. 4, in Fig. 6), other unit are once break down like this, diagnosis unit just cannot receive heartbeat at the appointed time and respond, thus judge whether other unit normally run, when breaking down, record trouble time of origin, generating unit, and restart trouble unit, improve the recovery capability gathered, ensure normally to run.
On the basis of above-described embodiment, the present invention separately provides a kind of energy consumption data acquisition method based on multi-protocols parallel acquisition technique, comprises the following steps:
S1, initialization is carried out to each acquisition interface;
S2, the protocol library corresponding to each acquisition interface loading according to configuration file;
S3, according to the initialization function in protocol library, initialization is carried out to the instrument in acquisition interface and collection point;
S4, carry out data acquisition in conjunction with general with special method;
S5, the data collected to be processed, to reduce the processing pressure at managing power consumption center;
S6, by process after data be stored into data storage cell;
S7, initialization is carried out to managing power consumption center, its IP address and port is set;
S8, according to the initialization function in protocol library, initialization is carried out to the key at managing power consumption center, building coding;
S9, to connect and certification with managing power consumption center;
S10, basis broken string situation before, resume historical data and upload real time data;
Wherein, described S1 and S7 starts simultaneously, asynchronous execution.
Energy consumption data acquisition device hardware based on multi-protocols parallel acquisition technique adopts ARM9 processor, 1GB CF card memory, 64MB SDRAM, and provides 4 RS485 interfaces, 1 road Ethernet RJ45 mouth, 1 road GPRS wave point.This hardware foundation as required, can expand other interfaces, as increased more RS485 interfaces, adding RS232 interface, adding wireless acquisition interface etc., to increase the ability of data acquisition, improve the scope of application of energy consumption collector; Also can increase multichannel RJ45 mouth, by arranging concrete routing table, realizing redundancy backup or improving transmission rate; Except GPRS wave point, the CDMA2000 wave point of telecommunications, the WCDMA interface of UNICOM, the TD-SCDMA interface etc. of movement also can be provided, facilitate the transfer of data of energy consumption data acquisition device from far-off regions; Except providing CF card storage medium, the multi storages such as TF card, SD card, USB flash disk, nandflash also can be used.
The present invention, compared to prior art, it is advantageous that:
1, the instrument of different communications protocol can be mounted under different configuration with a serial ports;
2, gather and in uploading unit universal method and specific method independent, can conveniently expand;
3, image data has preliminary treatment ability, can reduce server calculating pressure;
4, the multiple standards communication protocols such as DL/T645-1997, DL/T645-2007, MODBUS-RTU, CJ/T188 are supported;
5, multipotency consumption administrative center (at least 5) is supported, the data upload of many uploading protocols;
6, during supporting historgraphic data recording and communication disruption, history energy consumption data is uploaded.
The above; be only the present invention's preferably embodiment, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (9)

1. based on an energy consumption data acquisition device for multi-protocols parallel acquisition technique, it is characterized in that, comprising:
Acquisition module, in order to data acquisition and processing (DAP);
Configuration module, in order to configure the described configuration interface based on the access network of the energy consumption data acquisition device of multi-protocols parallel acquisition technique and generating configuration file; And,
Diagnostic module, periodically sends heartbeat notification to described acquisition module and described configuration module, and receives response, in order to monitor whether described acquisition module and described configuration module normally run;
Wherein, described acquisition module comprises: data acquisition unit, data processing unit, data instantaneous value buffer cell, data storage cell and data upload unit;
Described data acquisition unit comprises the acquisition interface of some different agreements, loads corresponding protocol library, and carries out initialization according to the initialization function in protocol library, carry out data acquisition in conjunction with general with special flow process and method according to described configuration file;
Described data processing unit connects described data acquisition unit, receives the data that described data acquisition unit acquires arrives, row relax of going forward side by side, in order to reduce the processing pressure at managing power consumption center;
Described data instantaneous value buffer cell connects described data processing unit, in order to cushion the data after process;
Described data storage cell connects described data instantaneous value buffer cell, in order to store data;
Described data upload unit connects described data instantaneous value buffer cell and described data storage cell, IP address and the port at described managing power consumption center are set, and carry out initialization according to the initialization function preset, set up the connection with managing power consumption center, resume historical data or upload real time data.
2. the energy consumption data acquisition device based on multi-protocols parallel acquisition technique according to claim 1, is characterized in that, described configuration interface comprises configuration software configuration interface and Web page configuration interface;
Described Web page configuration interface is described based on the network interface IP address of the energy consumption data acquisition device of multi-protocols parallel acquisition technique, the IP address at managing power consumption center and port, encode based on the building of the energy consumption data acquisition device of multi-protocols parallel acquisition technique in order to configure;
Described configuration software configuration interface is in order to configure attribute, the agreement of described acquisition interface, and in acquisition interface, adding instrument node, the attribute of configuration instrument, then adds acquisition node on instrument node, the attribute of configuration acquisition node, to generate described configuration file.
3. the energy consumption data acquisition device based on multi-protocols parallel acquisition technique according to claim 1, is characterized in that, described acquisition module also comprises some RS485 interfaces, some RJ45 interfaces, wave point, in order to transfer of data.
4. the energy consumption data acquisition device based on multi-protocols parallel acquisition technique according to claim 1, is characterized in that, described data acquisition unit adopts multithreading, and the acquisition interface of described some different agreements creates an independently collecting thread respectively.
5. the energy consumption data acquisition device based on multi-protocols parallel acquisition technique according to claim 1, it is characterized in that, described data storage cell adopts multifile dispersion history data store, with hour for interval generation history data file, is stored in corresponding folder by date structure.
6. based on an energy consumption data acquisition method for multi-protocols parallel acquisition technique, it is characterized in that, provide as claimed in claim 1 based on the energy consumption data acquisition device of multi-protocols parallel acquisition technique, and execution comprises the following steps:
S1, initialization is carried out to each acquisition interface;
S2, the protocol library corresponding to each acquisition interface loading according to configuration file;
S3, according to the initialization function in protocol library, initialization is carried out to the instrument in acquisition interface and collection point;
S4, carry out data acquisition in conjunction with general with special flow process and method;
S5, the data collected to be processed, to reduce the processing pressure at managing power consumption center;
S6, by process after data be stored into data storage cell;
S7, initialization is carried out to managing power consumption center, its IP address and port is set;
S8, according to the initialization function in protocol library, initialization is carried out to the key at managing power consumption center, building coding;
S9, to connect and certification with managing power consumption center;
S10, basis broken string situation before, resume historical data and upload real time data;
Wherein, described S1 and S7 starts simultaneously, asynchronous execution.
7. the energy consumption data acquisition method based on multi-protocols parallel acquisition technique according to claim 6, is characterized in that, described each acquisition interface comprises the RS485 interface being configured with MODUBS RTU or DL/T645-2007 acquisition protocols.
8. the energy consumption data acquisition method based on multi-protocols parallel acquisition technique according to claim 7, is characterized in that, the data acquisition flow of described RS485 interface comprises:
S11, serial ports attribute is set according to the baud rate in configuration file, parity information, then from protocol library, selects corresponding protocol library to load according to the acquisition protocols name of this RS485 interface in configuration file;
S12, utilize the initialization function of this protocol library that the device address of lower extension instrument, the register address, collection period etc. of each collection point are set, form one and gather queue, just start formal collection circulation afterwards.
9. the energy consumption data acquisition method based on multi-protocols parallel acquisition technique according to claim 8, it is characterized in that, step S12 comprises:
Take out the next target needing to gather from gathering queue at every turn, the good data query frame of group bag group of functions of protocol library is used to send from RS485 interface, then the Frame awaited a response in time-out time also uses the verification function of protocol library to verify it, utilize the analytical function of protocol library to carry out resolving the numerical value obtaining each collection point when verification succeeds, then judge whether further to exceed number of retries when taking defeat or verify failure, if when will not exceed expired times, retry sends data query frame, if exceeded number of retries, the Quality Codes then utilizing the analytical function of protocol library to carry out collection point upgrades, after being parsed, this collection target is turned back to again the correct position of queue, then the next collection gathering target is started.
CN201510320252.7A 2015-06-12 2015-06-12 Energy consumption data acquisition unit based on multi-protocol parallel acquisition technology and acquisition method thereof Pending CN104917768A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510320252.7A CN104917768A (en) 2015-06-12 2015-06-12 Energy consumption data acquisition unit based on multi-protocol parallel acquisition technology and acquisition method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510320252.7A CN104917768A (en) 2015-06-12 2015-06-12 Energy consumption data acquisition unit based on multi-protocol parallel acquisition technology and acquisition method thereof

Publications (1)

Publication Number Publication Date
CN104917768A true CN104917768A (en) 2015-09-16

Family

ID=54086474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510320252.7A Pending CN104917768A (en) 2015-06-12 2015-06-12 Energy consumption data acquisition unit based on multi-protocol parallel acquisition technology and acquisition method thereof

Country Status (1)

Country Link
CN (1) CN104917768A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106647666A (en) * 2016-12-28 2017-05-10 合肥城市云数据中心股份有限公司 Data collection method based on online identification assembling device object protocol library
CN109302480A (en) * 2018-10-10 2019-02-01 江苏卓正环保科技有限公司 A kind of method of data collecting instrument Remote configuration
CN109490616A (en) * 2018-11-22 2019-03-19 国电南瑞南京控制系统有限公司 A kind of photovoltaic DC-to-AC converter input electricity calculation method
CN111030907A (en) * 2019-12-11 2020-04-17 西安安森智能仪器股份有限公司 Multi-device data analysis and management method for serial port bus of robot

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2716911Y (en) * 2004-04-28 2005-08-10 武汉大学 Multi communication port multi protocol intelligent traffic collection device
CN101282333A (en) * 2008-05-22 2008-10-08 上海交通大学 Method for switching information of distributed multiprotocol proxy and center system
CN101609610A (en) * 2009-07-17 2009-12-23 中国民航大学 A kind of Flight Information data acquisition unit and disposal route thereof
CN103763396A (en) * 2014-02-12 2014-04-30 浙江大学 Energy consumption data acquisition unit and method based on multi-protocol parallel acquisition technology

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2716911Y (en) * 2004-04-28 2005-08-10 武汉大学 Multi communication port multi protocol intelligent traffic collection device
CN101282333A (en) * 2008-05-22 2008-10-08 上海交通大学 Method for switching information of distributed multiprotocol proxy and center system
CN101609610A (en) * 2009-07-17 2009-12-23 中国民航大学 A kind of Flight Information data acquisition unit and disposal route thereof
CN103763396A (en) * 2014-02-12 2014-04-30 浙江大学 Energy consumption data acquisition unit and method based on multi-protocol parallel acquisition technology

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106647666A (en) * 2016-12-28 2017-05-10 合肥城市云数据中心股份有限公司 Data collection method based on online identification assembling device object protocol library
CN106647666B (en) * 2016-12-28 2019-04-19 合肥城市云数据中心股份有限公司 Collecting method based on online recognition assembling device object protocol library
CN109302480A (en) * 2018-10-10 2019-02-01 江苏卓正环保科技有限公司 A kind of method of data collecting instrument Remote configuration
CN109490616A (en) * 2018-11-22 2019-03-19 国电南瑞南京控制系统有限公司 A kind of photovoltaic DC-to-AC converter input electricity calculation method
CN111030907A (en) * 2019-12-11 2020-04-17 西安安森智能仪器股份有限公司 Multi-device data analysis and management method for serial port bus of robot
CN111030907B (en) * 2019-12-11 2022-02-18 西安安森智能仪器股份有限公司 Multi-device data analysis and management method for serial port bus of robot

Similar Documents

Publication Publication Date Title
CN103763396A (en) Energy consumption data acquisition unit and method based on multi-protocol parallel acquisition technology
CN104881990A (en) Multi-protocol parallel acquisition technology based energy consumption data acquisition unit and acquisition method thereof
CN103870297B (en) The performance data collection system and method for virtual machine in cloud computing environment
CN109086155A (en) Server failure localization method, device, equipment and computer readable storage medium
CN104967697A (en) Energy consumption data collection device based on multi-protocol parallel collecting technology and collecting method thereof
CN102932964B (en) Internet of Things gateway for perceiving wild environment and data transmission method thereof
CN104917768A (en) Energy consumption data acquisition unit based on multi-protocol parallel acquisition technology and acquisition method thereof
CN102932447A (en) Distribution room remote data acquisition and analysis system
CN206541430U (en) A kind of data capture management device based on cloud platform
CN101956578A (en) Vibration data collection and fault analysis system of networking portable type steam turbine set
CN103152190A (en) Management system and implementation method used for interconnection between industrial internet of things and Ethernet
CN105096560A (en) Energy consumption data acquisition unit and acquisition method based on multi-protocol parallel acquisition technology
CN102064605B (en) Method for realizing mutual hot backup of electric energy acquisition systems
CN106685685A (en) Method and system for monitoring performance of exchange boards across safety subareas
CN103354562A (en) Energy consumption collector, energy consumption collecting system and energy consumption collecting method
CN107390533A (en) A kind of Monitor for electricity use, system and method
CN104215853A (en) Data acquiring method of power quality monitoring system
CN105527878A (en) Data acquisition method, data acquisition device and data acquisition and debugging system
CN103117878A (en) Design method of Nagios-based distribution monitoring system
CN102904744B (en) The acquisition method of performance data and system
CN101227324A (en) Fault information gathering method of communication equipment as well as communication equipment and system thereof
CN202084086U (en) GPRS (General Packet Radio Service) attendance acquisition system
CN103530263B (en) Based on the 1553B remote terminal device of FPGA/MCU structure
CN111274083A (en) Method and system for distributed monitoring and acquisition of server hardware indexes
CN203102583U (en) Intelligent electric energy information monitoring terminal and intelligent electric energy information monitoring system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150916

WD01 Invention patent application deemed withdrawn after publication