CN116456221B - Data reading method, reading device and reading system - Google Patents

Data reading method, reading device and reading system Download PDF

Info

Publication number
CN116456221B
CN116456221B CN202310715518.2A CN202310715518A CN116456221B CN 116456221 B CN116456221 B CN 116456221B CN 202310715518 A CN202310715518 A CN 202310715518A CN 116456221 B CN116456221 B CN 116456221B
Authority
CN
China
Prior art keywords
reading
preset
read
readable
data
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
CN202310715518.2A
Other languages
Chinese (zh)
Other versions
CN116456221A (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.)
Beijing Smartchip Microelectronics Technology Co Ltd
Beijing Smartchip Semiconductor Technology Co Ltd
Original Assignee
Beijing Smartchip Microelectronics Technology Co Ltd
Beijing Smartchip Semiconductor 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 Beijing Smartchip Microelectronics Technology Co Ltd, Beijing Smartchip Semiconductor Technology Co Ltd filed Critical Beijing Smartchip Microelectronics Technology Co Ltd
Priority to CN202310715518.2A priority Critical patent/CN116456221B/en
Publication of CN116456221A publication Critical patent/CN116456221A/en
Application granted granted Critical
Publication of CN116456221B publication Critical patent/CN116456221B/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
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the invention provides a data reading method, a data reading device and a data reading system, and belongs to the field of electric power. The reading method comprises the following steps: reading the data to be read for each round of reading, and aiming at the readable modules which do not belong to a preset gray list in a preset readable module set, reading the data to be read, wherein the data quantity to be read of the data to be read in the readable modules is continuously changed in a preset reading time period; and under the condition that one round of reading of the data to be read is completed, updating the preset gray list based on the data quantity to be read. Thereby, the reading efficiency is improved.

Description

Data reading method, reading device and reading system
Technical Field
The invention relates to the field of electric power, in particular to a data reading method, a data reading device and a data reading system.
Background
In the current low-voltage electricity consumption information acquisition system, because the scale of a platform area is different and the terminal designs and performances of each batch are different, if the electricity consumption information is read in a traditional mode, the master station is difficult to complete the acquisition of minute-level electricity consumption data, and the conditions of long reading time and incomplete data points are easy to occur.
Disclosure of Invention
The embodiment of the invention aims to provide a data reading method, a data reading device and a data reading system, which can solve or at least partially solve the problems.
In order to achieve the above object, an aspect of an embodiment of the present invention provides a reading method for reading data to be read, the reading method including: reading the data to be read for each round, and aiming at a readable module which does not belong to a preset gray list in a preset readable module set, reading the data to be read, wherein the data quantity to be read of the data to be read in the readable module is continuously changed in a preset reading time period; and under the condition that one round of reading of the data to be read is completed, updating the preset gray list based on the data quantity to be read.
Optionally, the updating the preset gray list based on the data amount to be read includes: based on the data quantity to be read, sequencing the readable modules in the to-be-sequenced readable module set, wherein the to-be-sequenced readable module set comprises: the preset readable module set is not the readable module of the preset gray list or all the readable modules in the preset readable module set; and updating the preset ash list based on the arranged order.
Optionally, the updating the preset ash list based on the ordered sequence includes: adding the readable modules which are continuously preset times and are positioned in a first preset range of the arranged sequence into the preset gray list under the condition that the to-be-ordered readable module set comprises the readable modules which do not belong to the preset gray list in the preset readable module set, wherein the first preset range comprises the first bit of the arranged sequence and the sequence is uninterrupted in the first preset range; or under the condition that the to-be-sequenced readable module set comprises all the readable modules in the preset readable module set, updating the readable modules in the preset gray list to the readable modules in a second preset range of the sequenced sequence, wherein the second preset range comprises the last bit of the sequenced sequence and the sequence is uninterrupted in the second preset range.
Optionally, before updating the preset ash list based on the ordered sequence, the updating the preset ash list based on the data amount to be read further includes: and updating the arranged sequence based on the storage capacity of the readable module.
Optionally, before updating the preset ash list based on the data amount to be read, the reading method further includes: judging whether the readable module in the preset gray list can be read or not based on a preset gray list readable strategy; and under the condition that the readable module in the preset gray list can be read, reading the data to be read of the readable module in the preset gray list during the period that the readable module in the preset gray list can be read, and removing the readable module which can be read to the data to be read from the preset gray list.
Optionally, the preset gray list readable policy includes: under the condition that the time for reading the data to be read in one round does not reach the preset reading time interval, the readable module in the preset gray list can be read; and/or reading the readable module in the preset ash list under the condition that the current time is within the preset delay time after the preset reading time period.
Optionally, before updating the preset ash list based on the data amount to be read, the reading method further includes: judging whether all reading is finished; and if the readable module capable of finishing reading is provided under the condition that all reading is not finished, the readable module capable of finishing reading is removed from the preset readable module in a centralized way.
Optionally, before reading the data to be read from the readable module, the reading method further includes: issuing an acquisition configuration instruction to the readable module, wherein the readable module acquires the data to be read according to the acquisition configuration instruction.
Correspondingly, another aspect of the embodiment of the invention provides a reading device for reading data, which comprises: the reading module is used for reading the data to be read for each round, and the data to be read in the readable module is continuously changed in a preset reading time period aiming at the readable module which is not in a preset gray list; and the updating module is used for updating the preset gray list based on the data quantity to be read under the condition that one round of reading of the data to be read is completed.
Optionally, the updating module updates the preset gray list based on the data amount to be read includes: based on the data quantity to be read, sequencing the readable modules in the to-be-sequenced readable module set, wherein the to-be-sequenced readable module set comprises: the preset readable module set is not the readable module of the preset gray list or all the readable modules in the preset readable module set; and updating the preset ash list based on the arranged order.
Optionally, the updating the preset ash list based on the ordered sequence includes: adding the readable modules which are continuously preset times and are positioned in a first preset range of the arranged sequence into the preset gray list under the condition that the to-be-ordered readable module set comprises the readable modules which do not belong to the preset gray list in the preset readable module set, wherein the first preset range comprises the first bit of the arranged sequence and the sequence is uninterrupted in the first preset range; or under the condition that the to-be-sequenced readable module set comprises all the readable modules in the preset readable module set, updating the readable modules in the preset gray list to the readable modules in a second preset range of the sequenced sequence, wherein the second preset range comprises the last bit of the sequenced sequence and the sequence is uninterrupted in the second preset range.
Optionally, the updating module updates the preset ash list based on the data amount to be read further includes: and before updating the preset ash list based on the arranged order, updating the arranged order based on the storage capacity of the readable module.
Optionally, the reading device further includes: the gray list reading module is used for judging whether the readable module in the preset gray list can be read or not based on a preset gray list readable strategy before the preset gray list is updated based on the data quantity to be read; and under the condition that the readable module in the preset gray list can be read, reading the data to be read of the readable module in the preset gray list during the period that the readable module in the preset gray list can be read, and removing the readable module which can be read to the data to be read from the preset gray list.
Optionally, the preset gray list readable policy includes: under the condition that the time for reading the data to be read in one round does not reach the preset reading time interval, the readable module in the preset gray list can be read; and/or reading the readable module in the preset ash list under the condition that the current time is within the preset delay time after the preset reading time period.
Optionally, the reading device further includes: the copying module eliminating module is used for judging whether all copying is finished before the preset gray list is updated based on the data quantity to be copied; and if the readable module capable of finishing reading is provided under the condition that all reading is not finished, the readable module capable of finishing reading is removed from the preset readable module in a centralized way.
Optionally, the reading device further includes: and the issuing module is used for issuing an acquisition configuration instruction to the readable module before reading the data to be read from the readable module, wherein the readable module acquires the data to be read according to the acquisition configuration instruction.
In addition, another aspect of the embodiment of the present invention further provides a reading system for reading data to be read, where the reading system includes: the reading device; and the reading module.
In addition, another aspect of the embodiments of the present invention provides a machine-readable storage medium having stored thereon instructions for causing a machine to perform the above-described reading method.
In addition, another aspect of the embodiment of the present invention provides an electronic device, where the electronic device includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor executes the reading method described above.
According to the technical scheme, the gray list is set, the readable data to be read is read by the readable module outside the gray list based on the gray list, and the gray list is updated according to the data quantity to be read after one round of reading is completed, so that the data quantity to be read is higher when the data to be read is read, the reading time is reduced, and the reading efficiency is improved.
Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows.
Drawings
The accompanying drawings are included to provide a further understanding of embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain, without limitation, the embodiments of the invention. In the drawings:
FIG. 1 is a flow chart of a method for reading data to be read according to an embodiment of the present invention;
fig. 2 is a flow chart of a high frequency data acquisition service provided in another embodiment of the present invention;
FIG. 3 is a schematic diagram of clock synchronization provided by another embodiment of the present invention;
FIG. 4 is a compressed storage flow chart provided by another embodiment of the present invention;
FIG. 5 is a flow chart of performing read management based on a gray list according to another embodiment of the present invention; and
fig. 6 is a block diagram of a data reading device according to another embodiment of the present invention.
Description of the reference numerals
1. A reading module; 2. and updating the module.
Detailed Description
The following describes the detailed implementation of the embodiments of the present invention with reference to the drawings. It should be understood that the detailed description and specific examples, while indicating and illustrating the invention, are not intended to limit the invention.
One aspect of the embodiment of the invention provides a reading method for data to be read. The reading method may include the following.
And for each round of reading the data to be read, aiming at the readable modules which do not belong to the preset gray list in the preset readable module set, reading the data to be read, wherein the data quantity to be read of the data to be read in the readable modules is continuously changed in the preset reading time period. Alternatively, in the embodiment of the present invention, the readable module may be any module capable of reading data to be read therefrom, for example, the readable module may be an STA (Station). Specifically, the reading may be performed by means of communication. Such as carrier communication (Plc carrier communication), wireless communication (RF wireless communication), or a combination of both. Alternatively, in the embodiment of the present invention, the data to be read may be any data that can be read, for example, any data that can be transmitted through communication. Specifically, the data to be read may be electricity consumption data, power generation data, gas data, water consumption data, or the like. In addition, the readable module collects the data to be read from the metering module of the data to be read. The metering module may be any device capable of metering the data to be read, for example, the metering module may be an electricity meter, a water meter, a gas meter, a heat meter, a charging pile, etc. In a preset reading time period, the readable module continuously collects the data to be read from other modules, for example, the metering module collects the data to be read, and the data quantity to be read in the readable module continuously changes. In addition, the preset readable module set comprises all preset readable modules which need to read the data to be read. In addition, aiming at a readable module, the data quantity to be read is estimated as the stock quantity of the data to be read which can be read in the readable module. Specifically, the data amount to be read can be estimated according to the following: time of last reading, current time and acquisition time interval. The collection time interval refers to a time interval during which the data to be read is collected by the readable module. Specifically, for any readable module, the data amount to be read = (last reading time-current time)/(acquisition time interval x effective data length). The effective data is the remaining data of the read data to be read after the head and the tail of the message are removed.
Specifically, one round of reading the data to be read refers to completing one round of reading of the data to be read aiming at the readable modules which do not belong to the preset gray list in the preset readable module set. Optionally, a time point corresponding to reading data to be read can be set for each round of reading; and aiming at a certain time point, reading the data to be read by the readable modules which do not belong to the preset gray list in the preset readable module set, and completing one round of reading the data to be read. In addition, in the embodiment of the invention, the reading time point for reading the data to be read from the readable module can be directly set in advance, and the data to be read can be read by the readable module which does not belong to the preset gray list in a centralized manner according to the set reading time point. Or, the reading start time, the reading end time and the reading time interval of the data to be read are preset, the reading time point of the data to be read is determined according to the set reading start time, the reading end time and the reading time interval, and then the data to be read is read from the readable module according to the determined reading time point.
In addition, the data to be read can be collected by the reading module from the metering module according to preset collection requirements. For example, the preset collection requirements include collection start time and collection end time and collection time interval of the data to be read, and all the readable modules needing to be read are collected according to the preset collection requirements. The acquisition start time, the acquisition end time, and the acquisition time interval may be determined according to the specific situation, and are not limited thereto. For another example, the preset acquisition requirement may be that only the acquisition time interval is set, and the acquisition is performed within 24 hours from the zero point according to the set acquisition time interval. The setting of the reading time point of reading the data to be read from the readable module may be the same as or different from the setting of the collecting requirement of collecting the data to be read from the metering module, so long as the readable module continuously collects the data to be read from the metering module within the preset time period of reading the data to be read from the readable module. Optionally, a reading start time, a reading end time and a reading time interval are set for reading the data to be read from the readable module, and a collection start time, a collection end time and a collection time interval are set for collecting the data to be read from the metering module, wherein the reading start time and the collection start time are the same, the reading end time and the collection end time are the same, and the reading time interval and the collection time interval are the same.
Under the condition that one round of reading of the data to be read is completed, updating the preset gray list based on the data quantity to be read of the readable module, so that the data quantity to be read is higher in priority or the readable module in the preset gray list is the readable module with smaller data quantity to be read. The data quantity to be read of the readable module refers to the estimated data quantity to be read which is not read in the readable module.
According to the technical scheme, the gray list is set, the readable data to be read is read by the readable module outside the gray list based on the gray list, and the gray list is updated according to the data quantity to be read after one round of reading is completed, so that the data quantity to be read is higher when the data to be read is read, the reading time is shortened, and the reading efficiency is improved.
Fig. 1 is a flowchart of a method for reading data to be read according to an embodiment of the present invention. As shown in fig. 1, the reading method includes the following.
In step S10, the data to be read is read for the readable modules not belonging to the preset gray list in the preset readable module set. When reading data to be read for the first time, a preset gray list can be preset. For example, it may be set randomly. For another example, the preset gray list may be set according to the address of the readable module, the amount of data to be read, or the storage capacity. Optionally, sorting is performed according to the addresses or the storage capacities of the readable modules from small to large, and a preset gray list is established by the readable modules with the selected sequence at the last 30% of the sorted sequence. Optionally, sorting according to the data quantity to be read of the readable modules from large to small, and establishing a preset gray list by the readable modules with the selection sequence at the last 30% of the sorted sequence.
In step S11, the preset gray list is updated based on the data amount to be read of the readable module.
In step S12, after finishing a round of reading the data to be read, it is determined whether all reading is finished. If yes, go to step S13. If not, executing step S10, restarting a new round of reading the data to be read, and reading the data to be read based on the updated preset gray list. Optionally, in the embodiment of the present invention, all reading ends may be zero for the data amount to be read in all readable modules.
Optionally, in an embodiment of the present invention, updating the preset gray list based on the amount of data to be read may include the following. Sequencing the readable modules in the to-be-sequenced readable module set based on the data quantity to be read, wherein the to-be-sequenced readable module set comprises: the preset readable modules are not readable modules in a preset gray list or all readable modules in the preset readable module set. And updating the preset gray list based on the arranged sequence.
Optionally, in an embodiment of the present invention, updating the preset ash list based on the ordered sequence may include the following.
Under the condition that the readable module set to be ordered comprises readable modules which do not belong to a preset gray list in the preset readable module set, adding the readable modules which are continuously preset for times and are positioned in a first preset range of the ordered sequence into the preset gray list, wherein the first preset range comprises the first bit of the ordered sequence and the sequence is uninterrupted in the first preset range. The first predetermined range is a range in which the order of the readable modules is continuous, starting from the first bit of the ordered sequence. For example, the first preset range may be the first 30% of the ordered sequence, and if the set of readable modules to be ordered includes 20 readable modules, the first preset range is ordered from the first position to the sixth position, and the order is uninterrupted. The first preset range may be specific to the specific case. In addition, the preset times can be determined according to specific requirements, for example, three times, four times, five times, and the like. For example, the readable modules located in the first 30% of the ordered sequence are added to the preset gray list 3 consecutive times.
Or updating the readable modules included in the preset gray list to readable modules within a second preset range of the arranged order under the condition that the set of readable modules to be ordered comprises all readable modules in the preset readable module set, wherein the second preset range comprises the last bit of the arranged order and the order is uninterrupted within the second preset range. The second predetermined range is a range in which the order of the readable modules is continuous from the last digit of the ordered sequence. For example, the second preset range may be the last 30% of the ordered sequence, and if the set of readable modules to be ordered includes 20 readable modules, the second preset range is the fifteenth to twentieth digits of the ordered sequence, and the order is uninterrupted. The second preset range may be specific to the particular situation.
Optionally, in an embodiment of the present invention, before updating the preset ash list based on the arranged order, updating the preset ash list based on the amount of data to be read may further include the following. The ordered sequence is updated based on the storage capabilities of the readable modules. Alternatively, the ordering of the weak-storage readable modules may be advanced. Specifically, adjustment is made based on the storage capability so that the order in which reading is performed conforms to the storage capability thereof. For example, for a certain readable module, the reading is performed by sorting it to the 3 rd minute according to the sorting order, but the memory capacity is adjusted to the level of reading within the 1 st minute if it is only one minute. In addition, the storage capacity of the readable module reflects the pressure of the read data quantity to the storage space of the readable module, and the read data duty ratio can be used for reflecting the storage capacity, wherein the read data duty ratio is the ratio of the read data quantity to the storage space. Reading the readable modules outside the preset gray list according to the ordered sequence. The readable modules with weak storage capacity can be read first by taking the storage capacity into consideration when the readable modules are sequenced and advancing the sequencing of the readable modules with weak storage capacity, so that the condition that the data are lost due to the coverage of the data caused by weak storage capacity can be relieved, and the condition that the data points are incomplete can be relieved.
Alternatively, in an embodiment of the present invention, the storage capacity may be determined according to the following: the length of the read data, the duty ratio of the read data, the expected time length of the next round of read and the acquisition time interval. The collection time interval refers to a time interval during which the data to be read is collected by the reading module from the metering module. Specifically, for any readable module, storage capacity = effective storage space ++ (effective data length x expected next round read duration ++acquisition time interval); effective storage space = current read data length/current read data ratio. Wherein, aiming at the read data duty ratio of this time, the unit 1 is the whole storage space; the read data duty ratio is the ratio of the read data quantity and the storage space; the length of the read data is the read data quantity. In the embodiment of the invention, the reading time of the next round is expected to be the acquisition time of the next round, and the reading is expected to be performed in the next time period according to the reading sequence. In addition, the length of the data to be transmitted is obtained according to the information uploaded by the readable module.
Optionally, in the embodiment of the present invention, before updating the preset gray list based on the data amount to be read, the reading method may further include the following. Based on a preset gray list readable strategy, judging whether the readable module in the preset gray list can be read. The preset gray list readable strategy defines conditions for reading the readable modules in the preset gray list, and whether the readable modules in the preset gray list can be read is judged according to whether the conditions defined in the preset gray list readable strategy are met or not. Optionally, the preset ash list readable policy may include the following. And under the condition that the time for reading the data to be read in one round of reading is not up to the preset reading time interval, reading the readable module in the preset gray list. The preset reading time interval refers to a preset time interval which can be used for carrying out one round of reading. For example, it may be 1 minute, 2 minutes, 3 minutes, etc. And/or reading the readable module in the preset gray list under the condition that the current time is within the preset lag time after the preset reading time period. The preset reading time period refers to a preset whole reading time period, for example, 9 to 10 points are set for reading, and the 9 to 10 points are the preset reading time period. The preset lag time refers to preset time which can still be read after a preset reading time period. For example, the preset lag time is 30 minutes, and the preset reading time period is 9 to 10 points, and reading can be performed between 10 to 10 points for 30 minutes. Under the condition that the readable module in the preset gray list can be read, reading the data to be read of the readable module in the preset gray list during the period that the readable module in the preset gray list can be read, and removing the readable module which can be read to the data to be read from the preset gray list. Specifically, it may be determined whether a readable period of the readable module in the preset gray list may be read based on a preset gray list readable policy. Specifically, referring to the preset ash list readable policy, in the preset time interval, during the period that the readable module in the preset ash list can be read, the readable module in the preset ash list can be read every time the readable module is read, whether the readable module in the preset ash list is still in the preset time interval is judged, if the readable module is still in the preset time interval, the readable module in the preset ash list is read, otherwise, the readable module in the preset ash list is not read. Or in the preset lag time, in the reading period of the readable modules in the preset gray list, the readable modules in the preset gray list can be read every time, whether the readable modules in the preset gray list are still in the preset lag time is judged, the readable modules in the preset gray list are read in the preset lag time, and otherwise, the readable modules in the preset gray list are not read. Optionally, when reading the readable module in the preset gray list, the readable module may be read according to the order of entering the preset gray list, and first read. Wherein, in the case of presetting a preset gray list based on the order or updating the readable modules included in the preset gray list to readable modules within a second preset range of the ordered order, the order is entered first. In addition, in the embodiment of the invention, the time for reading the data to be read is prolonged by presetting the lag time, and more data to be read of the readable modules can be read by prolonging the reading time, so that the number of the readable modules is increased, and the scale of a platform area is enlarged.
Optionally, in the embodiment of the present invention, before updating the preset gray list based on the data amount to be read, the reading method may further include the following. Judging whether all reading is finished. Optionally, whether all reading ends can also be judged by judging whether the data quantity to be uploaded or the data quantity to be read of all the readable modules in the preset readable module set is zero. For example, in the case of setting a preset reading time period for reading, whether all the readable modules in the preset readable module set are to be read is judged to be zero for the data to be uploaded or the data to be read in the preset reading time period, or whether all the readable modules are read to be 100% is judged to be read to be finished. In addition, whether all reading ends, that is, whether all reading ends may be determined by determining whether the reading end time of the set preset reading period is reached or whether a lag time point (determined based on the preset reading period and the preset lag time) is reached. For example, if the preset reading time period is 9 to 10 points, it is determined whether or not all reading is completed by determining whether or not 10 points are reached. For another example, if the preset reading time period is set to 9 to 10 points and the preset delay time period is set to 30 minutes, it is determined whether or not all reading is completed by determining whether or not the delay time period reaches 10 points for 30 minutes. If the readable module capable of finishing reading is provided under the condition that all reading is not finished, the readable module capable of finishing reading is removed from the preset readable module in a centralized way. The readable module capable of finishing reading is a readable module with data quantity to be uploaded or data quantity to be read being zero.
Optionally, in an embodiment of the present invention, before reading the data to be read from the readable module, the reading method may further include the following. And issuing an acquisition configuration instruction to the readable module, wherein the readable module acquires the data to be read according to the acquisition configuration instruction. Specifically, the collection configuration instruction is used for indicating the readable module to collect the data to be read from the metering module. Optionally, in the embodiment of the present invention, the acquisition configuration instruction may be preconfigured at the master station, and the acquisition configuration instruction is issued to the readable module via the reading device that reads the data to be read. Before reading the data to be read from the readable module, issuing an acquisition configuration instruction, and acquiring the data to be read from the metering module by the readable module according to the acquisition configuration instruction, so that the data to be read from the readable module is acquired in advance, all data points can be acquired, and the accuracy and completeness of data acquisition are ensured.
Optionally, in the embodiment of the present invention, the acquisition configuration instruction may specify a time point when the data to be read is acquired, or an acquisition start time, an acquisition end time, and an acquisition time interval. Optionally, the acquisition configuration instructions may include an acquisition start time, an acquisition end time, and an acquisition time interval. Alternatively, the acquisition time interval may be case-specific.
Alternatively, in an embodiment of the present invention, the acquisition time interval is in minutes. Thus, the high-frequency data acquisition of the minute level is realized.
Alternatively, in an embodiment of the present invention, the acquisition time interval may be in seconds.
Optionally, in an embodiment of the present invention, the acquisition configuration instruction may further include a lag time, where the lag time is a lag time after the acquisition end time. Optionally, in the embodiment of the present invention, a reading start time, a reading end time, and a reading time interval (which is equal to a preset reading time interval described in the embodiment of the present invention) are set, where the reading start time is the same as the collection start time, the reading end time is the same as the collection end time, the reading time interval is the same as the collection time interval, the preset reading time period is the reading start time to the reading end time, and the preset lag time is the lag time included in the collection configuration instruction. By prolonging the time of reading the data to be read and the time of reading, the data to be read with more readable modules can be ensured to be read, so that the number of the readable modules is increased, and the scale of the platform area is enlarged.
Alternatively, in embodiments of the present invention, the lag time is determined for selection from recommended values, which may be determined based on the number of readable modules. Alternatively, the lag time to be recommended may be determined according to: the number of the readable modules, the data amount of the readable module communication and the effective communication time in the lag time. Specifically, the lag time is determined according to the following formula. n=n/M, N represents the number of readable modules read per unit time, N represents the number of readable modules read per lag time, and M represents the lag time. D= ((a) 1 +A 2 +A 3 +A 4 +A 5 +A 6 )*N+((A 7 +A 8 +A 9 ) (m+1) M/2) N, wherein D represents the data amount communicated by the N readable modules; a is that 1 Representing a downlink message; a is that 2 Representing the head and tail of an uplink message; a is that 3 Representing the effective storage space; a is that 4 The reading completion percentage is represented; a is that 5 Representing a compression state indicating whether valid data is compressed; a is that 6 Representing the length of the valid data; a is that 7 A time stamp indicating that the readable module collects data to be read; a is that 8 Representing a configuration number; a is that 9 And the effective data is represented, and the effective data is the remaining data of the read data to be read after the head and the tail of the message are removed. D11/t=9600 bps. Alternatively, in embodiments of the present invention, other options are also available Communication baud rate. t represents the effective communication time within the lag time, which is the lag time minus the system time consumption (software processing, system scheduling, etc.), t=60×m-0.02×n, where the system time consumption is exemplified by 20 ms.
Optionally, in the embodiment of the present invention, the readable module compresses and stores the collected data to be read. Optionally, in the embodiment of the invention, the data to be read from the readable module is compressed and stored. Optionally, in the embodiment of the present invention, for the readable module or the reading device that reads the data to be read, whether compression storage is needed may be determined according to the current use condition of the memory and/or the size of the storage space occupied by the compressed data. By compression storage, occupied space can be reduced, and a backup function is provided; the compressed data is transmitted, so that the data quantity required to be transmitted can be reduced, and the transmission speed is improved.
An exemplary reading method for reading data to be read according to an embodiment of the present invention is described below with reference to fig. 2 to 5. According to the technical scheme provided by the embodiment of the invention, the data acquisition without point loss can be realized, the minute-level high frequency data acquisition with the expandable platform area scale can be realized, and the requirements of more equipment for accessing the electric power Internet of things and flexible expansion of various services can be met.
As shown in fig. 2, the system for reading the data to be read comprises a main station, a concentrator, a CCO, an STA and an ammeter. The following describes the individual parts of the system separately. The reading device for reading the data to be read is CCO, the readable module is STA, the metering module is ammeter, and the data to be read is electricity consumption data.
1) A master station.
For pre-configuration, the master station performs configuration of a minute-level high frequency data acquisition scheme, and issues a high-acquisition configuration item instruction (namely an acquisition configuration instruction), wherein the high-acquisition configuration item instruction comprises acquisition start time, acquisition end time, acquisition time interval, lag time and the like. The reading start time, the reading end time, and the reading time interval when the electricity data is read from the STA are the same as the collection start time, the collection end time, and the collection time interval, respectively. The acquisition configuration instructions may include acquisition start time, acquisition end time, lag time, acquisition time interval, configuration scheme compilations, protocol types, configuration items, and the like. Further, the clock information may include year, month, day, time, minute, second, and the like.
2) A concentrator.
For pre-configuration, after receiving the high-mining configuration item instruction issued by the main station, issuing the high-mining configuration item instruction to the CCO.
For reading, issuing a reading instruction to the CCO; if the read completion percentage is 100%, then the CCO is no longer read later. After receiving the CCO data packet, carrying out integrity check on the data; if the verification is not passed, the concentrator re-reads the CCO. And the concentrator continues reading and uploading the data within the lag time after the acquisition end time.
And (5) decompressing and uploading, and actively uploading decompressed data to the master station.
If the master station initiates a 'transparent forwarding' task such as cost control and the like in the high-frequency data acquisition process, the concentrator should save a high-priority task such as site priority support cost control and the like, and immediately restore the original operation after the high-priority task is ended.
3)CCO。
And (5) synchronizing clocks. After networking is completed, before high frequency data acquisition, the CCO requests a clock from the concentrator and broadcasts clock information to the STAs as shown in fig. 3. Every 10 minutes, checking the newly-accessed node, reporting the concentrator and performing clock synchronization.
For pre-configuration, the CCO forwards to the STA after receiving the high acquisition configuration item instruction of the concentrator. If the data is collected in the whole area, the CCO is issued for many times in a broadcasting mode, and is not issued one to one independently, so that the interaction frequency of the CCO and the STA is reduced, and the bandwidth occupation is reduced.
And for reading, carrying out reading management according to the gray list. At the beginning of power-on, the CCO firstly sorts the addresses of all the STAs from small to large, reads a round of data based on the sequence, and obtains the storage capacity of each STA. And sequencing the acquired storage capacity of each STA according to the sequence from small to large, and selecting the STA positioned at the last 30% of the sequenced sequence to set an initial gray list. After each round of reading period is finished, the CCO dynamically updates the gray list according to the feedback condition of each STA. For STAs that do not respond or fail transcription, the CCO run does not repeat transcription. When data reading of all the STAs (ammeter or other equipment) in the station area cannot be completed within a specified time, ammeter or equipment with large data volume is read preferentially, the data volume of single communication is improved, the channel utilization rate is fully excavated, and the aim of optimal reading efficiency is achieved.
Compression storage and transmission are carried out. And compressing and storing the received data according to the equipment address, and uploading the data immediately after reading by the concentrator.
4)STA。
And (5) synchronizing clocks. And receiving the CCO time synchronization message, and ensuring the consistency of sampling time.
For pre-configuration, after receiving the high-mining configuration item instruction of the CCO, the CCO is responded. Wherein the broadcast instruction does not answer.
And for pre-acquisition, actively acquiring electricity data from the ammeter according to acquisition start time, acquisition end time and acquisition time interval in the high acquisition configuration item instruction. When the data acquisition is not completed at the end of the current round of acquisition period, the data filling FF is not completed.
And (5) compressing and storing. And (3) carrying out lossless compression storage on the effective data after unnecessary message heads and unnecessary message tails are removed on the collected power consumption data.
And uploading data. And after receiving the CCO reading instruction, uploading the cached data, and uploading the current reading data ratio and the reading completion percentage of the self. The read data duty ratio is the ratio of the read data quantity to the storage space; the reading completion percentage is the ratio of the read times to the total read times, and the total read times can be obtained by adopting the time difference between the collection end time and the collection start time to be in the collection time interval.
The following describes an exemplary embodiment of the present invention with reference to fig. 2 to 5.
1) Preconfigured pre-acquisition
The method comprises the steps that high-frequency data acquisition configuration is carried out in advance on a master station, a high-acquisition configuration item instruction is issued, and the STA terminal pre-acquires power consumption data according to acquisition start time, acquisition end time and acquisition time interval required in the high-acquisition configuration item instruction, so that no point loss of terminal data acquisition is guaranteed, and waiting time delay of a system meter reading is reduced.
After the STA completes one pre-acquisition, the reading completion status is fed back by using the reading completion percentage (the number of times of reading/the total number of times of reading).
2) Compressed storage, transmission
After receiving the power consumption data, the STA removes the message head, the message tail and the like and only stores the effective data in a lossless compression way. And the CCO terminal compresses and stores the data according to the device address. And the electricity consumption data part adopts a compressed data multi-time packet form to reduce the data volume and the communication times of communication.
And the corresponding CCO or STA can determine whether compression storage is needed according to the current memory use condition and the size of the storage space occupied by the compressed data. Specifically, as shown in fig. 4, if the running memory is sufficient, the running of the compression algorithm is supported, and the storage space occupied by the compressed data is smaller than the storage space occupied by the original data, then compressed storage, that is, compressed data is stored. If the running memory is insufficient, the running of the compression algorithm is not supported, or the storage space occupied by the compressed data is not smaller than the storage space occupied by the original data, the original data is directly stored, and the information is fed back through the status bit.
3) Reading management based on gray list
After each round of reading (reading all the STAs outside the gray list), the CCO estimates the data quantity to be read of each STA outside the gray list, and sorts the data according to the order from large to small. The order of the STAs with weak storage capacity is advanced in combination with the reordering of storage capacity of the STAs outside the gray list or the adjustment of the ordered order. According to the ordered sequence, updating the gray list, for the STAs needing priority transcription for a plurality of times (for example, 3 times), namely, for the STAs which are positioned at the first position of the ordered sequence for a plurality of times, the CCO needs to add the STAs into the gray list to update the gray list under special working conditions of node disconnection, communication abnormality and the like. The gray list is dynamically updated after each round of reading, so that the data backlog caused by the working conditions of poor communication state, long reading time, frequent change of agents and the like can be effectively solved, the data volume of single communication is improved, and the channel utilization rate is improved.
The CCO calculates the storage capacity of each STA according to the current read data duty ratio (current read data amount/storage space) fed back by each STA. When reading is carried out on the STA outside the gray list, reading is carried out according to the arranged sequence. The CCO is used for reading the STA with insufficient storage capacity (STA storage capacity is less than 1) in the next round of priority, so that the situation that the data is covered and the lost point occurs due to the insufficient storage capacity of the STA is avoided, and the requirement of high-frequency data acquisition on the hardware storage space is reduced as much as possible.
The ash list based reading management provided in the embodiment of the present invention is described below with reference to fig. 5. At the beginning of power-on, the CCO firstly sorts the data according to the addresses of the STAs from small to large, reads one round of data, and obtains the storage capacity of each STA. And sequencing the acquired storage capacity of each STA according to the sequence from small to large, and selecting the STA positioned at the last 30% of the sequenced sequence to set an initial gray list. Determining a time point of each round of reading according to the set acquisition starting time, acquisition ending time and acquisition time interval, reading according to the time point of each round of reading, and judging whether one round of reading is finished by judging whether all the STAs outside the gray list are read. Judging whether idle time exists or not under the condition of completing one round of reading; and under the condition that one reading round is not completed, continuing reading. And (5) judging whether idle time exists or not according to the reading completion of a certain round. If the idle time exists, reading the STA in the gray list; if the idle time does not exist, judging that all reading ends. Specifically, whether there is an idle time, that is, whether reading of the STA in the gray list is possible is determined by determining whether the time for completing the round of reading reaches the acquisition time interval (the preset reading time interval described in the above embodiment) or whether the current time is within the lag time. If the idle time exists, reading the STA in the gray list, specifically, reading according to the sequence of entering the gray list, and firstly entering the process of reading. Note that, the reading order is to read according to the ordered sequence of the STAs, that is, the order is to be ordered before the first entry, corresponding to the gray list initially set in order. And judging whether reading is finished or not after reading is finished by the STA in the gray list, namely judging whether idle time exists or not. If the idle time exists, continuing to read the STA in the gray list; if no idle time exists, the STAs in the gray list are not read. In addition, the STA capable of reading the electricity consumption data is removed from the gray list, enters the non-gray list and participates in the subsequent process. Then, it is judged whether all reading ends, that is, whether all reading ends. Specifically, whether all reading ends is determined by determining whether the data amount to be read of all STAs is zero or whether a lag time point (determined by the acquisition end time plus the lag time) is reached, and if one of the two conditions is satisfied, all reading ends. When all reading ends, the flow ends. And if all reading is not finished, continuing reading. If the reading quantity to be read of the STA is zero, the reading quantity to be read of the STA is removed, and the subsequent process aims at the rest STA. The data amount to be read in each STA is estimated and ordered from large to small, wherein each STA refers to each STA outside a gray list. The ordering is adjusted in conjunction with the storage capacity. And calculating the storage capacity of each STA outside the gray list, and advancing the ordering of the STAs with weak storage capacity so that the reading sequence accords with the storage capacity. And then determining whether to update the gray list based on the arranged order, and updating the gray list under the condition that the gray list updating condition is met. Specifically, STAs located at the first of the ordered sequence are entered into the gray list for 3 consecutive times to update the gray list. And after the gray list is updated, continuing to read in the next round. The cycle is then continued until all reading is completed.
In the embodiment of the invention, for the STA which needs to be transcribed with priority continuously for many times, special working conditions such as node disconnection, communication abnormality and the like should be considered, the CCO needs to add the nodes into a gray list, and reading is performed when the CCO is idle, so that the communication bandwidth is saved.
For any STA, each key factor estimation guidance formula is as follows:
data quantity to be read= (last reading time-current time)/(acquisition time interval x effective data length);
effective storage space = current read data length/current read data ratio. Wherein, aiming at the read data duty ratio of this time, the unit 1 is the whole storage space;
capacity = effective storage space ++ (effective data length x expected next round read duration ++acquisition time interval);
4) Setting a lag time
The area size supporting high-frequency data acquisition can be greatly improved, when the delay time of reading (the delay time of reading after the concentrator is required to finish the high-speed configuration item instruction, namely, the delay time of a user for acquiring a meter reading result) is 1min, the high-frequency data acquisition of the minute-level is carried out on 6 power consumption data (voltage, current, forward active power, reverse active power, power factor), the area size supported by theoretical calculation is 400+, and a calculation formula can be described in the embodiment. And as the read-out lag time increases, the supported area size also increases.
TABLE 1 theoretical estimates of lag time, zone size and storage space
/>
Note that: in the theoretical calculation, 9600bps is communicated with the CCO according to the concentrator; valid data includes a time stamp, a configuration scheme number, 6 data items (voltage, current, forward active, reverse active, power factor), 26Bytes total; assuming a system time of 20ms, the full communication bandwidth is used for the scene estimation of the minute-level acquisition. Considering that the actual working condition is more complex, the actual working condition is slightly lower than the estimated result.
In summary, the technical scheme provided by the embodiment of the invention includes 1) pre-configuring at the master station and pre-collecting at the STA end, so that accuracy and completeness of data collection are ensured; 2) Reading is carried out at the CCO end according to the gray list, so that reading efficiency is improved; 3) The total communication data amount is reduced through compression storage and transmission, so that the point of no loss of the acquired data is achieved; 4) By setting a lag time, a target with a scalable cell size; 5) The number of uplink and downlink messages can be effectively reduced, the utilization rate of communication bandwidth is improved, the waiting time for reading and reading the meter is reduced, and the minute-level high frequency data acquisition is realized.
Correspondingly, another aspect of the embodiment of the invention also provides a data reading device to be read.
Fig. 6 is a block diagram of a data reading device according to another embodiment of the present invention. As shown in fig. 6, the reading device includes a reading module 1 and an updating module 2. The reading module 1 is used for reading data to be read for each round, and for the readable module which does not belong to the preset gray list in the preset readable module set, reading the data to be read, wherein the data quantity to be read of the data to be read in the readable module is continuously changed in the preset reading time period; the updating module 2 is used for updating the preset gray list based on the data quantity to be read under the condition that one round of reading of the data to be read is completed.
Optionally, in an embodiment of the present invention, the updating module updates the preset gray list based on the data amount to be read includes: sequencing the readable modules in the to-be-sequenced readable module set based on the data quantity to be read, wherein the to-be-sequenced readable module set comprises: the method comprises the steps that a readable module set which does not belong to a preset gray list is preset or all readable modules in the preset readable module set are preset; and updating the preset gray list based on the arranged order.
Optionally, in an embodiment of the present invention, updating the preset ash list based on the ordered sequence includes: adding the readable modules which are continuously preset times and are positioned in a first preset range of the arranged sequence into the preset gray list under the condition that the to-be-sequenced readable module set comprises readable modules which are not in the preset gray list in the preset readable module set, wherein the first preset range comprises the first bit of the arranged sequence and the sequence is uninterrupted in the first preset range; or under the condition that the to-be-sequenced readable module set comprises all readable modules in the preset readable module set, updating the readable modules in the preset gray list to readable modules in a second preset range of the sequenced sequence, wherein the second preset range comprises the last bit of the sequenced sequence and the sequence is uninterrupted in the second preset range.
Optionally, in the embodiment of the present invention, the updating module updates the preset gray list based on the data amount to be read further includes: before updating the preset ash list based on the ordered sequence, updating the ordered sequence based on the storage capability of the readable module.
Optionally, in an embodiment of the present invention, the reading device further includes: the gray list reading module is used for judging whether the readable module in the preset gray list can be read or not based on a preset gray list readable strategy before the preset gray list is updated based on the data quantity to be read; and under the condition that the readable module in the preset gray list can be read, reading the data to be read of the readable module in the preset gray list during the period that the readable module in the preset gray list can be read, and removing the readable module which can be read to the data to be read from the preset gray list.
Optionally, in an embodiment of the present invention, the preset gray list readable policy includes: reading the readable module in the preset gray list under the condition that the time for reading the data to be read in one round is not up to the preset reading time interval; and/or under the condition that the current time is within a preset lag time after a preset reading time period, the readable module in the preset gray list can be read.
Optionally, in an embodiment of the present invention, the reading device further includes: the reading module eliminating module is used for judging whether all reading is finished before a preset gray list is updated based on the data quantity to be read; and under the condition that all reading is not finished, if a readable module capable of finishing reading is provided, the readable module capable of finishing reading is removed from the preset readable module in a centralized way.
Optionally, in an embodiment of the present invention, the reading device further includes: the issuing module is used for issuing an acquisition configuration instruction to the readable module before reading the data to be read from the readable module, wherein the readable module acquires the data to be read according to the acquisition configuration instruction.
The specific working principle and benefits of the data reading device to be read provided by the embodiment of the invention are similar to those of the data reading method to be read provided by the embodiment of the invention, and will not be repeated here.
The reading device comprises a processor and a memory, wherein the reading module, the updating module and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one, and reading efficiency is improved and/or incomplete data points are relieved by adjusting kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
In addition, another aspect of the embodiment of the present invention further provides a reading system for reading data to be read, where the reading system includes: the reading device and the readable module described in the above embodiments.
In addition, another aspect of the embodiments of the present invention also provides a machine-readable storage medium having stored thereon instructions for causing a machine to perform the reading method described in the above embodiments.
In addition, another aspect of the embodiment of the present invention further provides a processor, configured to execute a program, where the program is executed to perform the reading method described in the foregoing embodiment.
In addition, another aspect of the embodiment of the present invention further provides an electronic device, where the electronic device includes a processor, a memory, and a program stored in the memory and capable of running on the processor, and when the processor executes the program, the reading method described in the foregoing embodiment is implemented. The electronic device herein may be a server, a PC, a PAD, a mobile phone, etc.
Furthermore, another aspect of the embodiments of the present application provides a computer program product adapted to perform a program initialized with the steps of the reading method as described in the above embodiments when executed on a data processing device.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (15)

1. A reading method of data to be read is characterized in that the reading method comprises the following steps:
reading the data to be read for each round, and aiming at a readable module which does not belong to a preset gray list in a preset readable module set, reading the data to be read, wherein the data quantity to be read of the data to be read in the readable module is continuously changed in a preset reading time period; and
under the condition that one round of reading of the data to be read is completed, updating the preset gray list based on the data quantity to be read, wherein,
the updating the preset gray list based on the data quantity to be read comprises the following steps:
based on the data quantity to be read, sequencing the readable modules in the to-be-sequenced readable module set, wherein the to-be-sequenced readable module set comprises: the preset readable module set is not the readable module of the preset gray list or all the readable modules in the preset readable module set; and
Updating the preset ash list based on the arranged order comprises the following steps:
adding the readable modules which are continuously preset times and are positioned in a first preset range of the arranged sequence into the preset gray list under the condition that the to-be-ordered readable module set comprises the readable modules which do not belong to the preset gray list in the preset readable module set, wherein the first preset range comprises the first bit of the arranged sequence and the sequence is uninterrupted in the first preset range; or (b)
And updating the readable modules included in the preset gray list to the readable modules within a second preset range of the arranged order under the condition that the to-be-ordered readable module set comprises all the readable modules in the preset readable module set, wherein the second preset range comprises the last bit of the arranged order and the order is uninterrupted in the second preset range.
2. The reading method of claim 1, wherein before updating the preset ash list based on the ordered sequence, the updating the preset ash list based on the amount of data to be read further comprises:
And updating the arranged sequence based on the storage capacity of the readable module.
3. The reading method according to claim 1 or 2, characterized in that before updating the preset gray list based on the amount of data to be read, the reading method further comprises:
judging whether the readable module in the preset gray list can be read or not based on a preset gray list readable strategy; and
when the readable module in the preset gray list can be read, reading the data to be read of the readable module in the preset gray list during the period when the readable module in the preset gray list can be read, and removing the readable module which can be read the data to be read from the preset gray list.
4. A reading method according to claim 3, wherein the predetermined gray list readable policy comprises:
under the condition that the time for reading the data to be read in one round does not reach the preset reading time interval, the readable module in the preset gray list can be read; and/or
And under the condition that the current time is within a preset lag time after the preset reading time period, reading the readable module in the preset gray list.
5. The reading method according to claim 1 or 2, characterized in that before updating the preset gray list based on the amount of data to be read, the reading method further comprises:
judging whether all reading is finished; and
and if the readable module capable of finishing reading is provided under the condition that all reading is not finished, the readable module capable of finishing reading is removed from the preset readable module in a centralized way.
6. The reading method according to claim 1, characterized in that before reading the data to be read from the readable module, the reading method further comprises:
issuing an acquisition configuration instruction to the readable module, wherein the readable module acquires the data to be read according to the acquisition configuration instruction.
7. A reading device for reading data, the reading device comprising:
the reading module is used for reading the data to be read for each round, and the data to be read in the readable module is continuously changed in a preset reading time period aiming at the readable module which is not in a preset gray list; and
The updating module is used for updating the preset gray list based on the data quantity to be read under the condition of completing one round of reading of the data to be read,
wherein, the liquid crystal display device comprises a liquid crystal display device,
the updating module updating the preset gray list based on the data quantity to be read comprises the following steps:
based on the data quantity to be read, sequencing the readable modules in the to-be-sequenced readable module set, wherein the to-be-sequenced readable module set comprises: the preset readable module set is not the readable module of the preset gray list or all the readable modules in the preset readable module set; and
updating the preset ash list based on the arranged order comprises the following steps:
adding the readable modules which are continuously preset times and are positioned in a first preset range of the arranged sequence into the preset gray list under the condition that the to-be-ordered readable module set comprises the readable modules which do not belong to the preset gray list in the preset readable module set, wherein the first preset range comprises the first bit of the arranged sequence and the sequence is uninterrupted in the first preset range; or (b)
And updating the readable modules included in the preset gray list to the readable modules within a second preset range of the arranged order under the condition that the to-be-ordered readable module set comprises all the readable modules in the preset readable module set, wherein the second preset range comprises the last bit of the arranged order and the order is uninterrupted in the second preset range.
8. The reading device of claim 7, wherein the updating module updates the preset ash list based on the amount of data to be read further comprises:
and before updating the preset ash list based on the arranged order, updating the arranged order based on the storage capacity of the readable module.
9. The reading apparatus according to any one of claims 7 to 8, further comprising:
the gray list reading module is used for updating the preset gray list based on the data quantity to be read,
judging whether the readable module in the preset gray list can be read or not based on a preset gray list readable strategy; and
when the readable module in the preset gray list can be read, reading the data to be read of the readable module in the preset gray list during the period when the readable module in the preset gray list can be read, and removing the readable module which can be read the data to be read from the preset gray list.
10. The reading apparatus according to claim 9, wherein the preset ash list readable policy comprises:
Under the condition that the time for reading the data to be read in one round does not reach the preset reading time interval, the readable module in the preset gray list can be read; and/or
And under the condition that the current time is within a preset lag time after the preset reading time period, reading the readable module in the preset gray list.
11. The reading apparatus according to any one of claims 7 to 9, further comprising:
the copy-readable module eliminating module is used for updating the preset gray list based on the data quantity to be read,
judging whether all reading is finished; and
and if the readable module capable of finishing reading is provided under the condition that all reading is not finished, the readable module capable of finishing reading is removed from the preset readable module in a centralized way.
12. The reading apparatus according to claim 7, further comprising:
and the issuing module is used for issuing an acquisition configuration instruction to the readable module before reading the data to be read from the readable module, wherein the readable module acquires the data to be read according to the acquisition configuration instruction.
13. A reading system for reading data to be read, the reading system comprising:
a reading device as claimed in any one of claims 7 to 12; and
the module can be read.
14. A machine-readable storage medium having stored thereon instructions for causing a machine to perform the reading method of any of claims 1-6.
15. An electronic device comprising a processor, a memory, and a program stored on the memory and executable on the processor, the processor implementing the reading method of any one of claims 1-6 when the program is executed by the processor.
CN202310715518.2A 2023-06-16 2023-06-16 Data reading method, reading device and reading system Active CN116456221B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310715518.2A CN116456221B (en) 2023-06-16 2023-06-16 Data reading method, reading device and reading system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310715518.2A CN116456221B (en) 2023-06-16 2023-06-16 Data reading method, reading device and reading system

Publications (2)

Publication Number Publication Date
CN116456221A CN116456221A (en) 2023-07-18
CN116456221B true CN116456221B (en) 2023-09-08

Family

ID=87130593

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310715518.2A Active CN116456221B (en) 2023-06-16 2023-06-16 Data reading method, reading device and reading system

Country Status (1)

Country Link
CN (1) CN116456221B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100691167B1 (en) * 2005-10-11 2007-03-09 (주)누리텔레콤 Apparatus for gathering and repeating remote meter-reading data and method thereof
CN104318750A (en) * 2014-10-20 2015-01-28 华为技术有限公司 Meter reading method, device and system
CN105206010A (en) * 2014-05-29 2015-12-30 国家电网公司 Method and device for controlling communication of wireless centralized meter reading network
CN109039382A (en) * 2018-09-27 2018-12-18 深圳友讯达科技股份有限公司 Electric energy meter copy reading method and device
CN112672418A (en) * 2020-12-03 2021-04-16 江苏林洋能源股份有限公司 Method for self-registering between electric meter and main station through carrier concentrator
CN115237552A (en) * 2022-06-01 2022-10-25 南京林洋电力科技有限公司 Acquisition task scheduling management method based on object-oriented protocol
CN115767310A (en) * 2022-10-25 2023-03-07 宁波三星医疗电气股份有限公司 Electric meter data reading method, medium and concentrator based on blacklist archive

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100691167B1 (en) * 2005-10-11 2007-03-09 (주)누리텔레콤 Apparatus for gathering and repeating remote meter-reading data and method thereof
CN105206010A (en) * 2014-05-29 2015-12-30 国家电网公司 Method and device for controlling communication of wireless centralized meter reading network
CN104318750A (en) * 2014-10-20 2015-01-28 华为技术有限公司 Meter reading method, device and system
CN109039382A (en) * 2018-09-27 2018-12-18 深圳友讯达科技股份有限公司 Electric energy meter copy reading method and device
CN112672418A (en) * 2020-12-03 2021-04-16 江苏林洋能源股份有限公司 Method for self-registering between electric meter and main station through carrier concentrator
CN115237552A (en) * 2022-06-01 2022-10-25 南京林洋电力科技有限公司 Acquisition task scheduling management method based on object-oriented protocol
CN115767310A (en) * 2022-10-25 2023-03-07 宁波三星医疗电气股份有限公司 Electric meter data reading method, medium and concentrator based on blacklist archive

Also Published As

Publication number Publication date
CN116456221A (en) 2023-07-18

Similar Documents

Publication Publication Date Title
CN103262631B (en) Method and apparatus for supporting the resource allocation of peer-to-peer communications in cellular networks
US9674589B2 (en) Coordinated collection of metering data
CN110784779B (en) Data acquisition method of electricity consumption information acquisition system
WO2018103579A1 (en) Meter reading method, apparatus and system, and communication gateway
CN102497665B (en) Mobile terminal time correction method and apparatus thereof
CN101754386B (en) Method and device for adjusting business processing resources of multi-mode base station system
CN108632309B (en) Method and device for upgrading narrow-band Internet of things terminal
CN103733702A (en) Devices for reduced overhead paging
WO2013082893A1 (en) Network selecting method and device for multi-standard terminal
CN110637312B (en) Air conditioner data communication device, air conditioner data communication method, and recording medium
CN103581231A (en) UGC primary standby data synchronization method and system thereof
CN107046691B (en) LTE wireless network rapid site selection method
US20220305942A1 (en) System and method for scheduling electric charging for vehicles
CN102547590A (en) Pairing method for user pairs of device to device communication based on business content relevance under cellular network
CN110719230A (en) Peak staggering interval adjusting method and device and computer readable storage medium
CN116456221B (en) Data reading method, reading device and reading system
CN103530335A (en) In-stockroom operation method and device of electric power measurement acquisition system
CN108900314B (en) Request number charging method and device for network acceleration service
CN108881630B (en) Reverse charging management method and device and terminal
CN116233200B (en) Electric energy meter communication method and system based on subsequent frame dynamic registration
CN105472707A (en) Traffic sharing method and device
CN113301558A (en) Message transmission method, device, system and storage medium
CN112820092B (en) Method for collecting electricity consumption data, terminal equipment and storage medium
CN113993122B (en) NB-IOT terminal, communication method and communication system
CN111491354B (en) Node synchronization method and device in ad hoc network and ad hoc network 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