User interface mutual locking method and system

By storing the information of the user and the UI machine in the database of the host computer server, the interlocking of the user interface is achieved, and the security risks caused by the control of the devices at the same time are solved, ensuring the security and consistency of operations.

CN119520129APending Publication Date: 2025-02-25大连皓宇电子科技有限公司
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411702761.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-26
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

In the case where multiple user interfaces are connected to the host computer server at the same time, it may lead to repeated command sending and security risks, especially when operating dangerous equipment.

Method used

By creating a table in the database of the host computer server, storing user account list, UI machine IP address list and master control information, mutual locking between the user interface is achieved. Only one UI machine has master control permissions to the host server, and the rest of the UI machines have viewing permissions. The user interface updates the master permissions or viewing permissions in real time, and performs password verification when permissions are switched.

Benefits of technology

It effectively prevents multiple user interfaces from controlling the same device at the same time, reduces security risks, and ensures the security and consistency of operations through password verification mechanism.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119520129A_ABST
    Figure CN119520129A_ABST
Patent Text Reader

Abstract

The invention discloses a user interface mutual locking method and system, and relates to the technical field of machine configuration. Comprising the steps that a table is established in a database in an upper computer server, and a user account list, a UI machine IP address list and master control information are stored in the table; acquiring a current user account, and if the current user account is stored in the user account list, feeding back the IP address of the UI machine with the master control authority of the user to the user interface; and if the current user account is not stored in the user account list, storing the current user account, the corresponding UI machine IP address and the main control into a database table in the upper computer server, and feeding back the UI machine IP address to the user interface. And when the control authority is switched, password verification is carried out, so that the safety is ensured. And meanwhile, each user interface can continuously receive the IP address information of the UI machine currently having the master control authority of the upper computer server, so that the situation that the same equipment is controlled by a plurality of user interfaces at the same time is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of machine configuration, and in particular to a method and system for mutually locking user interfaces. Background Art

[0002] In the entire control system, the upper computer server is responsible for communicating with the lower computer server, sending the equipment operation instructions from the upper computer, and the lower computer is responsible for controlling the equipment according to these instructions. The data of the upper computer comes from the user interface. After the user logs in, he can send the operation instructions to the upper computer server through the buttons on the interface. These two parts together constitute a complete control system.

[0003] Usually, there is a fixed UI machine for controlling the device. But sometimes, an additional mobile UI machine is also configured. In this way, it is possible that two or even more user interfaces are connected to the host server at the same time. Figure 1 As shown in the figure, the server will send various information to each user interface, and users can also send control instructions to the host server through the UI machine interface. However, this approach may cause the problem of repeated instruction sending. In extreme cases, if two users open two gases that may cause explosions on the UI machine interface at the same time, it will bring serious safety hazards. Summary of the invention

[0004] The purpose of the present invention is to propose a user interface mutual locking method and system, which adds a detection function to verify whether the current interface has control authority to prevent security risks caused by more than two users controlling the host server at the same time.

[0005] According to a first aspect of an embodiment of the present disclosure, a method for mutually locking user interfaces is provided, comprising:

[0006] A table is established in the database of the upper computer server, which stores the user account list, UI machine IP address list, and whether it is the master control information;

[0007] Get the current user account. If the current user account is stored in the user account list, the IP address of the UI machine for which the user has master control authority is fed back to the user interface. If the current user account is not stored in the user account list, the current user account and the corresponding UI machine IP address, as well as whether it is the master control, are stored in the database table in the upper computer server, and the UI machine IP address is fed back to the user interface.

[0008] In one of the embodiments, when the upper computer server transmits a message to each UI machine, it also transmits the IP address of the UI machine with master control authority. If the current UI machine IP address of the user interface is consistent with the transmitted UI machine IP address, the current UI machine maintains the master control authority; if the current UI machine IP address is inconsistent with the transmitted UI machine IP address, the current UI machine modifies the master control authority to viewing authority.

[0009] In one embodiment, only one UI machine has the master control authority over the host server, and the remaining UI machines have the viewing authority over the host server.

[0010] In one of the embodiments, a control conversion button is provided on the user interface, and when the control conversion button is clicked, the password needs to be re-entered.

[0011] In one of the embodiments, when the password verification is passed, the master control information corresponding to all user accounts in the host server is modified to no; the master control information corresponding to the verified account and UI machine IP address is modified to yes.

[0012] In one embodiment, each UI machine continuously receives the IP address of the UI machine that has the master control authority to the host server, so the user interface updates the master control authority or viewing authority in real time.

[0013] In one of the embodiments, after the host computer server is started, the UI machine that first communicates with the host computer server has the master control authority.

[0014] According to a second aspect of an embodiment of the present disclosure, a user interface mutual locking system is provided, comprising:

[0015] The table creation module creates a table in the database of the host server, which stores the user account list, UI machine IP address list, and whether it is the master control information;

[0016] The IP address feedback module obtains the current user account. If the current user account is stored in the user account list, the IP address of the UI machine for which the user has master control authority is fed back to the user interface. If the current user account is not stored in the user account list, the current user account and the corresponding UI machine IP address, as well as whether it is the master control, are stored in the database table in the host server, and the UI machine IP address is fed back to the user interface.

[0017] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, including a memory, a processor, and a computer program stored and running on the memory, wherein the processor implements the method for mutually locking user interfaces when executing the program.

[0018] According to a fourth aspect of an embodiment of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method for mutually locking user interfaces is implemented.

[0019] Compared with the prior art, the above technical solution adopted by the present invention has the advantages that: the present invention can prevent the machine uncertainty problem from occurring when multiple UI machine ports communicate with the host server, thereby avoiding danger.

[0020] When switching control permissions, password verification will be performed to ensure security. At the same time, each user interface will continue to receive the IP address information of the UI machine that currently has the master control permission of the host server, so that multiple user interfaces will not control the same device at the same time. In addition, the password verification mechanism can also ensure the consistency of operation behavior, prevent work interruptions or errors caused by switching operations between different machines, and avoid unnecessary problems. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The drawings in the specification, which constitute a part of the present application, are used to provide further understanding of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application.

[0022] Figure 1 It is a schematic diagram of the prior art of multiple user interfaces communicating with a host computer server at the same time;

[0023] Figure 2 This is a schematic diagram of the principle of multiple user interfaces communicating with the host computer server at the same time in the present invention. DETAILED DESCRIPTION

[0024] The present disclosure is further described below in conjunction with the accompanying drawings and embodiments.

[0025] It should be noted that the following detailed descriptions are illustrative and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present application belongs.

[0026] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0027] It should be noted that the flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the methods and systems according to various embodiments of the present disclosure. It should be noted that each box in the flowchart or block diagram can represent a module, a program segment, or a part of a code, and the module, program segment, or a part of a code may include one or more executable instructions for implementing the logical functions specified in each embodiment. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, or they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the flowchart and / or block diagram, and the combination of boxes in the flowchart and / or block diagram can be implemented using a dedicated hardware-based system that performs a specified function or operation, or can be implemented using a combination of dedicated hardware and computer instructions.

[0028] Embodiment 1:

[0029] In a workshop, a machine is usually equipped with more than two UI machines, and each machine can be logged in. In order to prevent problems caused by simultaneous control of multiple terminals, this embodiment provides a method for locking user interfaces, including:

[0030] A table is established in the database of the upper computer server, which stores the user account list, UI machine IP address list, and whether it is the master control information;

[0031] Get the current user account. If the current user account is stored in the user account list, the IP address of the UI machine for which the user has master control authority will be fed back to the user interface. If the current user account is not stored in the user account list (indicating that this account is logging in for the first time), the current user account and the corresponding UI machine IP address, as well as whether it is the master control, will be stored in the database table in the upper computer server, and the UI machine IP address will be fed back to the user interface.

[0032] Since the permissions displayed in the user interface may be modified privately by the user, the upper computer server will continuously transmit the UI machine IP address with master control permissions when transmitting messages to each UI machine. If the current UI machine IP address of the user interface is consistent with the transmitted UI machine IP address, the current UI machine maintains the master control permissions, and its master control permissions can perform read and write operations; if the current UI machine IP address is inconsistent with the transmitted UI machine IP address, the current UI machine will modify the master control permissions to viewing permissions, and its viewing permissions can only be read-only.

[0033] To prevent accidents, only one UI machine has the master control authority over the host server, and the remaining UI machines have viewing authority over the host server.

[0034] During use, permissions can be transferred through the user interface. A control conversion button is provided on the user interface. When the control conversion button is clicked, the password needs to be re-entered. This situation is applicable when the current UI machine has completed the control of the upper server, and permissions can be switched through the conversion button. When the password verification passes, the master control information corresponding to this user account in the upper server is modified to no. Because the upper server transmits the IP address of the UI machine with master control authority at the same time when transmitting the message, the master control information corresponding to the other user account and the UI machine IP address is modified to yes.

[0035] In order to facilitate users to know the current permissions of the machine, each UI machine continuously receives the IP address of the UI machine with master permission to the host server, so the user interface updates the master permission or viewing permission in real time.

[0036] During use, the machine is powered on as a whole, and after the host server is started, the UI machine that first communicates with the host server has the master control authority.

[0037] Embodiment 2:

[0038] This embodiment provides a user interface mutual locking system, including:

[0039] The table creation module creates a table in the database of the host server, which stores the user account list, UI machine IP address list, and whether it is the master control information;

[0040] The IP address feedback module obtains the current user account. If the current user account is stored in the user account list, the IP address of the UI machine for which the user has master control authority is fed back to the user interface. If the current user account is not stored in the user account list, the current user account and the corresponding UI machine IP address, as well as whether it is the master control, are stored in the database table in the host server, and the UI machine IP address is fed back to the user interface.

[0041] Embodiment three:

[0042] An electronic device includes a memory, a processor, and a computer program stored and running on the memory, wherein the processor implements the above-mentioned method for mutually locking user interfaces when executing the program, including:

[0043] A table is established in the database of the upper computer server, which stores the user account list, UI machine IP address list, and whether it is the master control information;

[0044] Get the current user account. If the current user account is stored in the user account list, the IP address of the UI machine for which the user has master control authority is fed back to the user interface. If the current user account is not stored in the user account list, the current user account and the corresponding UI machine IP address, as well as whether it is the master control, are stored in the database table in the upper computer server, and the UI machine IP address is fed back to the user interface.

[0045] Embodiment 4:

[0046] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned method for mutually locking user interfaces, including:

[0047] A table is established in the database of the upper computer server, which stores the user account list, UI machine IP address list, and whether it is the master control information;

[0048] Get the current user account. If the current user account is stored in the user account list, the IP address of the UI machine for which the user has master control authority is fed back to the user interface. If the current user account is not stored in the user account list, the current user account and the corresponding UI machine IP address, as well as whether it is the master control, are stored in the database table in the upper computer server, and the UI machine IP address is fed back to the user interface.

[0049] Those skilled in the art should understand that the modules or steps of the present disclosure can be implemented by a general-purpose computer device, or alternatively, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. The present disclosure is not limited to any specific combination of hardware and software.

[0050] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

[0051] Although the above describes the specific implementation methods of the present disclosure in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present disclosure. Technical personnel in the relevant field should understand that on the basis of the technical solution of the present disclosure, various modifications or variations that can be made by those skilled in the art without creative work are still within the scope of protection of the present disclosure.

Claims

1. A method for mutually locking user interfaces, characterized in that: include: A table is established in the database of the upper computer server, which stores the user account list, UI machine IP address list, and whether it is the master control information; Get the current user account. If the current user account is stored in the user account list, the IP address of the UI machine for which the user has master control authority is fed back to the user interface. If the current user account is not stored in the user account list, the current user account and the corresponding UI machine IP address, as well as whether it is the master control, are stored in the database table in the upper computer server, and the UI machine IP address is fed back to the user interface.

2. A method for mutually locking user interfaces according to claim 1, characterized in that: When the host server transmits a message to each UI machine, it also transmits the IP address of the UI machine with master control authority. If the current UI machine IP address of the user interface is consistent with the transmitted UI machine IP address, the current UI machine maintains the master control authority; if the current UI machine IP address is inconsistent with the transmitted UI machine IP address, the current UI machine modifies the master control authority to viewing authority.

3. A user interface mutual locking method according to claim 2, characterized in that: Only one UI machine has the master control authority over the host server, and the remaining UI machines have the viewing authority over the host server.

4. A method for mutually locking user interfaces according to claim 1, characterized in that: The user interface is provided with a control conversion button, and when the control conversion button is clicked, the password needs to be re-entered.

5. A user interface mutual locking method according to claim 4, characterized in that: When the password verification passes, the master control information corresponding to all user accounts in the host server will be changed to no; the master control information corresponding to the verified account and UI machine IP address will be changed to yes.

6. A method for mutually locking user interfaces according to claim 1, characterized in that: Each UI machine continuously receives the IP address of the UI machine that has the master control authority to the host server, so the user interface updates the master control authority or viewing authority in real time.

7. A method for mutually locking user interfaces according to claim 1, characterized in that: After the host server is started, the UI machine that first communicates with the host server has the master control authority.

8. A user interface mutual locking system, characterized in that: include: The table creation module creates a table in the database of the host server, which stores the user account list, UI machine IP address list, and whether it is the master control information; The IP address feedback module obtains the current user account. If the current user account is stored in the user account list, the IP address of the UI machine for which the user has master control authority is fed back to the user interface. If the current user account is not stored in the user account list, the current user account and the corresponding UI machine IP address, as well as whether it is the master control, are stored in the database table in the host server, and the UI machine IP address is fed back to the user interface.

9. An electronic device comprising a memory, a processor and a computer program stored and running on the memory, wherein the processor implements the user interface mutual locking method according to any one of claims 1 to 7 when executing the program.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, a user interface mutual locking method as described in any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Electric manned and cargo-carrying winches on oil drilling rig platforms and their intelligent operation methods

    CN122725135A