Intelligent control method and system for intelligent shared oxygen uptake area
By employing a dynamic token mechanism and dual-state confirmation, the communication security and state synchronization issues of the shared oxygen service system are resolved. This ensures the security of identity verification and the reliability of state synchronization, prevents replay attacks, and guarantees accurate service state synchronization and billing accuracy.
Patent Information
- Application Number
- CN202511669192.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-14
- Publication Date
- 2026-02-13
AI Technical Summary
Existing shared oxygen service systems face communication security and state synchronization reliability issues in open network environments. Traditional authentication mechanisms are vulnerable to replay attacks and man-in-the-middle attacks, and network latency and packet loss lead to inconsistencies between the cloud and terminal states.
A dynamic token mechanism is adopted, which allows users to obtain the device identifier by scanning the device's QR code with a mobile terminal. This is combined with user information to generate a dynamic token, which is then encrypted and transmitted to the shared oxygen inhalation cabinet. The cabinet decrypts the token, verifies it, and starts the service. The status is monitored and timed by sensors, and a dual status confirmation mechanism ensures synchronization.
It achieves secure authentication and reliable synchronization of end-to-cloud status in an open network environment, prevents replay attacks, and ensures accurate synchronization of service status and accurate billing.
Smart Images

Figure CN121531348A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent control technology, and in particular to an intelligent control method and system for a smart shared oxygen inhalation area. Background Technology
[0002] With the deep integration of IoT technology and the sharing economy model, smart shared devices are increasingly being used in fields such as healthcare and leisure. In the shared oxygen service sector, existing technologies typically employ a mobile payment-based smart control scheme. Users scan a QR code with their mobile devices to trigger a device usage request. After cloud verification, a start command is sent to the device, initiating timekeeping and billing. This type of solution primarily relies on network communication to achieve remote monitoring of device status and a closed-loop payment system. Control signals are transmitted via a 4G module, and basic authentication mechanisms are used to ensure device access security.
[0003] However, existing technologies still face the dual challenges of communication security and state synchronization reliability in actual deployment. Traditional authentication mechanisms often use static keys or fixed tokens, which are vulnerable to replay attacks or man-in-the-middle attacks in open network environments. Due to factors such as network latency and packet loss, there may be state inconsistencies between cloud servers and terminal devices. Summary of the Invention
[0004] In view of the aforementioned existing problems, the present invention is proposed.
[0005] Therefore, this invention provides an intelligent control method for a smart shared oxygen inhalation area to solve the problems of authentication security and end-to-cloud state synchronization reliability in an open network environment.
[0006] To solve the above-mentioned technical problems, the present invention provides the following technical solution: In a first aspect, the present invention provides an intelligent control method for a smart shared oxygen inhalation area, which includes: a user scanning a device QR code through a mobile terminal to obtain the unique device identifier of the shared oxygen inhalation cabinet; and the mobile terminal sending the device identifier, user identifier and payment information to a cloud server. After verifying user information, the authentication server in the cloud server generates a dynamic token based on a random number algorithm and sends the dynamic token to the mobile terminal. The dynamic token has a predetermined validity period. The mobile terminal encapsulates the dynamic token and device control instructions into a data packet, encrypts it using an encryption algorithm, and then sends it to the shared oxygen inhalation cabinet via a wireless network. After receiving the encrypted data packet, the shared oxygen inhalation area machine decrypts it, extracts the dynamic token and device identifier, and forwards it to the authentication server for verification. After successful verification, it sends an authorization command to the cabinet. After receiving the authorization command, the cabinet unit drives the solenoid valve to open the corresponding oxygen outlet, starts the timer to start timing, monitors the working status of the oxygen outlet in real time through the built-in sensor, controls the solenoid valve to close the oxygen outlet, generates a stop signal with time data, and sends the stop signal to the business server in the cloud server. A status query request is sent to the cabinet. In response to the request, the cabinet reads the sensor data again to confirm that the oxygen outlet is closed. It then sends a closed status confirmation signal back to the business server. After receiving the status confirmation signal, a final order is generated.
[0007] As a preferred embodiment of the intelligent control method for the smart shared oxygen inhalation area described in this invention, the method includes the following steps: The user scans the device's QR code using a mobile terminal to obtain the unique device identifier of the shared oxygen inhalation area machine; the mobile terminal then sends the device identifier, user identifier, and payment information to the cloud server. The user triggers the QR code recognition function by scanning the device's QR code with a mobile terminal. The device's QR code is captured by the mobile terminal's image sensor and converted into a digital signal. The mobile terminal decodes the digital signal and extracts the unique device identifier string of the shared oxygen inhalation cabinet from the device's QR code; The mobile terminal combines a unique device identifier string with the user identifier string and payment information string stored on the mobile terminal to form a structured data packet; The mobile terminal transmits structured data packets to a designated access endpoint of the cloud server via a wireless network.
[0008] As a preferred embodiment of the intelligent control method for the smart shared oxygen inhalation area described in this invention, the authentication server in the cloud server verifies the user information, generates a dynamic token based on a random number algorithm, and sends the dynamic token to the mobile terminal. The dynamic token has a predetermined validity period, including the following steps: The authentication server in the cloud server receives user information verification requests from the application business server. The user information verification request includes a user identifier string and a device identifier string. The authentication server verifies the validity of the user identifier string. Once the user identifier string passes the validity verification, a token generation command is triggered. The authentication server executes a random number algorithm to generate a random number sequence. The random number algorithm uses a timestamp seed and the server's private key to perform a mixed operation to generate a dynamic token string with a valid duration. The authentication server sends the dynamic token string to the mobile terminal through a secure transmission channel, and the validity period of the dynamic token string is set to a specific value.
[0009] As a preferred embodiment of the intelligent control method for the smart shared oxygen inhalation area described in this invention, the mobile terminal encapsulates the dynamic token and device control command into a data packet, encrypts it using an encryption algorithm, and sends it to the shared oxygen inhalation area machine via a wireless network, including the following steps: The mobile terminal receives a dynamic token string from the authentication server and stores the dynamic token string in the mobile terminal's memory buffer; The mobile terminal reads the dynamic token string from the memory buffer and encapsulates the dynamic token string with the device control instruction string to form a structured data packet; The mobile terminal uses an encryption algorithm to encrypt structured data packets. The encryption algorithm uses a preset encryption key to generate encrypted data blocks. The mobile terminal transmits encrypted data blocks to the network interface of the shared oxygen inhalation cabinet via a wireless network, using a specific communication protocol.
[0010] As a preferred embodiment of the intelligent control method for the smart shared oxygen inhalation area described in this invention, the shared oxygen inhalation area machine receives the encrypted data packet, decrypts it, extracts the dynamic token and device identifier, forwards it to the authentication server for verification, and sends an authorization command to the cabinet after successful verification, including the following steps: The shared oxygen inhalation area machine receives encrypted data blocks from the mobile terminal through the network interface and stores the encrypted data blocks in the receiving buffer of the shared oxygen inhalation area machine; The shared oxygen inhalation area machine uses a preset decryption key to decrypt the encrypted data blocks in the receiving buffer, restoring the structured data packet containing the dynamic token string and the device identification string; The shared oxygen inhalation area machine extracts the dynamic token string and device identifier string from the decrypted structured data packet, and combines the dynamic token string and device identifier string into verification request data; The shared oxygen therapy machine forwards the verification request data to the verification interface of the authentication server via the wireless network. The verification interface matches and verifies the dynamic token string and the device identification string. After successful verification, the authentication server generates an authorization command string and sends it to the control interface of the shared oxygen therapy area machine. The authorization command string contains device operation permission information.
[0011] As a preferred embodiment of the intelligent control method for the smart shared oxygen inhalation area described in this invention, the cabinet unit, upon receiving an authorization command, drives the solenoid valve to open the corresponding oxygen outlet, starts the timer, monitors the working status of the oxygen outlet in real time through a built-in sensor, controls the solenoid valve to close the oxygen outlet, generates a stop signal with elapsed time data, and sends the stop signal to the business server in the cloud server, including the following steps: The shared oxygen therapy area machine receives the authorization instruction string from the authentication server through the control interface and parses the authorization instruction string into executable control commands; The shared oxygen inhalation area machine drives the solenoid valve opening mechanism according to the control command, and the solenoid valve opening mechanism makes the corresponding oxygen outlet unobstructed. The shared oxygen inhalation area machine starts a timer when the oxygen outlet is opened. The timer records the time value that increases from zero. The shared oxygen inhalation cabinet machine continuously monitors the working status parameters of the oxygen outlet through built-in sensors. The working status parameters include airflow rate and outlet pressure. Upon receiving a termination condition, the shared oxygen inhalation area machine controls the solenoid valve closing mechanism, which closes the oxygen outlet. When the oxygen outlet of the shared oxygen inhalation zone is closed, the timer stops running and obtains the final recorded time data from the timer. The shared oxygen inhalation zone machine encapsulates the time data into a stop signal, which is then sent to the receiving port of the business server in the cloud server via a wireless network.
[0012] As a preferred embodiment of the intelligent control method for the smart shared oxygen inhalation area described in this invention, the method includes: sending a status query request to the cabinet; the cabinet responding to the request by rereading sensor data to confirm that the oxygen outlet is in a closed state; sending a closed state confirmation signal to the business server; and generating a final order after receiving the status confirmation signal, including the following steps: After receiving the stop signal, the business server generates a status query request and sends the status query request to the query interface of the shared oxygen inhalation cabinet. When the shared oxygen therapy machine responds to the status query request, it reads the real-time working status parameters of the oxygen outlet again through the built-in sensor. Based on the real-time working status parameters, the shared oxygen therapy machine confirms that the oxygen outlet is in the closed state and generates a closed state confirmation signal. The shared oxygen therapy machine will send a shutdown status confirmation signal to the confirmation receiving port of the business server via the wireless network. After receiving the shutdown status confirmation signal, the business server will generate a final order by combining it with the time data in the stop signal.
[0013] Secondly, the present invention provides an intelligent control system for a smart shared oxygen inhalation area, including a service request initiation module, wherein the user scans the device QR code through a mobile terminal to obtain the unique device identifier of the shared oxygen inhalation cabinet, and the mobile terminal sends the device identifier, user identifier and payment information to the cloud server. The dynamic token generation module generates a dynamic token based on a random number algorithm after the authentication server in the cloud server verifies the user information, and then sends the dynamic token to the mobile terminal. The dynamic token has a predetermined validity period. The encrypted instruction sending module encapsulates the dynamic token and device control instructions into a data packet, encrypts it using an encryption algorithm, and then sends it to the shared oxygen inhalation cabinet via a wireless network. The cabinet-side decryption module receives encrypted data packets from the shared oxygen inhalation area machine, decrypts them, extracts the dynamic token and device identifier, forwards them to the authentication server for verification, and sends an authorization command to the cabinet after successful verification. In the service execution module, after receiving the authorization instruction, the cabinet unit drives the solenoid valve to open the corresponding oxygen outlet, starts the timer to start timing, monitors the working status of the oxygen outlet in real time through the built-in sensor, controls the solenoid valve to close the oxygen outlet, generates a stop signal with time data, and sends the stop signal to the business server in the cloud server. The status confirmation module sends a status query request to the cabinet. In response to the request, the cabinet reads the sensor data again to confirm that the oxygen outlet is closed. It then sends a closed status confirmation signal back to the business server and generates a final order upon receiving the status confirmation signal.
[0014] Thirdly, the present invention provides a computer device, including a memory and a processor, wherein the memory stores a computer program, wherein when the computer program is executed by the processor, it implements any step of the intelligent control method for the intelligent shared oxygen inhalation area as described in the first aspect of the present invention.
[0015] Fourthly, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program is executed by a processor, it implements any step of the intelligent control method for the intelligent shared oxygen inhalation area as described in the first aspect of the present invention.
[0016] The beneficial effects of this invention are as follows: A mobile terminal scans the device's QR code to obtain the device identifier, which is then combined with the user identifier and payment information and sent to the cloud server. After verification by the authentication server, a dynamic token is generated and sent to the mobile terminal. The mobile terminal encrypts and transmits the dynamic token and control commands to the cabinet. The cabinet decrypts the token and forwards it to the authentication server for verification. Upon successful verification, an authorization command is received to start the service. The status is monitored and timed by sensors. When the service terminates, the cabinet generates a stop signal and sends it to the business server. The business server initiates a status query request. The cabinet reconfirms the oxygen outlet's closed status and reports a confirmation signal. Finally, the business server generates an order. Through dynamic token two-way authentication and dual status confirmation mechanisms, the security of identity verification and the reliability of end-to-cloud status synchronization in an open network environment are achieved. Attached Figure Description
[0017] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 A flowchart for the intelligent control method of the smart shared oxygen inhalation area.
[0019] Figure 2 This is a schematic diagram of the intelligent control system for the smart shared oxygen therapy area. Detailed Implementation
[0020] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0021] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.
[0022] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in different places in this specification does not necessarily refer to the same embodiment, nor is it a single or selective embodiment that is mutually exclusive with other embodiments.
[0023] Reference Figures 1-2 As one embodiment of the present invention, this embodiment provides an intelligent control method for a smart shared oxygen inhalation area, comprising the following steps: S1. Users scan the device's QR code with their mobile terminals to obtain the unique device identifier of the shared oxygen inhalation area machine. The mobile terminal then sends the device identifier, user identifier, and payment information to the cloud server.
[0024] S1.1 The user's operation of scanning the device's QR code through a mobile terminal triggers the QR code recognition function. The device's QR code is captured by the mobile terminal's image sensor and converted into a digital signal.
[0025] Furthermore, the user launches a QR code scanning application on their mobile device, pointing the device's camera at the QR code printed on the panel of the shared oxygen therapy machine to capture an image. The mobile device's image sensor optically senses the QR code pattern, converting the black and white QR code graphic into a continuous electrical signal. This analog-to-digital converter then transforms the analog electrical signal into a digital signal stream composed of binary code.
[0026] S1.2 The mobile terminal decodes the digital signal and extracts the unique device identifier string of the shared oxygen inhalation cabinet from the device's QR code.
[0027] Furthermore, the mobile terminal's central processing unit calls the QR code decoding library to parse the digital signal stream. First, it uses image processing algorithms to locate the three positioning patterns of the QR code graphic. Then, it scans the data area according to the QR code encoding rules, converting the black and white module sequence into corresponding byte data. Finally, it extracts the unique device identifier string of the shared oxygen inhalation cabinet from the byte data according to the agreed encoding format.
[0028] S1.3 The mobile terminal combines the unique device identifier string with the user identifier string and payment information string stored in the mobile terminal into a structured data packet.
[0029] Furthermore, the mobile terminal reads a pre-recorded user identifier string from local storage and simultaneously obtains the user-selected payment channel type string. These strings are then concatenated according to predefined field separators. For example, the device identifier string, user identifier string, and payment information string are connected with comma separators, and a data packet header and checksum are added to form a structured data packet that conforms to the communication protocol specifications.
[0030] S1.4 The mobile terminal transmits structured data packets to the designated access endpoint of the cloud server via a wireless network.
[0031] Furthermore, the mobile terminal's network communication module establishes a connection with the Internet through a wireless base station, groups and encapsulates structured data packets according to the transmission control protocol, adds the target Internet protocol address and port number information, modulates the data packets onto a carrier of a specific frequency band through the wireless radio frequency unit, and sends them to the wireless access point in the form of radio waves, and finally routes them to the designated access endpoint of the cloud server.
[0032] S2. After the authentication server in the cloud server verifies the user information, it generates a dynamic token based on a random number algorithm and sends the dynamic token to the mobile terminal. The dynamic token has a predetermined validity period.
[0033] S2.1 The authentication server in the cloud server receives user information verification requests from the application business server. The user information verification request includes a user identifier string and a device identifier string.
[0034] Furthermore, the authentication server's network interface listens for transmission requests from the application business server. When it receives a user information verification request data packet, it parses the data packet to extract the user identifier string and device identifier string, and stores these strings in the authentication server's memory working area.
[0035] S2.2 The authentication server verifies the validity of the user identifier string. Once the user identifier string passes the validity verification, a token generation command is triggered.
[0036] Furthermore, the authentication server's processing unit reads the user identifier string from its memory working area and compares it with the registered user information records in the authentication server's database to verify the format compliance and account status validity of the user identifier string. Once the user identifier string passes all verification checks, the authentication server's processing unit generates a token generation instruction signal.
[0037] S2.3 The authentication server executes a random number algorithm to generate a random number sequence. The random number algorithm uses a timestamp seed and the server's private key to perform a mixed operation to generate a dynamic token string with a valid duration.
[0038] ; in, The dynamic token string. It is a hash-based message authentication code algorithm. for, The private key held by the authentication server. A unique device identifier string for the shared oxygen inhalation cabinet. This is for string concatenation operations.
[0039] Furthermore, the cryptographic processor of the authentication server obtains the current high-precision timestamp and the private key held by the authentication server, concatenates the timestamp with the unique device identifier string of the shared oxygen inhalation area machine, and uses a hash-based message authentication code algorithm to encrypt the concatenated string to generate a fixed-length dynamic token string.
[0040] S2.4 The authentication server sends the dynamic token string to the mobile terminal through a secure transmission channel, and the validity period of the dynamic token string is set to a specific value.
[0041] Furthermore, the certificate server establishes a transport layer secure encrypted connection with the mobile terminal, encapsulates the dynamic token string and its validity period attribute into a response data packet, and transmits the data packet to the receiving port of the mobile terminal through the encrypted connection.
[0042] S3. The mobile terminal encapsulates the dynamic token and device control instructions into a data packet, encrypts it using an encryption algorithm, and then sends it to the shared oxygen inhalation cabinet via a wireless network.
[0043] S3.1 The mobile terminal receives a dynamic token string from the authentication server and stores the dynamic token string in the mobile terminal's memory buffer.
[0044] Furthermore, the mobile terminal's network communication interface receives data streams from the authentication server through a transport layer secure connection, parses the payload portion of the data stream to obtain a dynamic token string, writes the string into a temporary storage area in the mobile terminal's memory, and establishes an index identifier.
[0045] S3.2 The mobile terminal reads the dynamic token string from the memory buffer and encapsulates the dynamic token string with the device control instruction string to form a structured data packet.
[0046] Furthermore, the mobile terminal application retrieves the dynamic token string from the temporary memory storage area using an index identifier, and simultaneously generates a device control instruction string containing startup instructions and parameter settings. The dynamic token string and the device control instruction string are serialized and combined according to a predefined data structure, and a data packet length field and a checksum are added to form a complete structured data packet.
[0047] S3.3 The mobile terminal uses an encryption algorithm to encrypt structured data packets. The encryption algorithm uses a preset encryption key to generate encrypted data blocks.
[0048] Furthermore, the mobile terminal calls the Advanced Encryption Standard algorithm in the encryption algorithm library, uses the encryption key preset in the secure storage area to perform block encryption processing on the structured data packets, performs XOR operation and byte substitution operation on each data block, and generates confidential encrypted data blocks through multiple rounds of encryption transformation.
[0049] S3.4 The mobile terminal transmits encrypted data blocks to the network interface of the shared oxygen inhalation area machine via a wireless network, and the transmission adopts a specific communication protocol.
[0050] Furthermore, the mobile terminal's wireless communication module segments the encrypted data block into data frames that conform to the transmission protocol requirements, adds the network address identifier and port number information of the shared oxygen inhalation cabinet, converts the digital signal into a radio signal through a modem, transmits it to the wireless access point through an antenna on a specific frequency band, and finally routes it to the network interface of the shared oxygen inhalation area machine.
[0051] S4. After receiving the encrypted data packet, the shared oxygen inhalation unit decrypts it, extracts the dynamic token and device identifier, and forwards it to the authentication server for verification. Upon successful verification, it sends the authorization message to the cabinet. S4.1 The shared oxygen inhalation unit receives encrypted data blocks from the mobile terminal through the network interface and stores the encrypted data blocks in the receiving buffer of the shared oxygen inhalation cabinet.
[0052] Furthermore, the network interface controller of the shared oxygen inhalation unit continuously monitors the transmission channel. When a data frame from a mobile terminal is detected, the data frame is decapsulated at the link layer, the network layer data packet is extracted, and the target address matching is verified. The confirmed valid encrypted data block is written into the designated storage area of the receiving buffer of the shared oxygen inhalation cabinet.
[0053] S4.2 The shared oxygen inhalation zone machine uses a preset decryption key to decrypt the encrypted data block in the receiving buffer, restoring the structured data packet containing the dynamic token string and the device identifier string.
[0054] Furthermore, the security chip of the shared oxygen inhalation area machine reads the preset decryption key from the non-volatile memory, uses the decryption algorithm corresponding to the encryption algorithm of the mobile terminal to decrypt the encrypted data block in the receiving buffer, and restores the encrypted data block to readable plaintext data through multiple rounds of reverse transformation operations, reconstructing a structured data packet containing a dynamic token string and a device identification string.
[0055] S4.3 The shared oxygen inhalation area machine extracts the dynamic token string and device identifier string from the decrypted structured data packet, and combines the dynamic token string and device identifier string into verification request data.
[0056] Furthermore, the data processing unit of the shared oxygen inhalation area machine performs syntax parsing on the decrypted structured data packets, identifies and extracts the dynamic token string and device identifier string fields according to the predefined data format, recombines these strings according to the message format required by the authentication server, and adds the necessary protocol headers and checksums to form complete verification request data.
[0057] S4.4 The shared oxygen inhalation area machine forwards the verification request data to the verification interface of the authentication server via the wireless network. The verification interface matches and verifies the dynamic token string and the device identification string.
[0058] Furthermore, the network communication unit of the shared oxygen inhalation area machine establishes a secure connection with the authentication server, encapsulates the verification request data into a transmission protocol data packet, and transmits it to the authentication server's verification interface via the wireless network. After receiving the data, the authentication server's verification interface verifies the validity of the dynamic token string and the legality of the device identification string, performs two-way matching verification, and generates a verification result.
[0059] S4.5 After successful verification, the authentication server generates an authorization command string and sends it to the control interface of the shared oxygen inhalation area machine. The authorization command string contains device operation permission information.
[0060] Furthermore, after successful verification, the authentication server generates an authorization command string containing device operation permission information and validity period. This authorization command string is then sent to the control interface of the shared oxygen inhalation cabinet via a secure connection. The control interface of the shared oxygen inhalation area receives and parses the authorization command string, preparing to execute the corresponding device operation.
[0061] After receiving the authorization command, the S5 cabinet unit drives the solenoid valve to open the corresponding oxygen outlet, starts the timer to start counting, monitors the working status of the oxygen outlet in real time through the built-in sensor, controls the solenoid valve to close the oxygen outlet, generates a stop signal with the timed data, and sends the stop signal to the business server in the cloud server.
[0062] S5.1 The shared oxygen therapy unit receives the authorization instruction string from the authentication server through the control interface and parses the authorization instruction string into executable control commands.
[0063] Furthermore, the control interface chip of the shared oxygen inhalation area machine receives the authorization instruction string data stream from the authentication server, performs protocol parsing and format verification on the data stream, extracts the operation instruction code and device parameter information from the authorization instruction string, converts this information into an electrical signal format that the control circuit can recognize, and stores the converted control command in the instruction register.
[0064] S5.2 The shared oxygen inhalation area machine drives the solenoid valve opening mechanism according to the control command, and the solenoid valve opening mechanism makes the corresponding oxygen outlet unobstructed.
[0065] Furthermore, the control circuit of the shared oxygen inhalation zone machine reads control commands from the instruction register, generates corresponding drive voltage signals, and transmits them to the coil winding of the solenoid valve opening mechanism. Under the action of electromagnetic force, the solenoid valve opening mechanism overcomes the spring resistance and moves the valve core, so that the valve channel and the oxygen outlet form a connected path, and the oxygen outlet enters a smooth state.
[0066] S5.3 The shared oxygen inhalation unit starts a timer when the oxygen outlet is opened. The timer records the time value that increases from zero. The shared oxygen inhalation cabinet continuously detects the working status parameters of the oxygen outlet through built-in sensors. The working status parameters include airflow rate and outlet pressure.
[0067] Furthermore, the timer chip in the shared oxygen inhalation machine automatically starts the timing program when it detects a signal indicating that the oxygen outlet is unobstructed. The clock circuit begins to generate time pulse signals, and the counter accumulates and records the time value of the pulse signals. At the same time, the built-in sensor array continuously collects the analog signals of the airflow rate and outlet pressure of the oxygen outlet, and the analog-to-digital converter converts the analog signals into digital operating status parameters.
[0068] S5.4 After receiving the termination condition, the shared oxygen inhalation zone machine controls the solenoid valve closing mechanism, which causes the oxygen outlet to enter a closed state.
[0069] Furthermore, when the control unit of the shared oxygen inhalation area receives a termination command from the mobile terminal or reaches the preset usage time, it generates a termination condition signal. The control circuit cuts off the drive current to the solenoid valve closing mechanism. Under the action of the spring reset, the solenoid valve closing mechanism pushes the valve core back to its original position, blocking the connection path between the valve channel and the oxygen outlet, and the oxygen outlet enters a closed state.
[0070] S5.5 When the oxygen outlet of the shared oxygen inhalation unit is closed, the timer stops running and obtains the final recorded time data from the timer. The shared oxygen inhalation cabinet encapsulates the time data into a stop signal and sends the stop signal to the receiving port of the business server in the cloud server via wireless network.
[0071] Furthermore, when the control unit of the shared oxygen inhalation area detects a closed oxygen outlet signal, it sends a stop command to the timer chip. The timer stops counting pulses and locks the final time value. The processor reads the time data stored in the timer, combines the time data with the service identification information to form a stop signal data packet, and transmits the stop signal data packet to the receiving port of the business server through the network interface.
[0072] S6. Send a status query request to the cabinet. The cabinet responds to the request, reads the sensor data again to confirm that the oxygen outlet is in the closed state, reports the closed state confirmation signal to the business server, and generates the final order after receiving the status confirmation signal.
[0073] S6.1 After receiving the stop signal, the business server generates a status query request and sends the status query request to the query interface of the shared oxygen inhalation area machine.
[0074] Furthermore, the order processing unit of the business server parses the received stop signal data packet, extracts the time data and service identification information, generates a status query request data packet containing query instructions and timestamps according to business rules, and sends the status query request data packet to the query interface of the shared oxygen inhalation cabinet through the network interface of the business server.
[0075] S6.2 The shared oxygen inhalation unit responds to the status query request and reads the real-time working status parameters of the oxygen outlet again through the built-in sensor. Based on the real-time working status parameters, the shared oxygen inhalation cabinet unit confirms that the oxygen outlet is in the closed state and generates a closed state confirmation signal.
[0076] Furthermore, after the query interface of the shared oxygen inhalation area machine receives the status query request data packet, it triggers the sensor acquisition program to start the built-in sensor to detect the oxygen outlet in real time. The pressure sensor measures the outlet pressure value, and the flow sensor detects the airflow rate. The real-time working status parameters are compared with the preset shutdown status threshold. When both the pressure value and the flow rate value are lower than the threshold, a shutdown status confirmation signal containing a confirmation identifier is generated.
[0077] S6.3 The shared oxygen therapy machine will send a shutdown status confirmation signal to the confirmation receiving port of the business server via the wireless network. After receiving the shutdown status confirmation signal, the business server will generate a final order by combining the time data in the stop signal.
[0078] Furthermore, the communication unit of the shared oxygen therapy machine encapsulates the off status confirmation signal into a response data packet and transmits it to the confirmation receiving port of the business server via a wireless network. The order generator of the business server simultaneously receives the off status confirmation signal and the time data from the previously stored stop signal, calculates the service fee based on the time duration and rate rules, and combines the service information, fee details, and time data to generate the final order record.
[0079] This embodiment also provides an intelligent control system for a smart shared oxygen inhalation area, including: a service request initiation module, in which the user scans the device's QR code through a mobile terminal to obtain the unique device identifier of the shared oxygen inhalation cabinet, and the mobile terminal sends the device identifier, user identifier, and payment information to the cloud server; The dynamic token generation module generates a dynamic token based on a random number algorithm after the authentication server in the cloud server verifies the user information, and then sends the dynamic token to the mobile terminal. The dynamic token has a predetermined validity period. The encrypted instruction sending module encapsulates the dynamic token and device control instructions into a data packet, encrypts it using an encryption algorithm, and then sends it to the shared oxygen inhalation cabinet via a wireless network. The cabinet-side decryption module receives encrypted data packets from the shared oxygen inhalation area machine, decrypts them, extracts the dynamic token and device identifier, forwards them to the authentication server for verification, and sends an authorization command to the cabinet after successful verification. In the service execution module, after receiving the authorization instruction, the cabinet unit drives the solenoid valve to open the corresponding oxygen outlet, starts the timer to start timing, monitors the working status of the oxygen outlet in real time through the built-in sensor, controls the solenoid valve to close the oxygen outlet, generates a stop signal with time data, and sends the stop signal to the business server in the cloud server. The status confirmation module sends a status query request to the cabinet. In response to the request, the cabinet reads the sensor data again to confirm that the oxygen outlet is closed. It then sends a closed status confirmation signal back to the business server and generates a final order upon receiving the status confirmation signal.
[0080] This embodiment also provides a computer device applicable to the intelligent control method of a smart shared oxygen inhalation area, including: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to realize the intelligent control method of the smart shared oxygen inhalation area proposed in the above embodiment.
[0081] The computer device can be a terminal, comprising a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, carrier networks, NFC (Near Field Communication), or other technologies. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad on the computer device's casing, or an external keyboard, touchpad, or mouse.
[0082] This embodiment also provides a storage medium storing a computer program. When executed by a processor, the program implements the intelligent control method for realizing a smart shared oxygen inhalation area as proposed in the above embodiments. The storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Red-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0083] In summary, this invention obtains the device identifier by scanning the device's QR code with a mobile terminal, combines it with the user identifier and payment information, and sends it to the cloud server. After verification by the authentication server, a dynamic token is generated and sent to the mobile terminal. The mobile terminal encrypts and transmits the dynamic token and control commands to the cabinet. The cabinet decrypts the token and forwards it and the device identifier to the authentication server for verification. After successful verification, the system receives an authorization command to start the service, monitors the status and keeps track of the time through sensors, and generates a stop signal when the service terminates, sending it to the business server. The business server initiates a status query request, and the cabinet reconfirms the oxygen outlet's closed status and reports a confirmation signal. Finally, the business server generates an order. Through dynamic token two-way authentication and dual status confirmation mechanisms, the security of identity verification and the reliability of end-to-cloud status synchronization in an open network environment are achieved.
[0084] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.
Claims
1. A smart control method for a smart shared oxygen inhalation area, characterized in that: This includes users scanning the device's QR code with their mobile devices to obtain a unique device identifier for activating the shared oxygen terminal and oxygen concentrator; the mobile device then sends the device identifier, user identifier, and payment information to the cloud server. After verifying user information, the authentication server in the cloud server generates a dynamic token based on a random number algorithm and sends the dynamic token to the mobile terminal. The dynamic token has a predetermined validity period. The mobile terminal encapsulates the dynamic token and device control instructions into a data packet, encrypts it using an encryption algorithm, and then sends it to the shared oxygen inhalation terminal and the oxygen concentrator control terminal via a wireless network. After receiving the encrypted data packet, the shared oxygen terminal and the oxygen concentrator control terminal decrypt it, extract the dynamic token and device identifier, and forward it to the authentication server for verification. After successful verification, the server sends an authorization command to the oxygen concentrator. After receiving the authorization command, the shared oxygen terminal and oxygen generator program drive the solenoid valve to open the corresponding oxygen outlet, start the timer to start timing, monitor the working status of the oxygen outlet in real time through the built-in sensor, control the solenoid valve to close the oxygen outlet, generate a stop signal with time data, and send the stop signal to the business server in the cloud server. The control program sends a status query request. The shared oxygen terminal responds to the request by reading the sensor data again to confirm that the oxygen outlet is closed. It then sends a closed status confirmation signal back to the business server and generates a final order upon receiving the status confirmation signal.
2. The intelligent control method for the smart shared oxygen inhalation area as described in claim 1, characterized in that: Users scan the device's QR code with their mobile devices to obtain a unique device identifier for the shared oxygen therapy terminal. The mobile device then sends the device identifier, user identifier, and payment information to the cloud server, including the following steps: The user triggers the QR code recognition function by scanning the device's QR code with a mobile terminal. The device's QR code is captured by the mobile terminal's image sensor and converted into a digital signal. The mobile terminal decodes the digital signal and extracts the unique device identifier string of the shared oxygen inhalation area machine from the device's QR code; The mobile terminal combines a unique device identifier string with the user identifier string and payment information string stored on the mobile terminal to form a structured data packet; The mobile terminal transmits structured data packets to a designated access endpoint of the cloud server via a wireless network.
3. The intelligent control method for the smart shared oxygen inhalation area as described in claim 2, characterized in that: After verifying user information, the authentication server in the cloud server generates a dynamic token based on a random number algorithm and sends the dynamic token to the mobile terminal. The dynamic token has a predetermined validity period and includes the following steps: The authentication server in the cloud server receives user information verification requests from the application business server. The user information verification request includes a user identifier string and a device identifier string. The authentication server verifies the validity of the user identifier string. Once the user identifier string passes the validity verification, a token generation command is triggered. The authentication server executes a random number algorithm to generate a random number sequence. The random number algorithm uses a timestamp seed and the server's private key to perform a mixed operation to generate a dynamic token string with a valid duration. The authentication server sends the dynamic token string to the mobile terminal through a secure transmission channel, and the validity period of the dynamic token string is set to a specific value.
4. The intelligent control method for the smart shared oxygen inhalation area as described in claim 3, characterized in that: The mobile terminal encapsulates the dynamic token and device control commands into a data packet, encrypts it using an encryption algorithm, and sends it to the shared oxygen therapy machine via a wireless network, including the following steps: The mobile terminal receives a dynamic token string from the authentication server and stores the dynamic token string in the mobile terminal's memory buffer; The mobile terminal reads the dynamic token string from the memory buffer and encapsulates the dynamic token string with the device control instruction string to form a structured data packet; The mobile terminal uses an encryption algorithm to encrypt structured data packets. The encryption algorithm uses a preset encryption key to generate encrypted data blocks. The mobile terminal transmits encrypted data blocks to the network interface of the shared oxygen therapy machine via a wireless network, using a specific communication protocol.
5. The intelligent control method for the smart shared oxygen inhalation area as described in claim 4, characterized in that: After receiving the encrypted data packet, the shared oxygen therapy unit decrypts it, extracts the dynamic token and device identifier, and forwards it to the authentication server for verification. Upon successful verification, it sends an authorization command to the unit, including the following steps: The shared oxygen inhalation area machine receives encrypted data blocks from the mobile terminal through the network interface and stores the encrypted data blocks in the receiving buffer of the shared oxygen inhalation area machine; The shared oxygen inhalation area machine uses a preset decryption key to decrypt the encrypted data blocks in the receiving buffer, restoring the structured data packet containing the dynamic token string and the device identification string; The shared oxygen inhalation area machine extracts the dynamic token string and device identifier string from the decrypted structured data packet, and combines the dynamic token string and device identifier string into verification request data; The shared oxygen therapy machine forwards the verification request data to the verification interface of the authentication server via the wireless network. The verification interface matches and verifies the dynamic token string and the device identification string. After successful verification, the authentication server generates an authorization command string and sends it to the control interface of the shared oxygen therapy area machine. The authorization command string contains device operation permission information.
6. The intelligent control method for a smart shared oxygen inhalation area as described in claim 5, characterized in that: After receiving the authorization command, the cabinet unit drives the solenoid valve to open the corresponding oxygen outlet, starts the timer, and monitors the working status of the oxygen outlet in real time through built-in sensors. The cabinet unit then controls the solenoid valve to close the oxygen outlet, generates a stop signal with the elapsed time data, and sends the stop signal to the business server in the cloud server, including the following steps: The shared oxygen therapy area machine receives the authorization instruction string from the authentication server through the control interface and parses the authorization instruction string into executable control commands; The shared oxygen inhalation area machine drives the solenoid valve opening mechanism according to the control command, and the solenoid valve opening mechanism makes the corresponding oxygen outlet unobstructed. The shared oxygen inhalation zone machine starts a timer when the oxygen outlet is opened. The timer records the time value that increases from zero. The shared oxygen inhalation zone machine continuously monitors the working status parameters of the oxygen outlet through built-in sensors. The working status parameters include airflow rate and outlet pressure. Upon receiving a termination condition, the shared oxygen inhalation area machine controls the solenoid valve closing mechanism, which closes the oxygen outlet. When the oxygen outlet of the shared oxygen inhalation zone is closed, the timer stops running and obtains the final recorded time data from the timer. The shared oxygen inhalation zone machine encapsulates the time data into a stop signal, which is then sent to the receiving port of the business server in the cloud server via a wireless network.
7. The intelligent control method for a smart shared oxygen inhalation area as described in claim 6, characterized in that: A status query request is sent to the cabinet. In response to the request, the cabinet reads the sensor data again to confirm that the oxygen outlet is closed, sends a closure confirmation signal to the business server, and generates a final order after receiving the status confirmation signal, including the following steps: After receiving the stop signal, the business server generates a status query request and sends the status query request to the query interface of the shared oxygen inhalation area machine; When the shared oxygen inhalation area machine responds to the status query request, it reads the real-time working status parameters of the oxygen outlet again through the built-in sensor. Based on the real-time working status parameters, the shared oxygen inhalation cabinet machine confirms that the oxygen outlet is in the closed state and generates a closed state confirmation signal. The shared oxygen therapy machine will send a shutdown status confirmation signal to the confirmation receiving port of the business server via the wireless network. After receiving the shutdown status confirmation signal, the business server will generate a final order by combining it with the time data in the stop signal.
8. An intelligent control system for a smart shared oxygen inhalation area, based on the intelligent control method for a smart shared oxygen inhalation area according to any one of claims 1 to 7, characterized in that: This includes a service request initiation module, where users scan the device's QR code with their mobile terminals to obtain the unique device identifier of the shared oxygen inhalation cabinet. The mobile terminal then sends the device identifier, user identifier, and payment information to the cloud server. The dynamic token generation module generates a dynamic token based on a random number algorithm after the authentication server in the cloud server verifies the user information, and then sends the dynamic token to the mobile terminal. The dynamic token has a predetermined validity period. The encrypted instruction sending module encapsulates the dynamic token and device control instructions into a data packet, encrypts it using an encryption algorithm, and then sends it to the shared oxygen inhalation cabinet via a wireless network. The cabinet-side decryption module receives encrypted data packets from the shared oxygen inhalation area machine, decrypts them, extracts the dynamic token and device identifier, forwards them to the authentication server for verification, and sends an authorization command to the cabinet after successful verification. In the service execution module, after receiving the authorization command, the shared oxygen inhalation area machine drives the solenoid valve to open the corresponding oxygen outlet, starts the timer to start timing, monitors the working status of the oxygen outlet in real time through the built-in sensor, controls the solenoid valve to close the oxygen outlet, generates a stop signal with time data, and sends the stop signal to the business server in the cloud server. The status confirmation module sends a status query request to the shared oxygen inhalation area machine. In response to the request, the shared oxygen inhalation area machine reads the sensor data again to confirm that the oxygen outlet is in the closed state, reports the closed state confirmation signal to the business server, and generates the final order after receiving the status confirmation signal.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, it implements the steps of the intelligent control method for the intelligent shared oxygen inhalation area as described in any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, it implements the steps of the intelligent control method for the intelligent shared oxygen inhalation area as described in any one of claims 1 to 7.