Multi-thread driven communication centralized control method and system and electronic equipment
Through the multi-threaded communication centralized control method, the problems of chaotic task scheduling, unstable signal transmission and inaccurate terminal control in the prior art are solved, and efficient parallel processing, stability of signal transmission and accuracy of terminal control are achieved.
Patent Information
- Application Number
- CN202510609141.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-13
- Publication Date
- 2025-06-10
- Estimated Expiration
- 2045-05-13
AI Technical Summary
The existing communication centralized control methods have problems such as chaotic task scheduling, unstable signal transmission and inaccurate terminal control.
The multi-threaded communication centralized control method is adopted to receive communication instructions through the human-computer interface, and the multi-threaded scheduling module allocates task threads, queues, and generates communication audio source signals. After power amplification, the signal is injected into the communication line synchronously with the control signal, and is transmitted using a common cable carrier. After receiving the communication terminal, the audio and control commands are separated to perform terminal control and content broadcast.
It realizes efficient parallel processing of multi-tasks, high-quality and stable transmission of communication signals, and precise control of communication terminals.
Smart Images

Figure CN120128212A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of carrier transmission, and particularly to a multi-thread-driven communication centralized control method, system and electronic device. Background Art
[0002] In the field of communication centralized control, achieving efficient, accurate and flexible scheduling capabilities for communication transmission and terminal control is crucial for ensuring information interaction in various complex communication scenarios, directly affecting the overall performance and practicality of the communication system. At present, the main method to solve this problem is to adopt the traditional single-thread communication scheduling method, and use basic signal amplification and transmission equipment to achieve the transmission of communication signals and terminal control. However, due to the use of single-thread scheduling in the traditional method, it is difficult to handle multi-task concurrent processing. When facing complex communication tasks and the needs of multiple communication areas, the task queue is chaotic and the scheduling efficiency is low, resulting in a delay in the response of communication instructions and being unable to meet the needs of different areas and different priority communication tasks in a timely manner; and in the process of signal processing and transmission, the traditional method lacks targeted optimization of communication sound source signals and multi-threaded cooperative control, the signal transmission quality is unstable, and the terminal control instructions and communication audio are prone to confusion or loss, affecting the accurate broadcast of communication content and the precise control of terminal devices.
[0003] In the current related technologies, the communication centralized control method has technical problems such as chaotic task scheduling, unstable signal transmission and inaccurate terminal control. Summary of the Invention
[0004] The present application provides a multi-thread-driven communication centralized control method, system and electronic device. By receiving instructions containing communication content, area and priority information through a human-machine interface, the multi-thread scheduling module allocates task threads according to the instructions, queues them, and generates a communication sound source signal. When the task thread executes, after the sound source signal is power-amplified, it is synchronously injected into the line with the control signal by a carrier host and transmitted in the form of coaxial cable carrier. The communication terminal receives the coaxial cable signal, separates the communication audio and the control instructions containing area gating, terminal control and status feedback commands, and accordingly performs terminal control and content broadcast and other technical means, solving the technical problems of chaotic task scheduling, unstable signal transmission and inaccurate terminal control existing in the existing communication centralized control method, and achieving the technical effects of high-efficiency parallel processing of multiple tasks, high-quality and stable transmission of communication signals and precise control of communication terminals.
[0005] This application provides a multi-threaded driven communication centralized control method, including: receiving a communication instruction through a human-machine interface, where the communication instruction includes communication content, communication area, and priority information; performing task thread allocation and task queuing in a multi-threaded scheduling module according to the communication content, communication area, and priority information, and generating a communication sound source signal according to the selected communication area and communication content; when obtaining a task thread execution scheduling instruction based on the task queue, sending the communication sound source signal to a power amplification module for power amplification processing, and synchronously injecting the amplified communication sound source signal and a control signal into a communication line via a carrier host, and transmitting through the communication line in a coaxial cable carrier mode; a communication terminal receives the coaxial cable signal in the communication line, separates communication audio and control instructions from the coaxial cable signal, where the control instructions include area gating, terminal control, and status feedback commands, controls the communication terminal according to the control instructions, and broadcasts the communication content according to the communication audio.
[0006] In a possible implementation manner, when generating a communication sound source signal according to the selected communication area and communication content, the following processing is performed: obtaining an area terminal address code according to the communication area; generating terminal addressing information according to the area terminal address code; according to the mapping relationship between the communication content and the terminal addressing information, fitting the terminal addressing information into the communication content to generate the communication sound source signal.
[0007] In a possible implementation manner, when separating communication audio and control instructions from the coaxial cable signal, the following processing is performed: separating communication audio, terminal addressing information, and a control signal from the coaxial cable signal, where the terminal addressing information serves as an area gating instruction, and the control signal includes terminal control and status feedback commands; generating control instructions according to the area gating instruction, terminal control, and status feedback commands, where the area gating instruction is used to select a playback execution terminal within a selected area, the terminal control is used to adjust playback parameters of the communication terminal, and the status feedback command is used to control the communication terminal to monitor and feedback its own device communication status and fault characteristics.
[0008] In a possible implementation manner, when synchronously injecting the amplified communication sound source signal and a control signal into a communication line via a carrier host and transmitting through the communication line in a coaxial cable carrier mode, the following processing is performed: performing frequency analysis on the communication sound source signal and the control signal according to the signal physical layer frequency, where the audio signal is in a low frequency band and the control signal is in a high frequency band; performing physical layer signal compounding on the communication sound source signal and the control signal according to the signal frequency band and injecting them into the communication line.
[0009] In a possible implementation, according to the frequency band of the signal, the communication sound source signal and the control signal are combined into a physical layer signal and injected into the communication line, and the following processing is performed: a low-pass filter is used to protect the communication sound source signal from low-frequency interference, and a high-pass filter is used to isolate and protect the control signal from high-frequency interference; the isolated high-frequency signal is superimposed on the low-frequency signal line and injected into the communication line.
[0010] In a possible implementation, when using the coaxial cable carrier mode to transmit through the communication line, the following processing is also performed: identifying the risk level of the control signal; encrypting the control signal according to the risk level, and using the high-pass filter to isolate and protect the encrypted control signal.
[0011] In a possible implementation, when injecting into the communication line, the following processing is also performed: based on regional gating, configuring a carrier power supply, and coupling the regional gating instruction with the carrier power supply; protecting the coupled carrier signal through a filter and superimposing it on the communication line.
[0012] In a possible implementation, according to the communication content, communication area, and priority information, task thread allocation and task queuing are performed in the multi-threaded scheduling module, and the following processing is performed: adaptively adjusting the scale of the thread pool according to the real-time task traffic, and constructing a multi-threaded parallel structure; based on the communication content, communication area, and priority information, searching for a multi-task objective maximization scheme for the multi-threaded parallel structure, and establishing a parallel processing relationship between the multi-threads and the communication tasks.
[0013] This application also provides a multi-threaded-driven communication centralized control system, including: a communication instruction receiving module, used to receive communication instructions through a human-machine interface, and the communication instructions include communication content, communication area, and priority information; a communication sound source signal generation module, used to perform task thread allocation and task queuing in the multi-threaded scheduling module according to the communication content, communication area, and priority information, and generate a communication sound source signal according to the selected communication area and communication content; a transmission module, used to send the communication sound source signal to a power amplification module for power amplification processing when obtaining a task thread execution scheduling instruction based on task queuing, and synchronously injecting the amplified communication sound source signal and the control signal into the communication line through a carrier host, and transmitting through the communication line using the coaxial cable carrier mode; a signal separation module, used for the communication terminal to receive the coaxial cable signal in the communication line, separate the communication audio and the control instruction from the coaxial cable signal, where the control instruction includes area gating, terminal control, and status feedback commands, controlling the communication terminal according to the control instruction, and broadcasting the communication content according to the communication audio.
[0014] The present application also provides an electronic device, including: a memory for storing executable instructions; and a processor for implementing a multi-thread-driven communication centralized control method when executing the executable instructions stored in the memory.
[0015] It is intended to propose a multi-thread-driven communication centralized control method, system and electronic device through the present application. First, a communication instruction is received through a human-machine interface. The communication instruction includes communication content, communication area, and priority information. Then, task thread allocation and task queuing are performed in a multi-thread scheduling module according to the communication content, communication area, and priority information, and a communication sound source signal is generated according to the selected communication area and communication content. Next, when obtaining a task thread execution scheduling instruction based on the task queue, the communication sound source signal is sent to a power amplification module for power amplification processing, and the amplified communication sound source signal and a control signal are synchronously injected into a communication line through a carrier host, and are transmitted through the communication line in a coaxial cable carrier mode. Finally, a communication terminal receives the coaxial cable signal in the communication line, separates communication audio and control instructions from the coaxial cable signal, where the control instructions include area gating, terminal control, and status feedback commands, controls the communication terminal according to the control instructions, and broadcasts the communication content according to the communication audio. The technical effects of high-efficiency parallel processing of multiple tasks, high-quality and stable transmission of communication signals, and precise control of communication terminals are achieved. Description of the Drawings
[0016] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings of the embodiments of the present invention will be briefly introduced below. Flowcharts are used in the present application to illustrate the operations performed by the systems according to the embodiments of the present application. It should be understood that the operations before or below do not necessarily need to be executed precisely in sequence. On the contrary, according to needs, various steps can be executed in reverse order or simultaneously. At the same time, other operations can also be added to these processes, or one or several operations can be removed from these processes.
[0017] Figure 1 It is a schematic flowchart of a multi-thread-driven communication centralized control method provided by an embodiment of the present application.
[0018] Figure 2 It is a schematic structural diagram of a multi-thread-driven communication centralized control system provided by an embodiment of the present application.
[0019] Figure 3 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
[0020] Description of the reference numerals: communication instruction receiving module 10, communication sound source signal generating module 20, transmission module 30, signal separation module 40, input device 301, processor 302, memory 303, output device 304. Detailed Implementation Modes
[0021] The above description is only an overview of the technical solution of this application. In order to understand the technical means of this application more clearly, it can be implemented according to the content of the specification. And in order to make the above and other purposes, features and advantages of this application more obvious and understandable, the following specifically gives the detailed implementation modes of this application.
[0022] In order to make the purpose, technical solution and advantages of this application clearer, the following will further describe this application in detail with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
[0023] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments. However, it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict. The terms "including" and "having", and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product or server that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or modules that are not clearly listed or are inherent to these processes, methods, products or devices. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application.
[0024] The embodiments of this application provide a multi-thread-driven communication centralized control method, as Figure 1 shown, the method includes: Step S100, receiving a communication instruction through a human-machine interface, where the communication instruction includes communication content, a communication area, and priority information.
[0025] Specifically, the human-machine interface (HMI) is an interface for users to interact with the system, such as a touch screen, a keyboard, etc. Use a touch screen or a keyboard input device as the human-machine interface (HMI) to receive the communication instruction input by the user. The communication instruction includes communication content (such as voice, text or data), a communication area (such as a specific geographical area or a device group), and priority information (such as high, medium, and low priorities). The data acquisition module is used to convert the instruction input by the user into a digital signal and transmit it to the system main control module through a serial or parallel communication interface. For example, when the user inputs an "emergency broadcast" instruction through the touch screen, the touch screen controller converts the touch action into a digital signal and sends it to the main control module through the I2C interface.
[0026] Step S200: Allocate task threads and queue tasks in the multi-threaded scheduling module according to the communication content, communication area, and priority information, and generate a communication sound source signal according to the selected communication area and communication content.
[0027] Specifically, the multi-threaded scheduling module is a software module responsible for task allocation and thread management, running in the operating system kernel. The communication sound source signal refers to the audio signal to be transmitted, which can be voice, music, or other sounds. In the multi-threaded scheduling module, according to the priority information of the communication instruction, the tasks are sorted using a priority queue. Task thread allocation adopts the thread pool technology, where a certain number of worker threads are pre-created, and thread resources are dynamically allocated according to the priority and type of the task. For the generation of the communication sound source signal, according to the communication content, if it is a voice signal, the text is converted into voice through a voice synthesis module (such as TTS, Text-to-Speech); if it is a pre-recorded audio, the audio file is read from the storage module. For example, the system inserts tasks into the queue according to the instruction priority, high-priority tasks are preferentially allocated thread resources and inserted at the front of the task queue; for text content, the TTS module is used to convert it into a voice signal.
[0028] In a possible implementation, when allocating task threads and queueing tasks in the multi-threaded scheduling module according to the communication content, communication area, and priority information, step S200 further includes step S210: adaptively adjust the scale of the thread pool according to the real-time task traffic and construct a multi-threaded parallel structure. Specifically, the task scheduling module monitors the length of the current task queue and the task execution rate in real time to calculate the task traffic. According to the task traffic, the scale of the thread pool is dynamically adjusted. Among them, the thread pool is a form of multi-threaded processing, where a certain number of worker threads are pre-created. When a task arrives, it is directly assigned to a thread for execution. After the task is completed, the thread returns to the thread pool, avoiding frequent creation and destruction of threads. If the task traffic increases, the thread pool creates new threads; if the task traffic decreases, the thread pool reclaims the redundant threads. Using the thread pool technology, a certain number of worker threads are pre-created, and tasks are assigned to these threads to achieve multi-threaded parallel processing.
[0029] Step S220: Based on the communication content, communication area, and priority information, search for a multi-task objective maximization solution for the multi-thread parallel structure, and establish a parallel processing relationship between multi-threads and communication tasks. Specifically, classify the tasks according to the communication content, communication area, and priority information, and set priorities for each type of task. Use a multi-objective optimization algorithm (such as the multi-gradient descent algorithm MGDA) to maximize the execution efficiency of other tasks on the premise of ensuring that high-priority tasks are executed first. According to the priority and type of tasks, allocate the tasks to the threads in the thread pool, and implement the association between tasks and threads through callback functions.
[0030] In this implementation method, by real-time monitoring the task traffic and adaptively adjusting the scale of the thread pool, the system can dynamically allocate thread resources according to the current task load. When the task volume increases, the thread pool will automatically expand to create more threads to meet the demand; when the task volume decreases, the thread pool will recycle the redundant threads to avoid resource waste. This improves the utilization rate of system resources, ensures that the system can operate efficiently under high load, and reduces unnecessary resource consumption under low load. Moreover, the system can respond to task requests more quickly, improving the overall response speed and real-time performance. Through the search for a multi-task objective maximization solution, the system can dynamically adjust the task scheduling strategy according to the priority, communication content, and communication area of the tasks, ensuring that high-priority tasks are executed first while maximizing the execution efficiency of other tasks. This improves the rationality and efficiency of task scheduling and reduces task execution conflicts and waiting times.
[0031] In a possible implementation method, generate a communication sound source signal according to the selected communication area and communication content. Step S200 further includes step S230: obtain the area terminal address code according to the communication area. Specifically, the system queries the corresponding terminal address code from the area management database according to the selected communication area. Each communication area has a unique identifier, and the terminal address code is the set of unique addresses of all terminal devices in that area. The terminal address code is stored in the system database and can be quickly indexed through the area ID. For example, the set of terminal address codes for the area with area ID "Area_01" is {0x0001, 0x0002,..., 0x0010}. When the selected communication area is "Area_01", the system obtains the set of terminal address codes {0x0001, 0x0002,..., 0x0010} of this area from the database.
[0032] Step S240: Generate terminal addressing information based on the regional terminal address code. Specifically, the system generates terminal addressing information according to the obtained terminal address code. The addressing information is a control signal used to identify the target terminal device and contains the terminal address code and the addressing instruction. The addressing information can be generated by a specific coding method, such as Manchester coding or differential coding, to ensure the reliable transmission of the signal. For example, for the terminal address code 0x0001, the generated addressing information is "ADDR:0x0001,CMD:SELECT".
[0033] Step S250: Fit the terminal addressing information into the communication content as an addressing control signal according to the mapping relationship between the communication content and the terminal addressing information, and generate the communication sound source signal. Specifically, the system associates the terminal addressing information with the communication content according to the preset mapping rule. For example, when the communication content is a voice broadcast, the addressing information is used to specify which terminal devices need to receive the broadcast. The addressing signal is combined with the audio signal through modulation techniques (such as frequency modulation or amplitude modulation), or the addressing signal is inserted at specific time intervals of the audio signal to embed the addressing control signal into the communication sound source signal. For example, if the communication content is a voice broadcast, the system embeds the addressing signal "ADDR:0x0001,CMD:SELECT" at the beginning of the voice signal to generate the complete communication sound source signal.
[0034] In this implementation method, by obtaining the regional terminal address code and generating the addressing information, the system can accurately locate the target terminal device, ensuring that the communication content is only received by the specified terminals, and improving the communication efficiency and security of the system. Fitting the addressing control signal into the communication sound source signal enables the system to transmit the audio content and control instructions simultaneously in the same signal channel. This integration reduces the complexity and latency of signal transmission and improves the overall performance of the system. By establishing the mapping relationship, the system can flexibly adjust the association between the communication content and the terminal devices. When adding new terminal devices or adjusting the communication area, only the address code and the mapping relationship need to be updated, without making large-scale changes to the entire system. Through accurate addressing and signal integration, the system can effectively reduce communication failures caused by signal conflicts or incorrect addressing. At the same time, the embedding of the addressing information enables the system to quickly detect and correct errors, improving the reliability of the system.
[0035] Step S300: When obtaining the task thread execution scheduling instruction based on the task queue, send the communication sound source signal to the power amplification module for power amplification processing, and synchronously inject the amplified communication sound source signal and the control signal into the communication line via the carrier host, and transmit it through the communication line in the coaxial cable carrier mode.
[0036] Specifically, the power amplification module is a hardware module used to amplify the signal power, enabling the signal to be effectively transmitted on the transmission line. The generated communication audio source signal is sent to the power amplification module, and a power amplifier (such as a class D amplifier) is used to amplify the signal to meet the transmission requirements. The amplified communication audio source signal and the control signal (such as area strobe instruction, terminal control instruction) are modulated by a modulator, and modulated onto the carrier signal. The carrier host (a device used to modulate the signal onto the carrier and inject it into the communication line) injects the modulated signal into the communication line and transmits it using the coaxial cable carrier method, that is, the audio signal and the control signal are transmitted simultaneously on the same cable. For example, the control signal can adopt digital modulation methods (such as PSK, phase shift keying), and the communication audio source signal can adopt analog modulation methods (such as AM, amplitude modulation).
[0037] In a possible implementation, the amplified communication audio source signal and the control signal are synchronously injected into the communication line via the carrier host and transmitted through the communication line using the coaxial cable carrier method. Step S300 further includes step S310, where the communication audio source signal and the control signal are frequency-analyzed according to the signal physical layer frequency, where the audio signal is in the low frequency band and the control signal is in the high frequency band. Specifically, according to the frequency characteristics of the signal physical layer, the communication audio source signal is allocated to the low frequency band, and the control signal is allocated to the high frequency band. For example, the audio signal is in the low frequency band from 20 Hz to 20 kHz, and the control signal is in the high frequency band from 100 kHz to 500 kHz. A band-pass filter and a band-stop filter are used to perform frequency analysis on the signal. The band-pass filter is used to extract signals in a specific frequency band, and the band-stop filter is used to suppress signals in other frequency bands.
[0038] For example, for the audio signal, a band-pass filter with a passband range from 20 Hz to 20 kHz is used; for the control signal, another band-pass filter with a passband range from 100 kHz to 500 kHz is used. Through these two filters, the audio signal and the control signal can be extracted separately.
[0039] Step S320, according to the frequency band where the signal is located, the communication audio source signal and the control signal are combined into a physical layer signal and injected into the communication line. Specifically, the analyzed audio signal and control signal are combined through physical layer signal combination technology, and the control signal is modulated onto a high-frequency carrier using modulation technology (such as AM or FM), and then superimposed on the audio signal. The combined signal is injected into the communication line through the carrier host. The carrier host is responsible for modulating the signal to an appropriate carrier frequency and amplifying it to sufficient power through a power amplifier for effective transmission on the communication line.
[0040] For example, the audio signal is amplitude-modulated onto a low-frequency carrier wave, and the control signal is frequency-modulated onto a high-frequency carrier wave. Then, these two modulated signals are combined together through a combiner and finally injected into the communication line through the carrier host.
[0041] This implementation method distributes the audio signal and the control signal to different frequency bands through frequency analysis, avoiding mutual interference between signals. The audio signal remains in the low-frequency band, and the control signal remains in the high-frequency band, ensuring the purity and integrity of the signals. Through the physical layer signal combination technology, the audio signal and the control signal are combined into the same communication line, reducing the occupancy of line resources and improving the transmission efficiency of the system. Through frequency allocation and signal combination technology, the system can be easily extended to more signal types and frequency bands. If a new control signal needs to be added, only a new high-frequency band needs to be allocated to it and it is added to the combined signal during the signal combination stage, without large-scale modification of the entire system.
[0042] In a possible implementation method, according to the frequency band where the signal is located, the communication sound source signal and the control signal are combined at the physical layer and injected into the communication line. Step S320 further includes step S321 of using a low-pass filter to perform low-frequency protection on the communication sound source signal and using a high-pass filter to perform high-frequency protection isolation on the control signal. Specifically, a low-pass filter (Low-Pass Filter, LPF) is used to protect the communication sound source signal to ensure that its frequency range remains in the low-frequency band (such as 20 Hz to 20 kHz). The low-pass filter blocks signal components higher than a specific cut-off frequency, thus preventing high-frequency interference from entering the audio signal frequency band. A high-pass filter (High-Pass Filter, HPF) is used to protect the control signal to ensure that its frequency range remains in the high-frequency band (such as 100 kHz to 500 kHz). The high-pass filter blocks signal components lower than a specific cut-off frequency, thus preventing low-frequency signals from interfering with the control signal.
[0043] For example, for the audio signal, a low-pass filter with a cut-off frequency of 25 kHz is used to ensure that all signal components higher than 25 kHz are filtered out; for the control signal, a high-pass filter with a cut-off frequency of 75 kHz is used to ensure that all signal components lower than 75 kHz are filtered out.
[0044] Step S322: Superimpose the isolated high-frequency signal onto the low-frequency signal line and inject it into the communication line. Specifically, superimpose the high-frequency control signal isolated by the high-pass filter and the low-frequency audio signal protected by the low-pass filter, which can be achieved through a simple circuit design, such as using a signal combiner. Inject the superimposed signal into the communication line through the carrier host. The carrier host is responsible for modulating the signal to an appropriate carrier frequency and amplifying it to sufficient power through a power amplifier for effective transmission on the communication line.
[0045] For example, after the high-frequency control signal and the low-frequency audio signal are superimposed through the signal combiner, a composite signal is formed. This composite signal is injected into the communication line through the carrier host to achieve coaxial cable transmission.
[0046] This implementation method isolates and protects the signals through the low-pass filter and the high-pass filter, ensuring the pure transmission of the audio signal and the control signal within their respective frequency bands and avoiding mutual interference between the signals. When the audio signal is transmitted in the low-frequency band, it will not be interfered by the high-frequency control signal, thus ensuring the quality of the audio; when the control signal is transmitted in the high-frequency band, it will not be interfered by the low-frequency audio signal, ensuring the accuracy and reliability of the control instructions.
[0047] In a possible implementation, when using the coaxial cable carrier method for transmission through the communication line, step S300 further includes step S330: identify the risk level of the control signal. Specifically, a risk assessment module is set in the system to analyze and identify the risk level of the control signal. The risk level can be determined according to the type of the signal, the priority, the security of the transmission path, and the sensitivity of the signal content. The risk level can be divided into low risk, medium risk, and high risk. For example, high-risk signals contain critical control instructions or sensitive information, and low-risk signals only contain ordinary status information.
[0048] For example, for a control signal containing an emergency shutdown instruction, the system identifies it as a high-risk signal; while for a signal containing the device temperature status, the system identifies it as a low-risk signal.
[0049] Step S340, encrypt the control signal according to the risk level, and use the high-pass filter to perform high-frequency protection isolation on the encrypted control signal. Specifically, select an appropriate encryption algorithm according to the risk level of the control signal. For example, for high-risk signals, a strong encryption algorithm (such as AES-256) can be used; for low-risk signals, a simpler encryption algorithm (such as AES-128) can be used. Use an encryption module to encrypt the control signal. The encryption module converts the plaintext signal into a ciphertext signal to ensure that the signal cannot be illegally intercepted or tampered with during transmission. The encrypted control signal is subjected to high-frequency protection isolation through a high-pass filter. The high-pass filter ensures that the encrypted signal is transmitted only in the high-frequency band to avoid interference in the low-frequency band.
[0050] For example, for a high-risk control signal, the system uses the AES-256 encryption algorithm to encrypt it, and then performs high-frequency protection isolation through a high-pass filter with a cut-off frequency of 75 kHz to ensure that the signal is transmitted in the frequency band of 100 kHz to 500 kHz.
[0051] This implementation method can effectively prevent sensitive information from being illegally intercepted or tampered with by identifying the risk level of the control signal and encrypting it. The use of a strong encryption algorithm for high-risk signals ensures the security of the signal.
[0052] In a possible implementation, when injecting into the communication line, step S322 further includes step S3221, based on area gating, configure the carrier power supply, and couple the area gating instruction with the carrier power supply. Specifically, the system determines the communication area to be activated according to the area gating information in the communication instruction. Each area has an independent carrier power supply module responsible for providing power to the communication line in that area. Couple the area gating instruction with the carrier power supply. When the system needs to activate a certain area, send an area gating instruction and start the carrier power supply in that area at the same time; when it is necessary to close a certain area, send a closing instruction and cut off the carrier power supply in that area at the same time.
[0053] For example, when the system needs to activate Area A, the system will send an instruction of "Area A gated" and start the carrier power supply of Area A; when it is necessary to close Area A, the system will send an instruction of "Area A closed" and cut off the carrier power supply of Area A.
[0054] Step S3222, protect the coupled carrier signal through a filter and superimpose it on the communication line. Specifically, before injecting the coupled carrier signal into the communication line, use a filter to protect the signal. The function of the filter is to ensure that the coupled carrier signal is not interfered by signals in other frequency bands during transmission, and at the same time prevent the carrier power signal from interfering with other signals (such as audio signals and control signals). The coupled carrier signal after being protected by the filter, together with the audio signal and the control signal, is superimposed on the communication line through a signal combiner to ensure that all signals can coexist on the same communication line without interfering with each other.
[0055] In this implementation method, only the selected area needs to be powered, and the carrier power supply of the unselected area is disconnected, reducing line loss and energy waste. When a fault (such as a short circuit) occurs in a certain area, only the power supply of that area is affected, and other areas are not affected. In an emergency, the carrier power supply of the specified area can be quickly isolated or cut off to control the broadcast range. At the same time, in coaxial cable transmission, the audio signal, control signal, and carrier power signal are superimposed through a signal combiner to form a composite signal, which is transmitted through the same communication line, reducing the number of lines and wiring costs.
[0056] Step S400, the communication terminal receives the coaxial cable signal in the communication line and separates the communication audio and control instructions from the coaxial cable signal. Among them, the control instructions include area selection, terminal control, and status feedback commands. The communication terminal is controlled according to the control instructions, and the communication content is broadcast according to the communication audio.
[0057] Specifically, the communication terminal is a device for receiving and processing signals, such as a broadcast terminal, a monitoring terminal, etc.
[0058] The communication terminal receives the coaxial cable signal from the communication line through a receiver (Receiver). Use a demodulator (Demodulator) to demodulate the received signal and separate the communication audio signal and the control instruction. Among them, the control instruction is a command used to control the operation of the terminal device, such as area selection, terminal control, etc. According to the control instruction, the communication terminal performs corresponding operations, including area selection (turning on or off devices in a specific area), terminal control (adjusting the volume, switching channels, etc.), and status feedback (sending terminal status information back to the main control module). For example, the terminal device can use a microcontroller (such as STM32) to parse the control instruction and control peripheral devices through the GPIO interface. The communication terminal receives the coaxial cable signal, and the demodulator separates the audio and control instructions; the terminal performs operations according to the control instructions, such as turning on the broadcast device in a specific area.
[0059] In a possible implementation, communication audio and control instructions are separated from the coaxial cable signal. Step S400 further includes step S410 of separating communication audio, terminal addressing information, and control signals from the coaxial cable signal, where the terminal addressing information serves as a regional gating instruction, and the control signal includes terminal control and status feedback commands. Specifically, the communication terminal is equipped with a signal separation module for separating communication audio, terminal addressing information, and control signals from the coaxial cable signal. This module includes multiple filters and demodulators to ensure accurate separation of signals in different frequency bands. Among them, a low-pass filter (LPF) is used to extract the communication audio signal in the low-frequency band (such as 20 Hz to 20 kHz), a band-pass filter (BPF) is used to extract the terminal addressing information in the middle-frequency band (such as 30 kHz to 50 kHz), and a high-pass filter (HPF) is used to extract the control signal in the high-frequency band (such as 100 kHz to 500 kHz). The demodulator demodulates the extracted signal to restore the original digital or analog signal.
[0060] For example, assume that the coaxial cable signal contains an audio signal (20 Hz to 20 kHz), terminal addressing information (30 kHz to 50 kHz), and a control signal (100 kHz to 500 kHz). The system uses a low-pass filter to extract the audio signal, a band-pass filter to extract the terminal addressing information, and a high-pass filter to extract the control signal.
[0061] Step S420: Generate control instructions based on the regional gating instruction, terminal control, and status feedback command. The regional gating instruction is used to select the playback execution terminal within the selected area. The terminal control is used to regulate the playback adjustment parameters of the communication terminal. The status feedback command is used to control the communication terminal to monitor and feedback its own device communication status and fault characteristics. Specifically, the communication terminal is equipped with an instruction parsing module for parsing the separated terminal addressing information, terminal control, and status feedback command. The regional gating instruction is used to select the playback execution terminal within the selected area. The terminal device determines whether it belongs to the selected area based on the terminal addressing information. The terminal control is used to regulate the playback adjustment parameters of the communication terminal, such as volume adjustment, channel switching, etc. The status feedback command is used to control the communication terminal to monitor and feedback its own device communication status and fault characteristics, such as device status, fault codes, etc.
[0062] For example, after receiving the terminal addressing information, the terminal device determines whether its own address matches the gating instruction. If it matches, it executes the terminal control instruction, such as adjusting the volume. At the same time, according to the status feedback command, the terminal device will monitor its own status and feedback information.
[0063] This implementation uses the terminal addressing information as the regional gating instruction. The system can accurately control the terminal devices in a specific area to ensure that only the devices in the target area execute the relevant instructions. The terminal control instructions allow the playback adjustment parameters of the terminal devices to be finely adjusted, which improves the flexibility of the system and user experience. The status feedback command enables the terminal device to monitor its own status in real time and return the status information to the system, so as to facilitate the timely detection and handling of faults. Through precise regional control, flexible terminal control and real-time status monitoring, the system can operate more efficiently, reduce the risk of failure, and improve maintenance efficiency.
[0064] The embodiment of the present application adopts a method of receiving instructions containing communication content, area, and priority information through a human-machine interface. The multi-thread scheduling module allocates task threads and queues according to the instructions, and generates communication audio source signals. When the task thread is executed, the audio source signal is amplified and injected into the line synchronously with the control signal by the carrier host, and transmitted in a common cable carrier manner. The communication terminal receives the common cable signal, separates the communication audio and the control instructions containing area selection, terminal control, and status feedback commands, and performs terminal control and content broadcasting respectively based on these technical means, which solves the technical problems of chaotic task scheduling, unstable signal transmission, and inaccurate terminal control in the existing communication centralized control method, and achieves the technical effects of efficient parallel processing of multiple tasks, high-quality and stable transmission of communication signals, and precise control of communication terminals.
[0065] In the above, refer to Figure 1 A multi-threaded communication centralized control method according to an embodiment of the present invention is described in detail. Figure 2 A multi-thread driven communication centralized control system according to an embodiment of the present invention is described.
[0066] A multi-threaded communication centralized control system according to an embodiment of the present invention is used to solve the technical problems of chaotic task scheduling, unstable signal transmission and inaccurate terminal control in existing communication centralized control methods, and achieve the technical effects of efficient parallel processing of multiple tasks, high-quality and stable transmission of communication signals and precise control of communication terminals. A multi-threaded communication centralized control system includes: a communication instruction receiving module 10, a communication sound source signal generating module 20, a transmission module 30, and a signal separation module 40.
[0067] The communication instruction receiving module 10 is used to receive communication instructions through the human-machine interface. The communication instructions include communication content, communication area, and priority information. The communication sound source signal generation module 20 is used to perform task thread allocation and task queuing in the multi-threaded scheduling module according to the communication content, communication area, and priority information, and generate a communication sound source signal according to the selected communication area and communication content. The transmission module 30 is used to send the communication sound source signal to the power amplification module for power amplification processing when obtaining the task thread execution scheduling instruction based on the task queue, and synchronously inject the amplified communication sound source signal and the control signal into the communication line through the carrier host, and transmit it through the communication line in the coaxial cable carrier mode. The signal separation module 40 is used for the communication terminal to receive the coaxial cable signal in the communication line and separate the communication audio and control instructions from the coaxial cable signal. Among them, the control instructions include area selection, terminal control, and status feedback commands. The communication terminal is controlled according to the control instructions, and the communication content is broadcast according to the communication audio.
[0068] Next, the specific configuration of the communication sound source signal generation module 20 will be described in detail. As described above, a communication sound source signal is generated according to the selected communication area and communication content. The communication sound source signal generation module 20 may further include: an area terminal address code acquisition unit for acquiring an area terminal address code according to the communication area; a terminal addressing information generation unit for generating terminal addressing information according to the area terminal address code; and a communication sound source signal generation unit for fitting the terminal addressing information into the communication content according to the mapping relationship between the communication content and the terminal addressing information to generate the communication sound source signal.
[0069] Next, the specific configuration of the signal separation module 40 will be described in detail. As described above, the communication audio and control instructions are separated from the coaxial cable signal. The signal separation module 40 may further include: a signal separation unit for separating communication audio, terminal addressing information, and control signals from the coaxial cable signal, where the terminal addressing information is used as an area selection instruction, and the control signals include terminal control and status feedback commands; a control instruction generation unit for generating control instructions according to the area selection instruction, terminal control, and status feedback commands. Among them, the area selection instruction is used to select the playback execution terminal within the area range, the terminal control is used to adjust the playback parameters of the communication terminal, and the status feedback command is used to control the communication terminal to monitor and feedback its own device communication status and fault characteristics.
[0070] Next, the specific configuration of the transmission module 30 will be described in detail. As described above, the amplified communication sound source signal and the control signal are synchronously injected into the communication line via the carrier host, and are transmitted through the communication line in the coaxial cable carrier mode. The transmission module 30 may further include: a frequency analysis unit for analyzing the frequencies of the communication sound source signal and the control signal according to the signal physical layer frequency, where the audio signal is in the low frequency band and the control signal is in the high frequency band; a physical layer signal composite unit for composite the communication sound source signal and the control signal into a physical layer signal according to the signal frequency band and inject it into the communication line.
[0071] Among them, according to the signal frequency band, the communication sound source signal and the control signal are composite into a physical layer signal and injected into the communication line. The physical layer signal composite unit may further include: a protection subunit for performing low-frequency protection on the communication sound source signal using a low-pass filter and performing high-frequency protection isolation on the control signal using a high-pass filter; a signal superposition subunit for superimposing the isolated high-frequency signal on the low-frequency signal line and injecting it into the communication line.
[0072] Among them, when transmitting through the communication line in the coaxial cable carrier mode, the transmission module 30 may further include: a risk level identification unit for identifying the risk level of the control signal; an encryption processing unit for encrypting the control signal according to the risk level and performing high-frequency protection isolation on the encrypted control signal using the high-pass filter.
[0073] Among them, when injecting into the communication line, the signal superposition subunit may further include: a coupling component for configuring a carrier power supply based on area gating and coupling the area gating instruction with the carrier power supply; a superposition component for protecting the coupled carrier signal through a filter and superimposing it on the communication line.
[0074] Among them, according to the communication content, communication area, and priority information, task thread allocation and task queuing are performed in the multi-threaded scheduling module. The communication sound source signal generation module 20 may further include: a multi-threaded parallel structure construction unit for adaptively adjusting the thread pool size according to the real-time task traffic and constructing a multi-threaded parallel structure; a solution search unit for searching for a multi-task objective maximization solution for the multi-threaded parallel structure based on the communication content, communication area, and priority information, and establishing a parallel processing relationship between the multi-threads and the communication tasks.
[0075] A multi-threaded driven communication centralized control system provided by an embodiment of the present invention can execute a multi-threaded driven communication centralized control method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0076] Although this application makes various references to certain modules in the system according to embodiments of this application, however, any number of different modules can be used and run on user terminals and / or servers. The various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing from each other and are not used to limit the protection scope of the present invention.
[0077] Based on the foregoing embodiments, an embodiment of this application further provides an electronic device. Figure 3 It is a schematic structural diagram of the electronic device provided by the embodiment of the present invention, showing a block diagram of an exemplary electronic device suitable for implementing the embodiment of the present invention. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and usage scope of the embodiments of the present invention. The electronic device is presented in the form of a general computing device, and its components may include but are not limited to an input device 301, a processor 302, a memory 303, and an output device 304. Among them, the processor 302 can be one or more; the memory 303 can include a computer-readable medium and at least one program product, and this program product has a set (at least one) of program modules, and these program modules are configured to execute the functions of the embodiments of this application.
[0078] The memory 303 shown in the embodiments of the present invention can adopt any combination of one or more computer-readable media; the computer-readable storage medium can be but is not limited to infrared rays, semiconductor systems, devices or components, or any combination of the above, for storing software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to a multi-threaded driven communication centralized control method in the embodiments of the present invention. The processor 302 executes various functional applications and data processing of the computer device by running the software programs, instructions, and modules stored in the memory 303, that is, to implement the above-mentioned multi-threaded driven communication centralized control method.
[0079] The above specific implementation manners do not constitute a limitation to the protection scope of this application. Those skilled in the art should understand that various modifications, combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principle of this application should be included within the protection scope of this application. In some cases, the actions or steps recorded in this application can be executed in a different order from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In certain embodiments, multi-tasking and parallel processing are also possible or may be advantageous.
Claims
1. A multi-threaded driven communication centralized control method, characterized in that: include: receiving a communication instruction through a human-machine interface, wherein the communication instruction includes communication content, communication area, and priority information; According to the communication content, communication area, and priority information, task thread allocation and task queuing are performed in a multi-thread scheduling module, and a communication audio source signal is generated according to the selected communication area and communication content; When the task thread executes the scheduling instruction based on the task queue, the communication sound source signal is sent to the power amplification module for power amplification processing, and the amplified communication sound source signal and the control signal are synchronously injected into the communication line through the carrier host, and transmitted through the communication line in a common cable carrier mode; The communication terminal receives the common cable signal in the communication line, separates the communication audio and control instructions from the common cable signal, wherein the control instructions include area selection, terminal control, and status feedback commands, controls the communication terminal according to the control instructions, and broadcasts the communication content according to the communication audio.
2. The multi-thread driven communication centralized control method according to claim 1, characterized in that: Generate communication audio source signals according to the selected communication area and communication content, including: According to the communication area, obtaining the regional terminal address code; Generating terminal addressing information according to the regional terminal address code; According to the mapping relationship between the communication content and the terminal addressing information, the addressing control signal generated by the terminal addressing information is fitted into the communication content to generate the communication audio source signal.
3. The multi-thread driven communication centralized control method according to claim 2, characterized in that: Separating the communication audio and the control command from the common cable signal includes: Separating communication audio, terminal addressing information, and control signals from the common cable signal, wherein the terminal addressing information is used as a regional selection instruction, and the control signal includes terminal control and status feedback commands; A control instruction is generated according to the area selection instruction, terminal control, and status feedback command, wherein the area selection instruction is used to select a playback execution terminal within a selected area, the terminal control is used to adjust the playback adjustment parameters of the communication terminal, and the status feedback command is used to control the communication terminal to monitor and feedback the communication status and fault characteristics of its own equipment.
4. The multi-thread driven communication centralized control method according to claim 1, characterized in that: The amplified communication audio source signal and the control signal are synchronously injected into the communication line through the carrier host, and transmitted through the communication line using a common cable carrier, including: According to the signal physical layer frequency, the communication audio source signal and the control signal are frequency analyzed, wherein the audio signal is in the low frequency band and the control signal is in the high frequency band; According to the frequency band of the signal, the communication audio source signal and the control signal are combined into physical layer signals and injected into the communication line.
5. The multi-thread driven communication centralized control method according to claim 4, characterized in that: According to the frequency band of the signal, the communication audio source signal and the control signal are combined into a physical layer signal and injected into the communication line, including: Use low-pass filters to protect the communication audio source signal at low frequencies, and use high-pass filters to isolate the control signal at high frequencies; The isolated high-frequency signal is superimposed on the low-frequency signal line and injected into the communication line.
6. The multi-thread driven communication centralized control method according to claim 5, characterized in that: The transmission is carried out through the communication line by means of a common cable carrier, and also includes: identifying a risk level of the control signal; The control signal is encrypted according to the risk level, and the encrypted control signal is isolated for high frequency protection by using the high-pass filter.
7. The multi-thread driven communication centralized control method according to claim 5, characterized in that: Injecting into the communication line also includes: Based on the regional gating, the carrier power supply is configured, and the regional gating instruction is coupled with the carrier power supply; The coupled carrier signal is protected by a filter and superimposed on the communication line.
8. The multi-thread driven communication centralized control method according to claim 1, characterized in that: According to the communication content, communication area, and priority information, task thread allocation and task queuing are performed in a multi-thread scheduling module, including: Adaptively adjust the thread pool size according to real-time task traffic and build a multi-threaded parallel structure; Based on the communication content, communication area, and priority information, a multi-task target maximization solution search is performed on the multi-threaded parallel structure to establish a parallel processing relationship between multi-threading and communication tasks.
9. A multi-threaded communication centralized control system, characterized in that: The system is used to implement a multi-threaded driven communication centralized control method according to any one of claims 1 to 8, and the system comprises: A communication instruction receiving module, used to receive communication instructions through a human-machine interface, wherein the communication instructions include communication content, communication area, and priority information; A communication audio source signal generating module, used to perform task thread allocation and task queuing in a multithread scheduling module according to the communication content, communication area, and priority information, and to generate a communication audio source signal according to the selected communication area and communication content; A transmission module is used to send the communication audio source signal to the power amplification module for power amplification processing when obtaining the task thread execution scheduling instruction based on the task queue, and synchronously inject the amplified communication audio source signal and the control signal into the communication line through the carrier host, and transmit through the communication line in a common cable carrier mode; The signal separation module is used for the communication terminal to receive the common cable signal in the communication line, separate the communication audio and control instructions from the common cable signal, wherein the control instructions include area selection, terminal control, and status feedback commands, and the communication terminal is controlled according to the control instructions, and the communication content is broadcast according to the communication audio.
10. An electronic device, characterized in that: The electronic device comprises: A memory for storing executable instructions; The processor is used to implement the multi-threaded driven communication centralized control method described in any one of claims 1 to 8 when executing the executable instructions stored in the memory.
Citation Information
Patent Citations
Thread scheduling method and electronic equipment
CN118363719A
Task processing method and system based on multi-thread fusion management
CN119105848A
Task scheduling method, apparatus, electronic device and storage medium
US20200073710A1
Cited By
Real-time digital voice intercom system based on industrial field bus
CN121509403A
A real-time digital voice intercom system based on industrial fieldbus
CN121509403B