WO2022142153A1 - 电表升级方法、***、智能电表及存储介质 - Google Patents
电表升级方法、***、智能电表及存储介质 Download PDFInfo
- Publication number
- WO2022142153A1 WO2022142153A1 PCT/CN2021/099480 CN2021099480W WO2022142153A1 WO 2022142153 A1 WO2022142153 A1 WO 2022142153A1 CN 2021099480 W CN2021099480 W CN 2021099480W WO 2022142153 A1 WO2022142153 A1 WO 2022142153A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- upgrade
- upgraded
- data block
- data
- module
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 230000005611 electricity Effects 0.000 title abstract description 8
- 230000006870 function Effects 0.000 claims description 69
- 238000012795 verification Methods 0.000 claims description 32
- 238000013524 data verification Methods 0.000 claims description 23
- 238000004590 computer program Methods 0.000 claims description 11
- 238000001514 detection method Methods 0.000 claims description 5
- 230000008569 process Effects 0.000 description 11
- 238000004422 calculation algorithm Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000013480 data collection Methods 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/658—Incremental updates; Differential updates
Definitions
- the present application relates to the field of smart electricity meters, and in particular, to an electricity meter upgrading method, system, smart electricity meter, and computer-readable storage medium.
- the main purpose of the present application is to propose an electric meter upgrade method, system, smart electric meter and computer-readable storage medium, in order to solve the problem of low upgrading efficiency of existing smart electric meters.
- the present application provides a method for upgrading an electric meter, comprising the steps of:
- the server Receive an upgrade file sent by the server, wherein the upgrade file includes a start address corresponding to the data block to be upgraded, an upgrade data package, and a new function address list of the module to which the data block to be upgraded belongs;
- the upgrade file further includes an upgrade check value corresponding to the data block to be upgraded; the step of upgrading the data block to be upgraded according to the corresponding start address of the data block to be upgraded and the upgrade data package further includes:
- the step further includes:
- the step further includes:
- the data block to be upgraded that fails to be upgraded is controlled to be rolled back to the version before the update.
- the step of parsing the upgrade file to obtain the starting address corresponding to the data block to be upgraded, the upgrade data package and the new function address list of the module to which the data block to be upgraded belongs includes:
- the upgrade file is parsed to obtain the start address corresponding to the data block to be upgraded, the upgrade data package, and the list of new function addresses of the module to which the data block to be upgraded belongs.
- the method further includes:
- the verification failure information is sent to the server, so that the server resends the upgrade file.
- the step of upgrading the data block to be upgraded according to the corresponding starting address of the data block to be upgraded and the upgrade data package further includes:
- the type of the data block to be upgraded includes a non-legal type and a legal type
- the data block to be upgraded is upgraded according to the corresponding start address of the data block to be upgraded and the upgrade data package;
- the type of the data block to be upgraded is a legal type, then determine whether there is a digital authentication certificate in the upgrade file;
- the data block to be upgraded is upgraded according to the starting address corresponding to the data block to be upgraded and the upgrade data package.
- step of receiving the upgrade file sent by the server further includes:
- the present application also provides an electric meter upgrade system, the system includes:
- a receiving module configured to receive an upgrade file sent by the server, wherein the upgrade file includes a start address corresponding to the data block to be upgraded, an upgrade data packet, and a list of new function addresses of the module to which the data block to be upgraded belongs;
- a parsing module configured to parse the upgrade file, and obtain the corresponding start address of the data block to be upgraded, an upgrade data package, and a list of new function addresses of the module to which the data block to be upgraded belongs;
- the upgrade module is used to upgrade the data block to be upgraded according to the corresponding starting address of the data block to be upgraded and the upgrade data package;
- the replacement module is used to replace the current function address list of the module to which the data block to be upgraded belongs with the new function address list of the module to which the data block to be upgraded belongs.
- the present application also provides a smart meter, the smart meter includes a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being When executed by the processor, the steps of the above-mentioned method for upgrading the electric meter are realized.
- the present application also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, implements the steps of the above-mentioned method for upgrading an electric meter.
- a method, system, smart meter, and computer-readable storage medium for upgrading an electric meter proposed in the present application by receiving an upgrade file sent by a server, wherein the upgrade file includes a start address corresponding to a data block to be upgraded, an upgrade data package, and A list of new function addresses of the modules to which the data blocks to be upgraded belong; the upgrade file is parsed to obtain the corresponding starting addresses and upgrade data packets of the data blocks to be upgraded, and a list of new function addresses of the modules to which the data blocks to be upgraded belong; The starting address corresponding to the data block and the upgrade data package upgrade the data block to be upgraded; the new function address list of the module to which the data block to be upgraded belongs is replaced with the current function address list of the module to which the data block to be upgraded belongs.
- FIG. 1 is a schematic structural diagram of a hardware operating environment involved in a solution according to an embodiment of the present application
- FIG. 2 is a schematic flowchart of the first embodiment of the method for upgrading an electric meter according to the present application
- FIG. 3 is a schematic flowchart of a second embodiment of a method for upgrading an electric meter according to the present application
- FIG. 4 is a schematic schematic diagram of a refinement flow of step S20 in the fourth embodiment of the electricity meter upgrading method of the present application;
- FIG. 5 is a schematic flow chart of the refinement of step S30 in the fourth embodiment of the electric meter upgrading method of the present application;
- FIG. 6 is a schematic diagram of functional modules of the electricity meter upgrading system of the present application.
- FIG. 1 is a schematic diagram of a hardware structure of a smart meter provided in various embodiments of the present application.
- the smart meter includes components such as a communication module 01 , a memory 02 and a processor 03 .
- the processor 03 is respectively connected to the memory 02 and the communication module 01 , the memory 02 stores a computer program, and the computer program is simultaneously executed by the processor 03 .
- the communication module 01 can be connected with external devices through the network.
- the communication module 01 can receive data sent by an external device, and can also send data, instructions and information to the external device.
- the external device can be an electronic device such as a mobile phone, a tablet computer, a notebook computer, and a desktop computer.
- the memory 02 can be used to store software programs and various data.
- the memory 02 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required by at least one function (according to the starting address corresponding to the data block to be upgraded and the upgrade data block to be upgraded). upgrade), etc.; the storage data area can store data or information, etc., created according to the use of the smart meter.
- memory 02 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
- the processor 03 is the control center of the smart meter, using various interfaces and lines to connect various parts of the entire smart meter, by running or executing the software programs and/or modules stored in the memory 02, and calling the stored in the memory 02. Data, perform various functions of the smart meter and process data, so as to monitor the smart meter as a whole.
- the processor 03 may include one or more processing units; optionally, the processor 03 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem
- the modulation processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may also not be integrated into the processor 03 .
- the above-mentioned smart meter may further include a circuit control module, which is used for connecting with the commercial power to realize power control and ensure the normal operation of other components.
- the structure of the smart meter shown in FIG. 1 does not constitute a limitation to the smart meter, and may include more or less components than the one shown, or combine some components, or arrange different components.
- the electric meter upgrading method includes the steps:
- Step S10 receiving an upgrade file sent by the server, wherein the upgrade file includes a start address corresponding to the data block to be upgraded, an upgrade data package, and a list of new function addresses of the module to which the data block to be upgraded belongs;
- the software program inside the smart meter will be pre-divided into multiple modules, such as a display module, a communication module, a metering module, and a settlement module and other functional modules.
- Each module includes at least one function function, and a function address list is defined for each module in advance.
- the function address list includes the starting address of the module and the offset address corresponding to each function function in the module.
- a function The complete address of the function is composed of the starting address of the module where it is located and the corresponding offset address.
- the complete address of the function function in module B and then call the function function in module B exactly according to the complete address.
- the software program code inside the smart meter is also divided into multiple data blocks in advance, and each data block has a corresponding starting address, and the program code in each data block only belongs to a part of the program code of one module. Instead of the program code in each data block belonging to two or more modules.
- the bytes of each data block are the same, and the length of the data block is determined according to the hardware characteristics of the main MCU of the smart meter. Different main MCUs have different lengths of the divided data blocks, which are fixed at 4K bytes in this embodiment.
- the smart meter establishes a communication connection with the server to obtain the upgrade file of the smart meter.
- the upgrade file may be the latest version of the power meter software, or the version of the power meter software updated by the developer according to user needs.
- This implementation is not specifically limited here.
- the server will encapsulate and package the starting address of the data block to be upgraded in the smart meter, the upgrade data package and the new function address list of the module to which the data block to be upgraded belongs to form an upgrade file, which may include The starting address corresponding to one or more data blocks to be upgraded, the upgrade data package and the new function address list of one or more modules respectively.
- the server determines that some modules of the smart meter need to be upgraded, it will send the upgrade file to the smart meter through the network.
- Step S20 parsing the upgrade file to obtain the starting address corresponding to the data block to be upgraded, the upgrade data package, and the list of new function addresses of the module to which the data block to be upgraded belongs;
- Step S30 upgrade the data block to be upgraded according to the corresponding starting address of the data block to be upgraded and the upgrade data package;
- Step S40 replace the current function address list of the module to which the data block to be upgraded belongs with the new function address list of the module to which the data block to be upgraded belongs.
- the smart meter After the smart meter receives the upgrade file, it parses the upgrade file to obtain the starting address and upgrade data package corresponding to at least one data block to be upgraded, and a list of new function addresses of the module to which the data block to be upgraded belongs.
- the smart meter can determine the location of the data block to be upgraded in the entire program code through the starting address corresponding to the data block to be upgraded, so as to determine the installation path of the data block to be upgraded. Then, according to the installation path of the data block to be upgraded, the current program code of the data block to be upgraded is updated by using the program code in the upgrade data package of the data block to be upgraded.
- the new function address list of the module to which the data block to be upgraded in the upgrade file belongs is A new function address list established in advance according to the program code of the module to which the data block to be upgraded is upgraded. After the data block to be upgraded is upgraded using the upgrade data package, the new function address list in the upgrade file will be used to replace the address of the data block to be upgraded. List of current function addresses for the module. Therefore, it is ensured that the mutual calls between the modules are not affected after the module is upgraded.
- an upgrade file sent by the server is received, wherein the upgrade file includes the start address corresponding to the data block to be upgraded, the upgrade data package, and the list of new function addresses of the module to which the data block to be upgraded belongs; and the upgrade file is parsed , obtain the starting address and the upgrade data package corresponding to the data block to be upgraded, and the new function address list of the module to which the data block to be upgraded belongs; upgrade the data block to be upgraded according to the corresponding starting address of the data block to be upgraded and the upgrade data package; update the data block to be upgraded; The new function address list of the module to which the data block to be upgraded belongs replaces the current function address list of the module to which the data block to be upgraded belongs.
- the upgrade file further includes an upgrade check value corresponding to the data block to be upgraded; step After the step of S30, it also includes:
- Step S50 after the upgrade is completed, calculate the check value to be verified according to all the data blocks
- Step S60 judging whether the to-be-verified check value matches the upgrade check value
- Step S61 when the to-be-verified check value and the upgrade check value match successfully, it is determined that the upgrade is successful;
- Step S62 when the verification value to be verified and the upgrade verification value fail to match, it is determined that the upgrade fails.
- the server will also encapsulate the upgrade check value in the upgrade file to verify whether the data block to be upgraded has been successfully upgraded.
- the upgrade check value calculated by all program codes after the data block to be upgraded is successfully upgraded.
- a preset check value algorithm will be used to calculate the check value to be verified according to all data blocks, and the preset check value algorithm is the check value calculation algorithm used in the prior art to verify the integrity of the file, It is not repeated here, and then it is determined whether the verification value to be verified matches the upgrade verification value parsed from the software package, that is, whether they are consistent, and if the matching is successful, the upgrade is determined to be successful. If the matching is unsuccessful, it is inconsistent, indicating that there is a difference between the program code after the upgrade and the expected program code after the upgrade is successful, and it will be determined that the upgrade fails.
- the method further includes:
- Step S70 storing the original data package corresponding to the data block to be upgraded before the upgrade
- step S62 After the step of step S62, it also includes:
- Step S63 Control the data block to be upgraded that fails to be upgraded to roll back to the version before the update according to the original data package corresponding to the data block to be upgraded that fails to upgrade.
- the current program code of each data block to be upgraded is not replaced immediately, but the current program code of each data block to be upgraded is replaced before the upgrade. Perform a backup to generate the original data package of the corresponding data block to be upgraded, and store it. Therefore, after it is determined that the upgrade of the data block to be upgraded fails, the original data package of the data block to be upgraded that fails to be upgraded can be called, and the data block to be upgraded can be controlled to be rolled back to the version before the update, so as to avoid the failure of the upgrade of the data block to be upgraded.
- the smart meter does not work properly.
- the original data package of the data block to be upgraded before the update is stored; if the upgrade of the data block to be upgraded fails, the data block to be upgraded is controlled to be rolled back to the version before the update according to the original data package.
- the upgrade of the to-be-upgraded data block fails, it automatically restores to the version before the update and starts normally, so that the user's normal use of the smart meter is not affected whether the upgrade succeeds or fails, and the user experience is improved.
- FIG. 3 shows a fourth embodiment of the method for upgrading an electric meter of the present application according to the foregoing embodiments of the method for upgrading an electric meter of the present application.
- step S20 includes:
- Step S21 performing data verification on the upgrade file
- Step S22 when the data verification is successful, the upgrade file is parsed to obtain the start address corresponding to the data block to be upgraded, the upgrade data package, and the list of new function addresses of the module to which the data block to be upgraded belongs.
- the server when the server sends the upgrade file, it also sends data verification information corresponding to the upgrade file, and by verifying the data verification information, it is determined whether the upgrade file has file missing during the transmission process.
- the verification information in the upgrade file is automatically generated by a preset algorithm.
- the data verification information can be generated by using the CRC32 algorithm.
- the smart meter also performs data verification on the upgrade file according to the CRC32 algorithm. , of course, this embodiment does not specifically limit the way of generating the data verification information. If the data verification is successful, it indicates that the upgrade file obtained by the smart meter is a complete file package.
- the upgrade file is parsed to obtain the starting address and upgrade data package corresponding to the data block to be upgraded. And the new function address list of the module to which the data block to be upgraded belongs. Further, when the data verification is unsuccessful, a verification failure message will be sent to the server, and the server will resend the upgrade file to the smart meter after receiving the verification failure message.
- the data verification is performed again to further ensure that the upgrade file is parsed only when the upgrade file is complete, thereby improving the upgrade success rate of the power meter.
- FIG. 4 is a fifth embodiment of the method for upgrading an electric meter of the present application according to the foregoing embodiments of the method for upgrading an electric meter of the present application.
- step S30 further includes:
- Step S31 obtaining the type of the data block to be upgraded, and the type includes a non-legal type and a legal type;
- Step S32 if the type of the data block to be upgraded is a non-legal type, then upgrade the data block to be upgraded according to the corresponding start address of the data block to be upgraded and the upgrade data package;
- Step S33 if the type of the data block to be upgraded is a legal type, then determine whether there is a digital authentication certificate in the upgrade file;
- Step S34 when there is a digital authentication certificate in the upgrade file, upgrade the data block to be upgraded according to the starting address corresponding to the data block to be upgraded and the upgrade data package.
- the software program of the smart meter further includes a non-legal part and a non-legal part, so the types to which the correspondingly divided data blocks belong also include legal types and non-legal types.
- the certification body needs to re-certify before running the upgrade and modification.
- the server will also encapsulate the digital certification certificate re-certified by the certification body in the in the upgrade file.
- the type of the data block to be upgraded will be obtained first, and the type of the data block to be upgraded can be obtained by obtaining the identifier of the module to which the data block to be upgraded belongs to determine whether it is a legal type or a non-legal type, for example, the identifier is 1, If it is a legal type, if the identifier is 0, it is a non-legal type.
- the type of the data block to be upgraded can also be obtained in other ways, and the way of obtaining the type is not limited here.
- the data block to be upgraded is upgraded directly according to the start address corresponding to the data block to be upgraded and the upgrade data package.
- the type of the data block to be upgraded is a legal type, it is judged whether the digital authentication certificate is parsed from the upgrade file. Only when it is determined that there is a digital authentication certificate, will it be treated according to the corresponding starting address of the data block to be upgraded and the upgrade data package. Upgrade data blocks to upgrade.
- FIG. 5 shows a sixth embodiment of the method for upgrading an electric meter of the present application according to the foregoing embodiments of the method for upgrading an electric meter of the present application.
- the method before step S10 , the method further includes:
- Step S80 Receive an upgrade configuration file sent by the server, perform upgrade detection on each data block according to the upgrade configuration file, and determine a data block to be upgraded;
- Step S90 sending an upgrade request including identification information of the data block to be upgraded to the server.
- the smart meter will receive an upgrade configuration file sent by the server from time to time or periodically, and the configuration file will include version information of each data block divided in the smart meter.
- the smart meter also presets a data block for special purpose Store the version information of other data blocks.
- the version information of the data block can be a digital signature calculated according to the program code of the data block.
- the version information of the corresponding data blocks in the electricity meter is compared, so as to determine the data blocks that need to be upgraded, and determine the data blocks to be upgraded as the data blocks to be upgraded. Then, the smart meter will send the identification information of the data block to be upgraded to the server.
- the server will encapsulate the upgrade check value, the upgrade data packet of the data block to be upgraded, the starting address of the data block to be upgraded, and the address of the new function list of the module to which the data block to be upgraded belongs together.
- the upgrade file is formed, and the verification algorithm is used to generate the verification information of the upgrade file, and the upgrade file and the verification information of the upgrade file are fed back to the smart meter, so that the smart meter can complete the subsequent upgrade process.
- the server obtains the starting address of the data block to be upgraded
- the starting address of the data block to be upgraded may be obtained by querying a mapping relationship table between the identification information and the starting address of each data block pre-stored in the server. It may also be that after the smart meter determines the data block to be upgraded, the identification information of the data block to be upgraded and the corresponding start address are sent to the server together.
- the present application also provides an electric meter upgrade system, including:
- the receiving module 10 is configured to receive an upgrade file sent by the server, wherein the upgrade file includes a start address corresponding to the data block to be upgraded, an upgrade data package, and a list of new function addresses of the module to which the data block to be upgraded belongs;
- the parsing module 20 is used for parsing the upgrade file to obtain the starting address corresponding to the data block to be upgraded, the upgrade data package and the new function address list of the module to which the data block to be upgraded belongs;
- An upgrade module 30, configured to upgrade the data block to be upgraded according to the starting address corresponding to the data block to be upgraded and the upgrade data package;
- the replacement module 40 is configured to replace the current function address list of the module to which the data block to be upgraded belongs with the new function address list of the module to which the data block to be upgraded belongs.
- the electric meter upgrade system further includes:
- the calculation module 50 is used to calculate the check value to be verified according to all the data blocks after the upgrade is completed;
- the judgment module 60 is used for judging whether the to-be-verified check value matches the upgrade check value
- the first determination module 61 is configured to determine that the upgrade is successful when the verification value to be verified and the upgrade verification value match successfully;
- the second determination module 62 is configured to determine that the upgrade fails when the check value to be verified and the upgrade check value fail to match.
- the electric meter upgrade system further includes:
- the storage module 70 is used for storing the original data packets corresponding to the data blocks to be upgraded before the upgrade;
- the rollback module 63 is configured to, according to the original data package corresponding to the data block to be upgraded that fails to upgrade, control the data block to be upgraded that fails to be upgraded to be rolled back to the version before the update.
- parsing module 20 also includes:
- a verification unit 21 configured to perform data verification on the upgrade file
- the parsing unit 22 is configured to parse the upgrade file when the data verification succeeds, and obtain the corresponding start address of the data block to be upgraded, the upgrade data package, and a list of new function addresses of the module to which the data block to be upgraded belongs.
- parsing module 20 also includes:
- the sending unit 23 is configured to send the verification failure information to the server when the data verification is unsuccessful, so that the server can resend the upgrade file.
- the upgrade module 30 also includes:
- an obtaining unit 31 configured to obtain the type of the data block to be upgraded, and the type includes a non-legal type and a legal type;
- the non-legal upgrading unit 32 is configured to upgrade the data block to be upgraded according to the corresponding start address of the data block to be upgraded and the upgrade data package if the type of the data block to be upgraded is a non-legal type;
- the non-legal upgrade unit 33 is configured to judge whether there is a digital authentication certificate in the upgrade file if the type of the data block to be upgraded is a legal type; when there is a digital authentication certificate in the upgrade file, according to the corresponding data block to be upgraded The starting address and the upgrade data package to upgrade the data block to be upgraded.
- the electric meter upgrade system further includes:
- the detection module 80 is configured to receive an upgrade configuration file sent by the server, perform upgrade detection on each data block according to the upgrade configuration file, and determine the data block to be upgraded;
- the sending module 90 is configured to send an upgrade request including identification information of the data block to be upgraded to the server.
- the present application also proposes a computer-readable storage medium on which a computer program is stored.
- the computer-readable storage medium may be the memory 02 in the smart meter of FIG. 1, or may be, for example, a ROM (Read-Only Memory, read-only memory)/RAM (Random Access Memory, random access memory), a magnetic disk, At least one of the optical disks, the computer-readable storage medium includes several pieces of information for enabling the smart meter to perform the methods described in the various embodiments of the present application.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
Description
Claims (10)
- 一种电表升级方法,其中,包括以下步骤:接收服务器发送的升级文件,其中,所述升级文件包括待升级数据块对应的起始地址和升级数据包以及待升级数据块所属模块的新函数地址列表;对所述升级文件进行解析,获得待升级数据块对应的起始地址和升级数据包以及待升级数据块所属模块的新函数地址列表;根据待升级数据块对应的起始地址和升级数据包对待升级数据块进行升级;将待升级数据块所属模块的新函数地址列表替换待升级数据块所属模块的当前函数地址列表。
- 如权利要求1所述电表升级方法,其中,所述升级文件还包括升级校验值;所述根据待升级数据块对应的起始地址和升级数据包对待升级数据块进行升级的步骤之后还包括:升级完成后,根据所有数据块计算待验证校验值;判断待验证校验值和升级校验值是否匹配;当待验证校验值和升级校验值匹配成功时,确定升级成功;当待验证校验值和升级校验值匹配失败时,确定升级失败。
- 如权利要求2所述的应用软件更新方法,其中,所述根据待升级数据块对应的起始地址和升级数据包对待升级数据块进行升级的步骤之前还包括:存储升级前待升级数据块对应的原始数据包;所述当待验证校验值和升级校验值匹配失败时,确定升级失败的步骤之后,还包括:根据升级失败的待升级数据块对应的原始数据包,控制升级失败的待升级数据块回滚至更新前的版本。
- 如权利要求1至3中任一项所述电表升级方法,其中,所述对所述升级文件进行解析,获得待升级数据块对应的起始地址和升级数据包以及待升级数据块所属模块的新函数地址列表的步骤包括:对所述升级文件进行数据校验;当数据校验成功时,对所述升级文件进行解析,获得待升级数据块对应的起始地址和升级数据包以及待升级数据块所属模块的新函数地址列表。
- 如权利要求4所述电表升级方法,其中,所述对所述升级文件进行数据校验的步骤之后,还包括:当数据校验不成功时,向所述服务器发送校验失败信息,以使所述服务器重新发送所述升级文件。
- 如权利要求5所述电表升级方法,其中,所述根据待升级数据块对应的起始地址和升级数据包对待升级数据块进行升级的步骤还包括:获取待升级数据块的类型,所述类型包括非法定类型和法定类型;若待升级数据块的类型为非法定类型,则根据待升级数据块对应的起始地址和升级数据包对待升级数据块进行升级;若待升级数据块的类型为法定类型,则判断所述升级文件中是否存在数字认证证书;当所述升级文件中存在数字认证证书时,根据待升级数据块对应的起始地址和升级数据包对待升级数据块进行升级。
- 如权利要求6所述电表升级方法,其中,所述接收服务器发送的升级文件的步骤之前还包括:接收服务器发送的升级配置文件,根据所述升级配置文件对各数据块进行升级检测,确定待升级数据块;发送包括待升级数据块标识信息的升级请求至服务器。
- 一种电表升级***,其中,所述电表升级***包括:接收模块,用于接收服务器发送的升级文件,其中,所述升级文件包括待升级数据块对应的起始地址和升级数据包以及待升级数据块所属模块的新函数地址列表;解析模块,用于对所述升级文件进行解析,获得待升级数据块对应的起始地址和升级数据包以及待升级数据块所属模块的新函数地址列表;升级模块,用于根据待升级数据块对应的起始地址和升级数据包对待升级数据块进行升级;替换模块,用于将待升级数据块所属模块的新函数地址列表替换待升级数据块所属模块的当前函数地址列表。
- 一种智能电表,其中,所述智能电表包括存储器、处理器和存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至7中任一项所述的电表升级方法的步骤。
- 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至7中任一项所述的电表升级方法的步骤。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
MX2022008863A MX2022008863A (es) | 2020-12-31 | 2021-06-10 | Metodo y sistema de actualizacion de medidores de electricidad, medidor inteligente y medio de almacenamiento. |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011644506.8 | 2020-12-31 | ||
CN202011644506.8A CN112650520B (zh) | 2020-12-31 | 2020-12-31 | 电表升级方法、***、智能电表及存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022142153A1 true WO2022142153A1 (zh) | 2022-07-07 |
Family
ID=75367098
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/099480 WO2022142153A1 (zh) | 2020-12-31 | 2021-06-10 | 电表升级方法、***、智能电表及存储介质 |
Country Status (3)
Country | Link |
---|---|
CN (1) | CN112650520B (zh) |
MX (1) | MX2022008863A (zh) |
WO (1) | WO2022142153A1 (zh) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115437674A (zh) * | 2022-09-28 | 2022-12-06 | 杭州华塑科技股份有限公司 | 一种固件升级方法、装置、介质及电子设备 |
CN117472411A (zh) * | 2023-12-27 | 2024-01-30 | 北谷电子(无锡)有限公司 | 一种兼容多种升级协议的升级方法 |
CN118092981A (zh) * | 2024-04-19 | 2024-05-28 | 石家庄科林电气股份有限公司 | 一种物联电能表的快速升级方法及电能表 |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112650520B (zh) * | 2020-12-31 | 2023-08-01 | 威胜集团有限公司 | 电表升级方法、***、智能电表及存储介质 |
CN113190257A (zh) * | 2021-04-30 | 2021-07-30 | 深圳市华沃表计科技有限公司 | 智能电能表远程升级方法 |
CN113641378B (zh) * | 2021-07-13 | 2024-01-26 | 烽火通信科技股份有限公司 | 光模块程序升级方法、装置、设备及可读存储介质 |
CN114531352A (zh) * | 2021-12-29 | 2022-05-24 | 上海宏力达信息技术股份有限公司 | 一种电力通信模块配置文件升级的方法 |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010288026A (ja) * | 2009-06-10 | 2010-12-24 | Panasonic Electric Works Co Ltd | ファームウェアのアップデート方法、および電力線搬送通信システム |
CN102622257A (zh) * | 2012-04-25 | 2012-08-01 | 钜泉光电科技(上海)股份有限公司 | 电表在线自更新方法及其装置 |
CN104063254A (zh) * | 2014-07-14 | 2014-09-24 | 威胜集团有限公司 | 电能表在线升级方法 |
CN110119281A (zh) * | 2018-02-07 | 2019-08-13 | 河南许继仪表有限公司 | 一种电能表软件模块化升级方法及电能表*** |
CN111694590A (zh) * | 2020-06-15 | 2020-09-22 | 泉州慧霁科技有限公司 | 一种智能水电表的升级方法 |
CN112650520A (zh) * | 2020-12-31 | 2021-04-13 | 威胜集团有限公司 | 电表升级方法、***、智能电表及存储介质 |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101984691A (zh) * | 2010-10-25 | 2011-03-09 | 东莞宇龙通信科技有限公司 | ***内置软件的升级方法和移动终端 |
CN102316439B (zh) * | 2011-09-09 | 2017-11-24 | 中兴通讯股份有限公司 | 一种实现用户侧设备的固件升级方法和*** |
WO2015163931A1 (en) * | 2014-04-24 | 2015-10-29 | Hewlett-Packard Development Company, L.P. | Dynamically applying a patch to a computer application |
CN106339248A (zh) * | 2016-10-09 | 2017-01-18 | 大道网络(上海)股份有限公司 | 软件远程升级方法及*** |
CN106790247A (zh) * | 2017-01-23 | 2017-05-31 | 青岛海信移动通信技术股份有限公司 | 一种Android***升级的方法和装置 |
CN107748668B (zh) * | 2017-11-27 | 2021-02-02 | 奇安信科技集团股份有限公司 | 一种应用程序升级的方法及装置 |
CN108920162A (zh) * | 2018-06-29 | 2018-11-30 | 深圳市道通智能航空技术有限公司 | 一种无人机***中的模块升级方法 |
CN108958774A (zh) * | 2018-07-13 | 2018-12-07 | 深圳市道通智能航空技术有限公司 | 无人机***中的模块升级方法及待升级模块 |
CN109640181B (zh) * | 2018-12-14 | 2020-10-09 | 四川天邑康和通信股份有限公司 | 一种通过机顶盒对家庭网关进行升级的方法 |
CN110275722B (zh) * | 2019-06-21 | 2023-08-08 | 北京百度网讯科技有限公司 | 用于升级应用的方法、装置、设备和存储介质 |
CN110597539A (zh) * | 2019-09-05 | 2019-12-20 | 威胜集团有限公司 | 电能表升级方法、***和存储介质 |
-
2020
- 2020-12-31 CN CN202011644506.8A patent/CN112650520B/zh active Active
-
2021
- 2021-06-10 MX MX2022008863A patent/MX2022008863A/es unknown
- 2021-06-10 WO PCT/CN2021/099480 patent/WO2022142153A1/zh active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010288026A (ja) * | 2009-06-10 | 2010-12-24 | Panasonic Electric Works Co Ltd | ファームウェアのアップデート方法、および電力線搬送通信システム |
CN102622257A (zh) * | 2012-04-25 | 2012-08-01 | 钜泉光电科技(上海)股份有限公司 | 电表在线自更新方法及其装置 |
CN104063254A (zh) * | 2014-07-14 | 2014-09-24 | 威胜集团有限公司 | 电能表在线升级方法 |
CN110119281A (zh) * | 2018-02-07 | 2019-08-13 | 河南许继仪表有限公司 | 一种电能表软件模块化升级方法及电能表*** |
CN111694590A (zh) * | 2020-06-15 | 2020-09-22 | 泉州慧霁科技有限公司 | 一种智能水电表的升级方法 |
CN112650520A (zh) * | 2020-12-31 | 2021-04-13 | 威胜集团有限公司 | 电表升级方法、***、智能电表及存储介质 |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115437674A (zh) * | 2022-09-28 | 2022-12-06 | 杭州华塑科技股份有限公司 | 一种固件升级方法、装置、介质及电子设备 |
CN115437674B (zh) * | 2022-09-28 | 2024-04-30 | 杭州华塑科技股份有限公司 | 一种固件升级方法、装置、介质及电子设备 |
CN117472411A (zh) * | 2023-12-27 | 2024-01-30 | 北谷电子(无锡)有限公司 | 一种兼容多种升级协议的升级方法 |
CN117472411B (zh) * | 2023-12-27 | 2024-05-14 | 北谷电子(无锡)有限公司 | 一种兼容多种升级协议的升级方法 |
CN118092981A (zh) * | 2024-04-19 | 2024-05-28 | 石家庄科林电气股份有限公司 | 一种物联电能表的快速升级方法及电能表 |
Also Published As
Publication number | Publication date |
---|---|
CN112650520B (zh) | 2023-08-01 |
MX2022008863A (es) | 2022-08-11 |
CN112650520A (zh) | 2021-04-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022142153A1 (zh) | 电表升级方法、***、智能电表及存储介质 | |
US7480907B1 (en) | Mobile services network for update of firmware/software in mobile handsets | |
WO2019062635A1 (zh) | 升级方法和装置 | |
EP2608585B1 (en) | Method, device and system for triggering terminal operation | |
CN109391673A (zh) | 一种管理更新文件的方法、***及终端设备 | |
CN106911502A (zh) | 一种智能家庭网关设备的升级方法及*** | |
CN103440142A (zh) | 基于gprs远程升级及动态加载方法 | |
CN112286565B (zh) | 一种基于存储容器的嵌入式***差分升级方法 | |
CN111787098B (zh) | 一种耳机升级方法、装置及一种耳机和存储介质 | |
CN108322540A (zh) | 客制化数据导入方法、终端及计算机可读存储介质 | |
CN109002305B (zh) | 一种设备程序的更新方法及其*** | |
CN112667272A (zh) | 电表升级方法、***、智能电表及存储介质 | |
CN110045969B (zh) | 应用程序安装方法、服务器、***、设备及存储介质 | |
WO2018032573A1 (zh) | 数据处理方法、装置、服务器及终端 | |
CN114125812A (zh) | 一种数据同步方法、装置、服务器及存储介质 | |
CN111752577A (zh) | 一种***版本的升级方法及设备 | |
WO2024087767A1 (zh) | 升级安装方法及其装置、***、电子设备及存储介质 | |
CN104104701A (zh) | 在线服务的配置更新的方法和*** | |
CN115515012A (zh) | 一种密钥烧录方法、装置、电子设备板卡及存储介质 | |
WO2023123910A1 (zh) | 故障处理方法、装置、设备及存储介质 | |
WO2023125755A1 (zh) | 基于大规模集群的服务请求处理方法、装置、设备及介质 | |
CN115150162A (zh) | 一种根证书更新方法、装置 | |
CN114968822A (zh) | 接口测试方法、装置、计算机设备及存储介质 | |
CN114185804A (zh) | 一种接口测试方法、装置及终端设备 | |
CN114546842A (zh) | 接口测试方法、装置和存储介质及电子设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
REG | Reference to national code |
Ref country code: BR Ref legal event code: B01A Ref document number: 112022013758 Country of ref document: BR |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21912912 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 112022013758 Country of ref document: BR Kind code of ref document: A2 Effective date: 20220711 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21912912 Country of ref document: EP Kind code of ref document: A1 |