Dual-channel polling playback method and system

The network signal data is preprocessed and classified through the dual-channel polling playback method, and the data is processed using the dual-channel transmission and polling control modules, which solves the problems of low efficiency and lack of flexibility of the single-channel playback method, and achieves timely response to key information and stable reliability of the system.

CN119484408BActive Publication Date: 2025-09-30GUANGZHOU BAOLUN ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411458151.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-18
Publication Date
2025-09-30
Estimated Expiration
2044-10-18

AI Technical Summary

Technical Problem

The existing single-channel playback method cannot effectively classify and prioritize network signals in a distributed system, resulting in delayed processing of important data, waste of resources, low system efficiency, and difficulty in flexible expansion.

Method used

A dual-channel polling playback method is adopted to pre-process and classify network signal data through the target detection model, and two independent data transmission channels are used to transmit data. In addition, a polling control module is combined to handle fault anomalies, ensuring that key information is processed and transmitted first.

Benefits of technology

It improves data processing speed and efficiency, ensures timely response and transmission of key information, enhances system stability and reliability, avoids playback interruptions, and improves playback quality and user satisfaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119484408B_ABST
    Figure CN119484408B_ABST
Patent Text Reader

Abstract

The present invention proposes a dual-channel polling playback method and system, comprising: collecting multiple types of network signal data in a distributed device; preprocessing and classifying the collected network signal data using a target detection model; transmitting the classified data to a central node via two independent data transmission channels based on the real-time requirements and data volume of the network signal data; inputting the central node data into a polling control module, controlling the transmission data in the channel according to the polling strategy and performing fault and exception handling; and sending the processed data to a playback device for playback. The key to this invention lies in the design of the dual-channel architecture and polling control module, which aims to improve the efficiency and reliability of the distributed system when processing large amounts of network signals.
Need to check novelty before this filing date? Find Prior Art

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 signal playback typically utilizes a traditional single-channel approach. With the increasing complexity of distributed system applications and the continuous increase in data volume, this single-channel approach faces numerous challenges. A single channel cannot effectively classify and prioritize network signals from diverse sources and types. All data is transmitted and played in the same order, potentially delaying the processing of important data while unimportant data consumes significant processing resources and time, reducing overall system efficiency.

[0003] Currently, the architecture of single-channel playback is relatively fixed, making it difficult to flexibly expand and adjust according to actual application needs. When the system needs to add new data sources or functions, it often requires large-scale transformation and reconfiguration of the entire system, which not only increases cost and workload but also may affect the normal operation of the system. For example, in some large-scale distributed monitoring systems, video signals collected by multiple monitoring nodes need to be transmitted to a central node for processing and playback. Single-channel playback often leads to data transmission congestion, especially when multiple nodes send large amounts of data simultaneously, which is prone to delays, freezes, and even data loss. Moreover, there is a lack of effective classification processing and differentiated playback mechanisms for network signals of different types and priorities, making it impossible to ensure the priority display and real-time response of critical 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:

[0006] Collect various types of network signal data in distributed devices;

[0007] Use the target detection model to preprocess and classify the collected network signal data;

[0008] 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;

[0009] 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 anomalies;

[0010] The processed data is sent to the playback device for playback.

[0011] 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 improving the speed and efficiency of data processing. It is particularly suitable for application scenarios with high real-time requirements and can respond and process network signal data more promptly. The data is classified and prioritized, so that the system can allocate resources and process data more specifically, 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.

[0012] In a possible implementation method of the first aspect, preprocessing and classifying the collected network signal data using a target detection model includes:

[0013] The target detection model uses a target detection algorithm to identify target objects and key information in the data to obtain target detection results;

[0014] The target detection results are input into a data processing unit and classified according to network topology and data flow distribution.

[0015] 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 assigning 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, ensuring that key data is transmitted through the optimal path, reducing network congestion and improving bandwidth utilization.

[0016] In a possible implementation method of the first aspect, 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:

[0017] The data transmission channels are respectively provided with a cache unit;

[0018] 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.

[0019] The embodiments of the present application provide a data synchronization mechanism and a caching 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 the stability and reliability of the system. After a subsequent failure occurs, the solution can use the data synchronization mechanism to quickly restore the data status, re-include the channel in the polling sequence, and speed up the system's recovery to normal working mode.

[0020] 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:

[0021] The polling control module includes a configuration unit, a verification unit, a data distribution unit and an exception handling unit;

[0022] The configuration unit is used to set the polling interval and order;

[0023] The verification unit is used to verify the data after polling and check the integrity and correctness of the data;

[0024] The data distribution unit is used to store the processed data in the cache unit and distribute it to the designated transmission data channel;

[0025] 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;

[0026] The polling strategy is used to dynamically adjust the configuration unit according to the real-time nature and priority of the data, and monitor the data flow and priority distribution of each channel in real time;

[0027] The polling strategy also includes error detection and recovery mechanisms.

[0028] The embodiments of this application provide a polling mechanism, an error detection mechanism, and a recovery mechanism. The polling mechanism dynamically adjusts the polling interval and sequence based on the real-time nature and priority of the data. This solution can respond to changes in data traffic in real time, prioritize critical data, and thus improve the overall performance and response speed of the system. The error detection mechanism verifies the integrity and correctness of data blocks, promptly detecting and identifying erroneous data blocks. This mechanism ensures that only complete and correct data blocks are further processed, thereby improving the reliability of data transmission. The recovery mechanism effectively prevents the entire system from crashing due to a single channel failure, enhancing the system's stability and fault tolerance.

[0029] A second aspect of the embodiments of the present application provides a dual-channel polling playback system, including an acquisition module, a detection module, a classification module, a control module, and an output module:

[0030] The acquisition module is used to collect various types of network signal data in distributed devices;

[0031] The detection module is used to preprocess and classify the collected network signal data using the target detection model;

[0032] 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;

[0033] 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;

[0034] The output module is used to send the processed data to the playback device for playback.

[0035] 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 improving the speed and efficiency of data processing. It 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 specifically, 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.

[0036] In a possible implementation method of the second aspect, preprocessing and classifying the collected network signal data using a target detection model includes:

[0037] The target detection model uses a target detection algorithm to identify target objects and key information in the data to obtain target detection results;

[0038] The target detection results are input into a data processing unit and classified according to network topology and data flow distribution.

[0039] 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 assigning 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, ensuring that key data is transmitted through the optimal path, reducing network congestion and improving bandwidth utilization.

[0040] In a possible implementation method of the first aspect, 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:

[0041] The data transmission channels are respectively provided with a cache unit;

[0042] 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.

[0043] The embodiments of the present application provide a data synchronization mechanism and a caching 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 the stability and reliability of the system. After a subsequent failure occurs, the solution can use the data synchronization mechanism to quickly restore the data status, re-include the channel in the polling sequence, and speed up the system's recovery to normal working mode.

[0044] 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:

[0045] The polling control module includes a configuration unit, a verification unit, a data distribution unit and an exception handling unit;

[0046] The configuration unit is used to set the polling interval and order;

[0047] The verification unit is used to verify the data after polling and check the integrity and correctness of the data;

[0048] The data distribution unit is used to store the processed data in the cache unit and distribute it to the designated transmission data channel;

[0049] 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;

[0050] The polling strategy is used to dynamically adjust the configuration unit according to the real-time nature and priority of the data, and monitor the data flow and priority distribution of each channel in real time;

[0051] The polling strategy also includes error detection and recovery mechanisms.

[0052] The embodiments of this application provide a polling mechanism, an error detection mechanism, and a recovery mechanism. The polling mechanism dynamically adjusts the polling interval and sequence based on the real-time nature and priority of the data. This solution can respond to changes in data traffic in real time, prioritize critical data, and thus improve the overall performance and response speed of the system. The error detection mechanism verifies the integrity and correctness of data blocks, promptly detecting and identifying erroneous data blocks. This mechanism ensures that only complete and correct data blocks are further processed, thereby improving the reliability of data transmission. The recovery mechanism effectively prevents the entire system from crashing due to a single channel failure, enhancing the system's stability and fault tolerance. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for use in the implementation. Obviously, the drawings described below are only some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0054] Figure 1 This is a flowchart of a dual-channel polling playback method provided in an embodiment of the present application.

[0055] Figure 2 This is a flow chart of a polling control strategy in a dual-channel polling playback method provided in an embodiment of the present application.

[0056] Figure 3This is a system overall architecture diagram of a dual-channel polling playback system provided in a certain embodiment of the present application.

[0057] Figure 4 This is a structural diagram of a dual-channel polling playback system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0058] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely for the purpose of explaining 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 may be combined with each other as long as they do not conflict with each other. Example

[0059] 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:

[0060] Step S1: collecting various types of network signal data in distributed devices;

[0061] Step S2: Use the target detection model to preprocess and classify the collected network signal data;

[0062] Step S3: transmitting 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;

[0063] 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;

[0064] Step S5: Send the processed data to the playback device for playback.

[0065] 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 improving the speed and efficiency of data processing. It is particularly suitable for application scenarios with high real-time requirements and can respond and process network signal data more promptly. The data is classified and prioritized, so that the system can allocate resources and process data more specifically, 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.

[0066] Furthermore, in step S2, the collected network signal data is preprocessed and classified using the target detection model, including:

[0067] The target detection model uses the target detection algorithm to identify the target objects and key information in the data and obtain the target detection results;

[0068] The target detection results are input into a data processing unit and classified according to network topology and data flow distribution.

[0069] 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 assigning 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, ensuring that key data is transmitted through the optimal path, reducing network congestion and improving bandwidth utilization.

[0070] In a preferred embodiment, the object detection model preprocesses and classifies collected network signal data using the You Only Look Once 7 (YOLOv7) object detection algorithm. Leveraging the YOLOv7 model's powerful object detection capabilities, it quickly identifies target objects and key information in the data. For example, in video data, it can accurately detect key elements such as people, objects, and scenes; in sensor data, it can identify unusual data patterns and key events.

[0071] Furthermore, in step S3, the classified data is transmitted to the central node through two independent data transmission channels according to the real-time requirements and data volume of the network signal data, including:

[0072] The data transmission channels are respectively provided with a cache unit;

[0073] 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.

[0074] The embodiments of the present application provide a data synchronization mechanism and a caching 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 the stability and reliability of the system. After a subsequent failure occurs, the solution can use the data synchronization mechanism to quickly restore the data status, re-include the channel in the polling sequence, and speed up the system's recovery to normal working mode.

[0075] In a preferred embodiment, based on the detection results of the YOLOv7 model, the data processing unit classifies the data into different categories and adds corresponding labels and priority information to each data block. The classified data is queued according to its category and priority, awaiting transmission to the central node. Targeted preprocessing is also performed on different data categories. For example, key objects in video data can be individually encoded and optimized to improve the quality and efficiency of transmission and playback. The cache unit within the channel includes a data synchronization unit and a storage unit. A data synchronization mechanism is established between the two channels to ensure data consistency between the two channels. When data in one channel changes or is updated, the relevant information is promptly synchronized to the other channel to prevent playback errors or anomalies caused by data inconsistencies. For example, during video playback, if a frame in channel A is erroneous or lost, the data synchronization mechanism can retrieve the corresponding backup data block from channel B to replace it, ensuring playback continuity and accuracy. A cache unit is provided at both the receiving and playback ends of each channel to temporarily store data to be processed and played, to mitigate network fluctuations and data transmission delays. When a network failure or bandwidth shortage occurs, the player can read data from the cache unit to play, avoiding lags or interruptions. The cache unit also preloads and preprocesses data, improving processing and playback efficiency. Before playing a video, a certain length of video data is cached in the cache unit, decoded, and preprocessed. This pre-processed data can then be retrieved directly from the cache unit during playback, reducing playback delays.

[0076] 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:

[0077] The polling control module includes a configuration unit, a verification unit, a data distribution unit and an exception handling unit;

[0078] The configuration unit is used to set the polling interval and order;

[0079] The verification unit is used to verify the data after polling and check the integrity and correctness of the data;

[0080] The data distribution unit is used to store the processed data in the cache unit and distribute it to the designated transmission data channel;

[0081] 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;

[0082] The polling strategy is used to dynamically adjust the configuration unit according to the real-time nature and priority of the data, and monitor the data flow and priority distribution of each channel in real time;

[0083] The polling strategy also includes error detection and recovery mechanisms.

[0084] The embodiments of this application provide a polling mechanism, an error detection mechanism, and a recovery mechanism. The polling mechanism dynamically adjusts the polling interval and sequence based on the real-time nature and priority of the data. This solution can respond to changes in data traffic in real time, prioritize critical data, and thus improve the overall performance and response speed of the system. The error detection mechanism verifies the integrity and correctness of data blocks, promptly detecting and identifying erroneous data blocks. This mechanism ensures that only complete and correct data blocks are further processed, thereby improving the reliability of data transmission. The recovery mechanism effectively prevents the entire system from crashing due to a single channel failure, enhancing the system's stability and fault tolerance.

[0085] In a preferred embodiment, Figure 2As shown, 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 interval and sequence for channels A and B, starting with channel A. The initial polling interval is T1 (assuming T1 = 50ms), and the initial polling interval for channel B is T2 (assuming T2 = 100ms). The polling control module begins polling according to the set interval and sequence. When it is channel A's turn, it reads a data block from its data buffer. First, the verification unit verifies the integrity and correctness of the data block using techniques such as checksums and cyclic redundancy checks (CRCs). If the data block is correct, it is passed to the data processing unit for further processing.

[0086] like Figure 3 As shown in FIG, 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.

[0087] Between distributed nodes and the central node, data is rationally allocated to two channels for transmission based on network topology and data traffic distribution. Data with high real-time requirements (such as key images in video surveillance and emergency sensor data) can be allocated to Channel A, while data with relatively low real-time requirements but large data volumes (such as background image data and historical statistical data) can be allocated to Channel B.

[0088] The data processing unit performs corresponding processing operations based on the data block's tag and priority information. The data distribution unit may need to immediately analyze and respond to high-priority data; if critical behavior by a key individual is detected, an alarm or focused attention may be triggered immediately. The processed results can be stored and forwarded in the cache unit as needed, or distributed to designated playback devices by the distribution unit.

[0089] The polling control module continues to check whether there are any unprocessed data blocks in channel A's buffer. If so, it continues to read and process the next data block until channel A's buffer is empty or the polling time limit is reached. When channel A's polling is complete, it switches to channel B following the same process. It reads data blocks from channel B's data buffer, performs error detection, processing, and subsequent operations. The polling interval is T2.

[0090] The polling interval and order can be dynamically adjusted based on the real-time nature and priority of the data, monitoring the data flow and priority distribution of each channel in real time. If a large amount of high-priority data continuously appears on channel A, such as when multiple critical events are detected in a video surveillance video, the polling interval for channel A can be shortened. For example, T1 can be adjusted to 20ms to ensure that this high-priority data is processed and played more promptly. Conversely, if channel B experiences a sudden increase in data volume or network congestion, slowing its processing, the configuration unit can appropriately extend the polling interval for channel B, for example, by adjusting T2 to 150ms, to reduce the burden on channel B and avoid data backlogs and processing delays.

[0091] During the polling process, the channel status and data transmission are monitored in real time. If a serious fault is found in a channel, such as network connection interruption, high data transmission error rate, or hardware failure, the exception handling unit is immediately activated. The exception handling unit consists of a deactivation unit, a feedback unit, and a recovery unit.

[0092] After activation, the deactivation unit pauses the currently ongoing polling operation and marks unprocessed data as pending. The polling control module then automatically switches to another functioning channel to continue polling and data processing. If channel A fails, it quickly switches to channel B to ensure uninterrupted data processing and playback.

[0093] After switching to the backup channel, the feedback unit promptly notifies relevant modules and administrators for troubleshooting and repair. Simultaneously, the recovery unit utilizes data synchronization mechanisms to retrieve unprocessed data or related backup data from the failed channel from the normal channel to ensure data integrity and continuity. Once the failed channel is repaired, it is reinserted into the polling sequence to ensure the system can return to normal dual-channel operation. Example

[0094] Please refer to Figure 4 , a dual-channel polling playback system provided in an embodiment of the present application, including specifically:

[0095] Including acquisition module, detection module, classification module, control module and output module:

[0096] The acquisition module is used to collect various types of network signal data in distributed devices;

[0097] The detection module is used to preprocess and classify the collected network signal data using the target detection model;

[0098] 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;

[0099] 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;

[0100] The output module is used to send the processed data to the playback device for playback.

[0101] 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 improving the speed and efficiency of data processing. It 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 specifically, 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.

[0102] Furthermore, in the detection module, the target detection model is used to preprocess and classify the collected network signal data, including:

[0103] The target detection model uses the target detection algorithm to identify the target objects and key information in the data and obtain the target detection results;

[0104] The target detection results are input into a data processing unit and classified according to network topology and data flow distribution.

[0105] 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 assigning 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, ensuring that key data is transmitted through the optimal path, reducing network congestion and improving bandwidth utilization.

[0106] In a preferred embodiment, the object detection model preprocesses and classifies collected network signal data using the You Only Look Once 7 (YOLOv7) object detection algorithm. Leveraging the YOLOv7 model's powerful object detection capabilities, it quickly identifies target objects and key information in the data. For example, in video data, it can accurately detect key elements such as people, objects, and scenes; in sensor data, it can identify unusual data patterns and key events.

[0107] Furthermore, in the classification module, the classified data is transmitted to the central node through two independent data transmission channels according to the real-time requirements and data volume of the network signal data, including:

[0108] The data transmission channels are respectively provided with a cache unit;

[0109] 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.

[0110] The embodiments of the present application provide a data synchronization mechanism and a caching 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 the stability and reliability of the system. After a subsequent failure occurs, the solution can use the data synchronization mechanism to quickly restore the data status, re-include the channel in the polling sequence, and speed up the system's recovery to normal working mode.

[0111] In a preferred embodiment, based on the detection results of the YOLOv7 model, the data processing unit classifies the data into different categories and adds corresponding labels and priority information to each data block. The classified data is queued according to its category and priority, awaiting transmission to the central node. Targeted preprocessing is also performed on different data categories. For example, key objects in video data can be individually encoded and optimized to improve the quality and efficiency of transmission and playback. The cache unit within the channel includes a data synchronization unit and a storage unit. A data synchronization mechanism is established between the two channels to ensure data consistency between the two channels. When data in one channel changes or is updated, the relevant information is promptly synchronized to the other channel to prevent playback errors or anomalies caused by data inconsistencies. For example, during video playback, if a frame in channel A is erroneous or lost, the data synchronization mechanism can retrieve the corresponding backup data block from channel B to replace it, ensuring playback continuity and accuracy. A cache unit is provided at both the receiving and playback ends of each channel to temporarily store data to be processed and played, to mitigate network fluctuations and data transmission delays. When a network failure or bandwidth shortage occurs, the player can read data from the cache unit to play, avoiding lags or interruptions. The cache unit also preloads and preprocesses data, improving processing and playback efficiency. Before playing a video, a certain length of video data is cached in the cache unit, decoded, and preprocessed. This pre-processed data can then be retrieved directly from the cache unit during playback, reducing playback delays.

[0112] 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:

[0113] The polling control module includes a configuration unit, a verification unit, a data distribution unit and an exception handling unit;

[0114] The configuration unit is used to set the polling interval and order;

[0115] The verification unit is used to verify the data after polling and check the integrity and correctness of the data;

[0116] The data distribution unit is used to store the processed data in the cache unit and distribute it to the designated transmission data channel;

[0117] 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;

[0118] The polling strategy is used to dynamically adjust the configuration unit according to the real-time nature and priority of the data, and monitor the data flow and priority distribution of each channel in real time;

[0119] The polling strategy also includes error detection and recovery mechanisms.

[0120] The embodiments of this application provide a polling mechanism, an error detection mechanism, and a recovery mechanism. The polling mechanism dynamically adjusts the polling interval and sequence based on the real-time nature and priority of the data. This solution can respond to changes in data traffic in real time, prioritize critical data, and thus improve the overall performance and response speed of the system. The error detection mechanism verifies the integrity and correctness of data blocks, promptly detecting and identifying erroneous data blocks. This mechanism ensures that only complete and correct data blocks are further processed, thereby improving the reliability of data transmission. The recovery mechanism effectively prevents the entire system from crashing due to a single channel failure, enhancing the system's stability and fault tolerance.

[0121] In a preferred embodiment, Figure 2 As shown, 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 interval and sequence for channels A and B, starting with channel A. The initial polling interval is T1 (assuming T1 = 50ms), and the initial polling interval for channel B is T2 (assuming T2 = 100ms). The polling control module begins polling according to the set interval and sequence. When it is channel A's turn, it reads a data block from its data buffer. First, the verification unit verifies the integrity and correctness of the data block using techniques such as checksums and cyclic redundancy checks (CRCs). If the data block is correct, it is passed to the data processing unit for further processing.

[0122] like Figure 3 As shown in FIG, 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.

[0123] Between distributed nodes and the central node, data is rationally allocated to two channels for transmission based on network topology and data traffic distribution. Data with high real-time requirements (such as key images in video surveillance and emergency sensor data) can be allocated to Channel A, while data with relatively low real-time requirements but large data volumes (such as background image data and historical statistical data) can be allocated to Channel B.

[0124] The data processing unit performs corresponding processing operations based on the data block's tag and priority information. The data distribution unit may need to immediately analyze and respond to high-priority data; if critical behavior by a key individual is detected, an alarm or focused attention may be triggered immediately. The processed results can be stored and forwarded in the cache unit as needed, or distributed to designated playback devices by the distribution unit.

[0125] The polling control module continues to check whether there are any unprocessed data blocks in channel A's buffer. If so, it continues to read and process the next data block until channel A's buffer is empty or the polling time limit is reached. When channel A's polling is complete, it switches to channel B following the same process. It reads data blocks from channel B's data buffer, performs error detection, processing, and subsequent operations. The polling interval is T2.

[0126] The polling interval and order can be dynamically adjusted based on the real-time nature and priority of the data, monitoring the data flow and priority distribution of each channel in real time. If a large amount of high-priority data continuously appears on channel A, such as when multiple critical events are detected in a video surveillance video, the polling interval for channel A can be shortened. For example, T1 can be adjusted to 20ms to ensure that this high-priority data is processed and played more promptly. Conversely, if channel B experiences a sudden increase in data volume or network congestion, slowing its processing, the configuration unit can appropriately extend the polling interval for channel B, for example, by adjusting T2 to 150ms, to reduce the burden on channel B and avoid data backlogs and processing delays.

[0127] During the polling process, the channel status and data transmission are monitored in real time. If a serious fault is found in a channel, such as network connection interruption, high data transmission error rate, or hardware failure, the exception handling unit is immediately activated. The exception handling unit consists of a deactivation unit, a feedback unit, and a recovery unit.

[0128] After activation, the deactivation unit pauses the currently ongoing polling operation and marks unprocessed data as pending. The polling control module then automatically switches to another functioning channel to continue polling and data processing. If channel A fails, it quickly switches to channel B to ensure uninterrupted data processing and playback.

[0129] After switching to the backup channel, the feedback unit promptly notifies relevant modules and administrators for troubleshooting and repair. Simultaneously, the recovery unit utilizes data synchronization mechanisms to retrieve unprocessed data or related backup data from the failed channel from the normal channel to ensure data integrity and continuity. Once the failed channel is repaired, it is reinserted into the polling sequence to ensure the system can return to normal dual-channel operation.

[0130] The aforementioned dual-channel polling playback system can implement a dual-channel polling playback method of the aforementioned method embodiment. The optional options in the aforementioned method embodiment also apply to this embodiment and will not be described in detail here. The remaining contents of the embodiments of this application can refer to the contents of the aforementioned method embodiment, and in certain preferred embodiments, no further description will be given.

[0131] The above embodiments are merely descriptions of preferred embodiments 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 technicians in this field should fall within the scope of protection 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; Preprocessing and classifying the collected network signal data using a target detection model, wherein the target detection model uses the target detection algorithm YOLOv7 to identify target objects and key information in the data and obtain target detection results; inputting the target detection results into a data processing unit and classifying them according to the network topology and data traffic distribution; 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; 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; the polling strategy also includes: the polling strategy is used to dynamically adjust the polling time interval and sequence according to the real-time nature 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 faults and automatically switching to a backup channel; The processed data is sent to the playback device for playback.

2. A dual-channel polling playback method according to claim 1, characterized in that: The method of transmitting 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 includes: 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.

3. A dual-channel polling playback method according to claim 2, characterized in that: 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 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.

4. 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 a target detection model. The target detection model uses the target detection algorithm YOLOv7 to identify target objects and key information in the data and obtain target detection results. The target detection results are input into the data processing unit and classified according to the network topology and data traffic distribution. 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 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; the polling strategy also includes: the polling strategy is used to dynamically adjust the polling time interval and sequence according to the real-time nature 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 faults and automatically switching to a backup channel; The output module is used to send the processed data to the playback device for playback.

5. A dual-channel polling playback system according to claim 4, characterized in that: The classification module includes: 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.

6. A dual-channel polling playback system according to claim 5, characterized in that: The control module includes: 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.