A blockchain-based method, apparatus, equipment, and storage medium for greywater management.
By using blockchain technology to determine the demand for recycled water and the wastewater treatment capacity of authorized providers, selecting target providers and assigning tasks, the problem of low efficiency in recycled water management is solved, and timely treatment and efficient use of recycled water are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- XIAN JIAOTONG LIVERPOOL UNIV
- Filing Date
- 2022-01-07
- Publication Date
- 2026-05-05
AI Technical Summary
In existing technologies, the efficiency of greywater management is low and cannot meet the needs of greywater users. Centralized sewage treatment plants have high implementation and management requirements, resulting in low greywater utilization efficiency.
By using blockchain technology, the system responds to the reclaimed water user's request, determines the reclaimed water demand, and obtains the wastewater treatment capacity information of the authorized provider. This allows the system to select a target provider and assign wastewater treatment tasks, enabling the target provider to treat wastewater into reclaimed water for the user. The information is then stored on the blockchain to prevent tampering.
It enables timely treatment and efficient management of reclaimed water, reduces the production pressure on traditional sewage treatment plants, improves the efficiency of reclaimed water management and use, and ensures information security and reliability.
Smart Images

Figure CN114399186B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to computer technology, and in particular to a blockchain-based method, apparatus, equipment and storage medium for managing greywater. Background Technology
[0002] Freshwater scarcity is one of the problems hindering social development, and sustainable recycling and treatment of wastewater from suppliers can help solve the problem of freshwater shortage.
[0003] Households can be the providers of greywater. The current method for treating household wastewater involves transporting the wastewater to a wastewater treatment plant, where it is treated into greywater that can then be used for urban public services. However, centralized wastewater treatment plants have high requirements for implementation and management, and require the centralized treatment of large volumes of wastewater before application. This results in low efficiency in greywater management and consequently, low efficiency in greywater use, failing to meet the needs of greywater users. Summary of the Invention
[0004] This invention provides a blockchain-based method, apparatus, equipment, and storage medium for greywater management, in order to improve the efficiency of greywater management and the utilization efficiency of greywater.
[0005] In a first aspect, embodiments of the present invention provide a blockchain-based greywater management method, which is executed by blockchain nodes and includes:
[0006] In response to a greywater user's greywater acquisition instruction, the greywater user's greywater acquisition needs are determined, and the greywater acquisition needs are stored on the blockchain.
[0007] Obtain wastewater treatment capacity information from the preset credit provider;
[0008] Based on the reclaimed water acquisition needs and the wastewater treatment capacity information, a target provider is determined from the credit providers, and the wastewater treatment task of the target provider is determined, so that the target provider can provide reclaimed water to the reclaimed water user according to the wastewater treatment task.
[0009] Secondly, embodiments of the present invention also provide a blockchain-based greywater management device, which is configured on a blockchain node and includes:
[0010] The greywater acquisition demand determination module is used to respond to the greywater acquisition instruction of the greywater user, determine the greywater acquisition demand of the greywater user, and store the greywater acquisition demand on the blockchain.
[0011] The wastewater treatment capacity information acquisition module is used to acquire wastewater treatment capacity information of a preset credit provider;
[0012] The greywater supply module is used to determine a target provider from the credit providers based on the greywater acquisition demand and the sewage treatment capacity information, and to determine the sewage treatment task of the target provider, so as to enable the target provider to provide greywater to the greywater user according to the sewage treatment task.
[0013] Thirdly, embodiments of the present invention also provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the blockchain-based greywater management method as described in any embodiment of the present invention.
[0014] Fourthly, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform the blockchain-based greywater management method as described in any embodiment of the present invention.
[0015] This invention, in response to a user's request for greywater, determines the greywater acquisition need and obtains pre-set wastewater treatment capacity information from various authorized providers. Based on the greywater acquisition need and the wastewater treatment capacity information of each authorized provider, a target provider capable of providing greywater is selected from the authorized providers. A wastewater treatment task is assigned to the target provider, enabling it to treat its own wastewater into greywater and provide it to the user. Wastewater treatment and greywater usage information is stored on the blockchain to prevent tampering and facilitates monitoring and management of urban water use. This solves the problem in existing technologies where wastewater is centrally treated into greywater before being provided to users, enabling timely wastewater treatment and direct greywater supply from the target provider to the user, thus improving the management and utilization efficiency of greywater. Attached Figure Description
[0016] Figure 1 This is a schematic diagram of a blockchain-based greywater management method according to Embodiment 1 of the present invention;
[0017] Figure 2 This is a schematic diagram of a blockchain-based greywater management method according to Embodiment 2 of the present invention;
[0018] Figure 3 This is a structural block diagram of a blockchain-based greywater management device according to Embodiment 3 of the present invention;
[0019] Figure 4 This is a schematic diagram of a blockchain-based greywater management device according to Embodiment 4 of the present invention. Detailed Implementation
[0020] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the present invention, and not all of the structures.
[0021] Example 1
[0022] Figure 1 This is a flowchart illustrating a blockchain-based greywater management method according to Embodiment 1 of the present invention. This embodiment is applicable to situations where domestic sewage is treated into greywater for use. The method can be executed by a greywater management device on a blockchain node. Figure 1 As shown, the method specifically includes the following steps:
[0023] Step 110: In response to the greywater user's greywater acquisition instruction, determine the greywater user's greywater acquisition needs and store the greywater acquisition needs on the blockchain.
[0024] Reclaimed water is treated wastewater that is not suitable for drinking. Users of reclaimed water can be urban reclaimed water purchasers, who can then procure it for urban greening, cleaning, and construction projects. When a user needs reclaimed water, they can send a reclaimed water retrieval command to a blockchain node. Upon receiving the command, the node determines the user's reclaimed water requirement. For example, the command might include the user's digital information, the expected usage time, and the required quantity. If the user needs one ton of reclaimed water the next day, the request will be to provide one ton of reclaimed water the following day. The retrieved reclaimed water requirements are stored on the blockchain to prevent tampering and facilitate subsequent reclaimed water transactions and management.
[0025] In this embodiment, optionally, storing the greywater acquisition requirement on the blockchain includes: encrypting the greywater acquisition requirement according to a preset encryption algorithm, and uploading the encrypted greywater acquisition requirement to the blockchain for storage.
[0026] Specifically, when storing reclaimed water acquisition requirements on the blockchain, these requirements can be encrypted before being uploaded. The preset encryption algorithm can be a hash algorithm. For example, if the reclaimed water acquisition requirement is a procurement plan from a reclaimed water purchaser, the procurement plan can be hashed and encrypted, and the encrypted string can be uploaded to the blockchain for storage. The benefits of this approach include preventing tampering with the reclaimed water acquisition requirements, leveraging the underlying encryption principles of the blockchain to address information security and reliability in the distributed wastewater treatment industry, and improving the accuracy of information storage. Furthermore, a timestamp can be obtained during on-chain storage, which can be used to address the timeliness issues in reclaimed water use and production, facilitating reclaimed water management and improving its efficiency and accuracy.
[0027] Step 120: Obtain the wastewater treatment capacity information of the preset credit provider.
[0028] The credit provider can be a registered user providing greywater within the blockchain-based greywater management system; for example, a credit provider can be a household. A greywater treatment device can be installed at the provider's sewer line to directly treat the provider's domestic sewage into greywater. When granting credit to registered providers, their sewage treatment capacity information can be pre-stored. This information may include the provider's ID, geographical location, sewage generation volume within a preset time unit, and greywater generation volume within the same preset time unit. The sewage generation volume within a preset time unit can be the amount of sewage produced by the provider within a short, preset time period; the greywater generation volume within a preset time unit can be the amount of sewage treated into greywater by the provider within that short, preset time period. For example, the sewage generation volume within a preset time unit might be the amount of sewage produced in one day, and the greywater generation volume within a preset time unit might be the amount of greywater produced in one day. Wastewater treatment capacity information can be obtained by the credit provider after the equipment supplier assesses the provider's water consumption during installation, or it can be obtained by monitoring the credit provider's wastewater treatment capacity through the installed greywater treatment system after the credit provider registers. For example, the amount of wastewater generated and greywater generated by the credit provider within a preset time unit can be collected through the greywater treatment system as the credit provider's wastewater treatment capacity information.
[0029] The wastewater treatment capacity information of the credit provider can be uploaded to the blockchain node and updated periodically or in real time. For example, the wastewater treatment capacity information can be updated based on the wastewater generation and reclaimed water generation collected by the reclaimed water device. Upon responding to the reclaimed water user's reclaimed water acquisition instruction, the pre-stored wastewater treatment capacity information of the credit provider can be obtained, facilitating subsequent wastewater reuse management based on the wastewater treatment capacity information.
[0030] Step 130: Based on the demand for reclaimed water and the information on sewage treatment capacity, identify the target provider from the credit providers and determine the sewage treatment tasks of the target provider, so that the target provider can provide reclaimed water to the reclaimed water user according to the sewage treatment tasks.
[0031] The reclaimed water obtained from wastewater treatment by the credit provider can be supplied to reclaimed water users to meet their needs. Since the required amount of reclaimed water is limited, one or more providers can be selected from the credit providers as target providers to supply reclaimed water to the users. For example, if a user needs 1 ton of reclaimed water and there are 10 credit-granted households that can produce a total of 2 tons, then some of these households can be selected as target households to supply water to the user, thus avoiding waste.
[0032] The process involves determining the reclaimed water user's needs and the wastewater treatment capacity of multiple credit providers. Based on these needs, a target provider is selected from the credit providers; for example, the provider closest to the user can be chosen as the target provider. Wastewater treatment tasks are then assigned to the target provider based on the reclaimed water needs. If there is only one target provider, the reclaimed water needs are directly assigned as wastewater treatment tasks. If there are multiple target providers, the needs can be divided into multiple wastewater treatment tasks, with one task assigned to each target provider. For example, if the needs are for 1 ton of reclaimed water and there are 10 target providers, 10 wastewater treatment tasks can be created, each requiring 100 kg of reclaimed water. These 10 tasks are then assigned to 10 target providers.
[0033] After receiving a wastewater treatment task, the target provider treats the wastewater into reclaimed water and transports it to the user's storage tank via pre-set pipelines for use. In this embodiment, the wastewater treatment task allocation information can also be uploaded to a blockchain node for storage.
[0034] In this embodiment, optionally, the greywater acquisition demand includes the geographical location of the greywater user and the amount of greywater demanded. Accordingly, based on the greywater acquisition demand and wastewater treatment capacity information, a target provider is determined from the credit providers, including: determining at least one candidate provider from the credit providers based on the geographical location of the greywater user and the geographical location of the credit providers, according to preset geographical location screening conditions; and determining at least one target provider from the candidate providers based on the amount of greywater demanded and the amount of greywater generated by the candidate providers within a preset time unit, according to preset greywater demand allocation rules.
[0035] Specifically, the greywater acquisition demand can include the greywater user's ID, geographical location, and the amount of greywater needed. The greywater user's geographical location can be the location of their pre-set greywater storage tank. Wastewater treatment capacity information includes the geographical location of the credit provider. A pre-set geographical location filtering condition is used. Based on the geographical locations of the greywater user and the credit provider, at least one candidate provider is selected from the credit providers. The geographical location filtering condition can be to filter credit providers within a pre-set radius centered on the greywater user's geographical location. Alternatively, credit providers located in the same city as the greywater user can be selected as candidate providers. Another geographical location filtering condition can be to determine the distance between each credit provider and the greywater user, sort the distances from smallest to largest, and select credit providers within a pre-set sorted range as candidate providers. For example, the 10 credit households closest to the greywater user can be selected as candidate households.
[0036] Determine the amount of greywater generated by candidate providers within a preset time unit. Pre-set greywater demand allocation rules, and based on the greywater demand and the amount of greywater generated by candidate providers within the preset time unit, determine at least one target provider from the candidate providers. The greywater demand allocation rules could be that the target provider is selected from the candidate providers such that the total greywater production of the target provider within a certain period is greater than or equal to the greywater demand of the greywater user during that period. For example, if the greywater user needs 1 ton of greywater and there are 10 candidate providers, of which 5 can each produce 110 kg of greywater and the other 5 can each produce 210 kg of greywater, then the 5 candidate providers producing 210 kg of greywater can be determined as the target providers. The advantage of this setup is that it allows the target provider to be determined from multiple authorized providers, and only the target provider delivers greywater to the greywater user, avoiding greywater waste, decentralizing wastewater treatment by providers, reducing the production pressure on traditional wastewater treatment plants, and improving the efficiency of greywater management.
[0037] In this embodiment, optionally, the greywater acquisition requirement also includes a greywater demand time period; correspondingly, determining the wastewater treatment task of the target provider includes: determining the target greywater supply amount of the target provider within the greywater demand time period based on the greywater demand amount and the greywater generation amount of the target provider within a preset time unit; and allocating wastewater treatment tasks to the target provider based on the target greywater supply amount.
[0038] Specifically, the demand for greywater can also include a time period for greywater demand. This time period is the time during which the greywater user needs to use the greywater; for example, it could be the next day or a week. The greywater generation volume of the target provider within a preset time unit is determined. Based on the greywater demand time period, the maximum amount of greywater that each target provider can provide within that time period is determined. Based on the greywater demand and the maximum amount of greywater that the target provider can provide, the amount of greywater that the target provider needs to provide within the greywater demand time period is determined, which is the target greywater supply volume. The target provider can provide a maximum of 200 kg of greywater within the greywater demand time period, but the target greywater supply volume can be less than or equal to 200 kg; for example, it can be as low as 100 kg.
[0039] For example, the greywater demand period is one day, and there are three target suppliers. Supplier 1 can provide a maximum of 20 kg of greywater per day, Supplier 2 can provide a maximum of 20 kg of greywater per day, and Supplier 3 can provide a maximum of 15 kg of greywater per day. If the greywater demand period is one day and the demand is 40 kg, then the target greywater supply for Supplier 1 can be set at 15 kg, the target greywater supply for Supplier 2 at 15 kg, and the target greywater supply for Supplier 3 at 10 kg.
[0040] It should be noted that the target amount of greywater provided should be slightly less than the amount of greywater generated by the credit provider within a preset time unit, in order to cope with possible production errors in real-world scenarios and ensure that every greywater demand of the greywater user can be met.
[0041] Based on the target reclaimed water supply volume of each target provider, wastewater treatment tasks are generated and allocated to each provider. Each wastewater treatment task can include the target reclaimed water supply volume and the time period for which the reclaimed water is needed, enabling the provider to generate the target amount of reclaimed water within the specified time period. For example, the wastewater treatment task assigned to target provider 001 could be to generate 10 kg of reclaimed water per day and deliver it to the user. This approach reduces the production pressure on traditional wastewater treatment plants, avoids the need for large-scale wastewater recycling management, and improves the efficiency and accuracy of reclaimed water management. Storing the wastewater treatment tasks on the blockchain facilitates subsequent review and monitoring.
[0042] The technical solution of this embodiment, in response to the reclaimed water user's reclaimed water acquisition instruction, determines the reclaimed water acquisition demand and obtains the wastewater treatment capacity information of each pre-set trusted provider. Based on the reclaimed water acquisition demand and the wastewater treatment capacity information of each trusted provider, a target provider capable of providing reclaimed water is selected from the trusted providers. Wastewater treatment tasks are assigned to the target provider, enabling it to treat its own wastewater into reclaimed water and provide it to the reclaimed water user. The wastewater treatment and reclaimed water usage information is stored on the blockchain to prevent tampering of wastewater treatment information, which is beneficial for monitoring and managing urban water use. This solves the problem in existing technologies where wastewater is centrally treated into reclaimed water before being provided to the reclaimed water user, achieving timely wastewater treatment and providing reclaimed water directly from the target provider to the reclaimed water user, thus improving the efficiency of wastewater recycling management and the efficiency of reclaimed water use.
[0043] Example 2
[0044] Figure 2 This is a flowchart illustrating a blockchain-based greywater management method according to Embodiment 2 of the present invention. This embodiment is an optional embodiment based on the above embodiments, and the method can be executed by a blockchain-based greywater management device. Figure 2 As shown, the method specifically includes the following steps:
[0045] Step 210: In response to the greywater user's greywater acquisition instruction, determine the greywater user's greywater acquisition needs and store the greywater acquisition needs on the blockchain.
[0046] Step 220: Obtain the wastewater treatment capacity information of the preset credit provider.
[0047] Step 230: Based on the demand for reclaimed water and the information on sewage treatment capacity, identify the target provider from the credit providers and determine the sewage treatment tasks of the target provider, so that the target provider can provide reclaimed water to the reclaimed water user according to the sewage treatment tasks.
[0048] Step 240: Obtain the actual amount of recycled water supplied by the target provider during the time period of recycled water demand.
[0049] Each credit provider's pipeline is equipped with a greywater collection device, which can collect data on the provider's wastewater recycling status in real time or at set intervals. Wastewater recycling data can include the amount of wastewater generated and greywater produced within a preset time unit. After receiving wastewater treatment tasks from each target provider, the target provider's greywater collection device can collect the actual amount of greywater supplied during the greywater demand period; that is, the amount of greywater actually produced by the target provider during that period. This actual greywater supply can be stored on the blockchain, updating pre-stored wastewater treatment capacity information. For example, if the target provider's wastewater production changes within a preset time unit, the pre-stored wastewater production information can be updated.
[0050] Step 250: Based on the actual amount of reclaimed water supplied and the target amount of reclaimed water supplied, determine whether the target supplier has completed the wastewater treatment task.
[0051] The process involves determining the actual amount of reclaimed water provided by each target provider. Based on this actual amount and the corresponding target amount, it's determined whether the target provider has completed the wastewater treatment task. For example, the actual and target amounts can be compared. If the actual amount is equal to or greater than the target amount, the target provider is deemed to have completed the task; otherwise, it's deemed not to have completed it. The results of the wastewater treatment are then stored on the blockchain, with a timestamp recording the storage time.
[0052] Step 260: If yes, then according to the preset blockchain smart contract, the actual amount of water provided by the target provider will be settled through transaction, and the transaction settlement information will be stored on the blockchain.
[0053] The system employs a pre-set blockchain smart contract as a reward mechanism for the provider of recycled water. If the provider completes its wastewater treatment task, the smart contract settles the transaction based on the actual amount of recycled water provided, determining the reward value and storing the settlement information on the blockchain. This settlement information can include the settlement time and reward value. Tokens can be used as rewards; for example, if the smart contract stipulates that the reward for trading one kilogram of recycled water is one token, the token value to be paid to the provider can be determined based on the actual amount of recycled water provided. A preset error threshold can also be used to determine the difference between the actual and target amounts of recycled water provided. A pre-defined blockchain algorithm verifies whether this error value falls within the preset threshold. If it does, the provider is deemed to have completed the wastewater treatment task, and token settlement can be performed according to the smart contract. Using smart contracts to reward participants in wastewater treatment with tokens—that is, rewarding the provider—can increase residents' enthusiasm for the sustainable use of domestic wastewater. Information stored on the blockchain can be encrypted using the underlying cryptographic algorithms, which can solve information security issues, ensure the authenticity and reliability of wastewater treatment data and token feedback obtained by each participant, and improve the reliability of greywater management.
[0054] In this embodiment, optionally, after determining whether the target provider has completed the sewage treatment task, the method further includes: if the target provider has not completed the sewage treatment task, then marking the reclaimed water user's reclaimed water acquisition demand with a warning message and broadcasting it to the node.
[0055] Specifically, if the target supplier fails to complete the wastewater treatment task, it is determined that the user's demand for reclaimed water has not been met, and the target supplier's reclaimed water production does not meet the required standard. A warning message can be marked on the blockchain to indicate the user's reclaimed water demand, reminding staff to continue providing reclaimed water to the user. This warning message is broadcast to all nodes on the network to facilitate reclaimed water collection, improve the efficiency of reclaimed water use, and address the problem of insufficient information exchange throughout the traditional wastewater treatment process.
[0056] An error threshold can be preset. If the difference between the amount of reclaimed water provided and the target amount exceeds the error threshold, the system can notify the provider's wastewater treatment unit to perform a self-check. If the self-check result indicates a mechanical failure, staff will be notified to perform repairs. If the self-check result indicates unknown data tampering, the system will warn all network nodes about the location behavior of the provider's terminal and suspend the provider's data upload to the blockchain. If the self-check result indicates that the amount of reclaimed water produced is insufficient, the system will reduce the provider's preset wastewater treatment capacity, reduce its revenue feedback, and allocate excess treatment capacity from other providers to supplement the unfulfilled targets.
[0057] This invention, in response to a user's request for greywater, determines the greywater acquisition need and obtains pre-set wastewater treatment capacity information from various authorized providers. Based on the greywater acquisition need and the wastewater treatment capacity information of each authorized provider, a target provider capable of providing greywater is selected from the authorized providers. A wastewater treatment task is assigned to the target provider, enabling it to treat its own wastewater into greywater for use by the user. Wastewater treatment and greywater usage information is stored on the blockchain to prevent tampering and facilitates urban water use monitoring and management. Determining whether the target provider meets the greywater acquisition need facilitates efficient greywater management, and rewards providers who complete tasks, increasing user enthusiasm for wastewater treatment. This invention solves the problem in existing technologies where wastewater is centrally treated into greywater before being provided to users, achieving timely wastewater treatment and providing greywater directly from the target provider to the user, thus improving wastewater recycling management efficiency and greywater utilization efficiency.
[0058] Example 3
[0059] Figure 3 This is a structural block diagram of a blockchain-based greywater management device provided in Embodiment 3 of the present invention. It can execute a blockchain-based greywater management method provided in any embodiment of the present invention. The device is configured on a blockchain node and possesses the corresponding functional modules and beneficial effects for executing the method. For example... Figure 3 As shown, the device specifically includes:
[0060] The greywater acquisition demand determination module 301 is used to respond to the greywater acquisition instruction of the greywater user, determine the greywater acquisition demand of the greywater user, and store the greywater acquisition demand on the blockchain.
[0061] Wastewater treatment capacity information acquisition module 302 is used to acquire wastewater treatment capacity information of a preset credit provider;
[0062] The greywater supply module 303 is used to determine a target provider from the credit providers based on the greywater acquisition demand and the sewage treatment capacity information, and to determine the sewage treatment task of the target provider, so as to enable the target provider to provide greywater to the greywater user according to the sewage treatment task.
[0063] Optionally, the greywater acquisition demand determination module 301 includes:
[0064] The demand storage unit is used to encrypt the greywater acquisition demand according to a preset encryption algorithm, and upload the encrypted greywater acquisition demand to the blockchain for storage.
[0065] Optionally, the wastewater treatment capacity information includes the credit provider's ID, geographical location, wastewater generation within a preset time unit, and reclaimed water generation within a preset time unit.
[0066] Optionally, the requirements for greywater access include the geographical location of the greywater user and the amount of greywater required;
[0067] Accordingly, the greywater supply module 303 includes:
[0068] The candidate provider determination unit is used to determine at least one candidate provider from the credit providers based on the geographical location of the wastewater user and the geographical location of the credit provider, according to preset geographical location screening conditions;
[0069] The target provider determination unit is used to determine at least one target provider from the candidate providers based on the reclaimed water demand and the reclaimed water generation of the candidate providers within a preset time unit, and based on a preset reclaimed water demand allocation rule.
[0070] Optionally, the demand for recycled water also includes the time period for recycled water demand;
[0071] Accordingly, the greywater supply module 303 also includes:
[0072] The target greywater supply determination unit is used to determine the target greywater supply amount of the target provider within the greywater demand period based on the greywater demand and the greywater generation amount of the target provider within a preset time unit.
[0073] The wastewater treatment task allocation unit is used to allocate the wastewater treatment task to the target provider based on the target water supply volume.
[0074] Optionally, the device may also include:
[0075] The actual greywater supply determination module is used to determine the actual greywater supply of the target provider within the greywater demand period after determining the target provider from the credit providers based on the greywater acquisition demand and the sewage treatment capacity information, and determining the sewage treatment task of the target provider.
[0076] The wastewater treatment task completion module is used to determine whether the target provider has completed the wastewater treatment task based on the actual amount of reclaimed water provided and the target amount of reclaimed water provided.
[0077] The transaction settlement module is used to, if so, settle the transaction for the actual amount of water provided by the target provider according to the preset blockchain smart contract, and store the transaction settlement information on the blockchain.
[0078] Optionally, the device may also include:
[0079] The warning information broadcasting module is used to mark the wastewater acquisition needs of the wastewater user with a warning message and broadcast it to the node if the target provider has not completed the wastewater treatment task after determining whether the target provider has completed the wastewater treatment task.
[0080] This invention, in response to a user's request for greywater, determines the greywater acquisition need and obtains pre-set wastewater treatment capacity information from various authorized providers. Based on the greywater acquisition need and the wastewater treatment capacity information of each authorized provider, a target provider capable of providing greywater is selected from the authorized providers. A wastewater treatment task is assigned to the target provider, enabling it to treat its own wastewater into greywater and provide it to the user. Wastewater treatment and greywater usage information is stored on the blockchain to prevent tampering and facilitates monitoring and management of urban water use. This solves the problem in existing technologies where wastewater is centrally treated into greywater before being provided to users, enabling timely wastewater treatment and direct greywater supply from the target provider to the user, thus improving the management and utilization efficiency of greywater.
[0081] Example 4
[0082] Figure 4 This is a schematic diagram of a blockchain-based greywater management device provided in Embodiment 4 of the present invention. The blockchain-based greywater management device is an electronic device. Figure 4 A block diagram is shown of an exemplary electronic device 400 suitable for implementing embodiments of the present invention. Figure 4 The electronic device 400 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0083] like Figure 4 As shown, the electronic device 400 is presented in the form of a general-purpose computing device. The components of the electronic device 400 may include, but are not limited to: one or more processors or processing units 401, system memory 402, and bus 403 connecting different system components (including system memory 402 and processing unit 401).
[0084] Bus 403 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. Examples of these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.
[0085] Electronic device 400 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by electronic device 400, including volatile and non-volatile media, removable and non-removable media.
[0086] System memory 402 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 404 and / or cache memory 405. Electronic device 400 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 406 may be used to read and write non-removable, non-volatile magnetic media (… Figure 4 Not shown; usually referred to as a "hard drive"). Although Figure 4 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 403 via one or more data media interfaces. Memory 402 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of the present invention.
[0087] A program / utility 408 having a set (at least one) of program modules 407 may be stored, for example, in memory 402. Such program modules 407 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 407 typically perform the functions and / or methods described in the embodiments of the present invention.
[0088] Electronic device 400 can also communicate with one or more external devices 409 (e.g., keyboard, pointing device, display 410, etc.), and with one or more devices that enable a user to interact with the electronic device 400, and / or with any device that enables the electronic device 400 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed through input / output (I / O) interface 411. Furthermore, electronic device 400 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) through network adapter 412. Figure 4 As shown, network adapter 412 communicates with other modules of electronic device 400 via bus 403. It should be understood that, although... Figure 4As not shown, other hardware and / or software modules may be used in conjunction with electronic device 400, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0089] The processing unit 401 executes various functional applications and data processing by running programs stored in the system memory 402, such as implementing a blockchain-based greywater management method provided in this embodiment of the invention, including:
[0090] In response to a greywater user's greywater acquisition instruction, the greywater user's greywater acquisition needs are determined, and the greywater acquisition needs are stored on the blockchain.
[0091] Obtain wastewater treatment capacity information from the preset credit provider;
[0092] Based on the reclaimed water acquisition needs and the wastewater treatment capacity information, a target provider is determined from the credit providers, and the wastewater treatment task of the target provider is determined, so that the target provider can provide reclaimed water to the reclaimed water user according to the wastewater treatment task.
[0093] Example 5
[0094] Embodiment 5 of the present invention also provides a storage medium containing computer-executable instructions, on which a computer program is stored. When executed by a processor, the program implements a blockchain-based greywater management method as provided in the embodiments of the present invention, including:
[0095] In response to a greywater user's greywater acquisition instruction, the greywater user's greywater acquisition needs are determined, and the greywater acquisition needs are stored on the blockchain.
[0096] Obtain wastewater treatment capacity information from the preset credit provider;
[0097] Based on the reclaimed water acquisition needs and the wastewater treatment capacity information, a target provider is determined from the credit providers, and the wastewater treatment task of the target provider is determined, so that the target provider can provide reclaimed water to the reclaimed water user according to the wastewater treatment task.
[0098] The computer storage medium of this invention can be any combination of one or more computer-readable media. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0099] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.
[0100] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0101] Computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0102] Note that the above description is merely a preferred embodiment of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of the present invention, the scope of which is determined by the scope of the appended claims.
Claims
1. A blockchain-based method for managing greywater, characterized in that, The method is executed by a blockchain node, and the method includes: In response to a greywater user's greywater acquisition instruction, the greywater user's greywater acquisition needs are determined, and the greywater acquisition needs are stored on the blockchain. Obtain wastewater treatment capacity information from the preset credit provider; Based on the reclaimed water acquisition needs and the wastewater treatment capacity information, a target provider is determined from the credit providers, and the wastewater treatment task of the target provider is determined, so that the target provider can provide reclaimed water to the reclaimed water user according to the wastewater treatment task; After determining the target provider from the credit providers based on the reclaimed water acquisition demand and the wastewater treatment capacity information, and determining the wastewater treatment task of the target provider, the method further includes: Obtain the actual amount of reclaimed water supplied by the target provider during the reclaimed water demand period; Based on the actual amount of reclaimed water provided and the target amount of reclaimed water provided, determine whether the target provider has completed the wastewater treatment task; If so, then according to the preset blockchain smart contract, the actual amount of water provided by the target provider will be settled through transaction, and the transaction settlement information will be stored on the blockchain. The step of determining whether the target water provider has completed the wastewater treatment task based on the actual wastewater supply and the target wastewater supply also includes: Preset error threshold; Based on the error threshold, the difference between the actual water supply and the target water supply is calculated; If the difference exceeds the error threshold, the wastewater supplier is notified to conduct a self-inspection of the wastewater treatment unit. If the self-test result indicates a mechanical fault, then notify the staff to carry out repairs. If the self-inspection result indicates the presence of unknown data tampering, then the data upload of the wastewater provider to the blockchain will be suspended. If the self-inspection result indicates that the amount of reclaimed water does not meet the standard, the preset sewage treatment capacity of the reclaimed water provider will be reduced; wherein, the credit provider is a credit-granting household; The wastewater treatment capacity information includes the credit provider's ID number, geographical location, wastewater generation within a preset time unit, and greywater generation within a preset time unit.
2. The method according to claim 1, characterized in that, The requirement for obtaining greywater is stored on the blockchain, including: The request for recycled water is encrypted according to a preset encryption algorithm, and the encrypted request is uploaded to the blockchain for storage.
3. The method according to claim 1, characterized in that, The demand for greywater includes the geographical location of the greywater user and the amount of greywater required; Accordingly, based on the reclaimed water acquisition needs and the wastewater treatment capacity information, a target provider is determined from the credit providers, including: Based on the geographical location of the wastewater user and the geographical location of the credit provider, and using preset geographical location filtering conditions, at least one candidate provider is determined from the credit providers; Based on the reclaimed water demand and the amount of reclaimed water generated by the candidate providers within a preset time unit, at least one target provider is determined from the candidate providers according to a preset reclaimed water demand allocation rule.
4. The method according to claim 3, characterized in that, The demand for recycled water also includes the time period for the demand. Accordingly, determining the wastewater treatment task of the target provider includes: Based on the reclaimed water demand and the reclaimed water production of the target provider within a preset time unit, determine the target reclaimed water supply volume of the target provider within the reclaimed water demand period. The wastewater treatment task is assigned to the target provider based on the water supply volume in the target.
5. The method according to claim 1, characterized in that, After determining whether the target provider has completed the wastewater treatment task, the process also includes: If the target provider fails to complete the wastewater treatment task, a warning message will be marked on the reclaimed water user's reclaimed water acquisition request, and the message will be broadcast to the node.
6. A blockchain-based greywater management device, characterized in that, The device is configured on a blockchain node, and the device includes: The greywater acquisition demand determination module is used to respond to the greywater acquisition instruction of the greywater user, determine the greywater acquisition demand of the greywater user, and store the greywater acquisition demand on the blockchain. The wastewater treatment capacity information acquisition module is used to acquire wastewater treatment capacity information of preset credit providers; The greywater supply module is used to determine a target provider from the credit providers based on the greywater acquisition demand and the sewage treatment capacity information, and to determine the sewage treatment task of the target provider, so as to enable the target provider to provide greywater to the greywater user according to the sewage treatment task; The actual greywater supply determination module is used to determine the actual greywater supply of the target provider within the greywater demand period after determining the target provider from the credit providers based on the greywater acquisition demand and the sewage treatment capacity information, and determining the sewage treatment task of the target provider. The wastewater treatment task completion module is used to determine whether the target provider has completed the wastewater treatment task based on the actual amount of reclaimed water provided and the target amount of reclaimed water provided. The transaction settlement module is used to, if so, settle the transaction for the actual amount of water provided by the target provider according to the preset blockchain smart contract, and store the transaction settlement information on the blockchain. The wastewater treatment task completion module is also used to preset an error threshold; calculate the difference between the actual amount of reclaimed water provided and the target amount of reclaimed water provided based on the error threshold; if the difference exceeds the error threshold, notify the reclaimed water provider to perform a self-inspection of the wastewater treatment unit; if the self-inspection result is a mechanical failure, notify staff to carry out repairs; if the self-inspection result is unknown data tampering, suspend the reclaimed water provider's data uploading to the blockchain; if the self-inspection result is that the reclaimed water volume does not meet the standard, reduce the preset wastewater treatment capacity information of the reclaimed water provider. The credit provider is the credit-granting household; The wastewater treatment capacity information includes the credit provider's ID number, geographical location, wastewater generation within a preset time unit, and greywater generation within a preset time unit.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the blockchain-based greywater management method as described in any one of claims 1-5.
8. A storage medium containing computer-executable instructions, characterized in that, The computer-executable instructions, when executed by a computer processor, are used to perform the blockchain-based greywater management method as described in any one of claims 1-5.
Citation Information
Patent Citations
Electric power transaction settlement system with virtual electric meter based on block chain, and settlement and account issuing method
CN110880130A
Water resource traceability management system
CN113177730A