Method for enhancing holder preemption control for global resources

Through the global resource-enhanced control method, the problem that gimbal control is easily affected by other businesses is solved, and high-priority users quickly seize the gimbal control rights, ensuring the normal execution of important businesses, and improving response speed and execution efficiency.

CN119996826APending Publication Date: 2025-05-13XINJIANG SAILING INFORMATION TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202510091605.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-21
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

In the existing technology, in fast positioning tracking and important application scenarios, gimbal control is easily affected by other services, resulting in the inability to quickly track positioning, and cameras need to be configured in advance, restricting the use of other services, and the operation is complex and inefficient.

Method used

The gimbal preemption control method is adopted for global resource enhancement, and the gimbal control operation is issued by the client of this domain to unlock the gimbal control rights of the device, and lock it with the high-priority user ID and permission ID to automatically process the gimbal control requests to ensure the rapid execution of high-priority services.

Benefits of technology

It realizes high-priority users to quickly seize the control of the gimbal, ensure the normal execution of important businesses, and not be affected by other non-important businesses, and improves the response speed and business execution efficiency of important businesses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996826A_ABST
    Figure CN119996826A_ABST
Patent Text Reader

Abstract

The invention discloses a global resource-oriented cloud deck preemption control enhancement method, which relates to the technical field of resource-enhanced cloud deck preemption control, and comprises the following steps: S1, a local domain client issues a cloud deck control operation; if the cloud deck control operation is issued to the external domain client, a permission relation mapping table needs to be established; and S2, after the signaling service receives the cloud deck control operation signaling information, analyzing and obtaining information such as the equipment ID, the user identifier, the authority identifier and the domain identifier, and realizing service initialization. According to the method for enhancing holder preemption control for the global resources, the technical scheme for enhancing holder preemption control for the global resources is provided. Under important application scenes such as rapid positioning and tracking and important security, the method for efficiently enhancing holder preemption of global equipment resources is realized, normal execution of important services is ensured, and responsiveness and execution efficiency of the important services are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of resource enhanced pan-tilt preemption control, in particular to a method for global resource enhanced pan-tilt preemption control. Background Art

[0002] In important application scenarios such as rapid positioning and tracking, major security, etc., it is usually necessary to immediately control the rotation of one or multiple device videos to locate and track the real-time images of the devices. Currently, various technical means are used to deeply develop and integrate the sharing of video resources across industries, regions, and departments. Device resources are shared multiple times to multiple upper domains or multiple application platforms. At this time, multiple requests for PTZ control may come from the same time point, affecting the normal operation of important business scenarios.

[0003] The prior art still has the following problems:

[0004] 1. During the process of quickly controlling the PTZ for positioning and tracking, it is easy to be affected by other PTZ control services, resulting in the inability to quickly track and locate;

[0005] 2. The PTZ needs to be controlled immediately, but other services are in use, causing the current high-priority service to be unavailable.

[0006] 3. The one-size-fits-all approach requires that the required cameras be configured in advance, limiting the use of other services. After use, the restrictions can be manually lifted to restore other services to normal use. The operation is relatively complex and inefficient. In multi-domain cascading business scenarios, users in the local domain and external domains belong to different platforms and have different permissions, which is more prominent.

[0007] Therefore, a method that can be quickly configured, automatically processed, and does not affect the normal operation of other businesses is needed to solve the current problems.

[0008] This paper proposes a method for enhancing pan-tilt control preemption for global resources, which effectively solves the problem of complex pan-tilt control business logic when multiple pan-tilt control requests are issued at the same time, without affecting the normal operation of other businesses. In particular, the effect is more significant in the scenario where multiple pan-tilt control requests are made simultaneously on a multi-domain video networking platform. Summary of the invention

[0009] In view of the deficiencies in the prior art, the present invention provides a method for enhancing pan-tilt preemption control for global resources, which solves the problem raised in the above background technology that currently, the normal progress of important business scenarios is usually met by pre-configuring or interrupting other businesses, the operation process is relatively complicated and affects other businesses. In addition, after the important business is completed, manual configuration is still required to release the pan-tilt control, resulting in low work efficiency.

[0010] To achieve the above objectives, the present invention is implemented through the following technical solutions: a method for enhancing PTZ preemption control for global resources, comprising the following steps:

[0011] S1. The client in this domain issues the PTZ control operation. If the PTZ control operation is issued to the client in the external domain, a permission relationship mapping table needs to be established.

[0012] S2, wait for the signaling service to receive the PTZ control operation signaling information, parse and obtain the device ID, user ID, authority ID, domain ID and other information, and implement service initialization;

[0013] S3. Unlock the current PTZ control right of the device according to the user ID and the authority ID, and use the high-priority user ID and the authority ID to lock the PTZ control operation right of the device, and complete the PTZ preemption service processing;

[0014] S4, signaling service sends PTZ control operations to the front-end device;

[0015] S5. Start the timeliness check of the device PTZ control right with high priority user ID and authority ID. If the timeliness check is satisfied, the PTZ control right is automatically released to complete the unlocking of the current device PTZ control right. Manual unlocking is also supported.

[0016] Optionally, the service initialization process in step S2 is as follows:

[0017] (1) Read the configuration information related to the signaling service; the service configuration information includes IP address, listening port, authentication information, heartbeat detection strategy, status reporting frequency, etc.;

[0018] (2) Loading basic data; the data includes the lower-level domain platform or front-end device information; the platform or front-end device information includes platform code, device ID, domain name, authentication information, signaling transmission protocol, media transmission protocol, etc.;

[0019] (3) Read the user ID, permission ID, and domain ID from the database, establish a mapping relationship between the device ID, domain ID, user ID, and permission ID, and write it into the cache;

[0020] (4) Read global device resources from the database to obtain the device lock and unlock status;

[0021] (5) Initialize the protocol stack and establish a communication link with the lower-level domain platform or front-end device; obtain the lower-level domain information from the management queue loop, set the message callback function, connect to the lower-level domain platform or front-end device, and establish a message communication link;

[0022] (6) Start the business processing thread and the monitoring thread, monitor the PTZ control messages issued by the local domain and the upper domain, and perform corresponding business processing after receiving the business messages;

[0023] (7) Start the protocol standardization processing business thread and wait for the message standardization processing and sending.

[0024] Optionally, the PTZ preemption service processing operation in step S3 is as follows:

[0025] (1) Waiting to receive PTZ control signaling;

[0026] (2) Parse the PTZ control signaling to obtain domain ID, user ID, authority ID, device ID and other information;

[0027] (3) Determine the source of the PTZ control request based on the domain identifier, and execute step (4) if the source is outside the domain;

[0028] (4) According to the domain identifier and the permission identifier, a mapping is established between the external domain permission and the local domain permission, and the permission cache queue is updated uniformly;

[0029] (5) Read the device ID lock status information, including whether it has been locked, the locked user, the lock duration, etc.; if the PTZ control has been locked, execute step (6); otherwise, execute step (8);

[0030] (6) Read the information of the owner of the PTZ control right, including the permission information; make a judgment based on the current PTZ control request service priority, if the current priority is higher than the PTZ locker priority, execute step (7);

[0031] (7) Unlock the PTZ control ownership and grant high priority permission identification and user identification;

[0032] (8) Lock the PTZ control right of the current device with the current user ID and permission ID, so that the high-priority user can seize the PTZ control right of the low-priority user;

[0033] (9) Sending the PTZ control signaling to the front-end device to complete the PTZ control operation service of the front-end device; the detailed process of sending the PTZ control signaling to the front-end device is shown in step S4;

[0034] (10) PTZ control preemption ends and resources are released.

[0035] Optionally, in step (3), if the control request is not from an external domain, step (5) is executed.

[0036] Optionally, in step (6), if the current priority is not higher than the priority of the gimbal locker, step (10) is executed.

[0037] Optionally, the business process of sending the PTZ control message to the front-end device in step S4 is as follows:

[0038] (1) Read the PTZ control message; at this point, the PTZ control preemption business process has been completed;

[0039] (2) Parse the PTZ control message to obtain information such as message type, device ID, and device domain;

[0040] (3) According to the device domain information, obtain the link information corresponding to the device; the link is established through the active registration of the lower-level device when the program is initialized; if the link information exists, execute step (4);

[0041] (4) Initialize and assemble PTZ control messages and write them into the application layer message queue;

[0042] (5) Read the application layer message queue, obtain the PTZ control message and process it according to the business process, and write the execution status into the message status queue;

[0043] (6) Read the message status queue, standardize the PTZ control message, and write it into the network message queue;

[0044] (7) Read the network message queue, obtain the PTZ control message, and send the PTZ control message to the front-end device using the established lower-level domain network link to complete the PTZ control operation;

[0045] (8) The PTZ control service is completed and resources are released.

[0046] Optionally, if no link information exists in step (3), step (8) is executed.

[0047] Optionally, the automatic unlocking service process of the PTZ control right in step S5 is as follows:

[0048] (1) Based on the high-priority user ID and permission ID, the device PTZ control rights are locked;

[0049] (2) Start the timeliness test of PTZ control rights;

[0050] (3) Determine whether the timeliness has expired; if so, execute step (4); otherwise, execute step (3);

[0051] (4) End the PTZ control lock;

[0052] (5) Release the PTZ control rights and lock the related resource information.

[0053] The present invention provides a method for enhancing pan / tilt preemption control for global resources, which has the following beneficial effects:

[0054] This method for enhancing PTZ preemption control for global resources improves the ability of high-priority users to quickly seize PTZ control rights, ensuring the normal execution of important services without being affected by other non-important services; before executing high-priority services, the PTZ control operation rights are automatically locked, improving the response speed of important services; after the high-priority services are completed, the PTZ control operation rights are automatically unlocked, improving the execution efficiency of services.

[0055] The method for enhancing the pan-tilt preemption control for global resources adds a user identifier and a permission identifier to the request signaling when a pan-tilt control service is triggered. After a high-priority user requests pan-tilt control, the pan-tilt control is automatically locked. At this time, the pan-tilt control request of a low-priority user will be discarded. At the same time, a message is sent to the requesting party that the pan-tilt is being used by the user, thereby ensuring that important services proceed normally.

[0056] Based on the high-priority user ID, the low-priority business will first release the control of the device's PTZ, and then use the high-priority user ID and permission ID to seize the PTZ control of the device to ensure the normal operation of the high-priority business. After the high-priority business is used, it can be unlocked manually or automatically unlocked at a fixed time (configurable), so that other businesses can quickly resume normal use of PTZ control;

[0057] When triggering a request for PTZ control service, the domain identifier and permission mapping table identifier are added to the request signaling. All users in this domain and external domains have a unified permission identifier for global device resources. The rule of high priority preempting low priority PTZ control rights is followed to ensure the normal operation of important services.

[0058] This method for enhancing the preemptive control of the PTZ for global resources is based on a task preemptive mechanism to transfer the control right to a task with a higher priority. After the high-priority user controls the PTZ, the PTZ control right is obtained and the PTZ control is automatically locked;

[0059] Based on the timeliness of the task, resources are automatically released after the task is completed, or they can be released through manual configuration. After a high-priority user completes the PTZ control or preempts it, the control right is automatically released within a preset time or released through manual operation, and other services are restored to normal execution;

[0060] Adopting the redis publish-subscribe mode, combined with the message state machine mechanism, subscribe to messages such as pan-tilt control, set the message execution status during parsing and processing, publish it to the corresponding channel, and execute business processes such as pan-tilt preemption in an orderly manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] Figure 1 It is a schematic diagram of the overall process of the invention;

[0062] Figure 2 A schematic diagram of the initialization business process in the invention;

[0063] Figure 3 A flowchart of receiving and processing upper domain signaling services in the present invention;

[0064] Figure 4 This is a business flow chart of automatic unlocking of the PTZ control right in the invention;

[0065] Figure 5 This is a business flow chart for sending pan / tilt control messages to front-end devices in the present invention. DETAILED DESCRIPTION

[0066] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0067] The present invention provides a technical solution: Figure 1 As shown, a method for enhancing PTZ preemption control for global resources includes the following steps:

[0068] S1. The client in this domain issues the PTZ control operation. If the PTZ control operation is issued to the client in the external domain, a permission relationship mapping table needs to be established.

[0069] S2, wait for the signaling service to receive the PTZ control operation signaling information, parse and obtain the device ID, user ID, authority ID, domain ID and other information, and implement service initialization, such as Figure 2 As shown, the process is as follows:

[0070] (1) Read the configuration information related to the signaling service; the service configuration information includes IP address, listening port, authentication information, heartbeat detection strategy, status reporting frequency, etc.;

[0071] (2) Loading basic data; the data includes the lower-level domain platform or front-end device information; the platform or front-end device information includes platform code, device ID, domain name, authentication information, signaling transmission protocol, media transmission protocol, etc.;

[0072] (3) Read the user ID, permission ID, and domain ID from the database, establish a mapping relationship between the device ID, domain ID, user ID, and permission ID, and write it into the cache;

[0073] (4) Read global device resources from the database to obtain the device lock and unlock status;

[0074] (5) Initialize the protocol stack and establish a communication link with the lower-level domain platform or front-end device; obtain the lower-level domain information from the management queue loop, set the message callback function, connect to the lower-level domain platform or front-end device, and establish a message communication link;

[0075] (6) Start the business processing thread and the monitoring thread, monitor the PTZ control messages issued by the local domain and the upper domain, and perform corresponding business processing after receiving the business messages;

[0076] (7) Start the protocol standardization processing business thread and wait for the message standardization processing and sending;

[0077] S3. Unlock the current PTZ control right of the device according to the user ID and the authority ID, and use the high-priority user ID and the authority ID to lock the PTZ control operation right of the device to complete the PTZ preemption service processing, such as Figure 3 As shown, the operation is as follows:

[0078] (1) Waiting to receive PTZ control signaling;

[0079] (2) Parse the PTZ control signaling to obtain domain ID, user ID, authority ID, device ID and other information;

[0080] (3) Determine the source of the PTZ control request based on the domain identifier. If the source is from an external domain, execute step (4). If the control request is not from an external domain, execute step (5).

[0081] (4) According to the domain identifier and the permission identifier, a mapping is established between the external domain permissions and the local domain permissions, and the permission cache queue is updated uniformly;

[0082] (5) Read the device ID lock status information, including whether it has been locked, the locked user, the lock duration, etc.; if the PTZ control has been locked, execute step (6); otherwise, execute step (8);

[0083] (6) Read the information of the owner of the PTZ control right, including the permission information; judge according to the current PTZ control request service priority, if the current priority is higher than the PTZ locker priority, execute step (7); if the current priority is not higher than the PTZ locker priority, execute step (10);

[0084] (7) Unlock the PTZ control ownership and grant high priority permission identification and user identification;

[0085] (8) Lock the PTZ control right of the current device with the current user ID and permission ID, so that the high-priority user can seize the PTZ control right of the low-priority user;

[0086] (9) Sending the PTZ control signaling to the front-end device to complete the PTZ control operation service of the front-end device; the detailed process of sending the PTZ control signaling to the front-end device is shown in step S4;

[0087] (10) PTZ control preemption ends and resources are released;

[0088] S4, signaling service sends PTZ control operations to the front-end device, such as Figure 5 As shown, the process is as follows:

[0089] (1) Read the PTZ control message; at this point, the PTZ control preemption business process has been completed;

[0090] (2) Parse the PTZ control message to obtain information such as message type, device ID, and device domain;

[0091] (3) According to the device domain information, obtain the link information corresponding to the device; the link is established through the active registration of the lower-level device when the program is initialized; if the link information exists, execute step (4); if the link information does not exist, execute step (8);

[0092] (4) Initialize and assemble PTZ control messages and write them into the application layer message queue;

[0093] (5) Read the application layer message queue, obtain the PTZ control message and process it according to the business process, and write the execution status into the message status queue;

[0094] (6) Read the message status queue, standardize the PTZ control message, and write it into the network message queue;

[0095] (7) Read the network message queue, obtain the PTZ control message, and send the PTZ control message to the front-end device using the established lower-level domain network link to complete the PTZ control operation;

[0096] (8) The PTZ control service is completed and resources are released;

[0097] S5. Start the timeliness check of the device PTZ control right with the high priority user ID and the permission ID. If the timeliness check is satisfied, the PTZ control right is automatically released and the current device PTZ control right is unlocked. Manual unlocking is also supported, such as Figure 4 As shown, the process is as follows:

[0098] (1) Based on the high-priority user ID and permission ID, the device PTZ control rights are locked;

[0099] (2) Start the timeliness test of PTZ control rights;

[0100] (3) Determine whether the timeliness has expired; if so, execute step (4); otherwise, execute step (3);

[0101] (4) End the PTZ control lock;

[0102] (5) Release the PTZ control rights and lock the related resource information.

[0103] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A method for enhancing PTZ preemption control for global resources, characterized in that: The following steps are involved: S1. The client in this domain issues the PTZ control operation. If the PTZ control operation is issued to the client in the external domain, a permission relationship mapping table needs to be established. S2, wait for the signaling service to receive the PTZ control operation signaling information, parse and obtain the device ID, user ID, authority ID, and domain ID information, and implement service initialization; S3. Unlock the current PTZ control right of the device according to the user ID and the authority ID, and use the high-priority user ID and the authority ID to lock the PTZ control operation right of the device, and complete the PTZ preemption service processing; S4, signaling service sends PTZ control operations to the front-end device; S5. Start the timeliness check of the device PTZ control right with high priority user ID and authority ID. If the timeliness check is satisfied, the PTZ control right is automatically released to complete the unlocking of the current device PTZ control right. Manual unlocking is also supported.

2. The method for global resource enhanced PTZ preemption control according to claim 1, characterized in that: The service initialization process in step S2 is as follows: (1) Read the configuration information related to the signaling service; the service configuration information includes IP address, listening port, authentication information, heartbeat detection strategy, and status reporting frequency; (2) Loading basic data; the data includes information about the lower-level domain platform or front-end device; Platform or front-end device information includes platform code, device ID, domain name, authentication information, signaling transmission protocol, and media transmission protocol; (3) Read the user ID, permission ID, and domain ID from the database, establish a mapping relationship between the device ID, domain ID, user ID, and permission ID, and write it into the cache; (4) Read global device resources from the database to obtain the device lock and unlock status; (5) Initialize the protocol stack and establish a communication link with the lower-level domain platform or front-end device; obtain the lower-level domain information from the management queue loop, set the message callback function, connect to the lower-level domain platform or front-end device, and establish a message communication link; (6) Start the business processing thread and the monitoring thread, monitor the PTZ control messages issued by the local domain and the upper domain, and perform corresponding business processing after receiving the business messages; (7) Start the protocol standardization processing business thread and wait for the message standardization processing and sending.

3. The method for global resource enhanced PTZ preemption control according to claim 1, characterized in that: The PTZ preemption service processing operation in step S3 is as follows: (1) Waiting to receive PTZ control signaling; (2) Parse the PTZ control signaling to obtain the domain ID, user ID, authority ID, and device ID information; (3) Determine the source of the PTZ control request based on the domain identifier, and execute step (4) if the source is outside the domain; (4) According to the domain identifier and the permission identifier, a mapping is established between the external domain permission and the local domain permission, and the permission cache queue is updated uniformly; (5) Read device ID lock status information, including whether it has been locked, locked user, lock duration, etc.; If the PTZ control has been locked, go to step (6); otherwise go to step (8); (6) Read the information of the owner of the PTZ control rights, including the permission information; According to the current PTZ control request service priority, if the current priority is higher than the PTZ locker priority, execute step (7); (7) Unlock the PTZ control ownership and grant high priority permission identification and user identification; (8) Lock the PTZ control right of the current device with the current user ID and permission ID, so that the high-priority user can seize the PTZ control right of the low-priority user; (9) Send the PTZ control signaling to the front-end device to complete the PTZ control operation service of the front-end device; (10) PTZ control preemption ends and resources are released.

4. The method for global resource enhanced PTZ preemption control according to claim 3, characterized in that: In step (3), if the control request is not from an external domain, step (5) is executed.

5. The method for global resource enhanced PTZ preemption control according to claim 3, characterized in that: In step (6), if the current priority is not higher than the priority of the PTZ locker, step (10) is executed.

6. The method for global resource-oriented enhanced PTZ preemption control according to claim 1, characterized in that: The business process of sending the PTZ control message to the front-end device in step S4 is as follows: (1) Read the PTZ control message; at this point, the PTZ control preemption business process has been completed; (2) Parse the PTZ control message to obtain the message type, device ID, and device domain information; (3) According to the device domain information, obtain the link information corresponding to the device; the link is established through the active registration of the lower-level device when the program is initialized; if the link information exists, execute step (4); (4) Initialize and assemble PTZ control messages and write them into the application layer message queue; (5) Read the application layer message queue, obtain the PTZ control message and process it according to the business process, and write the execution status into the message status queue; (6) Read the message status queue, standardize the PTZ control message, and write it into the network message queue; (7) Read the network message queue, obtain the PTZ control message, and send the PTZ control message to the front-end device using the established lower-level domain network link to complete the PTZ control operation; (8) The PTZ control service is completed and resources are released.

7. The method for global resource enhanced PTZ preemption control according to claim 6, characterized in that: If there is no link information in step (3), execute step (8).

8. The method for global resource enhanced PTZ preemption control according to claim 1, characterized in that: The process of automatically unlocking the PTZ control right in step S5 is as follows: (1) Based on the high-priority user ID and permission ID, the device PTZ control rights are locked; (2) Start the timeliness test of PTZ control rights; (3) Determine whether the timeliness has expired; if so, execute step (4); otherwise, execute step (3); (4) End the PTZ control lock; (5) Release the PTZ control rights and lock the related resource information.

Citation Information

Cited By

  • Holder control method and device and electronic equipment

    CN121050471A

  • Large-batch resource warehousing method for optimizing cascade warehousing logic

    CN122064686A