Double-offline transaction authentication method and system of Bluetooth water control system

By introducing a dual offline transaction authentication method into the Bluetooth water control system, the user-end APP detects the communication status and switches to the cloud server to realize user identity authentication and transaction processing, solving the problem of water interruption caused by device offline and ensuring the continuity and reliability of transactions.

CN121504458APending Publication Date: 2026-02-10NEWCAPEC ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511621208.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-07
Publication Date
2026-02-10

AI Technical Summary

Technical Problem

Existing Bluetooth water control systems cannot perform transactions properly when the device or local server is offline, which affects the user's water usage experience.

Method used

The system employs a dual offline transaction authentication method. The user's mobile app detects the communication status and switches to the cloud server. The Bluetooth water control device is used to complete the user's identity authentication in an offline scenario, and the consumption order is uploaded after the connection is restored on the local server.

Benefits of technology

To ensure users can continue their transactions normally when system services are down or the network is interrupted, to guarantee the continuity and reliability of water services, and to reduce user complaints.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121504458A_ABST
    Figure CN121504458A_ABST
Patent Text Reader

Abstract

The invention provides a double offline transaction authentication method and system of a Bluetooth water control system, and the method comprises the steps: switching the communication connection with a cloud server when the communication state of a user side APP and a local server is abnormal, and loading a water service interface; bluetooth connection is established between the water use service interface and the Bluetooth water control equipment; the water use service interface sends the water use code to Bluetooth water control equipment, the Bluetooth water control equipment verifies the water use code and the risk control parameters, and after verification is passed, the Bluetooth water control equipment generates an order number and executes valve opening operation; the Bluetooth water control device receives the water use ending instruction, closes the valve, generates a consumption order and stores the consumption order, and when communication between the Bluetooth water control device and the local server is recovered, the Bluetooth water control device automatically uploads the consumption order to the local server to complete order processing. The invention provides a reliable security authentication method to ensure the integrity and legality of transaction data.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of Bluetooth water control technology, in particular to a double-offline transaction authentication method and system of a Bluetooth water control system, especially for the special working condition that the Bluetooth terminal and the background service are offline at the same time, that is, double-offline, a reliable and safe authentication method is provided to ensure the integrity and legality of transaction data. BACKGROUND

[0002] At present, intelligent water control management systems based on wireless communication have been widely used in campus shower, direct drinking water and other scenes. Such systems usually use 4G, Bluetooth and other wireless communication terminals to avoid the cumbersome laying of wired communication lines. A complete system usually includes a water control management platform deployed on a local server in a school, water control equipment installed in water use areas, and a special application program on a user's mobile terminal.

[0003] The typical working process is as follows: the user registers an account and logs in through the mobile application; each water control device has a unique number, and the user needs to manually input the device number to query the status and send valve control instructions; the water control platform deployed locally is responsible for checking the legality of the user's identity and forwarding control instructions to the corresponding device; the water control device measures the user's consumption time or water volume while executing control, and generates a consumption order after the consumption ends, which is returned to the platform through the water control device to complete payment, and the management platform is responsible for setting system parameters such as billing mode and unit price.

[0004] When dealing with device offline consumption scenarios, existing technologies mainly rely on pre-issuing a personnel whitelist to device terminals. Specifically, after the user's mobile application establishes a connection with the water control device through Bluetooth, device control can be achieved. After the consumption ends, the water control device locally generates a consumption order, which is then uploaded to the water control platform asynchronously through the mobile phone's 4G network, and finally the platform completes payment processing.

[0005] This existing technology has a significant defect: its overall operation process highly depends on the continuous availability of the water control platform service in the school. Once the local server fails or the network is interrupted, the entire water control system will be paralyzed, and the user will be unable to perform any consumption operation, seriously affecting the daily water experience. SUMMARY

[0006] In order to overcome the above-mentioned problems in the prior art, the present application provides a method and system, which adopts the following technical solution:

[0007] In a first aspect, the present application provides a double-offline transaction authentication method for a Bluetooth water control system, comprising:

[0008] detecting the communication state between the user terminal APP and the local server;

[0009] When the communication state is abnormal, the user terminal APP switches the communication connection with the cloud server and loads the water service interface;

[0010] The Bluetooth water control device receives the instructions of the water service interface and performs the corresponding valve opening or closing operation, and generates a consumption order based on the order number. When the communication between the Bluetooth water control device and the local server is restored, the consumption order is uploaded to the local server to complete the order processing.

[0011] Further, before the Bluetooth water control device receives the instructions of the water service interface and performs the corresponding valve opening operation, it includes:

[0012] Detecting whether the user terminal has opened Bluetooth. When Bluetooth is opened, the water service interface establishes Bluetooth connection with the Bluetooth water control device;

[0013] When Bluetooth is not opened, the user terminal is prompted to open Bluetooth, and the water service interface establishes Bluetooth connection with the Bluetooth water control device.

[0014] Further, after the water service interface establishes Bluetooth connection with the Bluetooth water control device, the water service interface assembles the valve opening and closing instructions and sends them to the Bluetooth water control device.

[0015] Further, the Bluetooth water control device receives the instructions of the water service interface and performs the corresponding valve opening operation, which includes:

[0016] The water service interface sends the water code to the Bluetooth water control device. The Bluetooth water control device verifies the water code and risk control parameters. When the verification is passed, the Bluetooth water control device generates an order number and performs the valve opening operation.

[0017] Further, the Bluetooth water control device receives the instructions of the water service interface and performs the corresponding valve closing operation, which includes:

[0018] The water service interface sends the end water instruction to the Bluetooth water control device. The Bluetooth water control device receives the end water instruction and closes the valve. Based on the order number, a consumption order is generated and stored. When the communication between the Bluetooth water control device and the local server is restored, the consumption order is automatically uploaded to the local server to complete the order processing.

[0019] Further, after the order processing is completed, the local server's background management service processes the consumption order and returns the consumption result to the water service interface for user query.

[0020] In a second aspect, the application also provides a double offline transaction authentication system of a Bluetooth water control system, which includes:

[0021] A local server (1) for deploying a mobile application, a management system and a database of a water control system;

[0022] a cloud server (2) for deploying a water service interface (5);

[0023] a Bluetooth water control device (3) for completing user identity legality authentication and metering a water control consumption order in an offline scenario;

[0024] a user terminal APP (4) as a host of the water service interface (5) for communicating with the local server (1) and the cloud server (2);

[0025] a water service interface (5) deployed in the cloud server (2) for controlling the on-off valve and consumption operation of the Bluetooth water control device (3) when the Bluetooth water control system is in a double offline state.

[0026] Further, the implementation process of the system is as follows:

[0027] The user terminal APP (4) detects the communication state with the local server (1), and when the local server (1) is abnormal and cannot establish a communication connection, the user terminal APP (4) automatically switches to the cloud server (2) and loads the water service interface (5); the water service interface (5) establishes a connection with the Bluetooth water control device (3) through Bluetooth communication, and assembles the on-off valve instruction and sends it to the Bluetooth water control device (3);

[0028] The Bluetooth water control device (3) verifies the user code and risk control parameters sent by the water service interface (5), generates a water control consumption order and stores it after consumption, and uploads the consumption order to the local server (1) after the Bluetooth water control device (3) and the local server (1) resume communication;

[0029] The background management service of the local server (1) processes the consumption order, and returns the consumption result to the water service interface (5) for user query.

[0030] In a third aspect, the present application provides an electronic device, comprising:

[0031] one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions that, when executed by the device, cause the device to perform the method of the first aspect.

[0032] In a fourth aspect, the present application provides a computer readable storage medium, which stores a computer program, and when the computer program is run on a computer, the computer program causes the computer to perform the method of the first aspect.

[0033] In a fifth aspect, the present application provides a computer program for executing the method of the first aspect when the computer program is executed by a computer.

[0034] In a possible design, the program in the fifth aspect can be stored, in whole or in part, on a storage medium packaged with a processor, or stored, in part or in whole, on a storage medium not packaged with the processor.

[0035] The present application has the following beneficial effects:

[0036] The present application provides a transaction authentication method for a Bluetooth water control system when a water control terminal device and a background service are both offline, which can ensure that a user completes authentication and transaction using a mobile phone terminal, guarantees normal water use of the user, and reduces complaints, even in extreme cases such as system service downtime, upgrade maintenance, or interruption of external operator network. BRIEF DESCRIPTION OF DRAWINGS

[0037] Figure 1 A flow chart of a double offline transaction authentication method of a Bluetooth water control system according to an embodiment of the present application;

[0038] Figure 2 A timing chart of water data flow when a water control device and a background service are both offline according to an embodiment of the present application;

[0039] Figure 3 A structural schematic diagram of a double offline transaction authentication system of a Bluetooth water control system according to an embodiment of the present application. DETAILED DESCRIPTION

[0040] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present application belongs; the terminology used in the description herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application; the description and claims of the present application as well as the above abstract are not intended to be technical and scientific terms, and are intended to cover not only the inclusion of the technical field, but also the description of the specific embodiments of the application; the terms "include" and "have" and their any variations used in the description and claims of the present application and the above abstract are intended to cover the non-exclusive inclusion; the terms "first", "second", and the like used in the description and claims of the present application and the above abstract are used to distinguish different objects, and are not intended to describe a particular order.

[0041] Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are they necessarily mutually exclusive of one another. It is expressly understood that the embodiments described herein are merely possible embodiments of the present application. It is expressly understood that the embodiments described herein are merely possible embodiments of the present application.

[0042] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.

[0043] This application, when both the Bluetooth water control device and the backend management service are offline, employs a dual-application architecture deployed on a local server and a cloud server to automatically switch to the mobile water consumption application deployed on the cloud platform when the local service becomes unavailable. This application effectively solves the problem of users being unable to consume water normally due to the offline status of the water control device or the local server, ensuring the continuity and reliability of water services.

[0044] Example 1:

[0045] Please refer to Figure 1 The following is a method for dual offline transaction authentication in a Bluetooth water control system provided in this application embodiment, and the specific implementation process is as follows:

[0046] Step S1: Detect the communication status between the user-side APP and the local server.

[0047] In this embodiment of the application, the user-side APP is the host of the water service interface, used to communicate with the local server and the cloud server.

[0048] In this embodiment, the local server is used to deploy the mobile application, management system, and database of the water control system.

[0049] Step S2: When the communication status is abnormal, the user-end APP switches the communication connection with the cloud server and loads the water service interface.

[0050] In this embodiment of the application, the cloud server is used to deploy the water service interface, which is a water service H5.

[0051] It should be noted that the water service interface is deployed on a cloud server and is used to control the opening and closing valves and consumption operations of the Bluetooth water control device when the Bluetooth water control system is in a dual offline state, and to establish communication between the Bluetooth water control device and the cloud server.

[0052] Step S3: The Bluetooth water control device receives instructions from the water service interface and performs the corresponding valve opening or closing operation. It also generates a consumption order based on the order number. Once communication between the Bluetooth water control device and the local server is restored, the consumption order is uploaded to the local server to complete the order processing.

[0053] In this embodiment of the application, the Bluetooth water control device (3) is used to complete the authentication of the user's identity in an offline scenario and to generate a water control consumption order.

[0054] In this embodiment of the application, before the Bluetooth water control device receives the instruction from the water service interface and executes the corresponding valve opening operation, it includes:

[0055] Detect whether Bluetooth is turned on on the user terminal. If Bluetooth is turned on, establish a Bluetooth connection between the water service interface and the Bluetooth water control device.

[0056] If Bluetooth is not enabled, the user will be prompted to enable Bluetooth and establish a Bluetooth connection between the water service interface and the Bluetooth water control device.

[0057] In this embodiment, after the water service interface establishes a Bluetooth connection with the Bluetooth water control device, the water service interface assembles and sends the valve switching command to the Bluetooth water control device.

[0058] In this embodiment of the application, the Bluetooth water control device receives instructions from the water service interface and executes the corresponding valve opening operation, including: the water service interface sends the water code to the Bluetooth water control device, the Bluetooth water control device verifies the water code and risk control parameters, and when the verification is successful, the Bluetooth water control device generates an order number and executes the valve opening operation.

[0059] It should be noted that the risk control parameters include: single-purchase limit, single-purchase time limit, daily purchase limit, offline purchase amount, and number of offline purchases. The single-purchase limit, single-purchase time limit, and daily purchase limit are used to restrict the maximum purchase amount of a user in a single transaction or in a single day, mainly to prevent users from forgetting to turn off the valve and causing losses. The transaction will automatically end after the parameter limit is reached. The offline purchase amount and number of offline purchases mainly limit the maximum amount and number of purchases made by a single device in a dual offline scenario, to avoid too many unuploaded records.

[0060] It should be noted that the risk control parameters are set by the management backend, and the Bluetooth water control device will automatically download and update the risk control parameters when it is online.

[0061] In this embodiment of the application, the Bluetooth water control device receives instructions from the water service interface and executes the corresponding valve closing operation, including: the water service interface sends an end-of-water-use instruction to the Bluetooth water control device; the Bluetooth water control device receives the end-of-water-use instruction and closes the valve; a consumption order is generated based on the order number and stored; when communication between the Bluetooth water control device and the local server is restored, the consumption order is automatically uploaded to the local server to complete the order processing.

[0062] In this embodiment of the application, after the order processing is completed, the background management service of the local server processes the consumption order and returns the consumption result to the water service interface for the user to query.

[0063] Please refer to Figure 2 The following is a timing diagram of a dual offline transaction authentication method for a Bluetooth water control system provided in an embodiment of this application. The specific implementation process is as follows:

[0064] S1. When the user launches the mobile APP and enters the water control application, the user's APP first determines whether the local water control service is normal. If the service is abnormal, it will automatically redirect to the cloud server and open the water service H5 page.

[0065] S2. After entering the water service H5 page, the user should turn on the mobile phone Bluetooth according to the page prompts and establish a Bluetooth connection with the Bluetooth water control device.

[0066] S3. The user enters their personal water code on the water service H5 page, and the water service H5 sends the water code and valve opening command to the Bluetooth water control device.

[0067] S4. The Bluetooth water control device receives the valve opening command, verifies the user's identity and relevant risk parameters, generates an order number and executes the valve opening operation after successful verification.

[0068] S5. After the user finishes using water, click the "End Use" button on the Water Service H5 page, and the Water Service H5 will send a valve-closing command to the Bluetooth water control device.

[0069] S6. After receiving the valve closing command, the Bluetooth water control device closes the valve, generates a consumption record and stores it; after the Bluetooth water control device resumes communication with the local server, it automatically uploads the consumption order to the local server and completes the order processing.

[0070] Example 2:

[0071] Please refer to Figure 3 This application provides a dual offline transaction authentication system for a Bluetooth water control system. The system is used to implement the corresponding method in Embodiment 1. The system includes a local server (1), a cloud server (2), a Bluetooth water control device (3), and a user-end APP (4).

[0072] A local server (1) is used to deploy the mobile application, management system and database of the water control system;

[0073] A cloud server (2) is used to deploy the water service interface (5);

[0074] Bluetooth water control device (3) is used to complete user identity legality authentication and metering to generate water control consumption orders in offline scenarios;

[0075] The user-side APP (4) serves as the host of the water service interface (5) and is used to communicate with the local server (1) and the cloud server (2).

[0076] The water service interface (5) is deployed on the cloud server (2) and is used to control the valve opening and closing and consumption operations of the Bluetooth water control device (3) when the Bluetooth water control system is in a dual offline state.

[0077] The Bluetooth water control system in this application includes a Bluetooth water control device and a local server.

[0078] The specific operation process of a dual offline transaction authentication system for a Bluetooth water control system is as follows:

[0079] The user terminal APP (4) detects the communication status with the local server (1). When the local server (1) is abnormal and cannot establish a communication connection, the user terminal APP (4) automatically switches to the cloud server (2) and loads the water service interface (5). The water service interface (5) establishes a connection with the Bluetooth water control device (3) through Bluetooth communication and assembles valve switching instructions to send to the Bluetooth water control device (3).

[0080] The Bluetooth water control device (3) verifies the user code and risk control parameters sent by the water service interface (5). After the consumption is completed, a water control consumption order is generated and stored. After the Bluetooth water control device (3) resumes communication with the local server (1), the consumption order is uploaded to the local server (1).

[0081] The background management service of the local server (1) processes consumption orders and returns the consumption results to the water service interface (5) for users to query.

[0082] Obviously, the embodiments described above are only some embodiments of this application, not all embodiments. The accompanying drawings show preferred embodiments of this application, but do not limit the patent scope of this application. This application can be implemented in many different forms; rather, the purpose of providing these embodiments is to provide a more thorough and comprehensive understanding of the disclosure of this application. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing specific embodiments, or make equivalent substitutions for some of the technical features. Any equivalent structures made using the content of this application's specification and drawings, directly or indirectly applied to other related technical fields, are similarly within the scope of patent protection of this application.

Claims

1. A dual offline transaction authentication method for a Bluetooth water control system, characterized in that, include: Based on the communication status between the user-side APP and the local server; When the communication status is abnormal, the user-side APP switches the communication connection with the cloud server and loads the water service interface. The Bluetooth water control device receives instructions from the water service interface and executes the corresponding valve opening or closing operation. It also generates a consumption order based on the order number. Once communication between the Bluetooth water control device and the local server is restored, the consumption order is uploaded to the local server to complete the order processing.

2. The dual offline transaction authentication method for the Bluetooth water control system according to claim 1, characterized in that, Before the Bluetooth water control device receives instructions from the water service interface and executes the corresponding valve opening operation, it includes: Detect whether Bluetooth is turned on on the user terminal. If Bluetooth is turned on, establish a Bluetooth connection between the water service interface and the Bluetooth water control device. If Bluetooth is not turned on, the user will be prompted to turn on Bluetooth and establish a Bluetooth connection between the water service interface and the Bluetooth water control device.

3. The dual offline transaction authentication method for the Bluetooth water control system according to claim 2, characterized in that, Once the water service interface establishes a Bluetooth connection with the Bluetooth water control device, the water service interface assembles valve switching commands and sends them to the Bluetooth water control device.

4. The dual offline transaction authentication method for the Bluetooth water control system according to claim 3, characterized in that, The Bluetooth water control device receives instructions from the water service interface and executes the corresponding valve opening operation, including: The water service interface sends the water usage code to the Bluetooth water control device. The Bluetooth water control device verifies the water usage code and risk control parameters. Once the verification is successful, the Bluetooth water control device generates an order number and performs the valve opening operation.

5. The dual offline transaction authentication method for the Bluetooth water control system according to claim 4, characterized in that, The Bluetooth water control device receives instructions from the water service interface and executes the corresponding valve closing operation, including: The water service interface sends a water usage termination command to the Bluetooth water control device. The Bluetooth water control device receives the water usage termination command, closes the valve, generates and stores a consumption order based on the order number, and automatically uploads the consumption order to the local server after communication between the Bluetooth water control device and the local server is restored, thus completing the order processing.

6. The dual offline transaction authentication method for the Bluetooth water control system according to claim 1, characterized in that, After the order is processed, the local server's backend management service processes the consumption order and returns the consumption results to the water service interface for users to query.

7. A dual offline transaction authentication system for a Bluetooth water control system, used to implement the methods of claims 1-6, characterized in that, include: A local server (1) is used to deploy the mobile application, management system and database of the water control system; A cloud server (2) is used to deploy the water service interface (5); Bluetooth water control device (3) is used to complete user identity legality authentication and metering to generate water control consumption orders in offline scenarios; The user-side APP (4) serves as the host of the water service interface (5) and is used to communicate with the local server (1) and the cloud server (2). The water service interface (5) is deployed on the cloud server (2) and is used to control the valve opening and closing and consumption operations of the Bluetooth water control device (3) when the Bluetooth water control system is in a dual offline state.

8. The dual offline transaction authentication system for the Bluetooth water control system according to claim 7, characterized in that, The implementation process of the system is as follows: The user terminal APP (4) detects the communication status with the local server (1). When the local server (1) is abnormal and cannot establish a communication connection, the user terminal APP (4) automatically switches to the cloud server (2) and loads the water service interface (5). The water service interface (5) establishes a connection with the Bluetooth water control device (3) through Bluetooth communication and assembles valve switching instructions to send to the Bluetooth water control device (3). The Bluetooth water control device (3) verifies the user code and risk control parameters sent by the water service interface (5). After the consumption is completed, a water control consumption order is generated and stored. After the Bluetooth water control device (3) resumes communication with the local server (1), the consumption order is uploaded to the local server (1). The background management service of the local server (1) processes consumption orders and returns the consumption results to the water service interface (5) for users to query.