[go: up one dir, main page]

CN117119334B - Automatic meter searching and collecting method and system of ammeter collecting terminal - Google Patents

Automatic meter searching and collecting method and system of ammeter collecting terminal Download PDF

Info

Publication number
CN117119334B
CN117119334B CN202311377438.7A CN202311377438A CN117119334B CN 117119334 B CN117119334 B CN 117119334B CN 202311377438 A CN202311377438 A CN 202311377438A CN 117119334 B CN117119334 B CN 117119334B
Authority
CN
China
Prior art keywords
ammeter
numbers
sequence
meter
digital
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.)
Active
Application number
CN202311377438.7A
Other languages
Chinese (zh)
Other versions
CN117119334A (en
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.)
Shenzhen City Singhang Electric Technology Co ltd
Original Assignee
Shenzhen City Singhang Electric Technology 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 Shenzhen City Singhang Electric Technology Co ltd filed Critical Shenzhen City Singhang Electric Technology Co ltd
Priority to CN202311377438.7A priority Critical patent/CN117119334B/en
Publication of CN117119334A publication Critical patent/CN117119334A/en
Application granted granted Critical
Publication of CN117119334B publication Critical patent/CN117119334B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q9/00Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2209/00Arrangements in telecontrol or telemetry systems
    • H04Q2209/40Arrangements in telecontrol or telemetry systems using a wireless architecture
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2209/00Arrangements in telecontrol or telemetry systems
    • H04Q2209/60Arrangements in telecontrol or telemetry systems for transmitting utility meters data, i.e. transmission of data from the reader of the utility meter

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The invention discloses an automatic meter searching and collecting method and system of an ammeter collecting terminal, which relate to the field of power management and comprise the following steps: the ammeter acquisition terminal allocates an ammeter address to the digital ammeter; the ammeter acquisition terminal generates a digital allocation table, and the digital allocation table allocates sequencing numbers to ammeter addresses; sequencing the sequencing numbers by using a sequencing algorithm to obtain sequencing numbers which are sequentially arranged; storing the ordered numbers in sequence and the corresponding modes of the ammeter addresses and the ordered numbers by using a distributed storage technology; obtaining a digital ammeter inquiry number, and carrying out data inquiry on the digital ammeter with the ammeter address by using a binary search method; the electric meter acquisition terminal acquires various data in the digital electric meter; when the digital ammeter is additionally arranged, at least one digital ammeter is arranged. Through setting up sequencing digital distribution module, digital sequencing module, ammeter address inquiry module and ammeter add the module, ammeter acquisition terminal carries out the time of searching for the table and reduces by a wide margin, promotes and searches for the table efficiency.

Description

Automatic meter searching and collecting method and system of ammeter collecting terminal
Technical Field
The invention relates to the field of power management, in particular to an automatic meter searching and collecting method and system of an ammeter collecting terminal.
Background
The concentrator in the electricity consumption information acquisition system is mainly based on carrier communication, if the concentrator can automatically identify and manage the acquisition device and the electric energy meter which are connected under the concentrator, the concentrator can be very beneficial to simplifying parameter setting and debugging work in the system construction process, and in future operation and maintenance, the concentrator can timely identify and inform the system to adjust parameters, for example, meter replacement and station area adjustment, thereby bringing benefits to the efficient operation of the system.
The carrier channel adopts the carrier channel under most conditions that the concentrator goes down to the collector or the electric energy meter, but the carrier channel has low communication speed (100-1200 BPS), low reliability (communication success rate is lower than 80%), short effective distance (interference is frequently encountered, multi-level relay is sometimes required), non-bidirectional channel and tandem area are frequently encountered. The characteristics determine that the collector or the electric energy meter cannot actively report information to the concentrator, and the concentrator can only adopt an active query mechanism to search the electric energy meter.
The existing meter searching and searching mode adopts a traversing address mode to search the meter, because the on-site electric energy meters are usually quite large and have larger orders of magnitude, if the electric meter acquisition terminal sends the electric energy meters on site one by one according to the meter address, the electric energy meters with the corresponding addresses are found, and then various data of the electric energy meters are acquired and stored, so that the complexity of the meter searching is increased, the time for executing the meter searching by the electric meter acquisition terminal is greatly increased, and the meter searching efficiency is reduced.
Disclosure of Invention
In order to solve the technical problems, the technical scheme solves the problems that the prior art search for the electric meter by adopting a traversing address mode is adopted for searching the electric meter, the electric meter on site is usually quite large in magnitude order, if the electric meter acquisition terminal sends the electric meter on site one by one according to the meter address, the electric meter at the corresponding address is found, and then various data of the electric meter are acquired and stored, so that the complexity of searching the electric meter is increased, the time for executing the search of the electric meter acquisition terminal is greatly increased, and the efficiency of searching the electric meter is reduced.
In order to achieve the above purpose, the invention adopts the following technical scheme:
an automatic meter searching and collecting method of an ammeter collecting terminal comprises the following steps:
the meter reading main station, the data concentrator, the power transmission line, the data collector, the digital electric meter and the charging terminal form an electric meter collecting terminal, and the inside of the electric meter collecting terminal is matched with the electric meter to collect data;
the meter reading main station transmits a control instruction by using a GPRS channel, and receives data acquired by the ammeter through a GSM data transmission channel;
the ammeter acquisition terminal allocates an ammeter address to the digital ammeter;
the electric meter acquisition terminal generates a digital distribution table, the digital distribution table sequentially stores at least one sort number, the sort number is a natural number sequence with 1 as the beginning, the number of the sort number is larger than a preset value, and the digital distribution table distributes the sort number to the electric meter address;
the method comprises the steps that an ammeter address obtains sequencing numbers, the ammeter address corresponds to the sequencing numbers one by one, and sequencing is conducted on the sequencing numbers by using a sequencing algorithm to obtain sequencing numbers which are sequentially arranged;
storing the ordered numbers in sequence and the corresponding modes of the ammeter addresses and the ordered numbers by using a distributed storage technology;
obtaining a query number of the digital ammeter, obtaining a sequencing number consistent with the query number by using a binary search method, calling an ammeter address corresponding to the sequencing number, and carrying out data query on the digital ammeter with the ammeter address;
the electric meter acquisition terminal acquires various data in the digital electric meter;
when the digital electric meter is additionally arranged, at least one digital electric meter is arranged, a new electric meter address is obtained by the newly arranged digital electric meter, a new ordering number is allocated to the new electric meter address by the digital allocation table, the new ordering number is ordered by using an ordering algorithm, a first ordering number in sequence is obtained, and the tail end of the ordering number in sequence is inserted into the first ordering number in sequence.
Preferably, the assigning the ranking number to the ammeter address by the number assignment table includes the steps of:
the digits are arranged in the order from small to large in the digit distribution table, and the digit distribution table distributes sequencing digits for the ammeter addresses according to the digit arrangement order;
the number allocation table marks the allocated numbers as occupied states;
when the digit allocation table allocates the ordered digits, counting the maximum digits in the occupied state, and superposing one on the maximum digits to obtain digits to be allocated;
and allocating the numbers to be allocated to the ammeter addresses, and marking the numbers to be allocated as occupied states.
Preferably, the sorting numbers using the sorting algorithm includes the steps of:
obtaining an ordering number and an ammeter address totality corresponding to the ordering number, wherein the ordering number is arranged along with the ammeter address in disorder;
acquiring an unordered sequence of sequencing numbers to generate an empty sequence of sequence numbers;
taking a second ordering number from the disordered sequence, and placing the second ordering number in the ordered sequence;
taking a third ordering number from the disordered sequence, inserting the third ordering number into the ordered sequence, comparing the third ordering number with the numbers in the ordered sequence, finding two adjacent numbers smaller than the third ordering number and larger than the third ordering number, and arranging the third ordering number between the two adjacent numbers;
if the numbers in the sequence number columns are smaller than the third sequencing number, the third sequencing number is arranged at the tail end of the sequence number columns;
if the numbers in the sequence number columns are all larger than the third sequencing number, the third sequencing number is arranged at the head end of the sequence number columns;
sequentially taking the remaining sequence numbers in the disordered sequence, and inserting the remaining sequence numbers into the sequence number according to the method of inserting the third sequence numbers into the sequence number until the disordered sequence becomes a null sequence.
Preferably, the step of obtaining the ranking number consistent with the query number by using the binary search method comprises the following steps:
obtaining the query numbers of the digital ammeter, obtaining the sequence-arranged sequencing numbers, and taking the sequence-arranged sequencing numbers as a query number sequence;
performing binary inquiry, and comparing the inquiry number with a fourth sorting number in the middle of the sequentially arranged sorting numbers;
if the query number is equal to the fourth order number, completing the query;
if the query number is greater than the fourth sequence number, deleting the sequence number smaller than the fourth sequence number in the query number sequence to obtain a new query number sequence;
if the query number is smaller than the fourth sequence number, deleting the sequence number larger than the fourth sequence number in the query number sequence to obtain a new query number sequence;
the binary query is continued for the new query number sequence until a fifth ordered number is found that is consistent with the query number.
Preferably, the data query on the digital ammeter where the ammeter address is located includes the following steps:
acquiring the number of a digital ammeter, the meter reading time, the consumed electricity charge and various data in the digital ammeter, wherein the ammeter address is located;
the acquired meter number, meter reading time, consumed electricity charge and various data in the digital ammeter are paired to generate a form;
the data is summarized and transmitted to a data concentrator, and the data concentrator is transmitted to a meter reading master station through a power transmission line.
Preferably, the data acquisition is performed by cooperation of the inner part of the ammeter acquisition terminal specifically as follows:
the digital ammeter adopts an electromagnetic electric energy meter, a photoelectric module or a sensor is arranged in the meter, and the photoelectric module or the sensor is utilized to convert data of the electric energy meter into electric signals and output the electric signals through an electric power transmission line;
the data acquisition device synchronously acquires electric quantity pulse information of a plurality of digital electric meters, the electric quantity pulse information is buffered, signals are transmitted to the concentrator along a low-voltage power grid by means of an electric power transmission line, the meter reading main station sends instructions to the data acquisition device, and the data acquisition device sends instructions such as power failure, meter reading and the like to the charging terminal;
the power transmission line modulates the data signal transmitted by the data acquisition device, and reduces the error rate of channel transmission;
the data concentrator is arranged in a distribution station area of the cell, and sends a meter reading instruction to the data collector, and the data of the charging terminal is transferred to the meter reading main station by using the power transmission line after being transferred;
the meter reading main station uses the communication network to store electric quantity data in a classified mode, checks the copying time, sets user numbers and the meter reading time, issues the copying instruction, counts and calculates the price, and finishes electric charge collection, line loss calculation and load control.
Preferably, the electric meter acquisition terminal acquires various data in the digital electric meter as follows:
the ammeter acquisition terminal acquires and measures active power, forward active power and reverse active power;
the electric meter acquisition terminal can time-share and measure the electric quantity of each period of the peak, the flat and the valley, and the corresponding rate is set for different periods.
Preferably, the storing the sequentially arranged order numbers and the correspondence between the ammeter addresses and the order numbers using the distributed storage technology includes the following steps:
acquiring sequentially arranged sequencing numbers and a corresponding mode of ammeter addresses and sequencing numbers;
setting a data replication and redundancy backup strategy in a distributed database, and adopting a master-slave replication or multi-master replication mode to store data in a plurality of nodes in a scattered manner, wherein each node in the distributed backup has data integrity and recovery capacity;
adopting a distributed processing technology to realize data consistency and synchronization in a distributed database;
and (3) implementing load balancing and performance optimization strategies in the distributed database by adopting a data fragment routing method.
An automatic meter searching and collecting system of an ammeter collecting terminal is used for realizing the automatic meter searching and collecting method of the ammeter collecting terminal, and comprises the following steps:
the electric meter acquisition module is used for distributing electric meter addresses to the digital electric meters, generating digital distribution meters and acquiring various data in the digital electric meters;
the sorting number distribution module is used for distributing sorting numbers to the ammeter addresses;
the digital ordering module uses an ordering algorithm to order the ordered numbers to obtain ordered numbers which are ordered sequentially;
the ammeter address inquiry module is used for calling ammeter addresses corresponding to the ordering numbers and inquiring data of the digital ammeter where the ammeter address is located;
the electric meter adding module is used for distributing new ordering numbers to the new electric meter addresses when the digital electric meter is added, and sequentially inserting the new ordering numbers into the ordering numbers which are sequentially arranged;
and the data storage module is used for storing the ordered numbers which are sequentially arranged and the corresponding modes of the ammeter addresses and the ordered numbers by using a distributed storage technology.
Compared with the prior art, the invention has the beneficial effects that:
through setting up sequencing digital distribution module, digital sequencing module, ammeter address inquiry module and ammeter add the module, can avoid adopting the mode of traversal address to search for the table when searching for the table inquiry, use the bipartite search method as the substitution, can reduce search frequency by a wide margin, when coping with a large amount of electric energy meters, can effectively reduce search complexity, and then this ammeter acquisition terminal carries out the time of searching for the table and reduce by a wide margin, promote search efficiency, and ammeter add the module can be with newly-increased digital ammeter according to the distribution mode access system in, make whole system still can search for the table according to original mode, and then promoted the suitability of system.
Drawings
FIG. 1 is a schematic flow chart of an automatic meter searching and collecting method of an ammeter collecting terminal;
FIG. 2 is a schematic diagram of a digital flow chart of the assignment and ranking of addresses of electric meters according to the present invention;
FIG. 3 is a schematic diagram of a sorting flow for sorting digits using a sorting algorithm according to the present invention;
FIG. 4 is a schematic diagram of a flow chart of obtaining ordered numbers consistent with query numbers using a binary search method of the present invention.
Detailed Description
The following description is presented to enable one of ordinary skill in the art to make and use the invention. The preferred embodiments in the following description are by way of example only and other obvious variations will occur to those skilled in the art.
Referring to fig. 1, an automatic meter searching and collecting method of an electric meter collecting terminal includes:
the meter reading main station, the data concentrator, the power transmission line, the data collector, the digital electric meter and the charging terminal form an electric meter collecting terminal, and the inside of the electric meter collecting terminal is matched with the electric meter to collect data;
the meter reading main station transmits a control instruction by using a GPRS channel, and receives data acquired by the ammeter through a GSM data transmission channel;
the ammeter acquisition terminal allocates an ammeter address to the digital ammeter;
the electric meter acquisition terminal generates a digital distribution table, the digital distribution table sequentially stores at least one sort number, the sort number is a natural number sequence with 1 as the beginning, the number of the sort number is larger than a preset value, and the digital distribution table distributes the sort number to the electric meter address;
the method comprises the steps that an ammeter address obtains sequencing numbers, the ammeter address corresponds to the sequencing numbers one by one, and sequencing is conducted on the sequencing numbers by using a sequencing algorithm to obtain sequencing numbers which are sequentially arranged;
storing the ordered numbers in sequence and the corresponding modes of the ammeter addresses and the ordered numbers by using a distributed storage technology;
obtaining a query number of the digital ammeter, obtaining a sequencing number consistent with the query number by using a binary search method, calling an ammeter address corresponding to the sequencing number, and carrying out data query on the digital ammeter with the ammeter address;
the electric meter acquisition terminal acquires various data in the digital electric meter;
when the digital electric meter is additionally arranged, at least one digital electric meter is arranged, a new electric meter address is obtained by the newly arranged digital electric meter, a new ordering number is allocated to the new electric meter address by the digital allocation table, the new ordering number is ordered by using an ordering algorithm, a first ordering number in sequence is obtained, and the tail end of the ordering number in sequence is inserted into the first ordering number in sequence.
Referring to fig. 2, the assignment of the ranking numbers to the electric meter addresses by the number assignment table includes the steps of:
the digits are arranged in the order from small to large in the digit distribution table, and the digit distribution table distributes sequencing digits for the ammeter addresses according to the digit arrangement order;
the number allocation table marks the allocated numbers as occupied states;
when the digit allocation table allocates the ordered digits, counting the maximum digits in the occupied state, and superposing one on the maximum digits to obtain digits to be allocated;
assigning numbers to be assigned to ammeter addresses, and marking the numbers to be assigned as occupied states;
the digit allocation table allocates and sorts digits to the ammeter addresses mainly for sequentially using and allocating digits in the digit allocation table, so that the digits allocated subsequently and the digits allocated subsequently can form a continuous limited natural number sequence with 1 as the head, and a binary search method is used subsequently;
referring to FIG. 3, using a ranking algorithm to rank ranking numbers includes the steps of:
obtaining an ordering number and an ammeter address totality corresponding to the ordering number, wherein the ordering number is arranged along with the ammeter address in disorder;
acquiring an unordered sequence of sequencing numbers to generate an empty sequence of sequence numbers;
taking a second ordering number from the disordered sequence, and placing the second ordering number in the ordered sequence;
taking a third ordering number from the disordered sequence, inserting the third ordering number into the ordered sequence, comparing the third ordering number with the numbers in the ordered sequence, finding two adjacent numbers smaller than the third ordering number and larger than the third ordering number, and arranging the third ordering number between the two adjacent numbers;
if the numbers in the sequence number columns are smaller than the third sequencing number, the third sequencing number is arranged at the tail end of the sequence number columns;
if the numbers in the sequence number columns are all larger than the third sequencing number, the third sequencing number is arranged at the head end of the sequence number columns;
sequentially taking the remaining sequence numbers in the disordered sequence, and inserting the remaining sequence numbers into the sequence number according to a method for inserting the third sequence numbers into the sequence number until the disordered sequence becomes a null sequence;
the ordering algorithm is used for ordering the ordering digits because the ammeter addresses are in one-to-one correspondence with the ordering digits, so that after the ordering digits are ordered, the positions of the ordering digits are determined, so that the corresponding ammeter addresses can be called as long as the corresponding ordering digits can be found out quickly, the ammeter addresses can be called quickly, data acquisition is carried out on the appointed ammeter addresses, the ordering method only needs to be operated once, then the ordering results are stored, and the ordering method can be directly called when in use.
Referring to FIG. 4, using a binary search method, obtaining a ranking number that is consistent with the query number includes the steps of:
obtaining the query numbers of the digital ammeter, obtaining the sequence-arranged sequencing numbers, and taking the sequence-arranged sequencing numbers as a query number sequence;
performing binary inquiry, and comparing the inquiry number with a fourth sorting number in the middle of the sequentially arranged sorting numbers;
if the query number is equal to the fourth order number, completing the query;
if the query number is greater than the fourth sequence number, deleting the sequence number smaller than the fourth sequence number in the query number sequence to obtain a new query number sequence;
if the query number is smaller than the fourth sequence number, deleting the sequence number larger than the fourth sequence number in the query number sequence to obtain a new query number sequence;
continuing to perform binary query on the new query number sequence until a fifth ordering number consistent with the query number is found;
the principle of obtaining the ordered numbers consistent with the query numbers by using a binary search method is as follows: the number ammeter inquiry digits necessarily belong to one of the inquiry digit columns, and because the inquiry digit columns are sequential and the position of each digit in the inquiry digit columns is fixed, the fourth sequencing digits in the middle position of the inquiry digit columns can be directly selected for comparison with the inquiry digits, and because the inquiry digit columns are arranged in sequence from small to large, if the inquiry digits are larger than the fourth sequencing digits, the inquiry digits are necessarily positioned in the digits arranged after the fourth sequencing digits in the inquiry digit columns, and therefore sequencing digits smaller than the fourth sequencing digits are deleted in the inquiry digit columns;
if the query number is smaller than the fourth ranking number, the query number is necessarily located in the number arranged before the fourth ranking number in the query number sequence, so that the ranking number larger than the fourth ranking number is deleted in the query number sequence;
obtaining a new query sequence, halving the number of digits in the new query sequence, adopting the same operation to continuously obtain an updated query sequence, and searching a fifth ordering digit consistent with the query digit in the query sequence in a limited step as the query sequence is limited, calling an ammeter address corresponding to the fifth ordering digit, and further collecting data;
in the searching process, the searching number sequence is halved each time, the reduction speed is reduced in an exponential level, and searching is carried out by using the traversal address, so that each ammeter address needs to be searched, and the effect of reducing the searching complexity is obvious.
The data query of the digital ammeter with the ammeter address comprises the following steps:
acquiring the number of a digital ammeter, the meter reading time, the consumed electricity charge and various data in the digital ammeter, wherein the ammeter address is located;
the acquired meter number, meter reading time, consumed electricity charge and various data in the digital ammeter are paired to generate a form;
the data is summarized and transmitted to a data concentrator, and the data concentrator is transmitted to a meter reading master station through a power transmission line.
The data acquisition is carried out by cooperation of the inner parts of the ammeter acquisition terminal specifically as follows:
the digital ammeter adopts an electromagnetic electric energy meter, a photoelectric module or a sensor is arranged in the meter, and the photoelectric module or the sensor is utilized to convert data of the electric energy meter into electric signals and output the electric signals through an electric power transmission line;
the data acquisition device synchronously acquires electric quantity pulse information of a plurality of digital electric meters, the electric quantity pulse information is buffered, signals are transmitted to the concentrator along a low-voltage power grid by means of an electric power transmission line, the meter reading main station sends instructions to the data acquisition device, and the data acquisition device sends instructions such as power failure, meter reading and the like to the charging terminal;
the power transmission line modulates the data signal transmitted by the data acquisition device, and reduces the error rate of channel transmission;
the data concentrator is arranged in a distribution station area of the cell, and sends a meter reading instruction to the data collector, and the data of the charging terminal is transferred to the meter reading main station by using the power transmission line after being transferred;
the meter reading main station uses the communication network to store electric quantity data in a classified mode, checks the copying time, sets user numbers and the meter reading time, issues the copying instruction, counts and calculates the price, and finishes electric charge collection, line loss calculation and load control.
The electric meter acquisition terminal acquires various data in the digital electric meter as follows:
the ammeter acquisition terminal acquires and measures active power, forward active power and reverse active power;
the electric meter acquisition terminal can time-share and measure the electric quantity of each period of the peak, the flat and the valley, and the corresponding rate is set for different periods.
Storing the ordered digits of the order and the correspondence between the meter addresses and the ordered digits using a distributed storage technique comprises the steps of:
acquiring sequentially arranged sequencing numbers and a corresponding mode of ammeter addresses and sequencing numbers;
setting a data replication and redundancy backup strategy in a distributed database, and adopting a master-slave replication or multi-master replication mode to store data in a plurality of nodes in a scattered manner, wherein each node in the distributed backup has data integrity and recovery capacity;
adopting a distributed processing technology to realize data consistency and synchronization in a distributed database;
and (3) implementing load balancing and performance optimization strategies in the distributed database by adopting a data fragment routing method.
An automatic meter searching and collecting system of an ammeter collecting terminal is used for realizing the automatic meter searching and collecting method of the ammeter collecting terminal, and comprises the following steps:
the electric meter acquisition module is used for distributing electric meter addresses to the digital electric meters, generating digital distribution meters and acquiring various data in the digital electric meters;
the sorting number distribution module is used for distributing sorting numbers to the ammeter addresses;
the digital ordering module uses an ordering algorithm to order the ordered numbers to obtain ordered numbers which are ordered sequentially;
the ammeter address inquiry module is used for calling ammeter addresses corresponding to the ordering numbers and inquiring data of the digital ammeter where the ammeter address is located;
the electric meter adding module is used for distributing new ordering numbers to the new electric meter addresses when the digital electric meter is added, and sequentially inserting the new ordering numbers into the ordering numbers which are sequentially arranged;
and the data storage module is used for storing the ordered numbers which are sequentially arranged and the corresponding modes of the ammeter addresses and the ordered numbers by using a distributed storage technology.
The working process of the automatic meter searching and collecting system of the ammeter collecting terminal is as follows:
step one: the electric meter acquisition module allocates an electric meter address for the digital electric meter, and generates a digital allocation meter;
step two: the ordering digital distribution module distributes ordering numbers to the ammeter addresses, the ammeter addresses are in one-to-one correspondence with the ordering numbers, and the digital ordering module uses an ordering algorithm to order the ordering numbers to obtain ordered ordering numbers;
step three: the data storage module uses a distributed storage technology to store the ordered numbers which are sequentially arranged and the corresponding modes of the ammeter addresses and the ordered numbers;
step four: the ammeter address inquiring module obtains an ordering number consistent with the inquiring number by using a binary search method, calls an ammeter address corresponding to the ordering number, and inquires data of a digital ammeter where the ammeter address is located;
step five: the electric meter acquisition module acquires various data in the digital electric meter;
step six: the ammeter adding module is used for installing at least one digital ammeter, calling the sorting digital distribution module to distribute new sorting numbers for new ammeter addresses, and sequentially inserting the new sorting numbers into the sorting numbers which are sequentially arranged.
Still further, the present solution also proposes a storage medium having a computer readable program stored thereon, the computer readable program executing the automatic meter searching and collecting method of the above-mentioned meter collecting terminal when being called.
It is understood that the storage medium may be a magnetic medium, e.g., floppy disk, hard disk, magnetic tape; optical media such as DVD; or a semiconductor medium such as a solid state disk SolidStateDisk, SSD, etc.
In summary, the invention has the advantages that: through setting up sequencing digital distribution module, digital sequencing module, ammeter address inquiry module and ammeter add the module, can avoid adopting the mode of traversal address to search for the table when searching for the table inquiry, use the bipartite search method as the substitution, can reduce search frequency by a wide margin, when coping with a large amount of electric energy meters, can effectively reduce search complexity, and then this ammeter acquisition terminal carries out the time of searching for the table and reduce by a wide margin, promote search efficiency, and ammeter add the module can be with newly-increased digital ammeter according to the distribution mode access system in, make whole system still can search for the table according to original mode, and then promoted the suitability of system.
The foregoing has shown and described the basic principles, principal features and advantages of the invention. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, and that the above embodiments and descriptions are merely illustrative of the principles of the present invention, and various changes and modifications may be made therein without departing from the spirit and scope of the invention, which is defined by the appended claims. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (9)

1. An automatic meter searching and collecting method of an ammeter collecting terminal is characterized by comprising the following steps:
the meter reading main station, the data concentrator, the power transmission line, the data collector, the digital electric meter and the charging terminal form an electric meter collecting terminal, and the inside of the electric meter collecting terminal is matched with the electric meter to collect data;
the meter reading main station transmits a control instruction by using a GPRS channel, and receives data acquired by the ammeter through a GSM data transmission channel;
the ammeter acquisition terminal allocates an ammeter address to the digital ammeter;
the electric meter acquisition terminal generates a digital distribution table, the digital distribution table sequentially stores at least one sort number, the sort number is a natural number sequence with 1 as the beginning, the number of the sort number is larger than a preset value, and the digital distribution table distributes the sort number to the electric meter address;
the method comprises the steps that an ammeter address obtains sequencing numbers, the ammeter address corresponds to the sequencing numbers one by one, and sequencing is conducted on the sequencing numbers by using a sequencing algorithm to obtain sequencing numbers which are sequentially arranged;
storing the ordered numbers in sequence and the corresponding modes of the ammeter addresses and the ordered numbers by using a distributed storage technology;
obtaining a query number of the digital ammeter, obtaining a sequencing number consistent with the query number by using a binary search method, calling an ammeter address corresponding to the sequencing number, and carrying out data query on the digital ammeter with the ammeter address;
the electric meter acquisition terminal acquires various data in the digital electric meter;
when the digital electric meter is additionally arranged, at least one digital electric meter is arranged, a new electric meter address is obtained by the newly arranged digital electric meter, a new ordering number is allocated to the new electric meter address by the digital allocation table, the new ordering number is ordered by using an ordering algorithm, a first ordering number in sequence is obtained, and the tail end of the ordering number in sequence is inserted into the first ordering number in sequence.
2. The automatic meter searching and collecting method of the meter collecting terminal according to claim 1, wherein the number allocation table allocates the sorting numbers to the meter addresses, comprising the steps of:
the digits are arranged in the order from small to large in the digit distribution table, and the digit distribution table distributes sequencing digits for the ammeter addresses according to the digit arrangement order;
the number allocation table marks the allocated numbers as occupied states;
when the digit allocation table allocates the ordered digits, counting the maximum digits in the occupied state, and superposing one on the maximum digits to obtain digits to be allocated;
and allocating the numbers to be allocated to the ammeter addresses, and marking the numbers to be allocated as occupied states.
3. An automatic meter searching and collecting method of an electric meter collecting terminal according to claim 2, wherein said sorting the sorting numbers using the sorting algorithm comprises the steps of:
obtaining an ordering number and an ammeter address totality corresponding to the ordering number, wherein the ordering number is arranged along with the ammeter address in disorder;
acquiring an unordered sequence of sequencing numbers to generate an empty sequence of sequence numbers;
taking a second ordering number from the disordered sequence, and placing the second ordering number in the ordered sequence;
taking a third ordering number from the disordered sequence, inserting the third ordering number into the ordered sequence, comparing the third ordering number with the numbers in the ordered sequence, finding two adjacent numbers smaller than the third ordering number and larger than the third ordering number, and arranging the third ordering number between the two adjacent numbers;
if the numbers in the sequence number columns are smaller than the third sequencing number, the third sequencing number is arranged at the tail end of the sequence number columns;
if the numbers in the sequence number columns are all larger than the third sequencing number, the third sequencing number is arranged at the head end of the sequence number columns;
sequentially taking the remaining sequence numbers in the disordered sequence, and inserting the remaining sequence numbers into the sequence number according to the method of inserting the third sequence numbers into the sequence number until the disordered sequence becomes a null sequence.
4. The automatic meter searching and collecting method of an electric meter collecting terminal according to claim 3, wherein said obtaining the ranking number consistent with the query number by using the binary search method comprises the steps of:
obtaining the query numbers of the digital ammeter, obtaining the sequence-arranged sequencing numbers, and taking the sequence-arranged sequencing numbers as a query number sequence;
performing binary inquiry, and comparing the inquiry number with a fourth sorting number in the middle of the sequentially arranged sorting numbers;
if the query number is equal to the fourth order number, completing the query;
if the query number is greater than the fourth sequence number, deleting the sequence number smaller than the fourth sequence number in the query number sequence to obtain a new query number sequence;
if the query number is smaller than the fourth sequence number, deleting the sequence number larger than the fourth sequence number in the query number sequence to obtain a new query number sequence;
the binary query is continued for the new query number sequence until a fifth ordered number is found that is consistent with the query number.
5. The automatic meter searching and collecting method of the meter collecting terminal according to claim 4, wherein the data searching of the digital meter where the meter address is located comprises the following steps:
acquiring the number of a digital ammeter, the meter reading time, the consumed electricity charge and various data in the digital ammeter, wherein the ammeter address is located;
the acquired meter number, meter reading time, consumed electricity charge and various data in the digital ammeter are paired to generate a form;
the data is summarized and transmitted to a data concentrator, and the data concentrator is transmitted to a meter reading master station through a power transmission line.
6. The automatic meter searching and collecting method of the electric meter collecting terminal according to claim 5, wherein the data collecting is carried out by the inner part of the electric meter collecting terminal in a matching way specifically as follows:
the digital ammeter adopts an electromagnetic electric energy meter, a photoelectric module or a sensor is arranged in the meter, and the photoelectric module or the sensor is utilized to convert data of the electric energy meter into electric signals and output the electric signals through an electric power transmission line;
the data acquisition device synchronously acquires electric quantity pulse information of a plurality of digital electric meters, the electric quantity pulse information is buffered, signals are transmitted to the concentrator along a low-voltage power grid by means of an electric power transmission line, the meter reading main station sends instructions to the data acquisition device, and the data acquisition device sends instructions such as power failure, meter reading and the like to the charging terminal;
the power transmission line modulates the data signal transmitted by the data acquisition device, and reduces the error rate of channel transmission;
the data concentrator is arranged in a distribution station area of the cell, and sends a meter reading instruction to the data collector, and the data of the charging terminal is transferred to the meter reading main station by using the power transmission line after being transferred;
the meter reading main station uses the communication network to store electric quantity data in a classified mode, checks the copying time, sets user numbers and the meter reading time, issues the copying instruction, counts and calculates the price, and finishes electric charge collection, line loss calculation and load control.
7. The automatic meter searching and collecting method of the electric meter collecting terminal according to claim 6, wherein the electric meter collecting terminal collects various data in the digital electric meter as follows:
the ammeter acquisition terminal acquires and measures active power, forward active power and reverse active power;
the electric meter acquisition terminal can time-share and measure the electric quantity of each period of the peak, the flat and the valley, and the corresponding rate is set for different periods.
8. The automatic meter searching and collecting method of claim 7, wherein the storing the sequentially arranged order numbers and the correspondence between the meter addresses and the order numbers using the distributed storage technology comprises the steps of:
acquiring sequentially arranged sequencing numbers and a corresponding mode of ammeter addresses and sequencing numbers;
setting a data replication and redundancy backup strategy in a distributed database, and adopting a master-slave replication or multi-master replication mode to store data in a plurality of nodes in a scattered manner, wherein each node in the distributed backup has data integrity and recovery capacity;
adopting a distributed processing technology to realize data consistency and synchronization in a distributed database;
and (3) implementing load balancing and performance optimization strategies in the distributed database by adopting a data fragment routing method.
9. An automatic meter searching and collecting system of an electric meter collecting terminal, for implementing the automatic meter searching and collecting method of the electric meter collecting terminal according to any one of claims 1-8, comprising:
the electric meter acquisition module is used for distributing electric meter addresses to the digital electric meters, generating digital distribution meters and acquiring various data in the digital electric meters;
the sorting number distribution module is used for distributing sorting numbers to the ammeter addresses;
the digital ordering module uses an ordering algorithm to order the ordered numbers to obtain ordered numbers which are ordered sequentially;
the ammeter address inquiry module is used for calling ammeter addresses corresponding to the ordering numbers and inquiring data of the digital ammeter where the ammeter address is located;
the electric meter adding module is used for distributing new ordering numbers to the new electric meter addresses when the digital electric meter is added, and sequentially inserting the new ordering numbers into the ordering numbers which are sequentially arranged;
and the data storage module is used for storing the ordered numbers which are sequentially arranged and the corresponding modes of the ammeter addresses and the ordered numbers by using a distributed storage technology.
CN202311377438.7A 2023-10-24 2023-10-24 Automatic meter searching and collecting method and system of ammeter collecting terminal Active CN117119334B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311377438.7A CN117119334B (en) 2023-10-24 2023-10-24 Automatic meter searching and collecting method and system of ammeter collecting terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311377438.7A CN117119334B (en) 2023-10-24 2023-10-24 Automatic meter searching and collecting method and system of ammeter collecting terminal

Publications (2)

Publication Number Publication Date
CN117119334A CN117119334A (en) 2023-11-24
CN117119334B true CN117119334B (en) 2024-01-02

Family

ID=88809546

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311377438.7A Active CN117119334B (en) 2023-10-24 2023-10-24 Automatic meter searching and collecting method and system of ammeter collecting terminal

Country Status (1)

Country Link
CN (1) CN117119334B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663061A (en) * 2012-03-30 2012-09-12 Ut斯达康通讯有限公司 Quick sorting and searching device for high-capacity lookup table and method for implementing quick sorting and searching device
CN203535784U (en) * 2013-09-24 2014-04-09 国家电网公司 Intelligent meter reading system applied to power supply system
CN111212104A (en) * 2019-12-05 2020-05-29 宁波三星智能电气有限公司 Automatic meter searching method for electric meter acquisition terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7178134B2 (en) * 2003-04-24 2007-02-13 International Business Machines Corporation Method and apparatus for resolving memory allocation trace data in a computer system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663061A (en) * 2012-03-30 2012-09-12 Ut斯达康通讯有限公司 Quick sorting and searching device for high-capacity lookup table and method for implementing quick sorting and searching device
CN203535784U (en) * 2013-09-24 2014-04-09 国家电网公司 Intelligent meter reading system applied to power supply system
CN111212104A (en) * 2019-12-05 2020-05-29 宁波三星智能电气有限公司 Automatic meter searching method for electric meter acquisition terminal

Also Published As

Publication number Publication date
CN117119334A (en) 2023-11-24

Similar Documents

Publication Publication Date Title
CN107402976B (en) A method and system for power grid multi-source data fusion based on multi-heterogeneous model
CN109582667A (en) A kind of multiple database mixing storage method and system based on power regulation big data
CN104317800A (en) Hybrid storage system and method for mass intelligent power utilization data
CN103077082A (en) Method and system for distributing data center load and saving energy during virtual machine migration
CN109617099B (en) Virtual energy storage coordination control system and method thereof
CN103412889A (en) Data storage and query method of intelligent electric meter and system thereof
CN106408207A (en) Modeling method and system for secondary virtual loop of intelligent substation
CN108183869A (en) A kind of electric quantity data acquisition system based on Distributed Message Queue
CN105208622A (en) High-efficiency dynamic automatic-maintenance routing list structure and routing list management method
CN201859537U (en) Multifunctional bandwidth power carrier concentrator
CN116231860A (en) Cloud edge end cooperation-based intelligent power load identification system, method and equipment
CN101853564A (en) Wireless remote meter reading and electrical energy management system
CN109003432A (en) Information copy reading method based on power-line carrier communication system
CN107967301B (en) A storage and query method and device for monitoring data of power cable tunnel
CN117119334B (en) Automatic meter searching and collecting method and system of ammeter collecting terminal
CN111124313A (en) Data reading and writing method and device for power acquisition terminal and electronic equipment
CN113256444A (en) Low-voltage transformer area household transformation relation identification method and device
CN114691038A (en) Data storage method and device of power data center
CN110765074A (en) Method and system for quickly accessing electric load curve data of acquisition terminal
CN107864097B (en) A method and system for distributing electricity consumption data
CN116865264B (en) Intelligent distribution power supply method, system and storage medium for transformer substation
CN118445959A (en) Graph database-based power distribution network graph model modeling method and system
CN108133588B (en) Narrowband PLC power consumption information collection system based on the realization of the collection index
CN109003433A (en) A kind of information copy module and its application
CN103399545A (en) Real-time library management module used for distributed control system

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