Data reporting method and device of NB meter
By introducing a dynamic switching mechanism between discrete-time and fixed-time reporting in NB water meters, and combining this with signal testing equipment to optimize the reporting strategy, the problem of unstable reporting rates caused by network signal fluctuations was solved, achieving efficient and reliable data transmission and low-power operation of the equipment.
Patent Information
- Application Number
- CN202511351460.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-22
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2045-09-22
AI Technical Summary
Existing NB water meters, limited by base station bandwidth, suffer from unstable reporting rates due to network signal fluctuations, making it difficult to achieve the required 99.9% communication success rate.
A two-way dynamic switching mechanism of discrete time reporting and preset fixed time reporting is adopted. When discrete reporting meets preset conditions, it switches to fixed reporting and restarts discrete reporting when the conditions are met. The fixed reporting time point is set in combination with the signal value curve returned by the signal testing tool, and the reporting strategy is optimized to adapt to different network scenarios.
It achieves continuity and reliability of data transmission in different network environments, takes into account the low power consumption requirements of the device and the efficiency of resource utilization, ensures a reporting success rate of 99.9%, and avoids redundant power consumption and resource waste.
Smart Images

Figure CN120881422B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of Internet of Things data transmission, and particularly relates to a data reporting method and device of an NB meter. BACKGROUND
[0002] Currently, in the water industry, the NB water meter (i.e. a smart water meter using Narrow Band Internet of Things NB-IoT communication technology) used on site has requirements for communication reporting success rate. The daily reporting success rate is required to reach 99.9% to be considered qualified. NB communication, as a narrowband Internet of Things communication technology, has a data communication transmission bandwidth of 180 kHz, and the bandwidth of one subcarrier is 15 kHz, that is, only 12 devices can report data to the operator base station at the same time. In actual application scenarios, the number of devices installed in one area exceeds 12, and the remaining devices exceeding 12 cannot be online to meet the 99.9% online qualification rate due to bandwidth limitations.
[0003] To solve this base station bandwidth limitation problem, the traditional solution is to use staggered reporting, that is, the meters in the coverage area of a base station report in different time periods according to the meter number within a certain time range. However, the reporting time of each meter is fixed at a certain time point, and due to the automatic adjustment of the power or related parameter indicators of the base station (e.g. most communication devices do not communicate at night to reduce the power consumption of the base station), it can cause the meters reporting in this time period to have no network signal or poor signal, resulting in reporting failure. This network signal fluctuation causes the online rate to be unstable and does not meet the reporting rate requirement. SUMMARY
[0004] Therefore, the present application provides a data reporting method and device of an NB meter to solve the problem of unstable online rate caused by network signal fluctuation in the prior art, which does not meet the reporting rate requirement.
[0005] In a first aspect, the present application provides a data reporting method of an NB meter, which comprises:
[0006] obtaining a discrete time reporting scheme of the NB meter, and when the NB meter uses the discrete time reporting scheme and meets a first preset reporting condition, switching to a preset fixed time reporting scheme;
[0007] reporting the data of the NB meter based on the preset fixed time reporting scheme;
[0008] when the NB meter uses the preset fixed time reporting scheme and meets a second preset reporting condition, restarting the discrete time reporting scheme.
[0009] The application provides a data reporting method of an NB meter, which comprises the following steps: constructing a two-way dynamic switching mechanism of discrete time reporting, preset fixed time reporting and restarting discrete time reporting, when the discrete reporting meets a first preset condition, avoiding data reporting interruption by switching to the fixed reporting scheme to guarantee transmission reliability, when the fixed reporting meets a second preset condition, restarting the discrete reporting scheme in time to avoid the waste of power consumption or resources caused by the fixed reporting, realizing flexible adaptation of reporting strategies in different network scenarios, balancing data transmission continuity, device low power consumption demand and resource utilization efficiency, effectively solving the problem of insufficient reporting reliability caused by continuous failure in the discrete reporting mode, guaranteeing the stability of the NB meter data reporting, guaranteeing that the communication reporting success rate meets the reporting rate requirement, realizing the balance between reporting success rate and scheme flexibility, and solving the problem that the online rate is unstable and cannot meet the reporting rate requirement caused by network signal fluctuation in the prior art.
[0010] In an optional embodiment, the first preset reporting condition is that the NB meter fails in data reporting for a continuous preset number of days at the discrete reporting time point.
[0011] When the NB meter adopts the discrete time reporting scheme and meets the first preset reporting condition, the preset fixed time reporting scheme is switched to, and the method comprises the following steps:
[0012] The discrete reporting time point in the discrete time reporting scheme of the NB meter is acquired.
[0013] It is judged whether the NB meter fails in data reporting for a continuous preset number of days at the discrete reporting time point, and when the NB meter fails in data reporting for a continuous preset number of days at the discrete reporting time point, the preset fixed time reporting scheme is switched to.
[0014] In an optional embodiment, it is judged whether the NB meter fails in data reporting for a continuous preset number of days at the discrete reporting time point, and the method comprises the following steps:
[0015] When the NB meter initiates a reporting request, no reporting success confirmation signal sent by the superior platform is received at any time point of the discrete reporting time point in the same day, it is determined that the NB meter fails in reporting at the discrete reporting time point in the day, and if the NB meter fails in reporting at the discrete reporting time point for a continuous preset number of days, it is determined that the NB meter fails in data reporting for a continuous preset number of days at the discrete reporting time point.
[0016] The application provides a data reporting method of an NB meter, which takes any time point in single-day discrete reporting time points as a precise judgment standard for single-day failure, avoids misjudgment of single-time accidental failure as a single-day problem, and ensures the reliability of single-day failure results; and through accumulation of continuous preset days meeting the single-day failure condition, continuous failure is determined, which can accurately identify continuous reporting failure, provides objective and rigorous triggering basis for subsequent switching to a fixed-time reporting scheme, effectively avoids mis-triggering or missed triggering of switching actions, and ensures the accuracy of reporting strategy adjustment.
[0017] In an optional embodiment, the preset fixed-time reporting scheme is a scheme of reporting data based on fixed reporting time points;
[0018] When the NB meter adopts the discrete-time reporting scheme and meets the first preset reporting condition, the preset fixed-time reporting scheme is switched to, including:
[0019] The fixed reporting time points of the NB meter are determined, and the fixed reporting time points are multiple time points randomly set or multiple time points set through a signal value curve returned by a signal test tool;
[0020] When the NB meter fails to report data at the discrete reporting time points for continuous preset days, the scheme of reporting data based on the fixed reporting time points is switched to.
[0021] The application provides a data reporting method of an NB meter, and the fixed reporting time points support two modes of random setting and setting based on a signal value curve returned by a signal test tool, the former can be flexibly adapted to different deployment scenes, and the latter can accurately select points in combination with actual signal rules to improve the reporting success rate; at the same time, the preset fixed-time reporting scheme is switched to only when the discrete reporting fails for continuous preset days, which avoids unnecessary scheme switching and ensures data reporting through optimized fixed time points when the discrete reporting fails, and multiple considerations of scene adaptation flexibility, signal utilization accuracy and reporting reliability are realized.
[0022] In an optional embodiment, the NB meter data is reported based on the preset fixed-time reporting scheme, including:
[0023] The fixed reporting time points in the preset fixed-time reporting scheme are acquired, and the current time of the NB meter is read;
[0024] The closest time point between the current time and the fixed reporting time points is determined, and the closest time point is taken as an alarm clock reporting time point;
[0025] Determine whether the NB meter reports successfully at the alarm clock reporting time point, if the reporting is successful, stop the fixed reporting time point data reporting of the day, if the reporting fails, continue to determine the next alarm clock reporting time point, continue the next alarm clock reporting time point data reporting, until the NB meter data reporting of the day is successful.
[0026] The application provides a data reporting method of an NB meter, which determines the closest time point in the fixed reporting time points as the alarm clock reporting time point by combining the current time, avoids redundant waiting, quickly triggers the first reporting, improves the reporting response efficiency, stops the remaining fixed time point reporting of the day after the reporting is successful, reduces invalid reporting actions to save the battery power of the NB meter (adapt to the low-power operation requirement of the NB meter), continues to determine the next alarm clock reporting time point until the reporting of the day is successful if the reporting fails, maximally avoids the single-day missing reporting risk, guarantees the data reporting success rate requirement, and realizes the efficient balance of the reporting efficiency, power optimization and reporting reliability.
[0027] In an optional implementation, determining the closest time point in the fixed reporting time points and the current time comprises:
[0028] Converting the current time and the fixed reporting time points into second values, and judging the time legality of the second values of the fixed reporting time points;
[0029] After the time legality of the second values of the fixed reporting time points, calculating the difference time between the second value of the current time and the second values of each time point in the fixed reporting time points, and screening the smallest difference time, and taking the time point corresponding to the set time value greater than the smallest difference time as the closest time point.
[0030] The application provides a data reporting method of an NB meter, which converts the current time and the fixed reporting time points into second values, eliminates the calculation error caused by the format difference of hours, minutes and seconds, provides an accurate and unified measurement basis for difference comparison, judges the time legality of the second values of the fixed time points (such as less than the maximum number of seconds in a day) in advance to exclude invalid time points (such as an error configuration of more than 24 hours) and avoid subsequent invalid calculation, and selects the time point with the smallest difference time and greater than the set time value, which not only ensures the closest time point to the current time to reduce reporting waiting and improve response efficiency, but also avoids repeated reporting triggered in a short time (such as frequent wake-up of adjacent time points) by the difference greater than the set value, reduces invalid power consumption and network resource occupation, and considers the accuracy, effectiveness and low-power operation requirement of the meter.
[0031] In an optional implementation, determining the next alarm clock reporting time point comprises:
[0032] Judging the time legality of the smallest difference time;
[0033] When the minimum difference time is legal, the accumulated time of the current time second value and the minimum difference time is calculated as the next initial alarm clock reporting time point second value;
[0034] It is judged whether the deviation value between the next initial alarm clock reporting time point second value and the last alarm clock reporting time point second value is greater than the set time value, and when the deviation value is greater than the set time value, the next initial alarm clock reporting time point second value is taken as the next alarm clock reporting time point second value;
[0035] The next alarm clock reporting time point second value is converted into a time minute second representation as the next alarm clock reporting time point.
[0036] The data reporting method of the NB meter provided by the application first judges the legality of the minimum difference time, excludes invalid difference values (such as negative numbers and values beyond a reasonable range) in advance, lays a reliable data foundation for subsequent time calculation, and avoids reporting time errors caused by abnormal difference values; then the accumulated value of the current time second value and the legal minimum difference time is taken as the next initial alarm clock time second value, ensuring the time sequence continuity of the next time and the current time, meeting the progressive needs of the reporting logic; by further verifying whether the difference value between the initial time second value and the last alarm clock time second value is greater than the set time value, the problem of repeatedly triggering the alarm clock reporting in a short time (such as frequent wake-up near the time) can be effectively avoided, the invalid power consumption and network resource occupation of the NB meter are reduced, and the low-power operation characteristics are adapted; finally, the legal time second value is converted into a time minute second form, accurately matching the format requirements of the RTC alarm clock register, ensuring that the next alarm clock time can be correctly recognized and triggered, and the accuracy of time calculation, the effectiveness of reporting action and the efficient balance of low-power demand of the meter are realized.
[0037] In an optional embodiment, the NB meter data reporting is performed based on a preset fixed time reporting scheme, and further includes:
[0038] The fixed reporting time point corresponding to the time point when the NB meter successfully reports at the alarm clock reporting time point is recorded, and the signal value received power of the fixed reporting time point corresponding to the time point when the NB meter successfully reports is obtained;
[0039] If the signal value received power is greater than the preset signal power threshold, it is determined that the network environment signal at the installation site of the NB meter is good, the corresponding fixed reporting time point is saved, and the next day the NB meter data reporting is performed according to the saved corresponding fixed reporting time point;
[0040] If the signal value received power is less than the preset signal power threshold, it is determined that the network environment signal at the installation site of the NB meter is unstable, and the NB meter data reporting is continued based on the preset fixed time reporting scheme.
[0041] The application provides a data reporting method of an NB meter, which is characterized in that: a fixed reporting time point and signal value received power corresponding to a reporting success time are recorded, the reporting result is deeply associated with the field network quality, and a closed loop of result feedback-strategy adjustment is formed; when the signal value received power is greater than a preset threshold (determining that the network signal is good), the time is saved and reused the next day, and a plurality of time polling can be directly skipped, so that invalid wake-up and reporting actions are significantly reduced, and the low-power operation requirement of the NB meter is met; when the signal value received power is less than the preset threshold (determining that the network is unstable), the original fixed time reporting scheme is continued to be used, reporting failure caused by blind simplification of the strategy is avoided, and data transmission reliability is ensured; the overall design is based on dynamic adjustment of the actual signal quality on site, the limitation of a one-size-fits-all strategy is avoided, and efficient balance of network adaptation accuracy, power consumption optimization and reporting success rate is achieved.
[0042] In an optional embodiment, the second preset reporting condition is that there is no network signal at the installation site of the NB meter all day to stop the data reporting of the NB meter.
[0043] When the NB meter adopts the preset fixed time reporting scheme and the second preset reporting condition is met, the discrete time reporting scheme is restarted, comprising:
[0044] If the NB meter data reporting fails for a continuous preset number of days when the fixed reporting time point is polled, it is determined that there is no network signal at the installation site of the NB meter all day, and the data reporting of the NB meter is stopped within a week after the preset number of days of reporting failure.
[0045] After the data reporting time of the NB meter is stopped, the reporting mechanism of the discrete reporting time point of the NB meter is restarted.
[0046] The data reporting method of the NB meter provided by the application can determine that there is no network signal at the installation site all day when the fixed reporting time point fails for a continuous preset number of days, and stop reporting within a week after that, which can avoid unnecessary power consumption caused by continuous invalid reporting from the root, significantly prolong the service life of the battery of the NB meter, automatically restart the discrete reporting mechanism after a week, prevent permanent data loss caused by long-term stop reporting, ensure that the reporting process can be restarted after the network environment may recover, and achieve accurate balance of power optimization and long-term reporting continuity in extreme network environment, taking into account the long-term reliability of device endurance and data transmission.
[0047] In a second aspect, the application provides a data reporting device of an NB meter, which comprises:
[0048] The discrete reporting scheme switching to the fixed reporting scheme module is used for acquiring the discrete time reporting scheme of the NB meter, and when the NB meter adopts the discrete time reporting scheme and the first preset reporting condition is met, the preset fixed time reporting scheme is switched to.
[0049] The fixed reporting scheme reporting module is configured to report NB meter data based on the preset fixed time reporting scheme.
[0050] The fixed reporting scheme to discrete reporting scheme switching module is configured to restart the discrete time reporting scheme when the NB meter adopts the preset fixed time reporting scheme and the second preset reporting condition is met.
[0051] In a third aspect, the present application provides a computer device, comprising a memory and a processor, the memory and the processor are communicatively connected with each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the data reporting method of the NB meter according to the first aspect or any one of the corresponding embodiments thereof.
[0052] In a fourth aspect, the present application provides a computer readable storage medium, which stores computer instructions, and the computer instructions are used to make a computer execute the data reporting method of the NB meter according to the first aspect or any one of the corresponding embodiments thereof.
[0053] In a fifth aspect, the present application provides a computer program product, which comprises computer instructions, and the computer instructions are used to make a computer execute the data reporting method of the NB meter according to the first aspect or any one of the corresponding embodiments thereof. BRIEF DESCRIPTION OF DRAWINGS
[0054] In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the drawings needed in the specific embodiments or prior art description will be briefly introduced as follows. Obviously, the drawings in the following description are some embodiments of the present application, and those skilled in the art can also obtain other drawings according to these drawings without creative labor.
[0055] Figure 1 is a flowchart of the data reporting method of the NB meter according to an embodiment of the present application;
[0056] Figure 2 is a flowchart of another data reporting method of the NB meter according to an embodiment of the present application;
[0057] Figure 3 is a flowchart of still another data reporting method of the NB meter according to an embodiment of the present application;
[0058] Figure 4 is a schematic diagram of the network signal index of the current environment reported by the signal test tool every 5 minutes according to an embodiment of the present application;
[0059] Figure 5is a description diagram of a discrete reporting time point or a fixed reporting time point according to an embodiment of the present application;
[0060] Figure 6 is a structural block diagram of a data reporting device of an NB meter according to an embodiment of the present application;
[0061] Figure 7 is a hardware structure diagram of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION
[0062] To make the objects, technical solutions and advantages of embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.
[0063] According to an embodiment of the present application, a data reporting method for an NB meter is provided. It should be noted that the steps shown in the flowchart of the drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0064] In the present embodiment, a data reporting method for an NB meter is provided, which can be used for the above-mentioned NB (NarrowBand, Narrowband Internet of Things) meter, such as an NB intelligent remote water meter, Figure 1 is a flowchart of an XX method according to an embodiment of the present application, as shown in Figure 1 The flowchart includes the following steps:
[0065] In step S101, a discrete time reporting scheme of the NB meter is acquired, and when the NB meter adopts the discrete time reporting scheme and meets a first preset reporting condition, the preset fixed time reporting scheme is switched to.
[0066] Specifically, the discrete time reporting scheme is a scheme of reporting data based on a discrete reporting time point. The first preset reporting condition can be that the NB meter fails to report data for a continuous preset number of days at the discrete reporting time point.
[0067] When the NB meter uses discrete reporting time points (i.e. non-fixed period, discrete reporting time points at different times) for data reporting, if all discrete reporting time points fail to report for a continuous preset number of days (such as 2 days, 3 days, the number of days can be set in advance), the discrete reporting mode will be stopped and a preset fixed time reporting scheme will be used, that is, the subsequent data reporting will be performed according to the fixed time set in advance (such as 9 am and 5 pm).
[0068] Step S102, performing NB meter data reporting based on the preset fixed time reporting scheme.
[0069] Specifically, when the discrete reporting of the NB meter fails for a continuous preset number of days, the reporting scheme of the fixed reporting time points set in advance (up to 24, which can be set according to the signal rule or randomly) is switched to: first read the fixed reporting time points and the current time of the meter, find the nearest legal fixed reporting time point to the current time and set it as the alarm reporting point; when the alarm goes off, try to report, if successful, do not report other fixed reporting time points for the day, if failed, continue to try the next fixed time point until the reporting for the day is successful.
[0070] Step S103, when the NB meter uses the preset fixed time reporting scheme and meets the second preset reporting condition, restart the discrete time reporting scheme.
[0071] Specifically, the second preset reporting condition can be that there is no network signal at the installation site of the NB meter all day, which causes the NB meter data reporting to stop.
[0072] If the network signal at the installation site of the NB meter is good, save the fixed reporting time point corresponding to the successful reporting to be reused next time, if the fixed reporting time point fails to report for several consecutive days, stop reporting for a week and then restart the discrete time reporting scheme, which not only guarantees the reporting efficiency but also saves the power.
[0073] The data reporting method of the NB meter provided in the embodiment comprises a bidirectional dynamic switching mechanism of discrete time reporting, preset fixed time reporting and restarting discrete time reporting. When the discrete reporting meets the first preset condition, the fixed reporting scheme is switched to avoid data reporting interruption and guarantee transmission reliability. When the fixed reporting meets the second preset condition, the discrete reporting scheme is restarted in time to avoid the redundancy power consumption or resource waste caused by the fixed reporting. The reporting strategy is flexibly adapted in different network scenarios, and the balance between data transmission continuity, device low power consumption demand and resource utilization efficiency is considered. The reporting reliability problem caused by continuous failure in the discrete reporting mode is effectively solved, the stability of the NB meter data reporting is guaranteed, the communication reporting success rate meets the reporting rate requirement, the adaptability to different use scenarios is improved by the configurable design of the preset days and the preset fixed time, the reporting success rate and the scheme flexibility are considered, and the problem that the online rate is unstable and cannot meet the reporting rate requirement caused by network signal fluctuation in the prior art is solved.
[0074] In the embodiment, a data reporting method of an NB meter is provided, which can be used for an NB (Narrow Band, Narrow Band Internet of Things) meter, such as an NB intelligent remote water meter, Figure 2 The flowchart of the data reporting method of the NB meter according to the embodiment of the present application is shown in Figure 2 The flowchart comprises the following steps:
[0075] In step S201, the discrete time reporting scheme of the NB meter is obtained. When the NB meter adopts the discrete time reporting scheme and meets the first preset reporting condition, the preset fixed time reporting scheme is switched to.
[0076] Specifically, the first preset reporting condition is that the NB meter fails to report data for a continuous preset number of days at the discrete reporting time point. The step S201 comprises the following steps:
[0077] In step S2011, the discrete reporting time point in the discrete time reporting scheme of the NB meter is obtained.
[0078] Specifically, the discrete reporting time point is a reporting time point of 24 discrete reporting time points randomly set at the time of factory shipment or fixed time points set according to the signal value curve returned by a signal test tool. The signal test tool reports once every 5 minutes to obtain the network signal index diagram of the current environment as shown in Figure 4 The discrete reporting time point is described as shown in Figure 5
[0079] The NB meter first determines a plurality of discrete reporting time points (i.e., discrete reporting time points, which are not fixed periods or fixed time points, but are reporting plans scattered at different times) preset by the discrete reporting strategy of the meter; then continuously monitors the actual reporting situation of the meter at these discrete time points, and judges whether the situation of continuously reaching the preset number of days (such as 3 consecutive days) and the reporting attempt at all discrete reporting time points each day fails.
[0080] Step S2012, judging whether the NB meter fails to report at the discrete reporting time points for a continuous preset number of days, when the NB meter fails to report data at the discrete reporting time points for a continuous preset number of days, switching to the preset fixed time reporting scheme.
[0081] In an optional embodiment, the preset fixed time reporting scheme is a scheme for reporting data based on a fixed reporting time point; the above step S2012 includes:
[0082] Step a1, when the NB meter initiates a reporting request, and does not receive a reporting success confirmation signal sent by the upper platform at any time point of the discrete reporting time points within the same day, it is determined that the NB meter fails to report at the discrete reporting time points on the same day, and if the NB meter fails to report at the discrete reporting time points for a continuous preset number of days, it is determined that the NB meter fails to report data at the discrete reporting time points for a continuous preset number of days.
[0083] Specifically, the preset number of days is, for example, 2 consecutive days, 3 consecutive days, etc., and the number of days can be configured according to actual needs; the above step a1 includes:
[0084] Step a11, judging the failure of single-day discrete reporting: when the NB meter initiates a data reporting request according to the preset discrete reporting time points (such as discrete time points of 9:00, 14:00, 19:00, etc. on the same day) within a day, and all reporting attempts at these discrete time points do not receive a reporting success confirmation signal (such as platform ACK (Acknowledge character, acknowledgment) confirmation not replied or reply timeout) feedback by the upper management platform, it is determined that the meter fails to report at the discrete reporting time points on the same day (if any discrete time point on the same day receives a platform success confirmation, it is determined that the discrete reporting on the same day is successful).
[0085] Step a12, judging the failure of a continuous preset number of days: if the above single-day discrete reporting failure occurs continuously and accumulates to a preset number of days (such as 2 consecutive days, 3 consecutive days, and the number of days can be configured according to actual needs), it is finally determined that the NB meter fails to report data at the discrete reporting time points for a continuous preset number of days, and further triggers the action of switching to the preset fixed time reporting scheme to ensure that data can continue to be transmitted out.
[0086] The data reporting method of the NB meter provided by the embodiment takes any time point in the single-day discrete reporting time point as the accurate judgment standard for single-day failure, which avoids misjudgment of single-time accidental failure as single-day problem and ensures the reliability of single-day failure result; and then, through accumulation of continuous preset days meeting the single-day failure condition, continuous failure is determined, which can accurately identify the continuous reporting failure, provide objective and rigorous trigger basis for subsequent switching to the fixed-time reporting scheme, effectively avoid mis-triggering or missing-triggering switching action, and ensure the accuracy of reporting strategy adjustment.
[0087] Step a2, determining the fixed reporting time point of the NB meter, the fixed reporting time point being a plurality of time points randomly set or a plurality of time points set by the signal value curve returned by the signal test tool.
[0088] Specifically, the fixed reporting time point can be determined in a random setting manner: according to the basic requirement of meter deployment scene (such as avoiding network congestion caused by concentrated reporting, adapting to low-power scheduling of meter), a plurality of dispersed time points (such as 8:15, 12:30, 18:45, etc. randomly selected every day) are directly randomly selected as the time reference for fixed reporting, which is simple to operate and can flexibly adapt to scenes without clear signal rules.
[0089] The fixed reporting time point can also be accurately set by the signal value curve returned by the signal test tool: first, use a dedicated signal test tool to continuously collect network signal strength (such as RSRP, Reference Signal Receiving Power) at different times at the actual installation position of the NB meter, and generate a signal value curve covering the whole day (the curve can intuitively show which time points have strong signals and which time points have weak signals); then, according to the curve, select time periods with strong signals and high stability, and determine a plurality of fixed time points (such as 7:00, 15:00, 21:00, etc. corresponding to signal peaks) from them, so that the fixed reporting time point matches the high-quality signal period and improves the subsequent reporting success rate. The set fixed reporting time point is described as shown in Figure 5 .
[0090] Step a3, when the NB meter fails to report data at the discrete reporting time point for a continuous preset number of days, switching to the scheme of reporting data based on the fixed reporting time point.
[0091] Specifically, when the meter discrete reporting scheme cannot meet the reporting success rate requirement, the fixed reporting scheme is automatically switched to, such as when the meter fails to report for x consecutive days (x parameters support setting, such as 3 consecutive days), the fixed reporting time point (the maximum support of the fixed reporting time point is 24 time points, the parameter is time, minute and second) is switched to, and when any one of the 24 fixed reporting time points in a day is reported successfully, the remaining fixed time points will not be reported.
[0092] Step S202, based on the preset fixed time reporting scheme, the NB meter data is reported. For details, please refer to Figure 1 The step S102 of the embodiment shown in the figure will not be repeated here.
[0093] Step S203, when the NB meter adopts the preset fixed time reporting scheme and meets the second preset reporting condition, the discrete time reporting scheme is restarted. For details, please refer to Figure 1 The step S103 of the embodiment shown in the figure will not be repeated here.
[0094] The data reporting method of the NB meter provided in this embodiment takes any time point in a single day discrete reporting time point as the accurate judgment standard for single day failure, avoids misjudging single-time accidental failure as single-day problem, and ensures the reliability of single-day failure result; and then determines continuous failure by accumulating consecutive preset days that meet the single-day failure condition, which can accurately identify continuous reporting failure, provides objective and rigorous trigger basis for subsequent switching to fixed time reporting scheme, effectively avoids mis-triggering or missing triggering switching action, ensures the accuracy of reporting strategy adjustment, and switches the fixed reporting time point to the preset fixed time reporting scheme only when the discrete reporting fails for consecutive preset days, which not only avoids unnecessary scheme switching, but also ensures data reporting through optimized fixed time points when discrete reporting fails, realizes multiple considerations of scene adaptation flexibility, signal utilization accuracy and reporting reliability.
[0095] In this embodiment, a data reporting method of an NB meter is provided, which can be used for an NB (Narrow Band, Narrow Band Internet of Things) meter, such as an NB intelligent remote water meter, Figure 3 is a flowchart of the data reporting method of the NB meter according to the embodiment of the application, as shown in the figure, the flowchart includes the following steps: Figure 3
[0096] Step S301, acquire the discrete time reporting scheme of the NB meter, and when the NB meter adopts the discrete time reporting scheme and meets the first preset reporting condition, switch to the preset fixed time reporting scheme. For details, please refer to Figure 2 The step S201 of the embodiment shown in the figure will not be repeated here.
[0097] Step S302, reporting NB meter data based on a preset fixed time reporting scheme.
[0098] Specifically, the step S302 comprises:
[0099] Step S3021, obtaining a fixed reporting time point in the preset fixed time reporting scheme, and reading a current time of the NB meter.
[0100] Specifically, the NB meter comprises a microcontroller unit (MCU), an EE memory (EE memory refers to EEPROM, i.e. electrically erasable programmable read-only memory) and an RTC (Real-Time Clock) chip.
[0101] The fixed reporting time point of the embodiment is set according to the signal curve law, and the set fixed reporting time point is written into the EE memory and kept, and the function is kept on. First, 24 fixed reporting time points stored in the EE memory are read out.
[0102] The current time of the NB meter is obtained by reading the RTC (Real-Time Clock) chip.
[0103] Step S3022, determining the closest time point in the fixed reporting time points and the current time, and taking the closest time point as the alarm reporting time point.
[0104] This step is to judge the closest time point in the 24 fixed reporting time points and the real-time time, and write the "hour-minute-second" parameters of the closest time point into the alarm register of the RTC peripheral of the microcontroller.
[0105] In an optional embodiment, the step S3022 comprises:
[0106] Step b1, converting the current time and the fixed reporting time point into second values, and judging the time legality of the fixed reporting time point second value.
[0107] For example, 24 fixed reporting time points stored outside the EEPROM (parameters issued by the upper platform, pre-stored in the EEPROM) are read out. The calculation formula of the fixed reporting time point converted into the second value is as follows:
[0108] T fix(i) = T h / s(i) + T m / s(i) + T s(i) ;
[0109] Wherein, the value of i is greater than or equal to 0 and less than or equal to 23, i.e. the value range is between 0 and 23; the values of 24 fixed reporting time points are calculated in turn, T fix(i) represents the second value of the i time point, and Th / s(i) T is the second value converted from the hour value of the i time point, T m / s(i) T is the second value converted from the minute value of the i time point, T s(i) T is the second value corresponding to the i time point.
[0110] For example:
[0111] The time value of the first point is 01:00:00, and T fix(1) = 3600s+0s+0s = 3600s;
[0112] The time value of the second point is 02:10:20, and T fix(2) = 7200s+600s+20s = 7820s;
[0113] The i-th;
[0114] The i-th;
[0115] The 23rd;
[0116] The time value of the 24th point is 00:40:30, and T fix(24) = 0s+2400s+30s = 2430s.
[0117] The current time is converted into a second value, that is, the current hour, minute and second are converted into a second value, and the calculation formula is:
[0118] T current = (T h ×3600)+(T m ×60)+ T s ;
[0119] Among them, T current is the second value corresponding to the current time, T h is the hour time, T m is the minute, and T s is the second.
[0120] For example, the current time is 10:12:30, and T current = 10×3600+12×60+30 = 36750s.
[0121] The time legality of the fixed reporting time point second value is realized by the following method:
[0122] Calculate the maximum number of seconds in 24 hours: T max / s = 24×3600 = 86400s, unit: second.
[0123] Loop to determine whether the time value of the 24 points is less than the maximum second value of one day, that is, the fixed reporting time point second value T fix(i) <Tmax / s The time is considered legal. For example, the above (T fix(1) =3600s)<(T max / s =86400s), the time is determined to be legal.
[0124] If the fixed reporting time point is set to 25 points, the conversion to the second value is 25x3600=90000s, and the time second value of 25 points is greater than the maximum second number of 24 hours in a day set in the NB meter, the time is considered illegal, and the fixed time point data reporting process is not performed.
[0125] Step b2, when the time of the fixed reporting time point corresponding to the second value is legal, the difference between the current time second value and the second value of each time point in the fixed reporting time point is calculated, the minimum difference time is selected, and the time point with a minimum difference time greater than the set time value is selected as the closest time point.
[0126] Specifically, the embodiment sets the time value T cmp to 30 minutes, i.e. 1800s.
[0127] After being legal, the difference between the current time second value and the fixed reporting time point second value is calculated: T diff = T fix(i) -T current , and the difference time T diff > T cmp (e.g. T cmp =1800s), i.e. the difference between the next fixed reporting time point and the current time must be greater than 30 minutes (i.e. 1800s).
[0128] In each round of comparison process, 24 comparisons are made until the minimum difference time T min / diff of 24 fixed reporting time points is compared, and the time point with a difference time greater than 30 minutes is selected as the closest time point of the current time, and the closest time point is selected as the alarm clock reporting time point.
[0129] Step S3023, judge whether the NB meter reports successfully at the alarm clock reporting time point, if the reporting is successful, stop the fixed reporting time point data reporting of the day; if the reporting fails, continue to determine the next alarm clock reporting time point, continue the next alarm clock reporting time point data reporting, until the NB meter data reporting of the day is successful.
[0130] Specifically, when the alarm clock time arrives, the data reporting is automatically started, and the alarm clock reporting time point of the next time is calculated.
[0131] If the alarm clock reporting time point is reported successfully, the fixed time alarm clock reporting of the day is stopped; if the alarm clock reporting time point fails, the next alarm clock reporting time point is continued to report until the reporting of the day is successful and the reporting is ended.
[0132] In an optional embodiment, the determination of the next alarm clock reporting time point in step S3023 comprises:
[0133] Step c1, judging the time legality of the minimum difference time.
[0134] When the minimum difference time T min / diff >0s, it is considered that T min / diff is legal.
[0135] Step c2, after the legality of the minimum difference time, the accumulated time of the current time second value and the minimum difference time is calculated as the next initial alarm clock reporting time point second value.
[0136] Specifically, the next initial alarm clock reporting time point second value formula is:
[0137] T alarm = (T curren + T min / diff );
[0138] Wherein, T alarm is the next initial alarm clock reporting time point second value, T curren is the current time second value, and T min / diff is the minimum difference time, all in seconds.
[0139] Step c3, judging whether the deviation value between the next initial alarm clock reporting time point second value and the last alarm clock reporting time point second value is greater than the set time value, when the deviation value is greater than the set time value, the next initial alarm clock reporting time point second value is taken as the next alarm clock reporting time point second value.
[0140] Exemplarily, the current time is 10:12:30, then T current =10×3600+12×60+30=36750s. The next time point of the current time point is 11:30:20, then T fix(i) =41420s.
[0141] At this time, T diff =41420s-36750s=4607s>T cmp (set time value 1800s), the deviation value is legal.
[0142] The next alarm clock reporting time point second value T alarm = (T curren +Tmin / diff =36750s + 4607s = 41420s.
[0143] Step c4: Convert the second value of the next alarm clock reporting time point into hour, minute and second representation, and use it as the next alarm clock reporting time point.
[0144] Specifically, the second value T of the time point reported by the next alarm clock. alarm = 41420s, convert it into hours, minutes and seconds as follows:
[0145] Next alarm hour: H alarm = T alarm / 3600, which is the integer division operation, divides by 3600 and returns the integer value. The formula is as follows:
[0146] H alarm = (H alarm / 10)<<4 + (H alarm mod 10) converts hex format values to BCD.
[0147] Where hex represents hexadecimal and BCD represents binary-encoded decimal.
[0148] Next alarm minute: M alarm = (T alarm (mod 3600) / 60; First take the modulo and then the integer part for calculation, the formula is as follows;
[0149] M alarm = (M alarm / 10)<<4 + (M alarm mod 10) converts hex format values to BCD.
[0150] Next alarm clock seconds:S alarm = (T) alarm mod 60), the modulo operation, the formula is as follows:
[0151] S alarm = (S alarm / 10)<<4 + (S alarm mod 10) converts hex format values to BCD.
[0152] The next reporting time BCD value H calculated this time. alarm M alarm Write the alarm parameter to the alarm clock register.
[0153] This scheme ensures that if reporting fails at discrete reporting points, a fixed reporting scheme will be switched to, guaranteeing that the communication reporting success rate meets the reporting rate requirements.
[0154] Step S3024, record the NB meter at the alarm reporting time point, and obtain the signal value received power corresponding to the fixed reporting time point when the reporting is successful. If the signal value received power is greater than the preset signal power threshold, it is determined that the network environment signal at the NB meter installation place is good, the corresponding fixed reporting time point is saved, and the next day the NB meter data reporting is performed according to the saved corresponding fixed reporting time point. If the signal value received power is less than the preset signal power threshold, it is determined that the network environment signal at the NB meter installation place is unstable, and the NB meter data reporting is continued based on the preset fixed time reporting scheme.
[0155] Specifically, the preset signal power threshold in the embodiment is set to -90dBm, and dBm is a unit for measuring power size, which is mainly used to represent signal power.
[0156] The signal value RSRP (Reference Signal Receiving Power) of the fixed reporting time point of the successful reporting is recorded. If the RSRP is greater than -90dBm, it is considered that the network environment signal at the meter installation place is good, and the reporting time point (optimal reporting time point) is saved. The next day, the reporting is directly performed according to the time point, the risk of power consumption caused by reporting failure of other time points is reduced, and the battery service life is prolonged. If the RSRP is less than -90dBm, it is considered that the network environment signal at the place is unstable, and the 24 fixed reporting time points are still polled for reporting in turn.
[0157] Step S303, when the NB meter adopts the preset fixed time reporting scheme and meets the second preset reporting condition, the discrete time reporting scheme is restarted.
[0158] Specifically, the second preset reporting condition is that there is no network signal at the NB meter installation place all day to stop the NB meter data reporting. The step S303 includes:
[0159] Step d, if the fixed reporting time point polling for NB meter data reporting fails for a continuous preset number of days, it is determined that there is no network signal at the NB meter installation place all day, and the NB meter data reporting is stopped within a week after the preset number of reporting failures. After the end of the NB meter data reporting time, the reporting mechanism of the NB meter discrete reporting time point is restarted.
[0160] Specifically, if the 24 fixed reporting time points polling reporting fails for a continuous x days (x parameter can be set, such as 3 consecutive days), it means that there is no network signal at the meter environment all day, and the subsequent 7 days stop reporting to save the power consumption of reporting failure. After 7 days, the default discrete reporting mechanism is restarted.
[0161] For example, if the fixed reporting time point fails to report for three consecutive days from July 1 to July 3, stops reporting for seven consecutive days from July 4 to July 10, and restarts the discrete reporting mechanism on July 11, i.e., the alarm clock reporting time point is calculated according to the table number discrete reporting algorithm to start reporting.
[0162] The discrete reporting mechanism is based on the table number, such as the last five digits of the table number (00012508000001) are 00001, and the calculated reporting time point is 00:00:05, if it is 00002, the time is 00:00:10, and the reporting time point is limited to 0 to 8 points; if the calculated time point fails to report, the 4-time reporting retransmission mechanism is started, and the retransmission interval time is 20 minutes, 60 minutes, 120 minutes, and 180 minutes, respectively, and the 4-time retransmission time is started on the basis of the last failure each time.
[0163] If the discrete reporting time point fails to report for x consecutive days, the 24 set fixed reporting time point reporting mechanism is automatically switched to.
[0164] The data reporting method of the NB meter provided in the embodiment can determine the closest time point in the fixed reporting time point as the alarm clock reporting time point by combining the current time, avoid redundant waiting, quickly trigger the first reporting, and improve the reporting response efficiency; at the same time, the remaining fixed time points of the day are stopped reporting after the reporting is successful, which can reduce invalid reporting actions to save the battery power of the NB meter (adapt to the low-power operation requirement), if the reporting fails, the next alarm clock reporting time point is continuously determined until the reporting of the day is successful, which can avoid the single-day missing reporting risk to the greatest extent, guarantee the data reporting success rate requirement, and realize the efficient balance of reporting efficiency, power optimization, and reporting reliability.
[0165] As one or more specific application embodiments of the embodiment of the application, the data reporting method of the NB meter provided by the application is further described in detail, and the specific process is as follows:
[0166] When the discrete reporting scheme of the meter cannot meet the reporting success rate requirement, the fixed reporting scheme is automatically switched to, such as when the meter fails to report for x consecutive days (x parameters support setting, such as 3 consecutive days), the fixed reporting time point (the fixed reporting time point supports setting up to 24 time points, and the parameter is time, minute, and second) is switched to, and if any one of the 24 fixed reporting time points in the day is reported successfully, the remaining time points will not be reported.
[0167] In the embodiment, the fixed reporting time point is set according to the signal curve law, the set fixed reporting time point is written into the EE memory and kept, and the function is kept on.
[0168] When the table number discrete reporting fails for consecutive x days, the fixed time reporting scheme will be enabled, and the scheme algorithm is as follows:
[0169] Step 1. Read the stored 24 fixed reporting time points from the EE memory, read the 24 fixed reporting time points stored outside the EEPROM (parameters issued by the upper platform, pre-stored in EEPROM), for example:
[0170] The time value of the first point is 01:00:00;
[0171] The time value of the second point is 02:10:20;
[0172] The third;
[0173] The fourth;
[0174] The 23rd;
[0175] The time value of the 24th point is 00:40:30.
[0176] Step 2. Get the current time of the NB meter by reading the RTC (Real-Time Clock) chip.
[0177] For example, the current time is 10:12:30.
[0178] Step 3. Loop to determine the closest time point of the current real-time and the 24 fixed reporting time points, and write the "hour-minute-second" parameters of the closest time point to the alarm register of the RTC peripheral of the microcontroller. When the alarm time arrives, it will automatically start data reporting, and calculate the alarm reporting time point of the next time.
[0179] If the current alarm reporting time point is reported successfully, stop the fixed time point alarm reporting of the current day; if the current alarm reporting time point fails, continue to report the next alarm reporting time point until the current day is reported successfully and the reporting is ended.
[0180] The determination of the closest time point and the determination of the alarm reporting time point of the next time in step 3 include the following processes:
[0181] 3.1 Convert the current time and the fixed reporting time point to second value, and judge the time legality of the fixed reporting time point second value.
[0182] The calculation formula of the fixed reporting time point converted to second value is as follows:
[0183] T fix(i) = T h / s(i) + T m / s(i) + T s(i) ;
[0184] Wherein, i value is greater than or equal to 0 and less than or equal to 23, that is, the value range is between 0 to 23; 24 fixed reporting time point values are calculated in turn, T fix(i) Indicates i time point second value, T h / s(i) It is the hour value of i time point converted into second value, T m / s(i) It is the minute value of i time point converted into second value, T s(i) It is the second value corresponding to i time point.
[0185] For example:
[0186] The time value of the first point is 01:00:00, and T fix(1) = 3600s+0s+0s = 3600s;
[0187] The time value of the second point is 02:10:20, and T fix(2) = 7200s+600s+20s = 7820s;
[0188] The third point;
[0189] The fourth point;
[0190] The 23rd point;
[0191] The time value of the 24th point is 00:40:30, and T fix(24) = 0s+2400s+30s = 2430s.
[0192] The current time is converted into second value, that is, the current hour, minute and second are converted into second value, and the calculation formula is:
[0193] T current = (T h ×3600)+(T m ×60)+ T s ;
[0194] Wherein, T current It is the second value corresponding to the current time, T h It is the hour value, T m It is the minute, and T s It is the second.
[0195] For example: the current time is 10:12:30, and T current = 10×3600+12×60+30 = 36750s.
[0196] The time legality of the fixed reporting time point second value is realized by the following way:
[0197] The maximum second number of 24 hours is calculated: T max / s = 24×3600 = 86400s, unit: second.
[0198] Cycle to determine whether the time value of 24 points is less than the maximum number of seconds in a day, i.e. fixed reporting time point second value T fix(i) <T max / s The time is considered legal. For example, the above (T fix(1) =3600s)<(T max / s =86400s), then the time is legal.
[0199] If the fixed reporting time point is set to 25 points, it is converted to a second value of 25x3600=90000s, and the time second value of 25 points is greater than the maximum number of seconds in a day set in the NB meter, then the time is considered illegal, and the fixed time point data reporting process is not executed.
[0200] 3.2 After being legal, the difference between the current time second value and the fixed reporting time point second value is calculated: T diff =T fix(i) -T current , and the difference T diff >T cmp (For example, T cmp =1800s), that is, the difference between the next fixed reporting time point and the current time must be greater than 30 minutes (i.e. 1800s).
[0201] Each round of comparison is compared 24 times until the smallest difference time T min / diff is compared among the 24 fixed reporting time points, and the time point whose difference time is greater than 30 minutes is taken as the closest time point of the current time, and the closest time point is taken as the alarm clock reporting time point.
[0202] 3.3 When the smallest difference time T min / diff >0s, then T min / diff is considered legal.
[0203] 3.4 Convert seconds to alarm clock time, i.e. the next alarm clock reporting time point:
[0204] T alarm = (T curren + T min / diff );
[0205] Wherein, T alarm is the next initial alarm clock reporting time point second value, T curren is the current time second value, and T min / diff is the smallest difference time, all in seconds.
[0206] For example, the current time is 10:12:30, then T current= 10x3600 + 12x60 + 30 = 36750s. Next time point time 11:30:20, then T fix(i) = 41420s.
[0207] At this time, T diff = 41420s - 36750s = 4607s>T cmp (set time value 1800s), deviation value is legal.
[0208] Next alarm report time point second value T alarm = (T curren +T min / diff )=36750s+4607s= 41420s.
[0209] Next alarm report time point second value T alarm = 41420s, converted to time minute second representation form as follows:
[0210] Next alarm hour: H alarm = T alarm / 3600, integer operation, divided by 3600 integer data value, formula as follows:
[0211] H alarm = (H alarm / 10)<<4 + (H alarm mod 10), hex format value to BCD.
[0212] Next alarm minute: M alarm = (T alarm mod 3600) / 60; first take module in integer calculation, formula as follows:
[0213] M alarm = (M alarm / 10)<<4 + (M alarm mod 10), hex format value to BCD.
[0214] Next alarm second: S alarm = (T alarm mod 60), module operation, formula as follows:
[0215] S alarm = (S alarm / 10)<<4 + (S alarm mod 10), hex format value to BCD.
[0216] The next time BCD value H alarm , Malarm , the Salarm parameter is written into the alarm register.
[0217] Step 4. Record the signal value RSRP (reference signal received power) of the fixed reporting time point which is reported successfully. If RSRP is greater than -90dBm, it is considered that the network environment signal at the meter installation place is optimal, and the reporting time point (optimal reporting time point) is saved. The next day, the reporting is directly reported according to the time point, which reduces the risk of power consumption failure of other reporting time points and prolongs the service life of the battery. If RSRP is less than -90dBm, it is considered that the network environment signal at the place is unstable, and the reporting is still reported in turn according to the 24 fixed reporting time points.
[0218] Step 5. If the 24 fixed reporting time points are reported in turn for x consecutive days (x parameters support setting, such as 3 consecutive days), it is considered that there is no network signal all day long at the meter environment, and the reporting is stopped for 7 days to save the power consumption of reporting failure. After 7 days, the default discrete reporting mechanism is restarted.
[0219] For example, the fixed reporting time point is adopted, and the reporting is failed for 3 consecutive days from July 1 to July 3. The reporting is stopped for 7 consecutive days from July 4 to July 10. On July 11, the discrete reporting mechanism is restarted, that is, the alarm reporting time point is started according to the meter number discrete reporting algorithm.
[0220] The data reporting method of the NB meter provided in the embodiment can guarantee that the fixed reporting scheme is switched in if the reporting at the discrete reporting time point is unsuccessful, and the success rate of communication reporting meets the reporting rate requirement. In the scene of installing the NB water meter in a cell, the scheme provided in the embodiment can guarantee that the water company can accurately and efficiently settle the water fee of each water meter, and provides a solution to the requirement that the upload success rate of the water meter is greater than 99.9%.
[0221] In the embodiment, a data reporting device of an NB meter is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and will not be described again. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware or a combination of software and hardware is also possible and is conceived.
[0222] The embodiment provides a data reporting device of an NB meter, as shown in Figure 6 , comprising:
[0223] The discrete reporting scheme switching to the fixed reporting scheme module 601 is used to acquire the discrete time reporting scheme of the NB meter. When the NB meter adopts the discrete time reporting scheme and meets the first preset reporting condition, the preset fixed time reporting scheme is switched to.
[0224] The fixed reporting scheme reporting module 602 is configured to report NB meter data based on a preset fixed time reporting scheme.
[0225] The fixed reporting scheme to discrete reporting scheme switching module 603 is configured to restart the discrete time reporting scheme when the NB meter uses the preset fixed time reporting scheme and meets a second preset reporting condition.
[0226] In some optional embodiments, the first preset reporting condition is that the NB meter fails to report data at the discrete reporting time point for a continuous preset number of days; and the discrete reporting scheme to fixed reporting scheme switching module 601 comprises a discrete reporting time point acquisition unit configured to acquire a discrete reporting time point in the discrete time reporting scheme of the NB meter.
[0227] The continuous failure day judgment and switching unit is configured to judge whether the NB meter fails to report data at the discrete reporting time point for a continuous preset number of days, and switch to the preset fixed time reporting scheme when the NB meter fails to report data at the discrete reporting time point for a continuous preset number of days.
[0228] In some optional embodiments, the continuous failure day judgment and switching unit comprises:
[0229] The discrete reporting continuous failure day judgment subunit is configured to determine that the NB meter fails to report at the discrete reporting time point on the current day when the NB meter initiates a reporting request and no reporting success confirmation signal sent by the upper platform is received at any time point of the discrete reporting time point on the same day, and determine that the NB meter fails to report data at the discrete reporting time point for a continuous preset number of days when the NB meter fails to report at the discrete reporting time point for a continuous preset number of days.
[0230] In some optional embodiments, the preset fixed time reporting scheme is a scheme of reporting data based on a fixed reporting time point; and the continuous failure day judgment and switching unit further comprises:
[0231] The fixed reporting time point determination subunit is configured to determine a fixed reporting time point of the NB meter, the fixed reporting time point being a plurality of time points randomly set or a plurality of time points set by a signal value curve returned by a signal test tool.
[0232] The switching subunit is configured to switch to the scheme of reporting data based on the fixed reporting time point when the NB meter fails to report data at the discrete reporting time point for a continuous preset number of days.
[0233] In an optional embodiment, the fixed reporting scheme reporting module 602 comprises:
[0234] The fixed reporting time point and the current time obtaining unit is configured to obtain a fixed reporting time point in a preset fixed time reporting scheme and read a current time of the NB meter.
[0235] The closest time point determining unit is configured to determine a closest time point from the current time and the fixed reporting time points and take the closest time point as an alarm clock reporting time point.
[0236] The alarm clock reporting time point reporting unit is configured to determine whether the NB meter successfully reports at the alarm clock reporting time point, stop the fixed reporting time point data reporting of the day if the reporting is successful, and continue to determine a next alarm clock reporting time point and continue the alarm clock reporting time point data reporting of the next alarm clock reporting time point until the NB meter data reporting of the day is successful.
[0237] In an optional embodiment, the closest time point determining unit comprises:
[0238] The second value transforming subunit is configured to transform the current time and the fixed reporting time points into second values and determine the time legality of the fixed reporting time point second values.
[0239] The closest time point determining subunit is configured to calculate the difference time between the current time second value and each time point second value in the fixed reporting time points when the time of the fixed reporting time point corresponding second value is legal, filter out the smallest difference time, and take the time point corresponding to the smallest difference time greater than a set time value as the closest time point.
[0240] In an optional embodiment, the alarm clock reporting time point reporting unit comprises:
[0241] The time legality determining subunit is configured to determine the time legality of the smallest difference time.
[0242] The initial alarm clock reporting time point second value calculating subunit is configured to calculate the cumulative time of the current time second value and the smallest difference time as the next initial alarm clock reporting time point second value when the smallest difference time is legal.
[0243] The next alarm clock reporting time point second value determining subunit is configured to determine whether the deviation value between the next initial alarm clock reporting time point second value and the last alarm clock reporting time point second value is greater than a set time value, and take the next initial alarm clock reporting time point second value as the next alarm clock reporting time point second value when the deviation value is greater than the set time value.
[0244] The second value converting subunit is configured to transform the next alarm clock reporting time point second value into a time-minute-second representation form as the next alarm clock reporting time point.
[0245] In an optional embodiment, the fixed reporting scheme reporting module 602 further comprises:
[0246] The optimal time point determination and reporting unit is configured to record the fixed reporting time point corresponding to the successful reporting of the NB meter at the alarm reporting time point, and acquire the signal value received power of the fixed reporting time point corresponding to the successful reporting; if the signal value received power is greater than a preset signal power threshold, it is determined that the network environment signal at the installation site of the NB meter is good, the corresponding fixed reporting time point is saved, and the next day, the NB meter data reporting is performed according to the saved corresponding fixed reporting time point; if the signal value received power is less than the preset signal power threshold, it is determined that the network environment signal at the installation site of the NB meter is unstable, and the NB meter data reporting is continuously performed based on the preset fixed time reporting scheme.
[0247] In an optional embodiment, the fixed reporting scheme switching to discrete reporting scheme module 603 comprises:
[0248] The fixed reporting scheme switching to discrete reporting mechanism unit is configured to, if the fixed reporting time point polling for the NB meter data reporting fails for a continuous preset number of days, it is determined that there is no network signal all day at the installation site of the NB meter, and the NB meter data reporting is stopped within a week after the preset number of days of reporting failure; after the end of the NB meter data reporting time, the reporting mechanism of the discrete reporting time point of the NB meter is restarted.
[0249] The further function description of each module and unit is the same as the corresponding embodiment described above, and will not be repeated here.
[0250] The data reporting device of the NB meter in the embodiment is presented in the form of a functional unit, and the unit herein refers to an ASIC (Application Specific Integrated Circuit, Application Specific Integrated Circuit) circuit, a processor and a memory executing one or more software or fixed programs, and / or other devices that can provide the above functions.
[0251] The embodiment of the application also provides a computer device having the above Figure 6 The data reporting device of the NB meter.
[0252] Please refer to Figure 7 , Figure 7 is a structural schematic diagram of a computer device provided by an optional embodiment of the application, as Figure 7As shown, the computer device includes one or more processors 10, memory 20, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the computer device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 7 Take a processor 10 as an example.
[0253] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.
[0254] The memory 20 stores instructions executable by at least one processor 10 to cause the at least one processor 10 to perform the method shown in the above embodiments.
[0255] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the computer device. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0256] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 20 may also include a combination of the above types of memory.
[0257] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 can be connected by a bus or other means, Figure 7 The bus connection is taken as an example.
[0258] The input device 30 can receive inputted digital or character information, and generate key signal input related to user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a trackpad, a touchpad, a pointing stick, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 can include a display device, an auxiliary lighting device (e.g., an LED), a tactile feedback device (e.g., a vibration motor), etc. The display device includes but is not limited to a liquid crystal display, a light-emitting diode, a display, and a plasma display. In some alternative embodiments, the display device can be a touch screen.
[0259] The embodiments of the present application also provide a computer readable storage medium, and the method according to the embodiments of the present application can be implemented in hardware, firmware, or recorded in a storage medium, or stored in a remote storage medium or a non-transitory machine readable storage medium downloaded through a network and stored in a local storage medium, so that the method described herein can be processed by such software on a storage medium using a general purpose computer, a special purpose processor, or programmable or special hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk or a solid state disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that the computer, processor, microprocessor controller or programmable hardware includes a storage component that can store or receive software or computer code, which, when accessed and executed by the computer, processor or hardware, implements the method shown in the above embodiments.
[0260] Part of the present application can be applied as a computer program product, for example, computer program instructions, when executed by a computer, through the operation of the computer, the method and / or technical solutions according to the present application can be called or provided. Those skilled in the art should understand that the form of computer program instructions in computer readable medium includes but is not limited to source file, executable file, installation package file, etc., and accordingly, the way of computer program instructions executed by computer includes but is not limited to: the computer directly executes the instructions, or the computer executes the corresponding compiled program after compiling the instructions, or the computer reads and executes the instructions, or the computer reads and installs the corresponding installed program after installing the instructions. Here, the computer readable medium can be any available computer readable storage medium or communication medium accessible to the computer.
[0261] While embodiments of the application have been described in connection with the preferred embodiments of the various figures, those of ordinary skill in the art will appreciate that various modifications and changes can be made without departing from the spirit and scope of the application, and that such modifications and changes fall within the scope of the appended claims.
Claims
1. A data reporting method of an NB meter, characterized in that, The method comprises: obtaining a discrete time reporting scheme of the NB meter, and when the NB meter adopts the discrete time reporting scheme and meets a first preset reporting condition, switching to a preset fixed time reporting scheme; reporting NB meter data based on the preset fixed time reporting scheme; the reporting of the NB meter data based on the preset fixed time reporting scheme comprises: obtaining a fixed reporting time point in the preset fixed time reporting scheme and reading a current time of the NB meter; determining a closest time point between the current time and the fixed reporting time point, and taking the closest time point as an alarm clock reporting time point; judging whether the NB meter reports successfully at the alarm clock reporting time point, and if so, stopping the fixed reporting time point data reporting of the day; if not, continuously determining a next alarm clock reporting time point and continuously reporting the alarm clock reporting time point data of the next day until the NB meter data reporting of the day is successful; the reporting of the NB meter data based on the preset fixed time reporting scheme further comprises: recording a corresponding fixed reporting time point when the NB meter reports successfully at the alarm clock reporting time point, and obtaining a signal value received power of the corresponding fixed reporting time point when the reporting is successful; if the signal value received power is greater than a preset signal power threshold, determining that the network environment signal at the installation site of the NB meter is good, saving the corresponding fixed reporting time point, and reporting the NB meter data according to the saved corresponding fixed reporting time point the next day; if the signal value received power is less than the preset signal power threshold, determining that the network environment signal at the installation site of the NB meter is unstable, and continuously reporting the NB meter data based on the preset fixed time reporting scheme; when the NB meter adopts the preset fixed time reporting scheme and meets a second preset reporting condition, restarting the discrete time reporting scheme.
2. The method of claim 1, wherein, The first preset reporting condition is that the NB meter fails to report data at a discrete reporting time point for a continuous preset number of days; when the NB meter adopts the discrete time reporting scheme and meets the first preset reporting condition, switching to the preset fixed time reporting scheme comprises: obtaining a discrete reporting time point in the discrete time reporting scheme of the NB meter; judging whether the NB meter fails to report for a continuous preset number of days at the discrete reporting time point, and when the NB meter fails to report data at the discrete reporting time point for a continuous preset number of days, switching to the preset fixed time reporting scheme.
3. The method of claim 2, wherein, The judgment of whether the NB meter fails to report for a continuous preset number of days at the discrete reporting time point comprises: when the NB meter initiates a reporting request, and no reporting success confirmation signal sent by a superior platform is received at any time point of the discrete reporting time point in the same day, it is determined that the NB meter fails to report at the discrete reporting time point on the day, and if the NB meter fails to report at the discrete reporting time point for a continuous preset number of days, it is determined that the NB meter fails to report data at the discrete reporting time point for a continuous preset number of days.
4. The method of claim 1, wherein, The preset fixed time reporting scheme is a scheme for reporting data based on a fixed reporting time point; when the NB meter adopts the discrete time reporting scheme and meets the first preset reporting condition, switching to the preset fixed time reporting scheme comprises: Determine the fixed reporting time point of the NB meter, the fixed reporting time point is a plurality of time points set randomly or a plurality of time points set by the signal value curve returned by the signal test tool; When the NB meter fails to report data continuously for a preset number of days at the discrete reporting time point, the data reporting scheme based on the fixed reporting time point is switched to.
5. The method of claim 1, wherein, The determination of the closest time point between the current time and the fixed reporting time point includes: Both the current time and the fixed reporting time point are converted into second values, and the time legality of the second value of the fixed reporting time point is judged; After the time legality of the second value of the fixed reporting time point is determined, the difference time between the second value of the current time and the second value of each time point of the fixed reporting time point is calculated, and the time point corresponding to the smallest difference time greater than the set time value is selected as the closest time point.
6. The method of claim 5, wherein, Determine the next alarm reporting time point, including: Judge the time legality of the minimum difference time; When the minimum difference time is legal, the cumulative time of the second value of the current time and the minimum difference time is calculated as the second value of the next initial alarm reporting time point; Judge whether the deviation value between the second value of the next initial alarm reporting time point and the second value of the last alarm reporting time point is greater than the set time value, and when the deviation value is greater than the set time value, the second value of the next initial alarm reporting time point is taken as the second value of the next alarm reporting time point; The second value of the next alarm reporting time point is converted into a time-minute-second representation as the next alarm reporting time point.
7. The method of claim 1, wherein, The second preset reporting condition is that there is no network signal at the installation site of the NB meter all day long, which causes the NB meter to stop reporting data; When the NB meter adopts the preset fixed time reporting scheme and meets the second preset reporting condition, the discrete time reporting scheme is restarted, including: If the fixed reporting time point polls the NB meter data reporting and fails for a continuous preset number of days, it is determined that there is no network signal at the installation site of the NB meter all day long, and the NB meter data reporting is stopped within a week after the preset number of reporting failures; After the NB meter data reporting time ends, the reporting mechanism of the discrete reporting time point of the NB meter is restarted.
8. A data reporting device of an NB meter, characterized in that, The device includes: The discrete reporting scheme switching to the fixed reporting scheme module is used to acquire the discrete time reporting scheme of the NB meter, and when the NB meter adopts the discrete time reporting scheme and meets the first preset reporting condition, the preset fixed time reporting scheme is switched to. The fixed reporting scheme reporting module is used to report the NB meter data based on the preset fixed time reporting scheme; the NB meter data reporting based on the preset fixed time reporting scheme includes: Acquire the fixed reporting time point in the preset fixed time reporting scheme, and read the current time of the NB meter; Determine the closest time point between the current time and the fixed reporting time point, and take the closest time point as the alarm reporting time point; Determine whether the NB meter reports successfully at the alarm reporting time point, if the reporting is successful, stop the daily fixed reporting time point data reporting; if the reporting fails, continue to determine the next alarm reporting time point, continue the next alarm reporting time point data reporting, until the NB meter data reporting is successful on the same day; The NB meter data reporting based on the preset fixed time reporting scheme further comprises: Record the corresponding fixed reporting time point when the NB meter reports successfully at the alarm reporting time point, and obtain the signal value received power of the corresponding fixed reporting time point when the reporting is successful; If the signal value received power is greater than the preset signal power threshold, it is determined that the network environment signal at the NB meter installation site is good, the corresponding fixed reporting time point is saved, and the NB meter data reporting is performed according to the saved corresponding fixed reporting time point the next day; If the signal value received power is less than the preset signal power threshold, it is determined that the network environment signal at the NB meter installation site is unstable, and the NB meter data reporting is continued based on the preset fixed time reporting scheme; The fixed reporting scheme is switched to the discrete reporting scheme module, which is used for restarting the discrete time reporting scheme when the NB meter uses the preset fixed time reporting scheme and meets the second preset reporting condition.
Citation Information
Patent Citations
Discrete reporting method, device and equipment based on NB communication, medium and product
CN120499105A