System control right management method and device, storage medium and electronic equipment
Through the control rights application and consent mechanism between nodes in the urban rail transit BAS system, the failures and safety hazards caused by multi-level control contention are solved, and the safe and stable control of the system is achieved.
Patent Information
- Application Number
- CN202211741160.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-30
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2042-12-30
AI Technical Summary
In the real-time monitoring system of urban rail transit, the multi-level control of the BAS system leads to competition for control rights, causing equipment failures and safety hazards.
By sending control right application information to all other nodes in the system from the first node, if more than a set number of consent messages are obtained, it is determined that the first node has the system control authority and instructs the original control node to transfer the authority.
It avoids failures caused by simultaneous control of multiple nodes and improves the safety and stability of the system.
Smart Images

Figure CN118270071B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the field of rail transit, in particular, to a system control right management method and device, a storage medium and an electronic device. BACKGROUND
[0002] In a real-time monitoring system of urban rail transit, the control right of a BAS system (Building Automation System, environment and equipment monitoring system) is very important. In the related art, the BAS system is usually controlled by a center, a station and on-site three levels. When any level controls the system, the same operation can be performed by other levels, which is easy to cause system disorder and device failure and safety hazards due to the struggle for control right between two levels. SUMMARY
[0003] To overcome the problems in the related art, the present disclosure provides a system control right management method and device, a storage medium and an electronic device.
[0004] According to a first aspect of an embodiment of the present disclosure, a system control right management method is provided, applied to a first node in a system, the system comprising a plurality of nodes, the first node being any one of the plurality of nodes, and the method comprising:
[0005] In a case where the first node is not a node having a system control right, sending first control right application information to all other nodes in the system, the all other nodes being all nodes in the system except the first node, the first control right application information being used to apply for transferring the system control right to the first node;
[0006] In a case where the number of other nodes replying to the consent message is greater than or equal to a set number, determining that the first node is changed to a node having a system control right;
[0007] Sending a right retrieval instruction to a second node in the system, the second node being a node having a system control right before the change, the right retrieval instruction being used to instruct the second node to transfer the system control right to the first node.
[0008] Optionally, in a case where the first node is not a node having a system control right, before sending the control right application information to all other nodes in the system, the method further comprises:
[0009] Determining a maximum node identifier among node identifiers of nodes at all levels in the system;
[0010] In a case where the node identifier of the first node is the maximum node identifier, determining that the first node is a node having a system control right.
[0011] determining that the first node is not the node with the system control authority when the node identifier of the first node is not the largest node identifier.
[0012] Optionally, the determining that the first node changes to the node with the system control authority in the case that the number of the other nodes replying the agreement message is greater than or equal to the set number comprises:
[0013] determining that the first node changes to the node with the system control authority in the case that the number of the other nodes replying the agreement message is greater than or equal to the set number within a first time duration;
[0014] modifying the node identifier of the first node to the largest node identifier among the nodes in the system;
[0015] sending a first victory message to all the other nodes, the first victory message carrying the modified node identifier of the first node, the first victory message being used to announce that the first node is the updated node with the system control authority.
[0016] Optionally, the method further comprises:
[0017] determining that the first node fails to apply for the system control authority in the case that the number of the other nodes replying the agreement message is less than the set number.
[0018] Optionally, the method further comprises:
[0019] receiving a second victory message sent by a third node in the system, the second victory message carrying a modified node identifier of the third node, the third node being any node in the system without the system control authority, the second victory message being used to announce that the third node is the updated node with the system control authority.
[0020] Optionally, the method further comprises:
[0021] receiving second control authority application information sent by a fourth node in the system in the case that the first node is the node with the system control authority, the fourth node being any node in the system without the system control authority, the second control authority application information being used to apply for transferring the system control authority to the fourth node;
[0022] replying an agreement message or a rejection message to the fourth node.
[0023] Optionally, the method further comprises:
[0024] receiving, when the first node is not a node with system control authority, third control right application information sent by a fifth node in the system, where the fifth node is any node in the system that does not have system control authority, and the third control right application information is used to apply for transferring the system control authority to the fifth node;
[0025] A consent message or a rejection message is replied to the fifth node.
[0026] Optionally, the method further includes:
[0027] After sending the first control right application information to all other nodes in the system, starting the timer;
[0028] If no approval message or rejection message is received from the sixth node within the first time period after the start of timing, it is deemed that the sixth node agrees, and the sixth node is any node in the system.
[0029] Optionally, the system is an environment and equipment monitoring BAS system, and the multi-level nodes include: center-level nodes, station-level nodes and local-level nodes.
[0030] According to a second aspect of an embodiment of the present disclosure, there is provided a system control right management device, characterized by comprising:
[0031] a first sending module configured to, when the first node is not a node with system control authority, send first control right application information to all other nodes in the system, where the other nodes are all nodes in the system except the first node, the first control right application information being used to apply for transferring the system control authority to the first node;
[0032] a determination module configured to determine that the first node is changed to a node with system control authority when the number of other nodes that reply to the consent message is greater than or equal to a set number;
[0033] The second sending module is configured to send an authority retrieval instruction to the second node in the system, where the second node is the node that has system control authority before the change, and the authority retrieval instruction is used to instruct the second node to transfer the system control authority to the first node.
[0034] According to a third aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided, on which a computer program is stored. When the program instructions are executed by a processor, the steps of the system control right management method provided in the first aspect of the present disclosure are implemented.
[0035] According to a fourth aspect of the embodiments of the present disclosure, there is provided an electronic device, including:
[0036] a memory having stored thereon a computer program;
[0037] a processor configured to execute the computer program in the memory to implement the steps of the system control right management method according to the first aspect of the present disclosure.
[0038] The technical solutions provided by the embodiments of the present disclosure can include the following beneficial effects:
[0039] In the above technical solution, in the case that the first node is not a node having the system control right, the first control right application information is sent to all other nodes in the system, the other nodes are all nodes in the system except the first node, the first control right application information is used to apply for transferring the system control right to the first node; in the case that the number of other nodes in the system that reply the consent message is greater than or equal to the set number, it is determined that the first node is changed to a node having the system control right; the right retrieval instruction is sent to the second node in the system, the second node is a node having the system control right before the change, and the right retrieval instruction is used to instruct the second node to transfer the system control right to the first node. Through the above technical solution, when any node without the control right needs to control the BAS system, the control right application information needs to be sent to other nodes, when the number of reply consent information of other nodes obtained is greater than or equal to the set number, the node having the control right transfers the control right to the node applying for the right, and after the control right is transferred to the node, the node can control the BAS system. Through the above mechanism, the failure caused by multiple nodes controlling the BAS system at the same time can be avoided, and the safety is improved.
[0040] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF DRAWINGS
[0041] The accompanying drawings are included to provide a further understanding of the present disclosure and constitute a part of the specification, and are used together with the following detailed description to explain the present disclosure, but do not constitute a limitation of the present disclosure. In the drawings:
[0042] Figure 1 is a flowchart of a system control right management method according to an exemplary embodiment.
[0043] Figure 2 is a flowchart of another system control right management method according to an exemplary embodiment.
[0044] Figure 3 is a flowchart of another system control right management method according to an exemplary embodiment.
[0045] Figure 4is a flowchart of still another system control right management method according to an example embodiment.
[0046] Figure 5 is a flowchart of still another system control right management method according to an example embodiment.
[0047] Figure 6 is a flowchart of still another system control right management method according to an example embodiment.
[0048] Figure 7 is a block diagram of a system control right management apparatus according to an example embodiment.
[0049] Figure 8 is a block diagram of an electronic device 800 according to an example embodiment.
[0050] Figure 9 is a block diagram of an electronic device 900 according to an example embodiment. DETAILED DESCRIPTION
[0051] The example embodiments will be described in detail herein with reference to the attached drawings. The following description is made with reference to the accompanying drawings in which like reference numerals represent like elements or similar elements, unless the context dictates otherwise. The following description of example embodiments is not representative of all embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0052] It can be understood that the terms "first", "second", and the like in the present disclosure are used to describe various information, but the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a particular order or importance.
[0053] It can be further understood that, although the operations are described in a particular order in the examples of the present disclosure, the order of the operations should not be construed as requiring the operations to be performed in the particular order, or in serial, or that all of the operations are necessary to achieve desirable results. In certain circumstances, multitasking and parallel processing can be advantageous.
[0054] It should be noted that all actions of acquiring signals, information or data in the present disclosure are performed in compliance with the corresponding data protection regulations and policies of the country where the device is located, and with the authorization of the owner of the corresponding device.
[0055] Figure 1 is a flowchart of still another system control right management method according to an example embodiment, as Figure 1As shown, the method is applied to a first node in a system, the system comprising a plurality of levels of nodes, the first node being any one of the plurality of levels of nodes, and the method comprising the steps of:
[0056] In step S101, in the case that the first node is not a node having a system control right, first control right application information is sent to all other nodes in the system, the all other nodes being all nodes in the system except the first node, the first control right application information being used to apply for transferring the system control right to the first node.
[0057] Exemplarily, a modern urban rail transit real-time monitoring system generally comprises a plurality of levels, the plurality of levels corresponding to a plurality of nodes, which can be referred to as a plurality of levels of nodes, and the first node can be any one of the plurality of levels of nodes. When the node having the system control right is not the first node, if the first node wants to have the control right of the system, the first node needs to send first control right application information to all other nodes in the system to apply for the control right of the system. For example, when the system adopts three-level control of a center level, a station level and an on-site level, when the system control right is not in the center level node but the center level node wants to apply for the system control right, the center level node sends control right application information to the other two level nodes of the system, i.e., the station level node and the on-site level node, to apply for the control right of the system.
[0058] In step S102, in the case that the number of the other nodes replying to the agreement message is greater than or equal to a set number, it is determined that the first node is changed to a node having the system control right.
[0059] Exemplarily, when the number of the other nodes of the system replying to the agreement is greater than or equal to the preset number of nodes of the system control right, the first node is changed to a node having the system control right. For example, when the center level node of the system applies for the system control right, the station level node and the on-site level node of the system both reply to the agreement, and the center level node obtains the control right of the system. When the system has more nodes than the three level nodes, the preset number of nodes can be set according to the actual total number of nodes, for example, all nodes except the first node can still be set to agree, or at least two-thirds of the nodes except the first node can also be set to agree, and the first node can obtain the control right of the system.
[0060] In step S103, a right taking back instruction is sent to a second node in the system, the second node being a node having the system control right before the change, and the right taking back instruction being used to instruct the second node to transfer the system control right to the first node.
[0061] Exemplarily, when the system first level obtains the reply of the consent application, the first node sends the authority retrieval instruction to the second node in the system which has the control authority of the system, and the second node transfers the control authority to the first node; for example, when the authority of the system is at the station level node, the central level node applies for the control authority of the system, and when the central level node obtains the reply of the consent application, the station level node of the system transfers the application authority of the system to the central level node of the system.
[0062] Figure 2 is a flow chart of another system control authority management method according to an exemplary embodiment, as shown in Figure 2 Before step S101, the method further comprises the following steps:
[0063] In step S104, the maximum node identifier in the node identifiers of the nodes at all levels in the system is determined.
[0064] In step S105, when the node identifier of the first node is the maximum node identifier, it is determined that the first node is the node having the control authority of the system.
[0065] In step S106, when the node identifier of the first node is not the maximum node identifier, it is determined that the first node is not the node having the control authority of the system.
[0066] Exemplarily, each node at all levels can represent whether it is the node having the control authority of the system through the node identifier, for example, the node identifier can be represented as Node_ID, and the Node_ID can be a node number for example, and the Node_ID having the control authority of the system in the system is the maximum, thus it can be determined which node in the nodes at all levels in the system has the maximum node identifier, and the node having the maximum node identifier is the node having the control authority of the system, and if the control authority of the system is transferred, the Node_ID of the new node having the control authority of the system can be set as the maximum Node_ID in the nodes.
[0067] Therefore, when the node identifier of the first node is the maximum node identifier in the node identifiers of the nodes at all levels in the system, it is determined that the first node in the system is the node having the control authority of the system, and at this time, the first node can directly initiate the control of the BAS (Building Automation System, environmental and equipment monitoring system) system; when the node identifier of the first node is not the maximum node identifier in the system, it is determined that the first node in the system is not the node having the control authority of the system, and at this time, the first node needs to apply for the transfer of the control authority of the system first, and after the consent of other nodes, the first node can have the control authority of the system.
[0068] Figure 3is a flowchart of another system control right management method according to an exemplary embodiment, as Figure 3 As shown in FIG. 10, the step S102 includes the following steps.
[0069] In step S1021, if the number of the other nodes replying the consent message is greater than or equal to the set number within the first time length, it is determined that the first node becomes the node having the system control right.
[0070] In step S1022, the node identifier of the first node is modified to the largest node identifier among the nodes in the system.
[0071] In step S1023, a first victory message is sent to all the other nodes, the first victory message carrying the modified node identifier of the first node, the first victory message being used to announce the first node as the updated node having the system control right.
[0072] Exemplarily, when the first node sends the first system control right application, a timer can be started, the starting time of the timer being the time when the first node sends the first system control right application. If the number of the other nodes replying the consent message is greater than or equal to the set number within the preset first time length, the first node successfully applies for the system control right, the node identifier of the first node is modified to the largest node identifier in the system, and then the first node sends a first victory message to the other nodes in the system, the message including the modified node identifier (the largest node identifier) of the first node, so as to convey the modified node identifier of the first node to the other nodes in the system, so as to inform the other nodes that the first node becomes the node currently having the system control right of the system. For example, in a system including a center node, a station node and a local node, the set number can be set to 2. When the station node without the system control right sends the system control right application to the center node and the local node, if the consent messages replying from the center node and the local node are received within the preset first time length, the station node successfully applies for the system control right of the system, the node identifier of the station node is modified to the largest node identifier in the system, and then a success application message is sent to the other nodes, the success application message including the modified node identifier of the station node, so as to inform the other nodes that the station node currently has the system control right.
[0073] Optionally, the system control right management method can further include:
[0074] If the number of the other nodes replying the consent message is less than the set number, it is determined that the first node fails to apply for the system control right.
[0075] For example, if the first node receives fewer than a preset number of reply consent messages within a preset first duration, the first node's application for system control authority fails. Furthermore, if the number of other nodes to which the first node receives reply consent messages is greater than or equal to a preset number, but the first duration has expired when the first node receives consent messages from one or more of these nodes, the first node's application for system control authority is also determined to have failed.
[0076] Optionally, the system control right management method may further include:
[0077] Receive a second victory message sent by a third node in the system, where the second victory message carries a modified node identifier of the third node. The third node is any node in the system that does not have system control authority. The second victory message is used to declare the third node as an updated node with system control authority.
[0078] Exemplarily, when the first node has not applied for system control authority, or the first node has failed to apply for system control authority, the first node may wait for other nodes to send a victory message for notifying the transfer of system control authority. For example, when a second victory message is received from a third node in the system that does not have the system control authority, the modified node identifier of the third node carried in the second victory message is the largest node identifier in the system, and it can be known that the third node has successfully applied for system control authority.
[0079] When the first node is a node with system control authority, it can also receive control request information initiated by other nodes. Figure 4 is a flow chart showing another method for managing system control rights according to an exemplary embodiment. Figure 4 As shown, the system control right management method may further include the following steps:
[0080] In step S107, when the first node is a node with system control authority, a second control right application information sent by a fourth node in the system is received. The fourth node is any node in the system that does not have system control authority. The second control right application information is used to apply to transfer the system control authority to the fourth node.
[0081] In step S108, an approval message or a rejection message is replied to the fourth node.
[0082] Exemplarily, when the first node in the system has the system control right, a fourth node in the system which does not have the system control right sends second control right application information to other nodes in the system (including the first node having the system control right and other nodes except the first node and the fourth node), and the first node receives the second control right application information and replies an approval message or a rejection message to the fourth node. For example, in a system composed of a center-level node, a station-level node and an on-site node, when the center-level node has the system control right, the center-level node can receive control right application information sent by the on-site node or the station-level node in the system, and the center-level node receives the control right application information and replies an approval message or a rejection message to the on-site node or the station-level node. The processing method of the on-site node or the station-level node after receiving the approval message or the rejection message can refer to the above Figures 1 to 4 The content described in the embodiments will not be repeated.
[0083] Figure 5 is a flowchart of another system control right management method according to an exemplary embodiment, as shown in Figure 5 The system control right management method further includes the following steps:
[0084] In step S109, when the first node is not the node having the system control right, third control right application information sent by a fifth node in the system is received, the fifth node being any node in the system which does not have the system control right, and the third control right application information being used to apply for transferring the system control right to the fifth node.
[0085] In step S110, an approval message or a rejection message is replied to the fifth node.
[0086] Exemplarily, when the first node in the system does not have the system control right, the first node can also receive third control right application information sent by the fifth node in the system which does not have the system control right, and the first node receives the third control right application information and can reply an approval message or a rejection message to the fifth node. For example, in a system composed of a center-level node, a station-level node and an on-site node, when the on-site node does not have the system control right and the center-level node has the system control right, the station-level node can send control right application information to the center-level node and the on-site node. The on-site node also needs to reply an approval message or a rejection message to the station-level node although it does not have the system control right. The processing method of the station-level node after receiving the approval message or the rejection message can refer to the above Figures 1 to 4 The content described in the embodiments will not be repeated.
[0087] Figure 6 is a flow chart of still another system control right management method according to an example embodiment, as shown in Figure 6 The method further includes the following steps:
[0088] In step S111, after sending the first control right application information to all other nodes in the system, the first node starts timing.
[0089] In step S112, if no agreement message or rejection message is received from the sixth node within the first time period after the timing is started, it is considered that the sixth node agrees. The sixth node is any node in the system.
[0090] For example, after the first node sends the first control right application information to all other nodes in the system, the first node starts timing. If no agreement message or rejection message is received from the sixth node within the first time period after the timing is started, it is considered that the sixth node agrees. The sixth node is any node in the system other than the first node. That is, if any node in the other nodes does not reply to the first node within the first time period, it is considered that the node agrees. For example, after a local node in the system receives the system control right application information sent by a central node in the system, if the local node does not reply to the central node within the first time period, it is considered that the local node agrees with the system control right application information sent by the central node.
[0091] Optionally, in various embodiments of the present disclosure, the system can be a building automation system (BAS), and the multiple levels of nodes include a central node, a station node, and a local node.
[0092] For example, the system has three or more levels, and the system is a building automation system (BAS). When the system has three levels including a central level, a station level, and a local level, the multiple levels of nodes include a central node, a station node, and a local node.
[0093] Figure 7 is a block diagram of a system control right management device according to an example embodiment, applied to a first node in a system, the system including multiple levels of nodes, the first node being any level of node in the multiple levels of nodes, as shown in Figure 7 The system control right management device 700 includes a sending module 701 and a determining module 702.
[0094] The sending module 701 is configured to, in a case where the first node is not a node that has the system control authority, send first control authority application information to all other nodes in the system, the all other nodes being all nodes in the system except the first node, the first control authority application information being used to apply for transferring the system control authority to the first node.
[0095] The determining module 702 is configured to, in a case where the number of the other nodes that reply to the agreement message is greater than or equal to a set number, determine that the first node is changed to a node that has the system control authority.
[0096] The sending module 701 is further configured to send an authority retrieval instruction to a second node in the system, the second node being a node that has the system control authority before the change, the authority retrieval instruction being used to instruct the second node to transfer the system control authority to the first node.
[0097] Optionally, the system control authority management apparatus 700 further includes a node identifying module and an authority determining module.
[0098] The node identifying module is configured to, before the sending module 701 sends the control authority application information to all other nodes in the system in a case where the first node is not a node that has the system control authority, determine a maximum node identifier among node identifiers of nodes at all levels in the system.
[0099] The authority determining module is configured to, in a case where the node identifier of the first node is the maximum node identifier, determine that the first node is a node that has the system control authority.
[0100] The authority determining module is further configured to, in a case where the node identifier of the first node is not the maximum node identifier, determine that the first node is not a node that has the system control authority.
[0101] Optionally, the determining module 702 is configured to:
[0102] In a case where the number of the other nodes that reply to the agreement message is greater than or equal to a set number within a first time length, determine that the first node is changed to a node that has the system control authority.
[0103] Modify the node identifier of the first node to a maximum node identifier among node identifiers of nodes at all levels in the system.
[0104] Send a first victory message to the all other nodes, the first victory message carrying the modified node identifier of the first node, the first victory message being used to announce that the first node is an updated node that has the system control authority.
[0105] Optionally, the authority determining module is further configured to:
[0106] determining that the first node fails to apply for the system control right in a case where a number of other nodes replying the consent message is less than a set number.
[0107] Optionally, the system control right management apparatus 700 further comprises a receiving module configured to:
[0108] receive a second victory message sent by a third node in the system, the third node being any node in the system without the system control right, the second victory message carrying a modified node identity of the third node, and the second victory message being used to announce that the third node is an updated node with the system control right.
[0109] Optionally, the receiving module is further configured to:
[0110] in a case where the first node is a node with the system control right, receive second control right application information sent by a fourth node in the system, the fourth node being any node in the system without the system control right, and the second control right application information being used to apply for transferring the system control right to the fourth node.
[0111] the sending module 701 is configured to reply a consent message or a rejection message to the fourth node.
[0112] Optionally, the receiving module is further configured to, in a case where the first node is not a node with the system control right, receive third control right application information sent by a fifth node in the system, the fifth node being any node in the system without the system control right, and the third control right application information being used to apply for transferring the system control right to the fifth node.
[0113] the sending module 701 is further configured to reply a consent message or a rejection message to the fifth node.
[0114] Optionally, the system control right management apparatus 700 further comprises a timing module and a message identifying module.
[0115] the timing module is configured to start timing after sending the first control right application information to all other nodes in the system.
[0116] the message identifying module is configured to, within a first time length after starting the timing, if no consent message or rejection message of a sixth node is received, consider that the sixth node agrees, the sixth node being any node in the system.
[0117] Through the technical solution, when any node without control authority needs to control the BAS system, the node needs to send control authority application information to other nodes, when the number of reply agreement information obtained from other nodes is greater than or equal to a set number, the node with control authority transfers the control authority to the node applying for the control authority, and the node can control the BAS system only after the control authority is transferred to the node. Through the mechanism, the malfunction caused by multiple nodes simultaneously controlling the BAS system can be avoided, and the security is improved.
[0118] As to the apparatus in the above embodiments, the specific manners in which the modules perform operations have been described in detail in the embodiments of the method, and thus will not be described in detail here.
[0119] Figure 8 is a block diagram of an electronic device 800 according to an example embodiment. As shown in Figure 8 The electronic device 800 can include a processor 801, a memory 802. The electronic device 800 can also include one or more of a multimedia component 803, an input / output (I / O) interface 804, and a communication component 805. The electronic device 800 can serve as any node in the system described above.
[0120] The processor 801 is configured to control overall operations of the electronic device 800 to complete all or part of the steps of the system control right management method described above. The memory 802 is configured to store various types of data to support operations of the electronic device 800, which can include, for example, instructions of any application or method operating on the electronic device 800, and application-related data such as contact data, transmitted and received messages, pictures, audio, video, and the like. The memory 802 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic storage, a flash memory, a magnetic disk, or an optical disk. The multimedia component 803 can include a screen and an audio component. The screen can be, for example, a touch screen, and the audio component is configured to output and / or input audio signals. For example, the audio component can include a microphone configured to receive external audio signals. The received audio signals can be further stored in the memory 802 or transmitted through the communication component 805. The audio component further includes at least one speaker configured to output audio signals. The I / O interface 804 provides an interface between the processor 801 and other interface modules, which can be a keyboard, a mouse, a button, and the like. The buttons can be virtual buttons or physical buttons. The communication component 805 is configured to perform wired or wireless communication between the electronic device 800 and other devices. The wireless communication, such as Wi-Fi, Bluetooth, near field communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, and the like, or a combination of one or more of them, is not limited herein. Therefore, the communication component 805 can include, for example, a Wi-Fi module, a Bluetooth module, an NFC module, and the like.
[0121] In an exemplary embodiment, the electronic device 800 can be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic elements for performing the above-mentioned system control right management method.
[0122] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, which, when executed by a processor, implement the steps of the above-mentioned system control right management method. For example, the computer-readable storage medium can be the above-mentioned memory 802 including program instructions, which can be executed by the processor 801 of the electronic device 800 to complete the above-mentioned system control right management method.
[0123] Figure 9 is a block diagram of an electronic device 900 according to an exemplary embodiment. For example, the electronic device 900 can be provided as a server. The electronic device 900 can serve as any node in the above-mentioned system. Referring to Figure 9 , the electronic device 900 includes a processor 922, the number of which can be one or more, and a memory 932 for storing computer programs executable by the processor 922. The computer programs stored in the memory 932 can include one or more than one module each corresponding to a set of instructions. In addition, the processor 922 can be configured to execute the computer programs to perform the above-mentioned system control right management method.
[0124] In addition, the electronic device 900 can further include a power supply component 926, which can be configured to perform power management of the electronic device 900, and a communication component 950, which can be configured to implement communication of the electronic device 900, such as wired or wireless communication. In addition, the electronic device 900 can further include an input / output (I / O) interface 958. The electronic device 900 can operate based on an operating system stored in the memory 932.
[0125] In another exemplary embodiment, a computer readable storage medium including program instructions is also provided, which when executed by a processor, implement the steps of the system control right management method described above. For example, the non-transitory computer readable storage medium can be the memory 932 described above including program instructions executable by the processor 922 of the electronic device 900 to complete the system control right management method described above.
[0126] In another exemplary embodiment, a computer program product is also provided, which contains a computer program executable by a programmable device, the computer program having code portions for performing the system control right management method described above when executed by the programmable device.
[0127] The preferred embodiments of the present disclosure are described in detail above with reference to the accompanying drawings, but the present disclosure is not limited to the specific details in the above-described embodiments. Various simple modifications can be made to the technical solutions of the present disclosure within the scope of the technical concepts of the present disclosure, and all these simple modifications shall fall within the protection scope of the present disclosure.
[0128] It should be further noted that each specific technical feature described in the above specific embodiments can be combined in any appropriate manner without contradiction, and in order to avoid unnecessary repetition, the present disclosure will not make further descriptions on various possible combinations.
[0129] Furthermore, any combination of the various different embodiments of the present disclosure can also be made, as long as it does not deviate from the idea of the present disclosure, and it shall be considered as the disclosed content of the present disclosure.
Claims
1. A system control right management method, characterized in that: The method is applied to a first node in a system, wherein the system includes multiple levels of nodes, the first node is any level node in the multiple levels of nodes, the system is an environment and equipment monitoring BAS system, and the multiple levels of nodes include: a central level node, a station level node, and a local level node. If the first node is not a node with system control authority, sending first control right application information to all other nodes in the system, where the other nodes are all nodes in the system except the first node, and the first control right application information is used to apply for transferring the system control authority to the first node; If the number of other nodes that reply to the consent message is greater than or equal to the set number, determining that the first node is changed to a node with system control authority; A permission retrieval instruction is sent to a second node in the system, where the second node is a node that has system control authority before the change, and the permission retrieval instruction is used to instruct the second node to transfer the system control authority to the first node.
2. The method according to claim 1, characterized in that In the case where the first node is not a node with system control authority, before sending control right application information to all other nodes in the system, the method further includes: Determine the largest node identifier among the node identifiers of nodes at all levels in the system; When the node identifier of the first node is the largest node identifier, determining that the first node is a node having system control authority; When the node identifier of the first node is not the largest node identifier, it is determined that the first node is not a node having system control authority.
3. The method according to claim 1, characterized in that The determining that the first node is changed to a node having system control authority when the number of other nodes that reply to the consent message is greater than or equal to a set number includes: If the number of other nodes that have received the reply consent message within the first time period is greater than or equal to a set number, determining that the first node is changed to a node with system control authority; Modify the node identifier of the first node to the largest node identifier among nodes at all levels in the system; A first victory message is sent to all other nodes, where the first victory message carries the modified node identifier of the first node, and the first victory message is used to declare that the first node is an updated node with system control authority.
4. The method according to claim 1, wherein The method further comprises: When the number of other nodes that reply to the consent message is less than the set number, it is determined that the first node has failed in its application for system control authority.
5. The method according to claim 4, characterized in that The method further comprises: Receive a second victory message sent by a third node in the system, the second victory message carries a modified node identifier of the third node, the third node is any node in the system that does not have system control authority, and the second victory message is used to declare the third node as an updated node with system control authority.
6. The method according to claim 1, characterized in that The method further comprises: receiving, when the first node is a node with system control authority, second control right application information sent by a fourth node in the system, where the fourth node is any node in the system that does not have system control authority, and the second control right application information is used to apply for transferring the system control authority to the fourth node; Reply an approval message or a rejection message to the fourth node.
7. The method according to claim 1, characterized in that The method further comprises: receiving, when the first node is not a node with system control authority, third control right application information sent by a fifth node in the system, where the fifth node is any node in the system that does not have system control authority, and the third control right application information is used to apply for transferring the system control authority to the fifth node; A consent message or a rejection message is replied to the fifth node.
8. The method according to claim 1, characterized in that The method further comprises: After sending the first control right application information to all other nodes in the system, starting the timer; If no approval message or rejection message is received from the sixth node within the first time period after the start of timing, it is deemed that the sixth node agrees, and the sixth node is any node in the system.
9. A system control right management device, characterized in that: The device is applied to a first node in a system, wherein the system includes multiple nodes, the first node is any one of the multiple nodes, the system is an environment and equipment monitoring BAS system, and the multiple nodes include: a central node, a station node, and a local node. The device includes: a first sending module configured to, when the first node is not a node with system control authority, send first control right application information to all other nodes in the system, where the other nodes are all nodes in the system except the first node, the first control right application information being used to apply for transferring the system control authority to the first node; a determination module configured to determine that the first node is changed to a node with system control authority when the number of other nodes that reply to the consent message is greater than or equal to a set number; The second sending module is configured to send an authority retrieval instruction to the second node in the system, where the second node is the node that has system control authority before the change, and the authority retrieval instruction is used to instruct the second node to transfer the system control authority to the first node.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
11. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Permission handover method, device and system, electronic equipment and storage medium
CN113485175A
Smart home control method and system based on Internet of Things
CN113820963A