The content of the invention
The invention provides a kind of method of the quick copy reading of meter data based on broadband network, for solving prior art
Middle meter access interface speed is slow, is mismatched with the higher communication speed of broadband network, the problem of causing the platform area meter reading time long.
In order to solve the above problems, the present invention provides a kind of method of the quick copy reading of meter data based on broadband network,
Including concentrator, collector and platform area data collection station, described area's data collection station by the concentrator with it is described
Collector carries out information transfer, and the concentrator is provided with host node communication module, and the collector or meter are provided with from section
Point communication module, it is further comprising the steps of:
S100, described area's data collection station notify the host node communication module to start the quick copy reading of meter data;
S200, the host node communication module are issued concurrently based on broadband network with multicast to from node communication module
Copy reading meter down order message;The concurrent copy reading meter down order message, which includes copy reading, to be specified meter mark, wants copy reading
Meter total quantity and each meter copy reading configuration data, the copy reading configuration data therein include meter address, data
Interface protocol type, the data item sum and data item access identities for wanting copy reading;
S300, described receive the concurrent copy reading meter down order message from node communication module and confirm to need copy reading
During coupled meter, according to the data interface protocol type, that data item access identities generation accesses correspondence is each
The meter digital independent message of data item is simultaneously sent to coupled meter with conversational mode one by one, receives the every of meter feedback
The data recovery message of individual data item;It is described from node communication module by the data recovery message of each data item of reception not
The data that carry out lower more than the limitation of broadband network packet maximum length merge packing processing, and according to broadband network protocol generation simultaneously
Send out copy reading meter uplink data messages;
S400, the host node communication module are distributed from section to carry out the described of meter data reading system from node communication module
The host node concurrent command period is additionally provided between point concurrent corresponding period, and the concurrent corresponding period from node;Generate
Concurrent copy reading meter uplink data messages from node communication module according to the host node communication module distribute from node simultaneously
The host node communication module should be sent to the period by the concurrent copy reading meter uplink data messages by broadband network by making sound;
The host node communication module issued in the host node concurrent command period comprising non-copy reading and copy reading failure it is meter address and
Send out copy reading meter down order message;
The concurrent copy reading meter uplink data messages received are carried out data decomposition by S500, the host node communication module
Dissection process corresponds to each data item data of meter to obtain, and according to the interface protocol form of described area's data collection station
Generation meter data terminal reports message, and the interface protocol form according to described area's data collection station is by the meter data
Terminal reports message to be sent to described area's data collection station.
The method for the quick copy reading of meter data based on broadband network that the present invention is provided also has following technical characteristic:
Further, the step S200 also includes S210:The host node communication module is based on broadband network to broadcast
Mode issues concurrent copy reading meter down order message to from node communication module;The concurrent copy reading meter down order message
Include the copy reading configuration data of the whole meter marks in copy reading platform area, data interface protocol type total quantity and each protocol type.
Further, the step S200 also includes S220:The host node communication module is based on broadband network with unicast
Polling mode issues concurrent copy reading meter down order message to from node communication module;The concurrent copy reading meter down order
Message includes 1 meter address, the data interface protocol type of corresponding meter, wants the data item sum and data item of copy reading to visit
Ask mark.
Further, it is described to return the data of each data item of reception from node communication module in the step S300
The process that multiple message progress data merge packing processing includes data merging, data encryption and data packing.
Further, in the step S500, the host node communication module is up by the concurrent copy reading meter received
The process that data message carries out data decomposition dissection process includes packet parsing, data deciphering and data decomposition.
Further, the step S400 also includes S410, when described area's data collection station needs to stop copy reading platform
In area during whole meters, described area's data collection station is by the host node communication module in the host node concurrent command period
Down by the host node communication module to be ready for sending concurrent copy reading meter uplink data messages under node communication module
Send out meter reading concurrent and cease and desist order, receive that concurrent meter reading ceases and desist order stop from node communication module and meter communication, and put
Abandon the concurrent copy reading meter uplink data messages for having been prepared for sending.
The present invention has the advantages that:By using host node communication module with multicast to from node communicate mould
Block issues concurrent copy reading meter down order message, each connects a meter for treating copy reading from node communication module, can improve
Copy reading efficiency, is rapidly completed the copy reading to all meters in platform area;Host node communication module for carry out meter data reading system from
Node communication module was distributed from the node concurrent corresponding period, and concurrent from host node is additionally provided between the node concurrent corresponding period
The period is ordered, carrier wave thus can be avoided from node response conflict, it is ensured that information gathering, the reliability of transmission.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that not conflicting
In the case of, the embodiment in the present invention and the feature in embodiment can be mutually combined.
One embodiment of the method for meter data quick copy reading of the invention based on broadband network as shown in Figure 1
In, being somebody's turn to do the method for the quick copy reading of meter data based on broadband network includes concentrator, collector and platform area data collection station,
Described area's data collection station carries out information transfer by the concentrator and the collector, it is characterised in that the collection
Middle device is provided with host node communication module, and the collector or meter are provided with from node communication module, further comprising the steps of:
S100, described area's data collection station notify the host node communication module to start the quick copy reading of meter data;
S200, the host node communication module are issued concurrently based on broadband network with multicast to from node communication module
Copy reading meter down order message;The concurrent copy reading meter down order message, which includes copy reading, to be specified meter mark, wants copy reading
Meter total quantity and each meter copy reading configuration data, the copy reading configuration data therein include meter address, data
Interface protocol type, the data item sum and data item access identities for wanting copy reading;
S300, described receive the concurrent copy reading meter down order message from node communication module and confirm to need copy reading
During coupled meter, according to the data interface protocol type, that data item access identities generation accesses correspondence is each
The meter digital independent message of data item is simultaneously sent to coupled meter with conversational mode one by one, receives the every of meter feedback
The data recovery message of individual data item;It is described from node communication module by the data recovery message of each data item of reception not
The data that carry out lower more than the limitation of broadband network packet maximum length merge packing processing, and according to broadband network protocol generation simultaneously
Send out copy reading meter uplink data messages;
S400, the host node communication module are distributed from section to carry out the described of meter data reading system from node communication module
The host node concurrent command period is additionally provided between point concurrent corresponding period, and the concurrent corresponding period from node;Generate
Concurrent copy reading meter uplink data messages from node communication module according to the host node communication module distribute from node simultaneously
The host node communication module should be sent to the period by the concurrent copy reading meter uplink data messages by broadband network by making sound;
The host node communication module issued in the host node concurrent command period comprising non-copy reading and copy reading failure it is meter address and
Send out copy reading meter down order message;
The concurrent copy reading meter uplink data messages received are carried out data decomposition by S500, the host node communication module
Dissection process corresponds to each data item data of meter to obtain, and according to the interface protocol form of described area's data collection station
Generation meter data terminal reports message, and the interface protocol form according to described area's data collection station is by the meter data
Terminal reports message to be sent to described area's data collection station.
The method of the quick copy reading of meter data based on broadband network in the above embodiment of the present invention, by using master
Node communication module issues concurrent copy reading meter down order message with multicast to from node communication module, each from node
Communication module connects a meter for treating copy reading, can improve copy reading efficiency, be rapidly completed the copy reading to all meters in platform area;It is main
Node communication module for carry out meter data reading system from the distribution of node communication module from the node concurrent corresponding period, and from node
The host node concurrent command period is additionally provided between the concurrent corresponding period, carrier wave thus can be avoided from node response conflict, it is ensured that
Information gathering, the reliability of transmission.Specifically, in the platform area data collecting system based on broadband network, if it is assumed that platform
Area's data collection station sends copy reading meter down order message taking as T1, host node communication mould to host node communication module
The message is sent to taking as T2 from node communication module by block, and meter reading message is sent to the consumption of meter from node communication module
When be T3, then, data recovery message is sent to from node communication module by meter by the T4 times, is entered from node communication module
Data recovery message is sent to host node communication module by one step by the T5 times, when host node communication module finally passes through T6 again
Between reply platform area data collection station;Under the conditions of broadband network, data transmission on networks speed is fast, the required T2 and T4 times
It is very short, much smaller than T1, T3, T4 and T6;Particularly meter usually requires have stronger antijamming capability more complicated to tackle
Site environment, meter processor performance is usually less than platform area data collection station, causes between node communication module and meter
Communication speed is most slow, T3 the and T4 times are most long;Therefore, system has been copied followed by copy reading another data item in a data item
In the case of, overall copy reading efficiency is largely determined by T3 and T4;The present invention improves copy reading effect by using T1, T2 rapidity
Rate, while issuing multiple copy reading orders to multiple from node communication module, allows these from node communication module while carrying out data
Copy reading.System copy reading need not wait a data item to return to another data item of copy reading again;N number of copied if had simultaneously from node
Read, then the copy reading time of averagely one data item be changed into (T3+T4)/N, N is bigger, and average speed is faster;Can be by using compression
Mode issues collection message further to improve copy reading efficiency, between mesh foreground partition data collection station and host node communication module
Communication speed T1, T6, it is more many soon than meter T3, but it is more much lower than bandwidth carrier;Because T3=4T1=4T6, when above-mentioned
When N is more than 4, communication speed T1, T6 between platform area data collection station and host node communication module turns into the copy reading of system
Efficiency bottle neck.In the case where bandwidth carrier speed is more than needed, using pressure between platform area data collection station and host node communication module
Contracting mode issues collection message, represents one from node with one in byte, it is one that copy reading data item identical is compiled from node
Group, copy reading data item is issued by group, and platform area data collection station does not organize copy reading frame, by carrying out framing from node communication module, is had
Effect solves T1 bottleneck problem, if for example, there are 500 ammeters in platform area, while the same data item of copy reading, this mode is compressed
Nearly 500 times of T1, substantially eliminates T1 limitation;When host node communication module reports copy reading result, merge multilist data and upload, reduce
Repeated data and inter frame temporal interval, reduce T6 influence, thus can improve copy reading efficiency as far as possible.Carrier wave is rushed from node response
It is prominent to be primarily due to, carrier wave from node response copy reading result when to carry out after channel competition, conflict avoidance could busy channel lead to
Letter, if simultaneously multiple from node competition, conflict probability increase, bus utilization reduction;Because multicarrier communication signal has
Regionality, node it is alternate farther out when, do not interfere with mutually, and being interfered from node under same agent node is more;Phase
What is do not interfered with mutually can be while send data from node;For reduction bus contention, in embodiments of the present invention, host node
When initiating concurrent meter reading, as far as possible do not arrange it is identical relaying rank, same agent node from node simultaneously meter reading, and be to try to
Weigh under different relaying ranks, different agent node from node meter reading simultaneously, thus avoid carrier wave from node response conflict.
In the above-described embodiments, the method for the quick copy reading of meter data based on broadband network also has following technology special
Levy:
Preferably, the step S200 also includes S210:The host node communication module is based on broadband network with broadcaster
Formula issues concurrent copy reading meter down order message to from node communication module;The concurrent copy reading meter down order message bag
Include the copy reading configuration data of the whole meter marks in copy reading platform area, data interface protocol type total quantity and each protocol type.Institute
Stating step S200 also includes S220:The host node communication module is communicated based on broadband network in unicast polls mode to from node
Module issues concurrent copy reading meter down order message;The concurrent copy reading meter down order message include 1 meter address,
The data interface protocol type of corresponding meter, the data item sum and data item access identities for wanting copy reading.
Preferably, in the step S300, it is described from node communication module by the data recovery of each data item of reception
The process that message carries out data merging packing processing merges including data, data encryption and data are packed.In the step S500,
The concurrent copy reading meter uplink data messages received are carried out the mistake that data decompose dissection process by the host node communication module
Journey includes packet parsing, data deciphering and data and decomposed.The step S400 also includes S410, when described area's data acquisition is whole
When end needs to stop whole meters in copy reading platform area, described area's data collection station is by the host node communication module in master
By the host node communication module to being ready for sending concurrent copy reading meter uplink data messages under the node concurrent command period
From node communication module concurrent meter reading is issued to cease and desist order, receive that concurrent meter reading ceases and desist order stop from node communication module and
The communication of meter, and abandon having been prepared for the concurrent copy reading meter uplink data messages of transmission.
For the ease of understanding the substantive content of the present invention, it is illustrated below.The meter based on broadband network of the present invention
The method of the quick copy reading of data, many item datas for polylith meter in copy reading platform area.Kilowatt meter reading-out system includes concentrator, collection
Device, data collection station, concentrator on the one hand complete with the data communication function of collector, to collector or ammeter on use
Local Communication Module assigns reading electric quantity data order, and the communication with data collection station is on the other hand completed as requested, is connect
Electric quantity data is uploaded to data collection station by the order for receiving data collection station.Collector is mainly used to complete to user's electric energy
Table data acquisition, storage, and electric quantity data is sent to by concentrator by low-voltage power line.The topology diagram of kilowatt meter reading-out system is such as
Shown in Fig. 8, host node communication module refers to the Local Communication Module used on concentrator, and I type collectors are referred to from node communication module
With the Local Communication Module used on ammeter.Platform area data collection station by dialling or being otherwise attached to concentrator,
Concentrator can simultaneously and concurrently copy reading polylith ammeter, and often can include multiple 645 frames in frame message.Concentrator is to host node
Communication module sends pause routing command, host node communication module is exited aggressive mode, and automatically controlling meter reading by concentrator hands over
Mutual flow.Concentrator continuously transmits multiple AFN=F1H meter readings frames and gives host node communication module, starts the quick copy reading of meter data
Order.
Host node communication module issues concurrent copy reading meter down order message, concurrent copy reading therein based on broadband network
Meter down order message specifies the copy reading configuration number of meter mark, the meter total quantity for copy reading and each meter comprising copy reading
According to wherein the copy reading configuration data of each meter includes meter address, data interface protocol type, wants the data item sum of copy reading
And each data item access identities.To conventional ammeter stipulations DL645, according to Fig. 6 form framing.
For example:68 43 00 01 00 00 00 00 00 00 F1 01 34 34 39 38 04 00 00 00 00
44 00 00 00 00 00 45 00 00 00 00 00 46 00 00 00 00 00 47 00 00 00 00 E5 16
- " 01 " represents communication protocol type, and its value is " 01 ", i.e. DLT645-2007 communication protocols;
- " 34 34 39 38 " represent Data Identification, and its value is " 38 39 34 34 ", and it is " 05 06 later to subtract 33H processing
01 01 " current positive active energy data block, the current positive active energy number comprising total, rate 1, rate 2 ... are represented
According to;
- " 04 00 00 00 " represent electric energy meter number, and its value is " 00 00 00 04 ";
-“00 44 00 00 00 00 00 45 00 00 00 00 00 46 00 00 00 00 00 47 00 00
00 00 " electric energy table address is represented;
- " 1A " represents check code CS, and its value is " 1A ".
Passive state is in all the time from node communication module, and the communication for being ready to respond autonomous node communication module please
Ask, its responding process figure, as shown in Figure 9.Concurrent copy reading meter down order message is received from node communication module, is being confirmed
After needing the meter that copy reading this node communication module is connected, then according to data interface protocol type and data item access mark
Know, generation accesses some meter digital independent messages of each data item of correspondence, is sent to what is connected one by one with conversational mode
Meter, and the data recovery message of each data item of meter reply is received, some datas are replied from node communication module
Message carries out data under no more than the limitation of broadband network packet maximum length and merges packing processing, and according to broadband network association
The concurrent copy reading meter uplink data messages of view generation.The number of concurrent copy reading meter uplink data messages is generated from node communication module
It is divided into data merging, data encryption, data packing three step process according to packing processing is merged, as shown in Figure 3.
For example:68 6B 00 81 04 00 00 00 00 00 02 20 00 68 21 19 00 00 00 00 00
00 F1 01 34 34 39 38 79 97 33 33 37 33 33 33 bb 3c 33 33 ca 47 33 33 8a 6c 33
33 80 97 43 56 37 43 33 11 bb 3c 33 22 ca 47 33 66 8a 6c 33 77 75 97 33 33 37
33 33 33 cc 3c bb 33 ca 47 33 33 8a 6d 33 33 79 81 33 43 37 33 dd 33 bb 3c 33
33 ca 47 33 33 8a 6c 33 33 2F 16
- " 01 " represents communication protocol type, and its value is " 01 ", i.e. DLT645-2007 communication protocols;
- " 34 34 39 38 " represent Data Identification, and its value is " 38 39 34 34 ", and it is " 05 06 later to subtract 33H processing
01 01 " current positive active energy data block, the current positive active energy number comprising total, rate 1, rate 2 ... are represented
According to;
-“79 97 33 33 37 33 33 33 bb 3c 33 33 ca 47 33 33 8a 6c 33 33 80 97
43 56 37 43 33 11 bb 3c 33 22 ca 47 33 66 8a 6c 33 77 75 97 33 33 37 33 33 33
cc 3c bb 33 ca 47 33 33 8a 6d 33 33 79 81 33 43 37 33 dd 33 bb 3c 33 33 ca 47
33 33 8a 6c 33 33 " represent data content;
- " 2F " represents check code CS, and its value is " 2F ".
Host node communication module for carry out meter data reading system from node communication module distribution from node concurrently respond when
Section, and the host node concurrent command period is provided between from node concurrently responding the period;Get out concurrent copy reading meter up
Data message from node communication module according to what host node communication module was distributed concurrently responds the period from node by concurrent copy reading
Meter uplink data messages are sent to host node communication module by broadband network;Host node communication module is concurrently ordered in host node
The period is made to issue the concurrent copy reading meter down order report comprising the not yet copy reading of meter data terminal and copy reading failure meter address
Text;
The concurrent copy reading meter uplink data messages received are carried out data and decompose dissection process by host node communication module,
The data item data of correspondence meter is obtained, according to the protocol format of platform area data collection station interface, meter data terminal is generated
Message is reported, reports message to be sent to platform area data meter data terminal according to platform area data collection station interface communication rule
Acquisition terminal.Host node communication module decomposes dissection process to the data of concurrent copy reading meter uplink data messages includes message solution
Analysis, data deciphering and data are decomposed, as shown in Figure 4.Packet parsing flow is as shown in Figure 10.
When platform area data collection station needs to stop whole meters in copy reading platform area, platform area data collection station passes through master
Node communication module is under the host node concurrent command period, by host node communication module to preparing line number on concurrent copy reading meter
Concurrent meter reading is issued from node communication module to cease and desist order, receive stopping from node communication module and meter for order according to message
Communication, abandon having been prepared for the concurrent copy reading meter uplink data messages sent.
For example:
- up:68 0F 00 43 00 00 5F 00 00 00 12 02 00 B6 16;
- descending:68 15 00 83 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 84 16.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used
To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic;
And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and
Scope.