CN106878404A - The centralized automatic meter-reading method of feature based code - Google Patents
The centralized automatic meter-reading method of feature based code Download PDFInfo
- Publication number
- CN106878404A CN106878404A CN201710059160.7A CN201710059160A CN106878404A CN 106878404 A CN106878404 A CN 106878404A CN 201710059160 A CN201710059160 A CN 201710059160A CN 106878404 A CN106878404 A CN 106878404A
- Authority
- CN
- China
- Prior art keywords
- code
- meter
- rule
- checking meter
- table tool
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C19/00—Electric signal transmission systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/18—Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/26—Special purpose or proprietary protocols or architectures
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Arrangements For Transmission Of Measured Signals (AREA)
- Computer And Data Communications (AREA)
Abstract
The present invention relates to a kind of centralized automatic meter-reading method of feature based code, its step includes:Size class-mark and condition code are added, the rule of condition code is set, the rule includes the rule of correspondence and regulation rule;Condition code is determined by the rule of correspondence according to size class-mark and agreement of checking meter;Regulation rule according to condition code initializes port of checking meter, adjusts check meter parameter and generation amr frame.The method that the technical scheme that the present invention is provided can have by concentrator compatibility different agreement and type list, table tool return data can same form storage, and with from the ability of setting, and the table tool communication of different vendor can be directed to optimize.
Description
Technical field
The present invention relates to a kind of data acquisition technology, particularly a kind of centralized automatic meter-reading method of feature based code.
Background technology
All it is before, by artificial copy reading, progressively occur by setting in recent years in the field of checking meter of government utility aqueous vapor heat
Concentrator realizes automatic data logging, and concentrator is connected with control centre computer, and the meter of user is copied and accepted according to control centre's instruction
Data, and beam back data to control centre or the instruction of master station is passed on to controller of checking meter.But existing concentrator does not exist
Deciphering and inspection to agreement, along with without national or provincial uniform protocol testing agency, producer to agreement in itself
Understand again different, cause current intelligent gauge agreement of checking meter multifarious, have CJ188-2004, DLT645/97 etc. of all kinds
Agreement, even if under same agreement, the pass order of data is also different, and the passback difference of electric parameter is just bigger, therefore
Cause a concentrator can not the different tables such as compatible water meter, ammeter and gas meter, flow meter have, and can not compatible same table tool major class
Under different tables tool model, or even can not compatible with same table tool model under different vendor manufacture table tool.
The content of the invention
The technical problems to be solved by the invention are to provide what is had by a concentrator compatibility different agreement and type list
Method, table tool return data can the storage of same form, and with from the ability of setting, and it is logical to be directed to the table tool of different vendor
News are optimized.
The present invention solves the technical scheme that is used of above-mentioned technical problem:
A kind of centralized automatic meter-reading method of feature based code, its step includes:
S1 size class-mark and condition code) are added, the rule of condition code is set, the rule includes that the rule of correspondence and adjustment are advised
Then;
S2 after) meter-reading module of concentrator receives task of checking meter, the amr message in task of checking meter is sent to thread of checking meter,
The amr message includes size class-mark, agreement of checking meter and parameter of checking meter;
S3 thread of) checking meter parses amr message, and condition code is determined by the rule of correspondence according to size class-mark and agreement of checking meter;
S4) concentrator initializes port of checking meter according to the regulation rule of S3 gained condition codes;
S5) concentrator adjusts parameter of checking meter according to the regulation rule of S3 gained condition codes;
S6) concentrator determines agreement of checking meter according to S3 gained condition codes, and parameter of being checked meter with reference to obtained by S5 generates amr frame,
Have to table and send.
Can be through by setting the consolidation form task of checking meter that size class-mark, condition code and the rule of correspondence realize that server sends
After concentrator extracts adjustment, port is checked meter and the communication need between amr frame can adapt to have from different tables, realize with copying
Compatible difference table tool under meter terminal.
Further, it is further comprising the steps of:
S7 after) table tool receives amr frame, table tool frame is replied;
S8 after) meter-reading module receives table tool frame, data, system in the regulation rule adjustment table tool frame according to S3 gained condition codes
One form is stored.
Can also realize that the consolidation form that passback table has data in frame is stored by condition code, be read for server.
Further, code undetermined is added in the step S1, and condition code is ranked up;If size in the step S3
Class-mark and agreement of checking meter then are defined as code undetermined according to the rule of correspondence without character pair code, and the code undetermined assigns the first spy of sequence
Levy code and using the regulation rule of character pair code, and regulation rule initialization, adjustment in step S4 to S6 according to code undetermined
And determine;If if meter-reading module does not receive table during the amr frame generated in the step S6 sends failure or step S8 to table tool
Tool frame, the code undetermined assigns the condition code of sequence next bit and using the regulation rule of character pair code, comes back for step S4
To S6 according to the regulation rule of code undetermined initialization, adjust and determine.
If not setting respective rule in concentrator for newly-installed table tool, trial can be carried out by regular
Match somebody with somebody, because table has limited types, the automatic correspondence of rule of most of newly-increased table tool can be realized by this way and is set.
Preferably, described document information is according to protocol classification sequence of checking meter;The code undetermined invests that amr message is identical to be copied
Condition code under table agreement.
By group match, matching speed can be accelerated, the Auto-matching time significantly shortens.
Preferably, being additionally added vendor code in the step S1;Amr message also includes manufacturer's generation in the step S2
Code;Condition code is determined by the rule of correspondence according to size class-mark, vendor code and agreement of checking meter in the step S3;The step
Regulation rule initialization in S4 according to S3 gained condition codes checks meter port including setting time-out time.
Because the table tool of different vendor's manufacture under same table tool model may be deposited in the time-out time of half work mode next frame
In difference, such as 150ms, 300ms, traditional approach unification is arranged to a higher limit 1000ms, therefore the meeting in communication process
Unnecessary wait is produced, vendor code is corresponding with condition code can be respectively provided with the time-out time that table has by adding.
Preferably, the parameter of checking meter includes that table has address and Data Labels, according to S3 gained in the step S5
The regulation rule of condition code adjusts parameter of checking meter and comprises determining whether to add special address date, adjustment table tool address and data mark
Data content and data sorting in will.By same table tool institute's column address can have differences with the address in parameter of checking meter, such as table
Tool institute column address is 14 bit address, and wherein communicate be related to address only need 10, therefore parameter of checking meter in data length
May be had differences with Data Position and preset rules, so concentrator needs addition to judge whether addition in this case
Special address date, has differences for address, is first adjusted accordingly again in ad-hoc location supplement address position, so as to adapt to
Different task forms of checking meter.
The present invention compared with the existing technology has advantages below and effect:By setting size class-mark, condition code and correspondence
After rule realizes that the consolidation form task of checking meter that server sends can extract adjustment through concentrator, check meter port and amr frame can
The communication need between having from different tables is adapted to, the compatible difference table tool under with a meter reading terminal is realized.Can also by condition code
The consolidation form storage of data in passback table tool frame is realized, is read for server.If do not concentrated for newly-installed table tool
Respective rule is set in device, trial matching can be carried out by regular, realize the automatic correspondence of rule of most of newly-increased table tool
And setting, and matching speed is accelerated by group match.By adding the vendor code time-out that can have table corresponding with condition code
Time is respectively provided with.Judge whether to add special address date so as to adapt to different task forms of checking meter by adding.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also
Other accompanying drawings are obtained with according to these accompanying drawings.
Fig. 1 is the flow chart of embodiment 1.
Fig. 2 is the flow chart of embodiment 2.
Fig. 3 is the flow chart of embodiment 3.
Specific embodiment
With reference to embodiment, the present invention is described in further detail, following examples be explanation of the invention and
The invention is not limited in following examples.
Embodiment 1:
As shown in figure 1, server is remotely connected with concentrator in the present embodiment, wherein concentrator is checked meter bus by Mbus
It is connected with polytype table tool.The reception server is checked meter before task, size class-mark and condition code is added in concentrator, wherein greatly
Small class-mark and condition code could be arranged to numerical value, character or character string, and set the rule of condition code, and rule includes the rule of correspondence
And regulation rule, corresponding relation is size class-mark and check meter agreement and the many-one or one-to-one mapping of condition code.It is provided with
Concentrator starts the data frame that the reception server transmission comes afterwards, after concentrator is to the data frame decoding of server, by the task of checking meter
Meter-reading module treatment under distribution concentrator, meter-reading module will check meter task storage local.Need perform when, meter-reading module from
Local to transfer corresponding checking meter and task and the amr message in the task of checking meter is extracted by thread of checking meter, amr message includes big
The parameter of checking meter of small class-mark, agreement of checking meter and consolidation form, size class-mark is searched and agreement of checking meter after extraction by the rule of correspondence
Corresponding condition code, the condition code to the task of checking meter is determined.Concentrator is initial according to this feature code and its regulation rule
Change port of checking meter, including data bit, verification mode and the stop position for communicating.Concentrator is according to this feature code and its adjustment rule simultaneously
Then adjustment is checked meter parameter, and the consolidation form of server transmission is checked meter parameter such as " start-of-frame 68H+ meter type T+ address fields A0
The form of A1 A2 A3 A4 A5 A6+ control code C+ data length field L+ Data Labels DATA+ effects code CS+ end marks 16H ",
Data length of the concentrator first in regulation rule detects whether the parameter length of checking meter meets the requirements, such as part manufacturer
Address field can default A5 A6 tetra-, then concentrator by 00 00 by four polishings after by regulation rule to above-mentioned ginseng of checking meter
Number order is adjusted or/and the specifically modification of data bit, and adjustment process is that common data form rewriting will not be repeated here.
The parameter of checking meter of consolidation form is rewritten as by above-mentioned adjustment meet the parameter of checking meter for having communication with specific table.Above-mentioned two step is complete
Into rear concentrator according to this feature code determine check meter agreement and check meter parameter generation amr frame, amr frame by check meter port and
Mbus tables that bus specified to address field in parameter of checking meter of checking meter have and send.Table has after amr frame is received, by amr frame
Data Labels is operated and the reply table tool frame after the completion of operation.After meter-reading module receives table tool frame, according to this feature code
Regulation rule is allowed to be locally stored after being rewritten as the consolidation form that server can read to data back adjustment in table tool frame.
Embodiment 2:
As shown in Fig. 2 the present embodiment flow is essentially identical with embodiment 1, but distinctive points are to add vendor code,
Therefore it is determined that after condition code, initializing can be by the time-out time parameter of half work mode next frame by specific table when checking meter port
Tool is configured, and the parameter length that can not carry out checking meter when parameter is checked meter in adjustment detection, and directly by special address bit
Addition be set in regulation rule, so as to the more time can be saved during communication and adjustment compared to embodiment 1.
Embodiment 3:
As shown in figure 3, the present embodiment part flow is same as Example 1, distinctive points are to add code undetermined and to feature
Code sorts by protocol classification of checking meter, and judges determining that condition code is added by size class-mark and agreement of checking meter, if big group
Number and agreement of checking meter condition code can be determined by the rule of correspondence, then follow-up process (not shown) same as Example 1, such as
Fruit cannot meet the rule of correspondence and the size class-mark and agreement of checking meter are defined as into code undetermined, and code undetermined is initially assigned to and task of checking meter
Under the first condition code checked meter in agreement same list, and corresponding regulation rule is used, wherein initialized by code undetermined copying
Table port, adjustment check meter parameter and generation amr frame process with using condition code when it is identical, subsequent concentrator is attempted generating
Amr frame send (judge adjustment after address field whether there is) to table tool, if sends successfully concentrator also need to wait for table have whether
Table tool frame (judging whether amr frame is overall correct) is replied in success, and the table if above-mentioned steps succeed after adjustment is preserved has frame
Meanwhile, the corresponding condition code of the code undetermined is formed into the new rule of correspondence with size class-mark and agreement of checking meter and is recorded.If on
Any failure in step is stated, then code undetermined assigns the condition code of sequence next bit and using the regulation rule of character pair code, and root
Port of checking meter reinitialized according to new assignment and regulation rule, adjust check meter parameter and generation amr frame, until success or complete
Terminate after still failing after condition code whole use in portion's list.The process is mainly used in the addition of new table tool, when new table tool adds
Plus after without resetting rule in concentrator, can be first connected to new table tool check meter task when automatically attempt to correct spy
Code and regulation rule are levied, so as to realize that condition code is automatically configured with regular.If but the table of respective type has never in concentrator
Still there is the situation for needing to reset condition code and rule in middle addition.
Furthermore, it is necessary to explanation, the specific embodiment described in this specification, is named the shape of its parts and components
Title etc. can be with difference.The equivalent or simple change that all constructions according to described in inventional idea of the present invention, feature and principle are done, wraps
Include in the protection domain of patent of the present invention.Those skilled in the art can be to described specific implementation
Example is made various modifications or supplement or is substituted using similar mode, without departing from structure of the invention or surmounts this
Scope as defined in the claims, all should belong to protection scope of the present invention.
Claims (6)
1. a kind of centralized automatic meter-reading method of feature based code, its step includes:
S1 size class-mark and condition code) are added, the rule of condition code is set, the rule includes the rule of correspondence and regulation rule;
S2 after) meter-reading module of concentrator receives task of checking meter, the amr message in task of checking meter is sent to thread of checking meter, described
Amr message includes size class-mark, agreement of checking meter and parameter of checking meter;
S3 thread of) checking meter parses amr message, and condition code is determined by the rule of correspondence according to size class-mark and agreement of checking meter;
S4) concentrator initializes port of checking meter according to the regulation rule of S3 gained condition codes;
S5) concentrator adjusts parameter of checking meter according to the regulation rule of S3 gained condition codes;
S6) concentrator determines agreement of checking meter according to S3 gained condition codes, and parameter of being checked meter with reference to obtained by S5 generates amr frame, to table
Tool sends.
2. the centralized automatic meter-reading method of feature based code according to claim 1, further comprising the steps of:
S7 after) table tool receives amr frame, table tool frame is replied;
S8 after) meter-reading module receives table tool frame, data, unified lattice in the regulation rule adjustment table tool frame according to S3 gained condition codes
Formula is stored.
3. the centralized automatic meter-reading method of feature based according to claim 2 code, it is characterised in that:
Code undetermined is added in the step S1, and condition code is ranked up;
In the step S3 if size class-mark and check meter agreement according to the rule of correspondence without character pair code if be defined as code undetermined, institute
State code undetermined and assign the first condition code of sequence and using the regulation rule of character pair code, and according to code undetermined in step S4 to S6
Regulation rule initialization, adjust and determine;
If if meter-reading module does not receive table tool during the amr frame generated in the step S6 sends failure or step S8 to table tool
Frame, the code undetermined assigns the condition code of sequence next bit and using the regulation rule of character pair code, comes back for step S4 extremely
S6 is initialized according to the regulation rule of code undetermined, is adjusted and determine.
4. the centralized automatic meter-reading method of feature based according to claim 3 code, it is characterised in that:Described document information is according to copying
Table protocol classification sorts;The code undetermined invests the condition code under the identical agreement of checking meter of amr message.
5. the centralized automatic meter-reading method of feature based according to claim 1 code, it is characterised in that:
Vendor code is additionally added in the step S1;
Amr message also includes vendor code in the step S2;
Condition code is determined by the rule of correspondence according to size class-mark, vendor code and agreement of checking meter in the step S3;
Regulation rule initialization in the step S4 according to S3 gained condition codes checks meter port including setting time-out time.
6. the centralized automatic meter-reading method of feature based according to claim 1 code, it is characterised in that:Wrapped in the parameter of checking meter
Table tool address and Data Labels are included, the regulation rule adjustment in the step S5 according to S3 gained condition codes checks meter parameter including sentencing
It is disconnected whether to add special address date, adjustment table tool address and data content and data sorting in Data Labels.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710059160.7A CN106878404B (en) | 2017-01-23 | 2017-01-23 | Centralized meter reading method based on feature codes |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710059160.7A CN106878404B (en) | 2017-01-23 | 2017-01-23 | Centralized meter reading method based on feature codes |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106878404A true CN106878404A (en) | 2017-06-20 |
CN106878404B CN106878404B (en) | 2020-06-16 |
Family
ID=59158823
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710059160.7A Active CN106878404B (en) | 2017-01-23 | 2017-01-23 | Centralized meter reading method based on feature codes |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106878404B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108595114A (en) * | 2018-03-23 | 2018-09-28 | 宁波三星医疗电气股份有限公司 | After a kind of change of affiliated partner can copy reading historical record method |
CN111122966A (en) * | 2019-12-27 | 2020-05-08 | 宁波三星医疗电气股份有限公司 | Load identification module data transmission method, device and system |
CN111768607A (en) * | 2020-06-24 | 2020-10-13 | 浪潮电子信息产业股份有限公司 | Multi-table counting data acquisition method, device, equipment and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101609454A (en) * | 2009-07-22 | 2009-12-23 | 上海可鲁系统软件有限公司 | A kind of data storage and report method and smart machine thereof |
CN102621921A (en) * | 2012-03-13 | 2012-08-01 | 江西省电力科学研究院 | Programmer for electric energy meters |
CN102637203A (en) * | 2012-03-15 | 2012-08-15 | 广西电网公司电力科学研究院 | Method for processing electric quantity data and monitoring master station for automatic electric energy metering systems |
CN103714177A (en) * | 2014-01-08 | 2014-04-09 | 云南电力试验研究院(集团)有限公司电力研究院 | Method for processing flexible configurable electricity meter stipulations in electric power meter reading and method for meter reading |
-
2017
- 2017-01-23 CN CN201710059160.7A patent/CN106878404B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101609454A (en) * | 2009-07-22 | 2009-12-23 | 上海可鲁系统软件有限公司 | A kind of data storage and report method and smart machine thereof |
CN102621921A (en) * | 2012-03-13 | 2012-08-01 | 江西省电力科学研究院 | Programmer for electric energy meters |
CN102637203A (en) * | 2012-03-15 | 2012-08-15 | 广西电网公司电力科学研究院 | Method for processing electric quantity data and monitoring master station for automatic electric energy metering systems |
CN103714177A (en) * | 2014-01-08 | 2014-04-09 | 云南电力试验研究院(集团)有限公司电力研究院 | Method for processing flexible configurable electricity meter stipulations in electric power meter reading and method for meter reading |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108595114A (en) * | 2018-03-23 | 2018-09-28 | 宁波三星医疗电气股份有限公司 | After a kind of change of affiliated partner can copy reading historical record method |
CN111122966A (en) * | 2019-12-27 | 2020-05-08 | 宁波三星医疗电气股份有限公司 | Load identification module data transmission method, device and system |
CN111122966B (en) * | 2019-12-27 | 2022-05-17 | 宁波三星医疗电气股份有限公司 | Load identification module data transmission method, device and system |
CN111768607A (en) * | 2020-06-24 | 2020-10-13 | 浪潮电子信息产业股份有限公司 | Multi-table counting data acquisition method, device, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN106878404B (en) | 2020-06-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109768970B (en) | Configurable universal protocol generation method | |
CN106878404A (en) | The centralized automatic meter-reading method of feature based code | |
CN103595717B (en) | Household appliance control protocol conversion method and control terminal | |
CN103197948B (en) | A kind of electric intelligent devices communicating stipulations script resolving method | |
CN106843942A (en) | The firmware upgrade method and Wearable of Wearable | |
CN102005818A (en) | Method for detecting consistency of SCD (System Configuration Document) and IED (Intelligent Electronic Device) model on line | |
CN101651683B (en) | Method for generating analysis source code of signaling message | |
CN109446155B (en) | Intelligent station description file import and export configuration method and system | |
CN102593733A (en) | Debugging method for transformer substation equipment | |
CN103685005A (en) | Intelligent gateway and method | |
CN107707028A (en) | Suitable for the configuration file management-control method of intelligent substation bus differential protection enlarging debugging | |
CN106844432A (en) | Data processing method and device | |
CN107395666A (en) | A kind of method and device of operating numerical control lathe upgrading data packet | |
CN109509239A (en) | Exempt from the site protective device secondary circuit configuration file generation method of SCD configuration | |
CN107479531A (en) | The access device communication protocol frame format information of Embedded PLC remotely determines method | |
CN104750468B (en) | A kind of server-side topological data conversion method and conversion equipment | |
CN105512072B (en) | A kind of conversion equipment based on APB bus and OPB bus | |
CN107545116A (en) | A kind of intelligent substation reorganization and expansion change impact analysis method based on model decoupling | |
CN106997296A (en) | Device identification matching process and the network equipment | |
CN106126446A (en) | A kind of USB device and the method identifying MacOS system thereof | |
CN110071860A (en) | Robot communication method, robot communication system and robot | |
CN101908985B (en) | A kind of method of message checking and device | |
CN101197959B (en) | Terminal control method, system and equipment | |
CN105787408A (en) | Card reader supporting high-speed data communication, and work method thereof | |
CN106610899B (en) | Test case generation method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |