Daily Freezing Data Acquisition Method, Electronic Device and Storage Medium
By obtaining the start and end times of copying, determining the positioning number of the initial copying instruction, optimizing the positioning and comparison of the daily freezing time, the problem of excessive interactions between the mobile working terminal and the power meter is solved, and efficient daily freezing power data collection is achieved.
Patent Information
- Application Number
- CN202310183061.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2043-02-28
AI Technical Summary
In the prior art, the mobile operating terminal interacts with the power meter too much, resulting in an increase in communication failure rate and data missing, making it difficult to efficiently collect daily frozen power data.
By obtaining the start time and end time of copying, the initial copying instruction positioning number is determined, the initial day freezing time is determined based on the number, and the comparison is performed to optimize the copying process to reduce the number of interactions.
It reduces the number of interactions between mobile operating terminals and power meters, improves the success rate of data copying and reading, reduces the work burden of on-site operators, and improves the efficiency of daily freezing power data collection.
Smart Images

Figure CN116320826B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of power analysis, and particularly to a method for collecting daily freeze data, an electronic device, and a storage medium. Background Art
[0002] At present, power consumption collection systems mostly collect power data through concentrated meter reading terminals. During the collection process, due to reasons such as signal loss, communication interruption, and terminal failures, it may be impossible to collect complete and valid data. Generally, the solution is for on-site operators to use mobile operation terminals to supplement the collection of missing data on-site. Among them, daily freeze data is an important assessment indicator of the power consumption collection system and also an important basis for power marketing power quantity monitoring and analysis. Limited by the internal data storage format of the electric energy meter, the mobile operation terminal cannot directly read the daily freeze data at a specified time, and can only read the last 1 to 62 daily freeze times, and then compare with the reading time to determine whether to read the daily freeze data. Specifically, generally, a command of "reading the last N (1 <= N <= 62) daily freeze times" is sent to the electric energy meter through the mobile operation terminal, and then it is judged whether the "last N daily freeze times" are between the reading start time and the reading end time. If not and after the reading end time, a command of "reading the last N + 1 daily freeze times" is further sent to the electric energy meter; if not and before the reading start time, the reading is stopped; if so, a command of "reading the daily freeze data corresponding to the last N daily freeze times" is sent to the electric energy meter. In this reading method, if the read daily freeze time is too long from the current time, too many invalid daily freeze time reading commands will be executed, which easily leads to an increase in the communication failure rate due to excessive interactions with the electric energy meter; in addition, if the clock of the electric energy meter is incorrect, it is easy to misjudge due to the confusion of the daily freeze time and cause the reading to stop, resulting in data omission.
[0003] In view of this, there is an urgent need to propose a method for collecting daily freeze data that reduces the interaction times between the mobile operation terminal and the electric energy meter and improves the reading success rate, so as to reduce the work burden of on-site operators and improve the collection efficiency of daily freeze data. Summary of the Invention
[0004] To overcome the problems existing in the related art, this application provides a method for collecting daily freeze data, an electronic device, and a storage medium. The method for collecting daily freeze data can reduce the interaction times between the mobile operation terminal and the electric energy meter, improve the data reading success rate, reduce the work burden of on-site operators, and effectively improve the reading efficiency of daily freeze power data.
[0005] The first aspect of this application provides a method for collecting daily freeze data, including:
[0006] Obtain a reading start time and a reading end time;
[0007] Determine the initial reading instruction positioning number according to the reading end time and the current operation time;
[0008] Determine the initial daily freeze time based on the initial reading instruction positioning number;
[0009] Compare the initial daily freeze time with the reading start time and the reading end time, and determine whether to read the daily freeze power data according to the comparison result.
[0010] In one implementation, determining the initial daily freeze time based on the initial reading instruction positioning number includes:
[0011] Generate an initial time reading instruction based on the initial reading instruction positioning number;
[0012] Send the initial time reading instruction to the electricity meter;
[0013] Receive the initial time information fed back by the electricity meter, and determine the initial time information as the initial daily freeze time.
[0014] In one implementation, determining whether to read the daily freeze power data according to the comparison result includes:
[0015] If the initial daily freeze time is less than the reading start time, update the initial reading instruction positioning number by the bisection method to obtain the first candidate number;
[0016] Determine the first candidate daily freeze time based on the first candidate number;
[0017] Compare the first candidate daily freeze time with the reading start time and the reading end time;
[0018] If the first candidate daily freeze time is less than the reading start time, update the first candidate number by the bisection method to obtain the updated first candidate number;
[0019] Execute the steps from determining the first candidate daily freeze time based on the first candidate number to comparing the first candidate daily freeze time with the reading start time and the reading end time;
[0020] Until the first candidate daily freeze time is greater than or equal to the reading start time and less than or equal to the reading end time, read the daily freeze power data starting from the first candidate daily freeze time.
[0021] In one implementation, after comparing the first candidate daily freeze time with the reading start time and the reading end time, it further includes:
[0022] If the first candidate daily freeze time is greater than the reading end time, incrementally update the first candidate number to obtain the updated first candidate number.
[0023] In one embodiment, determining whether to read the daily frozen power data according to the comparison result includes:
[0024] If the initial daily freezing time is greater than or equal to the starting time of reading and less than or equal to the ending time of reading, read the daily frozen power data starting from the initial daily freezing time.
[0025] In one embodiment, reading the daily frozen power data includes:
[0026] Reading the daily frozen power data forward starting from the current first candidate daily freezing time or the initial daily freezing time; and
[0027] Reading the daily frozen power data backward starting from the current first candidate daily freezing time or the initial daily freezing time;
[0028] Wherein, the forward direction is the time progression direction from the current first candidate daily freezing time or the initial daily freezing time to the ending time of reading; the backward direction is the time reverse direction from the current first candidate daily freezing time or the initial daily freezing time to the starting time of reading.
[0029] In one embodiment, reading the daily frozen power data forward starting from the current first candidate daily freezing time or the initial daily freezing time includes:
[0030] Decrementally update the first candidate number corresponding to the current first candidate daily freezing time or the initial reading instruction positioning number corresponding to the initial daily freezing time to obtain the first reading number;
[0031] Determine the first reading daily freezing time based on the first reading number;
[0032] If the first reading daily freezing time is less than or equal to the ending time of reading, read the daily frozen power data according to the first reading daily freezing time;
[0033] Decrementally update the first reading number to obtain the updated first reading number;
[0034] Execute the steps from determining the first reading daily freezing time based on the first reading number to reading the daily frozen power data according to the first reading daily freezing time, and stop reading until the first reading daily freezing time is greater than the ending time of reading.
[0035] In one embodiment, reading the daily frozen power data backward starting from the current first candidate daily freezing time or the initial daily freezing time includes:
[0036] Incrementally update the first candidate number corresponding to the current first candidate daily freezing time or the initial reading instruction positioning number corresponding to the initial daily freezing time to obtain the second reading number;
[0037] Determine the freezing time of the second reading date based on the second reading number;
[0038] If the freezing time of the second reading date is greater than or equal to the starting time of reading, read the frozen electrical energy data of the reading date according to the freezing time of the second reading date;
[0039] Incrementally update the second reading number to obtain an updated second reading number;
[0040] Execute the steps from determining the freezing time of the second reading date based on the second reading number to reading the frozen electrical energy data of the reading date according to the freezing time of the second reading date, and stop reading until the freezing time of the second reading date is less than the starting time of reading.
[0041] In one implementation, determining whether to read the frozen electrical energy data according to the comparison result includes:
[0042] If the initial freezing time is greater than the end time of reading, incrementally update the positioning number of the initial reading instruction to obtain a second candidate number;
[0043] Determine the second candidate freezing time based on the second candidate number;
[0044] Compare the second candidate freezing time with the starting time of reading and the end time of reading;
[0045] If the second candidate freezing time is greater than the end time of reading, incrementally update the second candidate number to obtain an updated second candidate number;
[0046] If the second candidate freezing time is less than or equal to the end time of reading and greater than or equal to the starting time of reading, read the frozen electrical energy data of the reading date according to the second candidate freezing time;
[0047] Execute the steps from determining the second candidate freezing time based on the second candidate number to reading the frozen electrical energy data of the reading date according to the second candidate freezing time, and stop reading until the second candidate freezing time is less than the starting time of reading or the number of executions is greater than 62 times.
[0048] In one implementation, determining the positioning number of the initial reading instruction according to the end time of reading and the current job time includes:
[0049] Subtract the end time of reading from the current job time to obtain the positioning number of the initial reading instruction.
[0050] The second aspect of the present application provides an electronic device, including:
[0051] A processor; and
[0052] A memory stores executable code thereon, which, when executed by the processor, causes the processor to execute the method as described above.
[0053] A third aspect of the present application provides a non-transitory machine-readable storage medium, on which executable code is stored, which, when executed by a processor of an electronic device, causes the processor to execute the method as described above.
[0054] The technical solution provided by the present application may include the following beneficial effects:
[0055] The daily freeze data acquisition method, electronic device and storage medium provided by the present application determine the time interval of the daily freeze reading data that needs to be supplemented by obtaining the reading start time and the reading end time, determine the initial reading instruction positioning number according to the reading end time and the current operation time, and determine the initial daily freeze time based on the initial reading instruction positioning number, so as to quickly locate the initial daily freeze time, and then compare the initial daily freeze time with the reading start time and the reading end time, and determine whether to read the daily freeze power data according to the comparison result, so as to reduce the interaction times between the mobile operation terminal and the electricity meter, improve the data reading success rate, reduce the work burden of on-site operators, and effectively improve the reading efficiency of the daily freeze power data.
[0056] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] By referring to the accompanying drawings and reading the following detailed description, the above and other objects, features and advantages of the exemplary embodiments of the present application will become easy to understand. In the drawings, several embodiments of the present application are shown in an exemplary rather than restrictive manner, and the same or corresponding reference numerals represent the same or corresponding parts.
[0058] Figure 1 is one of the flow diagrams of the daily freeze data acquisition method shown in the embodiments of the present application;
[0059] Figure 2 is the second flow diagram of the daily freeze data acquisition method shown in the embodiments of the present application;
[0060] Figure 3 is the third flow diagram of the daily freeze data acquisition method shown in the embodiments of the present application;
[0061] Figure 4 is the structural diagram of the electronic device shown in the embodiments of the present application. DETAILED DESCRIPTION
[0062] Embodiments will now be described with reference to the accompanying drawings. It should be understood that, for simplicity and clarity of illustration, reference numerals may be repeated in the drawings where considered appropriate to indicate corresponding or analogous elements. Additionally, this application sets forth numerous specific details in order to provide a thorough understanding of the embodiments described herein. However, those of ordinary skill in the art will understand that the embodiments described herein may be practiced without these specific details. In other instances, well-known methods, procedures, and components have not been described in detail so as not to obscure the embodiments described herein. Moreover, this description should not be construed as limiting the scope of the embodiments described herein.
[0063] The daily frozen data is an important assessment index of the power consumption acquisition system and also an important basis in the power marketing power consumption monitoring and analysis. Limited by the internal data storage format of the electric energy meter, the mobile operation terminal cannot directly read the daily frozen data at a specified time. It can only read the previous 1 to 62 daily frozen times, and then compare with the reading time to determine whether the daily frozen data is read. Specifically, generally, a command of "reading the previous N (1 <= N <= 62) daily frozen times" is sent to the electric energy meter through the mobile operation terminal, and then it is determined whether the "previous N daily frozen times" is between the reading start time and the reading end time. If not and after the reading end time, a command of "reading the previous N + 1 daily frozen times" is further sent to the electric energy meter; if not and before the reading start time, the reading is stopped; if so, a command of "reading the daily frozen data corresponding to the previous N daily frozen times" is sent to the electric energy meter. In this reading method, if the read daily frozen time is too long from the current time, too many invalid commands for reading the daily frozen time will be executed, which easily leads to an increase in the communication failure rate due to excessive interactions with the electric energy meter; in addition, if the clock of the electric energy meter is incorrect, it is easy to misjudge due to the confusion of the daily frozen time and cause the reading to stop, resulting in the consequence of data omission.
[0064] In view of this, there is an urgent need to propose a method for collecting daily frozen data that reduces the interaction times between the mobile operation terminal and the electric energy meter and improves the reading success rate, so as to reduce the workload of on-site operators and improve the collection efficiency of daily frozen data.
[0065] In response to the above problems, the embodiments of this application provide a method for collecting daily frozen data, which can reduce the interaction times between the mobile operation terminal and the electric energy meter, improve the success rate of data reading, reduce the workload of on-site operators, and effectively improve the reading efficiency of daily frozen power data.
[0066] The technical solutions of the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0067] Figure 1 is one of the flow schematic diagrams of the method for collecting daily frozen data shown in the embodiments of this application. Please refer to Figure 1, the daily freeze data collection method shown in the embodiments of this application may include:
[0068] In step 101, obtain the reading start time and the reading end time.
[0069] Before arriving at the operation site, on-site operators can learn from the centralized reading terminal which reading time intervals lack daily freeze power data, and can also record or read in the mobile operation terminal of on-site operators, which is not uniquely limited. The two start and end points of this reading time interval are the reading start time and the reading end time.
[0070] In step 102, determine the initial reading instruction positioning number according to the reading end time and the current operation time.
[0071] The initial reading instruction positioning number refers to the positioning number of the first reading instruction that may be within the reading time interval. Since the mobile operation terminal can only read the previous 1 to 62 daily freeze times, the initial reading instruction positioning number can be understood as any integer between 1 and 62. Based on the reading end time and the current operation time, the time difference between the reading end time and the current operation time can be judged. Since the daily freeze time and the daily freeze power data are recorded once a day, the time difference between the reading end time and the current operation time can be understood as the number of days difference. Using this time difference as the initial reading instruction positioning number can vaguely locate the positioning number of the first reading instruction that may be within the reading time interval, thus avoiding the operation of continuously sending reading instructions to the electric energy meter between the reading end time and the current operation time starting from the current operation time, and avoiding the consequence that the communication failure rate increases due to excessive interactions with the electric energy meter caused by executing too many invalid daily freeze time reading commands.
[0072] In step 103, determine the initial daily freeze time based on the initial reading instruction positioning number.
[0073] Assume that the initial reading instruction positioning number is 10. Then the mobile operation terminal reads the 10th initial daily freeze time before the current operation time from the electric energy meter. It can be understood that the time corresponding to the daily freeze power data recorded at the current operation time can be used as the 0th initial daily freeze time, the time corresponding to the daily freeze power data recorded on the previous day of the current operation time can be used as the 1st initial daily freeze time, and so on until the 62nd initial daily freeze time. Thus, the initial daily freeze time, that is, the first daily freeze time that may be within the reading time interval, can be read from the electric energy meter based on the initial reading instruction positioning number.
[0074] In step 104, compare the initial daily freeze time with the start time and end time of the reading, and determine whether to read the daily freeze power data according to the comparison result.
[0075] To further clarify whether the initial daily freeze time is within the reading time range, it is necessary to compare the initial daily freeze time with the start time and end time of the reading. It can be understood that if it is within the reading time range, the daily freeze power data is read; if not, the initial daily freeze time is further adjusted. For example, a next initial daily freeze time is updated based on the initial daily freeze time until the initial daily freeze time is within the reading time range and then the reading is performed.
[0076] By obtaining the start time and end time of the reading, determine the time range of the daily freeze reading data that needs to be supplemented. Determine the initial reading instruction positioning number according to the end time of the reading and the current operation time, and determine the initial daily freeze time based on the initial reading instruction positioning number, so as to quickly complete the positioning of the initial daily freeze time. Then compare the initial daily freeze time with the start time and end time of the reading, and determine whether to read the daily freeze power data according to the comparison result, so as to reduce the interaction times between the mobile operation terminal and the electric energy meter, improve the success rate of data reading, reduce the work burden of on-site operators, and effectively improve the reading efficiency of the daily freeze power data.
[0077] In some embodiments, when the initial daily freeze time is less than the start time of the reading, the initial reading instruction positioning number can be updated by the bisection method, so as to update the next daily freeze time, and continuously compare with the start time and end time of the reading to determine whether to read the daily freeze power data. Figure 2 This is the second flowchart of the daily freeze data acquisition method shown in the embodiments of the present application. Please refer to Figure 2 The daily freeze data acquisition method shown in the embodiments of the present application may include:
[0078] In step 201, determine the initial reading instruction positioning number according to the end time of the reading and the current operation time.
[0079] In the embodiments of the present application, the current operation time can be subtracted from the end time of the reading to obtain the initial reading instruction positioning number. It can be understood that in practical applications, the method for determining the initial reading instruction positioning number can be various and needs to be determined according to the actual application situation, and is not limited herein.
[0080] In step 202, determine the initial daily freeze time based on the initial reading instruction positioning number.
[0081] In the embodiment of the present application, an initial time reading instruction can be generated based on the initial reading instruction positioning number, and then the initial time reading instruction is sent to the electric energy meter. Next, the initial time information fed back by the electric energy meter is received, and the initial time information is determined as the initial daily freeze time. It can be understood that in practical applications, the method for determining the initial daily freeze time can be diverse and needs to be determined according to the actual application situation, and it is not uniquely limited here.
[0082] In step 203, the initial daily freeze time is compared with the reading start time and the reading end time. If the initial daily freeze time is less than the reading start time, the initial daily freeze time is updated until the initial daily freeze time is within the reading time interval.
[0083] If the initial daily freeze time is less than the reading start time, the initial reading instruction positioning number can be updated by the bisection method first to obtain a first candidate number. The bisection method is to assume that the initial reading instruction positioning number is N0 and the first candidate number is N1, then N1 = 0.5N0, so as to perform fuzzy positioning on the next reading instruction corresponding to the initial reading instruction positioning number. Then, based on the first candidate number, a first candidate daily freeze time is determined. Next, the first candidate daily freeze time is further compared with the reading start time and the reading end time. If the first candidate daily freeze time is less than the reading start time, the first candidate number is continuously updated by the bisection method to obtain an updated first candidate number; if the first candidate daily freeze time is greater than the reading end time, the first candidate number is incrementally updated to obtain an updated first candidate number. Specifically, the increment tolerance can be preferably set to 1, and it can also be other positive integers greater than 1 in practical applications, which needs to be determined according to the actual application situation and is not uniquely limited here.
[0084] Repeat the steps of determining the first candidate daily freeze time based on the first candidate number until comparing the first candidate daily freeze time with the reading start time and the reading end time until the first candidate daily freeze time is greater than or equal to the reading start time and less than or equal to the reading end time, then read the daily freeze electric energy data starting from the first candidate daily freeze time.
[0085] In step 204, read the daily freeze electric energy data.
[0086] Read the daily freeze electric energy data starting from the first candidate daily freeze time, and / or if the initial daily freeze time is greater than or equal to the reading start time and less than or equal to the reading end time, read the daily freeze electric energy data starting from the initial daily freeze time.
[0087] In the embodiment of the present application, the daily frozen power data can be read forward starting from the current first candidate date freezing time or the initial date freezing time, and the daily frozen power data can be read backward starting from the current first candidate date freezing time or the initial date freezing time. Herein, the forward direction is the time progression direction from the current first candidate date freezing time or the initial date freezing time to the reading end time; the backward direction is the time regression direction from the current first candidate date freezing time or the initial date freezing time to the reading start time.
[0088] Reading the daily frozen power data forward starting from the current first candidate date freezing time or the initial date freezing time can specifically be to first perform a decreasing update on the first candidate number corresponding to the current first candidate date freezing time or the initial reading instruction positioning number corresponding to the initial date freezing time to obtain a first reading number. Specifically, the decreasing tolerance can preferably be set to 1, and in practical applications, it can also be other positive integers greater than 1, which needs to be determined according to the actual application situation and is not uniquely limited here. Then, based on the first reading number, determine the first reading daily freezing time. If the first reading daily freezing time is less than or equal to the reading end time, read the daily frozen power data according to the first reading daily freezing time, and then continue to perform a decreasing update on the first reading number to obtain an updated first reading number. Repeat the steps of determining the first reading daily freezing time based on the first reading number to reading the daily frozen power data according to the first reading daily freezing time until the first reading daily freezing time is greater than the reading end time, then stop reading.
[0089] Exemplarily, assume that the first candidate number corresponding to the current first candidate date freezing time or the initial reading instruction positioning number corresponding to the initial date freezing time is 7, and both the first candidate date freezing time and the initial date freezing time are between the reading start time and the reading end time. After the daily frozen power data corresponding to the first candidate date freezing time and the initial date freezing time are read, perform a decreasing update on the first candidate number corresponding to the current first candidate date freezing time or the initial reading instruction positioning number corresponding to the initial date freezing time. Assume that the decreasing tolerance is 1, then the first reading number obtained after the decrease is 6. Determine the first reading daily freezing time based on the first reading number, thereby determining the 6th previous daily freezing time starting from the current operation time. If the 6th previous daily freezing time is between the reading start time and the reading end time, then read the daily frozen power data corresponding to the 6th previous daily freezing time.
[0090] In addition, reading the daily frozen power data in reverse starting from the current first candidate date freeze time or the initial date freeze time may specifically be to first incrementally update the first candidate number corresponding to the current first candidate date freeze time or the initial reading instruction positioning number corresponding to the initial date freeze time to obtain a second reading number. Specifically, the incremental tolerance can preferably be set to 1, and in practical applications, it can also be other positive integers greater than 1, which needs to be determined according to the actual application situation and is not uniquely limited here. Then, based on the second reading number, determine the second reading date freeze time. If the second reading date freeze time is greater than or equal to the reading start time, read the daily frozen power data according to the second reading date freeze time. Then continue to incrementally update the second reading number to obtain an updated second reading number. Repeat the steps of determining the second reading date freeze time based on the second reading number until reading the daily frozen power data according to the second reading date freeze time until the second reading date freeze time is less than the reading start time, then stop reading.
[0091] Exemplarily, assume that the first candidate number corresponding to the current first candidate date freeze time or the initial reading instruction positioning number corresponding to the initial date freeze time is 7, and both the first candidate date freeze time and the initial date freeze time are between the reading start time and the reading end time. After the daily frozen power data corresponding to the first candidate date freeze time and the initial date freeze time is read, incrementally update the first candidate number corresponding to the current first candidate date freeze time or the initial reading instruction positioning number corresponding to the initial date freeze time. Assume that the incremental tolerance is 1, then the second reading number obtained after decrementing is 8. Based on the second reading number, determine the second reading date freeze time, thereby determining the 8th previous daily freeze time starting from the current operation time. If the 8th previous daily freeze time is between the reading start time and the reading end time, then read the daily frozen power data corresponding to the 8th previous daily freeze time.
[0092] In some embodiments, when the initial date freeze time is less than the reading start time, the initial reading instruction positioning number can be incrementally updated to update the next daily freeze time forward, and by continuously comparing with the reading start time and the reading end time, determine whether to read the daily frozen power data. Figure 3 It is the third flow diagram of the daily freeze data acquisition method shown in the embodiments of the present application. Please refer to Figure 3 , the daily freeze data acquisition method shown in the embodiments of the present application may include:
[0093] In step 301, compare the initial date freeze time with the reading start time and the reading end time. If the initial date freeze time is greater than the reading end time, update the initial date freeze time until the initial date freeze time is within the reading time range.
[0094] If the initial day freeze time is greater than the meter reading end time, the positioning number of the initial meter reading instruction can be incrementally updated to obtain a second candidate number. Specifically, the incremental tolerance can preferably be set to 1, and in practical applications, it can also be other positive integers greater than 1, which needs to be determined according to the actual application situation and is not uniquely limited here. Then, based on the second candidate number, the second candidate day freeze time is determined, and further, the second candidate day freeze time is compared with the meter reading start time and the meter reading end time. If the second candidate day freeze time is greater than the meter reading end time, the second candidate number is incrementally updated to obtain an updated second candidate number; if the second candidate day freeze time is less than or equal to the meter reading end time and greater than or equal to the meter reading start time, the daily frozen power data is read according to the second candidate day freeze time.
[0095] In step 302, the daily frozen power data is read.
[0096] Repeat the steps from determining the second candidate day freeze time based on the second candidate number to reading the daily frozen power data according to the second candidate day freeze time until the second candidate day freeze time is less than the meter reading start time or the number of executions is greater than 62 times, then stop reading. The specific reading details are substantially the same as the content of reversely reading the daily frozen power data starting from the current first candidate day freeze time or the initial day freeze time in step 204 and will not be repeated here.
[0097] Corresponding to the foregoing application function implementation method embodiments, the present application also provides an electronic device for executing a daily freeze data acquisition method and corresponding embodiments.
[0098] Figure 4 The block diagram showing the hardware configuration of the electronic device 800 that can implement the daily freeze data acquisition method of the embodiments of the present application is as follows Figure 4 As shown, the electronic device 800 may include a processor 810 and a memory 820. In Figure 4 the electronic device 800, only the constituent elements related to this embodiment are shown. Therefore, it is obvious to those of ordinary skill in the art that: the electronic device 800 may further include common constituent elements different from those shown in Figure 4 For example: a fixed-point arithmetic unit.
[0099] The electronic device 800 may correspond to a computing device with various processing functions. For example, functions for generating a neural network, training or learning a neural network, quantifying a floating-point neural network into a fixed-point neural network, or retraining a neural network. For example, the electronic device 800 may be implemented as various types of devices, such as a personal computer (PC), a server device, a mobile device, etc.
[0100] The processor 810 controls all functions of the electronic device 800. For example, the processor 810 controls all functions of the electronic device 800 by executing a program stored in the memory 820 of the electronic device 800. The processor 810 may be implemented by a central processing unit (CPU), a graphics processing unit (GPU), an application processor (AP), an artificial intelligence processor chip (IPU), etc. provided in the electronic device 800. However, the present application is not limited thereto.
[0101] In some embodiments, the processor 810 may include an input / output (I / O) unit 811 and a computing unit 812. The I / O unit 811 may be used to receive various data, such as a reading start time and a reading end time. Exemplarily, the computing unit 812 may be used to determine an initial reading instruction positioning number according to the reading end time and the current job time, determine an initial daily freeze time based on the initial reading instruction positioning number, and compare the initial daily freeze time with the reading start time and the reading end time, and determine whether to read the daily freeze power data according to the comparison result. The result of whether to read the daily freeze power data may be output by the I / O unit 811, for example. The output data may be provided to the memory 820 for other devices (not shown) to read and use, or may be directly provided to other devices for use.
[0102] Memory 820 is hardware for storing various data processed in electronic device 800. For example, memory 820 may store processed data and data to be processed in electronic device 800. Memory 820 may store data involved in the process of the daily freeze data acquisition method that has been processed or is to be processed by processor 810. In addition, memory 820 may store applications, drivers, etc. to be driven by electronic device 800. For example, memory 820 may store various programs related to the daily freeze data acquisition method to be executed by processor 810. Memory 820 may be DRAM, but the present application is not limited thereto. Memory 820 may include at least one of volatile memory or non-volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory, phase change RAM (PRAM), magnetic RAM (MRAM), resistive RAM (RRAM), ferroelectric RAM (FRAM), etc. Volatile memory may include dynamic RAM (DRAM), static RAM (SRAM), synchronous DRAM (SDRAM), PRAM, MRAM, RRAM, ferroelectric RAM (FeRAM), etc. In an embodiment, memory 820 may include at least one of a hard disk drive (HDD), a solid state drive (SSD), a high density flash (CF) card, a secure digital (SD) card, a micro secure digital (Micro-SD) card, a mini secure digital (Mini-SD) card, an extreme digital (xD) card, caches, or a memory stick.
[0103] In summary, the specific functions implemented by memory 820 and processor 810 of electronic device 800 provided in the embodiments of this specification can be explained in contrast to the foregoing embodiments in this specification, and can achieve the technical effects of the foregoing embodiments, which will not be elaborated here.
[0104] In this embodiment, processor 810 may be implemented in any suitable manner. For example, processor 810 may take the form of, for example, a microprocessor or a processor and a computer-readable medium storing computer-readable program code (such as software or firmware) executable by the (micro)processor, logic gates, switches, an application specific integrated circuit (ASIC), a programmable logic controller, and a form embedded with a microcontroller, etc.
[0105] It should be understood that the possible terms "first" or "second" etc. in the claims, the specification and the drawings disclosed in this application are used to distinguish different objects, rather than to describe a specific order. The terms "comprising" and "including" used in the specification and claims disclosed in this application indicate the presence of the described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their combinations.
[0106] It should also be understood that the terms used in the specification disclosed in this application are only for the purpose of describing specific embodiments and are not intended to limit the disclosure of this application. As used in the specification and claims of this application, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include the plural forms. It should be further understood that the term "and / or" used in the specification and claims of this application refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0107] Although the embodiments of this application are as above, the above content is only an example for facilitating the understanding of this application and is not intended to limit the scope and application scenarios of this application. Any person skilled in the art within the technical field described in this application can make any modifications and changes in the form of implementation and details without departing from the spirit and scope disclosed in this application. However, the scope of patent protection of this application shall still be subject to the scope defined by the appended claims.
[0108] It should also be understood that any module, unit, component, server, computer, terminal or device that executes instructions exemplified herein may include or otherwise access a computer-readable medium, such as a storage medium, a computer storage medium or a data storage device (removable) and / or non-removable), such as a magnetic disk, an optical disk or a magnetic tape. The computer storage medium may include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information, such as computer-readable instructions, data structures, program modules or other data.
Claims
1. A daily freeze data acquisition method, characterized in that, Including: Obtain the starting time and ending time of the reading; Determine the initial reading instruction positioning number according to the reading ending time and the current operation time; Determine the initial daily freeze time based on the initial reading instruction positioning number; Compare the initial daily freeze time with the reading starting time and the reading ending time, and determine whether to read the daily freeze power data according to the comparison result; The determining the initial reading instruction positioning number according to the reading ending time and the current operation time includes: Subtract the reading ending time from the current operation time to obtain the initial reading instruction positioning number; The determining the initial daily freeze time based on the initial reading instruction positioning number includes: Generate an initial time reading instruction based on the initial reading instruction positioning number; Send the initial time reading instruction to the electricity meter; Receive the initial time information fed back by the electricity meter, and determine the initial time information as the initial daily freeze time.
2. The method for collecting daily freeze data according to claim 1, wherein The determining whether to read the daily freeze power data according to the comparison result includes: If the initial daily freeze time is less than the reading starting time, update the initial reading instruction positioning number by the dichotomy method to obtain a first candidate number; Determine a first candidate daily freeze time based on the first candidate number; Compare the first candidate daily freeze time with the reading starting time and the reading ending time; If the first candidate daily freeze time is less than the reading starting time, update the first candidate number by the dichotomy method to obtain an updated first candidate number; Execute the steps from determining the first candidate daily freeze time based on the first candidate number to comparing the first candidate daily freeze time with the reading starting time and the reading ending time; Until the first candidate daily freeze time is greater than or equal to the reading starting time and less than or equal to the reading ending time, read the daily freeze power data starting from the first candidate daily freeze time.
3. The method for collecting daily freeze data according to claim 2, wherein After comparing the first candidate daily freeze time with the reading starting time and the reading ending time, it further includes: If the first candidate daily freeze time is greater than the reading ending time, incrementally update the first candidate number to obtain an updated first candidate number.
4. The method for collecting daily freeze data according to claim 2, wherein The determining whether to read the daily freeze power data according to the comparison result includes: If the initial daily freeze time is greater than or equal to the reading starting time and less than or equal to the reading ending time, read the daily freeze power data starting from the initial daily freeze time.
5. The method for collecting daily freeze data according to claim 4, wherein The reading the daily freeze power data includes: Read the daily freeze power data forward starting from the current first candidate daily freeze time or the initial daily freeze time; and Read the daily frozen power data in reverse starting from the current first candidate daily freezing time or the initial daily freezing time; Wherein, the forward direction is the time progression direction from the current first candidate daily freezing time or the initial daily freezing time to the reading end time; the reverse direction is the time reverse direction from the current first candidate daily freezing time or the initial daily freezing time to the reading start time.
6. The method for collecting daily frozen data according to claim 5, wherein, The forward reading of the daily frozen power data starting from the current first candidate daily freezing time or the initial daily freezing time includes: Decrementally update the first candidate number corresponding to the current first candidate daily freezing time or the initial reading instruction positioning number corresponding to the initial daily freezing time to obtain a first reading number; Determine the first reading daily freezing time based on the first reading number; If the first reading daily freezing time is less than or equal to the reading end time, read the daily frozen power data according to the first reading daily freezing time; Decrementally update the first reading number to obtain an updated first reading number; Execute the steps from determining the first reading daily freezing time based on the first reading number to reading the daily frozen power data according to the first reading daily freezing time until the first reading daily freezing time is greater than the reading end time and then stop reading.
7. The method for collecting daily frozen data according to claim 5, wherein, The reverse reading of the daily frozen power data starting from the current first candidate daily freezing time or the initial daily freezing time includes: Incrementally update the first candidate number corresponding to the current first candidate daily freezing time or the initial reading instruction positioning number corresponding to the initial daily freezing time to obtain a second reading number; Determine the second reading daily freezing time based on the second reading number; If the second reading daily freezing time is greater than or equal to the reading start time, read the daily frozen power data according to the second reading daily freezing time; Incrementally update the second reading number to obtain an updated second reading number; Execute the steps from determining the second reading daily freezing time based on the second reading number to reading the daily frozen power data according to the second reading daily freezing time until the second reading daily freezing time is less than the reading start time and then stop reading.
8. The method for collecting daily frozen data according to claim 1, wherein, Determining whether to read the daily frozen power data according to the comparison result includes: If the initial daily freezing time is greater than the reading end time, incrementally update the initial reading instruction positioning number to obtain a second candidate number; Determine the second candidate daily freezing time based on the second candidate number; Compare the second candidate daily freezing time with the reading start time and the reading end time; If the second candidate daily freezing time is greater than the reading end time, incrementally update the second candidate number to obtain an updated second candidate number; If the freezing time of the second candidate date is less than or equal to the end time of the meter reading and greater than or equal to the start time of the meter reading, then read the daily frozen power data according to the freezing time of the second candidate date; Execute the steps from determining the freezing time of the second candidate date based on the second candidate number to reading the daily frozen power data according to the freezing time of the second candidate date, until the freezing time of the second candidate date is less than the start time of the meter reading or the number of executions is greater than 62 times, then stop reading.
9. An electronic device, characterized in that, Comprising: A processor; And A memory storing executable code thereon, which when executed by the processor causes the processor to execute the method according to any one of claims 1-8.
10. A non-transitory machine-readable storage medium storing executable code thereon, which when executed by a processor of an electronic device causes the processor to execute the method according to any one of claims 1-8.
Citation Information
Patent Citations
Method and system for testing electricity consumption information acquisition system, and master station
CN102468984A
Dynamic intelligent meter reading method and system
CN110992210A