Wireless relay control method based on software definition and inter-frequency dual channel

CN122993737APending Publication Date: 2026-10-27BEIJING SIDA RUIKANG TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611473913.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-21
Publication Date
2026-10-27

AI Technical Summary

Technical Problem

[0004]本发明实施例的目的是提供一种基于软件定义和异频双信道的无线中继控制方法,通过软件指令动态配置电台的工作模式并结合异频双信道中继机制,提高了网络灵活性与中继传输效率,解决了设备类型固化导致的系统复杂及传统时分中继效率低下、跳数受限的问题

Benefits of technology

1. 通过采用软件定义模式切换与异频双信道架构,打破了传统中继网络中设备功能固化的限制,使得任何一部硬件同构的电台均可根据需要被动态配置为业务台或中继台;不仅大幅降低了设备种类和系统复杂度,还通过精心设计的异频双工转发链路,从根本上避免了同频干扰,使得中继传输效率稳定在较高水平(理论效率接近1/2而非传统时分的1/n),并实现了理论上不受跳数限制的网络延伸能力,从而在复杂地理环境下能够灵活、低成本地构建大范围覆盖的通信网络;

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122993737A_ABST
    Figure CN122993737A_ABST
Patent Text Reader

Abstract

The application discloses a wireless relay control method based on software definition and frequency-different dual-channel, which is applied to a hardware-isomorphic dual-channel radio device, and based on software instructions, the working mode of the radio device is dynamically configured, and the method comprises the following steps: a mode switching command is received in real time, the mode switching command is used for indicating that the radio device is configured as a service station or a relay station; based on the mode switching command, the working mode of the radio device is dynamically switched and configured as the corresponding service station or relay station; when being configured as the relay station, based on the indication of the mode switching command, the frequency-different relay forwarding operation is performed through the first channel and the second channel. Through the software instruction dynamic configuration of the working mode of the radio device and the combination of the frequency-different dual-channel relay mechanism, the network flexibility and the relay transmission efficiency are improved, and the problems of system complexity caused by the device type solidification, the low efficiency of the traditional time-division relay and the limited hop count are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of wireless communication technology, and in particular to a wireless relay control method based on software-defined and inter-frequency dual-channel. Background Technology

[0002] Relay technology, a key supporting technology in wireless communication networks, lies in overcoming geographical barriers and path loss, effectively extending network coverage, and improving signal quality for edge users. This technology involves deploying one or more relay nodes between the source and target nodes. The relay stations decode, process, or amplify the received wireless signals before forwarding them, forming a multi-hop communication link, thereby achieving reliable information transmission beyond line-of-sight or non-line-of-sight paths. This type of technology has significant application value for emergency communication and dedicated network coverage in complex terrain environments such as mountainous and forested areas.

[0003] However, widely used existing wireless relay solutions face a series of inherent limitations in terms of performance, flexibility, and cost. The primary problem stems from the contradiction between spectral efficiency and network scale: given that most conventional radios use a single-channel architecture, traditional relay systems generally employ a strict time-division multiplexing mode to avoid co-channel interference between the forwarding and receiving links. This mode requires dividing the transmission period into n mutually orthogonal time slots based on the number of relay hops n, and forcibly stipulating that each relay station can only perform receiving or transmitting operations within a specified, non-overlapping time slot. This serialized working mechanism directly leads to a linear decrease in the overall system throughput as the number of hops increases, with a theoretical efficiency of only 1 / n. Furthermore, due to the sharp increase in timing synchronization complexity and cumulative delay, the number of relay hops that can be supported in practice is usually limited to within 6 hops, severely restricting the network's scalability. Secondly, from the perspective of equipment and network architecture, existing systems typically maintain a strict hardware and functional distinction between service stations and repeaters: repeaters, as dedicated infrastructure, generally lack the capability to perform voice, data, and other service communications as terminals; conversely, service stations are designed as pure terminals, unable to undertake signal forwarding tasks. This rigid functional isolation necessitates configuring and managing two distinctly different equipment models, increasing the complexity and cost of equipment inventory, procurement, and maintenance. It also results in a fixed network topology, unable to dynamically reconfigure based on real-time communication needs, leading to a severe lack of flexibility in rapid deployment and emergency scenarios. Furthermore, advanced technologies such as bidirectional repeaters, designed to improve spectrum efficiency, theoretically enable simultaneous transmission and reception on the same frequency band in full-duplex mode, but face the significant engineering challenge of self-interference in radio frequency circuits. Strong self-interference signals can overwhelm weak desired received signals, requiring extremely sophisticated cancellation techniques. In real-world dynamic wireless environments, the complexity of interference management, resource allocation, and power control increases exponentially, making it difficult to guarantee stability and reliability. Currently, these technologies remain primarily in the theoretical research and laboratory verification stages, far from large-scale engineering applications. Summary of the Invention

[0004] The purpose of this invention is to provide a software-defined and inter-frequency dual-channel wireless relay control method. By dynamically configuring the radio's operating mode through software instructions and combining it with the inter-frequency dual-channel relay mechanism, the method improves network flexibility and relay transmission efficiency, and solves the problems of system complexity caused by fixed equipment types and low efficiency and limited hop count of traditional time-division relay.

[0005] To address the aforementioned technical problems, this invention provides a software-defined, dual-channel wireless relay control method. The method is applied to a hardware-homogeneous dual-channel radio device and dynamically configures the operating mode of the radio device based on software instructions. The control method includes the following steps: Real-time receive mode switching commands, the mode switching commands being used to instruct the radio equipment to be configured as a service station or a repeater station; Based on the mode switching command, the working mode of itself is dynamically switched and configured as the corresponding service station or relay station. When configured as the repeater, based on the indication of the mode switching command, inter-frequency relay forwarding operation is performed through the first channel and the second channel; The first channel operates at a first receiving frequency and a second transmitting frequency, and the second channel operates at a second receiving frequency and a first transmitting frequency, wherein the first receiving frequency and the second receiving frequency are different.

[0006] Furthermore, the dual-channel radio device operates in half-duplex mode, simultaneously monitoring voice signals on the first receiving frequency and the second receiving frequency, and switching to the corresponding transmitting frequency for forwarding after fully receiving the voice signal; The execution of inter-frequency relay forwarding operation includes: When voice signals are received simultaneously via the first receiving frequency and the second receiving frequency, the system receives and stores the first voice data from the first receiving frequency and the second voice data from the second receiving frequency, and plays the voice data received first. After playback is complete, the system first switches to the second transmission frequency to forward the previously received voice data, and then switches back to the first transmission frequency to forward the subsequently received voice data. In the case of multiple relay stations cascaded, the front-end relay station forwards voice at the second transmission frequency, and the rear-end relay station receives the voice at the second reception frequency and then forwards it at its own second transmission frequency, thus realizing multi-hop relay transmission.

[0007] Furthermore, the playback of the previously received voice data includes: Monitor the first receiving frequency and the second receiving frequency, identify and start storing the voice data received by the channel where the first valid voice signal appears, and determine that the voice data is the first voice data received; Simultaneously with the start of storing the previously received voice data, the voice data is played. For valid voice signals subsequently identified on another channel, they are stored in parallel but not played, in order to shorten the forwarding wait time.

[0008] Further, the step of identifying and starting to store the voice data received by the channel where the first valid voice signal appears includes: The parallel detection channel receives signals with at least two characteristics, the at least two characteristics including signal energy characteristics and signal coding structure characteristics; When the signal energy characteristics continuously exceed the first threshold and the signal coding structure characteristics conform to the preset voice coding frame structure rules, it is determined that the channel currently contains the valid voice signal.

[0009] Furthermore, the execution of the inter-frequency relay forwarding operation includes: When the repeater station needs to transmit its own voice, it stores the voice during the transmission process and transmits the voice at the first transmission frequency. Switch to the second transmission frequency and retransmit the stored voice message.

[0010] Furthermore, the execution of the inter-frequency relay forwarding operation includes: When no voice signal is received and no voice is transmitted, a data relay operation is performed; When a voice signal is detected during a data relay operation, the data relay operation is interrupted, and the voice relay processing steps are executed first.

[0011] Furthermore, the execution of the data relay operation includes: The transmission frequency of the first channel is periodically switched between the first transmission frequency and the second transmission frequency, while maintaining the frequency configuration of the second channel unchanged; When the transmission frequency of the first channel is switched to the first transmission frequency, data interaction is performed with the service station operating at the first receiving frequency and the first transmission frequency through the first channel; When the transmission frequency of the first channel is switched to the second transmission frequency, data interaction is performed with the service station operating at the second receiving frequency and the second transmission frequency through the first channel and the second channel.

[0012] Furthermore, the step of interrupting the data relay operation when a voice signal is detected during the data relay operation includes: Continuous signal feature detection is performed on the first receiving frequency and the second receiving frequency; When a signal conforming to the preset voice feature coding rule is detected on any channel, it is determined that a voice signal has been identified. The current polling cycle of the data relay operation is suspended, the intermediate state of the data interaction is saved, and the corresponding inter-frequency relay forwarding operation is executed first when voice signals are received simultaneously through the first receiving frequency and the second receiving frequency.

[0013] Furthermore, the software-defined and inter-frequency dual-channel wireless relay control method further includes: Based on the type of service signal forwarded by the relay station and the real-time traffic characteristics, the transmit power and channel bandwidth allocation of the first channel and the second channel are dynamically adjusted. When the forwarded service is mainly real-time voice signal, priority is given to ensuring the transmission continuity of the voice signal, and channel resources that meet the minimum latency requirements are allocated for this purpose. When data traffic signals are detected as the main component of the service traffic, the resource allocation strategy is adjusted to balance throughput, and data traffic is forwarded in batches during idle periods.

[0014] Furthermore, the software-defined and inter-frequency dual-channel wireless relay control method further includes: When the repeater forwards a service signal, a path label containing hop count information and repeater identifier is added to the forwarded service signal; When the service signal is received by the destination service station, feedback information containing the received signal quality and transmission delay is generated based on the path label, and then transmitted back to the source service station and all relay stations along the original path or optimized path. Each relay station in the path adaptively adjusts its own signal forwarding parameters based on the feedback information. These parameters include at least the transmit power, modulation and coding scheme, and forwarding priority.

[0015] Accordingly, a second aspect of the present invention provides an electronic device, including: at least one processor; and a memory connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processor to perform the above-described software-defined and dual-channel wireless relay control method.

[0016] Accordingly, a third aspect of the present invention provides a computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, implement the above-described software-defined and inter-frequency dual-channel wireless relay control method.

[0017] The above-described technical solutions of the embodiments of the present invention have the following beneficial technical effects: 1. By adopting software-defined mode switching and a dual-channel architecture, the limitations of fixed device functions in traditional relay networks are broken, allowing any hardware-homogeneous radio to be dynamically configured as a service station or a relay station as needed. This not only significantly reduces the types of equipment and system complexity, but also fundamentally avoids co-channel interference through a carefully designed dual-channel duplex forwarding link, ensuring that relay transmission efficiency remains stable at a high level (theoretically close to 1 / 2 rather than 1 / n of traditional time-division). It also achieves theoretically unlimited network extension capability, thus enabling flexible and low-cost construction of large-area coverage communication networks in complex geographical environments. 2. By introducing a complete voice conflict arbitration and priority scheduling mechanism, this solution effectively solves the problem of voice loss or quality degradation when both parties speak simultaneously in traditional relays. When voice signals are detected to exist on both channels at the same time, it can accurately identify and store the voice data of both conflicting parties, and process them in an orderly manner according to the principle of first-come, first-served playback and priority forwarding. At the same time, it establishes the absolute priority of voice services over data services, ensuring the continuity and clarity of real-time voice communication in a mixed service environment, and significantly improving the reliability of the communication network and user experience. 3. By introducing dynamic resource scheduling and end-to-end quality feedback optimization mechanisms, this solution endows the relay network with preliminary intelligent management capabilities; it can adaptively adjust resources such as transmission power and channel bandwidth according to the type of forwarded service (voice or data) to achieve differentiated service guarantees; further, by leveraging path labels and closed-loop feedback, relay nodes can perceive the impact of their own forwarding behavior on end-to-end quality and adaptively adjust transmission parameters and forwarding strategies accordingly, thereby continuously optimizing the overall network throughput and transmission reliability in a changing environment, achieving a leap from static relaying to intelligent collaboration. Attached Figure Description

[0018] Figure 1 This is a diagram of a wireless relay control method based on software definition and inter-frequency dual channels provided in an embodiment of the present invention; Figure 2 This is a schematic diagram of the radio equipment system architecture provided in an embodiment of the present invention; Figure 3a This is a schematic diagram of the inter-frequency dual-channel relay working mode provided in an embodiment of the present invention; Figure 3bThis is a schematic diagram of the multi-relay station heterogeneous dual-channel relay working mode provided in an embodiment of the present invention; Figure 4a The speech timing provided in the embodiments of the present invention Figure 1 ; Figure 4b The speech timing provided in the embodiments of the present invention Figure 2 ; Figure 4c This is the third speech timing diagram provided in the embodiment of the present invention; Figure 4d This is the fourth timing diagram for voice transmission provided in this embodiment of the invention; Figure 5 This is a flowchart of voice relay processing provided in an embodiment of the present invention; Figure 6 This is a data relay processing flowchart provided in an embodiment of the present invention. Detailed Implementation

[0019] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to specific embodiments and the accompanying drawings. It should be understood that these descriptions are merely exemplary and not intended to limit the scope of the invention. Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concept of the invention.

[0020] Please refer to Figure 1 and Figure 2 This invention provides a software-defined, dual-channel wireless relay control method, applied to a hardware-homogeneous dual-channel radio device, and dynamically configuring the operating mode of the radio device based on software instructions. The control method includes the following steps: Step S100: Receive a mode switching command in real time. The mode switching command is used to instruct the radio equipment to be configured as a service station or a repeater station.

[0021] In specific application scenarios, such as the rapid deployment of emergency rescue communication networks in mountainous areas, the command center or network management unit can generate a mode switching command containing a specific address identifier and mode code based on real-time network topology requirements, and issue it via a wireless link or a reserved wired interface. The communication processing module (such as the CPU module) of the target dual-channel radio device (such as a radio located at a high point) continuously listens to the network command stream through its serial communication interface (such as COM1) and receives the mode switching command in real time. The command frame explicitly contains the instruction code to change the device's role to a repeater. The device firmware parses and verifies this command to confirm its validity and directionality, thereby completing the physical and protocol process of command reception.

[0022] Step S200: Based on the mode switching command, dynamically switch its own working mode and configure it as the corresponding service station or trunk station.

[0023] Based on the parsed mode switching command, the central processing unit (CPU) and the field-programmable gate array (FPGA) control module inside the radio equipment work together to initiate a dynamic reconfiguration process. The CPU is responsible for updating the network layer status flags of the equipment, while the FPGA loads the corresponding hardware drivers and control logic according to the instructions. Specifically, if the command indicates that it is configured as a repeater, the FPGA will reconfigure the baseband processing flow, prepare to execute a series of repeater-specific operations such as dual-channel signal reception, buffering, switching, and forwarding, and may disable or suspend some interface functions used only for terminal services. This process is entirely driven by software logic, without the need for manual intervention in hardware connections, enabling the same hardware platform to seamlessly transform from an ordinary service terminal into a critical repeater node in the network within tens of milliseconds, realizing the software-defined and instantaneous switching of equipment functions.

[0024] Step S300: When configured as a repeater, based on the mode switching command, an inter-frequency relay forwarding operation is performed through the first channel and the second channel. The first channel operates at the first receiving frequency and the second transmitting frequency, and the second channel operates at the second receiving frequency and the first transmitting frequency; the first receiving frequency and the second receiving frequency are different.

[0025] Once the device is successfully configured as a repeater, its RF and baseband systems enter a dual-channel repeater operation state according to preset rules. Two independent receive and transmit channels are set to specific frequency pairs: the first channel is locked to receive frequency f1 and transmit frequency f2, while the second channel is locked to receive frequency f2 and transmit frequency f1. For example, in a repeater scenario connecting radio stations A and C at opposite ends of a valley, repeater B's first channel continuously listens for uplink signals from radio station A (operating in the f1 band), while its second channel listens for uplink signals from radio station C (operating in the f2 band). When the first channel receives a voice data packet from radio station A, the FPGA control module demodulates and buffers it, then controls the RF unit to forward the same data packet to radio station C via the transmit link at frequency f2; conversely, signals from radio station C are received via the second channel and forwarded to radio station A via the first channel at frequency f1. This fixed pairing mechanism of receiving f1 and forwarding f2 and receiving f2 and forwarding f1 completely avoids co-channel interference between transmitting and receiving signals at the physical layer. This allows each hop on a multi-hop relay link to receive and forward signals independently and synchronously, thus theoretically breaking free from the hop limit of traditional time-division relays and providing a foundation for building beyond-line-of-sight, multi-hop linear or mesh communication networks.

[0026] This invention fundamentally changes the traditional fixed-function architecture of relay network equipment by dynamically configuring the operating mode of hardware homogeneous radios through software instructions. This allows any radio to instantly transform into a relay node on demand, greatly enhancing the flexibility of network deployment and the versatility of equipment, while significantly reducing system complexity and construction and maintenance costs. The deterministic frequency forwarding link built on a dual-channel architecture effectively eliminates co-channel interference, ensuring stable high relay transmission efficiency and breaking through the hop count limitation of traditional time-division relays. This lays the physical foundation for achieving large-scale, scalable network coverage in complex terrain.

[0027] Furthermore, by integrating a complete service scheduling mechanism including intelligent arbitration of voice conflicts, absolute priority of voice services, and data polling transmission, the communication service quality and reliability are guaranteed in scenarios where high-priority real-time voice services and background data services coexist. In particular, it ensures the clarity and continuity of voice in critical communications. It is especially suitable for quickly building a flexible, reliable, and wide-coverage dedicated wireless communication network in remote areas, emergency situations, or temporary tasks.

[0028] Specifically, please refer to Figure 3. Step S300, which involves performing inter-frequency relay forwarding, includes: Step S311: When voice signals are received simultaneously via the first receiving frequency and the second receiving frequency, the first voice data from the first receiving frequency and the second voice data from the second receiving frequency are received and stored, and the voice data received first is played.

[0029] In specific application scenarios, the dual-channel radio equipment operates in half-duplex mode, meaning transmission and reception cannot occur simultaneously. For example, when multiple rescue teams in mountainous areas coordinate command through a repeater, it's possible for team A (using radio A) and team C (using radio C) to initiate a call almost simultaneously (the typical initiation and termination sequence is as follows). Figures 4a to 4d(As shown). At this time, the first receiving frequency (operating at frequency f1) and the second receiving frequency (operating at frequency f2) of repeater B will detect valid voice signal carriers almost simultaneously. The dual-channel digital signal processing unit in the field-programmable gate array (FPGA) control module of repeater B will immediately start the parallel processing flow: first, the radio frequency signals received by the two channels will be down-converted, filtered, and demodulated to convert them into digital baseband signals; then, the voice activity detection (VAD) circuit or algorithm will analyze the two digital baseband signals in real time, and after confirming that they are valid voice frames, they will be written into independent first-in-first-out (FIFO) buffers, namely buffer A (corresponding to the voice data stream at frequency f1) and buffer C (corresponding to the voice data stream at frequency f2). In order to maintain the real-time monitoring capability of communication, the control logic will immediately select one voice data for digital-to-analog conversion and play it through the local speaker according to the preset arbitration rules (for example, based on the order of hardware interrupts after signal demodulation). This allows the repeater station operator to know the communication content that arrives first.

[0030] After receiving the complete voice signal, repeater B will, according to the arbitration rules, first switch to the second transmission frequency to forward the voice data that was received and stored earlier (such as the signal from radio station A); then switch back to the first transmission frequency to forward the voice data that was received later (such as the signal from radio station C), thereby completing the inter-frequency relay forwarding operation.

[0031] Step S312: After playback is complete, first switch to the second transmission frequency to forward the previously received voice data, and then switch to the first transmission frequency to forward the subsequently received voice data.

[0032] After playing the first incoming voice message, repeater B enters the ordered forwarding phase. Its transmission control logic first switches the transmission link to frequency f2, reads the buffered complete voice data packet (which may include multiple voice frames) from the corresponding buffer A, and after channel coding, modulation, and power amplification, transmits it through the antenna to radio station C operating at frequency f2. After this transmission, the transmission control logic immediately switches the transmission frequency to f1 and reads another complete voice data packet from buffer C. After the same baseband and RF processing, it transmits it to radio station A operating at frequency f1. This ordered forwarding mechanism ensures that, under limited dual-channel hardware conditions, the voice information from both conflicting parties can be completely and accurately delivered to the other end through the inter-frequency link, avoiding call interruptions or information loss caused by co-channel interference or simple discarding in traditional repeaters, and realizing reliable voice repeating in full-duplex communication scenarios.

[0033] In a multi-relay cascade configuration, the preceding relay station forwards voice signals using the second transmission frequency, and the subsequent relay station receives the voice signal using the second receiving frequency and then forwards it again using its own second transmission frequency, achieving multi-hop relay transmission. In multi-relay applications, to achieve long-distance communication coverage, multiple relay stations need to be deployed for relay transmission. For example, when radio station A transmits voice signals at frequency f1, the first-level relay station receives the signal using its first receiving frequency and immediately switches to its second transmission frequency f2 for forwarding. The second-level relay station receives the voice signal from the first-level relay station using its second receiving frequency (corresponding to f2), and after complete reception, immediately switches to its own second transmission frequency f3 for forwarding. This process continues, using a hop-by-hop relay method where the preceding relay station forwards the voice signal using the second transmission frequency, the subsequent relay station receives the voice signal using the second receiving frequency and then forwards it again using its own second transmission frequency, ultimately transmitting the voice signal to a distant radio station C, thus achieving multi-hop relay transmission and effectively extending communication coverage.

[0034] By employing a dual-channel parallel reception and buffer storage mechanism, combined with a voice playback and forwarding strategy based on arrival order, the problem of voice collision caused by simultaneous speech from both parties in inter-frequency relay scenarios is effectively solved. Without adding complex hardware or introducing additional time slots, the integrity and orderliness of voice services from both conflicting parties are guaranteed, significantly improving the reliability of the relay communication network and the user experience.

[0035] Further, please refer to Figure 5 The playback of the first received voice data in step S311 includes: Step S3111: Monitor the first receiving frequency and the second receiving frequency, identify and start storing the voice data received by the channel where the first valid voice signal appears, and determine the voice data as the first received voice data.

[0036] In a mountain rescue coordinated command scenario, when radio operators of teams A and C located in different locations may simultaneously press the talk button, the dual-channel monitoring logic integrated within the field-programmable gate array (FPGA) control module of repeater station B immediately activates. This logic performs parallel and continuous scanning of the baseband signal outputs at the first receiving frequency (tuned to frequency f1) and the second receiving frequency (tuned to frequency f2), performing voice activity detection (VAD). The detection algorithm does not rely solely on a simple signal energy threshold, but combines the identification of features such as the synchronization header and duration of specific voice encoded frames to confirm a valid voice signal. For example, when a signal from channel f1 first meets the preset validity criterion combination (such as energy exceeding a threshold and detection of three consecutive complete voice frame headers), the FPGA logic immediately determines that the channel has the first valid voice signal. Simultaneously, the FPGA controls the Direct Memory Access (DMA) circuitry to write subsequent voice data streams from this channel (starting from the first valid frame) into a dedicated circular buffer (Buffer_First) allocated to it in real time, and marks this voice data stream as the first received voice data. This process enables accurate and rapid identification and data capture of the source of the collision.

[0037] Step S3112: While starting to store the previously received voice data, play the voice data.

[0038] Simultaneously with or slightly after a configurable delay (typically a few milliseconds to minimize playback latency) upon determining and initiating the storage of the voice data stream into Buffer_First, the playback control logic is triggered. The FPGA reads the stored digitized voice sample from the beginning of Buffer_First, transmits it via the internal data bus to the data converter (DAC), converts it into an analog audio signal, and then drives the local audio power amplifier and speakers, enabling repeater operators to monitor the initial call content almost in real time. This mechanism of storing and playing simultaneously or storing and playing immediately technically achieves pipelined operation of receiving, storing, and playing, minimizing end-to-end latency from signal reception to local monitoring and ensuring real-time communication monitoring.

[0039] Step S3113: For valid voice signals subsequently identified on another channel, start parallel storage but do not play them to shorten the forwarding waiting time.

[0040] For the other channel (channel f2 in this example), the start time of its voice signal may be slightly later than that of the first channel identified. After completing the identification and storage of the first signal, the FPGA's monitoring logic does not stop scanning the second channel. Once a data stream matching the characteristics of a valid voice signal is also identified on the second channel, the FPGA will immediately start another independent DMA channel to write the voice data stream in parallel into another dedicated circular buffer (Buffer_Second), achieving synchronous buffering of dual-channel voice data. However, according to the arbitration principle of first-come, first-served, the playback control logic will not switch the audio source to Buffer_Second at this stage, but will continue to read data from Buffer_First for local playback, thereby ensuring that the operator hears a coherent and orderly voice stream, avoiding auditory confusion and information comprehension obstacles caused by playing two independent voices simultaneously.

[0041] By combining parallel dual-channel monitoring with an arbitration mechanism based on effective signal feature recognition, and independent buffering and controlled playback strategies, this method achieves reliable differentiation, orderly management, and real-time monitoring of nearly simultaneous conflicting voice signals at the hardware level. This lays a precise data foundation for subsequent sequential forwarding, fundamentally solving the problem of voice confusion or loss that may be caused by ambiguous judgment or processing delays. It also improves the decision-making certainty and operational reliability of the relay system in complex communication environments.

[0042] Further, the step S3111 of identifying and starting to store the voice data received by the channel where the first valid voice signal appears includes: Step S3111a: Parallel detection of at least two features of the channel received signal, the at least two features including signal energy features and signal coding structure features.

[0043] In the complex electromagnetic environment of mountain rescue communications, repeaters need to reliably distinguish the true voice signal from background noise, transient interference, and possible data signals. To achieve this goal, a parallel signal feature analysis pipeline is implemented within the field-programmable gate array (FPGA) of repeater B. This pipeline simultaneously applies at least two independent feature extraction operations to the down-converted and digitized baseband signal of each receiving channel (f1 and f2). The first operation calculates the short-time average energy or power of the signal, i.e., the signal energy characteristic. This calculation is typically performed within a time window of tens of milliseconds, which can quickly reflect changes in the strength of the received signal. The second operation performs real-time decoding analysis of the digital signal stream to identify its signal coding structure characteristics. This involves synchronously searching the received bitstream and checking whether it conforms to the frame structure rules defined by the voice codec used by the system (e.g., a certain linear predictive coding (LPC) or other vocoder standard), including matching and verification of fields such as frame synchronization words, frame header information, payload length, and frame check sequence. The extraction of these two features is performed concurrently by different hardware logic units within the FPGA to ensure real-time detection with low latency.

[0044] Step S3111b: When the signal energy characteristics continuously exceed the first threshold and the signal coding structure characteristics conform to the preset voice coding frame structure rules, it is comprehensively determined that a valid voice signal has appeared in the channel.

[0045] Based on the parallel extraction of dual features, the arbitration logic within the FPGA performs a comprehensive decision. The decision rule requires two strict conditions to be met simultaneously: First, the output from the energy feature analysis unit must show that the signal energy consistently exceeds a preset first threshold for several consecutive predefined time periods (e.g., three consecutive 20ms frames). This threshold is dynamically or statically set based on the background noise level to exclude sudden noise pulses. Second, the output from the coding structure analysis unit must confirm that the received data bitstream within the same time period can be successfully parsed to obtain a complete frame sequence conforming to the preset voice coding frame structure pattern, such as continuously detecting correct frame synchronization headers and valid frame check results. Only when the above two conditions—signal energy characteristics consistently exceeding the first threshold and signal coding structure characteristics conforming to the preset voice coding frame structure pattern—are time-aligned and simultaneously met, will the FPGA's comprehensive decision logic generate a definitive trigger signal, recognizing a valid voice signal on the currently monitored channel. This dual-condition decision mechanism significantly reduces the probability of misjudgment caused by brief interference or non-voice service signals (such as occasional synchronization header-like patterns appearing in data packets).

[0046] By parallel computing of both signal energy and coding structure characteristics, and implementing a comprehensive decision-making mechanism based on joint judgment of persistence and regularity, this invention significantly improves the accuracy and robustness of valid voice signal identification in complex wireless environments. This mechanism can not only quickly respond to the start of real voice services, but also effectively suppress noise, transient interference, and false triggering of non-voice signals, ensuring that subsequent voice conflict arbitration, storage, and forwarding processes are based on high-confidence signal detection results, thereby guaranteeing the working stability and reliability of the relay communication system in harsh electromagnetic environments.

[0047] Specifically, the inter-frequency relay forwarding operation in step S300 includes: In step S321, when the relay station needs to send its own voice, it stores its own voice during the transmission process and sends its own voice at the first transmission frequency.

[0048] When the personnel stationed at repeater station B, located at a high point in the mountainous area, need to issue command instructions to teams A and C on either side of the valley simultaneously, their operational procedures trigger the repeater station's own voice transmission and forwarding mechanism. The personnel press the push-to-talk (PTT) switch on their handheld transceiver (or panel), an action detected by the system hardware as a trigger event indicating that the repeater station needs to transmit its own voice. The audio signal is acquired by the microphone, pre-amplified, and anti-aliasing filtered before being converted into a digital voice sample stream by an analog-to-digital converter. This digital voice stream is simultaneously fed to two parallel processing paths: first, it enters the baseband processing unit of the transmission link, where it undergoes voice encoding, framing, and modulation, and is then radiated by the radio frequency unit at the first transmission frequency (i.e., frequency f1). This signal can be directly received by radio station A operating at frequency f1; second, it is written in real-time to an independent storage buffer (which can be called its own voice buffer). This simultaneous storage operation during transmission is typically achieved in hardware by using a direct memory access (DMA) controller to simultaneously move the data stream output by the ADC to the modulator input buffer and the designated storage area, ensuring that the voice data is completely captured the moment it is transmitted.

[0049] Step S322: Switch to the second transmission frequency and retransmit the stored voice message.

[0050] After the initial voice transmission at frequency f1 is completed (usually marked by the release of the PTT switch, indicating the end of a complete voice segment), the system automatically enters the cross-frequency relay phase without any additional operator intervention. The transmission control logic first switches the frequency synthesizer of the transmission link from f1 to the second transmission frequency (i.e., frequency f2). After the switch is complete, the control logic reads the stored complete digital voice data from its own voice buffer. This data is then sent back to the baseband processing unit of the transmission link, but because the frequency has been switched, this processing generates an RF signal with carrier f2, which is then amplified and transmitted. This signal can be received by radio station C operating at frequency f2. Through this series of automated operations—initial transmission, storage, frequency switching, and retransmission—a single voice input from the repeater operator is efficiently and reliably converted into two RF signals of different frequencies, sequentially covering the two inter-frequency communication groups connected by the repeater in the network.

[0051] By introducing a real-time synchronization caching mechanism for voice data during local transmission, and combining it with automatic sequential switching of transmission frequencies and data replay, this invention enables radio equipment acting as a relay to seamlessly perform full-duplex voice communication as a service terminal while performing signal forwarding functions.

[0052] Specifically, the inter-frequency relay forwarding operation in step S300 includes: Step S331: When no voice signal is received and no voice is transmitted, perform a data relay operation.

[0053] In a mountain rescue coordination network, when there is no real-time communication requirement between the command center and various teams, and the relay station personnel are not speaking, the communication channel is in an idle state for voice services. At this time, the control logic of relay station B (mainly implemented by FPGA) accurately determines that the conditions of not receiving voice signals and not transmitting voice are met by continuously monitoring the Voice Activity Detection (VAD) output of the dual receive channels and the local PTT status. The system then automatically switches from the default or standby state to the data relay working mode. In this mode, system resources are reconfigured to serve the transmission of non-real-time data services such as text information, location coordinates, and sensor data. Relay station B, as a transparent data forwarding node, establishes data links with radio station A operating at frequency f1 and radio station C operating at frequency f2 according to a preset polling or store-and-forward protocol, and begins to receive, verify, buffer, and forward data. This mechanism ensures that valuable wireless channel resources are fully utilized during voice communication intervals and supports necessary background data interaction.

[0054] Step S332: When a voice signal is detected during the data relay operation, the data relay operation is interrupted, and the voice relay processing steps are executed first.

[0055] While the system is in the aforementioned data relay operation, its voice signal monitoring function is not disabled but continues to run as a foreground or background task. Once the signal feature detection logic on any receiving channel (f1 or f2) (as described in steps S3111a-b) identifies a carrier that matches the characteristics of a valid voice signal, the system will immediately trigger a high-level interrupt. This interrupt service routine first executes the interrupt data relay operation: saving the context state of the current data exchange task, such as the sequence number of the data packet being transmitted, the confirmed byte offset, and temporary variables of the protocol stack, and storing them in non-volatile memory or dedicated registers; at the same time, the control logic forcibly suspends the polling timing of the data link, transferring channel access control from the data relay management unit. Subsequently, the system prioritizes the voice relay processing steps, that is, seamlessly transitioning to the complete set of voice signal reception, buffering, playback, and forwarding processes defined in step S311 and thereafter. Once the high-priority voice service transmission is completed (usually marked by the detection of a voice silence timeout), the system then resumes the interrupted data relay operation based on the previously saved context, continuing execution from the point of interruption, thereby ensuring the final completion of the data service.

[0056] By implementing a dynamic priority scheduling and interruption recovery mechanism based on service type identification, this invention achieves the coexistence and efficient management of voice and data services on a unified hardware platform. This mechanism ensures that voice communications, with their extremely high real-time requirements, can obtain immediate channel access and processing resources under any circumstances, guaranteeing clear, coherent, and uninterrupted transmission of critical voice commands. Simultaneously, by saving and restoring the data relay state, background data services can reliably continue during voice intervals and ultimately complete transmission. Thus, while ensuring the network's high real-time communication capabilities, this maximizes the time utilization of the wireless channel and the overall service throughput of the system.

[0057] Further, please refer to Figure 6 The data relay operation in step S331 includes: Step S3311: Periodically switch the transmission frequency of the first channel between the first transmission frequency and the second transmission frequency, while keeping the frequency configuration of the second channel unchanged.

[0058] In mountainous rescue data relay scenarios, to achieve reliable and orderly data exchange with two service stations (A and C) operating at different frequencies, relay station B employs an efficient polling access mechanism. Its core operation involves the periodic switching control of the first channel's transmission frequency. Specifically, a high-precision timer within a field-programmable gate array (FPGA) triggers the frequency synthesis unit (frequency synthesis unit 1) connected to the first channel, causing its transmission frequency to alternate between two preset values—a first transmission frequency (f1) and a second transmission frequency (f2)—at fixed or configurable time intervals (e.g., each frequency lasting several hundred milliseconds). During this process, the frequency configuration of the second channel (i.e., receive frequency f2, transmit frequency f1) remains unchanged. This design strategy, by dynamically configuring the transmission frequency of only one channel, rather than simultaneously reconstructing two complete channels, effectively reduces control complexity and switching transient interference while enabling interaction with the dual-frequency network, ensuring the stability and predictability of the system state.

[0059] Step S3312: When the transmission frequency of the first channel is switched to the first transmission frequency, data interaction is performed with the service station operating at the first receiving frequency and the first transmission frequency through the first channel.

[0060] When the transmission frequency of the first channel is switched to the first transmission frequency (f1) at a set time, its receiving frequency also operates at the first receiving frequency (f1). At this time, the first channel constitutes a complete transmit / receive path operating in the f1 frequency band. Through this channel, repeater B establishes a temporary point-to-point data link with service station A, which also operates in the f1 frequency band (i.e., the first receiving frequency and the first transmission frequency are the same). Both parties send and receive data packets within this time slice according to a predetermined data link layer protocol (such as a retransmission mechanism based on acknowledgment). For example, repeater B modulates the buffered data packets to be sent to station A onto the f1 frequency and sends them; at the same time, its first channel also listens on the f1 frequency and receives data packets from station A. During this period, although the second channel physically exists, it does not participate in this data interaction process because its operating frequency (receive f2 / transmit f1) does not match the current interaction object; it only remains silent or continues to perform background monitoring tasks.

[0061] Step S3313: When the transmission frequency of the first channel is switched to the second transmission frequency, data interaction is performed with the service station operating at the second receiving frequency and the second transmission frequency through the first channel and the second channel.

[0062] When the timer triggers the next switch, the transmission frequency of the first channel is switched to the second transmission frequency (f2), and its receiving frequency correspondingly changes to the second receiving frequency (f2). At this time, to achieve bidirectional data interaction with service station C operating in the f2 band, the system's dual-channel architecture needs to be utilized. Repeater B sends data packets to station C through the first channel (transmitting and receiving at f2). Simultaneously, to receive responses or uplink data from station C, the second channel is used, as its receiving frequency is fixed at f2, which is perfect for monitoring signals emitted by station C. Therefore, within this time slice, data interaction is jointly completed by the first channel (primarily for transmission, but also for reception) and the second channel (dedicated to reception). The system's internal data routing and control logic ensures that data received from the second channel, destined for the repeater or to be forwarded to station A, is correctly buffered and processed. This polling mechanism of single-channel transmission frequency switching and dual-channel joint transmission and reception enables the repeater to efficiently and orderly serve the data services of two independent inter-frequency communication networks.

[0063] By periodically switching the transmission frequency of a single channel and coordinating with fixed dual-channel receiving resources, this invention implements a data relay polling access mechanism with controllable complexity and optimized efficiency. This mechanism enables a single repeater station to effectively perform time-division data interaction with two service stations operating at different frequencies without adding additional RF front-ends, significantly improving the utilization rate of the wireless channel during voice service interruptions. Simultaneously, since only one frequency synthesizer needs to be switched, the switching speed is fast and the state is stable, providing a rapid response technical basis for voice services to interrupt data services and preempt resources at any time, thus achieving a good balance between hardware implementation complexity and system functional flexibility.

[0064] Furthermore, step S332, which involves interrupting the data relay operation when a voice signal is detected during the data relay operation, includes: Step S3321: Continuous signal feature detection is performed on the first receiving frequency and the second receiving frequency.

[0065] During data relay in mountainous rescue operations, repeater B maintains its voice signal detection capability even when in data polling mode. This is achieved by designing an independent signal monitoring module within the FPGA, operating in parallel with the data relay task. This module continuously scans and analyzes the intermediate frequency or baseband digital signal streams down-converted from the first receiving frequency (tuned to f1) and the second receiving frequency (tuned to f2). This continuous signal feature detection is not simply energy monitoring, but a real-time digital signal processing flow encompassing multi-level filtering, feature extraction, and pattern matching. Its hardware logic unit operates independently of the data processing unit, ensuring no blind spots in voice signal detection during any data packet transmission / reception intervals or data bursts. Even when data services cause channel congestion, this monitoring module can still attempt to identify potential voice features from the complex signal environment through in-depth analysis of the received signal, providing a preliminary sensing basis for the immediate preemption of voice services.

[0066] Step S3322: When a signal conforming to the preset voice feature coding rule is detected on any receiving channel, it is determined that a voice signal has been identified.

[0067] When the aforementioned parallel monitoring module captures a continuous signal on any receiving channel (e.g., channel f1) and performs preliminary analysis, it sends the signal to a more precise voice coding structure analyzer. The analyzer matches and verifies the signal according to the preset voice coding frame structure rules in the device firmware (e.g., the specifications for frame synchronization words, frame header format, frame length, and checksum sequence for a specific vocoder). Once the bitstream of the signal is successfully decoded, and several consecutive frames (e.g., 2-3 frames) are verified to conform to the preset coding structure rules, the analyzer generates a high-confidence decision signal. This signal indicates that what is detected on the current channel is not a data packet or noise, but a valid service signal conforming to the system's voice communication standards; that is, voice signals have been identified. This deep decision based on coding rules, compared to simple energy detection, can reliably distinguish voice services from other types of wireless services or interference.

[0068] Step S3323: Suspend the current polling cycle of the data relay operation, save the intermediate state of the data interaction, and prioritize the execution of the corresponding inter-frequency relay forwarding operation when voice signals are received simultaneously through the first receiving frequency and the second receiving frequency.

[0069] Once the system identifies a voice signal based on its encoded structure characteristics, it will immediately trigger a system interrupt with the highest priority. This interrupt service routine first executes the current polling cycle for suspending the data relay operation: the control logic immediately stops the ongoing timed switching operation for the first channel's transmission frequency and freezes the data link layer's protocol state machine (e.g., stopping the transmission of new data packets, waiting for incomplete acknowledgments, etc.). Next, the system saves the intermediate state of the data interaction: key context information currently being exchanged with radio station A or C, such as the sequence number of unacknowledged data packets, protocol window parameters, and pointers to temporary buffers, is completely saved to non-volatile memory or a protected register set. After the state is saved, system resources are immediately reconfigured, and control is seamlessly transferred to the voice relay processing flow, prioritizing the execution of the corresponding inter-frequency relay forwarding operation when voice signals are simultaneously received via the first and second receiving frequencies. This means that regardless of whether the voice signal is initiated unilaterally or due to a conflict between two parties, the system will immediately switch to the full set of voice processing modes defined in step S311 and subsequent steps. After the voice communication ends, the system resumes the data relay operation from the saved intermediate state point and continues to complete the previously suspended data interaction task.

[0070] By implementing uninterrupted parallel voice signal monitoring based on deep coding feature recognition during data relay and establishing a complete high-priority interruption response and task state saving and recovery mechanism, this method achieves real-time, lossless preemption of data services by voice services. This mechanism ensures that the highest-priority real-time voice communication needs receive immediate system response and 100% channel resources, fundamentally guaranteeing the absolute priority and delay-free transmission of critical voice commands in emergency communications. Simultaneously, by accurately saving the intermediate state of data interaction, interrupted non-real-time data services can be accurately recovered and resumed during voice intervals, avoiding data transmission interruptions or errors. Thus, it perfectly achieves refined and intelligent management of mixed service quality on a single physical channel.

[0071] In addition, the software-defined and inter-frequency dual-channel wireless relay control method also includes: Step S411: Based on the type of service signal forwarded by the repeater and the real-time traffic characteristics, dynamically adjust the transmission power and channel bandwidth allocation of the first and second channels.

[0072] In the actual operation of mountain rescue communication networks, the types of services and traffic loads generated at different times or mission stages are dynamically changing. The central processing unit (CPU) module of repeater B, in collaboration with the FPGA control module, performs real-time analysis and statistics on the service signals forwarded by it. The network layer processing function of the CPU module can distinguish between voice and data service frames based on the protocol header information of the data packets, and, combined with the channel activity status provided by the FPGA, comprehensively calculate real-time traffic characteristics such as the proportion of service types and data throughput within a short period. Based on this analysis, the system generates control commands to dynamically adjust the RF front-end parameters corresponding to the first and second channels through the FPGA hardware interface. Specifically, the adjustable parameters include, but are not limited to: controlling the power amplifier bias voltage to change the transmit power, or configuring the cutoff frequency of the baseband filter and the digital up / down conversion rate to affect the effective channel bandwidth. This adjustment process is entirely driven by software algorithms, enabling the repeater's resource allocation to adapt to the dynamic changes in network service load.

[0073] Step S412: When the forwarded service is mainly real-time voice signal, priority is given to ensuring the continuity of voice signal transmission, and channel resources that meet the minimum latency requirements are allocated for this purpose.

[0074] When statistical analysis indicates that, over a given period, the proportion of voice data packets in the traffic flow relayed by repeaters exceeds a preset threshold (i.e., real-time voice signals dominate), the system will automatically switch to a resource allocation mode optimized for real-time services. In this mode, the control logic prioritizes ensuring the continuity of voice frame transmission and minimizing latency. To this end, the system may employ strategies such as allocating more protective and redundant channel coding schemes for voice services (which, while consuming more bandwidth, offer stronger error resilience), or slightly increasing transmit power to enhance link margin and reduce retransmissions caused by channel fluctuations. More importantly, the system will strictly guarantee time-slice resources for voice transmission; its scheduler will reserve sufficient, conflict-free transmission opportunities for each voice frame, even if this may temporarily reduce the statistical multiplexing efficiency of the channel. All resource allocation aims to eliminate additional jitter and latency caused by queuing or contention, meeting the real-time requirements of voice communication.

[0075] Step S413: When it is detected that data service signals are the main component of the service traffic, the resource allocation strategy is adjusted to balance the throughput, and data services are forwarded in batches during idle periods.

[0076] Conversely, when the system detects that the majority of network traffic consists of data traffic signals (e.g., large file transfers or status reports) and voice traffic is in a quiet period, the resource allocation strategy will automatically adjust to prioritize balanced throughput. Under this strategy, the system optimizes the combination of channel bandwidth and power, operating it close to the channel capacity to maximize data transmission per unit time. Simultaneously, the system fully utilizes the idle periods created by voice traffic silence, which, according to channel activity monitoring, are periods with neither voice signal transmission nor reception. The data relay management module identifies and utilizes these periods to batch forward cached data traffic (potentially from previously delayed transmission tasks due to voice priority). Batch forwarding can employ larger packet aggregation or more aggressive link rate adaptation, aiming to efficiently clear the data buffer in a short time, thereby completing as many data exchange tasks as possible before the next round of voice traffic arrives, improving the overall data throughput efficiency of the network.

[0077] By introducing a dynamic resource intelligent scheduling mechanism based on service type and traffic characteristics, this invention enables repeaters to possess the ability to self-aware of network status and self-optimize parameters. This mechanism can ensure the quality and continuity of critical real-time communication by prioritizing the allocation of guaranteed resources when voice services are active; and automatically optimize configuration to improve channel utilization and throughput when data services dominate. This adaptive capability allows limited wireless resources to be optimally matched according to real-time changes in communication needs, thereby ensuring both the user experience of high-priority services and the overall average efficiency of the network in complex and ever-changing service environments, enhancing the system's flexibility and robustness in responding to different communication scenarios.

[0078] Furthermore, the software-defined and inter-frequency dual-channel wireless relay control method also includes: Step S421: When the repeater forwards the service signal, add a path label containing hop count information and repeater identifier to the forwarded service signal.

[0079] In mountain rescue communication networks that form multi-hop links, to optimize end-to-end transmission performance and provide network status observability, repeaters mark forwarded service signals at the network layer or a specific protocol layer when performing signal forwarding. Specifically, when a service signal (whether a voice frame or a data packet) arrives at the repeater and is ready to be forwarded to the next hop, the repeater's control and processing module (such as the CPU) adds or updates a dedicated path label field to the protocol encapsulation of the service signal. This field contains at least two key pieces of information: first, hop count information, usually a counter, which the repeater increments by one for the hop count carried in the received service signal, or initializes to zero if it is the originating signal, to record the cumulative number of repeater hops the signal has traversed from the source; second, the repeater identifier, i.e., a unique identifier (such as a hardware address or a short ID assigned by the network) written into the repeater in the network. This operation ensures that each forwarded service signal carries the trajectory information of its transmission path, providing a data foundation for subsequent network performance analysis and optimization.

[0080] Step S422: After the service signal is received by the destination service station, feedback information containing the received signal quality and transmission delay is generated based on the path label, and then transmitted back to the source service station and all relay stations along the original path or the optimized path.

[0081] Once the service signal carrying the path label is successfully received by the destination station, the destination station's protocol processing unit parses the label. Simultaneously, its physical and link layers measure the received signal quality (such as Received Signal Strength Indicator (RSSI), Signal-to-Noise Ratio (SNR), or Bit Error Rate (BER)) and estimate the transmission delay from signal transmission to reception. Subsequently, the destination station generates a feedback information data packet containing these measurement results. After being addressed, this feedback data packet can be sent back along the original path, i.e., hop-by-hop using the relay station identifier sequence in the path label; alternatively, the network can optimize the path based on the current topology and send it back to the source station and all relay stations along the way. Each relay station on the reverse path can also read the contents of this feedback packet when forwarding it, thus enabling each node on the signal transmission path to obtain performance information about its downstream link to the destination.

[0082] In step S423, each repeater in the path adaptively adjusts its own signal forwarding parameters based on the feedback information. The parameters include at least the transmit power, modulation and coding scheme, and forwarding priority.

[0083] After receiving and parsing the feedback information, each repeater in the path uses its control algorithm to adaptively adjust its signal forwarding parameters based on the performance reports of its downstream links or end-to-end connections. For example, if the feedback indicates poor received signal quality, the repeater can appropriately increase its transmit power to enhance the reliability of the next-hop link; if the feedback shows good channel conditions but interference, it can adjust the modulation and coding scheme, for example, switching from a more robust but less efficient scheme to a more spectrally efficient one to improve throughput; furthermore, it can dynamically adjust the forwarding priority of different service flows based on network congestion or service urgency. This closed-loop control mechanism, based on feedback from actual transmission performance, enables each repeater node in the network to dynamically optimize its behavior and collaboratively improve the transmission performance of the entire multi-hop link.

[0084] By embedding path labels into forwarded service signals and generating feedback information based on the reception quality at the destination, this method constructs an end-to-end performance monitoring and closed-loop optimization system spanning multi-hop networks. This system enables each relay node in the network not only to forward signals but also to understand the impact of its forwarding behavior on the final communication quality, and adaptively adjust key radio frequency and protocol parameters accordingly. This achieves an evolution from traditional relay modes based on fixed configurations or local measurements to a globally aware, collaboratively optimized intelligent relay mode, significantly improving the link reliability, transmission efficiency, and overall service quality stability of multi-hop wireless networks in complex, time-varying environments.

[0085] Accordingly, a second aspect of the present invention provides an electronic device, including: at least one processor and a memory connected to the at least one processor. The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, cause the at least one processor to perform the aforementioned software-defined and dual-frequency dual-channel wireless relay control method.

[0086] Accordingly, a third aspect of the present invention provides a computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, implement the above-described software-defined and inter-frequency dual-channel wireless relay control method.

[0087] The embodiments of this invention aim to protect a wireless relay control method based on software-defined and inter-frequency dual-channel, which has the following effects: 1. By adopting software-defined mode switching and a dual-channel architecture, the limitations of fixed device functions in traditional relay networks are broken, allowing any hardware-homogeneous radio to be dynamically configured as a service station or a relay station as needed. This not only significantly reduces the types of equipment and system complexity, but also fundamentally avoids co-channel interference through a carefully designed dual-channel duplex forwarding link, ensuring that relay transmission efficiency remains stable at a high level (theoretically close to 1 / 2 rather than 1 / n of traditional time-division). It also achieves theoretically unlimited network extension capability, thus enabling flexible and low-cost construction of large-area coverage communication networks in complex geographical environments. 2. By introducing a complete voice conflict arbitration and priority scheduling mechanism, this solution effectively solves the problem of voice loss or quality degradation when both parties speak simultaneously in traditional relays. When voice signals are detected to exist on both channels at the same time, it can accurately identify and store the voice data of both conflicting parties, and process them in an orderly manner according to the principle of first-come, first-served playback and priority forwarding. At the same time, it establishes the absolute priority of voice services over data services, ensuring the continuity and clarity of real-time voice communication in a mixed service environment, and significantly improving the reliability of the communication network and user experience. 3. By introducing dynamic resource scheduling and end-to-end quality feedback optimization mechanisms, this solution endows the relay network with preliminary intelligent management capabilities; it can adaptively adjust resources such as transmission power and channel bandwidth according to the type of forwarded service (voice or data) to achieve differentiated service guarantees; further, by leveraging path labels and closed-loop feedback, relay nodes can perceive the impact of their own forwarding behavior on end-to-end quality and adaptively adjust transmission parameters and forwarding strategies accordingly, thereby continuously optimizing the overall network throughput and transmission reliability in a changing environment, achieving a leap from static relaying to intelligent collaboration.

[0088] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0089] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0090] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0091] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0092] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A wireless relay control method based on software-defined and inter-frequency dual-channel, characterized in that, A control method for dual-channel radio devices with isomorphic hardware, which dynamically configures the operating mode of the radio device based on software instructions, includes the following steps: Real-time receive mode switching commands, the mode switching commands being used to instruct the radio equipment to be configured as a service station or a repeater station; Based on the mode switching command, the working mode of itself is dynamically switched and configured as the corresponding service station or relay station. When configured as the repeater, based on the indication of the mode switching command, inter-frequency relay forwarding operation is performed through the first channel and the second channel; The first channel operates at a first receiving frequency and a second transmitting frequency, and the second channel operates at a second receiving frequency and a first transmitting frequency, wherein the first receiving frequency and the second receiving frequency are different.

2. The wireless relay control method based on software-defined and inter-frequency dual-channel as described in claim 1, characterized in that, The dual-channel radio device operates in half-duplex mode, simultaneously monitoring voice signals on the first receiving frequency and the second receiving frequency, and switching to the corresponding transmitting frequency for forwarding after fully receiving the voice signal. The execution of inter-frequency relay forwarding operation includes: When voice signals are received simultaneously via the first receiving frequency and the second receiving frequency, the system receives and stores the first voice data from the first receiving frequency and the second voice data from the second receiving frequency, and plays the voice data received first. After playback is complete, the system first switches to the second transmission frequency to forward the previously received voice data, and then switches back to the first transmission frequency to forward the subsequently received voice data. In the case of multiple relay stations cascaded, the front-end relay station forwards voice at the second transmission frequency, and the rear-end relay station receives the voice at the second reception frequency and then forwards it at its own second transmission frequency, thus realizing multi-hop relay transmission.

3. The wireless relay control method based on software-defined and inter-frequency dual-channel according to claim 2, characterized in that, The playback of the previously received voice data includes: Monitor the first receiving frequency and the second receiving frequency, identify and start storing the voice data received by the channel where the first valid voice signal appears, and determine that the voice data is the first voice data received; Simultaneously with the start of storing the previously received voice data, the voice data is played. For valid voice signals subsequently identified on another channel, they are stored in parallel but not played, in order to shorten the forwarding wait time.

4. The wireless relay control method based on software-defined and inter-frequency dual-channel as described in claim 3, characterized in that, The process of identifying and starting to store the voice data received by the channel from which the first valid voice signal appears includes: The parallel detection channel receives signals with at least two characteristics, the at least two characteristics including signal energy characteristics and signal coding structure characteristics; When the signal energy characteristics continuously exceed the first threshold and the signal coding structure characteristics conform to the preset voice coding frame structure rules, it is determined that the channel currently contains the valid voice signal.

5. The wireless relay control method based on software-defined and inter-frequency dual-channel according to claim 2, characterized in that, The execution of inter-frequency relay forwarding operation includes: When the repeater station needs to transmit its own voice, it stores the voice during the transmission process and transmits the voice at the first transmission frequency. Switch to the second transmission frequency and retransmit the stored voice message.

6. The wireless relay control method based on software-defined and inter-frequency dual-channel according to claim 2, characterized in that, The execution of inter-frequency relay forwarding operation includes: When no voice signal is received and no voice is transmitted, a data relay operation is performed; When a voice signal is detected during a data relay operation, the data relay operation is interrupted, and the voice relay processing steps are executed first.

7. The wireless relay control method based on software-defined and inter-frequency dual-channel as described in claim 6, characterized in that, The execution of the data relay operation includes: The transmission frequency of the first channel is periodically switched between the first transmission frequency and the second transmission frequency, while maintaining the frequency configuration of the second channel unchanged; When the transmission frequency of the first channel is switched to the first transmission frequency, data interaction is performed with the service station operating at the first receiving frequency and the first transmission frequency through the first channel; When the transmission frequency of the first channel is switched to the second transmission frequency, data interaction is performed with the service station operating at the second receiving frequency and the second transmission frequency through the first channel and the second channel.

8. The wireless relay control method based on software-defined and inter-frequency dual-channel as described in claim 6, characterized in that, The step of interrupting the data relay operation when a voice signal is detected during the data relay operation includes: Continuous signal feature detection is performed on the first channel and the second channel; When a signal conforming to the preset voice feature coding rule is detected on any channel, it is determined that a voice signal has been identified. The current polling cycle of the data relay operation is suspended, the intermediate state of the data interaction is saved, and the corresponding inter-frequency relay forwarding operation is executed first when voice signals are received simultaneously through the first receiving frequency and the second receiving frequency.

9. The wireless relay control method based on software-defined and inter-frequency dual-channel according to any one of claims 1-8, characterized in that, Also includes: Based on the type of service signal forwarded by the relay station and the real-time traffic characteristics, the transmit power and channel bandwidth allocation of the first channel and the second channel are dynamically adjusted. When the forwarded service is mainly real-time voice signal, priority is given to ensuring the transmission continuity of the voice signal, and channel resources that meet the minimum latency requirements are allocated for this purpose. When data traffic signals are detected as the main component of the service traffic, the resource allocation strategy is adjusted to balance throughput, and data traffic is forwarded in batches during idle periods.

10. The wireless relay control method based on software-defined and inter-frequency dual-channel according to any one of claims 1-8, characterized in that, Also includes: When the repeater forwards a service signal, a path label containing hop count information and repeater identifier is added to the forwarded service signal; When the service signal is received by the destination service station, feedback information containing the received signal quality and transmission delay is generated based on the path label, and then transmitted back to the source service station and all relay stations along the original path or optimized path. Each relay station in the path adaptively adjusts its own signal forwarding parameters based on the feedback information. These parameters include at least the transmit power, modulation and coding scheme, and forwarding priority.