CN118075256B - Internet of things ammeter upgrading method, system, terminal and storage medium - Google Patents

Internet of things ammeter upgrading method, system, terminal and storage medium Download PDF

Info

Publication number
CN118075256B
CN118075256B CN202410472715.0A CN202410472715A CN118075256B CN 118075256 B CN118075256 B CN 118075256B CN 202410472715 A CN202410472715 A CN 202410472715A CN 118075256 B CN118075256 B CN 118075256B
Authority
CN
China
Prior art keywords
multicast
electric meter
upgraded
version information
ammeter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202410472715.0A
Other languages
Chinese (zh)
Other versions
CN118075256A (en
Inventor
罗克清
朱永权
杜波
朱旭权
曹耀杰
石林波
李曼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Philisense Information Security Technology Co ltd
Original Assignee
Beijing Philisense Information Security Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Philisense Information Security Technology Co ltd filed Critical Beijing Philisense Information Security Technology Co ltd
Priority to CN202410472715.0A priority Critical patent/CN118075256B/en
Publication of CN118075256A publication Critical patent/CN118075256A/en
Application granted granted Critical
Publication of CN118075256B publication Critical patent/CN118075256B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to an upgrading method, a system, a terminal and a storage medium of an electric meter of the Internet of things, and relates to the field of electric operation and maintenance technology; grouping the electric meters to be upgraded according to the electric meter version information to obtain a plurality of groups of electric meters with the same electric meter version information; obtaining a plurality of groups of multicast addresses according to the first IP address of each electric meter to be upgraded in each group of electric meters; sending a group of multicast addresses, a second IP address of a second multicast route and target version information to a first multicast route, so that one ammeter to be upgraded in a group of ammeter corresponding to the group of multicast addresses sends a target upgrading file to the second multicast route; the sending sequence of the multicast addresses is the sequence from low to high of ammeter version information, and the initial upgrade file is also sent to the multicast route for the first time. The method has the effect of enabling the upgrading efficiency of the electric meter of the Internet of things to be high.

Description

Internet of things ammeter upgrading method, system, terminal and storage medium
Technical Field
The application relates to the field of power operation and maintenance technology, in particular to an electric meter upgrading method, system, terminal and storage medium of the Internet of things.
Background
The electric meter of the Internet of things comprises a metering core and a management core. The metering core is responsible for the legal calculation function of the ammeter, namely collecting electricity consumption data such as voltage, current, instantaneous power, active power, reactive power and the like. The management core is responsible for functions such as ammeter display, communication, can also manage and control the expansion module of thing networking ammeter. Specifically, the management core has an uplink interface connected to the concentrator and a downlink interface connected to various home appliances.
In the related art, the upgrading process of the internet of things electric meter is that, first, the superior device of the internet of things electric meter needs to determine the electric meter to be upgraded, and then the electric meter during batch upgrading is subjected to grouping and multicast key negotiation. The superior device adopts a multicast mode to issue an upgrade file. Each electric meter to be upgraded needs to download an upgrade file from the multicast group route, and upgrade is performed in the idle time of the equipment. For the situation that the upgrade file is not received or is incomplete, the superior equipment needs to determine through inquiry or active reporting by the ammeter, and then retransmits the upgrade file in a point-to-point mode.
In the above process, the version information of each internet of things electric meter may not be the same, and if the upper device sends the complete upgrade file, each internet of things electric meter downloads the upgrade file in the same time period, which makes the load of the communication channel in the time period larger. If the upper-level device sends the incremental upgrade file to the corresponding internet of things ammeter, the upper-level device needs to occupy a communication channel for a long time when transmitting the upgrade file. In conclusion, the electric meter upgrading efficiency of the Internet of things is low.
Disclosure of Invention
The application aims to provide an electric meter upgrading method of the Internet of things, which has the characteristic of higher electric meter upgrading efficiency of the Internet of things.
The first object of the present application is achieved by the following technical solutions:
an internet of things ammeter upgrading method comprises the following steps:
acquiring ammeter version information and a first IP address of all the ammeter to be upgraded;
grouping the electric meters to be upgraded according to the electric meter version information to obtain a plurality of groups of electric meters with the same electric meter version information;
Obtaining a plurality of groups of multicast addresses according to the first IP address of each electric meter to be upgraded in each group of electric meters;
Sending a group of multicast addresses, a second IP address of a second multicast route and target version information to a first multicast route, so that an electric meter to be upgraded in a group of electric meters corresponding to the group of multicast addresses sends a target upgrade file to the second multicast route, wherein the target upgrade file is obtained by processing an upgrade file downloaded by the electric meter to be upgraded to the equipment according to the target version information;
The sending sequence of the multicast addresses is the sequence from low to high of the ammeter version information, and when a group of multicast addresses, a second IP address of a second multicast route and target version information are sent to the multicast route for the first time, an initial upgrade file is also sent, wherein the initial upgrade file is an upgrade file for enabling the ammeter to be upgraded, with the lowest ammeter version information, to be upgraded to the current version.
By adopting the technical scheme, the superior device can only send the initial upgrade file to the electric meter to be upgraded through the multicast route, so that the electric meter to be upgraded, which downloads the initial upgrade file, can send the target upgrade file to the second multicast route. The size of the upgrade file sent by the superior equipment can be reduced, and the electric meters to be upgraded of different versions can be upgraded. Because the electric meters to be upgraded of different classes can download the target upgrade files at different times, the occupancy rate of the communication channel at each moment can be further reduced, and the efficiency of the whole upgrade process of the electric meters of the Internet of things is improved.
The present application may be further configured in a preferred example to: the method for determining the second multicast route comprises the following steps:
Acquiring a first physical location of an ammeter to be upgraded corresponding to a multicast address of the second multicast route and a second physical location of all multicast routes;
And determining a second multicast route according to all the first physical locations of the group of electric meters and all the second physical locations of the available multicast routes.
The present application may be further configured in a preferred example to: the determining the second multicast route according to all the first physical locations of the group of electricity meters and all the second physical locations of the available multicast routes includes:
determining a target physical location according to all the first physical locations of the group of electric meters;
and determining the multicast route closest to the target physical location according to the second physical locations of all available multicast routes, and taking the multicast route as a second multicast route.
By adopting the technical scheme, the distance between the second multicast route and the corresponding electric meter to be upgraded is smaller, so that the time for downloading the target upgrade file by the electric meter to be upgraded is shortened, namely the time for occupying a communication channel is shortened.
The present application may be further configured in a preferred example to: the first determined second multicast route is the first multicast route.
The present application may be further configured in a preferred example to: the method for determining the ammeter to be upgraded, which sends the target upgrade file to the second multicast route, comprises the following steps:
Acquiring a first physical location of an ammeter to be upgraded corresponding to a multicast address of the first multicast route;
and determining a target ammeter according to all the first physical locations of the ammeter group and the second physical locations of the second multicast route, wherein the target ammeter is used for sending a target upgrade file to the second multicast route.
The present application may be further configured in a preferred example to: the determining the target ammeter according to the first physical location of all the ammeter groups and the second physical location of the second multicast route comprises:
and determining the electric meter to be upgraded closest to the second physical location of the second multicast route according to all the first physical locations of the electric meters in the group, and taking the electric meter to be upgraded as a target electric meter.
By adopting the technical scheme, the distance between the second multicast route and the target ammeter is smaller, which is beneficial to shortening the time for the target ammeter to send the target upgrade file to the second multicast route, namely reducing the time for occupying a communication channel.
The present application may be further configured in a preferred example to: the method for determining the electric meter to be upgraded comprises the following steps:
Acquiring current version information of an upgrade file and ammeter version information of all the ammeter;
Determining an upgradeable electric meter according to the current version information and the electric meter version information of all the electric meters;
Transmitting a start transmission command to the upgradeable electric meter, wherein the start transmission command comprises version information of compatible software and hardware of an upgrade file, so that the upgradeable electric meter confirms whether upgrade conditions are met;
And determining the ammeter to be upgraded according to the received confirmation result.
The application aims to provide an electric meter upgrading system of the Internet of things, which has the characteristic of higher electric meter upgrading efficiency of the Internet of things.
The second object of the present application is achieved by the following technical solutions:
An electric meter upgrading system of the Internet of things comprises,
The acquisition module is used for acquiring the ammeter version information and the first IP address of all the ammeter to be upgraded;
the grouping module is used for grouping the electric meters to be upgraded according to the electric meter version information to obtain a plurality of groups of electric meters with the same electric meter version information;
The address determining module is used for obtaining a plurality of groups of multicast addresses according to the first IP address of each electric meter to be upgraded in each group of electric meters; and
The system comprises a sending module, a first multicast router, a second multicast router, a first update module and a second update module, wherein the sending module is used for sending a group of multicast addresses, a second IP address of the second multicast router and target version information to the first multicast router, so that one electric meter to be updated in a group of electric meters corresponding to the multicast addresses sends a target update file to the second multicast router, the target update file is obtained by processing an update file downloaded by the electric meters to be updated to the device according to the target version information, the sending sequence of the multicast addresses is the sequence from low to high, and when the group of multicast addresses, the second IP address of the second multicast router and the target version information are sent to the multicast router for the first time, an initial update file is an update file for enabling the electric meter to be updated with the lowest electric meter version information to be updated to the current version.
The application aims at providing an intelligent terminal which has the characteristic of higher upgrading efficiency of the electric meter of the Internet of things.
The third object of the present application is achieved by the following technical solutions:
The intelligent terminal comprises a memory and a processor, wherein the memory stores a computer program which can be loaded by the processor and execute the method for upgrading the electric meter of the Internet of things.
The fourth object of the present application is to provide a computer storage medium capable of storing a corresponding program, which has the characteristics of being convenient for realizing higher upgrading efficiency of the electric meter of the internet of things.
The fourth object of the present application is achieved by the following technical solutions:
A computer readable storage medium storing a computer program loadable by a processor and performing any of the above-described internet of things electricity meter upgrade methods.
In summary, the present application includes at least one of the following beneficial technical effects:
In the application, the upper-level equipment can only send the initial upgrade file to the electric meter to be upgraded through the multicast route, so that the electric meter to be upgraded, which downloads the initial upgrade file, can send the target upgrade file to the second multicast route. The size of the upgrade file sent by the superior equipment can be reduced, and the electric meters to be upgraded of different versions can be upgraded. Because the electric meters to be upgraded of different classes can download the target upgrade files at different times, the occupancy rate of the communication channel at each moment can be further reduced, and the efficiency of the whole upgrade process of the electric meters of the Internet of things is improved
Drawings
Fig. 1 is a flow chart of an upgrading method of an internet of things electric meter according to an embodiment of the application.
Fig. 2 is a system schematic diagram of an internet of things electric meter upgrading system according to an embodiment of the application.
Fig. 3 is a schematic structural diagram of an intelligent terminal according to an embodiment of the present application.
In the figure, 21, an acquisition module; 22. a grouping module; 23. an address determination module; 24. a transmitting module; 301. a CPU; 302. a ROM; 303. a RAM; 304. a bus; 305. an I/O interface; 306. an input section; 307. an output section; 308. a storage section; 309. a communication section; 310. a driver; 311. removable media.
Detailed Description
The present application will be described in further detail with reference to the accompanying drawings.
The present embodiment is only for explanation of the present application and is not to be construed as limiting the present application, and modifications to the present embodiment, which may not creatively contribute to the present application as required by those skilled in the art after reading the present specification, are all protected by patent laws within the scope of claims of the present application.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In addition, the term "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In this context, unless otherwise specified, the term "/" generally indicates that the associated object is an "or" relationship.
Embodiments of the application are described in further detail below with reference to the drawings.
The embodiment of the application provides an electric meter upgrading method of the Internet of things, which is mainly applied to a platform area system. The platform area system comprises a plurality of Internet of things ammeter and at least one superior device. The electric meter of the Internet of things comprises a metering core, a management core and an expansion module. The metering core is responsible for the legal calculation function of the ammeter, namely collecting electricity consumption data such as voltage, current, instantaneous power, active power, reactive power and the like. The management core is responsible for functions such as ammeter display, communication, can also manage and control expansion module. The management core is provided with an uplink interface and a downlink interface, wherein the uplink interface is connected with the superior equipment, and the downlink interface is connected with various household equipment. The superordinate device may be a concentrator or collector.
Specifically, the upper-level device is used for executing the method for upgrading the electric meter of the Internet of things, and performs data interaction with the electric meter to be upgraded so as to complete the upgrading process of the electric meter of the physical network. In order to better implement the method, a chip capable of processing the upgrade file is configured in each expansion module of the Internet of things ammeter. Namely, the system has the function of adjusting the upgrade file to be suitable for upgrade files of various version information. Of course, a certain storage space is also needed in the internet of things ammeter to store the upgrade file.
The embodiment of the application provides a main flow description of an electric meter upgrading method of the Internet of things.
As shown in fig. 1:
step S101: and acquiring the ammeter version information and the first IP address of all the ammeter to be upgraded.
The electric meter to be upgraded is an electric meter which needs to be upgraded and meets the upgrading conditions. The ammeter version information is version information of an ammeter. The first IP address is an IP address of the electricity meter.
It can be appreciated that, when the electric meter version information of the electric meter to be upgraded is obtained, the electric meter to be upgraded needs to be determined from all electric meters. Specifically, the process of determining the electric meter to be upgraded is: first, current version information of an upgrade file and ammeter version information of all the ammeter are acquired. And then, determining the upgradeable electric meters according to the current version information and the electric meter version information of all the electric meters, and sending a start transmission command to the upgradeable electric meters so that the upgradeable electric meters confirm whether the upgrade conditions are met. And finally, determining the electric meter to be upgraded according to the received confirmation result.
In the above process, the current version information is the version information of the upgrade file, and the upgradeable electric meter is the electric meter to be upgraded, i.e. the version information of the electric meter is lower than the current version information. Since the upgrade result of each time of the electric meter may be successful or failed, the version information of all electric meters is inconsistent, that is, some electric meters need to be upgraded, and some electric meters do not need to be upgraded. It will be appreciated that the upgradeable meter is not fully upgradeable. Whether the electric meter can be upgraded or not also needs to see whether the software and hardware version of the electric meter is compatible with the upgrade file. Therefore, the superior device needs to send a start transmission command to the upgradeable electricity meter. The start transmission command includes version information of compatible software and hardware of the upgrade file.
Step S102: grouping the electric meters to be upgraded according to the electric meter version information to obtain a plurality of groups of electric meters with the same electric meter version information.
In all the electric meters to be upgraded, although the electric meter version information of the electric meters may exist differently, there are electric meters with the same electric meter version information. The same upgrade file can be used for the electric meters with the same electric meter version information. Therefore, it is necessary to determine the electric meters having the same electric meter version information so that the electric meters can simultaneously download the upgrade file and upgrade.
Step S103: and obtaining a plurality of groups of multicast addresses according to the first IP address of each electric meter to be upgraded in each group of electric meters.
Wherein, the multicast address is the information needed by the multicast route in the multicast transmission. In multicast transmission, a multicast source needs to configure a multicast route first, that is, a multicast address is set in the multicast route. And then, only the data or the file to be transmitted to the multicast member is transmitted to the multicast route, so that all the multicast members can receive the data or the file.
In the application, the group number of the multicast address is consistent with the version number of the ammeter version information, namely a group of ammeter corresponding to the multicast address is a plurality of ammeter version information of the same ammeter version information. The corresponding relation between the multi-group multicast address and the multi-group ammeter can be determined through the first IP address.
Step S104: and sending a group of multicast addresses, a second IP address of a second multicast route and target version information to the first multicast route, so that one ammeter to be upgraded in a group of ammeter corresponding to the group of multicast addresses sends a target upgrading file to the second multicast route.
The first multicast route is a multicast route of which the upper-level equipment needs to be configured with a multicast address. The second multicast route is a multicast route which needs to receive an upgrade file sent by the electric meter to be upgraded. Obviously, all second multicast routes are first multicast routes. The second IP address is the IP address of the multicast route. The target upgrade file is obtained by processing the upgrade file downloaded by the equipment according to the target version information by the ammeter to be upgraded. The target version information is a version in which the ammeter version information is higher than only ammeter version information corresponding to the multicast address of the first multicast route.
In a specific example, the above procedure is: when the superior device sends the multicast address, the second IP address of the second multicast route and the target version information to one multicast route for the first time, the initial upgrade file is also sent at the same time. The initial upgrade file is an upgrade file for upgrading the electric meter to be upgraded with the lowest electric meter version information to the current version. The group of electric meters corresponding to the transmitted multicast address should be the group of electric meters with the lowest electric meter version information, so that the group of electric meters can complete the upgrading process according to the upgrading file downloaded from the multicast route. Because the multicast addresses of the second multicast route are all configured by the superior device, the sent second IP address enables one of the group of electricity meters to directly send the target upgrade file to the corresponding multicast route. Similarly, the multicast address of the multicast route is configured by the superior device, and one ammeter in each group of ammeter can send the target upgrade file to the second multicast route according to the provided second IP address. Therefore, when the upper-level equipment distributes the upgrade file to the electric meter to be upgraded, only the initial upgrade file needs to be sent. It is understood that the upgrade files may be divided into two types, that is, an upgrade file capable of supporting an upgrade from an initial version to a current version, and an upgrade file capable of supporting an upgrade from one designated version to the current version. The latter is sent by the superior device. Before sending, the upper-level equipment needs to process the upgrade file according to the lowest ammeter version information so as to obtain an initial upgrade file. The method reduces the times of transmitting the upgrade file by the superior equipment, reduces the size of the upgrade file to be transmitted, and can reduce the occupancy rate and the occupied time of the communication channel to a certain extent, thereby achieving the effect of improving the upgrade efficiency of the electric meter of the Internet of things.
It should be noted that, since the processing of the upgrade file according to the target version information is irreversible, in order to ensure the feasibility of the above technical means, the order in which the superior device transmits the multicast addresses should refer to the electric meter version information, that is, in order of the electric meter version information from low to high.
It can be understood that, after the superior device sends the multicast address, the second IP address and the target version information to the first multicast route, all the electric meters of the group of electric meters can be downloaded from the first multicast route at the same time, and the upgrade process is completed according to the free time of the superior device. And then, after one ammeter in the group of ammeter finishes the upgrading process, the downloaded upgrading file is processed according to the target version information so as to obtain the target upgrading file. Obviously, in the process, one group of electric meters is upgraded firstly, and after the upgrade is completed, the other group of electric meters is upgraded. The occupation rate of the communication channel is reduced in the same time period, and the speed of downloading the upgrade file is ensured.
Further, each multicast route and each meter for sending the target upgrade file to the second multicast route is selected.
Specifically, the method for determining the second multicast route includes: and acquiring the first physical location of the electric meter to be upgraded corresponding to the multicast address of the second multicast route and the second physical location of all the multicast routes. And then determining a second multicast route according to all the first physical locations of the group of electric meters and all the second physical locations of the available multicast routes.
The first physical location is the location information of the electric meter to be upgraded, and the second physical location is the location information of the multicast route. And when all the first physical positioning of the group of electric meters is obtained, determining the target physical positioning according to the first physical positioning of all the electric meters. The target physical location is the location of the point location closest to the sum of the distances of each of the first physical locations. Algorithms for implementing the above functions are prior art means in the related art, and thus, they will not be described in detail herein.
After the target physical location is determined, determining the multicast route closest to the target physical location according to the second physical locations of all available multicast routes, and taking the multicast route as a second multicast route. It can be understood that, except that the initial upgrade file is sent to the multicast route by the superior device, the target upgrade file is sent to the multicast route by the electric meter, so that in the whole upgrade process, most of the time is interaction between the electric meter and the multicast route, and therefore, the closer the distance between the second multicast route and the electric meter corresponding to the multicast address thereof is, the less time the electric meter occupies a communication channel when downloading the upgrade file. Wherein the first determined second multicast route is in fact the first multicast route. It should be noted that, when configuring a multicast address for a multicast route, the principle that only one multicast address is used for a multicast route should be inherited. Of course, in some specific embodiments, only one multicast route may be set.
The method for determining the electric meter to be upgraded for sending the target upgrade file to the second multicast route comprises the following steps: firstly, a first physical location of an ammeter to be upgraded corresponding to a multicast address of a first multicast route is obtained, and then a target ammeter is determined according to all the first physical locations of the ammeter group and a second physical location of a second multicast route. And the target ammeter is the ammeter used for sending the target upgrade file to the second multicast route. Similarly, the electric meter to be upgraded closest to the second physical location of the second multicast route is still determined according to all the first physical locations of the electric meters in the group, and is used as the target electric meter. The distance between the second multicast route and the target ammeter is enabled to be closer, and therefore the time of the communication channel occupied by the target ammeter for sending the target upgrade file to the second multicast route is reduced.
In some specific embodiments, the upper device may also choose not to send the second IP address and the target version information of the second multicast route to the electric meter to be upgraded through the first multicast route, but to directly send the second IP address and the target version information of the second multicast route to the target electric meter.
The method for upgrading the electric meter of the Internet of things provided by the embodiment of the application enables the occupancy rate of each time period to the communication channel to be lower in the whole upgrading process of the electric meter of the Internet of things, so that the upgrading efficiency is higher.
Fig. 2 is a schematic diagram of an internet of things electric meter upgrading system according to an embodiment of the present application, which can execute the above method for upgrading an internet of things electric meter, and the above embodiment can be referred to, and repeated description thereof will not be repeated here.
The internet of things electric meter upgrading system as shown in fig. 2 comprises an acquisition module 21, a grouping module 22, an address determining module 23 and a sending module 24, wherein:
the obtaining module 21 is configured to obtain the version information and the first IP address of all the electric meters to be upgraded.
And the grouping module 22 is used for grouping the electric meters to be upgraded according to the electric meter version information to obtain a plurality of groups of electric meters with the same electric meter version information.
The address determining module 23 is configured to obtain a plurality of multicast addresses according to the first IP address of each electric meter to be upgraded in each electric meter group.
The sending module 24 is configured to send a group of multicast addresses, a second IP address of the second multicast route, and target version information to the first multicast route, so that an electric meter to be upgraded in a group of electric meters corresponding to the group of multicast addresses sends a target upgrade file to the second multicast route, where the target upgrade file is obtained by processing an upgrade file downloaded by the electric meter to be upgraded to the device itself according to the target version information, and a sending order of the multicast addresses is an order from low to high of the electric meter version information, and when the group of multicast addresses, the second IP address of the second multicast route, and the target version information are sent to the multicast route for the first time, an initial upgrade file is also sent, where the initial upgrade file is an upgrade file for upgrading the electric meter to be upgraded with the lowest electric meter version information to the current version.
Fig. 3 shows a schematic structural diagram of a smart terminal suitable for implementing an embodiment of the present application.
As shown in fig. 3, the smart terminal includes a Central Processing Unit (CPU) 301 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 302 or a program loaded from a storage section into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data required for the system operation are also stored. The CPU 301, ROM 302, and RAM 303 are connected to each other through a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
The following components are connected to the I/O interface 305: an input section 306 including a keyboard, a mouse, and the like; an output portion 307 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 308 including a hard disk or the like; and a communication section 309 including a network interface card such as a LAN card, a modem, or the like. The communication section 309 performs communication processing via a network such as the internet. The drive 310 is also connected to the I/O interface 305 as needed. A removable medium 311 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed on the drive 310 as needed, so that a computer program read out therefrom is installed into the storage section 308 as needed.
In particular, the process described above with reference to flowchart fig. 1 may be implemented as a computer software program according to an embodiment of the application. For example, embodiments of the application include a computer program product comprising a computer program embodied on a machine-readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 309, and/or installed from the removable medium 311. The above-described functions defined in the system of the present application are performed when the computer program is executed by a Central Processing Unit (CPU) 301.
The computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules involved in the embodiments of the present application may be implemented in software or in hardware. The described units or modules may also be provided in a processor, for example, as: a processor comprising: an acquisition module 21, a grouping module 22, an address determination module 23 and a transmission module 24. The names of these units or modules do not constitute a limitation of the unit or module itself in some cases, and for example, the acquisition module 21 may also be described as "a module for acquiring the electric meter version information and the first IP address of all electric meters to be upgraded".
As another aspect, the present application also provides a computer-readable storage medium, which may be included in the intelligent terminal described in the above embodiment; or may exist alone without being assembled into the smart terminal. The computer-readable storage medium stores one or more programs for executing the internet of things meter upgrade method described in the present application when the programs are used by one or more processors.
The above description is only illustrative of the preferred embodiments of the present application and of the principles of the technology employed. It will be appreciated by persons skilled in the art that the scope of the application is not limited to the specific combinations of the features described above, but also covers other embodiments which may be formed by any combination of the features described above or their equivalents without departing from the spirit of the application. Such as the above-mentioned features and the technical features having similar functions (but not limited to) applied for in the present application are replaced with each other.

Claims (10)

1. The method for upgrading the electric meter of the Internet of things is characterized by comprising the following steps of:
acquiring ammeter version information and a first IP address of all the ammeter to be upgraded;
grouping the electric meters to be upgraded according to the electric meter version information to obtain a plurality of groups of electric meters with the same electric meter version information;
Obtaining a plurality of groups of multicast addresses according to the first IP address of each electric meter to be upgraded in each group of electric meters;
Sending a group of multicast addresses, a second IP address of a second multicast route and target version information to a first multicast route, so that an electric meter to be upgraded in a group of electric meters corresponding to the group of multicast addresses sends a target upgrade file to the second multicast route, wherein the target upgrade file is obtained by processing an upgrade file downloaded by the electric meter to be upgraded to the equipment according to the target version information;
The sending sequence of the multicast addresses is the sequence from low to high of the ammeter version information, and when a group of multicast addresses, a second IP address of a second multicast route and target version information are sent to the multicast route for the first time, an initial upgrade file is also sent, wherein the initial upgrade file is an upgrade file for enabling the ammeter to be upgraded, with the lowest ammeter version information, to be upgraded to the current version.
2. The method for upgrading an internet of things electric meter according to claim 1, wherein the method for determining the second multicast route comprises:
Acquiring a first physical location of an ammeter to be upgraded corresponding to a multicast address of the second multicast route and a second physical location of all multicast routes;
And determining a second multicast route according to all the first physical locations of the group of electric meters and all the second physical locations of the available multicast routes.
3. The method of claim 2, wherein determining the second multicast route based on all of the first physical locations of the group of electric meters and all of the second physical locations of the available multicast routes comprises:
determining a target physical location according to all the first physical locations of the group of electric meters;
and determining the multicast route closest to the target physical location according to the second physical locations of all available multicast routes, and taking the multicast route as a second multicast route.
4. The method for upgrading an electric meter of the internet of things according to claim 3, wherein the first determined second multicast route is the first multicast route.
5. The method for upgrading an electric meter on the internet of things according to claim 3, wherein the method for determining the electric meter to be upgraded, which transmits the target upgrade file to the second multicast router, comprises:
Acquiring a first physical location of an ammeter to be upgraded corresponding to a multicast address of the first multicast route;
and determining a target ammeter according to all the first physical locations of the ammeter group and the second physical locations of the second multicast route, wherein the target ammeter is used for sending a target upgrade file to the second multicast route.
6. The method for upgrading an internet of things meter according to claim 5, wherein determining the target meter according to all of the first physical locations of the group of meters and the second physical locations of the second multicast route comprises:
and determining the electric meter to be upgraded closest to the second physical location of the second multicast route according to all the first physical locations of the electric meters in the group, and taking the electric meter to be upgraded as a target electric meter.
7. The method for upgrading an electric meter of the internet of things according to claim 1, wherein the method for determining the electric meter to be upgraded comprises:
Acquiring current version information of an upgrade file and ammeter version information of all the ammeter;
Determining an upgradeable electric meter according to the current version information and the electric meter version information of all the electric meters;
Transmitting a start transmission command to the upgradeable electric meter, wherein the start transmission command comprises version information of compatible software and hardware of an upgrade file, so that the upgradeable electric meter confirms whether upgrade conditions are met;
And determining the ammeter to be upgraded according to the received confirmation result.
8. An electric meter upgrading system of the Internet of things is characterized by comprising,
The acquisition module (21) is used for acquiring the ammeter version information and the first IP address of all the ammeter to be upgraded;
The grouping module (22) is used for grouping the electric meters to be upgraded according to the electric meter version information to obtain a plurality of groups of electric meters with the same electric meter version information;
The address determining module (23) is used for obtaining a plurality of groups of multicast addresses according to the first IP address of each electric meter to be upgraded in each group of electric meters; and
And the sending module (24) is used for sending a group of multicast addresses, a second IP address of the second multicast route and target version information to the first multicast route, so that one electric meter to be upgraded in the group of electric meters corresponding to the group of multicast addresses sends a target upgrade file to the second multicast route, the target upgrade file is obtained by processing upgrade files downloaded by the electric meters to be upgraded to the equipment according to the target version information, the sending sequence of the multicast addresses is the sequence from low to high of the electric meter version information, and an initial upgrade file is also sent when the group of multicast addresses, the second IP address of the second multicast route and the target version information are sent to the multicast route for the first time, and the initial upgrade file is an upgrade file for enabling the electric meter to be upgraded with the lowest electric meter version information to be upgraded to the current version.
9. An intelligent terminal, characterized by comprising a memory and a processor, wherein the memory stores a computer program capable of being loaded and executed by the processor, and when the computer program is executed, the method for upgrading an electric meter in the internet of things according to any one of claims 1 to 7 is executed.
10. A computer readable storage medium, characterized in that a computer program loadable and executable by a processor is stored, which computer program, when executed, performs a method of upgrading an internet of things electric meter according to any of claims 1 to 7.
CN202410472715.0A 2024-04-19 2024-04-19 Internet of things ammeter upgrading method, system, terminal and storage medium Active CN118075256B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410472715.0A CN118075256B (en) 2024-04-19 2024-04-19 Internet of things ammeter upgrading method, system, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410472715.0A CN118075256B (en) 2024-04-19 2024-04-19 Internet of things ammeter upgrading method, system, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN118075256A CN118075256A (en) 2024-05-24
CN118075256B true CN118075256B (en) 2024-06-25

Family

ID=91111548

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410472715.0A Active CN118075256B (en) 2024-04-19 2024-04-19 Internet of things ammeter upgrading method, system, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN118075256B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105763350A (en) * 2014-12-16 2016-07-13 中兴通讯股份有限公司 Method of using multicast mode to upgrade version and apparatus thereof
CN107104836A (en) * 2017-05-04 2017-08-29 深圳市欧瑞博电子有限公司 The firmware upgrade method and device of Zigbee equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10419291B2 (en) * 2014-07-23 2019-09-17 Huawei Technologies Co., Ltd. Terminal upgrade method and related device with multicast program
CN115052252B (en) * 2022-08-10 2022-11-04 广州世炬网络科技有限公司 OTA (over the air) upgrading method, system and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105763350A (en) * 2014-12-16 2016-07-13 中兴通讯股份有限公司 Method of using multicast mode to upgrade version and apparatus thereof
CN107104836A (en) * 2017-05-04 2017-08-29 深圳市欧瑞博电子有限公司 The firmware upgrade method and device of Zigbee equipment

Also Published As

Publication number Publication date
CN118075256A (en) 2024-05-24

Similar Documents

Publication Publication Date Title
CN108632101B (en) Method and apparatus for updating configuration object, edge computing device, and medium
CN108011935B (en) Program upgrading method of NB-IOT (network node B-IOT) equipment, server and NB-IOT equipment
CN109905431B (en) Message processing method and system, storage medium and electronic equipment
CN111756852B (en) Intelligent method, device and system based on cellular communication of Internet of things equipment
CN113034059B (en) Abnormal power information positioning method and device, electronic equipment and computer medium
CN114924751A (en) Method and device for distributing service access request flow
CN109873731B (en) Test method, device and system
CN118075256B (en) Internet of things ammeter upgrading method, system, terminal and storage medium
CN109413212B (en) Method and apparatus for processing requests
CN115756544A (en) Equipment updating method and device, electronic equipment and storage medium
CN115167874A (en) Automatic driving software mirror image deployment method and device, electronic equipment and readable medium
CN111343220A (en) Transponder, distributed file transmission method, system, medium and electronic equipment
CN111694670B (en) Resource allocation method, apparatus, device and computer readable medium
CN109656709A (en) A kind of method and apparatus of Codis cluster dilatation
CN109787888B (en) System and method for supporting multi-device message distribution and storage medium
CN112241357A (en) Method, device, equipment and computer readable medium for gray scale test
CN111796878A (en) Resource splitting and loading method and device applied to single-page application
CN109871226A (en) Configuration method, device, medium and the electronic equipment of downloader
CN117812550A (en) Policy control method, system, electronic device and storage medium
CN112398885B (en) Data transmission method and device
CN118158082B (en) Method, device, equipment and medium for updating communication resource message of intelligent household equipment
CN113742300B (en) Log management method, device, server side and system
CN117707553A (en) Software installation method and software installation device
CN118227158A (en) Upgrading method and related device
CN112339581A (en) Charging calibration method and device for transport vehicle

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant