CN113140075A - Smart meter upgrading method and device and smart meter - Google Patents
Smart meter upgrading method and device and smart meter Download PDFInfo
- Publication number
- CN113140075A CN113140075A CN202110450955.7A CN202110450955A CN113140075A CN 113140075 A CN113140075 A CN 113140075A CN 202110450955 A CN202110450955 A CN 202110450955A CN 113140075 A CN113140075 A CN 113140075A
- Authority
- CN
- China
- Prior art keywords
- recharging
- mode
- token
- target
- intelligent meter
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 230000005611 electricity Effects 0.000 claims description 18
- 238000012795 verification Methods 0.000 claims description 15
- 230000010354 integration Effects 0.000 claims 1
- 230000015654 memory Effects 0.000 description 14
- 238000010586 diagram Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 239000000463 material Substances 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F15/00—Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity
- G07F15/06—Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity with means for prepaying basic charges, e.g. rent for meters
-
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/321—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving a third party or a trusted authority
- H04L9/3213—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving a third party or a trusted authority using tickets or tokens, e.g. Kerberos
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Beverage Vending Machines With Cups, And Gas Or Electricity Vending Machines (AREA)
Abstract
The invention provides an intelligent meter upgrading method and device and an intelligent meter, wherein the method comprises the following steps: when the recharging token is obtained, the control decryption module decrypts the recharging token to obtain target recharging mode information to be switched, which is contained in the recharging token; when the original recharging mode of the intelligent meter is different from the target recharging mode to be switched, controlling the intelligent meter to be switched to the target recharging mode; and converting the remaining recharging information of the intelligent meter in the original recharging mode into first recharging information in the target recharging mode and displaying the first recharging information. The original recharging mode of the intelligent meter is intelligently changed according to the target recharging mode to be switched contained in the recharging token, the upgrading operation of the prepaid intelligent meter is realized, the upgrading convenience of the intelligent meter is improved, the residual recharging information in the original mode in the whole upgrading process of the prepaid intelligent meter is automatically converted into the corresponding recharging information in the original recharging mode and displayed, and the risk that the data is falsified due to the fact that the intelligent meter is manually upgraded is avoided.
Description
Technical Field
The invention relates to the field of self-adaptive electric meters, in particular to an intelligent meter upgrading method and device and an intelligent meter.
Background
The prepayment intelligent meter is a novel electric meter which prestores electric charge and then uses the electric power. The prepayment intelligent meter is widely popularized and used with the advantages that the prepayment intelligent meter does not need electrician to read the meter and works, and does not need to go to the door to collect and pay the electric charge.
With the upgrading of the power utilization system and the higher requirement of users on convenience, the recharging mode of the existing prepaid smart meter running on the internet may not meet the requirements of the current society, for example, the recharging mode needs to be switched from the charging mode to the money charging mode or the recharging mode needs to be switched from the money charging mode to the charging mode. For the prepayment intelligent meter which is operated in a hung network, the prepayment intelligent meter needs to be returned to a factory for upgrading in the recharging mode switching process, and in the returning to the factory, a user needs to register the residual electric quantity data in a power station, so that the operation increases the risk of the data of the intelligent meter being changed in a sealed mode, the labor cost is increased, and great troubles are brought to the user and the power station.
Disclosure of Invention
Therefore, the technical problem to be solved by the invention is to overcome the defects of poor convenience and high upgrading cost of the existing prepayment intelligent meter upgrading mode, so that the intelligent meter upgrading method and device and the intelligent meter are provided.
According to a first aspect, an embodiment of the present invention discloses a method for upgrading a prepaid smart meter, where a decryption module is pre-integrated in the smart meter, and the method includes: when a recharge token is obtained, controlling the decryption module to decrypt the recharge token to obtain target recharge mode information to be switched, wherein the target recharge mode information is contained in the recharge token; comparing the original recharging mode of the intelligent meter with the target recharging mode to be switched; when the original recharging mode of the intelligent meter is different from the target recharging mode to be switched, controlling the intelligent meter to be switched to the target recharging mode; and converting the residual recharging data of the intelligent meter in the original recharging mode into target type data in the target recharging mode according to the electricity price and storing the target type data.
Optionally, the recharge token further includes target type data corresponding to the target recharge mode, and the method further includes: and accumulating the target type data obtained after decrypting the recharging token and the target type data obtained after converting, storing and displaying the accumulated target type data.
Optionally, before the obtaining the top-up token and controlling the decryption module to decrypt the top-up token, the method further includes: responding to the input operation of a user on a recharge token to obtain the recharge token; or responding to the identification operation of the received voice information to obtain the recharge token; or controlling a two-dimensional code scanner to respond to the identification operation of the received two-dimensional code to obtain the recharge token; or receiving the recharging token issued by the remote terminal or the concentrator through the network.
Optionally, the decryption module performs decryption operation according to the following steps, including: converting the target byte number of the recharging token; identifying the field type contained in the converted recharging token; decrypting information contained in each field type contained in the recharging token according to a preset decryption algorithm; verifying and legality verifying the decryption result; and extracting the data domain of the recharging token meeting the verification and validity verification conditions to obtain the information contained in the recharging token.
Optionally, the method further includes: and when the recharging token is decrypted wrongly, displaying corresponding prompt information according to the error type.
Optionally, the method further includes: and storing the switching record, the recharging event and the recharging information, and sending the stored information to the power bureau.
Optionally, the original recharging mode of the smart meter and the target recharging mode to be switched include a charging mode or a money recharging mode; when the original recharging mode of the intelligent meter is different from the target recharging mode to be switched, the method for controlling the intelligent meter to be switched to the target recharging mode comprises the following steps: when the intelligent meter is switched from the charging mode to the money charging mode, controlling the intelligent meter to respond to data initialization operation, and enabling the originally stored current electric quantity, the accumulated charging electric quantity and the residual electric quantity of the intelligent meter to be reset; controlling the intelligent meter to respond to the initialization operation of the alarm threshold parameter so that the alarm threshold type is switched from the electric quantity value to the sum value; and controlling the intelligent meter to respond to the charging operation in the money charging mode.
According to a second aspect, an embodiment of the present invention further discloses an apparatus for upgrading an intelligent meter, where a decryption module is pre-integrated in the intelligent meter, and the apparatus includes: the acquisition module is used for controlling the decryption module to decrypt the recharging token when the recharging token is acquired so as to acquire target recharging mode information to be switched, which is contained in the recharging token; the comparison module is used for comparing the original recharging mode of the intelligent meter with the target recharging mode to be switched; the control module is used for controlling the intelligent meter to be switched to the target recharging mode when the original recharging mode of the intelligent meter is different from the target recharging mode to be switched; and the execution module converts the residual recharging data of the intelligent meter in the original recharging mode into target type data in the target recharging mode according to the electricity price and stores the target type data.
According to a third aspect, an embodiment of the present invention further discloses a smart meter, including: the display module is used for displaying the recharging data; the decryption module is used for decrypting the recharging token; a processor, connected to the display module, for executing the steps of the smart meter upgrading method according to the first aspect or any optional implementation manner of the first aspect.
The technical scheme of the invention has the following advantages:
according to the method/device for upgrading the smart meter, when the recharge token is obtained, the decryption module is controlled to decrypt the recharge token, and target recharge mode information to be switched contained in the recharge token is obtained; comparing the original recharging mode of the intelligent meter with the target recharging mode to be switched; when the original recharging mode of the intelligent meter is different from the target recharging mode to be switched, controlling the intelligent meter to be switched to the target recharging mode; and converting the residual recharging data of the intelligent meter in the original recharging mode into target type data in the target recharging mode according to the electricity price and storing the target type data. The original recharging mode of the intelligent meter is intelligently changed according to the target recharging mode to be switched contained in the obtained recharging token, the upgrading operation of the prepaid intelligent meter is realized, the convenience of upgrading the prepaid intelligent meter is improved, the trouble that the existing intelligent meter upgrading mode needs to be returned to a factory for upgrading is avoided, the residual recharging data in the original recharging mode in the whole prepaid intelligent meter upgrading process is automatically converted into the corresponding recharging information in the target recharging mode according to the electricity price, the risk of data tampering caused by the fact that the original residual recharging information needs to be registered in an electric power bureau in the existing intelligent meter upgrading process is avoided, and a large amount of manpower and material resources are saved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flowchart illustrating an embodiment of a method for upgrading a smart meter according to the present invention;
FIG. 2 is a flowchart of smart meter refill token decryption in an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating the decryption of a smart meter recharge token in an embodiment of the present invention;
FIG. 4 is a specific schematic block diagram of an apparatus for upgrading a smart meter according to an embodiment of the present invention;
fig. 5 is a diagram of a specific example of an electronic device in an embodiment of the invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; the two elements may be directly connected or indirectly connected through an intermediate medium, or may be communicated with each other inside the two elements, or may be wirelessly connected or wired connected. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
The embodiment of the invention discloses an intelligent meter upgrading method, wherein a decryption module is pre-integrated in an intelligent meter, and as shown in figure 1, the method comprises the following steps:
Illustratively, the top-up TOKEN is also called TOKEN, and in the STS protocol, refers to a series of encoded ciphertext digits, where the ciphertext digits may represent various types of information related to the electricity meter, such as a top-up type, an electricity purchasing time, a meter number, an electricity purchasing amount, and the like of a user. The information to be integrated in the recharging token is encoded and encrypted to generate the recharging token, and the target recharging mode information to be switched of the intelligent meter is stored in the recharging token in an encrypted mode in the embodiment of the invention. The recharging mode of the intelligent meter in the embodiment of the invention can be a charging mode or a charging mode, the charging mode represents that the recharging mode of the intelligent meter is charged according to the electric quantity and the displayed numerical value is a residual electric quantity value, and the charging mode represents that the recharging mode of the intelligent meter is operated to display the residual electric charge and implement step electric charge and rate electric charge according to the electric quantity. The decryption mode of the obtained recharge token can be decryption processing by a preset decryption algorithm through a decryption module (such as a key box) integrated in the smart meter, wherein the decryption algorithm can comprise an STA decryption algorithm or a DEA decryption algorithm.
102, comparing an original recharging mode of the intelligent meter with a target recharging mode to be switched, and controlling the intelligent meter to be switched to the target recharging mode when the original recharging mode of the intelligent meter is different from the target recharging mode to be switched; and when the original recharging mode of the intelligent meter is the same as the target recharging mode to be switched, the intelligent meter is not switched.
Illustratively, if the original charging mode of the smart meter is the charging mode and the target charging mode is the money charging mode, the smart meter is controlled to be switched to the money charging mode. When the intelligent meter recharging mode is converted, a plurality of recharging systems are integrated in the intelligent meter in advance, and when the recharging mode is switched, the corresponding recharging system is triggered to operate or activated only according to the target recharging mode information in the decrypted recharging token.
Exemplarily, if the original recharging mode is the charging mode, the remaining recharging data may be the remaining electric quantity of how many degrees remain, the remaining electric quantity data is converted into the remaining electric charge information in the recharging mode according to the electricity price and stored, and meanwhile, the recharging information is checked in time for a user, and the converted information is displayed; and if the original recharging mode is the money recharging mode, the residual recharging data is the electricity fee of the residual money, and the residual electricity fee data is converted into the residual electric quantity in the charging mode according to the electricity fee and is stored and displayed.
The method/device for upgrading the smart meter, provided by the embodiment of the invention, has the advantages that when the recharge token is obtained, the recharge token is decrypted to obtain the target recharge mode information to be switched, which is contained in the recharge token, the original recharge mode of the smart meter is compared with the target recharge mode to be switched, when the original recharge mode of the smart meter is different from the target recharge mode to be switched, the smart meter is controlled to be switched to the target recharge mode, and the residual recharge data of the smart meter in the original recharge mode are converted into the target type data in the target recharge mode according to the electricity price and stored; the original recharging mode of the intelligent meter is intelligently changed according to the target recharging mode to be switched contained in the obtained recharging token, the upgrading operation of the prepaid intelligent meter is realized, the convenience of upgrading the prepaid intelligent meter is improved, the trouble that the existing intelligent meter upgrading mode needs to be returned to a factory for upgrading is avoided, the residual recharging information in the original mode in the whole prepaid intelligent meter upgrading process is automatically converted into the recharging information corresponding to the original recharging mode, the risk that the original residual recharging information needs to be registered in a power bureau in the existing intelligent meter upgrading process to cause data tampering is avoided, and a large amount of manpower and material resources are saved.
As an optional implementation manner of the present invention, the recharge token further includes second recharge information corresponding to the target recharge mode; the method further comprises the following steps: and accumulating the second recharging information obtained after decrypting the recharging token and the first recharging information, and storing and displaying the accumulated recharging information.
Illustratively, taking the target recharging mode as the recharging mode, the recharging token may integrate recharging amount information in advance, and represent that the user purchases electric quantity with a certain amount from the power bureau when the recharging token is generated, and after the amount corresponding to the recharging mode is obtained after decryption, the precharging cost and the electric charge obtained by converting the residual electric quantity are accumulated to obtain the total amount of the current electric charge, and the total amount of the current electric charge is stored and displayed, so that the user can check the residual electric charge information in time.
As an optional embodiment of the present invention, before step 101, the method further comprises: responding to the input operation of a user on a recharge token to obtain the recharge token; or responding to the identification operation of the received voice information to obtain the recharge token; or controlling a two-dimensional code scanner to respond to the identification operation of the received two-dimensional code to obtain the recharge token; or receiving the recharging token issued by the remote terminal or the concentrator through the network.
For example, when a user sends a smart meter upgrade request to the power bureau, the power bureau terminal automatically generates a corresponding recharge token through a key corresponding to each meter by using a new recharge system, and transmits recharge token information to the user. After the recharging token is taken, inputting the recharging token through information input equipment such as a keyboard and the like integrated on the intelligent meter, and when the intelligent meter detects an input operation, responding to the input operation to obtain input recharging token information; or the recharging token information can be obtained by responding the received voice information to the recognition operation through the voice recognition equipment integrated on the intelligent meter; or the two-dimensional code scanner integrated in advance on the intelligent meter is used for scanning and identifying the two-dimensional code representing the recharging token information; or the recharging token is sent by the remote terminal or the concentrator through the communication between the network and the remote terminal or the concentrator where the power bureau is located. The embodiment of the invention does not limit the obtaining mode of the recharging token, and the technical personnel in the field can determine the recharging token according to the actual requirement.
As an optional embodiment of the present invention, the decryption module in the smart meter performs decryption operation according to the following steps, including: converting the target byte number of the recharging token; identifying the field type contained in the converted recharging token; decrypting information contained in each field type contained in the recharging token according to a preset decryption algorithm; verifying and legality verifying the decryption result; and extracting the data domain of the recharging token meeting the verification and validity verification conditions to obtain the information contained in the recharging token.
For example, as shown in fig. 2, the decryption module may perform an initialization operation before performing a decryption operation; then converting the 20-bit BCD code into a 66-bit binary number, namely converting the obtained 20-bit recharge token into a 66-bit target byte number; identifying the field type contained in the converted recharging token to finish the operation of extracting the type bit; then, decrypting the information contained in each field type contained in the recharging token according to a preset decryption algorithm, and carrying out token verification and validity verification judgment operation on a decryption result; extracting the data domain of the recharging token meeting the verification and legality verification conditions to obtain information (such as target recharging mode information to be switched) contained in the recharging token, and storing the token; and canceling the operation of the recharge token which does not meet the verification and validity verification operations and outputting error information.
As shown in fig. 3, the field type included in the converted recharge token is identified, and the field type included in the recharge token includes information such as a class number, a sub-class number, a random number, a TID, a transmission value, and CRC check; the "class number" corresponds to the current token type function; "subclass number" corresponds to the instruction of what the current token behaves, including: electric power recharging, water fee recharging, currency recharging, current collector testing, electric meter state displaying, credit clearing and other information; the random number is randomly generated by the lowest 4 bits of a counter of millisecond level, the random number is added into the transmitted data to enhance the security of the data, and the TOKEN which contains two identical data is prevented from having the same binary form with the probability of 16: 1; the TID data field is derived from the release date and time and indicates the number of minutes of elapsed time starting at the reference date and time. The baseline reference date and time was 1 month 1 day 1993 at 0.0 min 0 sec; the transmission value is the magnitude of the charged electric quantity or the sum value; the CRC check field is used for verifying the correctness of the transmitted data; in the embodiment of the present invention, the type of each type of bit parameter and the type of information represented by the type of parameter are not limited, and those skilled in the art can determine the type of bit parameter and the type of information according to actual needs.
As an optional embodiment of the present invention, when the recharge token is decrypted incorrectly, the corresponding prompt information is displayed according to the type of the error occurred.
Illustratively, "reject" may be displayed in the event of a token parsing error; "old" may be displayed when the token expires; "used" is displayed when the token has been used; in the case where the token key expires, "expire" may be displayed. The error type and the type of the corresponding prompt message are not limited in the embodiment of the invention, and can be determined by a person skilled in the art according to actual needs. By displaying the corresponding prompt information on the error type of the decryption result, a user can conveniently know the decryption error condition in time to process the decryption error condition in a targeted manner, and the upgrading process of the intelligent meter is prevented from being influenced.
As an optional embodiment of the present invention, the method further comprises: and storing the switching event and the recharging information, and sending the stored information to the power bureau.
Illustratively, the switching event may include, but is not limited to, a corresponding mode name, a mode switching time, etc. during the switching process; the recharge information may include, but is not limited to, user recharge time, recharge amount, etc.; the embodiment of the invention does not limit the data types contained in the switching event and the recharging information, and the technical personnel in the field can determine the data types according to the actual needs. The switching event and the recharging information are stored in the local EEPROM of the electric meter and are sent to the power bureau, so that subsequent operations such as data analysis or query can be conveniently carried out.
As an optional embodiment of the present invention, the original charge mode of the smart meter and the target charge mode to be switched include a charge mode or a money charge mode; when the original recharging mode of the intelligent meter is different from the target recharging mode to be switched, the method for controlling the intelligent meter to be switched to the target recharging mode comprises the following steps:
when the intelligent meter is switched from the charging mode to the money charging mode, controlling the intelligent meter to respond to data initialization operation, and enabling the originally stored current electric quantity, the accumulated charging electric quantity and the residual electric quantity of the intelligent meter to be reset; controlling the intelligent meter to respond to the initialization operation of the alarm threshold parameter so that the alarm threshold type is switched from the electric quantity value to the sum value; and controlling the intelligent meter to respond to the charging operation in the money charging mode, so as to realize the online upgrade of the electric meter with the charged amount to the prepayment electric meter with the stepped electricity price.
The embodiment of the invention also discloses a prepaid intelligent meter upgrading device, wherein a decryption module is pre-integrated in the intelligent meter, and as shown in fig. 4, the device comprises:
the first obtaining module 401 is configured to control the decryption module to decrypt the recharge token when the recharge token is obtained, so as to obtain target recharge mode information to be switched, which is included in the recharge token;
a comparison module 402, configured to compare the original recharging mode of the smart meter with the target recharging mode to be switched;
the control module 403 is configured to control the smart meter to switch to a target recharging mode when an original recharging mode of the smart meter is different from the target recharging mode to be switched;
a first executing module 404, configured to convert the remaining recharging data of the smart meter in the original recharging mode into target type data in the target recharging mode according to the electricity price, and store the target type data.
According to the intelligent meter upgrading device provided by the embodiment of the invention, the original recharging mode of the intelligent meter is intelligently changed according to the target recharging mode to be switched contained in the obtained recharging token, the upgrading operation of the prepaid intelligent meter is realized, the convenience of the prepaid intelligent meter upgrading is improved, the trouble that the existing intelligent meter upgrading mode needs to be returned to a factory for upgrading is avoided, the residual recharging information in the original mode in the whole prepaid intelligent meter upgrading process is automatically converted into the recharging information corresponding to the original recharging mode, the risk of data tampering caused by the fact that the original residual recharging information needs to be registered in an electric power bureau in the existing intelligent meter upgrading process is avoided, and a large amount of manpower and material resources are saved.
As an optional implementation manner of the present invention, the recharge token further includes second recharge information corresponding to the target recharge mode; the device further comprises: and the second execution module is used for accumulating the second recharging information obtained by decrypting the recharging token and the first recharging information and displaying the accumulated recharging information.
As an optional embodiment of the present invention, the apparatus further comprises: the second acquisition module is used for responding to the input operation of the user on the recharging token to obtain the recharging token; or the third acquisition module is used for responding to the identification operation of the received voice information to obtain the recharge token; or the fourth obtaining module is used for controlling the two-dimensional code scanner to respond to the identification operation of the received two-dimensional code to obtain the recharging token; or the fifth acquisition module is used for receiving the recharging token issued by the remote terminal or the concentrator through the network.
As an optional embodiment of the present invention, the decryption module includes: the conversion unit is used for converting the target byte number of the recharging token; the identification unit is used for identifying the field type contained in the converted recharging token; the decryption unit is used for decrypting the information contained in each field type contained in the recharging token according to a preset decryption algorithm; the verification unit is used for verifying and legally verifying the decryption result; and the extraction unit is used for extracting the data domain of the recharging token meeting the verification and validity verification conditions to obtain the information contained in the recharging token.
As an optional embodiment of the present invention, the apparatus further comprises: and the display module is used for displaying corresponding prompt information according to the type of the error when the recharging token is wrongly decrypted.
As an optional embodiment of the present invention, the apparatus further comprises: and the storage module is used for storing the switching event and the recharging information and sending the stored information to the power bureau.
As an optional embodiment of the present invention, the original charge mode of the smart meter and the target charge mode to be switched include a charge mode or a money charge mode; the control module 403 includes:
the first control submodule is used for controlling the intelligent meter to respond to data initialization operation when the intelligent meter is switched from a charging mode to a money charging mode, so that the originally stored current electric quantity, the accumulated charging electric quantity and the residual electric quantity of the intelligent meter are cleared; the second control submodule is used for controlling the intelligent meter to respond to the initialization operation of the alarm threshold parameter so that the alarm threshold type is switched from an electric quantity value to a money value; and the third control sub-module is used for controlling the intelligent meter to respond to the charging operation in the money charging mode.
An embodiment of the present invention further provides an intelligent meter, including:
the display module is used for displaying the recharging information;
the decryption module is used for decrypting the recharging token;
and the processor is connected with the display module and is used for executing the steps of the intelligent meter upgrading method.
The smart meter may further include an input module for receiving an input operation of external information, a storage module, a communication module, a metering module, an alarm module for responding to an operation such as an overrun alarm, a power stealing alarm, or an overpower alarm when an amount of electricity (or money) is less than a set value, a recording module, a security module, and the like, and may further include a mode comparison module, a mode switching module, and the like, in addition to the decryption module. The embodiment of the present application does not limit the types of modules included in the prepaid smart meter with adaptive function.
An embodiment of the present invention further provides an electronic device, as shown in fig. 5, the electronic device may include a processor 501 and a memory 502, where the processor 501 and the memory 502 may be connected by a bus or in another manner, and fig. 5 takes the connection by the bus as an example.
The memory 502, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the smart meter upgrade method in embodiments of the present invention. The processor 501 executes various functional applications and data processing of the processor by running non-transitory software programs, instructions and modules stored in the memory 502, that is, the smart meter upgrading method in the above method embodiment is implemented.
The memory 502 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor 501, and the like. Further, the memory 502 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 502 optionally includes memory located remotely from processor 501, which may be connected to processor 501 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 502 and, when executed by the processor 501, perform the smart meter upgrade method in the embodiment shown in fig. 1.
The details of the electronic device may be understood with reference to the corresponding related description and effects in the embodiment shown in fig. 1, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD) or a Solid State Drive (SSD), etc.; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.
Claims (9)
1. A smart meter upgrading method, wherein a decryption module is pre-integrated in the smart meter, the method is characterized by comprising the following steps:
when a recharge token is obtained, controlling the decryption module to decrypt the recharge token to obtain target recharge mode information to be switched, wherein the target recharge mode information is contained in the recharge token;
comparing the original recharging mode of the intelligent meter with the target recharging mode to be switched;
when the original recharging mode of the intelligent meter is different from the target recharging mode to be switched, controlling the intelligent meter to be switched to the target recharging mode;
and converting the residual recharging data of the intelligent meter in the original recharging mode into target type data in the target recharging mode according to the electricity price and storing the target type data.
2. The method of claim 1, wherein the top-up token further comprises target type data corresponding to the target top-up pattern, the method further comprising:
and accumulating the target type data obtained after decrypting the recharging token and the target type data obtained after converting, storing and displaying the accumulated target type data.
3. The method of claim 1, wherein before the obtaining the top-up token and controlling the decryption module to decrypt the top-up token, the method further comprises:
responding to the input operation of a user on a recharge token to obtain the recharge token; or
Responding to the recognition operation of the received voice information to obtain the recharge token; or
Controlling a two-dimensional code scanner to respond to the identification operation of the received two-dimensional code to obtain the recharge token; or
And receiving the recharging token issued by the remote terminal or the concentrator through the network.
4. The method of claim 1, wherein the decryption module performs the decryption operation according to the following steps comprising:
converting the target byte number of the recharging token;
identifying the field type contained in the converted recharging token;
decrypting information contained in each field type contained in the recharging token according to a preset decryption algorithm;
verifying and legality verifying the decryption result;
and extracting the data domain of the recharging token meeting the verification and validity verification conditions to obtain the information contained in the recharging token.
5. The method of claim 4, further comprising:
and when the recharging token is decrypted wrongly, displaying corresponding prompt information according to the error type.
6. The method according to any one of claims 1-5, further comprising:
and storing the switching event and the recharging data, and sending the stored information to the power bureau.
7. The method of claim 5, wherein the original charge mode of the smart meter and the target charge mode to be switched comprise a charge mode or a money charge mode; when the original recharging mode of the intelligent meter is different from the target recharging mode to be switched, the method for controlling the intelligent meter to be switched to the target recharging mode comprises the following steps:
when the intelligent meter is switched from the charging mode to the money charging mode, controlling the intelligent meter to respond to data initialization operation, and enabling the originally stored current electric quantity, the accumulated charging electric quantity and the residual electric quantity of the intelligent meter to be reset;
controlling the intelligent meter to respond to the initialization operation of the alarm threshold parameter so that the alarm threshold type is switched from the electric quantity value to the sum value;
and controlling the intelligent meter to respond to the charging operation in the money charging mode.
8. The utility model provides a smart meter upgrading device, the pre-integration has decryption module in the smart meter, its characterized in that includes:
the acquisition module is used for controlling the decryption module to decrypt the recharging token when the recharging token is acquired so as to acquire target recharging mode information to be switched, which is contained in the recharging token;
the comparison module is used for comparing the original recharging mode of the intelligent meter with the target recharging mode to be switched;
the control module is used for controlling the intelligent meter to be switched to the target recharging mode when the original recharging mode of the intelligent meter is different from the target recharging mode to be switched;
and the execution module converts the residual recharging data of the intelligent meter in the original recharging mode into target type data in the target recharging mode according to the electricity price and stores the target type data.
9. A smart watch, comprising:
the display module is used for displaying the recharging data;
the decryption module is used for decrypting the recharging token;
a processor, coupled to the display module, for performing the steps of the smart meter upgrade method as claimed in any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110450955.7A CN113140075B (en) | 2021-04-25 | 2021-04-25 | Smart meter upgrading method and device and smart meter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110450955.7A CN113140075B (en) | 2021-04-25 | 2021-04-25 | Smart meter upgrading method and device and smart meter |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113140075A true CN113140075A (en) | 2021-07-20 |
CN113140075B CN113140075B (en) | 2023-02-14 |
Family
ID=76812018
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110450955.7A Active CN113140075B (en) | 2021-04-25 | 2021-04-25 | Smart meter upgrading method and device and smart meter |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113140075B (en) |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013040846A1 (en) * | 2011-09-21 | 2013-03-28 | 华立仪表集团股份有限公司 | Automatic metering logout method for pre-paid electricity vending system |
CN105243746A (en) * | 2015-10-21 | 2016-01-13 | 宁波三星医疗电气股份有限公司 | Switching method for charge control modes of single-phase intelligent electric energy meter |
CN105869290A (en) * | 2015-01-23 | 2016-08-17 | 中兴通讯股份有限公司 | Water and electricity fee paying method and device |
WO2016201809A1 (en) * | 2015-06-17 | 2016-12-22 | 中兴通讯股份有限公司 | Sts-based prepaid electricity selling system and method |
CN106683281A (en) * | 2016-12-28 | 2017-05-17 | 宁波三星医疗电气股份有限公司 | Intelligent electric meter switchable in function and usage method thereof |
CN107425979A (en) * | 2017-05-04 | 2017-12-01 | 杭州海兴电力科技股份有限公司 | Payment system and information transferring method based on STS |
CN107831363A (en) * | 2017-12-05 | 2018-03-23 | 广西电网有限责任公司电力科学研究院 | A kind of acquisition system and acquisition methods for taking control card table interaction data and sequential |
CN107909728A (en) * | 2017-11-29 | 2018-04-13 | 成都市安迅和普科技有限公司 | A kind of date storage method of water meter card |
CN110045166A (en) * | 2019-04-10 | 2019-07-23 | 珠海优特电力科技股份有限公司 | Ammeter, the control method of ammeter and readable storage medium storing program for executing |
WO2020008926A1 (en) * | 2018-07-02 | 2020-01-09 | 株式会社東芝 | Portable electronic device and ic card |
CN110827016A (en) * | 2019-10-12 | 2020-02-21 | 杭州海兴电力科技股份有限公司 | Token recharging error solution method and system for STS |
-
2021
- 2021-04-25 CN CN202110450955.7A patent/CN113140075B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013040846A1 (en) * | 2011-09-21 | 2013-03-28 | 华立仪表集团股份有限公司 | Automatic metering logout method for pre-paid electricity vending system |
CN105869290A (en) * | 2015-01-23 | 2016-08-17 | 中兴通讯股份有限公司 | Water and electricity fee paying method and device |
WO2016201809A1 (en) * | 2015-06-17 | 2016-12-22 | 中兴通讯股份有限公司 | Sts-based prepaid electricity selling system and method |
CN105243746A (en) * | 2015-10-21 | 2016-01-13 | 宁波三星医疗电气股份有限公司 | Switching method for charge control modes of single-phase intelligent electric energy meter |
CN106683281A (en) * | 2016-12-28 | 2017-05-17 | 宁波三星医疗电气股份有限公司 | Intelligent electric meter switchable in function and usage method thereof |
CN107425979A (en) * | 2017-05-04 | 2017-12-01 | 杭州海兴电力科技股份有限公司 | Payment system and information transferring method based on STS |
CN107909728A (en) * | 2017-11-29 | 2018-04-13 | 成都市安迅和普科技有限公司 | A kind of date storage method of water meter card |
CN107831363A (en) * | 2017-12-05 | 2018-03-23 | 广西电网有限责任公司电力科学研究院 | A kind of acquisition system and acquisition methods for taking control card table interaction data and sequential |
WO2020008926A1 (en) * | 2018-07-02 | 2020-01-09 | 株式会社東芝 | Portable electronic device and ic card |
CN110045166A (en) * | 2019-04-10 | 2019-07-23 | 珠海优特电力科技股份有限公司 | Ammeter, the control method of ammeter and readable storage medium storing program for executing |
CN110827016A (en) * | 2019-10-12 | 2020-02-21 | 杭州海兴电力科技股份有限公司 | Token recharging error solution method and system for STS |
Also Published As
Publication number | Publication date |
---|---|
CN113140075B (en) | 2023-02-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1252478C (en) | Method for transmitting and storing value and valve store electric power meter using the same | |
CN102110994A (en) | Electric car charging station management system and charging method | |
CN111323646A (en) | System and method for reading ammeter | |
CN112019570B (en) | Prepayment management system and edge computing communication terminal | |
JP2017005776A (en) | Information provision device, charger, computer program and information provision method | |
CN107180343B (en) | Method and device for automatic payment | |
CN109658619B (en) | Electric energy meter prepayment system based on two-dimensional code payment | |
CN110659899B (en) | Offline payment method, device and equipment | |
CN107896227A (en) | Data calling method and device and equipment data cloud platform | |
CN101141250A (en) | Instrument equipment, data safety access method, device and system | |
CN116620094A (en) | Charging gun abnormality detection method and device, electronic equipment and readable storage medium | |
CN104579675A (en) | Safety module, data reading-writing system for parking lot and safety setting method | |
US20210118068A1 (en) | Secure tokens for controlling access to a resource in a resource distribution network | |
US20210118069A1 (en) | Secure tokens for controlling access to a resource in a resource distribution network | |
CN108038979B (en) | Sustainable operation method based on STS prepayment system | |
CN113140075B (en) | Smart meter upgrading method and device and smart meter | |
CN110103761B (en) | Charging fault tracing method and system for new energy vehicle, server and storage medium | |
CN106920329A (en) | A kind of charging electric vehicle charging control unit and method of work | |
CN117014223A (en) | Concentrator, data transmission method and device thereof and storage medium | |
CN101661591A (en) | Energy management device, method and system thereof | |
CN110850790A (en) | Intelligent electric energy meter management auxiliary device of thing networking | |
CN117118756B (en) | Data interaction method, device, computer equipment and computer readable storage medium | |
CN114220222B (en) | Offline prepaid electric quantity recharging method and system | |
CN113794780B (en) | Site real-time control method and system for platform area edge terminal | |
CN118540204A (en) | Abnormal data processing method and device |
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 | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: Zhengtai Instrument Measurement Industrial Park, No.1 Liangce Road, Beibaixiang Town, Leqing City, Wenzhou City, Zhejiang Province, 325603 Patentee after: ZHEJIANG CHINT INSTRUMENT & METER Co.,Ltd. Address before: 325603 Wenzhou Daqiao Industrial Park, Yueqing City, Wenzhou City, Zhejiang Province Patentee before: ZHEJIANG CHINT INSTRUMENT & METER Co.,Ltd. |