DAB link optimization method, device and equipment
By preprocessing during radio list updates, including scanning, encoding conversion, and timestamp alignment, the auditory interruption problem caused by DAB link switching latency is resolved, enabling fast, reliable, and seamless switching.
Patent Information
- Application Number
- CN202511245056.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-02
- Publication Date
- 2025-12-09
AI Technical Summary
Existing DAB link switching methods suffer from switching delays that cause auditory interruptions, especially when the broadcast signal deteriorates rapidly and cannot be switched in time, resulting in audio interruptions.
When the radio station list is updated, candidate stations are scanned and filtered in advance, and preprocessing such as encoding conversion and timestamp alignment is performed. When the broadcast signal parameters deteriorate sharply, the preprocessed station is immediately activated to achieve seamless switching.
By preprocessing and timely switching, auditory interruptions are eliminated, switching reliability is improved, and the system is adapted to usage scenarios with dynamically changing signals.
Smart Images

Figure CN121098428A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of digital audio broadcasting technology, and in particular to a DAB link optimization method, apparatus, and device. Background Technology
[0002] Existing DAB Link technology is used to achieve seamless switching between DAB (Digital Audio Broadcasting) and heterogeneous broadcast links to ensure continuous audio playback. However, it has a core flaw: switching delays cause auditory interruptions. Existing solutions only start the audio preprocessing process (such as timestamp alignment) of candidate stations after the current broadcast signal is about to fail. In actual application scenarios, broadcast signals are often in a state of rapid degradation, and their degradation cycle is much shorter than the preprocessing time. Often, the signal has been interrupted before the switching is completed, causing users to continuously perceive audio interruptions and severely damaging the listening experience.
[0003] Therefore, existing DAB link switching methods suffer from the problem of hearing interruption due to switching delays. Summary of the Invention
[0004] This invention provides a DAB link optimization method, apparatus, and device, which aims to solve the problem of hearing interruption caused by switching delay in existing DAB link switching methods.
[0005] In a first aspect, embodiments of the present invention provide a DAB link optimization method, the method comprising:
[0006] When the radio station list is updated, all audio broadcast frequencies are scanned according to the current radio station's identification and encoding information to obtain candidate radio stations that meet the signal quality requirements.
[0007] After storing the candidate radio stations in a preset audio buffer, it is determined whether the encoding format of the candidate radio stations is the target encoding format.
[0008] If not, the candidate radio station is encoded and converted according to the target encoding format to obtain the first preprocessed radio station;
[0009] The current audio stream and candidate audio streams are timestamped to obtain the second preprocessed radio station; wherein, the current audio stream is the audio stream of the current radio station, and the candidate audio stream is the audio stream of the first preprocessed radio station;
[0010] When a sharp deterioration in the broadcast signal parameters of the current radio station is detected, the second pre-processed radio station is immediately activated.
[0011] Secondly, embodiments of the present invention also provide a DAB link optimization device, the device comprising:
[0012] The scanning unit is used to scan all audio broadcast frequencies according to the identification and encoding information of the current radio station when the radio station list is updated, so as to obtain candidate radio stations that meet the signal quality requirements.
[0013] The judgment unit is used to determine whether the encoding format of the candidate radio station is the target encoding format after storing the candidate radio station in a preset audio buffer.
[0014] A conversion unit is used to perform encoding conversion on the candidate radio station according to the target encoding format if the candidate radio station is not the target radio station, so as to obtain a first preprocessed radio station.
[0015] An alignment unit is used to align the timestamps of the current audio stream and the candidate audio streams to obtain a second pre-processed radio station; wherein, the current audio stream is the audio stream of the current radio station, and the candidate audio stream is the audio stream of the first pre-processed radio station;
[0016] The activation unit is used to immediately activate the second pre-processed radio station when a sharp deterioration in the broadcast signal parameters of the current radio station is detected.
[0017] Thirdly, embodiments of the present invention also provide an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method described in the first aspect above.
[0018] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing a computer program, the computer program including program instructions that, when executed by a processor, can implement the method described in the first aspect.
[0019] This invention provides a DAB link optimization method, apparatus, and device. The method includes: when a station list update is detected, scanning all audio broadcast frequencies according to the identification encoding information of the current station to obtain candidate stations that meet signal quality requirements; storing the candidate stations in a preset audio buffer, and determining whether the encoding format of the candidate stations is a target encoding format; if not, performing encoding conversion on the candidate stations according to the target encoding format to obtain a first pre-processed station; aligning the timestamps of the current audio stream and the candidate audio streams to obtain a second pre-processed station; wherein the current audio stream is the audio stream of the current station, and the candidate audio stream is the audio stream of the first pre-processed station; when a sharp deterioration in the broadcast signal parameters of the current station is detected, immediately activating the second pre-processed station. This invention pre-scans and filters candidate stations when the station list is updated, completing encoding conversion and timestamp alignment preprocessing; when the broadcast signal parameters deteriorate sharply, the second pre-processed station can be activated immediately to achieve rapid switching, eliminating auditory interruptions, improving switching reliability, and fully adapting to usage scenarios with dynamic signal changes. Attached Figure Description
[0020] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 A flowchart illustrating the DAB link optimization method provided in an embodiment of the present invention;
[0022] Figure 2 A schematic block diagram of the DAB link optimization device provided in an embodiment of the present invention;
[0023] Figure 3 A schematic block diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0024] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0025] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.
[0026] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0027] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes such combinations. Embodiments of this invention provide a DAB link optimization method, apparatus, and device. For the DAB link optimization method, please refer to... Figure 1 , Figure 1 This is a flowchart illustrating the DAB link optimization method provided in an embodiment of the present invention. The method is applied in the controller of a DAB link optimization system.
[0028] Figure 1 This is a flowchart illustrating the DAB link optimization method provided in an embodiment of the present invention. Figure 1 As shown, the method includes the following steps S110-S150.
[0029] S110. When the radio station list is updated, all audio broadcast frequencies are scanned according to the current radio station's identification and encoding information to obtain candidate radio stations that meet the signal quality requirements.
[0030] In this embodiment, when an update to the radio station list is detected (such as adding or deleting audio broadcast frequencies), all audio broadcast frequencies covering DAB and FM frequencies are scanned according to the current radio station's identification coding information to obtain candidate radio stations that meet the signal quality requirements; wherein, each audio broadcast frequency contains multiple radio stations, and the identification coding information includes a program identifier (Service ID) and an extended country code (ECC).
[0031] In one embodiment, step S110 includes: monitoring the update status of the radio station list in real time; when the radio station list is updated, scanning all audio broadcast frequencies according to the identification encoding information of the current radio station to obtain multiple initial candidate radio stations; and selecting the candidate radio stations from the multiple initial candidate radio stations according to a preset signal quality screening strategy.
[0032] In this embodiment, the update status of the radio station list is monitored in real time. When an update to the radio station list is detected (such as adding or deleting audio broadcast frequencies), all audio broadcast frequencies covering DAB and FM frequencies are scanned according to the current radio station's identification coding information to obtain multiple initial candidate radio stations. Subsequently, the available candidate radio stations are selected from the multiple initial candidate radio stations according to a preset signal quality screening strategy (such as received signal strength indication threshold and carrier-to-noise ratio threshold). The identification coding information includes the Service ID and Extended Country Code (ECC).
[0033] In one embodiment, the step of selecting candidate radio stations from a plurality of initial candidate radio stations according to a preset signal quality screening strategy includes: selecting intermediate candidate radio stations from a plurality of initial candidate radio stations according to an RSSI threshold in the signal quality screening strategy; and selecting candidate radio stations from a plurality of intermediate candidate radio stations according to a CNR threshold in the signal quality screening strategy.
[0034] In this embodiment, a first round of screening is performed on all the initial candidate radio stations based on the RSSI (Received Signal Strength Indicator Threshold) threshold in the signal quality screening strategy. Initial candidate radio stations with RSSI values higher than the RSSI threshold are retained as intermediate candidate radio stations, thus ensuring that the selected intermediate candidate radio stations have sufficient signal strength. Next, a second round of screening is performed on all the intermediate candidate radio stations based on the CNR (Received Signal Strength Indicator) threshold in the signal quality screening strategy. Finally, intermediate candidate radio stations with CNR values higher than the CNR threshold are retained as candidate radio stations that meet the signal quality requirements. The RSSI threshold can be set to -75dBm, and the CNR threshold can be set to 9.
[0035] In one embodiment, after step S110, the method further includes: if no candidate radio station that meets the signal quality requirements is obtained, then alternative radio stations that meet the signal response requirements are obtained based on the service link information of the current radio station; the alternative radio stations are sorted according to a preset priority rule; and the alternative radio station with the highest priority after sorting is selected as the candidate radio station.
[0036] In this embodiment, if no candidate radio station meeting the signal quality requirements is obtained through prior screening based on identifier encoding information, RSSI threshold, and CNR threshold, the system will activate an alternative scheme. First, it will obtain candidate radio stations that meet the signal response requirements (such as response time compliance) based on the service link information of the current radio station. The service link information includes the target frequency, service ID, and extended country code (ECC). The candidate radio stations will be sorted according to a preset priority rule. If the encoding format compatible with the current audio processing channel is DAB, the priority rule will be set as "DAB co-frequency candidate radio station > DAB non-co-frequency candidate radio station > FM candidate radio station" to reduce the additional encoding and decoding overhead caused by cross-system switching. The candidate radio station with the highest priority after sorting will be selected as the candidate radio station.
[0037] In one embodiment, obtaining candidate radio stations that meet the signal response requirements based on the service link information of the current radio station includes: obtaining at least one initial candidate radio station based on the service link information of the current radio station; and selecting candidate radio stations from a plurality of the initial candidate radio stations based on the response time threshold in the signal response requirements.
[0038] In this embodiment, at least one initial candidate radio station is obtained based on the service link information of the current radio station; then, the multiple initial candidate radio stations are filtered according to the response time threshold in the signal response requirements, and only the initial candidate radio stations with a response time lower than the response time threshold are retained as candidate radio stations that meet the signal response requirements; wherein, the response time threshold can be set to 100ms.
[0039] S120. After storing the candidate radio station in a preset audio buffer, determine whether the encoding format of the candidate radio station is the target encoding format.
[0040] In this embodiment, after storing the candidate radio station in a preset audio buffer, it is determined whether the encoding format of the candidate radio station is the target encoding format. The duration of the audio buffer is set to be greater than 200ms to temporarily store sufficient audio data to ensure smooth switching. The target encoding format refers to the encoding format that the current audio processing channel can be compatible with, to ensure that subsequent candidate radio station signals can be decoded and played normally.
[0041] S130. If not, the candidate radio station is encoded and converted according to the target encoding format to obtain the first pre-processed radio station.
[0042] In this embodiment, if the encoding format of the candidate radio station is not the target encoding format, the candidate radio station is encoded according to the target encoding format, and the encoded candidate radio station is used as the first pre-processed radio station. Specifically, if the candidate radio station is in FM format (G.722 encoding) and the target encoding format is DAB-compatible MP2 encoding, it needs to go through the encoding conversion process of "G.722 decoding → PCM signal → MP2 encoding" to ensure that the first pre-processed radio station is compatible with the current audio processing channel.
[0043] If the encoding format of the candidate radio station is consistent with the target encoding format, then the candidate radio station is directly determined as the first preprocessed radio station.
[0044] S140. Timestamp alignment is performed on the current audio stream and the candidate audio stream to obtain the second preprocessed radio station; wherein, the current audio stream is the audio stream of the current radio station, and the candidate audio stream is the audio stream of the first preprocessed radio station.
[0045] In this embodiment, the candidate timestamps of the candidate audio streams are calibrated and synchronized based on the real-time timestamp of the current audio stream to ensure that the candidate timestamps of the candidate audio streams are consistent with the real-time timestamps of the current audio stream in terms of timing. After the timestamp alignment is completed, the resulting radio station with synchronized timestamps is the second pre-processed radio station. The timestamp alignment preprocessing can effectively avoid problems such as audio disconnection, stuttering, or sound misalignment during subsequent radio station switching, ensuring the smoothness of the switching process.
[0046] S150. When the broadcast signal parameters of the current radio station are detected to deteriorate sharply, the second pre-processed radio station is immediately activated.
[0047] In this embodiment, the system continuously tracks the broadcast signal parameters of the current radio station. When a sharp deterioration in the broadcast signal parameters is detected (e.g., RSSI drop rate is lower than the preset value, CNR value drops sharply, etc.), the second pre-processed radio station is immediately activated to achieve seamless switching between the current radio station and the second pre-processed radio station, ensuring the continuity and stability of the audio broadcast service.
[0048] In one embodiment, step S150 includes: periodically monitoring the broadcast signal parameters of the current radio station according to a preset monitoring period; when the RSSI drop rate in the broadcast signal parameters is less than a first preset threshold, or the CNR value in the broadcast signal parameters suddenly drops to a second preset threshold, determining that the broadcast signal parameters are in a state of rapid deterioration; and immediately activating the second pre-processed radio station after determining that the broadcast signal parameters are in a state of rapid deterioration.
[0049] In this embodiment, to address the limitations of traditional single-threshold assessment in handling scenarios of rapid signal attenuation, the system achieves accurate identification of drastic signal degradation through multi-dimensional dynamic judgment. Specifically, the system periodically monitors the broadcast signal parameters of the current radio station according to a preset monitoring cycle. When the RSSI drop rate in the broadcast signal parameters is less than a first preset threshold, or the CNR value in the broadcast signal parameters suddenly drops beyond a second preset threshold, the system determines that the broadcast signal parameters are in a state of drastic degradation. After determining that the broadcast signal parameters are in a state of drastic degradation, the second pre-processed radio station is immediately activated.
[0050] In one embodiment, the step of immediately activating the second pre-processed radio station after determining that the broadcast signal parameters are in a state of rapid degradation includes: after determining that the broadcast signal parameters are in a state of rapid degradation, determining whether the current audio stream and the target audio stream are aligned; wherein, the current audio stream is the audio stream of the current radio station, and the target audio stream is the audio stream of the second pre-processed radio station; if the current audio stream and the target audio stream are not fully aligned, then a fade-in / fade-out transition operation is performed to switch the current radio station to the second pre-processed radio station.
[0051] In this embodiment, considering that when the broadcast signal parameters deteriorate sharply, the current audio stream may experience new deviations due to signal fluctuations, even if timestamp alignment has been completed previously, it is still necessary to determine a second time whether the current audio stream and the target audio stream are aligned. If the current audio stream and the target audio stream are not fully aligned, a fade-in / fade-out transition operation is performed to switch the current station to the second pre-processed station. Specifically, according to a preset transition duration (e.g., 20ms-50ms), the volume of the current audio stream is gradually reduced (fade-out), while the volume of the target audio stream is simultaneously increased (fade-in). The switch from the current station to the second pre-processed station is completed during the volume transition, ensuring the smoothness of the switching action and the continuity of the listener experience.
[0052] Furthermore, if the current audio stream is perfectly aligned with the target audio stream, the second pre-processed radio station is immediately activated to respond to signal degradation issues as quickly as possible and avoid audio service interruptions.
[0053] In summary, this invention pre-scans and filters candidate radio stations when updating the radio station list, and completes preprocessing such as encoding conversion and timestamp alignment. When the broadcast signal parameters deteriorate sharply, the second pre-processed radio station can be immediately activated to achieve rapid switching, which can eliminate auditory interruption, improve switching reliability, and fully adapt to usage scenarios with dynamic signal changes.
[0054] Figure 2 This is a schematic block diagram of a DAB link optimization device provided in an embodiment of the present invention. Figure 2As shown, corresponding to the above DAB link optimization method, the present invention also provides a DAB link optimization device, which is configured in the controller of the DAB link optimization system. Specifically, please refer to... Figure 2 The DAB link optimization device 700 includes:
[0055] The scanning unit 701 is used to scan all audio broadcast frequencies according to the identification encoding information of the current radio station when the radio station list is updated, so as to obtain candidate radio stations that meet the signal quality requirements.
[0056] The judgment unit 702 is used to determine whether the encoding format of the candidate radio station is the target encoding format after storing the candidate radio station into a preset audio buffer.
[0057] The conversion unit 703 is used to perform encoding conversion on the candidate radio station according to the target encoding format if the target encoding format is not specified, so as to obtain the first pre-processed radio station.
[0058] Alignment unit 704 is used to perform timestamp alignment on the current audio stream and candidate audio streams to obtain a second preprocessed radio station; wherein, the current audio stream is the audio stream of the current radio station, and the candidate audio stream is the audio stream of the first preprocessed radio station;
[0059] The activation unit 705 is used to immediately activate the second pre-processed radio station when the broadcast signal parameters of the current radio station are detected to deteriorate sharply.
[0060] In some embodiments, when the scanning unit 701 performs the step of scanning all audio broadcast frequencies according to the current station's identification encoding information to obtain candidate stations that meet signal quality requirements when an update to the station list is detected, it is specifically used for:
[0061] The system monitors the update status of the radio station list in real time. When an update is detected, it scans all audio broadcast frequencies based on the current radio station's identification and encoding information to obtain multiple initial candidate radio stations. The system then selects the candidate radio stations from the multiple initial candidate radio stations according to a preset signal quality filtering strategy.
[0062] In some embodiments, when the scanning unit 701 performs the step of selecting candidate radio stations from a plurality of initial candidate radio stations according to a preset signal quality screening strategy, it is specifically used for:
[0063] Intermediate candidate radio stations are selected from a plurality of initial candidate radio stations based on the RSSI threshold in the signal quality screening strategy; candidate radio stations are selected from a plurality of intermediate candidate radio stations based on the CNR threshold in the signal quality screening strategy.
[0064] In some embodiments, after performing the step of scanning all audio broadcast frequencies according to the current station's identification encoding information to obtain candidate stations that meet signal quality requirements when the station list is updated, the scanning unit 701 is further configured to:
[0065] If no candidate radio station that meets the signal quality requirements is found, then alternative radio stations that meet the signal response requirements are obtained based on the service link information of the current radio station; the alternative radio stations are sorted according to a preset priority rule; and the alternative radio station with the highest priority after sorting is selected as the candidate radio station.
[0066] In some embodiments, when the scanning unit 701 performs the step of obtaining candidate radio stations that meet the signal response requirements based on the service link information of the current radio station, it is specifically used for:
[0067] At least one initial candidate radio station is obtained based on the service link information of the current radio station; candidate radio stations are selected from the multiple initial candidate radio stations according to the response time threshold in the signal response requirements.
[0068] In some embodiments, when the enabling unit 705 performs the step of immediately enabling the second preprocessed radio station when a sharp deterioration in the broadcast signal parameters of the current radio station is detected, it is specifically used for:
[0069] The broadcast signal parameters of the current radio station are monitored periodically according to a preset monitoring cycle. When the RSSI drop rate of the broadcast signal parameters is less than a first preset threshold, or the CNR value of the broadcast signal parameters suddenly drops to a second preset threshold, it is determined that the broadcast signal parameters are in a state of rapid deterioration. After determining that the broadcast signal parameters are in a state of rapid deterioration, the second pre-processed radio station is immediately activated.
[0070] In some embodiments, when the enabling unit 705 performs the step of immediately enabling the second preprocessed radio station after determining that the broadcast signal parameters are in a state of rapid degradation, it is specifically used for:
[0071] After determining that the broadcast signal parameters are in a state of rapid deterioration, it is determined whether the current audio stream and the target audio stream are aligned; wherein, the current audio stream is the audio stream of the current radio station, and the target audio stream is the audio stream of the second pre-processed radio station; if the current audio stream and the target audio stream are not fully aligned, a fade-in / fade-out transition operation is performed to switch the current radio station to the second pre-processed radio station.
[0072] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned DAB link optimization device and each unit can be referred to the corresponding description in the foregoing method embodiments. For the sake of convenience and brevity, it will not be repeated here.
[0073] The aforementioned DAB link optimization device can be implemented as a computer program, which can, for example... Figure 3 It runs on the computer device shown.
[0074] Please see Figure 3 , Figure 3 This is a schematic block diagram of an electronic device provided in an embodiment of the present invention. The computer device 800 can be a terminal or a server, wherein the terminal can be an electronic device with communication functions. The server can be a standalone server or a server cluster composed of multiple servers.
[0075] See Figure 3 The electronic device 800 includes a processor 802, a memory, and a network interface 805 connected via a system bus 801. The memory may include a non-volatile storage medium 803 and internal memory 804.
[0076] The non-volatile storage medium 803 may store an operating system 8031 and a computer program 8032. The computer program 8032 includes program instructions that, when executed, cause the processor 802 to perform a DAB link optimization method.
[0077] The processor 802 provides computing and control capabilities to support the operation of the entire electronic device 800.
[0078] The internal memory 804 provides an environment for the execution of the computer program 8032 in the non-volatile storage medium 803. When the computer program 8032 is executed by the processor 802, the processor 802 can execute a DAB link optimization method.
[0079] This network interface 805 is used for network communication with other devices. Those skilled in the art will understand that... Figure 3 The structure shown is merely a block diagram of a portion of the structure related to the present invention and does not constitute a limitation on the electronic device 800 to which the present invention is applied. The specific electronic device 800 may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0080] The processor 802 is used to run a computer program 8032 stored in the memory to perform the following steps:
[0081] When a station list update is detected, all audio broadcast frequencies are scanned based on the current station's identification encoding information to obtain candidate stations that meet signal quality requirements. These candidate stations are then stored in a preset audio buffer. It is then determined whether the candidate station's encoding format matches the target encoding format. If not, the candidate station is encoded according to the target encoding format to obtain a first pre-processed station. The current audio stream and candidate audio streams are timestamped to obtain a second pre-processed station. Here, the current audio stream is the audio stream of the current station, and the candidate audio stream is the audio stream of the first pre-processed station. When a sharp deterioration in the broadcast signal parameters of the current station is detected, the second pre-processed station is immediately activated.
[0082] In some embodiments, when the processor 802 detects an update to the radio station list, it scans all audio broadcast frequencies based on the current radio station's identification encoding information to obtain candidate radio stations that meet the signal quality requirements, specifically implementing the following steps:
[0083] The system monitors the update status of the radio station list in real time. When an update is detected, it scans all audio broadcast frequencies based on the current radio station's identification and encoding information to obtain multiple initial candidate radio stations. The system then selects the candidate radio stations from the multiple initial candidate radio stations according to a preset signal quality filtering strategy.
[0084] In some embodiments, when the processor 802 implements the step of selecting candidate radio stations from a plurality of initial candidate radio stations according to a preset signal quality screening strategy, it specifically implements the following steps:
[0085] Intermediate candidate radio stations are selected from a plurality of initial candidate radio stations based on the RSSI threshold in the signal quality screening strategy; candidate radio stations are selected from a plurality of intermediate candidate radio stations based on the CNR threshold in the signal quality screening strategy.
[0086] In some embodiments, after implementing the step of scanning all audio broadcast frequencies according to the current station's identification encoding information to obtain candidate stations that meet the signal quality requirements when the station list is detected to be updated, the processor 802 also implements the following steps:
[0087] If no candidate radio station that meets the signal quality requirements is found, then alternative radio stations that meet the signal response requirements are obtained based on the service link information of the current radio station; the alternative radio stations are sorted according to a preset priority rule; and the alternative radio station with the highest priority after sorting is selected as the candidate radio station.
[0088] In some embodiments, when implementing the step of obtaining alternative radio stations that meet the signal response requirements based on the service link information of the current radio station, the processor 802 specifically implements the following steps:
[0089] At least one initial candidate radio station is obtained based on the service link information of the current radio station; candidate radio stations are selected from the multiple initial candidate radio stations according to the response time threshold in the signal response requirements.
[0090] In some embodiments, when the processor 802 implements the step of immediately activating the second preprocessed radio station when a sharp deterioration in the broadcast signal parameters of the current radio station is detected, the specific implementation steps are as follows:
[0091] The broadcast signal parameters of the current radio station are monitored periodically according to a preset monitoring cycle. When the RSSI drop rate of the broadcast signal parameters is less than a first preset threshold, or the CNR value of the broadcast signal parameters suddenly drops to a second preset threshold, it is determined that the broadcast signal parameters are in a state of rapid deterioration. After determining that the broadcast signal parameters are in a state of rapid deterioration, the second pre-processed radio station is immediately activated.
[0092] In some embodiments, when the processor 802 immediately activates the second preprocessed radio station step after determining that the broadcast signal parameters are in a state of rapid degradation, it specifically implements the following steps:
[0093] After determining that the broadcast signal parameters are in a state of rapid deterioration, it is determined whether the current audio stream and the target audio stream are aligned; wherein, the current audio stream is the audio stream of the current radio station, and the target audio stream is the audio stream of the second pre-processed radio station; if the current audio stream and the target audio stream are not fully aligned, a fade-in / fade-out transition operation is performed to switch the current radio station to the second pre-processed radio station.
[0094] It should be understood that, in this embodiment of the invention, the processor 802 may be a Central Processing Unit (CPU), or it may be a Microcontroller Unit (MCU), other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0095] It will be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program includes program instructions and can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.
[0096] Therefore, the present invention also provides a storage medium. This storage medium can be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When executed by a processor, the program instructions cause the processor to perform the following steps:
[0097] When a station list update is detected, all audio broadcast frequencies are scanned based on the current station's identification encoding information to obtain candidate stations that meet signal quality requirements. These candidate stations are then stored in a preset audio buffer. It is then determined whether the candidate station's encoding format matches the target encoding format. If not, the candidate station is encoded according to the target encoding format to obtain a first pre-processed station. The current audio stream and candidate audio streams are timestamped to obtain a second pre-processed station. Here, the current audio stream is the audio stream of the current station, and the candidate audio stream is the audio stream of the first pre-processed station. When a sharp deterioration in the broadcast signal parameters of the current station is detected, the second pre-processed station is immediately activated.
[0098] In one embodiment, when the processor executes the program instructions to implement the step of scanning all audio broadcast frequencies according to the current station's identification encoding information to obtain candidate stations that meet the signal quality requirements when an update to the station list is detected, the specific implementation is as follows:
[0099] The system monitors the update status of the radio station list in real time. When an update is detected, it scans all audio broadcast frequencies based on the current radio station's identification and encoding information to obtain multiple initial candidate radio stations. The system then selects the candidate radio stations from the multiple initial candidate radio stations according to a preset signal quality filtering strategy.
[0100] In one embodiment, when the processor executes the program instructions to select candidate radio stations from a plurality of initial candidate radio stations according to a preset signal quality screening strategy, it specifically implements the following steps:
[0101] Intermediate candidate radio stations are selected from a plurality of initial candidate radio stations based on the RSSI threshold in the signal quality screening strategy; candidate radio stations are selected from a plurality of intermediate candidate radio stations based on the CNR threshold in the signal quality screening strategy.
[0102] In one embodiment, after executing the program instructions to perform the step of scanning all audio broadcast frequencies according to the current station's identification encoding information to obtain candidate stations that meet the signal quality requirements when the station list is detected to be updated, the processor further performs the following steps:
[0103] If no candidate radio station that meets the signal quality requirements is found, then alternative radio stations that meet the signal response requirements are obtained based on the service link information of the current radio station; the alternative radio stations are sorted according to a preset priority rule; and the alternative radio station with the highest priority after sorting is selected as the candidate radio station.
[0104] In one embodiment, when the processor executes the program instructions to obtain alternative radio stations that meet the signal response requirements based on the current radio station's service link information, it specifically implements the following steps:
[0105] At least one initial candidate radio station is obtained based on the service link information of the current radio station; candidate radio stations are selected from the multiple initial candidate radio stations according to the response time threshold in the signal response requirements.
[0106] In one embodiment, when the processor executes the program instructions to immediately activate the second preprocessed radio station step when a sharp deterioration in the broadcast signal parameters of the current radio station is detected, the specific steps are as follows:
[0107] The broadcast signal parameters of the current radio station are monitored periodically according to a preset monitoring cycle. When the RSSI drop rate of the broadcast signal parameters is less than a first preset threshold, or the CNR value of the broadcast signal parameters suddenly drops to a second preset threshold, it is determined that the broadcast signal parameters are in a state of rapid deterioration. After determining that the broadcast signal parameters are in a state of rapid deterioration, the second pre-processed radio station is immediately activated.
[0108] In one embodiment, when the processor executes the program instructions to immediately activate the second preprocessed radio station step after determining that the broadcast signal parameters are in a state of rapid deterioration, the specific steps are as follows:
[0109] After determining that the broadcast signal parameters are in a state of rapid deterioration, it is determined whether the current audio stream and the target audio stream are aligned; wherein, the current audio stream is the audio stream of the current radio station, and the target audio stream is the audio stream of the second pre-processed radio station; if the current audio stream and the target audio stream are not fully aligned, a fade-in / fade-out transition operation is performed to switch the current radio station to the second pre-processed radio station.
[0110] The storage medium can be any computer-readable storage medium capable of storing program code, such as a USB flash drive, portable hard drive, read-only memory (ROM), magnetic disk, or optical disk.
[0111] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0112] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of each unit is merely a logical functional division, and there may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.
[0113] The steps in the method of this invention can be adjusted, merged, or reduced in order according to actual needs. The units in the device of this invention can be merged, divided, or reduced according to actual needs. Furthermore, the functional units in the various embodiments of this invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0114] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
[0115] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A DAB link optimization method, characterized in that, The method includes: When the radio station list is updated, all audio broadcast frequencies are scanned according to the current radio station's identification and encoding information to obtain candidate radio stations that meet the signal quality requirements. After storing the candidate radio stations in a preset audio buffer, it is determined whether the encoding format of the candidate radio stations is the target encoding format. If not, the candidate radio station is encoded and converted according to the target encoding format to obtain the first preprocessed radio station; The current audio stream and candidate audio streams are timestamped to obtain the second preprocessed radio station; wherein, the current audio stream is the audio stream of the current radio station, and the candidate audio stream is the audio stream of the first preprocessed radio station; When a sharp deterioration in the broadcast signal parameters of the current radio station is detected, the second pre-processed radio station is immediately activated.
2. The DAB link optimization method according to claim 1, characterized in that, When an update to the radio station list is detected, all audio broadcast frequencies are scanned based on the current station's identification encoding information to obtain candidate stations that meet the signal quality requirements, including: Monitor the update status of the radio station list in real time; When an update to the radio station list is detected, all audio broadcast frequencies are scanned based on the current radio station's identification and encoding information to obtain multiple initial candidate radio stations. The candidate radio stations are selected from a plurality of initial candidate radio stations according to a preset signal quality screening strategy.
3. The DAB link optimization method according to claim 2, characterized in that, The step of selecting candidate radio stations from a plurality of initial candidate radio stations according to a preset signal quality screening strategy includes: Intermediate candidate stations are selected from a plurality of initial candidate stations based on the RSSI threshold in the signal quality screening strategy; Candidate stations are selected from a plurality of intermediate candidate stations based on the CNR threshold in the signal quality screening strategy.
4. The DAB link optimization method according to claim 1, characterized in that, When an update to the radio station list is detected, after scanning all audio broadcast frequencies based on the current radio station's identification encoding information to obtain candidate radio stations that meet the signal quality requirements, the process further includes: If no candidate radio station that meets the signal quality requirements is found, alternative radio stations that meet the signal response requirements will be obtained based on the service link information of the current radio station. The candidate radio stations are sorted according to a preset priority rule; The candidate radio station with the highest priority after sorting is selected as the candidate radio station.
5. The DAB link optimization method according to claim 4, characterized in that, The step of obtaining alternative radio stations that meet the signal response requirements based on the current radio station's service link information includes: Obtain at least one initial alternative radio station based on the current radio station's service link information; Candidate stations are selected from a plurality of initial candidate stations based on the response time threshold in the signal response requirements.
6. The DAB link optimization method according to claim 1, characterized in that, The step of immediately activating the second pre-processed radio station when a sharp deterioration in the broadcast signal parameters of the current station is detected includes: The broadcast signal parameters of the current radio station are monitored periodically according to the preset monitoring cycle; When the rate of decrease of RSSI in the broadcast signal parameters is less than the first preset threshold, or the CNR value in the broadcast signal parameters suddenly drops to more than the second preset threshold, it is determined that the broadcast signal parameters are in a state of rapid deterioration. Once the broadcast signal parameters are determined to be in a state of rapid deterioration, the second pre-processed radio station is immediately activated.
7. The DAB link optimization method according to claim 6, characterized in that, The step of immediately activating the second pre-processed radio station after determining that the broadcast signal parameters are in a state of rapid deterioration includes: After determining that the broadcast signal parameters are in a state of rapid deterioration, it is determined whether the current audio stream and the target audio stream are aligned; wherein, the current audio stream is the audio stream of the current radio station, and the target audio stream is the audio stream of the second preprocessed radio station; If the current audio stream and the target audio stream are not fully aligned, a fade-in / fade-out transition operation is performed to switch the current station to the second pre-processed station.
8. A DAB link optimization device, characterized in that, The device includes: The scanning unit is used to scan all audio broadcast frequencies according to the identification and encoding information of the current radio station when the radio station list is updated, so as to obtain candidate radio stations that meet the signal quality requirements. The judgment unit is used to determine whether the encoding format of the candidate radio station is the target encoding format after storing the candidate radio station in a preset audio buffer. A conversion unit is used to perform encoding conversion on the candidate radio station according to the target encoding format if the candidate radio station is not the target radio station, so as to obtain a first preprocessed radio station. An alignment unit is used to align the timestamps of the current audio stream and the candidate audio streams to obtain a second pre-processed radio station; wherein, the current audio stream is the audio stream of the current radio station, and the candidate audio stream is the audio stream of the first pre-processed radio station; The activation unit is used to immediately activate the second pre-processed radio station when a sharp deterioration in the broadcast signal parameters of the current radio station is detected.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the DAB link optimization method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which includes program instructions that, when executed by a processor, cause the processor to perform the DAB link optimization method as described in any one of claims 1-7.
