CN106056889A - Meter reading communication interface self-learning method of four-meter centralized collecting interface converter - Google Patents

Meter reading communication interface self-learning method of four-meter centralized collecting interface converter Download PDF

Info

Publication number
CN106056889A
CN106056889A CN201610496261.6A CN201610496261A CN106056889A CN 106056889 A CN106056889 A CN 106056889A CN 201610496261 A CN201610496261 A CN 201610496261A CN 106056889 A CN106056889 A CN 106056889A
Authority
CN
China
Prior art keywords
communication interface
communication
interface
priority
successful
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
CN201610496261.6A
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.)
State Grid Shandong Electric Power Co Ltd
Integrated Electronic Systems Lab Co Ltd
Original Assignee
State Grid Shandong Electric Power Co Ltd
Integrated Electronic Systems Lab 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 State Grid Shandong Electric Power Co Ltd, Integrated Electronic Systems Lab Co Ltd filed Critical State Grid Shandong Electric Power Co Ltd
Priority to CN201610496261.6A priority Critical patent/CN106056889A/en
Publication of CN106056889A publication Critical patent/CN106056889A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C19/00Electric signal transmission systems

Abstract

The invention relates to a meter reading communication interface self-learning method of a four-meter centralized collecting interface converter. The method comprises the following steps of: numbering and archiving communication interfaces of a converter, setting a priority for each communication interface in a parameter storage area, so that the communication interface is selected for further communication. By adopting the method, the universality of software is improved, the construction difficulty is reduced; and only one version of software can be compatible with different communication interfaces of various forms, so that the in-situ construction difficulty is alleviated, and the maintenance efficiency is improved.

Description

A kind of method that interface convertor meter reading communication interface self study copied by four table collection
Technical field
The present invention relates to the technical field of power information acquisition system " four tables unification " engineering, particularly relate to four table collection and copy and connect The method of mouth transducer meter reading communication interface self study.
Background technology
Along with in power system power information acquisition system to government utility data integrated collection works such as water, electricity, warm, gas The continuous propelling of journey (being called for short " four table unifications " engineering), interface convertor (hereinafter referred to as " transducer ") making in centralized meter-reading system Consumption is constantly increasing.Transducer determine the most fast and accurately water meter to be communicated, gas meter, flow meter, heat death theory logical Communication interface form, timely to data, upload main station system accurately and play a key effect.
Water meter, gas meter, flow meter, heat meter industry in, generally there are the communication interface of three kinds of forms, be respectively Meter-BUS physical interface (writing a Chinese character in simplified form M-BUS), RS-485 interface, wireless receiving and dispatching interface.But in current power system electricity consumption In " four tables unification " engineering of information acquisition system, water that master station acquisition system docking port transducer is issued, the shelves of air and heat table In case, the not definition to concrete communication PHY interface.When being carried out that by interface convertor water, air and heat table data set are adopted During collection, just do not know specifically to use which kind of physical interface to communicate, increase the uncertainty of data acquisition.
For this kind of situation, it is the most all the concrete model of the water according to job site actual installation, air and heat table, in advance Determine communication interface, then adjust the software program of interface convertor targetedly.This method is in concentrated collection region The scene that water, air and heat table communication interface are more single can also realize, in the most same pickup area, and the communication of various ways Interface when depositing, interface convertor is difficult to make a distinction out which kind of thing that every kind of table specifically uses again when carrying out checking meter communication Reason interface shape.
Summary of the invention
For the problems referred to above, the invention provides and a kind of improve software phase lock loop, reduce by four table collection of difficulty of construction and copy and connect The method of mouth transducer meter reading communication interface self study.
For solving the problems referred to above, the technical scheme that the present invention takes is: interface convertor meter reading communication copied by a kind of four table collection The method of interface self study, comprises the following steps:
Step one, initialization
The communication interface of transducer is numbered, files, and in parameter memory block, each communication interface is arranged excellent First level;The successful communication interface variable of last time communication of internal memory record is initialized;
Initialize the initialization before being broadly divided into system reset initialization and starting self study.Reset initialization is being only System generation just can perform when restarting, and will not restart easily in system properly functioning period.When system reset initializes, The variable of the successful communication interface of record last time communication defined in internal memory is zeroed out.Initializing before self study is often Secondary all can perform once when carrying out self study, and system properly functioning period can according to archives situation perform repeatedly stipulations from Study.Initialization before self study, mainly resets some timer variable, and the last communication of internal memory record is the most logical Communication interface variable keeps constant.When the most only carrying out stipulations self study after system reboot first on record defined in internal memory one The variate-value of the successful communication interface of secondary communication can be just zero, and when the most again carrying out self study, this variate-value can keep last Secondary value is constant.
Step 2, communication interface select
2-1, judge that the last time of the internal memory record successful communication interface that communicates is whether effective, i.e. whether judge communication interface Communication interface code name to transducer;If effectively, then prioritizing selection communicated successful communication interface as souning out communication in advance last time Interface;If invalid, then the communication interface that one priority of selection is the highest is as souning out communication interface in advance;If being successfully selected prerun The effective communication interface visiting communication then enters step 3;Choose the pre-effective communication interface souning out communication if unsuccessful, produce Sound out unsuccessfully alarm and enter step 6;
In step one, communication interfaces all to transducer carry out connecing by 1 to N number consecutively, i.e. communication according to data value size Mouth code name, the later stage is all to directly select data value size as corresponding communication interface when selecting.
Owing to reset initialization only just can perform when system produces and restarts, the most only enter first after system reboot The situation that variate-value is zero of the last successful communication interface that communicates of the record defined in internal memory is just there will be during row self study, As long as carrying out learning success mistake during self study in the case of remaining, this variate-value would not be zero.If this value is zero, then it is assumed that should Communication interface is invalid, carries out communication interface selection according to judgment criterion time invalid.
2-2, the priority of the communication interface souning out communication failure according to the last time select the logical of next pre-exploration communication Communication interface: if there is the communication interface the same with the priority of last exploration communication failure communication interface, then select this preferential The communication interface of level is as souning out communication interface in advance, if the communication interface of this priority has multiple, then according to communication interface code name Order from small to large selects;If there is not the communication the same with the priority of last exploration communication failure communication interface Interface, then select the communication interface of the next priority of last time exploration communication failure communication interface priority to sound out as pre- Communication interface, if the communication interface of next priority has multiple, enters also according to communication interface code name order from small to large Row selects;If being successfully selected the pre-effective communication interface souning out communication, enter step 3;Pre-exploration is chosen if unsuccessful The effective communication interface of communication then produces sounds out unsuccessfully alarm entrance step 6;
Step 3, framing, transmission
According to souning out communication interface determined by step 2 in advance, send data communication;
Step 4, receipts frame, parsing
According to souning out communication interface determined by step 2 in advance, the due-in frame such as carry out, if receiving within the waiting time of regulation Frame success, then it is assumed that current pre-communication interface of souning out is soundd out successfully, the last time successful communication of communication recorded in internal memory connects Mouth changes to currently be soundd out the successful communication interface of communication, enters step 5;If not receiving frame within the waiting time of regulation to become Merit, then it is assumed that Current communications interface is soundd out unsuccessfully, enters the 2-2 of step 2;
Step 5, archives update
For communication successful water, air and heat table, table meter address and the corresponding communication interface of this table are deposited in parameter Storage area carries out unifying storage;Later stage interface convertor carries out standard when carrying out and periodically checking meter according to stored communication interface Really, communicate efficiently.
Step 6, return result
If this step is to be entered by step 5, then it is assumed that currently by the table end communication interface of communication the match is successful, return Pass flag;If this step is to be entered by step 2, then it is assumed that current water/gas/hotlist communication interface learns unsuccessfully, returns coupling Fail flag.
The specifically chosen principle of communication interface is as follows:
(1) when carrying out communication interface and selecting, the last successful communication interface that communicates can be paid the utmost attention to, the most often communicate Success the most once, will record this time in internal memory and communicate successful communication interface;
(2) if the last time of internal memory record communicates, successful communication interface is invalid, or the last time used communicates successfully Communication interface carry out failure when communication interface is soundd out, then lead to according to the priority of each communication interface in communication interface storehouse Communication interface selects, sounds out;
(3) if during the corresponding multiple communication interface of selected priority, then according to communication interface code name order from small to large Select a pre-exploration communication interface.
The basis that step 2 performs is to have had been built up communication interface storehouse and be numbered the communication interface of transducer, with Time set the priority orders of various communication interface at parameter region, the priority of each communication interface can be by periphery in the later stage Equipment adjusts at any time.
In order to increase the versatility of software, when product export, the various communication interfaces in communication interface storehouse can be configured The priority level of acquiescence, and on-the-spot in the use of product, in order to improve the exploration efficiency of communication interface, will not use for known To communication interface be configurable to invalid communication interface, or the priority of the communication interface that scene is determined improves, and then Reach to put forward high efficiency purpose;If souning out successfully, then current successfully communication interface type is updated in internal memory, after facilitating When continuous instrument carries out communication interface exploration, this kind of communication interface of preferential employing, simultaneously currently souning out successful water, air and heat table Archives preserve, in order to preferentially use this communication interface when this table is communicated by the later stage again.If the institute in communication interface storehouse After having communication interface all to sound out, the most do not find the communication interface that the match is successful, then feeder alert information, pointed out Kind communication interface storehouse.
Beneficial effects of the present invention is as follows:
1, the versatility of software is improved.Owing to software itself has the self study of the water/gas/hotlist to different communication interfaces Function, it is only necessary to a set of program just can be not required to issue different to different scenes again in the face of the site environment of various complexity Version program, it is simple to the management of program version and maintenance.
2, difficulty of construction is reduced.When in the face of the water/gas/hotlist of various communication interfaces form and deposit construction environment time, former The transducer that first scheme is different copies the water/gas/hotlist taking distinct interface, if the later stage changes instrument, and the communication of instrument Interface shape changes, it is necessary to again change translator program, the most just requires that for this site operation, attendant need right On-the-spot different types of water, the communication interface form of air and heat table have certain understanding, and then decide whether conversion Device carries out software upgrading, and is replaced by the program of that version during upgrading.And now only need the program of a version, so that it may Compatible various forms of communication interfaces, reduce the difficulty of construction at scene, improve maintenance efficiency.
Accompanying drawing explanation
Fig. 1 is the flow chart of the present invention;
Fig. 2 is the flow chart that communication interface of the present invention selects.
Detailed description of the invention
Below in conjunction with the accompanying drawings the implementation process of the present invention is described in detail.
A kind of method that interface convertor meter reading communication interface self study copied by four table collection, as it is shown in figure 1, include following step Rapid:
Step one, initialization
The communication interface of transducer is numbered, files, and in parameter memory block, each communication interface is arranged excellent First level;The successful communication interface variable of last time communication of internal memory record is initialized;
Step 2, communication interface select
2-1, judge that the last time of the internal memory record successful communication interface that communicates is whether effective, effective according to being docking port Every kind of communication interface in transducer is numbered, such as, and total N kind communication interface, the numbering of each communication interface in transducer Being followed successively by 1 N, if the last time of internal memory record communicates, successful communication interface data value is in the range of 1 and N, then it is assumed that have Effect, if outside this scope, is then invalid;If the last successful communication interface number that communicates is effective, then prioritizing selection led to last time Believe that successful communication interface is as souning out communication interface in advance;If the last successful communication interface that communicates is invalid, then select one The highest communication interface of priority is as souning out communication interface in advance;Selection rule for communication interface priority is as follows: for N Planting communication interface and can be divided into M grade (M≤N), the least priority of M value is the biggest, and communication interface has according to each when selecting The M value of effect communication interface, ascending selects successively, if the M value of multiple communication interface is in the same size, then and foundation communication interface number Order ascending for N selects.If being successfully selected the pre-effective communication interface souning out communication, enter step 3;If not It is successfully selected the pre-effective communication interface souning out communication then to produce and sounds out unsuccessfully alarm entrance step 6;
2-2, the priority of the communication interface souning out communication failure according to the last time select the logical of next pre-exploration communication Communication interface: if there is the communication interface the same with the priority of last exploration communication failure communication interface, then select this preferential The communication interface of level is as souning out communication interface in advance, if the communication interface of this priority has multiple, then according to communication interface Code name order from small to large selects;If not existing the same with the priority of last exploration communication failure communication interface Communication interface, then select the communication interface of next priority of last time exploration communication failure communication interface priority as in advance Sound out communication interface, if the communication interface of next priority has multiple, also according to communication interface code name from small to large suitable Sequence selects;If being successfully selected the pre-effective communication interface souning out communication, enter step 3;If unsuccessful choose pre- The effective communication interface of exploration communication then produces sounds out unsuccessfully alarm entrance step 6;
Step 3, framing, transmission
According to souning out communication interface determined by step 2 in advance, send data communication;
Step 4, receipts frame, parsing
According to souning out communication interface determined by step 2 in advance, the due-in frame such as carry out, if receiving within the waiting time of regulation Frame success, then it is assumed that current pre-communication interface of souning out is soundd out successfully, the last time successful communication of communication recorded in internal memory connects Mouth changes to currently be soundd out the successful communication interface of communication, enters step 5;If not receiving frame within the waiting time of regulation to become Merit, then it is assumed that Current communications interface is soundd out unsuccessfully, enters the 2-2 of step 2;The longest receipts frame time such as arranged is the X second, if In waiting time within the X second, do not collect the data message frame meeting this communication interface rule of communication, then it is assumed that communication is lost Lose, enter step 2 2-2, again choose next communication interface and again sound out.
Step 5, archives update
For communication successful water, air and heat table, table meter address and the corresponding communication interface of this table are deposited in parameter Storage area carries out unifying storage;
Step 6, return result
If this step is to be entered by step 5, then it is assumed that currently by the table end communication interface of communication the match is successful, return Pass flag;If this step is to be entered by step 2, then it is assumed that current water/gas/hotlist communication interface learns unsuccessfully, returns coupling Fail flag.

Claims (2)

1. the method that interface convertor meter reading communication interface self study copied by a table collection, it is characterised in that comprise the following steps:
Step one, initialization
The communication interface of transducer is numbered, files, and in parameter memory block, each communication interface is arranged priority; The successful communication interface variable of last time communication of internal memory record is initialized;
Step 2, communication interface select
2-1, judge that the last time of the internal memory record successful communication interface that communicates is whether effective, if effectively, then prioritizing selection last time Communicate successful communication interface as souning out communication interface in advance;If invalid, then select the communication interface work that a priority is the highest For souning out communication interface in advance;If being successfully selected the pre-effective communication interface souning out communication, enter step 3;If unsuccessful choosing Select the pre-effective communication interface souning out communication then to produce and sounds out unsuccessfully alarm entrance step 6;
2-2, the priority of the communication interface souning out communication failure according to the last time select the next pre-communication souning out communication to connect Mouthful: if there is the communication interface the same with the priority of last exploration communication failure communication interface, then select this priority Communication interface is as souning out communication interface in advance;If not existing the same with the priority of last exploration communication failure communication interface Communication interface, then select the communication interface of next priority of last time exploration communication failure communication interface priority as in advance Sound out communication interface;If being successfully selected the pre-effective communication interface souning out communication, enter step 3;Choose if unsuccessful The pre-effective communication interface souning out communication then produces sounds out unsuccessfully alarm entrance step 6;
Step 3, framing, transmission
According to souning out communication interface determined by step 2 in advance, send data communication;
Step 4, receipts frame, parsing
According to souning out communication interface determined by step 2 in advance, the due-in frame such as carrying out, becoming if receiving frame within the waiting time of regulation Merit, then it is assumed that current pre-communication interface of souning out is soundd out successfully, and the last time recorded in internal memory communicates successful communication interface more Change into currently being soundd out the successful communication interface of communication, enter step 5;If not receiving frame success within the waiting time of regulation, then Think that Current communications interface is soundd out unsuccessfully, enter the 2-2 of step 2;
Step 5, archives update
For communication successful water, air and heat table, the table meter address of this table and corresponding communication interface in parameter memory block Carry out unifying storage;
Step 6, return result
If this step is to be entered by step 5, then it is assumed that currently by the table end communication interface of communication the match is successful, return successfully Labelling;If this step is to be entered by step 2, then it is assumed that current water/gas/hotlist communication interface learns unsuccessfully, and it fails to match in return Labelling.
The method that interface convertor meter reading communication interface self study copied by a kind of four table collection the most according to claim 1, it is special Levy and be: if during the corresponding multiple communication interface of priority selected in step 2, then numbering from small to large according to communication interface Order select a pre-exploration communication interface.
CN201610496261.6A 2016-06-29 2016-06-29 Meter reading communication interface self-learning method of four-meter centralized collecting interface converter Pending CN106056889A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610496261.6A CN106056889A (en) 2016-06-29 2016-06-29 Meter reading communication interface self-learning method of four-meter centralized collecting interface converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610496261.6A CN106056889A (en) 2016-06-29 2016-06-29 Meter reading communication interface self-learning method of four-meter centralized collecting interface converter

Publications (1)

Publication Number Publication Date
CN106056889A true CN106056889A (en) 2016-10-26

Family

ID=57166200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610496261.6A Pending CN106056889A (en) 2016-06-29 2016-06-29 Meter reading communication interface self-learning method of four-meter centralized collecting interface converter

Country Status (1)

Country Link
CN (1) CN106056889A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106611488A (en) * 2016-12-02 2017-05-03 中国电力科学研究院 Method and system used for multi-meter collector M-Bus port self-scheduling
CN106683393A (en) * 2016-12-30 2017-05-17 浙江正泰仪器仪表有限责任公司 Remote infrared meter reading method and remote infrared meter reading device
CN106997659A (en) * 2017-03-10 2017-08-01 深圳市国电科技通信有限公司 A kind of Multi-meter collecting equipment list File Maintenance for possessing polymorphic type meter reading port searches table method
CN107123252A (en) * 2017-05-27 2017-09-01 南京林洋电力科技有限公司 A kind of M BUS trailing frogs and its intelligent switching circuit

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267448A (en) * 2008-05-09 2008-09-17 东北大学 An intelligent protocol conversion device and method based on embedded QNX operating system
CN202615599U (en) * 2012-06-21 2012-12-19 铜陵三荣仪表科技有限公司 Centralized data acquisition system for water meter, heating meter, gas meter and electricity meter
US20130027219A1 (en) * 2011-07-29 2013-01-31 Korea Electric Power Corporation Advanced metering infrastructure system for guaranteeing reliable transmission of meter data and advanced metering method using the same
KR101326730B1 (en) * 2012-05-22 2013-11-08 한전케이디엔주식회사 Calibration device for transformer monitoring module
CN204965713U (en) * 2015-07-10 2016-01-13 珠海慧信微电子有限公司 Multichannel data collection station based on power line broadband carrier communication

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267448A (en) * 2008-05-09 2008-09-17 东北大学 An intelligent protocol conversion device and method based on embedded QNX operating system
US20130027219A1 (en) * 2011-07-29 2013-01-31 Korea Electric Power Corporation Advanced metering infrastructure system for guaranteeing reliable transmission of meter data and advanced metering method using the same
KR101326730B1 (en) * 2012-05-22 2013-11-08 한전케이디엔주식회사 Calibration device for transformer monitoring module
CN202615599U (en) * 2012-06-21 2012-12-19 铜陵三荣仪表科技有限公司 Centralized data acquisition system for water meter, heating meter, gas meter and electricity meter
CN204965713U (en) * 2015-07-10 2016-01-13 珠海慧信微电子有限公司 Multichannel data collection station based on power line broadband carrier communication

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
94594894: "四表合一数据集中采集典型技术方案", 《百度文库》 *
宋芳等: "基于电力线载波技术的四表合一集抄系统研究", 《时代农机》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106611488A (en) * 2016-12-02 2017-05-03 中国电力科学研究院 Method and system used for multi-meter collector M-Bus port self-scheduling
CN106683393A (en) * 2016-12-30 2017-05-17 浙江正泰仪器仪表有限责任公司 Remote infrared meter reading method and remote infrared meter reading device
CN106997659A (en) * 2017-03-10 2017-08-01 深圳市国电科技通信有限公司 A kind of Multi-meter collecting equipment list File Maintenance for possessing polymorphic type meter reading port searches table method
CN107123252A (en) * 2017-05-27 2017-09-01 南京林洋电力科技有限公司 A kind of M BUS trailing frogs and its intelligent switching circuit

Similar Documents

Publication Publication Date Title
CN106056889A (en) Meter reading communication interface self-learning method of four-meter centralized collecting interface converter
CN103491190B (en) A kind of charger monitor data processing method towards extensive Real-time and Concurrent
CN106202447B (en) A kind of digital cartography system having production and management integration
CN104317800A (en) Hybrid storage system and method for mass intelligent power utilization data
CN203573481U (en) ZigBee technology-based wireless meter reading system
CN105893297A (en) Four-meter centralized-reading interface converter meter reading protocol self-learning method
CN102932846B (en) Data management system for distributed heterogeneous sensing network
CN105120516B (en) A kind of location information acquisition frame under the environment based on intelligent perception
CN108848132B (en) Power distribution scheduling main station system based on cloud
CN102184628A (en) Intelligent divisional low-power-consumption wireless networking meter reading method
CN106156227A (en) A kind of data transmission method and device
CN103778120A (en) Global file identification generation method, generation device and corresponding distributed file system
CN104320486B (en) A kind of intelligent transportation platform data integrated approach based on big data
CN101324989A (en) Automatic recognition technique of electrical energy meter in centralized meter reading system
CN102508866A (en) Digital addressing-based method for structured storage and rapid processing of command relation tree
CN104155934A (en) Building automatic control method base on Internet of Things
CN103198126A (en) Spatial-temporal data managing method for Internet of Things
CN101094144A (en) Data collocation method and system of wireless access network
CN202956654U (en) Remote monitoring equipment in sewage treatment operation
CN102591282A (en) Distributed data collection and transmission system
CN114172928B (en) Design method of Internet of things system
CN113590729A (en) Building equipment point location identification method and device, computer equipment and storage medium
CN103049583B (en) The conversion method of earth monitor data and translation interface
CN204596121U (en) Wireless water meter reading system
CN103415079A (en) Time slot scheduling method and device used in wireless sensor network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20161026