Data upgrading method, device and equipment of ultrasonic water meter and medium

Through the method of differential data processing and segmented analysis, the problems of high power consumption and large storage space during the ultrasonic water meter data upgrade process are solved, and a more efficient data upgrade is achieved.

CN118860464APending Publication Date: 2024-10-29QINGDAO TOPSCOMM COMM +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411095557.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing ultrasonic water meters consume high power, have low upgrade efficiency, and occupy large storage space during the data upgrade process. There is a lack of effective solutions.

Method used

The differential data processing method is used to receive the target differential data and perform segmented analysis and verification in the download area of ​​the ultrasonic water meter. After the analysis is completed, the segmented data is deleted, and finally the analyzed data is stored in the code area for upgrade, avoiding additional backup areas. occupied.

Benefits of technology

The power consumption and storage space occupied by the ultrasonic water meter during the upgrade process are reduced, and the upgrade efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118860464A_ABST
    Figure CN118860464A_ABST
Patent Text Reader

Abstract

The invention discloses a data upgrading method, device and equipment of an ultrasonic water meter and a medium, and belongs to the technical field of ultrasonic water meters. The target differential data are stored in a downloading area of the ultrasonic water meter, when the target differential data pass verification, the target differential data are analyzed in a segmented mode, meanwhile, the analyzed data are stored in the downloading area, and the analyzed data are deleted; and when all the data in the target differential data are analyzed, judging the data in the downloading area as target analysis data, and storing the target analysis data to a code area of the ultrasonic water meter so as to upgrade the data in the ultrasonic water meter. By means of the method, the power consumption needed in the upgrading process of the ultrasonic water meter can be reduced, and the upgrading efficiency of the ultrasonic water meter can be improved. Meanwhile, by means of the method, the storage space occupation amount of the ultrasonic water meter in the data upgrading process can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of ultrasonic water meters, and in particular to a data upgrading method, device, equipment and medium for an ultrasonic water meter. Background Art

[0002] Ultrasonic water meter is a fully electronic water meter that uses the ultrasonic time difference principle and is made of industrial-grade electronic components. Compared with other types of water meters, it has the advantages of high measurement accuracy, wide range ratio, and long service life.

[0003] In the prior art, when upgrading the data in the ultrasonic water meter, the upgraded version of the firmware data is usually sent directly to the ultrasonic water meter for upgrading, which not only increases the power consumption required by the ultrasonic water meter during the upgrade process, but also makes the upgrade efficiency of the ultrasonic water meter low. In addition, during the data upgrade process of the ultrasonic water meter, it is necessary to first store the upgraded version of the firmware data in the download area, and then parse the data, and store the parsed data in the backup area. After the parsed data passes the verification, the ultrasonic water meter also needs to store the data in the backup area in the code area of ​​the running code to complete the upgrade of the ultrasonic water meter. For ultrasonic water meters with relatively tight storage resources, this data upgrade method occupies a lot of storage space. At present, there is no more effective solution to the above problems. Summary of the invention

[0004] In view of this, the purpose of the present invention is to provide a method, device, equipment and medium for upgrading the data of an ultrasonic water meter, so as to solve the problems of high power consumption, low upgrading efficiency and large storage space occupied in the data upgrading process of ultrasonic water meters in the prior art. The specific scheme is as follows: In order to solve the above technical problems, the present invention provides a data upgrade method for an ultrasonic water meter, comprising: Receive target differential data; wherein the target differential data is data obtained by performing differential processing on the firmware data of the current version of the ultrasonic water meter and the firmware data of the upgraded version of the ultrasonic water meter; The target differential data is stored in the download area of ​​the ultrasonic water meter. When the target differential data passes the verification, the target differential data is segmented and parsed. The segmented data after parsing is stored in the download area, and the segmented data after parsing is deleted. When all segmented data in the target differential data are parsed, the data in the download area is determined as target parsed data, and the target parsed data is stored in the code area of ​​the ultrasonic water meter to upgrade the data in the ultrasonic water meter.

[0005] Preferably, the differential processing of the firmware data of the current version of the ultrasonic water meter and the firmware data of the upgraded version of the ultrasonic water meter includes: The firmware data of the current version of the ultrasonic water meter and the firmware data of the upgraded version of the ultrasonic water meter are differentially processed using a differential algorithm.

[0006] Preferably, the receiving target differential data includes: The target differential data is received via a narrowband Internet of Things.

[0007] Preferably, the target differential data is stored in the download area of ​​the ultrasonic water meter, and when the target differential data passes the verification, the target differential data is segmented and parsed, and the parsed segmented data is stored in the download area, and the parsed segmented data is deleted, including: Storing the target differential data to a designated address of the download area so that the storage position of the target differential data is aligned with the download area; Verifying the target differential data; When the target differential data passes the verification, the target differential data is segmented, and the segmented data in the target differential data are parsed in sequence according to the storage position of the target differential data, and the parsed segmented data are stored in sequence starting from the starting position of the download area; When each segment data is parsed, the parsed segment data is deleted.

[0008] Preferably, the designated address is equal to the end position address of the download area minus the storage address length occupied by the target differential data.

[0009] Preferably, after verifying the target differential data, the method further includes: If the target differential data fails to pass the verification, a warning message is prompted and the target differential data is acquired again.

[0010] Preferably, storing the target parsed data in the code area of ​​the ultrasonic water meter to upgrade the data in the ultrasonic water meter includes: Setting a temporary storage area in the ultrasonic water meter, and storing all code data stored in the code area in the ultrasonic water meter into the temporary storage area; Deleting all code data stored in the code area, and storing the target parsed data in the code area of ​​the ultrasonic water meter; The target parsing data is run in the code area to update the data in the ultrasonic water meter.

[0011] In order to solve the above technical problems, the present invention also provides a data upgrade device for an ultrasonic water meter, comprising: A data receiving module, used for receiving target differential data; wherein the target differential data is data obtained after differential processing of the firmware data of the current version of the ultrasonic water meter and the firmware data of the upgraded version of the ultrasonic water meter; A data parsing module, used for storing the target differential data in the download area of ​​the ultrasonic water meter, and when the target differential data passes the verification, performing segmented parsing on the target differential data, storing the parsed segmented data in the download area, and deleting the parsed segmented data; The data upgrade module is used to determine the data in the download area as target parsed data when all segmented data in the target differential data are parsed, and store the target parsed data in the code area of ​​the ultrasonic water meter to upgrade the data in the ultrasonic water meter.

[0012] In order to solve the above technical problem, the present invention further provides an electronic device, comprising: Memory for storing computer programs; The processor is used to implement the steps of the data upgrade method of an ultrasonic water meter disclosed above when executing the computer program.

[0013] In order to solve the above technical problem, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the data upgrade method of an ultrasonic water meter disclosed above are implemented.

[0014] Beneficial effect: In the data upgrade method of the ultrasonic water meter provided by the present invention, the ultrasonic water meter first receives the target differential data; wherein the target differential data is the data obtained after differential processing of the firmware data of the current version of the ultrasonic water meter and the firmware data of the upgraded version of the ultrasonic water meter; then, the ultrasonic water meter will store the target differential data in the download area of ​​the ultrasonic water meter, and verify the target differential data. When the target differential data passes the verification, the target differential data is segmented and parsed, and the parsed segmented data is stored in the download area, and the parsed segmented data is deleted; when the ultrasonic water meter has parsed all the data in the target differential data, the data in the download area is determined as the target parsed data, and the target parsed data is stored in the code area of ​​the ultrasonic water meter to upgrade the data in the ultrasonic water meter.

[0015] Compared with the prior art, since this method uses the target differential data between the firmware data before and after the ultrasonic water meter is upgraded to upgrade the ultrasonic water meter, the amount of data transmission during the upgrade of the ultrasonic water meter can be reduced. Therefore, this method can not only reduce the power consumption of the ultrasonic water meter during the upgrade, but also improve the upgrade efficiency of the ultrasonic water meter. In addition, when the ultrasonic water meter is upgraded by this method, the internal download area is reused to parse the target differential data, so there is no need to set up a backup area in the ultrasonic water meter to parse the upgrade data in the ultrasonic water meter. Therefore, this method can also reduce the storage space occupied by the ultrasonic water meter during the data upgrade.

[0016] Correspondingly, the data upgrade device, equipment and medium of an ultrasonic water meter provided by the present invention also have the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0018] Figure 1 A flow chart of a method for upgrading data of an ultrasonic water meter provided by an embodiment of the present invention; Figure 2 Schematic diagram of the principle of generating target differential data; Figure 3 Schematic diagram of the principle of data upgrade for ultrasonic water meter; Figure 4 A structural diagram of a data upgrade device for an ultrasonic water meter provided by an embodiment of the present invention; Figure 5 A structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0020] See also Figure 1 , Figure 1A flow chart of a data upgrade method for an ultrasonic water meter provided by an embodiment of the present invention, the method comprising: Step S11: receiving target differential data; wherein the target differential data is data obtained by performing differential processing on the firmware data of the current version of the ultrasonic water meter and the firmware data of the upgraded version of the ultrasonic water meter; Step S12: storing the target differential data in the download area of ​​the ultrasonic water meter. When the target differential data passes the verification, the target differential data is segmented and parsed. The segmented data after parsing is stored in the download area, and the segmented data after parsing is deleted. Step S13: When all segmented data in the target differential data are parsed, the data in the download area is determined as the target parsed data, and the target parsed data is stored in the code area of ​​the ultrasonic water meter to upgrade the data in the ultrasonic water meter.

[0021] In this embodiment, a method for upgrading data of an ultrasonic water meter is provided. By using this method to upgrade the data in the ultrasonic water meter, not only can the power consumption of the ultrasonic water meter during the data upgrade process be reduced, but also the upgrade efficiency of the ultrasonic water meter can be improved. At the same time, the amount of storage space occupied by the ultrasonic water meter during the data upgrade process can also be reduced. The method is specifically described with the ultrasonic water meter as the execution subject.

[0022] In this method, the ultrasonic water meter first receives the target differential data sent by the differential packet making tool, wherein the target differential data is obtained by the differential packet making tool after differential processing of the firmware data of the current version of the ultrasonic water meter and the firmware data of the upgraded version of the ultrasonic water meter.

[0023] See also Figure 2 , Figure 2 The schematic diagram of the principle of generating target differential data. When generating target differential data, the differential package making tool will perform differential processing on the current version of the ultrasonic water meter's firmware data and the upgraded version of the firmware data to obtain the target differential data. It is understandable that when upgrading the data in the ultrasonic water meter, it is impossible to replace and upgrade all the data in the ultrasonic water meter, but only to upgrade and replace part of the data in the ultrasonic water meter. Therefore, the essence of differential processing is to determine the differential data in different versions of firmware, and package and compress the differential data to generate the target differential data. Among them, the current version of the ultrasonic water meter's firmware data and the upgraded version of the firmware data are usually binary data.

[0024] When the ultrasonic water meter receives the target differential data, it stores the target differential data in the download area of ​​the ultrasonic water meter and verifies the target differential data. When the target differential data passes the verification, it means that the target differential data has not been tampered with by illegal elements during the data transmission process, and no data loss has occurred.

[0025] In this case, the ultrasonic water meter will perform segmented analysis on the target differential data and store the analyzed segmented data in the download area. When the segmented data in the target differential data is analyzed, the analyzed original segmented data has become meaningless data in the subsequent process, and the analyzed segmented data can be deleted at this time. By using this setting method to upgrade the data of the ultrasonic water meter, the amount of transmission of the upgraded data can be reduced, thereby achieving the effect of reducing the data upgrade time of the ultrasonic water meter. In addition, the download area in the ultrasonic water meter is reused to analyze the target differential data. Compared with the prior art, there is no need to set up a backup area in the ultrasonic water meter to analyze the target differential data, thereby reducing the storage space occupied by the ultrasonic water meter during the data upgrade process.

[0026] When all the segmented data in the target differential data are parsed, the data in the download area is determined as the target parsed data, and the target parsed data is stored in the code area of ​​the ultrasonic water meter. The code area in the ultrasonic water meter can achieve the purpose of upgrading the data in the ultrasonic water meter by calculating the target parsed data.

[0027] See also Figure 3 , Figure 3 The schematic diagram of the principle of data upgrade for ultrasonic water meters. When the code area in the ultrasonic water meter runs the target parsing data, the target differential data corresponding to the target parsing data will be determined. At this time, the ultrasonic water meter uses the differential restoration algorithm to perform a series of mathematical operations on the target differential data and the current version of the firmware data to determine the upgraded version of the firmware data. When the ultrasonic water meter obtains the upgraded version of the firmware data, the ultrasonic water meter can be upgraded.

[0028] Obviously, since this method uses the target differential data between the firmware data before and after the ultrasonic water meter is upgraded to upgrade the ultrasonic water meter, the amount of data transmission during the upgrade of the ultrasonic water meter can be reduced. Therefore, this method can not only reduce the power consumption of the ultrasonic water meter during the upgrade process, but also improve the upgrade efficiency of the ultrasonic water meter. In addition, when the ultrasonic water meter is upgraded using this method, its internal download area is reused to parse the target differential data, so there is no need to set up a backup area in the ultrasonic water meter to parse the upgrade data in the ultrasonic water meter. Therefore, this method can also reduce the storage space occupied by the ultrasonic water meter during the data upgrade process.

[0029] Based on the above embodiment, this embodiment further illustrates and optimizes the technical solution. As a preferred implementation, the above step of performing differential processing on the firmware data of the current version of the ultrasonic water meter and the firmware data of the upgraded version of the ultrasonic water meter includes: The differential algorithm is used to perform differential processing on the firmware data of the current version of the ultrasonic water meter and the firmware data of the upgraded version of the ultrasonic water meter.

[0030] In this embodiment, the processor outside the ultrasonic water meter uses a differential algorithm to perform differential processing on the firmware data of the current version of the ultrasonic water meter and the firmware data of the upgraded version of the ultrasonic water meter. Because the differential algorithm can quickly generate a very small difference file from two data files, the computational complexity of the external processor when performing differential processing on the firmware data of the current version of the ultrasonic water meter and the firmware data of the upgraded version of the ultrasonic water meter can be reduced.

[0031] Moreover, because the application scenarios of ultrasonic water meters are relatively complex and the space they occupy is limited, compared with using hardware circuits to perform differential processing on the firmware data of the current version of the ultrasonic water meter and the firmware data of the upgraded version of the ultrasonic water meter, the use of software differential processing methods can also reduce the structural complexity of the hardware circuit system in which the ultrasonic water meter is located.

[0032] Based on the above embodiment, this embodiment further illustrates and optimizes the technical solution. As a preferred implementation, the above step of receiving target differential data includes: Receive target differential data via NB-IoT.

[0033] Narrowband Internet of Things (NB-IoT) is a communication technology that provides low-power, wide-coverage, broadband signal transmission for IoT devices. Compared with traditional IoT technology, NB-IoT not only has lower power consumption and wider signal coverage, but also uses narrowband signals to transmit data, which can provide stable and high-quality transmission signals, thus greatly extending the service life of ultrasonic water meters, broadening the application scope of ultrasonic water meters, and improving the data transmission efficiency of ultrasonic water meters.

[0034] Although the narrowband Internet of Things has the characteristics of low power consumption, wide signal coverage, and stable signal transmission, the narrowband Internet of Things has a slow transmission speed and small bandwidth. In the signal transmission environment of the narrowband Internet of Things, when the external processor uses the data difference method to remotely upgrade the data in the ultrasonic water meter, it can not only reduce the amount of data that the external processor needs to transmit when upgrading the ultrasonic water meter, but also improve the communication efficiency between the external processor and the ultrasonic water meter, thereby well solving the shortcomings of the narrowband Internet of Things in signal transmission.

[0035] Obviously, the technical solution provided by this embodiment can not only extend the service life of the ultrasonic water meter and broaden the application scope of the ultrasonic water meter, but also make the data transmission process of the ultrasonic water meter more reliable and efficient. In addition, when the external processor uses the data difference method to remotely upgrade the data in the ultrasonic water meter, it can also reduce the amount of data that the external processor needs to transmit to the ultrasonic water meter, and improve the communication efficiency between the external processor and the ultrasonic water meter.

[0036] Based on the above embodiment, this embodiment further illustrates and optimizes the technical solution. As a preferred implementation method, the above steps: storing the target differential data in the download area of ​​the ultrasonic water meter, when the target differential data passes the verification, the target differential data is segmented and parsed, and the parsed segmented data is stored in the download area, and the parsed segmented data is deleted, including: Storing the target differential data to a designated address in the download area so that the storage position of the target differential data is aligned with the download area; Verify the target differential data; When the target differential data passes the verification, the target differential data is segmented, and the segmented data in the target differential data are parsed in sequence according to the storage position of the target differential data, and the parsed segmented data are stored in sequence starting from the starting position of the download area; When each segment data is parsed, the parsed segment data is deleted.

[0037] In this embodiment, when the target differential data is parsed in the download area of ​​the multiplexed ultrasonic water meter, the target differential data needs to be first stored in the designated address of the download area so that the storage position of the target differential data is aligned with the download area. The designated address is equal to the end position address of the download area minus the storage address length occupied by the target differential data.

[0038] When the target differential data is stored in the designated address of the download area, the target differential data is verified. Specifically, a cyclic redundancy check, a parity check, or a hash check method may be used to verify the target differential data.

[0039] When the target differential data passes the verification, the target differential data is segmented, and the segmented data in the target differential data is parsed in sequence according to the storage location of the target differential data, and the parsed segmented data is stored in sequence starting from the start position of the download area. Repeating the above steps, each segmented data in the target differential data can be parsed, and each parsed segmented data is stored in the download area.

[0040] When each segmented data is parsed in the download area, the parsed segmented data becomes meaningless data in the subsequent process. In order to avoid these data occupying the storage space of the download area, the parsed segmented data needs to be deleted.

[0041] Obviously, under this setting mode, there is no need to set up a backup area in the ultrasonic water meter to parse the target differential data, which can significantly reduce the storage space occupied by the ultrasonic water meter during the data upgrade process.

[0042] As a preferred implementation, the above step: after verifying the target differential data, further includes: If the target differential data fails the verification, a warning message will be prompted and the target differential data will be acquired again.

[0043] If the target differential data fails the verification, it means that the target differential data has been tampered with by illegal elements during the data transmission process, or packet loss has occurred. In this case, in order to avoid abnormalities and failures in the subsequent upgrade process of the ultrasonic water meter, it is necessary to prompt an early warning message to remind the staff to handle and resolve the abnormal situation. In addition, in order to ensure that the ultrasonic water meter can perform data upgrade operations stably and reliably, the target differential data needs to be re-acquired.

[0044] Obviously, the technical solution provided by this embodiment can not only reduce the storage space occupied by the ultrasonic water meter during the data upgrade process, but also ensure the stability and reliability of the ultrasonic water meter when performing the data upgrade operation.

[0045] Based on the above embodiment, this embodiment further illustrates and optimizes the technical solution. As a preferred implementation, the above step of storing the target parsed data in the code area of ​​the ultrasonic water meter to upgrade the data in the ultrasonic water meter includes: A temporary storage area is set in the ultrasonic water meter, and all code data stored in the code area of ​​the ultrasonic water meter are stored in the temporary storage area; Delete all code data stored in the code area, and store the target parsed data in the code area of ​​the ultrasonic water meter; Run the target parsing data in the code area to upgrade the data in the ultrasonic water meter.

[0046] In this embodiment, when the data in the ultrasonic water meter is updated, a temporary storage area is also required in the ultrasonic water meter, and all the code data stored in the code area in the ultrasonic water meter are stored in the temporary storage area. After that, all the code data stored in the code area are deleted, so that the code area becomes an empty storage area. When all the code data stored in the code area are deleted, the target parsed data is stored in the code area of ​​the ultrasonic water meter.

[0047] When storing the target parsed data in the code area of ​​the ultrasonic water meter, the target parsed data needs to be segmented, and then the segmented data in the target parsed data are stored one by one in the code area of ​​the ultrasonic water meter.

[0048] It is not difficult to imagine that under this setting, if the ultrasonic water meter encounters an abnormality or failure during the upgrade process, the ultrasonic water meter can also use the code data stored in the temporary storage area to continue related measurement operations, thereby further improving the safety and reliability of the ultrasonic water meter during use.

[0049] Obviously, the technical solution provided by this embodiment can improve the overall reliability of the ultrasonic water meter during use.

[0050] See also Figure 4 , Figure 4 A structural diagram of a data upgrade device for an ultrasonic water meter provided by an embodiment of the present invention, the device comprising: The data receiving module 21 is used to receive target differential data; wherein the target differential data is data obtained after differential processing of the firmware data of the current version of the ultrasonic water meter and the firmware data of the upgraded version of the ultrasonic water meter; The data analysis module 22 is used to store the target differential data in the download area of ​​the ultrasonic water meter. When the target differential data passes the verification, the target differential data is analyzed in segments, the analyzed segmented data is stored in the download area, and the analyzed segmented data is deleted; The data upgrade module 23 is used to determine the data in the download area as target parsed data when all segmented data in the target differential data are parsed, and store the target parsed data in the code area of ​​the ultrasonic water meter to upgrade the data in the ultrasonic water meter.

[0051] Preferably, the data receiving module 21 includes: The data differential unit is used to perform differential processing on the firmware data of the current version of the ultrasonic water meter and the firmware data of the upgraded version of the ultrasonic water meter by using a differential algorithm.

[0052] Preferably, the data receiving module 21 includes: A data receiving unit is used to receive the target differential data via a narrowband Internet of Things.

[0053] Preferably, the data analysis module 22 includes: A data storage unit, used for storing the target differential data to a designated address of the download area, so that the storage position of the target differential data is aligned with the download area; A data verification unit, used for verifying the target differential data; a data parsing unit, configured to, when the target differential data passes verification, segment the target differential data, parse the segmented data in the target differential data in sequence according to the storage location of the target differential data, and store the parsed segmented data in sequence starting from the start location of the download area; The data deleting unit is used to delete the parsed segmented data after parsing the segmented data.

[0054] Preferably, it also includes: The data acquisition unit is used to prompt a warning message and re-acquire the target differential data when the target differential data fails to pass the verification.

[0055] Preferably, the data upgrade module 23 includes: An area setting unit, used for setting a temporary storage area in the ultrasonic water meter, and storing all code data stored in the code area in the ultrasonic water meter into the temporary storage area; A data handling unit, used for deleting all code data stored in the code area, and storing the target parsed data in the code area of ​​the ultrasonic water meter; A data upgrade unit is used to run the target parsing data in the code area to upgrade the data in the ultrasonic water meter.

[0056] The data upgrade device of an ultrasonic water meter provided by the embodiment of the present invention has the beneficial effects of the data upgrade method of an ultrasonic water meter disclosed above.

[0057] See also Figure 5 , Figure 5 A structural diagram of an electronic device provided by an embodiment of the present invention, the electronic device comprising: A memory 31, used for storing computer programs; The processor 32 is used to implement the steps of the data upgrade method of an ultrasonic water meter disclosed above when executing the computer program.

[0058] An electronic device provided by an embodiment of the present invention has the beneficial effects of the aforementioned data upgrade method for an ultrasonic water meter.

[0059] Correspondingly, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the data upgrade method of an ultrasonic water meter disclosed above are implemented.

[0060] A computer-readable storage medium provided in an embodiment of the present invention has the beneficial effects of the aforementioned method for upgrading the data of an ultrasonic water meter.

[0061] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0062] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0063] The above is a detailed introduction to the data upgrade method, device, equipment and medium of an ultrasonic water meter provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for upgrading data of an ultrasonic water meter, characterized in that: include: Receive target differential data; wherein the target differential data is data obtained by performing differential processing on the firmware data of the current version of the ultrasonic water meter and the firmware data of the upgraded version of the ultrasonic water meter; The target differential data is stored in the download area of ​​the ultrasonic water meter. When the target differential data passes the verification, the target differential data is segmented and parsed. The segmented data after parsing is stored in the download area, and the segmented data after parsing is deleted. When all segmented data in the target differential data are parsed, the data in the download area is determined as target parsed data, and the target parsed data is stored in the code area of ​​the ultrasonic water meter to upgrade the data in the ultrasonic water meter.

2. The method for upgrading data of an ultrasonic water meter according to claim 1, characterized in that: The differential processing of the firmware data of the current version of the ultrasonic water meter and the firmware data of the upgraded version of the ultrasonic water meter includes: The differential algorithm is used to perform differential processing on the firmware data of the current version of the ultrasonic water meter and the firmware data of the upgraded version of the ultrasonic water meter.

3. The method for upgrading data of an ultrasonic water meter according to claim 1, characterized in that: The receiving target differential data comprises: The target differential data is received via a narrowband Internet of Things.

4. The method for upgrading data of an ultrasonic water meter according to claim 1, characterized in that: The target differential data is stored in the download area of ​​the ultrasonic water meter, and when the target differential data passes the verification, the target differential data is segmented and parsed, and the parsed segmented data is stored in the download area, and the parsed segmented data is deleted, including: Storing the target differential data to a designated address of the download area so that the storage position of the target differential data is aligned with the download area; Verifying the target differential data; When the target differential data passes the verification, the target differential data is segmented, and the segmented data in the target differential data are parsed in sequence according to the storage position of the target differential data, and the parsed segmented data are stored in sequence starting from the starting position of the download area; When each segment data is parsed, the parsed segment data is deleted.

5. The method for upgrading data of an ultrasonic water meter according to claim 4, characterized in that: The designated address is equal to the end position address of the download area minus the storage address length occupied by the target differential data.

6. The method for upgrading data of an ultrasonic water meter according to claim 4, characterized in that: After verifying the target differential data, the method further includes: If the target differential data fails to pass the verification, a warning message is prompted and the target differential data is acquired again.

7. A method for upgrading data of an ultrasonic water meter according to any one of claims 1 to 6, characterized in that: The storing the target parsed data into the code area of ​​the ultrasonic water meter to upgrade the data in the ultrasonic water meter includes: Setting a temporary storage area in the ultrasonic water meter, and storing all code data stored in the code area in the ultrasonic water meter into the temporary storage area; Deleting all code data stored in the code area, and storing the target parsed data in the code area of ​​the ultrasonic water meter; The target parsing data is run in the code area to update the data in the ultrasonic water meter.

8. A data upgrade device for an ultrasonic water meter, characterized in that: include: A data receiving module, used for receiving target differential data; wherein the target differential data is data obtained after differential processing of the firmware data of the current version of the ultrasonic water meter and the firmware data of the upgraded version of the ultrasonic water meter; A data parsing module, used for storing the target differential data in the download area of ​​the ultrasonic water meter, and when the target differential data passes the verification, performing segmented parsing on the target differential data, storing the parsed segmented data in the download area, and deleting the parsed segmented data; The data upgrade module is used to determine the data in the download area as target parsed data when all segmented data in the target differential data are parsed, and store the target parsed data in the code area of ​​the ultrasonic water meter to upgrade the data in the ultrasonic water meter.

9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of a method for upgrading data of an ultrasonic water meter as claimed in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for upgrading data of an ultrasonic water meter as claimed in any one of claims 1 to 7 are implemented.