Meter recharging method and device, computer equipment and medium

By generating and verifying the unique order information of the meter recharge order at the user terminal, and using the near-field communication connection for recharge, the security and convenience of the meter recharge in the abnormal network conditions of the network is solved, and a safer and more efficient recharge process is achieved.

CN119946627APending Publication Date: 2025-05-06ZHEJIANG CHINT IOT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510089222.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-20
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

In the prior art, the recharge method of the meter in the abnormal network situation has the disadvantages of security and convenience, and the recharge of prepaid cards has the risk of loss and theft, while the recharge of radio frequency identification requires additional equipment.

Method used

By generating unique order information for recharge orders at the user terminal and establishing a near-field communication connection between the user terminal and the meter, the meter completes the recharge operation by verifying the unique order information.

Benefits of technology

It improves the security and convenience of meter recharge, so users do not need to carry an additional prepaid card or RFID device, and the recharge process is safer and more efficient.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119946627A_ABST
    Figure CN119946627A_ABST
Patent Text Reader

Abstract

The invention provides a meter recharging method and device, computer equipment and a medium, and the method comprises the steps: generating a recharging order based on the recharging operation of a user terminal, sending the unique order information to the user terminal, and initiating a recharging request to a meter through the user terminal when the user terminal is connected with the meter; and finally, the meter is controlled to verify the unique order information, if the verification is passed, the recharging operation of the recharging order is executed, and the recharging order comprises the unique order information used for verifying the validity of the recharging order. Based on the method, the convenience and safety of meter recharging can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a meter recharging method, device, computer equipment and readable storage medium. Background Art

[0002] In the case of network anomalies, the meter can be recharged by prepaid card recharge and radio frequency identification (RFID) recharge. For example, the user can insert the prepaid card into or close to the meter to complete the recharge operation, or use RFID technology to write the recharge fee into the meter through the RFID device.

[0003] However, prepaid card recharge has the security risk of card loss and theft, and RFID recharge requires users to carry RFID devices. Therefore, the above meter recharge methods under abnormal network conditions have the defects of security and convenience. Summary of the invention

[0004] The present application provides a meter recharging method, device, computer equipment and readable storage medium, which can improve the convenience and safety of meter recharging.

[0005] In a first aspect, the present application provides a meter recharging method, which is applied to a service terminal connected to a user terminal and a meter for communication, and the method includes:

[0006] Generate a recharge order based on the recharge operation of the user terminal; the recharge order includes unique order information for verifying the validity of the recharge order;

[0007] Sending the unique order information to the user terminal;

[0008] When the user terminal establishes a connection with the meter, a recharge request is initiated to the meter through the user terminal;

[0009] The meter is controlled to verify the unique order information, and if the verification is successful, a recharge operation of the recharge order is executed.

[0010] Optionally, the unique order information includes an order identifier of the recharge order and an encrypted key-value pair, and the controlling the meter to verify the unique order information includes:

[0011] Parsing the content of the order identifier to detect whether the order identifier is verified for the first time;

[0012] If it is detected that the order identifier is not verified for the first time, the unique order information verification fails;

[0013] If it is detected that the order identifier is verified for the first time, verifying the key-value pair;

[0014] If the key-value pair verification passes, the unique order information verification passes; if the key-value pair verification fails, the unique order information verification fails.

[0015] Optionally, the verifying the key-value pair includes:

[0016] Control the meter to parse the key-value pair to obtain a secret key and a password;

[0017] Verifying whether the secret key matches the password;

[0018] If the secret key matches the password, the key-value pair verification passes; if the secret key does not match the password, the key-value pair verification fails.

[0019] Optionally, when the user terminal establishes a connection with the meter, initiating a recharge request to the meter through the user terminal includes:

[0020] Controlling the user terminal to turn on a first near field communication switch, and controlling the meter to turn on a second near field communication switch, so that a near field communication connection is established between the user terminal and the meter;

[0021] A near field communication frame carrying the recharge request is generated, and the near field communication frame is sent to the meter through the user terminal.

[0022] Optionally, the generating a recharge order based on the recharge operation of the user terminal includes:

[0023] generating a payment order in response to a recharge request from a user terminal;

[0024] In response to a payment operation on the payment order, verifying whether the payment operation is successful;

[0025] If the payment operation verification is successful, the unique order information is generated, and the unique order information is written into the payment order to obtain a paid recharge order;

[0026] If the payment operation verification fails, then verify whether the payment operation is successful again after a preset time period until the payment operation verification succeeds, or it is determined that the recharge request response fails.

[0027] Optionally, the method further includes:

[0028] When there are multiple verified recharge orders, identify the recharge time or recharge condition preset in each of the recharge orders; wherein the recharge condition includes that the current resource amount of the meter is less than a first threshold, or the current remaining amount of the meter is less than a second threshold;

[0029] When the recharge time is reached, or the current state of the meter satisfies the recharge condition, the recharge amounts corresponding to the multiple orders to be recharged are counted into the meter in the order of the recharge times of the multiple orders to be recharged.

[0030] Optionally, the method further includes:

[0031] Obtain the current remaining usage of the meter, as well as the number and total recharge amount of all to-be-recharged orders stored in the meter;

[0032] When the current remaining amount of the meter is less than the second threshold and the number of all orders to be recharged is less than the third threshold, or when the current remaining amount of the meter is less than the second threshold and the total recharge resource amount of all orders to be recharged is less than the fourth threshold, at least one setting device controlling the supply of the meter is disconnected or switched to a sleep state.

[0033] In a second aspect, the present application further provides a meter recharging device, comprising:

[0034] An order generating module, configured to generate a recharge order based on the recharge operation of the user terminal; the recharge order includes unique order information for verifying the validity of the recharge order;

[0035] An information sending module, used for sending the unique order information to the user terminal;

[0036] a request sending module, configured to initiate a recharge request to the meter through the user terminal when the user terminal establishes a connection with the meter;

[0037] The order verification module is used to control the meter to verify the unique order information, and if the verification is successful, execute the recharge operation of the recharge order.

[0038] In a third aspect, the present application also provides a computer device, comprising a processor and a memory; the memory is used to store a computer program; the processor is used to execute the computer program stored in the memory to implement the steps of the meter recharging method as described above.

[0039] In a fourth aspect, the present application further provides a computer-readable storage medium storing a computer program, wherein the computer program is loaded by a processor to perform the steps of the meter recharging method as described above.

[0040] In the embodiment of the present application, when the user recharges the meter, there is no need to purchase a prepaid card and a radio frequency identification device. The user only needs to pay the recharge order in a commonly used user terminal. Subsequently, the user terminal and the meter are connected only through a near-field communication network without relying on a remote network connection. The meter completes the recharge operation by verifying the unique order information of the recharge order stored in the user terminal, thereby improving the security and convenience of meter recharge. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0042] Figure 1 It is a flow chart of a meter recharging method provided in an embodiment of the present application;

[0043] Figure 2 It is a schematic diagram of synchronizing recharge orders provided in an embodiment of the present application;

[0044] Figure 3 It is a functional module schematic diagram of a meter recharging device provided in an embodiment of the present application;

[0045] Figure 4 It is a schematic diagram of the structure of the computer device provided in the embodiment of the present application. DETAILED DESCRIPTION

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

[0047] In the description of the present application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the feature. In the description of the present application, "plurality" means two or more, unless otherwise clearly and specifically defined.

[0048] In this application, the word "exemplary" is used to mean "used as an example, illustration or description". Any embodiment described as "exemplary" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. At the same time, it is to be understood that in the specific implementation of this application, when user information, user data and other related data are involved, when the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data shall comply with relevant laws, regulations and standards of relevant countries and regions.

[0049] In order to enable any person skilled in the art to implement and use the present application, the following description is provided. In the following description, details are listed for the purpose of explanation. It should be understood that those of ordinary skill in the art will recognize that the present application can be implemented without using these specific details. In other examples, known structures and processes will not be elaborated in detail to avoid unnecessary details that make the description of the present application obscure. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest range of principles and features disclosed in the present application.

[0050] In the prior art, in order to achieve meter recharge under abnormal network conditions, there are two ways: prepaid card recharge and RFID recharge. Prepaid card recharge means that the user purchases a prepaid card and then inserts the card into or closes it to the meter to recharge the fee. RFID recharge uses RFID technology to interact with the meter with the help of a specific RFID device to write the fee information into the meter to complete the recharge operation.

[0051] However, in terms of security, there are many risks in recharging prepaid cards. Since the card is a physical medium, it is easy to be lost. Once the card is lost, others may steal the card for illegal recharge or consumption, causing economic losses to the user. Although RFID recharge is relatively safe, it requires the use of special RFID equipment. The purchase cost, maintenance cost and complexity of these devices are high, which increases the threshold for use and the overall cost. In terms of convenience, both recharge methods require users to perform additional operations. Prepaid card recharge requires users to go to a designated location to purchase the card, and when recharging, they need to bring the card to the meter for operation. RFID recharge requires users to carry RFID devices at all times. If the user does not carry a prepaid card or RFID device, the recharge operation cannot be performed in time, which reduces the convenience of recharge and cannot meet the recharge needs of users.

[0052] Therefore, the meter recharging method based on the present application can improve the safety and convenience of meter recharging.

[0053] The present application provides a meter recharging method, device, computer equipment and readable storage medium, which are described in detail below.

[0054] Figure 1 FIG. 1 is a flow chart of a meter recharging method in one embodiment of the present application. Figure 2 As shown, the meter recharge method is applied to a service terminal that is connected to the user terminal and the meter in communication. The service terminal can serve as an intermediate medium between the user terminal and the meter. For example, the service terminal can monitor and control the status of the user terminal and the meter, and record the data interaction information between the user terminal and the meter. It should also be noted that the meter of the present application can be a metering device such as an electricity meter, a water meter, and a gas meter.

[0055] In some embodiments, the meter recharging method of the present application may include the following steps 101-104:

[0056] Step 101: Generate a recharge order based on the recharge operation of the user terminal.

[0057] The recharge order may include unique order information for verifying the validity of the recharge order. The unique order information is a key element to ensure that the meter recharge process is safe, accurate and cannot be tampered with.

[0058] In some embodiments, the unique order information may include an order identifier of the recharge order and an encrypted key-value pair. The order identifier may be an order number or an order ID. By assigning a unique order identifier to each order, each specific recharge order can be quickly and accurately located and distinguished, whether in the user terminal (such as the management and tracking of recharge orders in mobile applications) or in the meter end (the identification and processing of orders after receiving recharge requests). For example, when the meter receives a recharge request, it can first check the uniqueness of the order identifier. If a duplicate order identifier is found, the request is immediately rejected, thereby preventing repeated recharges from occurring, ensuring that each recharge operation is only performed once, and avoiding problems such as cost calculation errors and resource abuse caused by repeated recharges.

[0059] In some embodiments, the key-value pair undertakes the important task of ensuring data security and realizing the recharge operation logic during the entire recharge process. In the recharge order, the encrypted key-value pair can be used to further verify the validity and legality of the recharge order. In terms of data security, the key-value pair exists in ciphertext form, which can prevent the key information of the recharge order from being stolen or tampered with during transmission and storage. Only the authorized party with the corresponding decryption algorithm and key (such as a legitimate meter system) can correctly parse and verify the key-value pair to ensure that the recharge request comes from a legitimate source and the data is complete and reliable.

[0060] The recharge order of this application is used for verification by the meter through unique order information during recharge to determine the validity of the recharge order, thereby forming a complete verification system to ensure that the recharge operation of each recharge order can be completed safely, accurately and reliably in a network-free environment.

[0061] In some embodiments, step 101 may include:

[0062] First, in response to a recharge request from a user terminal, a payment order is generated;

[0063] Next, in response to the payment operation on the payment order, verify whether the payment operation is successful;

[0064] Then, if the payment operation verification is successful, unique order information is generated, and the unique order information is written into the payment order to obtain the paid recharge order;

[0065] Finally, if the payment operation verification fails, the payment operation is verified again after a preset time period to see if it is successful, until the payment operation verification succeeds, or it is determined that the recharge request response fails.

[0066] like Figure 2 As shown in FIG. 1 , when a user initiates a meter recharge request through a user terminal (such as an application on a smartphone), the user terminal may first receive the request signal and generate a payment order. After the user terminal initiates a payment operation (such as selecting a payment method, entering a payment password, confirming payment, etc.), it may be verified whether the payment operation is actually successfully completed. The verification process involves communication and data interaction with a payment channel (such as a mobile payment platform, a bank payment interface, etc.). Specifically, a verification request may be sent to the payment channel, and the payment channel returns the result information of the payment operation to the system based on its internal transaction processing mechanism and records. The system determines whether the payment operation is successful based on the received result information. The verification content may include multiple aspects such as whether the payment amount is accurately deducted, whether the payment channel returns a successful transaction identifier, and whether an abnormal error occurs during the payment process. Only when all these verification conditions are met will the system determine that the payment operation is successful; otherwise, the payment operation will be determined to have failed.

[0067] In some embodiments, a specific algorithm and rules can be used to generate unique order information and write it into the previously generated payment order, thereby converting the payment order into a paid recharge order. At this time, the paid recharge order contains complete recharge information, which not only records the status of successful payment, but also has key identification and verification information for subsequent recharge operations under abnormal network conditions, so as to fully prepare for subsequent users to recharge the user terminal and the meter under the on-site network environment.

[0068] In some embodiments, if the payment operation verification fails, the payment operation will not be abandoned immediately, but the verification of whether the payment operation is successful will be attempted again after a preset time. It is understandable that the payment operation may fail to be verified for the first time due to reasons such as short-term network fluctuations and temporary failures of the payment channel, but in fact the payment may be successfully completed in a short subsequent time. The payment operation can be given enough time to complete and stabilize by sending a verification request to the payment channel again after a preset time (for example, a few minutes). If the payment operation still fails to be verified after multiple verifications (a certain upper limit of the number of verifications can be set, such as 3 or 5 times), the system will determine that the recharge request response has failed. At this time, the system can return the corresponding error prompt information to the user terminal, informing the user of the reason for the recharge failure, and can provide some suggestions (such as checking the balance of the payment account, changing the payment method or retrying later, etc.) so that the user can take corresponding measures to solve the problem. At the same time, the system can also record and process the failed recharge request to ensure that it will not cause abnormal effects on the user account and the billing system.

[0069] Through the above methods, the embodiments of the present application can ensure the accuracy and reliability of payment operations in a network environment, while being fully prepared for recharge operations in an off-network environment, and when facing various situations that may arise in payment operations, a reasonable processing mechanism is used to ensure the stability of the entire recharge process and user experience.

[0070] Step 102: Send the unique order information to the user terminal.

[0071] In some embodiments, the unique order information of the generated recharge order can be sent and stored in the user terminal. On the one hand, compared with the prepaid card recharge method, storing the unique order information in the user terminal can reduce the risk of the recharge information being stolen, and through the password of the user terminal and the encryption characteristics of the unique order information itself, the security of meter recharge can be significantly improved.

[0072] On the other hand, since the user terminal is a device that the user carries with him / her on a daily basis, the user does not need to carry an additional prepaid card and radio frequency identification device when recharging the meter, which improves the convenience of meter recharging and reduces the cost of recharging.

[0073] like Figure 2 As shown, after the user successfully pays through the user terminal, the order synchronization operation can be performed for the recharge order. The information of the recharge order can be first stored in the user terminal, and then the stored recharge order can be synchronized to the relevant cloud server or data platform to prevent the recharge order information from being lost or tampered with.

[0074] Step 103: When the user terminal establishes a connection with the meter, a recharge request is initiated to the meter through the user terminal.

[0075] In some embodiments, a connection can be established between the user terminal and the meter through a near field communication network. Among them, the near field communication (NFC) network has the characteristics of short distance, low power consumption, high security, etc., and is very suitable for local data interaction between devices in a network-free environment. For example, the near field communication network of the present application can be Bluetooth communication in an environment with abnormal or poor network conditions, and can be LAN communication in an environment with a good network environment.

[0076] In some embodiments, step 103 may include:

[0077] First, the user terminal is controlled to turn on a first near field communication switch, and the meter is controlled to turn on a second near field communication switch, so that a near field communication connection is established between the user terminal and the meter;

[0078] Next, a near field communication frame carrying a recharge request is generated, and the near field communication frame is sent to the meter through the user terminal.

[0079] In a specific implementation, after the user terminal and the meter both turn on their respective Bluetooth switches to establish a Bluetooth connection, or after a prompt message is sent to the user terminal and the meter to prompt the user to manually turn on Bluetooth, the user terminal can generate a near-field communication frame carrying a recharge request according to the system's instructions and the pre-set communication protocol format. The near-field communication frame can be a data structure of a Bluetooth frame, which not only contains the recharge request information initiated by the user, such as the recharge amount, user account information, payment order related information, etc., but also can include various header information used for communication control and data transmission, such as frame start identifier, frame length, source device and target device address, etc., as well as tail information used for data verification and error detection, such as a checksum field. The process of generating a near-field communication frame involves encoding and encapsulating the recharge request data and adding necessary control information according to the communication protocol to ensure that the generated communication frame can be accurately and reliably transmitted in the near-field communication network.

[0080] After the user terminal generates a near-field communication frame, it can send the communication frame to the meter through its Bluetooth component. The Bluetooth component can convert the communication frame into a wireless signal form suitable for Bluetooth transmission and broadcast it on the Bluetooth communication frequency band. The Bluetooth component of the meter can continuously monitor the Bluetooth signals from surrounding devices. After receiving the near-field communication frame sent by the user terminal, it can decode and restore the signal and convert it back to the original communication frame data structure. Then, the meter extracts the recharge request information from the received communication frame in the format specified by the communication protocol and performs subsequent processing operations.

[0081] Through the above method, the embodiment of the present application can realize safe and efficient communication between the user terminal and the meter under abnormal network environment, ensure that the recharge request can be accurately transmitted from the user terminal to the meter, and provide reliable data support and communication guarantee for subsequent recharge operations, so that the entire recharge process can proceed smoothly.

[0082] Step 104: The control meter verifies the unique order information. If the verification is successful, the recharge operation of the recharge order is executed.

[0083] It is understandable that in order to prevent users from recharging the meter with false or duplicate recharge orders, the validity and uniqueness of the recharge order can be verified by verifying the unique order information.

[0084] In some embodiments, step 104 may include:

[0085] First, parse the content of the order ID to detect whether the order ID is verified for the first time;

[0086] Next, if the detection order identifier is not verified for the first time, the unique order information verification fails;

[0087] Then, if the detection order identifier is verified for the first time, the key-value pair is verified;

[0088] Finally, if the key-value pair verification passes, the unique order information verification passes; if the key-value pair verification fails, the unique order information verification fails.

[0089] In a specific implementation, when the meter receives a near-field communication frame containing a recharge request sent by a user terminal, it can first extract the order identifier in the unique order information from the communication frame. Then, the meter can parse the order identifier to obtain the key information contained therein (such as the order number, generation time, and other information that may be used for identification and judgment). Next, the meter can search in the verified order identifier records stored locally to detect whether the order identifier is verified for the first time. This local storage can be a database table, a cache area, or other data structure suitable for storing order identifier records, which is used to record the order identifiers of all recharge orders that have been processed. In this way, the meter can quickly determine whether the recharge request currently received is a duplicate request, thereby preventing duplicate recharges from occurring.

[0090] If the order ID is found to already exist in the local storage, that is, it is detected that the order ID is not verified for the first time, it means that the recharge request may be sent repeatedly, for example, due to user misoperation, communication failure, etc. In this case, the meter will directly determine that the unique order information verification has not passed, refuse to perform the recharge operation, and return the corresponding error prompt information to the user terminal (such as "duplicate order, recharge failed"). This can avoid problems such as fee calculation errors, user account abnormalities, and unreasonable resource allocation caused by repeated recharges, ensuring the accuracy and fairness of the billing system.

[0091] If the same order ID is not found in the local storage, that is, it is detected that the order ID is verified for the first time, then the meter can proceed to the next verification operation, that is, verifying the key-value pair. The first verification of the order ID only means that the recharge request is legal in terms of order uniqueness, but it is necessary to further verify the validity and legality of other key information of the recharge request, such as the key-value pair, to ensure the security and accuracy of the entire recharge operation.

[0092] After determining that the order is identified as being verified for the first time, the meter can extract the encrypted key-value pair from the near-field communication frame, and decrypt the key-value pair according to the pre-set decryption algorithm and key to restore it to its original, recognizable form. Then, the meter can perform a series of checks on the decrypted key-value pair, including checking whether the format of the key-value pair conforms to the format expected by the system, verifying whether the logical relationship between the key-value pairs is correct, and comparing the received key-value pair with the legal key-value pair information pre-stored by the system, such as the system maintaining a list of legal key-value pairs or using a hash table structure for fast search and verification.

[0093] If the key-value pair passes all the above verification checks, the meter can determine that the key-value pair verification has passed, and then the unique order information verification has passed. At this time, the meter can perform the recharge operation according to other information in the recharge request (such as the recharge amount, etc.), increase the balance in the meter, and record the relevant information of this recharge, such as the recharge time, amount, order ID, etc., and send feedback information of successful recharge to the user terminal. If any problems are found during the key-value pair verification process, such as format errors, logical relationships that do not hold, and mismatches with legal key-value pairs, the meter can determine that the key-value pair verification has not passed, and thus the unique order information verification has not passed, reject the recharge request, and return the corresponding error prompt information to the user terminal, such as "key-value pair verification failed, recharge invalid", to inform the user of the reason for the recharge failure so that the user can take corresponding measures, such as checking whether the payment order information on the mobile phone is correct, re-initiating the recharge request, etc.

[0094] Through the above methods, this application can effectively prevent problems such as repeated recharge, illegal recharge, and recharge failure due to data errors, ensure that fee recharge operations in a network-free environment are carried out safely, accurately, and reliably, and protect the interests of both the meter company and the user.

[0095] In some embodiments, the key-value pair may be validated by:

[0096] First, the control meter parses the key-value pair to obtain the secret key and password;

[0097] Next, verify that the secret key and password match;

[0098] Finally, if the secret key and password match, the key-value pair verification passes; if the secret key and password do not match, the key-value pair verification fails.

[0099] In a specific implementation, when the meter reaches the key-value pair verification stage, the received encrypted key-value pair can be parsed. After successfully parsing the key and password, the meter can enter the verification stage to check whether the key and password match each other. The matching verification can be performed based on the rules and logical relationships pre-set by the system. For example, the system can stipulate that there is a certain mathematical relationship between the key and the password, such as the password is the result of the key being calculated by a specific hash function, or the check values ​​generated by the two through a certain encryption algorithm must be equal. The meter can calculate and compare the relationship between the two according to these rules to see if it meets expectations. If the key and password meet the matching conditions set by the system, then they can be determined to be matched; conversely, if the relationship between the two does not meet the system rules, it is determined to be mismatched.

[0100] If the key and password match after verification, it means that the key-value pair of the recharge order is valid and meets the security and logic requirements of the system. At this time, the meter can determine that the key-value pair verification has passed, so that subsequent recharge operations can continue, such as increasing the balance of the meter according to the amount information in the recharge request, and recording the recharge related information, and sending feedback information of successful recharge to the user terminal to inform the user that the recharge operation has been successfully completed.

[0101] Accordingly, if the key and password do not match, it indicates that there is a problem with the key-value pair of the recharge order, such as data tampering during transmission, errors in the encryption and decryption process, or the recharge request comes from an illegal source trying to forge a legal key-value pair for illegal recharge. In this case, the meter will determine that the key-value pair verification has not passed, refuse to perform the recharge operation, and return the corresponding error prompt information to the user terminal, such as "Key-value pair does not match, recharge failed," to inform the user why the recharge request was not accepted, while ensuring the security of the billing system and preventing illegal recharge behavior from causing damage to the system.

[0102] In some embodiments, the method of the present application may further include:

[0103] First, when there are multiple verified pending recharge orders, identify the preset recharge time or recharge condition in each pending recharge order; wherein the recharge condition includes that the current resource amount of the meter is less than the first threshold, or the current remaining amount of the meter is less than the second threshold;

[0104] Then, when the recharge time is reached or the current state of the meter meets the recharge conditions, the recharge amounts corresponding to the orders to be recharged are counted into the meter according to the order of the recharge times of the multiple orders to be recharged.

[0105] In a specific implementation, each verified recharge order can be analyzed to identify the recharge time or recharge condition preset in the order. The recharge time can be a specific time for the recharge operation preset by the user or the system, and the recharge condition can be a condition for triggering recharge set based on the current state of the meter.

[0106] The recharge condition can include two situations: one is that the current resource amount of the meter is less than the first threshold, which means that when the resource amount in the meter drops to a certain level (the first threshold), the recharge condition is met; the other is that the current remaining amount of the meter is less than the second threshold, that is, when the remaining amount in the meter reaches a specific value (the second threshold) or below, the recharge condition is also met. The system determines whether these recharge conditions are met by obtaining the current resource amount and remaining amount information of the meter in real time.

[0107] In some embodiments, the time and the status of the meter can be continuously monitored. When the preset recharge time of a certain recharge order is reached, or the current resource amount of the meter is less than the first threshold, or the current remaining amount of the meter is less than the second threshold, the recharge execution condition is met.

[0108] After the recharge conditions are met, the system can process multiple orders to be recharged in the order of their recharge time. For orders with the same recharge time, the system will process them in a specific default order (such as the order in which the orders were generated, etc.).

[0109] The system can accurately count the recharge amount corresponding to the order to be recharged into the meter and complete the recharge operation. This ensures that the recharge operation is carried out in an orderly manner in the case of multiple orders to be recharged, taking into account both the user's preset recharge time and the actual status of the meter, thereby achieving flexible and reasonable recharge management and ensuring the user's electricity demand and the stable operation of the power system.

[0110] In some embodiments, the method of the present application may further include:

[0111] First, obtain the current remaining usage of the meter, as well as the number of all pending recharge orders stored in the meter and the total recharge amount;

[0112] Then, when the current remaining amount of the meter is less than the second threshold and the number of all pending recharge orders is less than the third threshold, or when the current remaining amount of the meter is less than the second threshold and the total recharge resource amount of all pending recharge orders is less than the fourth threshold, at least one setting device controlling the supply of the meter is disconnected or switched to a sleep state.

[0113] In the specific implementation, the current remaining usage of the meter can be obtained, which refers to the current remaining amount, resource amount or other measurable energy amount in the meter. At the same time, the system can also obtain the number of all pending recharge orders stored in the meter and the total recharge amount. This information is crucial for the system to judge the current energy status and whether specific measures need to be taken.

[0114] The first case is when the current remaining amount of the meter is less than the second threshold and the number of all pending recharge orders is less than the third threshold. The second threshold is a pre-set critical value of the remaining amount, which is used to determine whether the current remaining amount is at a low level. The third threshold is a standard value for the number of pending recharge orders. When these two conditions are met at the same time, it means that the current remaining amount is low and the number of pending recharge orders is also small, which is not enough to meet the current energy demand. At this time, measures may need to be taken to avoid sudden power outages.

[0115] The second case is when the current remaining amount of the meter is less than the second threshold and the total recharge resource amount of all pending recharge orders is less than the fourth threshold. The fourth threshold is the critical value set for the total recharge resource amount. Similarly, when these two conditions are met at the same time, it means that the current remaining amount is low and the expected recharge resource amount is not enough to solve the current energy shortage problem, and corresponding actions need to be taken.

[0116] When any of the above trigger conditions is met, the system can control at least one set device supplied by the meter to disconnect or switch to a dormant state. As an example only, assuming that the meter is a smart meter, the user can set the smart meter in advance to specify which high-power consumption set devices are disconnected first when the remaining power is lower than the threshold. For example, set the microwave oven, TV, air conditioner, router and other devices that are often turned on at home to disconnect or enter a dormant state when the power is low.

[0117] This method can prevent users from experiencing sudden power outages due to rapid power depletion in a short period of time. By actively disconnecting or switching the status of some devices, current energy consumption is reduced, thereby extending the use time of the remaining power. At the same time, this method can also allow users to know the current power shortage in a timely manner. For example, when the power supply of the router is disconnected, the user will realize the power shortage due to the network interruption, and then perform pre-charge operations in time to ensure subsequent power demand.

[0118] Through the above method, the embodiment of the present application can intelligently control the electrical equipment according to the current remaining usage of the meter and the status of the orders to be recharged, and remind the user to recharge in time while ensuring the user's basic electricity needs, thereby ensuring the stability and continuity of the power supply.

[0119] In a possible example, in order to better implement the meter recharging method in the embodiment of the present application, in addition to the meter recharging method, a meter recharging device is also provided in the embodiment of the present application, such as Figure 3 As shown, the meter recharging device includes:

[0120] The order generation module 201 is used to generate a recharge order based on the recharge operation of the user terminal; the recharge order includes unique order information for verifying the validity of the recharge order;

[0121] Information sending module 202, used to send unique order information to the user terminal;

[0122] The request sending module 203 is used to initiate a recharge request to the meter through the user terminal when the user terminal establishes a connection with the meter;

[0123] The order verification module 204 is used to control the meter to verify the unique order information. If the verification is successful, the recharge operation of the recharge order is executed.

[0124] In an embodiment of the present application, the order generation module 201, the information sending module 202, the request sending module 203 and the order verification module 204 can be used to execute steps 101-104 of the aforementioned method embodiment respectively. For more detailed contents or specific implementation methods of each functional module, please refer to the description of the corresponding method steps, which will not be repeated here.

[0125] The present application also provides a computer device. Figure 4 , Figure 4 This is a basic structural block diagram of the computer device in this embodiment.

[0126] The computer device includes a memory 310 and a processor 320 that are connected to each other through a system bus. It should be noted that the figure only shows a computer device with components 310-320, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.

[0127] Computer devices can be computing devices such as desktop computers, notebooks, PDAs, and cloud servers. Computer devices can interact with users through keyboards, mice, remote controls, touch pads, or voice control devices.

[0128] The memory 310 includes at least one type of readable storage medium, and the readable storage medium includes a non-volatile memory or a volatile memory, for example, a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc., and the RAM may include a static RAM or a dynamic RAM. In some embodiments, the memory 310 may be an internal storage unit of a computer device, for example, a hard disk or a memory of the computer device. In other embodiments, the memory 310 may also be an external storage device of a computer device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card or a flash card (Fla sh Card) equipped on the computer device. Of course, the memory 310 may also include both an internal storage unit of the computer device and its external storage device. In this embodiment, the memory 310 is generally used to store an operating system and various application software installed on the computer device, such as the program code of the above method. In addition, the memory 310 may also be used to temporarily store various types of data that have been output or are to be output. In some embodiments, the memory 310 may also be a register.

[0129] The processor 320 is generally used to perform the overall operation of the computer device. In this embodiment, the memory 310 is used to store program codes or instructions, the program code includes computer operation instructions, and the processor 320 is used to execute the program codes or instructions stored in the memory 310 or process data, such as running the program code of the above method.

[0130] In this article, the bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus system can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0131] Another embodiment of the present application also provides a computer-readable medium, which may be a computer-readable signal medium or a computer-readable medium. A processor in a computer reads a computer-readable program code stored in the computer-readable medium, so that the processor can execute the functional actions specified in each step or a combination of steps in the above method; and generate a device for implementing the functional actions specified in each block or a combination of blocks in the block diagram.

[0132] Computer-readable media include but are not limited to electronic, magnetic, optical, electromagnetic, infrared memory or semiconductor systems, devices or apparatuses, or any appropriate combination of the foregoing, the memory is used to store program codes or instructions, the program codes include computer operating instructions, and the processor is used to execute the program codes or instructions of the above methods stored in the memory.

[0133] For the definitions of memory and processor, please refer to the description of the aforementioned computer device embodiment and will not be repeated here.

[0134] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0135] Each functional unit or module in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0136] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.

[0137] In the claims, any reference symbols placed between brackets shall not be construed as limiting the claims. The word "comprising" described in the present application does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present application can be implemented with the aid of hardware comprising several different elements and with the aid of a suitably programmed computer. In a unit claim that lists a number of devices, several units of these devices may be embodied by the same hardware item. The use of first, second, and third, etc. does not indicate any order, and these words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.

[0138] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A meter recharging method, applied to a service terminal connected to a user terminal and a meter, characterized in that: The method comprises: Generate a recharge order based on the recharge operation of the user terminal; the recharge order includes unique order information for verifying the validity of the recharge order; Sending the unique order information to the user terminal; When the user terminal establishes a connection with the meter, a recharge request is initiated to the meter through the user terminal; The meter is controlled to verify the unique order information, and if the verification is successful, a recharge operation of the recharge order is executed.

2. The meter recharging method according to claim 1, characterized in that: The unique order information includes an order identifier of the recharge order and an encrypted key-value pair, and the controlling the meter to verify the unique order information includes: Parsing the content of the order identifier to detect whether the order identifier is verified for the first time; If it is detected that the order identifier is not verified for the first time, the unique order information verification fails; If it is detected that the order identifier is verified for the first time, verifying the key-value pair; If the key-value pair verification passes, the unique order information verification passes; if the key-value pair verification fails, the unique order information verification fails.

3. The meter recharging method according to claim 2, characterized in that: The verifying the key-value pair comprises: Control the meter to parse the key-value pair to obtain a secret key and a password; Verifying whether the secret key matches the password; If the secret key matches the password, the key-value pair verification passes; if the secret key does not match the password, the key-value pair verification fails.

4. The meter recharging method according to claim 3, characterized in that: When the user terminal establishes a connection with the meter, initiating a recharge request to the meter through the user terminal includes: Controlling the user terminal to turn on a first near field communication switch, and controlling the meter to turn on a second near field communication switch, so that a near field communication connection is established between the user terminal and the meter; A near field communication frame carrying the recharge request is generated, and the near field communication frame is sent to the meter through the user terminal.

5. The meter recharging method according to claim 1, characterized in that: The generating a recharge order based on the recharge operation of the user terminal includes: generating a payment order in response to a recharge request from a user terminal; In response to a payment operation on the payment order, verifying whether the payment operation is successful; If the payment operation verification is successful, the unique order information is generated, and the unique order information is written into the payment order to obtain a paid recharge order; If the payment operation verification fails, then verify whether the payment operation is successful again after a preset time period until the payment operation verification succeeds, or it is determined that the recharge request response fails.

6. The meter recharging method according to claim 1, characterized in that: The method further comprises: When there are multiple verified recharge orders, identify the recharge time or recharge condition preset in each of the recharge orders; wherein the recharge condition includes that the current resource amount of the meter is less than a first threshold, or the current remaining amount of the meter is less than a second threshold; When the recharge time is reached, or the current state of the meter satisfies the recharge condition, the recharge amounts corresponding to the multiple orders to be recharged are counted into the meter in the order of the recharge times of the multiple orders to be recharged.

7. The meter recharging method according to claim 6, characterized in that: The method further comprises: Obtain the current remaining usage of the meter, as well as the number and total recharge amount of all to-be-recharged orders stored in the meter; When the current remaining amount of the meter is less than the second threshold and the number of all orders to be recharged is less than the third threshold, or when the current remaining amount of the meter is less than the second threshold and the total recharge resource amount of all orders to be recharged is less than the fourth threshold, at least one setting device controlling the supply of the meter is disconnected or switched to a sleep state.

8. A meter recharging device, characterized in that: The device comprises: An order generating module, configured to generate a recharge order based on the recharge operation of the user terminal; the recharge order includes unique order information for verifying the validity of the recharge order; An information sending module, used for sending the unique order information to the user terminal; a request sending module, configured to initiate a recharge request to the meter through the user terminal when the user terminal establishes a connection with the meter; The order verification module is used to control the meter to verify the unique order information, and if the verification is successful, execute the recharge operation of the recharge order.

9. A computer device, characterized in that: include: Processor and memory; The memory is used to store computer programs; The processor is used to execute the computer program stored in the memory to implement the steps of the meter recharging method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: A computer program is stored, and the computer program is loaded by a processor to execute the steps of the meter recharging method according to any one of claims 1 to 7.