Special IC card intelligent water meter capable of being stored for rural water supply and remote payment method
By adopting asynchronous processing based on message queues and remote payment methods based on 5G network switching in rural water supply systems, the recharge failure and delay problems caused by narrowband Internet of Things communication are solved, and the user's convenient recharge experience and high system reliability are achieved.
Patent Information
- Application Number
- CN202510146733.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-11
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2045-02-11
AI Technical Summary
In the prior art, the circle storage of rural water supply systems may cause high packet loss rate and delay due to insufficient network coverage of narrowband Internet of Things communication or frequency band interference, which affects real-time communication, which in turn leads to user recharge failure or long query time. Improper management of large-energy lithium batteries may lead to rapid power consumption of equipment, and the user feedback delays in real-time after recharge.
A remote payment method for a special revelled storage IC card smart water meter for rural water supply is adopted. The water meter account is confirmed through the recharge program of the smart terminal, and after the recharge amount is entered and the payment is successful, the system issues a water meter account recharge request and caches data on the local server. Asynchronous processing is performed based on the message queue, respond to the user's water table account recharge request, confirm the transaction is completed, and the balance is updated. If the narrowband IoT communication signal is poor, automatically switch to the 5G network as an alternative link to ensure stable processing of recharge requests.
It improves the convenience and simplicity of recharge on smart terminals, ensures instant response to recharge requests and the security of transactions, reduces recharge failure and delay caused by network problems, and improves user experience and system reliability.
Smart Images

Figure CN119625889A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of account payment, and in particular to a special IC card intelligent water meter for rural water supply and capable of being accrued and a remote payment method. Background Art
[0002] The cash-in machine is a remote recharge card writer designed and developed for prepaid radio frequency card meters. It uses narrowband Internet of Things NB communication and radio frequency card reader / writer modules to realize remote recharge functions. High-energy lithium batteries are used in the cash-in machine, which can be installed at random according to the densely populated areas. It is used with the WeChat public account of the smart terminal, which has the advantages of simple operation, convenient use, safety and reliability, and simple maintenance. It greatly saves the time and travel costs of payment, and brings great convenience to the staff and residents of the recharge point. However, this type of cash-in machine has the problem that the narrowband Internet of Things communication may cause high packet loss rate and delay due to insufficient network coverage or frequency band interference, affecting the real-time communication between the cash-in machine and the server, which in turn leads to user recharge failure or long query time; it uses high-energy lithium batteries, but if the battery usage is not effectively managed, it may lead to rapid power consumption under high load, causing the device to fail to work properly; after the user recharges, there may be a delay in real-time feedback to the user's account, which gives the user a bad experience.
[0003] Prior art 1, application number: CN202310406828.6 discloses a smart water community system and method based on the Internet of Things, wherein a sensor network is used to collect data from water meters and upload the data to a cloud data center; the cloud data center is used to store, process and analyze data uploaded by sensors to generate centralized management decisions for water resources; the wireless communication module is used to send data and decisions processed by the cloud data center to the application platform and community users and receive control signals from the application platform; the intelligent controller intelligently controls the water pressure and water use limit of community users' water meters based on the data and decision results of the cloud data center; the application platform is used for remote meter reading, water balance inquiry, receiving decision information, water fee payment and controlling the intelligent controller. Although the collected data is processed by the cloud data center, users are reminded of water use and reasonable water use suggestions are provided, which improves the user's water use efficiency. However, the sensor network is easily interfered, resulting in insufficient network signal coverage or frequency band interference, affecting real-time communication, and then causing user recharge failure or long query time.
[0004] Prior art 2, application number: CN 202210063365.3 discloses a smart water management system and method based on IoT data collection, including a water supply network, an IoT water meter, a communication network, a meter reading center server, and a water management platform. The water supply network is used to transport water from the water supply end to the water use end. The IoT water meter is set on the water supply network, and the water use information including the water consumption is uploaded to the meter reading center server through the communication network. The meter reading center server is equipped with a water management platform for analyzing and processing the water use information of the IoT water meter, thereby realizing the intelligent management of water use. Although it can not only realize automatic meter reading, remote control of water meters, and online payment of water bills, it can also timely warn of abnormal problems occurring in the water supply pipeline based on the analysis and processing of the water meter's water use information. However, the IoT is prone to terminal during communication, and there may be delays in real-time feedback to the user account, which causes a bad experience for users.
[0005] Prior art three, application number: CN 201611084961.0 discloses a system for paying water bills via WeChat, including: a client, a smart water meter, and a PC; the smart water meter and the PC are connected via wireless WIFI. The traditional way to purchase water requires going to the property office to open a card, which is very inconvenient. Although users can now pay the amount of water purchased through their mobile phones and operate remotely, saving time on the round-trip section, at the same time, they can check the remaining water in real time through the APP. When the previous water volume is used up, it will prompt you to purchase water as soon as possible, which is convenient for daily life. However, its recharge method has poor security and is easy to cause privacy information leakage.
[0006] At present, the existing technologies 1, 2 and 3 have the problem that the narrowband Internet of Things communication may cause high packet loss rate and delay due to insufficient network coverage or frequency band interference, affecting the real-time communication between the transfer machine and the server, resulting in user recharge failure or long query time; the real-time feedback to the user account after recharge may be delayed, causing a bad experience for the user. Therefore, the present invention provides a rural water supply dedicated transferable IC card smart water meter and a remote payment method. Summary of the invention
[0007] In order to solve the above technical problems, the present invention provides a remote payment method for a rural water supply dedicated rechargeable IC card smart water meter, comprising the following steps: The user confirms the water meter account through the recharge program of the smart terminal, enters the recharge amount through the recharge program, and after the payment is successful, the recharge program sends a water meter account recharge request; the water meter account recharge request is cached in the local server; After the water meter account recharge request is sent to the local server, it is asynchronously processed based on the message queue to respond to the user's water meter account recharge request, confirm the transaction completion, and update the balance; the local server selects the communication network according to the network communication status. When the narrowband IoT communication signal is unqualified, the 5G network is started as an alternative link; The power of the cash transfer machine is awakened according to the communication instruction of the local server, and the cash transfer machine is started; the cash transfer machine receives the payment amount sent by the local server, and performs a test when the water card is detected. After the test is qualified, the payment amount is transferred to the water card; after the transfer is completed, the user is prompted to take away the water card.
[0008] Optionally, the process of caching data of the water meter account recharge request on the local server includes the following steps: When a user initiates a water meter account recharge request, a unique request ID is generated; the request ID, the user's water meter account, the recharge amount and the current timestamp information are combined into a data object, and the data object is stored in the memory cache, with the request ID as the unique identifier; When storing the water meter account recharge request data, the initial state is set to pending, and the initial state is reflected in the cache; the user queries the status of the water meter account recharge request in real time through the smart terminal; When the status of a recharge request changes, the status in the cache is updated to completed or failed; an expiration time is set in the cache for each recharge request. If it is not processed within the expiration time, the water meter account recharge request is automatically cleared; when processing the same recharge request, the latest status of the data is confirmed by comparing the timestamp.
[0009] Optionally, the process of comparing timestamps to confirm the latest state of data includes the following steps: When a user requests to update the recharge status, a timestamp-based judgment is made to dynamically compare the timestamp carried in the user request with the existing timestamp in the cache to analyze whether there is a potential risk of duplicate submission; During the analysis process, an intelligent rule engine is introduced to generate a priority score for user request status updates based on historical data and pattern recognition. If the requested timestamp is later than the existing timestamp and the priority score is high, the status update is allowed and the new status and timestamp are automatically evaluated and adjusted; otherwise, the update is rejected and an improvement prompt is generated; When it is detected that the timestamp of the user's request does not meet the update conditions, the relevant information is recorded; recommendations are made for conflicts, and solutions are automatically generated for users to choose from, marking the time to resubmit or providing the option to change the request; users receive real-time messages through the interface and choose whether to receive detailed processing suggestions and analysis reports.
[0010] Optionally, the process of the local server selecting a communication network according to the network communication status includes the following steps: The local server receives the water meter account recharge request and performs parameter verification on the request content, including checking the format and range of the recharge amount, and the validity of the user identity; after the parameter verification is passed, the water meter account recharge request is forwarded to the message queue. Each request will be assigned a unique request ID after entering the queue, and the message queue will process the water meter account recharge requests in batches; The local server asynchronously obtains the response to the water meter account recharge request from the message queue and runs in a thread pool mode, processing multiple water meter account recharge requests at the same time; the size of the thread pool is dynamically adjusted according to the load of the water meter account recharge request; When processing water meter account recharge requests, the current narrowband Internet of Things network status is continuously monitored, including signal strength, latency, and packet loss rate. By introducing a dynamic network adaptation algorithm, the local server adjusts the communication link selection based on network status indicators and automatically enables the 5G network.
[0011] Optionally, the process of batch processing of water meter account recharge requests by the message queue includes the following steps: When each water meter account recharge request enters the queue, it is subjected to feature extraction through multi-feature hashing, including request time, user ID and recharge amount, and a multi-dimensional feature vector is generated; this is used to train a multi-class classifier to classify water meter account recharge requests into multiple categories, including high priority, scheduled tasks, large amount requests and ordinary requests; When water meter account recharge requests are distributed to the message queue, they are divided based on priority, and different processing nodes are set for different types of water meter account recharge requests; resource allocation is dynamically adjusted according to real-time load and response time indicators. In a high concurrency state, the allocation budget for high-priority requests is increased, and processing resources for low-priority requests are automatically reduced; In the process of adjusting resource allocation, real-time feedback on request processing success rate and response time is collected to update resource allocation in real time. After processing a batch of water meter account recharge requests, the results are fed back to resource allocation for fine-tuning.
[0012] Optionally, the process of dynamically adjusting resource allocation based on real-time load and response time indicators includes the following steps: At the beginning of resource allocation, a multi-level data collection architecture is built to monitor resource allocation status and user behavior in real time, including periodic extraction of important performance indicators such as CPU usage, memory consumption, and network latency, user request frequency, type, and timestamp, and real-time monitoring data to form a dynamic status panel; Analyze the relationship between load and response time to instantly determine whether performance standards are met; calibrate the priority of current water meter account recharge requests based on user behavior and load; integrate the computing resources and storage space of existing resource allocations to divide them into high-priority and low-priority resource pools, and adjust the resource scale of each pool based on real-time evaluation results; Resources are dynamically allocated based on the priority of water meter account recharge requests and system load.
[0013] Optionally, when there is a peak in user requests, computing units are automatically allocated to high-priority water meter account recharge requests, while reducing resource supply to low-priority water meter account recharge requests.
[0014] Optionally, the process of adjusting the communication link selection comprises the following steps: Build a comprehensive network monitoring system, dynamically collect key indicators, and define a multi-dimensional state vector to represent the network status at any moment; Set up a complex performance scoring model to comprehensively evaluate the current network performance based on multi-dimensional indicators; use rolling average and deviation quantification to set dynamic thresholds, and use mean and standard deviation to adjust network switching in real time; Make intelligent link selection decisions based on the results of the complex performance scoring model, trigger the link switching logic, verify the signal strength and delay status of the current 5G link before the switch is executed, and monitor and provide feedback on the performance after the switch.
[0015] Optionally, the process of adjusting the communication link selection further includes the following steps: Introducing edge nodes as data processing centers for local computing and storage. Edge nodes can receive and process data generated on user devices in real time. With edge computing, real-time data processing algorithms are executed on edge nodes, so that link selection and switching decisions can respond to changes in network status in real time; the corresponding decision-making process is described by a performance model; When network conditions change, edge computing uses real-time monitoring data to achieve dynamic link delay management and quantifies the dynamic adjustment of link delay through models.
[0016] The present invention provides a special IC card intelligent water meter for rural water supply, which includes: The data cache module is responsible for the user confirming the water meter account through the recharge program of the smart terminal, inputting the recharge amount through the recharge program, and the recharge program sending a water meter account recharge request after the payment is successful; the water meter account recharge request is cached in the local server; The network communication module is responsible for asynchronous processing based on the message queue after the water meter account recharge request is sent to the local server, responding to the user's water meter account recharge request, confirming the transaction completion, and updating the balance; the local server selects the communication network according to the network communication status. When the narrowband IoT communication signal is unqualified, the 5G network is started as an alternative link; The payment transfer module is responsible for waking up the power of the transfer machine according to the communication instructions of the local server, and the transfer machine starts; the transfer machine receives the payment amount sent by the local server, and performs a test when the water card is detected. If the test is qualified, the payment amount is transferred to the water card; after the transfer is completed, the user is prompted to take the water card.
[0017] The user of the present invention initiates a recharge request. The user logs in and confirms the water meter account associated with it through an intelligent terminal (such as a mobile phone application); enters the recharge amount, and after the payment is successful, the system issues a recharge request for the water meter account, and this request is stored in the local server for data caching. Significance: Users can easily complete the recharge on the intelligent terminal, the operation interface is friendly and concise, and the simple and clear steps make it very easy for users to get started; the implementation of data caching provides a protection layer for the recharge request to avoid the loss or failure of the request due to network problems, and ensure the security of user information and funds; after the user submits the recharge request, it can respond and confirm immediately, enhancing the user's sense of control over the entire recharge process, thereby improving satisfaction. Payment request processing and network optimization, the water meter account recharge request is sent to the local server, and the request is asynchronously processed through the message queue; the server quickly confirms the completion of the transaction and updates the user account balance according to the network communication status. If the narrowband Internet of Things signal is poor, it will automatically switch and use the 5G network as an alternative communication link. Significance: Using message queue technology to achieve asynchronous processing can significantly improve the speed of transaction processing, reduce user waiting time, and make the system run more smoothly; the local server intelligently selects the optimal communication protocol according to the current network conditions to ensure that effective recharge processing can still be carried out under poor network conditions, thereby improving the reliability of the entire system; quickly confirming transactions and updating balances enhances user trust and reduces complaints or concerns that may arise from delays. The startup of the cash-in machine and the recharge of water cards. The local server wakes up the cash-in machine by sending communication instructions. After the cash-in machine is started, it receives the amount of account recharge; after detecting the water card, it performs a validity test. If the test is qualified, the recharge amount is written into the water card, and finally the user is prompted to take the water card. Significance: The autonomous wake-up and operation of the cash-in machine reduces manual intervention, improves the automation level of the entire recharge process, and improves operational efficiency; before charging the water card, a validity test is performed to ensure that only valid water cards can be successfully cashed, reducing the risk of mis-recharge caused by incorrect operations; after completing the recharge, the user will be reminded to take the water card in time, so that the user can complete the transaction quickly, which increases the user's convenient experience.
[0018] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description and the accompanying drawings.
[0019] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings: Figure 1 This is a flow chart of a remote payment method for a rural water supply dedicated rechargeable IC card smart water meter in Embodiment 1 of the present invention; Figure 2 A process diagram of data caching in a local server for a water meter account recharge request in Embodiment 2 of the present invention; Figure 3 This is a process diagram of confirming the latest status of data by comparing timestamps in Example 3 of the present invention; Figure 4 A process diagram of a local server selecting a communication network according to network communication conditions in Embodiment 4 of the present invention; Figure 5 A process diagram of batch processing of water meter account recharge requests by a message queue in Embodiment 5 of the present invention; Figure 6 This is a process diagram of dynamically adjusting resource allocation according to indicators such as real-time load and response time in Example 6 of the present invention; Figure 7 The process of adjusting the communication link selection in embodiment 7 of the present invention Figure 1 ; Figure 8 This is process 2 of adjusting the communication link selection in embodiment 8 of the present invention; Fig. 9 This is a process diagram of waking up the power of the cash transfer machine in Embodiment 9 of the present invention; Fig.10 This is a block diagram of a storable IC card smart water meter for rural water supply in Example 10 of the present invention. DETAILED DESCRIPTION
[0021] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0022] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the embodiments of the present application. The singular forms of "a", "said" and "the" used in the embodiments of the present application are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more associated listed items.
[0023] When the following description relates to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are only examples of devices and methods consistent with some aspects of the present application. In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and do not have to be used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances.
[0024] Example 1: Figure 1 As shown, the embodiment of the present invention provides a remote payment method for a rural water supply dedicated rechargeable IC card smart water meter, comprising the following steps: S100: The user confirms the water meter account through the recharge program of the smart terminal, enters the recharge amount through the recharge program, and after the payment is successful, the recharge program sends a water meter account recharge request; the water meter account recharge request is cached in the local server; S200: After the water meter account recharge request is sent to the local server, it is asynchronously processed based on the message queue, responds to the user's water meter account recharge request, confirms the transaction completion, and updates the balance; the local server selects a communication network based on the network communication status, and starts the 5G network as an alternative link when the narrowband IoT communication signal is unqualified; S300: The power of the cash transfer machine is awakened according to the communication instruction of the local server, and the cash transfer machine is started; the cash transfer machine receives the payment amount sent by the local server, and performs a test when the water card is detected. If the test is qualified, the payment amount is transferred to the water card; after the transfer is completed, the user is prompted to take the water card.
[0025] The working principle and beneficial effects of the above technical solution are as follows: in this embodiment, first, the user confirms the water meter account through the recharge program of the smart terminal, enters the recharge amount through the recharge program, and after the payment is successful, the recharge program sends a water meter account recharge request; the water meter account recharge request is cached in the local server; secondly, after the water meter account recharge request is sent to the local server, it is asynchronously processed based on the message queue, responds to the user's water meter account recharge request, confirms the completion of the transaction, and updates the balance; the local server selects a communication network according to the network communication status, and when the narrowband Internet of Things communication signal is unqualified, starts the 5G network as an alternative link; finally, the power of the cash transfer machine is awakened according to the communication instruction of the local server, and the cash transfer machine is started; the cash transfer machine receives the payment amount sent by the local server, and performs a test when the water card is detected. After the test is qualified, the payment amount is transferred to the water card; after the transfer is completed, the user is prompted to take the water card. In step S100 of the above scheme, the user initiates a recharge request. The user logs in and confirms the water meter account associated with it through a smart terminal (such as a mobile phone application); enters the recharge amount, and after the payment is successful, the system issues a recharge request for the water meter account, and this request is stored in the local server for data caching. Significance: Users can easily complete the recharge on the smart terminal, the operation interface is friendly and concise, and the simple and clear steps make it very easy for users to get started; the implementation of data caching provides a protection layer for the recharge request to avoid request loss or failure due to network problems, and ensure the security of user information and funds; after the user submits the recharge request, it can respond and confirm immediately, enhancing the user's sense of control over the entire recharge process, thereby improving satisfaction. Step S200 Payment request processing and network optimization, the water meter account recharge request is sent to the local server, and the request is asynchronously processed through the message queue; the server quickly confirms the completion of the transaction and updates the user account balance according to the network communication status. If the narrowband Internet of Things signal is poor, it will automatically switch and use the 5G network as an alternative communication link. Significance: Using message queue technology to achieve asynchronous processing can significantly improve the speed of transaction processing, reduce user waiting time, and make the system run more smoothly; the local server intelligently selects the optimal communication protocol according to the current network conditions to ensure effective recharge processing under poor network conditions, thereby improving the reliability of the entire system; quickly confirming transactions and updating balances enhances user trust and reduces complaints or concerns that may arise from delays. Step S300: Startup of the cash-in machine and recharge of the water card. The local server wakes up the cash-in machine by sending a communication command. After the cash-in machine is started, it receives the amount of account recharge; after detecting the water card, a validity test is performed. If the test is qualified, the recharge amount is written into the water card, and finally the user is prompted to take the water card.Significance: The autonomous wake-up and operation of the cash-on-dip machine reduces manual intervention, improves the automation level of the entire recharge process, and improves operational efficiency; a validity check is performed before charging the water card to ensure that only valid water cards can be successfully cashed, reducing the risk of mis-recharge due to incorrect operations; after the recharge is completed, the user will be reminded to take the water card away in time, allowing the user to complete the transaction quickly, increasing the user's convenient experience.
[0026] In summary, the remote payment method of the rural water supply dedicated rechargeable IC card smart water meter of this embodiment realizes an efficient, reliable and convenient recharge experience. The technical means adopted in each step not only optimize the user experience in the recharge process, but also ensure the security and effectiveness of the transaction. At the same time, appropriate response measures are taken for different network environments to enhance the flexibility and fault tolerance of the system. Together, they promote the popularization of smart water meter applications and users' recognition of smart life.
[0027] Example 2: Figure 2 As shown, based on Example 1, the process of caching data on the local server for the water meter account recharge request provided by the embodiment of the present invention includes the following steps: S101: When a user initiates a water meter account recharge request, a unique request ID is generated; the request ID, the user's water meter account, the recharge amount, the current timestamp and other information are combined into a data object, and the data object is stored in a memory cache, with the request ID as a unique identifier; S102: when storing the water meter account recharge request data, the initial state is set to pending, and the initial state is reflected in the cache; the user queries the status of the water meter account recharge request in real time through the smart terminal; S103: When the status of the recharge request changes, the status in the cache is updated to completed or failed; an expiration time is set in the cache for each recharge request. If it is not processed within the expiration time, the water meter account recharge request is automatically cleared; when processing the same recharge request, the latest status of the data is confirmed by comparing the timestamp.
[0028] The working principle and beneficial effects of the above technical solution are as follows: First, when a user initiates a water meter account recharge request, this embodiment generates a unique request ID; the request ID, the user's water meter account, the recharge amount and the current timestamp are combined into a data object, and the data object is stored in the memory cache, with the request ID as the unique identifier; secondly, when storing the water meter account recharge request data, the initial state is set to pending, and the initial state is reflected in the cache; the user queries the status of the water meter account recharge request in real time through the smart terminal; finally, when the status of the recharge request changes, the status in the cache is updated to completed or failed; an expiration time is set in the cache for each recharge request, and if it is not processed within the expiration time, the water meter account recharge request is automatically cleared; when processing the same recharge request, the latest status of the data is confirmed by comparing the timestamp. Step S101 of the above scheme requests generation and storage to generate a unique request ID for identifying each recharge request to avoid data confusion; the request ID, the user's water meter account information, the recharge amount and the timestamp are combined into a data object and stored in the memory cache. Significance: Ensure that each request has a unique identifier, which is convenient for subsequent query, management and tracking, and improves maintainability; by using memory cache, fast data access is achieved, latency is reduced, and user experience is improved. Step S102: Status initialization and user feedback. Set the initial status of the recharge request to "pending" and update the status to the cache; allow users to query the status of the recharge request in real time through the smart terminal. Significance: Provide a clear request processing process, so that users can obtain the request status in time, enhance transparency and trust; improve user experience, so that users can easily track the recharge progress and reduce the need for customer support. Step S103: Status update and expiration management. When the status of the request changes, update the status in the cache to "completed" or "failed" to keep the information timely; set an expiration time for each request to ensure that unprocessed requests are automatically cleared within the specified time, reducing the memory burden. Significance: Ensure that the information stored in the cache always reflects the latest status, improve the accuracy of the information, and reduce the user's misunderstanding of old information; through the expiration policy, it can automatically manage resources, reduce memory consumption, improve scalability, and avoid invalid use of memory. Data consistency guarantees that when processing the same recharge request, the latest state of the data is confirmed by comparing the timestamp to prevent data competition. Significance: Ensure data consistency and accuracy, ensure that abnormal operations in high concurrency situations will not cause data errors or losses, and enhance reliability.
[0029] In summary, this embodiment improves the performance and user experience of the cash-in machine, ensures the integrity and consistency of data, and optimizes resource management. It not only provides users with a convenient and efficient recharge experience, but also improves the stability and security of the cash-in machine.
[0030] Example 3: Figure 3As shown, based on Example 2, the process of confirming the latest status of data by comparing timestamps provided in the embodiment of the present invention includes the following steps: S1031: When the user requests to update the recharge status, a timestamp-based judgment is performed to dynamically compare the timestamp carried in the user request with the existing timestamp in the cache to analyze whether there is a potential risk of duplicate submission; S1032: During the analysis process, an intelligent rule engine is introduced to generate a priority score for the user's request status update based on historical data and pattern recognition. If the requested timestamp is later than the existing timestamp and the priority score is high, the status update is allowed and the new status and timestamp are automatically evaluated and adjusted; otherwise, the update is rejected and an improvement prompt is generated; S1033: When it is detected that the timestamp requested by the user does not meet the update conditions, the relevant information is recorded; recommendations are adopted for conflict situations, solutions are automatically generated for the user to choose, the time for resubmission is marked or the option of changing the request is provided; the user receives real-time messages through the interface and chooses whether to receive detailed processing suggestions and analysis reports.
[0031] The working principle and beneficial effects of the above technical solution are as follows: First, when a user requests to update the recharge status, this embodiment uses a timestamp-based judgment to dynamically compare the timestamp carried in the user request with the existing timestamp in the cache to analyze whether there is a potential risk of repeated submission; secondly, in the analysis process, an intelligent rule engine is introduced to generate a priority score for the user's request status update based on historical data and pattern recognition. If the requested timestamp is later than the existing timestamp and the priority score is high, the status update is allowed, and the new status and timestamp are automatically evaluated and adjusted; otherwise, the update will be rejected and an improvement prompt will be generated; finally, when it is detected that the user's request timestamp does not meet the update conditions, the relevant information is recorded; for conflict situations, recommendations are adopted, solutions are automatically generated for users to choose, the time for resubmission is marked or the option of changing the request is provided; the user receives real-time messages through the interface and chooses whether to receive detailed processing suggestions and analysis reports. Step S1031 of the above scheme can obtain the timestamp carried in the user request in real time and dynamically compare it with the timestamp in the cache when the user requests to update the recharge status; it can identify the timeliness of the request and analyze the potential risk of repeated submission. Significance achieved: Through timely judgment, outdated requests can be effectively prevented from interfering with the current state; not only the consistency and accuracy of data is ensured, but also the user experience is improved to a certain extent, and user dissatisfaction caused by request conflicts is reduced. Step S1032 Intelligent rule engine and priority scoring, introduce intelligent rule engine combined with historical data and pattern recognition to generate priority scores for requests; status update is allowed only when the timestamp of the request is later than the existing timestamp and the priority score of the request is higher than the preset threshold; including automatic evaluation and adjustment of the new status and its timestamp. Significance achieved: The priority scoring mechanism not only improves the response efficiency through intelligent decision-making logic, but also ensures the priority processing of more important requests; flexibility enables the system to quickly adapt to changing user needs, thereby enhancing user trust and dependence, and promoting user active participation and satisfaction. Step S1033 Conflict handling and user notification, when it is detected that the user request timestamp does not meet the update conditions, it can record relevant information and generate conflict solutions for users to choose, including sending real-time messages through the user interface, and providing detailed processing suggestions and analysis report options. Significance achieved: Not only does it ensure transparency, but it also gives users the initiative to participate in the problem-solving process; users can achieve a sense of control over the process by choosing appropriate actions; interactivity significantly improves the user experience, while also enhancing users' perception of consistency and reliability. Ultimately, it reduces operational errors caused by user confusion and improves overall user-friendliness.
[0032] The intelligent judgment of this embodiment can effectively identify potential earlier requests or invalid requests, and reduce errors and conflicts caused by concurrent operations; in addition, by analyzing historical request data, it can actively identify users' seasonal or high-frequency request patterns, optimize delays and data processing processes, and thus improve the overall response speed and user experience. The priority scoring mechanism not only improves the intelligence of the processing logic, but also dynamically adjusts the response strategy according to real-time conditions; it not only simply prevents outdated requests, but also automatically identifies and prioritizes high-value requests based on user behavior and recharge patterns, ultimately optimizing user experience and generating revenue. Through innovative conflict handling mechanisms, users are no longer just passively accepting rejections from the system, but can actively choose the next action, thereby improving user engagement and satisfaction; through deep learning algorithms, the recommendation effect is continuously optimized, further improving the intelligence level of the system, so that users can get timely and effective guidance when encountering problems.
[0033] In summary, this embodiment not only optimizes the processing flow of water meter account recharge requests through accurate timestamp comparison, intelligent priority evaluation and active user interaction, but also improves the intelligence level of the system and user experience. It ensures the accuracy and consistency of data, and at the same time enhances user satisfaction, participation and trust, laying a solid foundation for the long-term development of the system.
[0034] After the water meter account recharge request is sent to the local server, it is asynchronously processed based on the message queue to respond to the user's water meter account recharge request, confirm the transaction completion, and update the balance; the local server selects the communication network according to the network communication status. When the narrowband IoT communication signal is unqualified, the 5G network is started as an alternative link; Example 4: Figure 4 As shown, based on Example 1, the process of selecting a communication network according to the network communication status provided by the local server in the embodiment of the present invention includes the following steps: S201: The local server receives the water meter account recharge request and performs parameter verification on the request content, including checking the format and range (such as the minimum and maximum limits) of the recharge amount, and the validity of the user identity (such as whether the account is in a normal state); after the parameter verification is passed, the water meter account recharge request is forwarded to the message queue, and each request will be assigned a unique request ID after entering the queue. The message queue processes the water meter account recharge requests in batches; S202: The local server asynchronously obtains the response to the water meter account recharge request from the message queue and runs in a thread pool manner to process multiple water meter account recharge requests at the same time; the size of the thread pool is dynamically adjusted according to the load of the water meter account recharge request; S203: During the water meter account recharge request processing, the current narrowband Internet of Things network status is continuously monitored, including signal strength, delay, and packet loss rate; by introducing a dynamic network adaptation algorithm, the local server adjusts the communication link selection according to the network status indicators and automatically enables the 5G network.
[0035] The working principle and beneficial effects of the above technical solution are as follows: In this embodiment, first, the local server receives the water meter account recharge request and performs parameter verification on the request content, including checking the format and range (such as the minimum and maximum limits) of the recharge amount, and the validity of the user identity (such as whether the account is in a normal state); after the parameter verification is passed, the water meter account recharge request is forwarded to the message queue, and each request will be assigned a unique request ID after entering the queue, and the message queue will process the recharge requests in batches; secondly, the local server asynchronously obtains the response to the water meter account recharge request from the message queue and runs in the form of a thread pool, processing multiple water meter account recharge requests at the same time; the size of the thread pool is dynamically adjusted according to the load of the water meter account recharge request; finally, in the water meter account recharge request processing, the current narrowband Internet of Things network status is continuously monitored, including signal strength, delay and packet loss rate; by introducing a dynamic network adaptation algorithm, the local server adjusts the communication link selection according to the network status indicators and automatically enables the 5G network. Step S201 of the above scheme, parameter verification and message queue entry, ensures the validity of the input recharge amount and user identity by strictly checking the format and range of the content of the water meter account recharge request; uses standardized data verification technology to reduce the possibility of further processing of erroneous requests; once the parameter verification is passed, the request is pushed to the message queue, and each request is assigned a unique request ID, which facilitates subsequent request tracking and management; the message queue can classify and batch multiple requests, optimize the server load, and enhance processing efficiency. Significance achieved: Through the verification mechanism, malicious attacks and erroneous data processing are hindered, and security and robustness are improved; the introduction of message queue technology can maintain stable performance under high concurrency, and will not cause service crashes or delays due to high load; through the allocation of unique IDs, each request can be tracked, which is convenient for subsequent data audits and troubleshooting. Step S202 asynchronous processing and thread pool management, the local server uses the thread pool to asynchronously obtain and process the recharge requests in the message queue to achieve simultaneous processing of multiple requests. This concurrent processing capability effectively improves the response speed; according to the load situation, the thread pool size can be dynamically adjusted to achieve flexible resource allocation and ensure that the service quality can still be guaranteed under high load conditions. Significance achieved: Through asynchronous processing and thread pool management, the performance is greatly improved, and the processing time of water meter account recharge requests is significantly reduced; fast response to user requests improves user satisfaction and experience, and can better adapt to different user needs; dynamic adjustment of the thread pool ensures the rational use of system resources and avoids resource waste or shortage caused by over-allocation of threads.Step S203: Network status monitoring and link selection, real-time monitoring of key indicators such as signal strength, delay and packet loss rate of the narrowband Internet of Things, to ensure that the communication quality can be continuously grasped and evaluated; through this algorithm, the local server can dynamically select the optimal communication link based on the real-time monitored network status, and automatically switch to the 5G network when the narrowband Internet of Things signal is poor to maintain the stability of data transmission. Significance achieved: It ensures that efficient communication can be maintained in a dynamic network environment, reducing the risk of request timeout or failure due to poor network; through dynamic network adaptation, and automatic switching to the 5G network when necessary, it enhances the adaptability to sudden changes in the network environment and improves overall flexibility; stable network communication quality and fast response time will enhance user trust and help further promote the application of smart water meters.
[0036] In summary, the present embodiment jointly constructs an efficient, secure and user-friendly smart water meter account recharge system, which not only ensures stability and processing capabilities, but also provides users with a high-quality service experience.
[0037] Example 5: Figure 5 As shown, based on Example 4, the message queue provided in the embodiment of the present invention processes water meter account recharge requests in batches, including the following steps: S2011: When each water meter account recharge request enters the queue, feature extraction is performed through multi-feature hashing, including request time, user ID, and recharge amount, and a multi-dimensional feature vector is generated; this is used to train a multi-class classifier to classify water meter account recharge requests into multiple categories, including high priority, scheduled tasks, large amount requests, and ordinary requests; S2012: When the water meter account recharge request is distributed to the message queue, it is segmented based on the priority, and different processing nodes are set for different types of water meter account recharge requests; resource allocation is dynamically adjusted according to indicators such as real-time load and response time. In a high concurrency state, the allocation budget for high-priority requests is increased, and the processing resources for low-priority requests are automatically reduced; S2013: In the process of adjusting resource allocation, real-time feedback such as request processing success rate and response time is collected to update resource allocation in real time; after processing a batch of water meter account recharge requests, the results are fed back to resource allocation for fine-tuning.
[0038] The working principle and beneficial effects of the above technical solution are as follows: First, in this embodiment, when each water meter account recharge request enters the queue, feature extraction is performed through multi-feature hashing, including request time, user ID and recharge amount, and a multi-dimensional feature vector is generated; it is used to train a multi-class classifier to classify the water meter account recharge requests into multiple categories, including high priority, scheduled tasks, large-amount requests and ordinary requests, etc.; secondly, when the water meter account recharge requests are distributed to the message queue, they are divided based on priority, and different processing nodes are set for different types of water meter account recharge requests; resource allocation is dynamically adjusted according to indicators such as real-time load and response time. In a high concurrency state, the allocation budget for high-priority requests is increased, and the processing resources for low-priority requests are automatically reduced; finally, in the process of adjusting resource allocation, real-time feedback such as request processing success rate and response time is collected, and resource allocation is updated in real time; whenever a batch of water meter account recharge requests are processed, the results are fed back to the resource allocation for fine-tuning. Step S2011 of the above scheme, feature extraction and multi-class classifier, extracts key attributes (request time, user ID, recharge amount, etc.) from the recharge request through multi-feature hashing technology to form a high-dimensional feature vector, so that the classifier can perform in-depth analysis based on data information; trains a multi-class classifier (such as random forest, XGBoost, etc.) to classify the recharge requests of the water meter account into high priority, scheduled tasks, large amount requests and ordinary requests, etc. Significance: Through detailed feature extraction, the different types of requests can be accurately identified and responded to quickly, which is more conducive to optimizing resource utilization than the traditional simple queuing method; the classified requests lay the foundation for subsequent intelligent scheduling, and resources can be more reasonably allocated according to the type of request (such as high-priority requests need to be processed first), thereby improving the overall processing efficiency. Step S2012: Request distribution and dynamic resource adjustment. Requests are distributed to appropriate processing nodes according to their priority. For example, high-priority requests are sent to high-performance servers, and scheduled tasks are processed regularly. According to real-time load indicators and response time, resource allocation is adjusted (for example, in a high-concurrency state, high-priority requests are processed first, and resource allocation for low-priority requests is reduced) to achieve flow control. Significance: Dynamic optimization scheduling strategy ensures that high-priority requests are processed first, greatly reducing user waiting time. Real-time data monitoring system is used to dynamically adjust resource allocation to ensure that different requests can obtain sufficient processing power under different load conditions, avoid the impact of low-priority requests on high-priority requests, and improve system response capabilities and user satisfaction. Step S2013: Real-time feedback and fine-tuning of resource allocation. During the resource allocation process, data such as request processing success rate and response time are continuously collected to evaluate whether the current resource allocation is reasonable. After processing a batch of requests each time, the feedback data is updated to the resource management system to fine-tune the decision model and improve the accuracy of future decisions.Significance: It has the ability to self-learn and adapt, and can make dynamic adjustments based on historical data and real-time feedback, so as to respond quickly to changing access patterns. Through continuously updated resource allocation strategies, it can maintain efficient processing in different time periods and under different circumstances, effectively reducing the problem of idle or insufficient resources and enhancing the scalability of the system.
[0039] In summary, this embodiment constitutes a refined message queue batch processing mechanism; through in-depth data analysis, intelligent scheduling and real-time feedback, it effectively improves the flexibility and accuracy of water meter account recharge request processing, ensuring that users can obtain fast and reliable services in various situations. It not only improves the user experience, but also provides higher efficiency and flexibility for maintenance and load management.
[0040] Example 6: Figure 6 As shown, based on Example 5, the process of dynamically adjusting resource allocation according to indicators such as real-time load and response time provided by the embodiment of the present invention includes the following steps: S20121: Build a multi-level data collection architecture at the beginning of resource allocation to monitor resource allocation status and user behavior in real time, including regularly extracting important performance indicators such as CPU usage, memory consumption and network latency, user request frequency, type and timestamp, and form a dynamic status panel with real-time monitoring data; S20122: Analyze the relationship between load and response time to instantly determine whether performance standards are met; calibrate the priority of the current water meter account recharge request based on user behavior and load; integrate the computing resources and storage space of existing resource allocations to divide high-priority and low-priority resource pools, and each pool adjusts its resource scale based on real-time evaluation results; S20123: Dynamically allocate resources according to the priority of water meter account recharge requests and the system load; when there is a peak in user requests, automatically allocate computing units to high-priority water meter account recharge requests, while reducing resource supply to low-priority water meter account recharge requests.
[0041] The working principle and beneficial effects of the above technical solution are as follows: First, in the initial stage of resource allocation, a multi-level data collection architecture is constructed in this embodiment to monitor the resource allocation status and user behavior in real time, including the periodic extraction of important performance indicators such as CPU usage, memory consumption and network delay, the user's request frequency, type and timestamp, and the real-time monitoring data forms a dynamic status panel; secondly, the relationship between load and response time is analyzed to instantly determine whether the performance standard is met; based on user behavior and load, the priority of the current water meter account recharge request is calibrated; the computing resources and storage space of the existing resource allocation are integrated to divide high-priority and low-priority resource pools; each pool adjusts its resource scale according to the real-time evaluation results; finally, resources are dynamically allocated according to the priority of the water meter account recharge request and the system load; when there is a user request peak (a preset program, for example, more than 5 users recharge at the same time within 3 minutes), the computing unit is automatically allocated to the high-priority water meter account recharge request, and at the same time, the resource supply to the low-priority water meter account recharge request is reduced (the recharge request is sorted and postponed according to the priority). Step S20121 of the above scheme constructs a multi-level data collection system. By regularly extracting CPU usage, memory consumption, network delay, and the frequency and type of user requests, it ensures comprehensive and timely monitoring of resource allocation status and user behavior; the collected data is integrated and presented as a dynamic status panel, so that the administrator can quickly identify the current resource usage and user request dynamics. The significance achieved: It provides an effective data basis to ensure that subsequent analysis and decision-making have a reliable basis; real-time monitoring establishes an early warning mechanism, which can timely discover potential performance bottlenecks or system anomalies, prompt timely adjustments, and reduce the risk of system failure. Step S20122 load analysis and priority calibration, by analyzing the relationship between load and response time, it can timely determine whether resource allocation meets performance standards to ensure that there is no overload or response delay; the priority of water meter account recharge requests is calibrated according to user behavior and resource allocation load, forming a high-priority and low-priority resource division, making resource allocation more targeted and efficient; existing resources are divided into high-priority and low-priority resource pools to provide structured support for dynamic allocation, and adjust the resource scale according to real-time evaluation results. Significance achieved: Effectively utilize computing resources and storage space to ensure that key requests are processed first, thereby reducing resource idleness and waste; through priority calibration and resource pool division, the user experience when recharging the water meter account is improved, the response delay caused by excessive system load is reduced, and the overall service quality is improved.Step S20123 Dynamic resource allocation is based on the request priority and resource allocation load. The ability to dynamically allocate resources can respond to changes in user requests in real time, especially during peak hours. When user request peaks, computing resources are automatically allocated to high-priority water meter account recharge requests to ensure that key transactions are handled, while flexibly reducing resource supply for low-priority requests to achieve optimal resource configuration. Significance achieved: Through intelligent resource scheduling and dynamic adjustment of priorities, the response speed and processing efficiency of resource allocation under high load conditions are significantly improved; ensuring that stable operation can be maintained in the face of sudden request growth, ensuring business continuity, thereby enhancing user trust and satisfaction.
[0042] In summary, this embodiment realizes a closed loop from data monitoring to resource management, ensuring effective and efficient processing of water meter account recharge requests at all stages. The systematic dynamic resource allocation strategy not only improves resource utilization efficiency and reduces the possibility of failure, but also optimizes user experience, making the service more efficient, reliable and flexible.
[0043] Example 7: Figure 7 As shown, based on Example 4, the process of adjusting the communication link selection provided by the embodiment of the present invention includes the following steps: S2031: Build a comprehensive network monitoring system, dynamically collect key indicators, and define a multi-dimensional state vector to represent the network status at any moment; Parameter definition: Indicates the signal strength (in dBm), indicating the real-time quality of the network signal. Indicates network latency (in milliseconds), which is the time from when a request is sent to when it is received. Indicates the packet loss rate (in percentage), which indicates the proportion of data packets lost during data transmission. Jitter (in milliseconds) measures the speed of delay changes and directly affects the stability of traffic.
[0044] Define a multidimensional state vector , represents the network status at time t: The decisive condition monitoring interval is , update the state vector after each acquisition ; S2032: Set up a complex performance scoring model to comprehensively evaluate the current network performance based on multi-dimensional indicators; use rolling average and deviation quantification to set dynamic thresholds, and use mean and standard deviation to adjust network switching in real time; Overall performance rating , combined with different performance weights, design a complex performance scoring model: in: , , , represents the weight of each parameter, and + + + = 1; Indicates the maximum acceptable delay under current network conditions. If this value is exceeded, the network response is considered poor. Indicates the maximum acceptable packet loss rate under the current network conditions. If this value is exceeded, the data transmission quality cannot be guaranteed. Dynamic threshold setting using rolling average and deviation quantization : in Indicates the length of the historical window period, and uses the mean and standard deviation to adjust the flexibility of network switching in real time; Indicates the dynamic threshold The calculated weight coefficient represents the influence of the mean of historical comprehensive performance scores; Indicates dynamic threshold The standard deviation used in affects the weighting factor, reflecting the fluctuations in historical scores; S2033: Make intelligent link selection decisions based on the results of the complex performance scoring model, trigger the link switching logic, verify the signal strength and delay status of the current 5G link before the switching is executed, and monitor and provide feedback on the performance after the switching; Judging criteria: when( < ), the link switching logic is triggered; at this time, the state transition probability must also be introduced Let's consider the expected network state after link switching: in is a normalization constant to ensure that the transition probability equals 1; Indicates the network status at time (t +1), which can be a collection of parameters such as signal, delay, packet loss rate, etc. Represents a specific state s in the state space S; Before switching, verify the signal strength and latency of the current 5G link to ensure the following conditions: Represents the signal strength of the 5G network. Indicates the minimum acceptable signal strength threshold. If the value is lower than this, the network signal is considered unqualified. Indicates the delay value measured under 5G network conditions. Indicates the packet loss rate in the 5G network. Indicates the jitter value measured in 5G network, in milliseconds. Indicates the acceptable jitter threshold, delay fluctuations exceeding this value may affect network performance; Implement traffic control policies during the switching process, using a priority-based queue mechanism: in It is a high priority request queue with low latency guarantee; It is a low priority request queue; Monitor the performance of the new link during the network status change after the switch: like , then record the switching details and update the weights: in It is the learning rate, which is adaptive and can be adjusted dynamically based on the success or failure of historical switching; Indicates the updated weight value, representing the adjusted impact weight on the performance parameter; Indicates the currently used weight value, which indicates the relative importance of each network performance indicator in the comprehensive score.
[0045] The working principle and beneficial effects of the above technical solution are as follows: This embodiment first constructs a comprehensive network monitoring system, defines a multidimensional state vector by dynamically collecting key indicators, and represents the network status at the moment; secondly, sets a complex performance scoring model to comprehensively evaluate the current network performance based on multidimensional indicators; adopts rolling average and deviation quantization to set dynamic thresholds, and uses mean and standard deviation to adjust network switching in real time; finally, based on the results of the complex performance scoring model, makes intelligent link selection decisions, triggers link switching logic, verifies the signal strength and delay status of the current 5G link before switching, and monitors and feedbacks the performance after switching. Step S2031 of the above scheme constructs a comprehensive network monitoring system, constructs a multidimensional state vector by dynamically collecting key indicators (signal strength, network delay, packet loss rate and jitter), and timely reflects the current network status; determines an effective status monitoring time interval to ensure timely update and response of network data. Significance: Provide accurate and timely basic data for decision-making, making subsequent performance evaluation and link selection more scientific and reliable; by reflecting the network status in real time, potential problems can be quickly identified, and higher quality services can be provided to users. Step S2032 sets a complex performance scoring model and designs a comprehensive performance scoring model based on multi-dimensional indicators. The model considers the impact of different network performance factors in a weighted manner to quantify network performance; the dynamic threshold is set by rolling average and deviation to adjust the flexibility of the network switching logic in real time. Significance: Make performance evaluation more accurate and refined, so that more reasonable decisions can be made under changing network conditions; through the setting of dynamic thresholds, the early warning standards can be adjusted in time according to the volatility of historical data to avoid decision-making errors due to sudden conditions. Step S2033 is based on the intelligent link selection of the complex performance scoring model, which triggers the link switching logic according to the relationship between the comprehensive performance score and the dynamic threshold to improve the intelligence of the decision; the expected network state prediction after link switching is introduced through the state transition probability to make the switching process more stable. Significance: Form a sustainable decision-making mechanism based on performance indicators, enhance the adaptive ability and accuracy of switching, and ensure that the best network status is always maintained; through continuous monitoring and feedback mechanisms, continuously optimize the decision-making algorithm to provide data support for future link selection; signal strength and delay status verification fully verify the signal strength, delay, packet loss rate and jitter of the current 5G link before switching to ensure that the performance of the new link meets expectations. Significance: Through strict quality control, ensure that network users can still obtain stable and high-quality connections after link switching, reducing the risk of user service interruption; traffic control strategy and priority queue mechanism adopt high-priority and low-priority request queue mechanism to ensure that key application traffic is prioritized, thereby improving the overall user experience. Significance: Prioritize important data streams to avoid delays caused by link switching, thereby achieving smooth operation of real-time applications and enhancing user satisfaction.Performance monitoring and feedback after switching monitors the performance changes of the new link, records the effect of switching in a timely manner and updates the decision weights to adapt to changes in the network environment. Significance: By quantifying the performance changes after switching, dynamically optimizing the scoring model, gradually forming self-learning capabilities, and improving the accuracy of the system in future decisions; allowing adaptive adjustment of weights based on historical success or failure, thereby improving the flexibility and adaptability of the system.
[0046] In summary, this embodiment establishes an efficient dynamic monitoring and decision-making mechanism that can perceive and respond to changes in network conditions in real time, and realize intelligent and adaptive link selection. It not only improves the reliability and performance of the network, but also provides users with a better service experience, while providing more powerful data support for network management, ensuring the stable operation of the communication network in a complex environment.
[0047] Example 8: Figure 8 As shown, based on Example 7, the process of adjusting the communication link selection provided by the embodiment of the present invention further includes the following steps: S2034: Introduce edge nodes as data processing centers for local computing and storage. Edge nodes can receive and process data generated on user devices in real time. S2035: Using edge computing, the real-time data processing algorithm is executed on the edge node, so that the link selection and switching decisions can respond to changes in network status in real time; the corresponding decision-making process is described by the following performance model: in, Represents the decision made on the edge node. F is a nonlinear function that contains information about the current state vector N(t), the dynamic threshold T(t), and the user request responsiveness R(t). It enables the edge node to make link selection decisions quickly, reducing the reliance on central processing. S2036: When network conditions change, edge computing uses real-time monitoring data to achieve dynamic link delay management, and quantifies the dynamic adjustment of link delay through the following model: in, is the adjustment value of the link delay, is the latency threshold derived from historical data and real-time status evaluation, and It is a reduction function that reflects the weakening effect of each indicator with good performance in the state vector, ensuring the real-time performance in the decision-making process of the edge node; By establishing a dynamic load scoring function : In the formula, is the weight coefficient, which indicates the relative influence of different edge node processing capabilities. is the response time of node i processing a request at time t, and It is a cost function related to latency, bandwidth, and power consumption; it ensures load balancing in edge computing environments and improves the overall efficiency of link selection.
[0048] The working principle and beneficial effects of the above technical solution are as follows: This embodiment first introduces edge nodes as data processing centers for local computing and storage, and edge nodes can receive and process data generated on user devices in real time; secondly, edge computing is used, and the algorithm for real-time data processing is executed on the edge nodes, so that link selection and switching decisions can respond to changes in network status immediately; finally, when network conditions change, edge computing uses real-time monitoring data to achieve dynamic link delay management. Step S2034 of the above scheme introduces edge nodes as data processing centers for local computing and storage, and edge nodes can receive and process data in real time near user devices, thereby significantly reducing data transmission time and delay; edge nodes are responsible for local computing, reducing the load of the central cloud data center, and improving the response speed and efficiency of the entire system. Significance achieved: Directly processing data at the edge node enables users to obtain faster response time and smoother experience, meeting application scenarios with increasingly higher requirements for immediacy; reducing the need for data transmission to the cloud data center, reducing network bandwidth consumption, especially suitable for scenarios with large amounts of data generation; enabling the system to adapt more quickly to changes in network conditions, and better support mobile and temporary user environments. Step S2035: The algorithm for real-time data processing is executed on the edge node. By executing the algorithm on the edge node, it can quickly respond to changes in network status and make timely link selection and switching decisions; it reduces the dependence on the central processing unit, and decentralized decision-making can reduce the risk of single point failure and improve the robustness of the overall system. Significance achieved: The real-time decision-making process ensures that when the network status changes, the link selection can respond in milliseconds, improving the reliability and stability of communication; the use of edge computing can make the network selection algorithm more intelligent, adjust the link based on dynamic user needs and network status, and intelligent operation can allocate network resources more effectively; as the network scale expands, the introduction of edge nodes enables the system to expand flexibly and adapt to new users and devices without large-scale changes to the central architecture. Step S2036: Dynamic link delay management and intelligent load balancing: based on real-time monitoring data, dynamically adjust the link delay to ensure that the delay is within an acceptable range and optimize network performance; load balancing between different edge nodes is achieved through a dynamic load scoring function, thereby improving the overall network processing efficiency and reducing delays and costs. Significance achieved: Effectively allocate processing tasks of each edge node to avoid overloading of a certain node, ensure the rational use of network resources, and improve overall operational efficiency; real-time monitoring can quickly identify and adjust network problems, enhance network availability, and ensure user connectivity under dynamic conditions; through effective delay management and resource allocation, reduce operating costs, bring economic benefits to operators and service providers, and ensure that users get a high-quality service experience.
[0049] In summary, by introducing these steps of edge computing, this embodiment can not only improve the real-time and efficiency of communication link selection, but also achieve significant improvements in user experience, resource utilization and economic benefits. Each step complements each other and together builds a flexible, efficient and intelligent communication network to provide reliable support for various application scenarios in the future. The above key technical effects and strategic significance constitute the fundamental value of edge computing in the communication system, ensuring that it plays a key role in the sustainable development of future network architectures.
[0050] Example 9: Fig. 9 As shown, based on Example 1, the process of waking up the power of the cash transfer machine provided by the embodiment of the present invention includes the following steps: S301: The cash transfer machine uses an intelligent power management unit and is equipped with a variety of environmental monitoring sensors, including temperature sensors, light sensors, and motion sensors. It monitors the power status of the device in real time and analyzes changes in the surrounding environment. S302: The cash-in machine continuously monitors a wake-up command from a local server in a low-power wireless mode in a standby state. After receiving the wake-up command, the cash-in machine performs multiple verifications and activates the power system after confirming the validity of the wake-up command. S303: After the wake-up mechanism is triggered, the cash-in machine adopts an instantaneous high-power startup strategy to provide instantaneous high-power output to quickly activate the hardware components; monitors the real-time power consumption of each hardware component in the working state; when it is detected that some components are inactive for a long time, adjusts their power consumption; after completing the cash-in, the cash-in machine automatically enters the active sleep mode.
[0051] The working principle and beneficial effects of the above technical solution are as follows: First, in this embodiment, the cash-in machine adopts an intelligent power management unit and is equipped with a variety of environmental monitoring sensors, including temperature sensors, light sensors, and motion sensors, etc.; it monitors the power status of the device in real time and analyzes changes in the surrounding environment; secondly, in the standby state, the cash-in machine continuously listens to the wake-up command from the local server through the low-power wireless mode. After receiving the wake-up command, the cash-in machine performs multiple verifications, and activates the power system after confirming the validity of the wake-up command; finally, after the wake-up mechanism is triggered, the cash-in machine adopts an instantaneous high-power startup strategy to provide instantaneous high-power output in an instant to quickly activate the hardware components; monitors the real-time power consumption of each hardware component in the working state; when it is detected that some components are inactive for a long time, adjusts their power consumption; after completing the cash-in, the cash-in machine automatically enters the active sleep mode. Step S301 of the above scheme is environmental monitoring and status analysis. The sensors equipped in the intelligent power management unit (PMU) of the cash-in machine can monitor the power, temperature, light and surrounding motion status in real time to ensure that the device can adapt to changes in environmental conditions. By analyzing the environment, the device can flexibly adjust its working mode (such as using light energy to assist charging when there is sufficient light), thereby achieving more efficient energy management. Significance achieved: Real-time monitoring and adaptation to the environment make energy use more efficient and reduce unnecessary energy consumption; by monitoring temperature and other environmental factors, it can effectively prevent hardware failures caused by overheating and other reasons, thereby extending the service life of the product; the introduction of multiple sensors makes the device more intelligent and improves the convenience and reliability of user use. Step S302 is low-power monitoring and multiple verification. The cash-in machine keeps monitoring the server wake-up command through the low-power wireless mode in the standby state to ensure that it is ready to wake up at any time without consuming too much power; by performing multiple verifications on the wake-up command, ensuring correct wake-up helps prevent misoperation and unauthorized access and improves the security of the device. Significance achieved: The low-power monitoring mechanism can quickly enable the device after receiving the wake-up command, reducing the user's waiting time and improving the user experience; the multiple verification procedures can effectively prevent the access of malicious commands, improve the security protection capabilities of the entire system, and ensure the safety of user funds; in standby mode, it still maintains sensitivity to external commands, optimizes resource utilization, and achieves efficient management. Step S303 Instantaneous high-power startup and active sleep, the cash machine adopts an instantaneous high-power startup strategy, which can activate all necessary hardware components in a very short time and quickly enter the working state; the device monitors the real-time power consumption of each component in the working state to ensure intelligent switching between active and inactive states to maximize energy saving effects.Significance achieved: Fast startup and operation speeds enable users to complete the cash-in operation more quickly, improving the overall user experience and device responsiveness; after completing the cash-in operation, the device automatically enters active sleep mode, significantly reducing the energy consumption of the device in standby mode, and can save energy without affecting the efficiency of use; through real-time monitoring and adjustment, the cash-in machine can intelligently optimize power consumption under different working conditions, meeting the high requirements of modern equipment for energy efficiency.
[0052] In summary, the wake-up process of the transfer machine in this embodiment not only realizes efficient and intelligent equipment operation, but also further enhances security and provides users with a better user experience, which meets the requirements of modern equipment for energy efficiency and intelligence. In the context of rapidly developing intelligent technology, the design helps to improve the overall service level and user satisfaction of the water meter industry.
[0053] Example 10: Fig.10 As shown, based on Embodiment 1 to Embodiment 9, the embodiment of the present invention provides a rural water supply dedicated IC card smart water meter that can be stored, including: The data cache module is responsible for the user confirming the water meter account through the recharge program of the smart terminal, inputting the recharge amount through the recharge program, and the recharge program sending a water meter account recharge request after the payment is successful; the water meter account recharge request is cached in the local server; The network communication module is responsible for asynchronous processing based on the message queue after the water meter account recharge request is sent to the local server, responding to the user's water meter account recharge request, confirming the transaction completion, and updating the balance; the local server selects the communication network according to the network communication status. When the narrowband IoT communication signal is unqualified, the 5G network is started as an alternative link; The payment transfer module is responsible for waking up the power of the transfer machine according to the communication instructions of the local server, and the transfer machine starts; the transfer machine receives the payment amount sent by the local server, and performs a test when the water card is detected. If the test is qualified, the payment amount is transferred to the water card; after the transfer is completed, the user is prompted to take the water card.
[0054] The working principle and beneficial effects of the above technical solution are as follows: in the data cache module of this embodiment, the user confirms the water meter account through the recharge program of the smart terminal, enters the recharge amount through the recharge program, and after the payment is successful, the recharge program sends a water meter account recharge request; the water meter account recharge request is cached on the local server; after the network communication module water meter account recharge request is sent to the local server, it is asynchronously processed based on the message queue, responds to the user's water meter account recharge request, confirms the transaction completion, and updates the balance; the local server selects a communication network according to the network communication status, and when the narrowband Internet of Things communication signal is unqualified, starts the 5G network as an alternative link; the payment rollover module wakes up the power of the rollover machine according to the communication instruction of the local server, and the rollover machine starts; the rollover machine receives the payment amount sent by the local server, and performs a test when the water card is detected, and rolls the payment amount to the water card after the test is qualified; after the rollover is completed, the user is prompted to take the water card. The data cache module of the above scheme receives the recharge amount entered by the user through the recharge program on the smart terminal, and generates a recharge request for the water meter account after the payment is successful; the recharge request and its related data (such as user ID, recharge amount, request timestamp, etc.) are stored in the cache of the local server to ensure instant access and efficient processing of data. Significance achieved: Improves the response speed of the system and user experience, especially for high-frequency recharge requests, which can reduce the time of repeated database queries and improve overall operation efficiency; ensures the real-time and consistency of data, lays the foundation for subsequent transaction processing and status updates, and enhances the reliability of the system. The network communication module sends the water meter account recharge request to the local server, and implements asynchronous processing based on the message queue to ensure timely response to user requests; automatically selects the communication network according to the network communication status. For example, when the narrowband Internet of Things communication signal is unqualified, the system can intelligently switch to the 5G network as an alternative link to ensure the stability and success rate of request sending. Significance achieved: High-availability network communication is achieved to ensure that recharge requests can be successfully processed in a variety of communication environments, reducing the risk of user experience degradation due to network failures; through the asynchronous processing mechanism, the system can process multiple requests at the same time, improving the concurrent processing capability, thereby increasing the system's efficiency and user satisfaction. The payment transfer module wakes up the transfer machine power supply according to the communication instructions from the local server, starts working and receives payment information; when the transfer machine detects the water card, it can perform a security check and successfully transfer the payment amount to the water card to complete the actual fund transfer. Significance achieved: The security and reliability of the transfer process are guaranteed. By detecting and confirming the status of the water card, accurate transfer of funds is achieved, thereby avoiding user fund losses caused by equipment failure or operational errors; by providing clear user guidance (such as prompting users to take away the water card), the user experience is improved, the user's trust in the system is enhanced, and the entire recharge and transfer process is smoother.
[0055] In summary, this embodiment provides an efficient and smooth user experience for the water meter account recharge system by ensuring fast data processing, secure communication and reliable deposit; the data cache module quickly responds to user requests, the network communication module ensures the stability of data transmission, and the payment deposit module realizes accurate allocation of funds; the coordinated operation of each module not only improves the efficiency and reliability of the system, but also enhances the user's sense of trust, laying the foundation for further business development and upgrading.
[0056] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention belong to the scope of equivalent technologies of the present invention, the present invention is also intended to include these modifications and variations.
Claims
1. A remote payment method for a rural water supply dedicated IC card smart water meter, characterized in that: The following steps are involved: The user confirms the water meter account through the recharge program of the smart terminal, enters the recharge amount through the recharge program, and after the payment is successful, the recharge program sends a water meter account recharge request; the water meter account recharge request is cached in the local server; After the water meter account recharge request is sent to the local server, it is asynchronously processed based on the message queue to respond to the user's water meter account recharge request, confirm the transaction completion, and update the balance; The local server selects a communication network based on the network communication status. When the narrowband IoT communication signal is unqualified, the 5G network is started as an alternative link; The power of the cash transfer machine is awakened according to the communication instruction of the local server, and the cash transfer machine is started; the cash transfer machine receives the payment amount sent by the local server, performs a test when the water card is detected, and transfers the payment amount to the water card after the test is qualified; After the top-up is completed, the user will be prompted to take away the water card.
2. The remote payment method for the rural water supply dedicated rechargeable IC card smart water meter as claimed in claim 1, characterized in that: The process of caching data on the local server for water meter account recharge requests includes the following steps: When a user initiates a water meter account recharge request, a unique request ID is generated; the request ID, the user's water meter account, the recharge amount and the current timestamp information are combined into a data object, and the data object is stored in the memory cache, with the request ID as the unique identifier; When storing the water meter account recharge request data, the initial state is set to pending, and the initial state is reflected in the cache; Users can query the status of water meter account recharge requests in real time through smart terminals; When the status of a recharge request changes, the status in the cache is updated to completed or failed; an expiration time is set in the cache for each recharge request. If it is not processed within the expiration time, the water meter account recharge request is automatically cleared; when processing the same recharge request, the latest status of the data is confirmed by comparing the timestamp.
3. The remote payment method for the rural water supply dedicated rechargeable IC card smart water meter as claimed in claim 2, characterized in that: The process of comparing timestamps to confirm the latest status of data includes the following steps: When a user requests to update the recharge status, a timestamp-based judgment is made to dynamically compare the timestamp carried in the user request with the existing timestamp in the cache to analyze whether there is a potential risk of duplicate submission; During the analysis process, an intelligent rule engine is introduced to generate a priority score for user request status updates based on historical data and pattern recognition. If the timestamp of the request is later than the existing timestamp and the priority score is high, the status update is allowed, and the new status and timestamp are automatically evaluated and adjusted; Otherwise, the update will be rejected and an improvement prompt will be generated; When it is detected that the timestamp requested by the user does not meet the update conditions, relevant information is recorded; Use recommendations for conflicting situations, automatically generate solutions for users to choose from, mark the time to resubmit or provide the option to change the request; Users receive real-time messages through the interface and can choose whether to receive detailed processing suggestions and analysis reports.
4. The remote payment method for the rural water supply dedicated rechargeable IC card smart water meter as claimed in claim 1, characterized in that: The process of the local server selecting a communication network according to the network communication status includes the following steps: The local server receives the water meter account recharge request and performs parameter verification on the request content, including checking the format and range of the recharge amount, and the validity of the user identity; after the parameter verification is passed, the water meter account recharge request is forwarded to the message queue. Each request will be assigned a unique request ID after entering the queue, and the message queue will process the water meter account recharge requests in batches; The local server asynchronously obtains the response to the water meter account recharge request from the message queue and runs in a thread pool mode, processing multiple water meter account recharge requests at the same time; the size of the thread pool is dynamically adjusted according to the load of the water meter account recharge request; When processing water meter account recharge requests, the current narrowband Internet of Things network status is continuously monitored, including signal strength, latency, and packet loss rate. By introducing a dynamic network adaptation algorithm, the local server adjusts the communication link selection based on network status indicators and automatically enables the 5G network.
5. The remote payment method for the rural water supply dedicated rechargeable IC card smart water meter as claimed in claim 4, characterized in that: The process of batch processing of water meter account recharge requests by the message queue includes the following steps: When each water meter account recharge request enters the queue, it is subjected to feature extraction through multi-feature hashing, including request time, user ID, and recharge amount, and a multi-dimensional feature vector is generated; Used to train a multi-class classifier to classify water meter account recharge requests into multiple categories, including high priority, scheduled tasks, large amount requests, and ordinary requests; When water meter account recharge requests are distributed to the message queue, they are divided based on priority, and different processing nodes are set for different types of water meter account recharge requests; resource allocation is dynamically adjusted according to real-time load and response time indicators. In a high concurrency state, the allocation budget for high-priority requests is increased, and processing resources for low-priority requests are automatically reduced; In the process of adjusting resource allocation, real-time feedback on request processing success rate and response time is collected to update resource allocation in real time. After processing a batch of water meter account recharge requests, the results are fed back to resource allocation for fine-tuning.
6. The remote payment method for the rural water supply dedicated rechargeable IC card smart water meter as claimed in claim 5, characterized in that: The process of dynamically adjusting resource allocation based on real-time load and response time indicators includes the following steps: At the beginning of resource allocation, a multi-level data collection architecture is built to monitor resource allocation status and user behavior in real time, including periodic extraction of important performance indicators such as CPU usage, memory consumption, and network latency, user request frequency, type, and timestamp, and real-time monitoring data to form a dynamic status panel; Analyze the relationship between load and response time to instantly determine whether performance standards are met; prioritize current water meter account recharge requests based on user behavior and load; Integrate the existing resource allocation computing resources and storage space to divide them into high-priority and low-priority resource pools. Each pool adjusts its resource scale based on real-time evaluation results. Resources are dynamically allocated based on the priority of water meter account recharge requests and system load.
7. The remote payment method for the rural water supply dedicated rechargeable IC card smart water meter as claimed in claim 6, characterized in that: When there is a peak in user requests, computing units are automatically allocated to high-priority water meter account recharge requests, while reducing resource supply to low-priority water meter account recharge requests.
8. The remote payment method for the rural water supply dedicated rechargeable IC card smart water meter as claimed in claim 4, characterized in that: The process of adjusting the communication link selection includes the following steps: Build a comprehensive network monitoring system, dynamically collect key indicators, and define a multi-dimensional state vector to represent the network status at any moment; Set up a complex performance scoring model to comprehensively evaluate the current network performance based on multi-dimensional indicators; use rolling average and deviation quantification to set dynamic thresholds, and use mean and standard deviation to adjust network switching in real time; Make intelligent link selection decisions based on the results of the complex performance scoring model, trigger the link switching logic, verify the signal strength and delay status of the current 5G link before the switch is executed, and monitor and provide feedback on the performance after the switch.
9. The remote payment method for the rural water supply dedicated rechargeable IC card smart water meter as claimed in claim 8, characterized in that: The process of adjusting the communication link selection also includes the following steps: Introducing edge nodes as data processing centers for local computing and storage. Edge nodes can receive and process data generated on user devices in real time. With edge computing, real-time data processing algorithms are executed on edge nodes, so that link selection and switching decisions can respond to changes in network status in real time; the corresponding decision-making process is described by a performance model; When network conditions change, edge computing uses real-time monitoring data to achieve dynamic link delay management and quantifies the dynamic adjustment of link delay through models.
10. A special IC card intelligent water meter for rural water supply, characterized in that: Include: The data cache module is responsible for the user confirming the water meter account through the recharge program of the smart terminal, inputting the recharge amount through the recharge program, and the recharge program sending a water meter account recharge request after the payment is successful; the water meter account recharge request is cached in the local server; The network communication module is responsible for asynchronous processing based on the message queue after the water meter account recharge request is sent to the local server, responding to the user's water meter account recharge request, confirming the transaction completion, and updating the balance; The local server selects a communication network based on the network communication status. When the narrowband IoT communication signal is unqualified, the 5G network is started as an alternative link; The payment transfer module is responsible for waking up the power of the transfer machine according to the communication command of the local server, and the transfer machine starts; the transfer machine receives the payment amount sent by the local server, and performs a test when the water card is detected. If the test is qualified, the payment amount is transferred to the water card; After the top-up is completed, the user will be prompted to take away the water card.
Citation Information
Patent Citations
System for paying water fee via WeChat
CN106557915A
Intelligent water affair management system and method based on Internet of Things data collection
CN114493221A
Intelligent water affair community system and method based on Internet of Things
CN116801220A
Method for recharging ETC e-wallet stored-value card and prepositive server therefor
CN105631649A
Flow-accounting water selling system and method
CN106952409A
Cited By
Fee control intelligent detection method and system for single-phase fee control intelligent electric energy meter
CN120358260A
Fee control intelligent detection method and system for single-phase fee control intelligent electricity meter
CN120358260B
Data synchronization control method of A-type single-phase Bluetooth prepayment ammeter, storage medium and device
CN120881548A
A data synchronization control method, storage medium and device of a single-phase Bluetooth prepayment electric meter of type A
CN120881548B