Dual-channel polling playing method and system
By adopting the dual-channel polling playback method in a distributed system, using the object detection model for data preprocessing and classification, and performing dual-channel data transmission and polling control in the central node, the single-channel playback method cannot effectively handle complex and The problem of large data volume network signals achieves efficient, stable and reliable data processing and playback.
Patent Information
- Application Number
- CN202411458151.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-18
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2044-10-18
AI Technical Summary
The existing single-channel playback method cannot effectively classify and prioritize network signals in complex and distributed systems with large data volumes, resulting in delayed processing of important data, reduced system efficiency, and difficult to flexibly expand and adjust.
Using the dual-channel polling playback method, by collecting multiple types of network signal data in distributed devices, pre-processing and classification using the object detection model, the data is transmitted to the central node through two independent data transmission channels, and in The data in the polling control channel is handled according to the polling policy control channel.
It significantly improves the speed and efficiency of data processing, realizes the classification and priority processing of data, ensures that key information is processed and transmitted first, avoids delays in important data, and enhances the stability and reliability of playback.
Smart Images

Figure CN119484408A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computer technology, and specifically relates to a dual-channel polling playback method and system. Background Art
[0002] In existing distributed systems, network signals are usually played in a traditional single-channel manner. As the application scenarios of distributed systems become increasingly complex and the amount of data continues to increase, this single-channel playback method faces many challenges. For network signals of different sources and types, a single channel cannot effectively classify and prioritize them. All data is transmitted and played in the same order, resulting in the possibility that important data may be delayed, while unimportant data takes up a lot of processing resources and time, reducing the efficiency of the overall system.
[0003] At present, the architecture of the single-channel playback mode is relatively fixed, and it is difficult to flexibly expand and adjust according to actual application requirements. When the system needs to add new data sources or functions, it is often necessary to carry out large-scale transformation and reconfiguration of the entire system, which not only increases the cost and workload, but may also affect the normal operation of the system. For example, in some large-scale distributed monitoring systems, the video signals collected by multiple monitoring nodes need to be transmitted to the central node for processing and playback. The single-channel playback mode often leads to data transmission congestion, especially when multiple nodes send a large amount of data at the same time, which is prone to delays, freezes, and even data loss. Moreover, for network signals of different types and priorities, there is a lack of effective classification processing and differentiated playback mechanisms, which cannot guarantee the priority display and real-time response of key information. Summary of the invention
[0004] In response to the above technical problems, the present application proposes a dual-channel polling playback method and system, which solves the problem of a single channel becoming a bottleneck and improves the speed and efficiency of data processing in a distributed system.
[0005] A first aspect of an embodiment of the present application provides a dual-channel polling playback method, comprising: Collect various types of network signal data in distributed devices; Use the target detection model to preprocess and classify the collected network signal data; According to the real-time requirements and data volume of the network signal data, the classified data is transmitted to the central node through two independent data transmission channels; Input the data of the central node into the polling control module, control the transmission data in the channel according to the polling strategy and handle fault exceptions; The processed data is sent to the playback device for playback.
[0006] The embodiment of the present application provides a dual-channel polling playback method. By transmitting and processing data in parallel through dual channels, the present invention fully utilizes the hardware resources and network bandwidth of the distributed system, significantly improves the speed and efficiency of data processing, and is particularly suitable for application scenarios with high real-time requirements, and can respond to and process network signal data more promptly; the data is classified and prioritized, so that the system can allocate resources and process data more targetedly, which not only further improves the efficiency and accuracy of data processing, but also ensures that key information can be processed and transmitted with priority, avoiding delays in important data; the combination of dual-channel architecture with data synchronization and caching mechanism greatly enhances the stability and reliability of playback. In the event of network fluctuations or channel failures, the backup channel and data cache can ensure uninterrupted playback and provide a smooth viewing experience. At the same time, the error detection and recovery mechanism ensures the integrity and correctness of the data, effectively reduces errors and abnormalities in the playback screen, and improves playback quality and user satisfaction.
[0007] In a possible implementation method of the first aspect, preprocessing and classifying the collected network signal data using a target detection model includes: The target detection model uses a target detection algorithm to identify target objects and key information in the data to obtain a target detection result; The target detection results are input into a data processing unit and classified according to network topology and data flow distribution.
[0008] The embodiments of the present application provide that the present invention utilizes target detection algorithm technology to accurately identify and detect key elements such as people, objects and scenes in data, as well as abnormal patterns and key events in sensor data, thereby improving the accuracy of data preprocessing; by classifying the collected data and adding corresponding labels and priorities, the solution can preprocess and optimize different categories of data in a more targeted manner; by considering the network topology and the distribution of data traffic, network resources can be allocated more reasonably to ensure that key data is transmitted through the optimal path, reduce network congestion and improve bandwidth utilization.
[0009] In a possible implementation method of the first aspect, according to the real-time requirement and data volume of the network signal data, the classified data is transmitted to the central node through two independent data transmission channels, including: The data transmission channels are respectively provided with a cache unit; The cache unit includes a data synchronization unit and a storage unit, which are used to establish a data synchronization mechanism within the channel and temporarily store data to be processed and played.
[0010] The embodiments of the present application provide a data synchronization mechanism and a cache mechanism. Data synchronization ensures that the data status of the two channels remains consistent, prevents playback errors or anomalies caused by data inconsistency, and improves the accuracy of data transmission and processing. When a channel fails, the system can obtain unprocessed data or backup data from another channel, thereby ensuring data integrity and playback continuity, and enhancing system stability and reliability. After a subsequent failure, the solution can use the data synchronization mechanism to quickly restore the data status, re-incorporate the channel into the polling sequence, and speed up the system's recovery to normal working mode.
[0011] In a possible implementation method of the first aspect, the channel transmission data is input into a polling control module, and the data in the channel is controlled according to a set polling strategy and fault exception processing is performed, including: The polling control module includes a configuration unit, a verification unit, a data distribution unit and an exception handling unit; The configuration unit is used to set the polling interval and order; The verification unit is used to verify the polled data and check the integrity and correctness of the data; The data distribution unit is used to store the processed data in the cache unit and distribute it to the designated transmission data channel; The exception handling unit is used to monitor the status and data transmission in the channel and perform exception handling when a fault is found; The polling strategy is used to dynamically adjust the configuration unit according to the real-time and priority of the data, and monitor the data flow and priority distribution of each channel in real time; The polling strategy also includes error detection and recovery mechanisms.
[0012] The embodiment of the present application provides a polling mechanism, an error detection mechanism, and a recovery mechanism. The polling mechanism dynamically adjusts the polling time interval and order according to the real-time and priority of the data. The scheme can respond to changes in data traffic in real time and prioritize key data, thereby improving the overall performance and response speed of the system; the error detection mechanism verifies the integrity and correctness of the data block, and can promptly discover and identify the data block with errors. This mechanism ensures that only complete and correct data blocks will be further processed, thereby improving the reliability of data transmission; and the recovery mechanism effectively avoids the collapse of the entire system due to a single channel failure, enhancing the stability and fault tolerance of the system.
[0013] A second aspect of an embodiment of the present application provides a dual-channel polling playback system, including a collection module, a detection module, a classification module, a control module and an output module: The acquisition module is used to collect various types of network signal data in distributed devices; The detection module is used to preprocess and classify the collected network signal data using the target detection model; The classification module is used to transmit the classified data to the central node through two independent data transmission channels according to the real-time requirements and data volume of the network signal data; The control module is used to input the channel transmission data into the polling control module, control the data in the channel according to the set rules and perform fault exception processing; The output module is used to send the processed data to the playback device for playback.
[0014] The embodiment of the present application provides a dual-channel polling playback system. By transmitting and processing data in parallel through dual channels, the present invention fully utilizes the hardware resources and network bandwidth of the distributed system, significantly improves the speed and efficiency of data processing, and is particularly suitable for application scenarios with high real-time requirements, and can respond to and process network signal data more promptly; the data is classified and prioritized, so that the system can allocate resources and process data more targetedly, which not only further improves the efficiency and accuracy of data processing, but also ensures that key information can be processed and transmitted with priority, avoiding delays in important data; the combination of the dual-channel architecture with data synchronization and caching mechanisms greatly enhances the stability and reliability of playback. In the event of network fluctuations or channel failures, the backup channel and data cache can ensure uninterrupted playback and provide a smooth viewing experience. At the same time, the error detection and recovery mechanism ensures the integrity and correctness of the data, effectively reduces errors and anomalies in the playback screen, and improves playback quality and user satisfaction.
[0015] In a possible implementation method of the second aspect, preprocessing and classifying the collected network signal data using a target detection model includes: The target detection model uses a target detection algorithm to identify target objects and key information in the data to obtain a target detection result; The target detection results are input into a data processing unit and classified according to network topology and data flow distribution.
[0016] The embodiments of the present application provide that the present invention utilizes target detection algorithm technology to accurately identify and detect key elements such as people, objects and scenes in data, as well as abnormal patterns and key events in sensor data, thereby improving the accuracy of data preprocessing; by classifying the collected data and adding corresponding labels and priorities, the solution can preprocess and optimize different categories of data in a more targeted manner; by considering the network topology and the distribution of data traffic, network resources can be allocated more reasonably to ensure that key data is transmitted through the optimal path, reduce network congestion and improve bandwidth utilization.
[0017] In a possible implementation method of the first aspect, according to the real-time requirement and data volume of the network signal data, the classified data is transmitted to the central node through two independent data transmission channels, including: The data transmission channels are respectively provided with a cache unit; The cache unit includes a data synchronization unit and a storage unit, which are used to establish a data synchronization mechanism within the channel and temporarily store data to be processed and played.
[0018] The embodiments of the present application provide a data synchronization mechanism and a cache mechanism. Data synchronization ensures that the data status of the two channels remains consistent, prevents playback errors or anomalies caused by data inconsistency, and improves the accuracy of data transmission and processing. When a channel fails, the system can obtain unprocessed data or backup data from another channel, thereby ensuring data integrity and playback continuity, and enhancing system stability and reliability. After a subsequent failure, the solution can use the data synchronization mechanism to quickly restore the data status, re-incorporate the channel into the polling sequence, and speed up the system's recovery to normal working mode.
[0019] In a possible implementation method of the first aspect, the channel transmission data is input into a polling control module, and the data in the channel is controlled according to a set polling strategy and fault exception processing is performed, including: The polling control module includes a configuration unit, a verification unit, a data distribution unit and an exception handling unit; The configuration unit is used to set the polling interval and order; The verification unit is used to verify the polled data and check the integrity and correctness of the data; The data distribution unit is used to store the processed data in the cache unit and distribute it to the designated transmission data channel; The exception handling unit is used to monitor the status and data transmission in the channel and perform exception handling when a fault is found; The polling strategy is used to dynamically adjust the configuration unit according to the real-time and priority of the data, and monitor the data flow and priority distribution of each channel in real time; The polling strategy also includes error detection and recovery mechanisms.
[0020] The embodiment of the present application provides a polling mechanism, an error detection mechanism, and a recovery mechanism. The polling mechanism dynamically adjusts the polling time interval and order according to the real-time and priority of the data. The scheme can respond to changes in data traffic in real time and prioritize key data, thereby improving the overall performance and response speed of the system; the error detection mechanism verifies the integrity and correctness of the data block, and can promptly discover and identify the data block with errors. This mechanism ensures that only complete and correct data blocks will be further processed, thereby improving the reliability of data transmission; and the recovery mechanism effectively avoids the collapse of the entire system due to a single channel failure, enhancing the stability and fault tolerance of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the implementation manner will be briefly introduced below. Obviously, the drawings described below are only some implementation manners of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0022] Figure 1 It is a flowchart of a dual-channel polling playback method provided in a certain embodiment of the present application.
[0023] Figure 2 It is a flow chart of a polling control strategy in a dual-channel polling playback method provided in a certain embodiment of the present application.
[0024] Figure 3 This is a system overall architecture diagram of a dual-channel polling playback system provided in a certain embodiment of the present application.
[0025] Figure 4 It is a structural diagram of a dual-channel polling playback system provided in a certain embodiment of the present application. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other. Example
[0027] See also Figure 1 As shown, a dual-channel polling playback method provided by an embodiment of the present application includes steps S1-S5 specifically as follows: Step S1: collecting various types of network signal data in distributed devices; Step S2: preprocessing and classifying the collected network signal data using the target detection model; Step S3: according to the real-time requirements and data volume of the network signal data, the classified data is transmitted to the central node through two independent data transmission channels; Step S4: input the data of the central node into the polling control module, control the transmission data in the channel according to the polling strategy and perform fault exception processing; Step S5: Send the processed data to a playback device for playback.
[0028] The embodiment of the present application provides a dual-channel polling playback method. By transmitting and processing data in parallel through dual channels, the present invention fully utilizes the hardware resources and network bandwidth of the distributed system, significantly improves the speed and efficiency of data processing, and is particularly suitable for application scenarios with high real-time requirements, and can respond to and process network signal data more promptly; the data is classified and prioritized, so that the system can allocate resources and process data more targetedly, which not only further improves the efficiency and accuracy of data processing, but also ensures that key information can be processed and transmitted with priority, avoiding delays in important data; the combination of dual-channel architecture with data synchronization and caching mechanism greatly enhances the stability and reliability of playback. In the event of network fluctuations or channel failures, the backup channel and data cache can ensure uninterrupted playback and provide a smooth viewing experience. At the same time, the error detection and recovery mechanism ensures the integrity and correctness of the data, effectively reduces errors and abnormalities in the playback screen, and improves playback quality and user satisfaction.
[0029] Furthermore, in step S2, the collected network signal data is preprocessed and classified using the target detection model, including: The target detection model uses the target detection algorithm to identify the target object and key information in the data and obtain the target detection result; The target detection results are input into a data processing unit and classified according to network topology and data flow distribution.
[0030] The embodiments of the present application provide that the present invention utilizes target detection algorithm technology to accurately identify and detect key elements such as people, objects and scenes in data, as well as abnormal patterns and key events in sensor data, thereby improving the accuracy of data preprocessing; by classifying the collected data and adding corresponding labels and priorities, the solution can preprocess and optimize different categories of data in a more targeted manner; by considering the network topology and the distribution of data traffic, network resources can be allocated more reasonably to ensure that key data is transmitted through the optimal path, reduce network congestion and improve bandwidth utilization.
[0031] In a preferred embodiment, the target detection model preprocesses and classifies the collected network signal data based on the target detection algorithm YOLOv7 (You Only Look Once 7). The powerful target detection capability of the YOLOv7 model is used to quickly identify target objects and key information in the data. For example, for video data, key elements such as people, objects, and scenes can be accurately detected; for sensor data, abnormal data patterns and key events can be identified.
[0032] Further, in step S3, according to the real-time requirements and data volume of the network signal data, the classified data is transmitted to the central node through two independent data transmission channels, including: The data transmission channels are respectively provided with a cache unit; The cache unit includes a data synchronization unit and a storage unit, which are used to establish a data synchronization mechanism within the channel and temporarily store data to be processed and played.
[0033] The embodiments of the present application provide a data synchronization mechanism and a cache mechanism. Data synchronization ensures that the data status of the two channels remains consistent, prevents playback errors or anomalies caused by data inconsistency, and improves the accuracy of data transmission and processing. When a channel fails, the system can obtain unprocessed data or backup data from another channel, thereby ensuring data integrity and playback continuity, and enhancing system stability and reliability. After a subsequent failure, the solution can use the data synchronization mechanism to quickly restore the data status, re-incorporate the channel into the polling sequence, and speed up the system's recovery to normal working mode.
[0034] In a preferred embodiment, according to the detection results of the YOLOv7 model, the data processing unit divides the data into different categories and adds corresponding labels and priority information to each data block. The classified data are queued and sent to the central node according to their categories and priorities. At the same time, targeted preprocessing is performed on data of different categories. For example, for key targets in video data, separate encoding and optimization processing can be performed to improve their quality and efficiency during transmission and playback. The cache unit in the channel includes a data synchronization unit and a storage unit; a data synchronization mechanism is established between the two channels to ensure that the data status of the two channels remains consistent. When the data in one channel changes or is updated, the relevant information is synchronized to the other channel in time to prevent playback errors or anomalies caused by inconsistent data. For example, in video playback, if a frame of image in channel A is erroneous or lost, the corresponding spare data block can be obtained from channel B through the data synchronization mechanism for replacement to ensure the continuity and accuracy of playback. A cache unit is set at the receiving end and the playback end of each channel. The cache unit is used to temporarily store data to be processed and played to cope with network fluctuations and data transmission delays. When the network fails temporarily or the bandwidth is insufficient, the player can read data from the cache unit for playback to avoid freezing or interruption. At the same time, the cache unit will preload and preprocess the data to improve the efficiency of data processing and playback. Before playing the picture, the video data of a certain length is cached in the cache unit in advance, and decoded and preprocessed. When playing, the processed data can be directly obtained from the cache unit to reduce playback delay.
[0035] Furthermore, in step S4, the data of the central node is input into the polling control module, and the transmission data in the channel is controlled according to the polling strategy and fault exception processing is performed, including: The polling control module includes a configuration unit, a verification unit, a data distribution unit and an exception handling unit; The configuration unit is used to set the polling interval and order; The verification unit is used to verify the polled data and check the integrity and correctness of the data; The data distribution unit is used to store the processed data in the cache unit and distribute it to the designated transmission data channel; The exception handling unit is used to monitor the status and data transmission in the channel and perform exception handling when a fault is found; The polling strategy is used to dynamically adjust the configuration unit according to the real-time and priority of the data, and monitor the data flow and priority distribution of each channel in real time; The polling strategy also includes error detection and recovery mechanisms.
[0036] The embodiment of the present application provides a polling mechanism, an error detection mechanism, and a recovery mechanism. The polling mechanism dynamically adjusts the polling time interval and order according to the real-time and priority of the data. The scheme can respond to changes in data traffic in real time and prioritize key data, thereby improving the overall performance and response speed of the system; the error detection mechanism verifies the integrity and correctness of the data block, and can promptly discover and identify the data block with errors. This mechanism ensures that only complete and correct data blocks will be further processed, thereby improving the reliability of data transmission; and the recovery mechanism effectively avoids the collapse of the entire system due to a single channel failure, enhancing the stability and fault tolerance of the system.
[0037] In a preferred embodiment, Figure 2 As shown in the figure, the polling control module consists of a configuration unit, a verification unit, a data distribution unit and an exception handling unit; the configuration unit initializes the initial polling time interval and sequence of channel A and channel B, starting with channel A, with an initial polling time interval of T1 (assuming T1 = 50ms), and the initial polling time interval of channel B is T2 (assuming T2 = 100ms). The polling control module starts polling according to the set time interval and sequence, and when it is the turn of channel A, a data block is read from the data buffer of channel A. First, the verification unit verifies the data by checking the integrity and correctness of the data block through technologies such as checksum and CRC (Cyclic Redundancy Check); if the data block is correct, it is passed to the data processing unit for further processing.
[0038] like Figure 3 As shown, two independent data transmission channels are established, which are marked as channel A and channel B. Each channel has an independent network interface, a cache unit and a transmission protocol stack, and can transmit and process network signal data simultaneously and in parallel.
[0039] Between the distributed nodes and the central node, data is reasonably allocated to two channels for transmission according to the network topology and data traffic distribution. Data with higher real-time requirements (such as key images in video surveillance, emergency sensor data, etc.) can be allocated to channel A, and data with relatively lower real-time requirements but larger data volume (such as background image data, historical statistical data, etc.) can be allocated to channel B.
[0040] The data processing unit performs corresponding processing operations according to the label and priority information of the data block. The data distribution unit may need to analyze and respond immediately to high-priority data; if key behaviors of key people are detected, an alarm needs to be triggered immediately or focused on. The processed results can be placed in the cache unit for storage, forwarding or distribution to the designated playback device as needed.
[0041] The polling control module continues to check whether there are any unprocessed data blocks in the buffer unit of channel A. If there are, it continues to read and process the next data block until the buffer unit of channel A is empty or the time limit of this polling is reached. When the polling process of channel A is completed, it switches to channel B according to the same process. Read the data block from the data buffer of channel B, perform error detection, processing and subsequent operations, and the polling time interval is T2.
[0042] According to the real-time and priority of the data, the polling time interval and order can be dynamically adjusted to monitor the data flow and priority distribution of each channel in real time. If a large amount of high-priority data appears continuously in channel A, such as the continuous detection of multiple key events in video surveillance, the polling time interval of channel A can be shortened. For example, T1 is adjusted to 20ms to ensure that these high-priority data can be processed and played more promptly. On the contrary, if the amount of data in channel B suddenly increases or network congestion occurs, causing its processing speed to slow down, the configuration unit can also appropriately extend the polling time interval of channel B, such as adjusting T2 to 150ms, to reduce the burden on channel B and avoid data backlog and processing delays.
[0043] During the polling process, the channel status and data transmission are monitored in real time. If a channel is found to have a serious fault, such as network connection interruption, high data transmission error rate or hardware failure, the exception handling unit is immediately started. The exception handling unit consists of a deactivation unit, a feedback unit and a recovery unit.
[0044] After startup, the deactivation unit will pause the ongoing polling operation and mark the unprocessed data as pending. Then the polling control module will automatically switch to another normal channel to continue polling and data processing. If channel A fails, it will quickly switch to channel B to ensure uninterrupted data processing and playback.
[0045] After switching to the backup channel, the feedback unit promptly notifies the relevant module units and administrators to troubleshoot and repair the fault. At the same time, the recovery unit uses the data synchronization mechanism to try to obtain the unprocessed data or related backup data in the faulty channel from the normal channel to ensure the integrity and continuity of the data. When the faulty channel is repaired, it is re-included in the polling sequence to ensure that the system can return to the normal dual-channel normal working mode. Example
[0046] Please refer to Figure 4 , a dual-channel polling playback system provided in an embodiment of the present application, including specifically: Including acquisition module, detection module, classification module, control module and output module: The acquisition module is used to collect various types of network signal data in distributed devices; The detection module is used to preprocess and classify the collected network signal data using the target detection model; The classification module is used to distribute the classified data to two data transmission channels, and transmit the data to the central node through the two channels; The control module is used to input the channel transmission data into the polling control module, control the data in the channel according to the set rules and perform fault exception processing; The output module is used to send the processed data to the playback device for playback.
[0047] The embodiment of the present application provides a dual-channel polling playback system. By transmitting and processing data in parallel through dual channels, the present invention fully utilizes the hardware resources and network bandwidth of the distributed system, significantly improves the speed and efficiency of data processing, and is particularly suitable for application scenarios with high real-time requirements, and can respond to and process network signal data more promptly; the data is classified and prioritized, so that the system can allocate resources and process data more targetedly, which not only further improves the efficiency and accuracy of data processing, but also ensures that key information can be processed and transmitted with priority, avoiding delays in important data; the combination of the dual-channel architecture with data synchronization and caching mechanisms greatly enhances the stability and reliability of playback. In the event of network fluctuations or channel failures, the backup channel and data cache can ensure uninterrupted playback and provide a smooth viewing experience. At the same time, the error detection and recovery mechanism ensures the integrity and correctness of the data, effectively reduces errors and anomalies in the playback screen, and improves playback quality and user satisfaction.
[0048] Furthermore, in the detection module, the target detection model is used to pre-process and classify the collected network signal data, including: The target detection model uses the target detection algorithm to identify the target object and key information in the data and obtain the target detection result; The target detection results are input into a data processing unit and classified according to network topology and data flow distribution.
[0049] The embodiments of the present application provide that the present invention utilizes target detection algorithm technology to accurately identify and detect key elements such as people, objects and scenes in data, as well as abnormal patterns and key events in sensor data, thereby improving the accuracy of data preprocessing; by classifying the collected data and adding corresponding labels and priorities, the solution can preprocess and optimize different categories of data in a more targeted manner; by considering the network topology and the distribution of data traffic, network resources can be allocated more reasonably to ensure that key data is transmitted through the optimal path, reduce network congestion and improve bandwidth utilization.
[0050] In a preferred embodiment, the target detection model preprocesses and classifies the collected network signal data based on the target detection algorithm YOLOv7 (You Only Look Once 7). The powerful target detection capability of the YOLOv7 model is used to quickly identify target objects and key information in the data. For example, for video data, key elements such as people, objects, and scenes can be accurately detected; for sensor data, abnormal data patterns and key events can be identified.
[0051] Furthermore, in the classification module, according to the real-time requirements and data volume of the network signal data, the classified data is transmitted to the central node through two independent data transmission channels, including: The data transmission channels are respectively provided with a cache unit; The cache unit includes a data synchronization unit and a storage unit, which are used to establish a data synchronization mechanism within the channel and temporarily store data to be processed and played.
[0052] The embodiments of the present application provide a data synchronization mechanism and a cache mechanism. Data synchronization ensures that the data status of the two channels remains consistent, prevents playback errors or anomalies caused by data inconsistency, and improves the accuracy of data transmission and processing. When a channel fails, the system can obtain unprocessed data or backup data from another channel, thereby ensuring data integrity and playback continuity, and enhancing system stability and reliability. After a subsequent failure, the solution can use the data synchronization mechanism to quickly restore the data status, re-incorporate the channel into the polling sequence, and speed up the system's recovery to normal working mode.
[0053] In a preferred embodiment, according to the detection results of the YOLOv7 model, the data processing unit divides the data into different categories and adds corresponding labels and priority information to each data block. The classified data are queued and sent to the central node according to their categories and priorities. At the same time, targeted preprocessing is performed on data of different categories. For example, for key targets in video data, separate encoding and optimization processing can be performed to improve their quality and efficiency during transmission and playback. The cache unit in the channel includes a data synchronization unit and a storage unit; a data synchronization mechanism is established between the two channels to ensure that the data status of the two channels remains consistent. When the data in one channel changes or is updated, the relevant information is synchronized to the other channel in time to prevent playback errors or anomalies caused by inconsistent data. For example, in video playback, if a frame of image in channel A is erroneous or lost, the corresponding spare data block can be obtained from channel B through the data synchronization mechanism for replacement to ensure the continuity and accuracy of playback. A cache unit is set at the receiving end and the playback end of each channel. The cache unit is used to temporarily store data to be processed and played to cope with network fluctuations and data transmission delays. When the network fails temporarily or the bandwidth is insufficient, the player can read data from the cache unit for playback to avoid freezing or interruption. At the same time, the cache unit will preload and preprocess the data to improve the efficiency of data processing and playback. Before playing the picture, the video data of a certain length is cached in the cache unit in advance, and decoded and preprocessed. When playing, the processed data can be directly obtained from the cache unit to reduce playback delay.
[0054] Furthermore, in the control module, the data of the central node is input into the polling control module, and the transmission data in the channel is controlled according to the polling strategy and fault exception processing is performed, including: The polling control module includes a configuration unit, a verification unit, a data distribution unit and an exception handling unit; The configuration unit is used to set the polling interval and order; The verification unit is used to verify the polled data and check the integrity and correctness of the data; The data distribution unit is used to store the processed data in the cache unit and distribute it to the designated transmission data channel; The exception handling unit is used to monitor the status and data transmission in the channel and perform exception handling when a fault is found; The polling strategy is used to dynamically adjust the configuration unit according to the real-time and priority of the data, and monitor the data flow and priority distribution of each channel in real time; The polling strategy also includes error detection and recovery mechanisms.
[0055] The embodiment of the present application provides a polling mechanism, an error detection mechanism, and a recovery mechanism. The polling mechanism dynamically adjusts the polling time interval and order according to the real-time and priority of the data. The scheme can respond to changes in data traffic in real time and prioritize key data, thereby improving the overall performance and response speed of the system; the error detection mechanism verifies the integrity and correctness of the data block, and can promptly discover and identify the data block with errors. This mechanism ensures that only complete and correct data blocks will be further processed, thereby improving the reliability of data transmission; and the recovery mechanism effectively avoids the collapse of the entire system due to a single channel failure, enhancing the stability and fault tolerance of the system.
[0056] In a preferred embodiment, Figure 2 As shown in the figure, the polling control module consists of a configuration unit, a verification unit, a data distribution unit and an exception handling unit; the configuration unit initializes the initial polling time interval and sequence of channel A and channel B, starting with channel A, with an initial polling time interval of T1 (assuming T1 = 50ms), and the initial polling time interval of channel B is T2 (assuming T2 = 100ms). The polling control module starts polling according to the set time interval and sequence, and when it is the turn of channel A, a data block is read from the data buffer of channel A. First, the verification unit verifies the data by checking the integrity and correctness of the data block through technologies such as checksum and CRC (Cyclic Redundancy Check); if the data block is correct, it is passed to the data processing unit for further processing.
[0057] like Figure 3 As shown, two independent data transmission channels are established, which are marked as channel A and channel B. Each channel has an independent network interface, a cache unit and a transmission protocol stack, and can transmit and process network signal data simultaneously and in parallel.
[0058] Between the distributed nodes and the central node, data is reasonably allocated to two channels for transmission according to the network topology and data traffic distribution. Data with higher real-time requirements (such as key images in video surveillance, emergency sensor data, etc.) can be allocated to channel A, and data with relatively lower real-time requirements but larger data volume (such as background image data, historical statistical data, etc.) can be allocated to channel B.
[0059] The data processing unit performs corresponding processing operations according to the label and priority information of the data block. The data distribution unit may need to analyze and respond immediately to high-priority data; if key behaviors of key people are detected, an alarm needs to be triggered immediately or focused on. The processed results can be placed in the cache unit for storage, forwarding or distribution to the designated playback device as needed.
[0060] The polling control module continues to check whether there are any unprocessed data blocks in the buffer unit of channel A. If there are, it continues to read and process the next data block until the buffer unit of channel A is empty or the time limit of this polling is reached. When the polling process of channel A is completed, it switches to channel B according to the same process. Read the data block from the data buffer of channel B, perform error detection, processing and subsequent operations, and the polling time interval is T2.
[0061] According to the real-time and priority of the data, the polling time interval and order can be dynamically adjusted to monitor the data flow and priority distribution of each channel in real time. If a large amount of high-priority data appears continuously in channel A, such as the continuous detection of multiple key events in video surveillance, the polling time interval of channel A can be shortened. For example, T1 is adjusted to 20ms to ensure that these high-priority data can be processed and played more promptly. On the contrary, if the amount of data in channel B suddenly increases or network congestion occurs, causing its processing speed to slow down, the configuration unit can also appropriately extend the polling time interval of channel B, such as adjusting T2 to 150ms, to reduce the burden on channel B and avoid data backlog and processing delays.
[0062] During the polling process, the channel status and data transmission are monitored in real time. If a channel is found to have a serious fault, such as network connection interruption, high data transmission error rate or hardware failure, the exception handling unit is immediately started. The exception handling unit consists of a deactivation unit, a feedback unit and a recovery unit.
[0063] After startup, the deactivation unit will pause the ongoing polling operation and mark the unprocessed data as pending. Then the polling control module will automatically switch to another normal channel to continue polling and data processing. If channel A fails, it will quickly switch to channel B to ensure uninterrupted data processing and playback.
[0064] After switching to the backup channel, the feedback unit promptly notifies the relevant module units and administrators to troubleshoot and repair the fault. At the same time, the recovery unit uses the data synchronization mechanism to try to obtain the unprocessed data or related backup data in the faulty channel from the normal channel to ensure the integrity and continuity of the data. When the faulty channel is repaired, it is re-included in the polling sequence to ensure that the system can return to the normal dual-channel normal working mode.
[0065] The above-mentioned dual-channel polling playback system can implement a dual-channel polling playback method of the above-mentioned method embodiment. The options in the above-mentioned method embodiment are also applicable to this embodiment and will not be described in detail here. The rest of the contents of the embodiment of this application can refer to the contents of the above-mentioned method embodiment, and in some preferred embodiments, they will not be described in detail.
[0066] The above implementation modes are merely descriptions of the preferred implementation modes of the present invention, and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary engineering and technical personnel in the field shall fall within the protection scope determined by the claims of the present invention.
Claims
1. A dual-channel polling playback method, characterized in that: include: Collect various types of network signal data in distributed devices; Use the target detection model to preprocess and classify the collected network signal data; According to the real-time requirements and data volume of the network signal data, the classified data is transmitted to the central node through two independent data transmission channels; Input the data of the central node into the polling control module, control the transmission data in the channel according to the polling strategy and handle fault exceptions; The processed data is sent to the playback device for playback.
2. According to the dual-channel polling playback method of claim 1, it is characterized in that: The method of using the target detection model to preprocess and classify the collected network signal data includes: The target detection model uses a target detection algorithm to identify target objects and key information in the data to obtain a target detection result; The target detection results are input into a data processing unit and classified according to network topology and data flow distribution.
3. A dual-channel polling playback method according to claim 1, characterized in that: According to the real-time requirements and data volume of the network signal data, the classified data is transmitted to the central node through two independent data transmission channels, including: The data transmission channels are respectively provided with a cache unit; The cache unit includes a data synchronization unit and a storage unit, which are used to establish a data synchronization mechanism within the channel and temporarily store data to be processed and played.
4. A dual-channel polling playback method according to claim 1, characterized in that: The data of the central node is input into the polling control module, the transmission data in the channel is controlled according to the polling strategy, and fault exception processing is performed, including: The polling control module includes a configuration unit, a verification unit, a data distribution unit and an exception handling unit; The configuration unit is used to set the polling time interval and order; The verification unit is used to verify the data after polling to check the integrity and correctness of the data; The data distribution unit is used to store the processed data in the cache unit and distribute it to the designated transmission data channel; The exception handling unit is used to monitor the status and data transmission status in the channel, and perform exception handling when a fault is found.
5. A dual-channel polling playback method according to claim 4, characterized in that: The polling strategy also includes: The polling strategy is used to dynamically adjust the configuration unit according to the real-time and priority of the data, and monitor the data flow and priority distribution of each channel in real time; The polling strategy includes an error detection mechanism and a recovery mechanism for identifying failures and automatically switching to a backup channel.
6. A dual-channel polling playback system, characterized in that: Including acquisition module, detection module, classification module, control module and output module: The acquisition module is used to collect various types of network signal data in distributed devices; The detection module is used to preprocess and classify the collected network signal data using the target detection model; The classification module is used to transmit the classified data to the central node through two independent data transmission channels according to the real-time requirements and data volume of the network signal data; The control module is used to input the channel transmission data into the polling control module, control the data in the channel according to the set rules and perform fault exception processing; The output module is used to send the processed data to the playback device for playback.
7. A dual-channel polling playback system according to claim 6, characterized in that: The detection module comprises: The target detection model uses a target detection algorithm to identify target objects and key information in the data to obtain a target detection result; The target detection results are input into a data processing unit and classified according to network topology and data flow distribution.
8. A dual-channel polling playback system according to claim 6, characterized in that: The classification module comprises: The data transmission channels are respectively provided with a cache unit; The cache unit includes a data synchronization unit and a storage unit, which are used to establish a data synchronization mechanism within the channel and temporarily store data to be processed and played.
9. A dual-channel polling playback system according to claim 6, characterized in that: The control module comprises: The polling control module includes a configuration unit, a verification unit, a data distribution unit and an exception handling unit; The configuration unit is used to set the polling time interval and order; The verification unit is used to verify the data after polling to check the integrity and correctness of the data; The data distribution unit is used to store the processed data in the cache unit and distribute it to the designated transmission data channel; The exception handling unit is used to monitor the status and data transmission status in the channel, and perform exception handling when a fault is found.
10. A dual-channel polling playback system according to claim 9, characterized in that: The polling strategy also includes: The polling strategy is used to dynamically adjust the configuration unit according to the real-time and priority of the data, and monitor the data flow and priority distribution of each channel in real time; The polling strategy includes an error detection mechanism and a recovery mechanism.
Citation Information
Patent Citations
Multi-path monitor video management method and device
CN104915655A
Autonomous controllable and reliable multicast transmission method based on flow classification realization
CN105791054A
Video data processing method, video playing method and related equipment
CN112866750A
Video stream classification and scheduling system in SDN
CN113114573A
QUIC protocol-based multipath transmission method and 5G industrial gateway
CN117098240A