Permission transfer system and permission transfer method for integrated monitoring system
By designing a decoupled permission handover system and a consistent data coordination server in the integrated monitoring system, using observer mode and RAFT algorithm, the problems of cumbersome permission handover process and data consistency risks in the prior art are solved, and efficient and secure permission management is achieved.
Patent Information
- Application Number
- CN202411903517.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2044-12-23
AI Technical Summary
The permission transfer process of the existing comprehensive monitoring system is cumbersome and has high coupling, and there is a risk of strong data consistency, making it difficult to achieve trusted control and security of the process.
A permission transfer system is designed to coordinate the server to decouple the permission transfer commands between servers, and to use observer mode and RAFT algorithm to ensure strong consistency and trusted control of permission information.
It realizes simplification and security guarantee of the permission transfer process, reduces development difficulty and maintenance costs, and improves operational efficiency and data consistency.
Smart Images

Figure CN119835028A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of rail transit, and in particular to an authority transfer system and an authority transfer method for a comprehensive monitoring system. Background Art
[0002] With the advancement of urbanization, the need to expand domestic demand and develop a low-carbon economy, urban rail transit has become an important part of achieving sustainable development of urban transportation with its large capacity, fast speed, safety, punctuality, environmental protection and energy saving. The integrated monitoring system, with its unified software and hardware platform, can achieve maximum information exchange and resource sharing, and has been increasingly widely used.
[0003] Due to the huge system of operators at all levels and types, and the inevitable overlap of monitoring ranges, different operators can control a controlled object at multiple locations. In order to avoid accidents caused by different control commands of different operators (station level, center level) to the same device or related devices in the same system, and to further clarify the rights and responsibilities of the management and dispatching departments at all levels of rail transit operations, it is necessary to reasonably allocate the read, write, and control permissions of each device data, and manage the permissions of each user accordingly.
[0004] Generally speaking, the operating rights of different professional systems in the integrated monitoring system are mutually exclusive between the control center (center level) and the station (station level), and most of them are transferred between the control center and the station at the granularity of the station or a certain profession. Some integrated monitoring systems have also refined the process of authority transfer in order to better control the process of authority transfer. For example, the authority transferor first applies to the authority recipient for authority transfer, and then waits for the authority recipient to accept or refuse; in emergency mode, the authority can also be forcibly seized. However, the existing technical solutions for the authority transfer process are mainly through the direct request and response method between the authority transfer service modules of the server. Such solutions are cumbersome and highly coupled, which may bring risks of strong data consistency.
[0005] The statements herein merely provide background art related to the present invention and do not necessarily constitute prior art. Summary of the invention
[0006] The purpose of the present invention is to propose an authority transfer system and method for a comprehensive monitoring system, which can decouple the complex interaction process involved in the authority transfer commands between servers, and when transferring the authority of global equipment between the center and the station, it can achieve process trusted control, thereby simplifying the authority transfer process while ensuring security.
[0007] To achieve the above-mentioned purpose, the present invention proposes a system for transferring authority of an integrated monitoring system, which is used for transferring equipment authority between a center and a station, and includes: a requester, a consistency data coordination server and a receiver; the requester has a requester workstation and a requester server, and the requester server is provided with a requester server authority service module and a requester real-time library; the receiver has a receiver workstation and a receiver server, and the receiver server is provided with a receiver server authority service module and a receiver real-time library; the requester workstation and the requester server, the receiver workstation and the receiver server, the requester server and the consistency data coordination server, and the receiver server and the consistency data coordination server communicate through a network;
[0008] The consistency data coordination server contains permission information, and the requesting server permission service module and the receiving server permission service module are further used to write the update status of the permission information in the consistency data coordination server;
[0009] The requesting server permission service module and the receiving server permission service module are also used to receive the update status of the permission information pushed by the consistency data coordination server in observer mode to obtain the update status of the permission information written by other parties.
[0010] Preferably, the requester real-time library and the receiver real-time library record the permission owner and permission status of each device; the requester server permission service module and the receiver server permission service module are also used to update the permission owner and device permission status of the device in the requester real-time library and the receiver real-time library respectively.
[0011] Preferably, the requesting workstation is used to initiate a request for permission transfer to the requesting server permission service module; the requesting workstation also obtains the result of the permission transfer request through the requesting real-time library;
[0012] The receiving workstation obtains the permission transfer request information through the receiving real-time library; the receiving workstation also sends a return message of the permission transfer request to the receiving server permission service module.
[0013] Preferably, the authority information includes the group number of the server and workstation, the node number, the heartbeat information, the authority transfer process, and the device authority owner;
[0014] The requesting server and the receiving server refresh the heartbeat information at a certain frequency and send it to the consistency data coordination server. The consistency data coordination server saves the heartbeat information of the requesting party and the receiving party in the form of a timestamp; the server authority service module of the requesting party and the receiving party also obtains the timestamp of the other party's heartbeat information from the consistency data coordination server to determine whether the other party's network connection is normal.
[0015] The present invention also proposes a manual authority transfer method for an integrated monitoring system. Based on the authority transfer system for an integrated monitoring system, when the network connections between the station, the center and the consistency data coordination server are normal, the manual authority transfer method for an integrated monitoring system includes:
[0016] S1. According to the permission transfer request message from the requesting workstation, the requesting server permission service module writes the permission transfer request in the consistency data coordination server;
[0017] S2, the receiving server authority service module obtains the authority transfer request in the consistency data coordination server, and enables the receiving workstation to obtain the authority transfer request through the receiving real-time library, and then the receiving workstation sends a return message to the receiving server authority service module, and the receiving server authority service module writes the return message in the consistency data coordination server;
[0018] S3, the requester server authority service module obtains the return message from the consistency data coordination server, and updates the device information in the requester real-time library according to the return message, so that the requester workstation updates the authority transfer request status and the authority owner according to the updated information of the requester real-time library;
[0019] The requesting party is a center or a station, and the receiving party is a station or a center.
[0020] Preferably, the step S1 specifically includes:
[0021] S11, the requesting party server authority service module records the device authority owner in the requesting party real-time database;
[0022] S12, the requester real-time library provides a graphical interface to the requester workstation, so that the requester workstation can obtain the device authority owner information; the user selects the device to be transferred authority at the requester workstation, and sends a authority transfer request message to the requester server authority service module;
[0023] S13. The authority service module of the requesting server parses the authority transfer request message and verifies it. After the verification is passed, the authority transfer request is written into the consistency data coordination server.
[0024] Preferably, in step S12, before the user selects a device to which authority needs to be transferred at the requesting workstation, the requesting workstation verifies the user's operating authority to ensure that the user requesting authority transfer has the operating authority.
[0025] Preferably, in step S13, after verification, the requesting server permission service module writes the permission transfer request and the corresponding time into the permission information of the corresponding device in the consistency data coordination server, and updates the corresponding device permission status in the requesting party's real-time library to the requested status.
[0026] Preferably, the step S2 specifically includes:
[0027] S21, the receiving server authority service module obtains the authority transfer request pushed by the consistency data coordination server in observer mode, and updates the corresponding device authority status to the request status in the receiving real-time library according to the authority transfer request;
[0028] S22, the receiving workstation obtains the permission transfer request message through the push of the receiving real-time library subscription point and displays it on the receiving workstation interface, and provides two options of acceptance and rejection;
[0029] S23, when the receiving workstation receives a return message of receiving the permission transfer request or rejecting the permission transfer request, the return message is sent to the receiving server permission service module;
[0030] S24. The receiving server permission service module receives and parses the return message, and based on the return message, writes the permission information of the corresponding device in the consistency data coordination server into the return message of the permission transfer request, updates the permission owner of the corresponding device in the consistency data coordination server, and writes the writing time of the return message, and correspondingly updates the device permission status in the receiving party's real-time library.
[0031] Preferably, the step S3 specifically includes:
[0032] S31, the authority service module of the requesting party server obtains the return message pushed by the consistency data coordination server in observer mode, and updates the device authority status in the real-time library of the requesting party according to the return message, and then clears the authority transfer request information in the consistency data coordination server; at the same time, it also receives the change push of the device authority owner pushed by the consistency data coordination server, and updates the device authority owner in the real-time library of the requesting party accordingly;
[0033] S32. The requesting workstation updates the status of the permission transfer request through the push of the requesting real-time library subscription point, and updates the device permission owner accordingly in the requesting workstation.
[0034] Preferably, during the authority transfer process of one device, the authority transfer process of other devices can also be carried out simultaneously.
[0035] The present invention also proposes a mandatory authority transfer method for an integrated monitoring system, based on the authority transfer system for the integrated monitoring system, comprising:
[0036] S1. Select the device that needs to be forcibly reclaimed in the interface of the central workstation, so that the central workstation sends a message of forcibly reclaiming the permission to the central server permission service module;
[0037] S2. The central server authority service module parses the mandatory authority recovery message sent by the central workstation, and then directly modifies the device authority owner as the center in the corresponding device authority information in the consistency data coordination server, and simultaneously updates the device authority owner as the center in the central real-time database;
[0038] S3. The station server permission service module obtains the message of modification of the permission owner pushed by the consistency data coordination server in observer mode, so as to update the corresponding device permission owner as the center in the station real-time library, and then the station workstation updates the corresponding device permission owner as the center through the push of the station real-time library subscription point.
[0039] The present invention also proposes an automatic authority transfer method for an integrated monitoring system, based on the authority transfer system for an integrated monitoring system, for automatically transferring device authority when a network is abnormal, comprising:
[0040] When the network between the station and the consistency data coordination server is abnormal, the device control authority will be automatically transferred to the center. Specifically: when the station server disconnects from the consistency data coordination server and reports an error and fails to reconnect, the station server authority service module updates the device authority in the station real-time library, and updates the authority owner of the device whose current device control authority is in the station to the center, so that the station workstation updates the corresponding device authority owner to the center through the push of the station real-time library subscription point; when the center server determines through the heartbeat information that the station server is disconnected from the consistency data coordination server, the center server authority service module updates the device authority owner in the center real-time library. If the current authority owner of the device is the station, its authority owner is changed to the center, so that the center workstation updates the authority owner of the corresponding device to the center through the push of the center real-time library subscription point, and the center server authority service module also updates the corresponding device authority owner in the consistency data coordination server;
[0041] When the network between the center and the consistency data coordination server is abnormal, the device control authority will be automatically transferred to the station. Specifically: when the station server determines through heartbeat information that the central server is disconnected from the consistency data coordination server, the station server authority service module updates the device authority in the station real-time library, and updates the authority owner of the device whose current device control authority is in the center to the station, so that the station workstation updates the corresponding device authority owner to the station through the push of the station real-time library subscription point, and the station server authority service module also updates the corresponding device authority owner to the station in the consistency data coordination server; when the central server and the consistency data coordination server are disconnected from the network connection and report an error and fail to reconnect, the central server authority service module updates the device authority owner in the central real-time library. If the current authority owner of the device is the center, its authority owner is changed to the station. If the current authority owner is the station, it is maintained, so that the central workstation updates the corresponding device authority owner through the push of the central real-time library subscription point;
[0042] When an exception occurs in the service of the consistency data coordination server, the device control authority will be automatically transferred. Specifically: when the station server and the central server report an exception when writing information to the consistency data coordination server, the central authority service module and the station server authority service module will update the device control authority in the central real-time library and the station real-time library respectively according to the default authority in the predefined initialization file, so that the central workstation and the station workstation will update the authority owner of the corresponding device respectively through the push of the central real-time library and the station real-time library subscription points.
[0043] Compared with the prior art, the technical solution of the present invention has the following advantages and beneficial effects:
[0044] This technical solution makes full use of the characteristics of the consistent data coordination server based on the RAFT algorithm, decouples the complex interaction process involved in the authority transfer command between servers, and achieves trusted control of the global equipment of the center and the station during the authority transfer process. It has the advantages of high operating efficiency, reduced development difficulty, easy maintenance, and convenient debugging;
[0045] This technical solution uses asynchronous operation to control the transfer of permissions for global devices. The operations between workstation nodes do not interfere with each other, and permissions can be transferred to different devices multiple times in succession without blocking and waiting for the permission transfer result to be returned, which improves efficiency.
[0046] The consistent data coordination server of this technical solution based on the RAFT algorithm can ensure the strong consistency of cluster data, effectively avoid the control impact of different users on the same device on the device or system, and prevent harmful control processes. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 A schematic diagram of manual authority transfer for a comprehensive monitoring system in an embodiment of the present invention;
[0048] Figure 2 A schematic diagram of a received authority transfer timeout for a comprehensive monitoring system in an embodiment of the present invention;
[0049] Figure 3 A schematic diagram of a mandatory authority transfer for a comprehensive monitoring system in an embodiment of the present invention;
[0050] Figure 4 A schematic diagram of automatic authority transfer when a network abnormality occurs between a station and a consistency data coordination server in an embodiment of the present invention;
[0051] Figure 5 A schematic diagram of automatic authority transfer when a network anomaly occurs between the center and the consistency data coordination server in an embodiment of the present invention;
[0052] Figure 6 This is a schematic diagram of automatic authority transfer when a consistency data coordination server network is abnormal in an embodiment of the present invention. DETAILED DESCRIPTION
[0053] The following will be combined with the embodiments of the present invention Figure 1 to Figure 6 , the technical solutions, structural features, objectives achieved and effects in the embodiments of the present invention are described in detail.
[0054] It should be noted that the drawings are in a very simplified form and use non-precise proportions. They are only used to conveniently and clearly assist in explaining the embodiments of the present invention, and are not used to limit the conditions for the implementation of the present invention. Therefore, they have no substantive technical significance. Any structural modification, change in proportional relationship or adjustment of size, without affecting the effects and purposes that can be achieved by the present invention, should still fall within the scope of the technical content disclosed by the present invention.
[0055] It should be noted that, in the present invention, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only the elements explicitly listed, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0056] The present invention discloses an authority transfer system and an authority transfer method for a comprehensive monitoring system, which are used for transferring the authority of equipment between a central cluster and a station cluster. The authority transfer system and the authority transfer method are based on an autonomous and controllable consistency data coordination service cluster of a RAFT algorithm (Raft Consensus Algorithm, which is a consensus algorithm for achieving data consistency in a distributed system), which can ensure the strong consistency of cluster data, ensure that the authority transfer strategy and the information in the process are controllable and reliable, and can also achieve decoupling between a main control system and a sub-control system.
[0057] The technical solution of the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.
[0058] like Figure 1 As shown, it is a schematic diagram of a working mode of the authority transfer system for the comprehensive monitoring system of this embodiment, and the authority transfer system includes: a requester, a consistency data coordination server and a receiver. The requester has a requester workstation and a requester server, and the requester server is provided with a requester server authority service module and a requester real-time library; the receiver has a receiver workstation and a receiver server, and the receiver server is provided with a receiver server authority service module and a receiver real-time library.
[0059] The authority transfer system is used to transfer equipment authority between a center and a station, wherein the equipment includes a single remotely controllable equipment, a predefined group of remotely controllable equipment, or all-station remotely controllable equipment.
[0060] This application is mainly aimed at the scenario of authority transfer between the center cluster and the station cluster, and the control authority is generally located in the master node of the cluster, that is, the authority transfer is performed between the center cluster master node (usually located in the control center) and the station cluster master node. For the sake of convenience, the center in the following text refers to the center cluster (or center cluster master node), and the station refers to the station cluster or station cluster master node. Therefore, the requesting party in this application is the center or station, and the receiving party corresponds to the station or center.
[0061] The consistency data coordination server contains permission information, and the requesting server permission service module and the receiving server permission service module can write the update status of the permission information in the consistency data coordination server. The requesting server permission service module and the receiving server permission service module also receive the update status of the permission information pushed by the consistency data coordination server in observer mode to obtain the update status of the permission information written by other parties.
[0062] The authority information recorded in the consistency data coordination server includes: group number, node number, heartbeat information, authority transfer process, equipment authority owner and other information of servers (including servers at the center and stations) and workstations (including workstations at the center and stations). In the consistency data coordination server, the secondary structure divided by station and specialty is used as the unique primary key (that is, first use the station as the large classification dimension to distinguish different stations, and then subdivide each station according to specialty. Specialty refers to professional systems, such as power supply systems, environmental control systems, etc.), so that the station group code and station specialty are constructed into a directory index key to record the authority information of each device. The storage format of some of its specific information is as follows:
[0063] / STATUS / DATETIME / OCC: heartbeat, refresh the current time every 1 second (OCC: center code);
[0064] / STATUS / DATETIME / STA: Heartbeat, refresh the current time every 1 second (STA: station code)
[0065] / PRIVILEGE / DEVICECODE: Use the actual group code to represent;
[0066] / TRANSFER / DEVICECODE:{"phase":"","time":""}.
[0067] Through the above information storage format, the consistency data coordination server records the heartbeat information of the center and the station, the number of each device, and the permission transfer status corresponding to each device, where "phase" represents the permission transfer request status, and "time" represents the current timestamp; each time the requesting server permission service module or the receiving server permission service module writes the permission information update status in the consistency data coordination server, the "phase" status of the device will be updated, that is, the permission transfer request status of the device will be updated, and "time" will also be updated, that is, the current timestamp will be updated. In this embodiment, different numbers are set for "phase" to represent different permission transfer request status. Specifically, 1 represents requesting transfer, 2 represents accepting transfer, and 3 represents rejecting transfer.
[0068] The heartbeat information is used to determine whether the network connection between the station, the center and the consistency data coordination server is normal. Specifically, the server authority service module of the station and the center refreshes the heartbeat information at a frequency of once per second and sends it to the consistency data coordination server. The consistency data coordination server saves the heartbeat information of the station and the center in the form of a timestamp; the server authority service module of the station and the center obtains the timestamp of the heartbeat information of the other party from the consistency data coordination server to determine whether the network connection of the other party is normal. If it is found that the heartbeat information timestamp of a server has not been refreshed for more than three times, it is determined that the server is disconnected. Specifically, the station server authority service module obtains the heartbeat information timestamp of the central server authority service module from the consistency data coordination server. If it is found that the heartbeat information timestamp has not been refreshed for more than three seconds, the station server authority service module determines that the network connection between the consistency data coordination server and the central server is abnormal; the central server authority service module obtains the heartbeat information timestamp of the station server authority service module from the consistency data coordination server. If it is found that the heartbeat information timestamp has not been refreshed for more than three seconds, the central server authority service module determines that the network connection between the consistency data coordination server and the station server is abnormal.
[0069] The requesting workstation and the requesting server, as well as the receiving workstation and the receiving server, realize network communication through an autonomous and controllable real-time message bus, which has the characteristics of object-oriented programming technology, uses reliable TCP / IP communication middleware, and has the characteristics of connecting to a streaming network mode. The requesting server and the consistency data coordination server, as well as the receiving server and the consistency data coordination server, also communicate through the network.
[0070] The requester real-time library and the receiver real-time library record the owner information of the current control authority of each device (hereinafter referred to as the authority owner). The detailed information recorded in the requester real-time library and the receiver real-time library is shown in the following table:
[0071]
[0072]
[0073] According to the above table, the real-time library of the requesting party and the real-time library of the receiving party record the device code of each device, the group code of the device, whether the device can be forced to transfer permissions, whether the device can transfer permissions, whether the device permissions can be received, the device permission information status flag (Status, with 4 columns, namely forced transfer of permissions, transfer of permissions, successful permission transfer, failed permission transfer), and the level of the device (center OCC or station STA).
[0074] The requesting workstation is used to initiate a permission transfer request to the requesting server permission service module; after receiving the permission transfer request, the requesting server permission service module writes the permission transfer request in the consistency data coordination server, and after receiving the permission transfer request return message from the consistency data coordination server in observer mode, updates the relevant information in the requesting party real-time library; the requesting workstation obtains the result of the permission transfer request through the subscription point push of the requesting party real-time library.
[0075] The receiving server permission service module receives the update status of the permission information in the consistency data coordination server in observer mode, and after obtaining the permission transfer request information, updates the relevant information in the receiving party's real-time library; the receiving workstation pushes through the subscription point of the receiving party's real-time library, obtains the permission transfer request information and displays it to the user, and the receiving workstation user inputs the return message of the permission transfer request, and the receiving workstation then sends the return message of the permission transfer request to the receiving server permission service module; according to the return message of the permission transfer request, the receiving server permission service module updates the status of the permission transfer request in the consistency data coordination server, and synchronously updates the status of the permission transfer request and the current permission owner in the receiving party's real-time library.
[0076] Based on the above-mentioned authority transfer system for the integrated monitoring system, this embodiment discloses a manual authority transfer method for the integrated monitoring system, including the following steps:
[0077] S1. According to the permission transfer request message from the requesting workstation, the requesting server permission service module writes the permission transfer request in the consistency data coordination server;
[0078] S2, the receiving server authority service module obtains the authority transfer request in the consistency data coordination server, and enables the receiving workstation to obtain the authority transfer request through the receiving real-time library; the receiving workstation sends a return message to the receiving server authority service module, so that the receiving server authority service module writes the return message in the consistency data coordination server;
[0079] S3. The requesting party server authority service module obtains the return message from the consistency data coordination server, and updates the device authority information in the requesting party real-time library according to the return message, so that the requesting party workstation updates the authority transfer request status and the authority owner according to the updated information of the requesting party real-time library.
[0080] Wherein, step S1 specifically includes the following steps:
[0081] S11, the requesting party server authority service module records the device authority owner in the requesting party real-time database;
[0082] Specifically, the requester server authority service module reads the current authority owner information of each device from the consistency data coordination server and stores it in the requester real-time library;
[0083] S12, the requesting workstation selects the device to which the authority needs to be transferred, and sends a authority transfer request message to the authority service module of the requesting server;
[0084] The requester real-time library provides a graphical interface query to the requester workstation, so that the requester workstation can obtain the current permission owner information of the device; after the user selects the device to which permission needs to be transferred in the interface of the requester workstation, the requester workstation sends the corresponding permission transfer request message to the requester server permission service module.
[0085] Among them, multiple devices that need to transfer permissions can be selected at one time on the requester workstation. However, it should be noted that when the user selects the device to which permissions need to be transferred on the requester workstation, the permission transfer request message can only be successfully generated when the current permission holders of all selected devices belong to the receiving party. For example, when the center (OCC) is the requester, the devices to which permissions need to be transferred are checked on the permission transfer request interface of the central workstation. If the current permission holders of one or more of the checked devices belong to the center, the interface request button is displayed as unselectable, for example, in a grayed-out state; if the current permission holders of all the checked devices belong to the station device side, the interface request button is in an enabled and valid state. Correspondingly, when the station (STA) is the requester, the interface request button is enabled only when the current permission holders of the devices checked on the station workstation are all devices of the center, otherwise it is in a grayed-out state.
[0086] Furthermore, in step S12, before the user selects the device to which the authority needs to be transferred on the requesting workstation, the requesting workstation also verifies the user's operating authority to ensure that the user requesting the authority transfer has the operating authority. Since different user roles in the entire system have different operating authority differences, in order to ensure the professionalism and security of the operation, it is set that only users with certain authority can execute the authority transfer request on the requesting workstation.
[0087] S13, the requesting server authority service module parses the authority transfer request information and verifies it, and after the verification passes, writes the request information to the consistency data coordination server;
[0088] Specifically, after receiving the permission transfer request message sent by the requesting workstation, the requesting server permission service module parses it and verifies whether the devices involved in the permission transfer request message meet the judgment conditions for permission transfer. The specific verification logic is: determine whether the network connection between the requesting party and the receiving party and the consistency data coordination server is normal. In this embodiment, the requesting server permission service module determines in the requesting party's real-time library whether the device for which permission transfer is requested is in a state where permission can be transferred, that is, whether "TransferEnable" is in a valid state. When the requesting server permission service module confirms in the consistency data coordination server that the receiving party's heartbeat timestamp is refreshed normally and the heartbeat information of the requesting server permission service module is refreshed and sent normally, "TransferEnable" will be set to the valid state "1".
[0089] If the verification is passed, the requesting server permission service module writes the permission transfer request and the corresponding time in the permission information of the corresponding device in the consistency data coordination server, and updates the permission status of the corresponding device in the requesting party's real-time library to the request status. In this embodiment, if the verification is passed, the requesting server permission service module sets the "phase" in the permission information of the corresponding device in the consistency data coordination server to 1 to indicate the request transfer, and updates the "time" to the current timestamp; and updates the permission information status flag status of the corresponding device in the requesting party's real-time library to the request status.
[0090] If the verification fails, the requesting server authority service module sends an error message to the requesting workstation.
[0091] The step S2 specifically includes the following steps:
[0092] S21, the receiving server authority service module obtains the authority transfer request pushed by the consistency data coordination server in observer mode, and updates the corresponding device authority status to the request status in the receiving party real-time library according to the authority transfer request;
[0093] The observer pattern is a software design pattern. The observer (also called the subscriber) is interested in the state changes of the observed object and will register with the observed object. When the state of the observed object changes, it will receive a notification and perform corresponding processing. In this step, the receiving server authority service module is the observer, and the consistency data coordination server is the observed object.
[0094] S22, the receiving workstation obtains the permission transfer request message through the push of the receiving real-time library subscription point and displays it on the receiving workstation interface, and provides two options of acceptance and rejection for the user to choose;
[0095] The subscription point refers to an identifier registered by the receiving workstation on the receiving real-time library. Through this subscription point, the receiving workstation and the receiving real-time library are associated so that the receiving workstation can receive notification when the status of the receiving real-time library changes.
[0096] S23, when the receiving workstation receives a return message of receiving the permission transfer request or rejecting the permission transfer request, the return message is sent to the receiving server permission service module through the receiving server network service module;
[0097] The receiving server network service module is a network module within the receiving server, which provides network connections with other servers.
[0098] Furthermore, after receiving the return message, the network service module of the receiving server first writes it into a pipeline message, and then sends it to the authority service module of the receiving server through the pipeline message.
[0099] S24. The receiving server permission service module receives and parses the return message, and based on the return message, writes the permission information of the corresponding device in the consistency data coordination server into the return message of the permission transfer request information as acceptance or rejection, and writes the writing time of the return message, updates the permission owner of the corresponding device in the consistency data coordination server, and updates the permission status of the corresponding device in the receiving party's real-time library to a reception status or a rejection status.
[0100] In this embodiment, if the return message is a reception, the "phase" in the permission information of the corresponding device in the consistency data coordination server is set to 2, and the "time" is updated to the current timestamp, and the permission owner (i.e., the requester) of the corresponding device in the consistency data coordination server is updated, and the permission information status flag status of the corresponding device in the receiver's real-time library is updated to a reception state. If the return message is a rejection, the "phase" in the permission information of the corresponding device in the consistency data coordination server is set to 3, and the "time" is updated to the current timestamp, and the permission owner (i.e., still the receiver) of the corresponding device in the consistency data coordination server is retained, and the permission information status flag status of the device in the receiver's real-time library is updated to a rejection state.
[0101] Furthermore, in step S2, a waiting time limit is set for the receiving server authority service module. When the receiving server authority service module has not received a return message of the authority transfer request sent by the receiving workstation within the waiting time limit, that is, the timeout occurs, and the authority transfer request is directly regarded as rejected, and step S24 is continued. Figure 2 As shown, the receiving server permission service module writes the permission information of the corresponding device in the consistency data coordination server into the return message of the permission transfer request information as acceptance or rejection, and writes the writing time of the return message, and updates the permission status of the corresponding device in the receiving party's real-time library to a rejection status.
[0102] The step S3 specifically comprises the following steps:
[0103] S31, the requester server authority service module obtains the return message of the authority transfer request pushed by the consistency data coordination server in observer mode, and updates the corresponding device authority status in the requester real-time library to the receiving state or the rejecting state according to the return message, and then clears the authority transfer request information in the consistency data coordination server; at the same time, it also receives the change push of the device authority owner pushed by the consistency data coordination server, and updates the authority owner of the device in the requester real-time library accordingly;
[0104] In this step, the requesting server authority service module is the observer, and the consistency data coordination server is the observed object;
[0105] S32. The requesting workstation updates the status (acceptance or rejection) of the permission transfer request through the push of the requesting real-time library subscription point. If it is acceptance, the device permission owner is updated in the requesting workstation. If it is rejection, the previous device permission owner is retained in the requesting workstation.
[0106] The execution premise of the above manual authority transfer method is that the network connection between the station, the center and the consistency data coordination server is normal, that is, the station and the center can send heartbeat information to the consistency data coordination server normally.
[0107] For the above-mentioned authority transfer system for the comprehensive monitoring system, at the initial startup, the requesting server authority service module and the receiving server authority service module load the initialization file according to the default authority allocation method, and update the initial authority information to the consistency data coordination server. After the initialization work is completed, no subsequent initialization tasks will be performed. The requesting server authority service module and the receiving server authority service module will update the authority transfer information on the consistency data coordination server according to the above-mentioned authority transfer process, and obtain the updated information from the consistency data coordination server in observer mode.
[0108] In the above-mentioned manual authority transfer method for the comprehensive monitoring system, the authority transfer process uses an asynchronous method, that is, during the authority transfer process of one device, the authority transfer process of other devices can also be carried out simultaneously without waiting for the result of the last device transfer request. Therefore, the operations between workstation nodes do not interfere with each other, and the authority transfer of different devices can be performed multiple times in succession without blocking and waiting for the authority transfer result to be returned, thereby improving work efficiency.
[0109] Based on the above-mentioned authority transfer system for the integrated monitoring system, this embodiment also discloses a compulsory authority transfer method for the integrated monitoring system, which is used for the center to compulsorily recover the equipment authority of the station, such as Figure 3 As shown, the method comprises the following steps:
[0110] S1. Select the device that needs to be forcibly reclaimed in the interface of the central workstation, so that the central workstation sends a message of forcibly reclaiming the permission to the central server permission service module;
[0111] Among them, only when the current permission holders of all selected devices belong to the station, can the forced permission recovery message be successfully generated. In this embodiment, if the selected devices include a device with the current permission holder as the center, the forced recovery button on the interface is not selectable, for example, it is grayed out;
[0112] S2. The central server authority service module parses the mandatory authority recovery message sent by the central workstation, and then directly modifies the authority owner to the center in the authority information of the corresponding device in the consistency data coordination server, and at the same time updates the authority owner of the corresponding device to the center in the central real-time library;
[0113] S3. The station server permission service module uses the observer mode to obtain the message of the permission owner's modification pushed by the consistency data coordination server, so as to update the permission owner of the corresponding device in the station real-time library. Then, the station workstation updates the permission owner of the corresponding device through the push of the station real-time library subscription point.
[0114] Based on the above-mentioned authority transfer system for the integrated monitoring system, this embodiment further discloses an automatic authority transfer method for the integrated monitoring system, which is used to automatically transfer device authority when a network anomaly occurs, wherein whether a network anomaly occurs is determined by heartbeat information, and the automatic authority transfer method includes the following steps:
[0115] When the network between the station and the consistency data coordination server is abnormal, such as Figure 4 As shown, the device control authority will be automatically transferred. If the current device authority owner is the station, the device authority will be automatically transferred to the center. If the current device authority owner is the center, the device authority will be retained. Specifically: when the station server disconnects from the consistency data coordination server and reports an error and fails to reconnect, the station server authority service module updates the device authority in the station real-time library, and updates the authority owner of the device with the current device control authority at the station to the center, so that the station workstation updates the authority owner of the corresponding device to the center through the push of the station real-time library subscription point; when the center server determines through the heartbeat information that the station server is disconnected from the consistency data coordination server, the center server authority service module updates the device authority owner in the center real-time library. If the current authority owner of the device is the station, its authority owner is changed to the center, so that the center workstation updates the authority owner of the corresponding device to the center through the push of the center real-time library subscription point, and the center server authority service module is also in the consistency data coordination server, corresponding to the updated device authority owner;
[0116] When the network between the center and the consistency data coordination server is abnormal, such as Figure 5As shown, the device control authority will be automatically transferred. If the current device authority owner is the center, the device authority will be automatically transferred to the station. If the current device authority owner is the station, the device authority will be retained. Specifically: when the station server determines through the heartbeat information that the central server is disconnected from the consistency data coordination server, the station server authority service module updates the device authority in the station real-time library, and updates the authority owner of the device with the current device control authority in the center to the station, so that the station workstation updates the authority owner of the corresponding device to the station through the push of the station real-time library subscription point. The station server authority service module also updates the device authority owner of the corresponding device to the station in the consistency data coordination server; when the central server and the consistency data coordination server are disconnected from the network connection and report an error and fail to reconnect, the central server authority service module updates the device authority owner in the central real-time library. If the current authority owner of the device is the center, its authority owner is changed to the station. If the current authority owner is the station, it is maintained, so that the central workstation updates the authority owner of the corresponding device through the push of the central real-time library subscription point;
[0117] When the consistency data coordination server service is abnormal, such as Figure 6 As shown, the device control authority will be automatically transferred, and the default authority will be transferred according to the predefined initialization file. Specifically: when the station and center servers write information to the consistency data coordination server, an abnormal error is reported. The center and station server authority service modules update the device control authority in the center and station real-time libraries respectively according to the default authority in the predefined initialization file. Therefore, each workstation updates the authority owner of the corresponding device through the push of the real-time library subscription point, so that the center and the station control the device according to the predefined initialization file, wherein the predefined initialization file is a file preset in the center server and the station server, which records the default authority allocation method.
[0118] It should be noted that when the server environment or network communication interference occurs only for a short time (momentary), the device control authority will not be automatically transferred, and the station server will determine whether it is a short-term interference.
[0119] Although the content of the present invention has been described in detail through the above preferred embodiments, it should be appreciated that the above description should not be considered as a limitation of the present invention. After reading the above content, it will be apparent to those skilled in the art that various modifications and substitutions of the present invention will occur. Therefore, the protection scope of the present invention should be limited by the appended claims.
Claims
1. A rights transfer system for an integrated monitoring system, used for transferring equipment rights between a center and a station, characterized in that: include: Requester, consistency data coordination server and receiver; The requester has a requester workstation and a requester server, wherein the requester server is provided with a requester server authority service module and a requester real-time library; The receiver has a receiver workstation and a receiver server, wherein the receiver server is provided with a receiver server authority service module and a receiver real-time library; the requester workstation and the requester server, the receiver workstation and the receiver server, the requester server and the consistency data coordination server, and the receiver server and the consistency data coordination server communicate through a network; The consistency data coordination server contains permission information, and the requesting server permission service module and the receiving server permission service module are further used to write the update status of the permission information in the consistency data coordination server; The requesting server permission service module and the receiving server permission service module are also used to receive the update status of the permission information pushed by the consistency data coordination server in observer mode to obtain the update status of the permission information written by other parties.
2. The authority transfer system for a comprehensive monitoring system according to claim 1, characterized in that: The requester real-time library and the receiver real-time library record the authority owner and authority status of each device; The requester server authority service module and the receiver server authority service module are also used to update the authority owner and the authority status of the device in the requester real-time library and the receiver real-time library respectively.
3. The authority transfer system for a comprehensive monitoring system according to claim 1, characterized in that: The requesting workstation is used to initiate a request for permission transfer to the requesting server permission service module; the requesting workstation also obtains the result of the permission transfer request through the requesting real-time library; The receiving workstation obtains the authority transfer request information through the receiving real-time library; The receiving workstation also sends a return message of the rights transfer request to the receiving server rights service module.
4. The authority transfer system for a comprehensive monitoring system according to claim 1, characterized in that: The authority information includes the group number of the server and workstation, the node number, the heartbeat information, the authority transfer process, and the device authority owner; The requesting server and the receiving server refresh the heartbeat information at a certain frequency and send it to the consistency data coordination server, and the consistency data coordination server saves the heartbeat information of the requesting server and the receiving server in the form of a timestamp; The server authority service modules of the requester and the receiver also obtain the timestamp of the heartbeat information of the other party from the consistency data coordination server to determine whether the network connection of the other party is normal.
5. A manual authority transfer method for an integrated monitoring system, based on the authority transfer system for an integrated monitoring system according to any one of claims 1 to 4, characterized in that: When the network connections between the station, the center and the consistency data coordination server are normal, the manual authority transfer method for the integrated monitoring system includes: S1. According to the permission transfer request message from the requesting workstation, the requesting server permission service module writes the permission transfer request in the consistency data coordination server; S2, the receiving server authority service module obtains the authority transfer request in the consistency data coordination server, and enables the receiving workstation to obtain the authority transfer request through the receiving real-time library, and then the receiving workstation sends a return message to the receiving server authority service module, and the receiving server authority service module writes the return message in the consistency data coordination server; S3, the requester server authority service module obtains the return message from the consistency data coordination server, and updates the device information in the requester real-time library according to the return message, so that the requester workstation updates the authority transfer request status and the authority owner according to the updated information of the requester real-time library; The requesting party is a center or a station, and the receiving party is a station or a center.
6. The manual authority transfer method for a comprehensive monitoring system according to claim 5, characterized in that: The step S1 specifically includes: S11, the requesting party server authority service module records the device authority owner in the requesting party real-time database; S12, the requester real-time library provides a graphical interface to the requester workstation, so that the requester workstation can obtain the device authority owner information; the user selects the device to be transferred authority at the requester workstation, and sends a authority transfer request message to the requester server authority service module; S13. The authority service module of the requesting server parses the authority transfer request message and verifies it. After the verification is passed, the authority transfer request is written into the consistency data coordination server.
7. The manual authority transfer method for a comprehensive monitoring system according to claim 6, characterized in that: In step S12, before the user selects a device to which authority needs to be transferred at the requesting workstation, the requesting workstation checks the user's operating authority to ensure that the user requesting authority transfer has the operating authority.
8. The manual authority transfer method for a comprehensive monitoring system according to claim 6, characterized in that: In step S13, after verification, the requesting server authority service module writes the authority transfer request and the corresponding time into the authority information of the corresponding device in the consistency data coordination server, and updates the authority status of the corresponding device in the requesting party real-time library to the request status.
9. The manual authority transfer method for a comprehensive monitoring system according to claim 6, characterized in that: The step S2 specifically includes: S21, the receiving server authority service module obtains the authority transfer request pushed by the consistency data coordination server in observer mode, and updates the corresponding device authority status to the request status in the receiving real-time library according to the authority transfer request; S22, the receiving workstation obtains the permission transfer request message through the push of the receiving real-time library subscription point and displays it on the receiving workstation interface, and provides two options of acceptance and rejection; S23, when the receiving workstation receives a return message of receiving the permission transfer request or rejecting the permission transfer request, the return message is sent to the receiving server permission service module; S24. The receiving server permission service module receives and parses the return message, and based on the return message, writes the permission information of the corresponding device in the consistency data coordination server into the return message of the permission transfer request, updates the permission owner of the corresponding device in the consistency data coordination server, and writes the writing time of the return message, and correspondingly updates the device permission status in the receiving party's real-time library.
10. The manual authority transfer method for a comprehensive monitoring system according to claim 9, characterized in that: The step S3 specifically includes: S31, the authority service module of the requesting party server obtains the return message pushed by the consistency data coordination server in observer mode, and updates the device authority status in the real-time library of the requesting party according to the return message, and then clears the authority transfer request information in the consistency data coordination server; at the same time, it also receives the change push of the device authority owner pushed by the consistency data coordination server, and updates the device authority owner in the real-time library of the requesting party accordingly; S32. The requesting workstation updates the status of the permission transfer request through the push of the requesting real-time library subscription point, and updates the device permission owner accordingly in the requesting workstation.
11. The manual authority transfer method for a comprehensive monitoring system according to claim 5, characterized in that: During the permission transfer process of one device, the permission transfer process of other devices can also be carried out at the same time.
12. A method for mandatory authority transfer for an integrated monitoring system, based on the authority transfer system for an integrated monitoring system according to any one of claims 1 to 4, characterized in that: include: S1. Select the device that needs to be forcibly reclaimed in the interface of the central workstation, so that the central workstation sends a message of forcibly reclaiming the permission to the central server permission service module; S2. The central server authority service module parses the mandatory authority recovery message sent by the central workstation, and then directly modifies the device authority owner as the center in the corresponding device authority information in the consistency data coordination server, and simultaneously updates the device authority owner as the center in the central real-time database; S3. The station server permission service module obtains the message of modification of the permission owner pushed by the consistency data coordination server in observer mode, so as to update the corresponding device permission owner as the center in the station real-time library, and then the station workstation updates the corresponding device permission owner as the center through the push of the station real-time library subscription point.
13. An automatic authority transfer method for an integrated monitoring system, based on the authority transfer system for an integrated monitoring system according to any one of claims 1 to 4, for automatically transferring device authority when a network anomaly occurs, characterized in that: include: When the network between the station and the consistency data coordination server is abnormal, the device control authority will be automatically transferred to the center. Specifically: when the station server disconnects from the consistency data coordination server and reports an error and fails to reconnect, the station server authority service module updates the device authority in the station real-time library, and updates the authority owner of the device whose current device control authority is in the station to the center, so that the station workstation updates the corresponding device authority owner to the center through the push of the station real-time library subscription point; when the center server determines through the heartbeat information that the station server is disconnected from the consistency data coordination server, the center server authority service module updates the device authority owner in the center real-time library. If the current authority owner of the device is the station, its authority owner is changed to the center, so that the center workstation updates the authority owner of the corresponding device to the center through the push of the center real-time library subscription point, and the center server authority service module also updates the corresponding device authority owner in the consistency data coordination server; When the network between the center and the consistency data coordination server is abnormal, the device control authority will be automatically transferred to the station. Specifically: when the station server determines through heartbeat information that the central server is disconnected from the consistency data coordination server, the station server authority service module will update the device authority in the station real-time library, and update the authority owner of the device with current device control authority in the center to the station. Thus, the station workstation will update the corresponding device authority owner to the station through the push of the station real-time library subscription point. The station server authority service module will also update the corresponding device authority owner to the station in the consistency data coordination server. When the central server and the consistency data coordination server are disconnected from the network and an error occurs and the attempt to reconnect fails, the central server authority service module will update the center For the device authority owner in the real-time library, if the current authority owner of the device is the center, the authority owner will be changed to the station. If the current authority owner is the station, it will be maintained, so that the central workstation will update the corresponding device authority owner through the push of the central real-time library subscription point; when an exception occurs in the service of the consistency data coordination server, the device control authority will be automatically transferred. Specifically: when the station server and the central server report an exception when writing information to the consistency data coordination server, the central authority service module and the station server authority service module will update the device control authority in the central real-time library and the station real-time library respectively according to the default authority in the predefined initialization file, so that the central workstation and the station workstation will update the authority owner of the corresponding device respectively through the push of the central real-time library and the station real-time library subscription point.
Citation Information
Patent Citations
Method for handing over control authority in distributed monitoring system
CN101661281A
Authority management system of track traffic integration monitoring and method thereof
CN102394873A
ATS control right management method, electronic equipment, storage medium and vehicle
CN118220281A
Remote driving service processing device
US20210041865A1
Database disaster recovery method, and device, system and storage medium
WO2024208196A1
Cited By
Subway line network power equipment control right transfer method and system
CN120909174A