Method, device and apparatus for implementing radio replacement frequency function

CN122993745APending Publication Date: 2026-10-27BEI DOU ZHI LIAN KE JI YOU XIAN GONG SI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611218153.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-12
Publication Date
2026-10-27

AI Technical Summary

Technical Problem

缺点一:替代频率切换时无法确认同一电台身份,可能切换到非本电台的替代频率

Benefits of technology

[0019]本发明实施例提供了一种收音机替代频率功能的实现方法、装置及设备,方法包括从接收到的无线数据广播信息中提取备用频率信息,对备用频率信息进行去重校验后,生成替代频率列表;进行前置条件检查,以确定是否允许执行替代频率切换;若前置条件检查通过,则周期性监测当前接收频率的信号质量,若信号质量满足切换条件,则启动替代频率切换流程;对替代频率列表中的各替代频率进行频段及信号监测,得到候选替代频率并获取候选替代频率对应的节目识别信息;将候选替代频率对应的节目识别信息与当前接收频率对应的节目识别信息进行对比,得到对比结果;根据对比结果判断是否切换至候选替代频率。通过电台身份验证、连续多次检测及协同管理,解决了串台、误切换、切换中断及操作冲突问题,提高了收音机替代频率切换的准确性和稳定性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122993745A_ABST
    Figure CN122993745A_ABST
Patent Text Reader

Abstract

The application discloses a method, device and equipment for realizing a radio alternative frequency function, and comprises the following steps: extracting standby frequency information from wireless data broadcast information, generating an alternative frequency list after de-duplication verification; performing precondition checking; if the precondition checking is passed, periodically monitoring the signal quality of a current receiving frequency, starting a switching process when a switching condition is met; performing frequency band and signal monitoring on the alternative frequency list, obtaining a candidate alternative frequency and acquiring program identification information of the candidate alternative frequency; comparing the program identification information of the candidate alternative frequency with program identification information of the current receiving frequency; and judging whether to switch according to the comparison result. Through radio station identity verification, continuous multiple detection and state machine management, the application solves the problems of station connection, false switching, switching interruption and operation conflict, and improves the accuracy and stability of radio alternative frequency switching.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle radio signal processing technology, and in particular to a method, apparatus and device for implementing radio frequency substitution function. Background Technology

[0002] RDS (Radio Data System) is a digital information system developed by the European Broadcasting Union (EBU). It transmits supplementary data information via a subcarrier of the FM broadcast signal. The RDS standard defines the AF (Alternative Frequencies) function, which aims to automatically switch to the same station's broadcast signal on another frequency when the signal quality of the radio's current receiving frequency deteriorates, thus ensuring uninterrupted listening.

[0003] In the RDS standard, AF information is transmitted via Group Type 0A data groups. Each 0A group contains four data blocks (Blocks 0-3), with Block 3 carrying the coded values ​​for two alternative frequencies. The coded values ​​range from 1 to 204, corresponding to the VHF bands of 87.5MHz to 107.9MHz (each step being 0.1MHz). A complete AF code table can contain up to 25 alternative frequencies.

[0004] In existing technical solutions, the typical implementation of AF (Automatic Feedback) function is as follows: 1. The radio chip obtains RDS data through the RDS decoder, and the software reads RDS data blocks periodically; 2. Extract the AF frequency encoding value from Block 3, parse it into the actual frequency, and store it in the replacement frequency table; 3. Periodically check the signal quality of the current frequency (e.g., RSSI received signal strength indicator); 4. When the signal quality is below the threshold, traverse the alternative frequency table and tune to each alternative frequency in turn; 5. Detect the signal quality at each alternative frequency and select a frequency that meets the signal requirements for switching.

[0005] The drawbacks of existing technical solutions are: Disadvantage 1: When switching alternative frequencies, it is impossible to confirm the identity of the same radio station, and it may switch to an alternative frequency that is not the original station.

[0006] The current approach selects alternative frequencies solely based on signal strength, without verifying whether the alternative frequencies belong to the same broadcast program. Different radio stations may share the same frequency (in different regions), and switching based solely on signal strength could lead to crosstalk.

[0007] Disadvantage 2: The signal quality detection lacks stability assessment, and is prone to triggering unnecessary switching due to instantaneous signal fluctuations.

[0008] Existing solutions typically trigger AF switching when a weak signal is detected in a single instance. However, during actual driving, signal strength fluctuates instantaneously due to factors such as obstruction and multipath effects, making it easy to misjudge a single detection.

[0009] Disadvantage 3: The lack of deduplication verification during the replacement frequency table reception process may lead to duplicate storage of the frequency table.

[0010] Current solutions typically append newly received frequencies directly to the AF code table without checking for duplicate frequencies. This leads to frequency table redundancy and increases unnecessary time overhead during subsequent traversal and switching.

[0011] Disadvantage 4: During the frequency replacement process, inaccurate signal quality detection may cause erroneous switching, resulting in station reception interruption.

[0012] The existing solution may fail to accurately detect the signal quality of a certain alternative frequency when iterating through alternative frequencies, and switch to an alternative frequency with poor signal. Furthermore, it may fail to restore the tuner to the original receiving frequency in time, which may cause the radio to be interrupted or interrupted by other stations during the switching process.

[0013] Disadvantage 5: The AF function is not deeply coupled with the RDS state machine, which may cause conflicts during operations such as searching and preset.

[0014] The existing AF function is usually operated as an independent module, without considering the mutual exclusion relationship with other radio operations (such as manual station search, preset station operation, frequency setting, etc.), which may cause conflicts when the user operates. Summary of the Invention

[0015] The problem solved by this invention is to provide a method, apparatus, and device for implementing a radio frequency replacement function.

[0016] In a first aspect, embodiments of the present invention provide a method for implementing a radio frequency substitution function, comprising: The backup frequency information is extracted from the received wireless data broadcast information. After deduplication verification of the backup frequency information, a list of alternative frequencies is generated. Perform a prerequisite check to determine whether an alternative frequency switch is permitted. If the precondition check passes, the signal quality of the current receiving frequency is periodically monitored. If the signal quality meets the switching conditions, the alternative frequency switching process is initiated. Frequency band and signal monitoring are performed on each alternative frequency in the alternative frequency list to obtain candidate alternative frequencies and acquire program identification information corresponding to the candidate alternative frequencies. The program identification information corresponding to the candidate replacement frequency is compared with the program identification information corresponding to the current receiving frequency to obtain the comparison result; Based on the comparison results, determine whether to switch to the candidate replacement frequency.

[0017] Secondly, embodiments of the present invention also provide an apparatus for implementing a radio frequency substitution function, used to implement the radio frequency substitution function implementation method described in the first aspect, the apparatus comprising: The deduplication verification module is used to extract backup frequency information from the received wireless data broadcast information, perform deduplication verification on the backup frequency information, and generate a list of alternative frequencies. The collaborative management module is used to perform precondition checks to determine whether alternative frequency switching is allowed. The signal quality monitoring module is used to periodically monitor the signal quality of the current receiving frequency if the precondition check passes, and to initiate the alternative frequency switching process if the signal quality meets the switching conditions. The alternative frequency signal monitoring module is used to monitor the frequency band and signal of each alternative frequency in the alternative frequency list, obtain candidate alternative frequencies, and acquire program identification information corresponding to the candidate alternative frequencies. The radio station authentication module is used to compare the program identification information corresponding to the candidate replacement frequency with the program identification information corresponding to the current receiving frequency to obtain a comparison result. The switching module is used to determine whether to switch to the candidate replacement frequency based on the comparison results.

[0018] Thirdly, embodiments of the present invention also provide a radio device, the device including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; The steps of the method for implementing the radio frequency substitution function as described in the first aspect, when the processor executes a program stored in memory.

[0019] This invention provides a method, apparatus, and device for implementing a radio frequency alternative function. The method includes extracting backup frequency information from received radio data broadcast information; generating a backup frequency list after deduplication verification of the backup frequency information; performing a precondition check to determine whether alternative frequency switching is allowed; if the precondition check passes, periodically monitoring the signal quality of the currently received frequency; if the signal quality meets the switching conditions, initiating the alternative frequency switching process; monitoring the frequency band and signal of each alternative frequency in the alternative frequency list to obtain candidate alternative frequencies and acquire the program identification information corresponding to the candidate alternative frequencies; comparing the program identification information corresponding to the candidate alternative frequencies with the program identification information corresponding to the currently received frequency to obtain a comparison result; and determining whether to switch to the candidate alternative frequency based on the comparison result. Through radio station authentication, continuous multiple detections, and collaborative management, the methods solve problems such as cross-channel interference, erroneous switching, switching interruptions, and operational conflicts, improving the accuracy and stability of radio frequency alternative switching. 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 implementation method of the radio frequency substitution function provided in this embodiment of the invention; Figure 2 A sub-flowchart of the method for implementing the radio frequency replacement function provided in an embodiment of the present invention; Figure 3 A sub-flowchart of the method for implementing the radio frequency replacement function provided in an embodiment of the present invention; Figure 4 A sub-flowchart of the method for implementing the radio frequency replacement function provided in an embodiment of the present invention; Figure 5 A sub-flowchart of the method for implementing the radio frequency replacement function provided in an embodiment of the present invention; Figure 6 A sub-flowchart of the method for implementing the radio frequency replacement function provided in an embodiment of the present invention; Figure 7 A sub-flowchart of the method for implementing the radio frequency replacement function provided in an embodiment of the present invention; Figure 8 A sub-flowchart of the method for implementing the radio frequency replacement function provided in an embodiment of the present invention; Figure 9A schematic block diagram of a device for implementing a radio frequency replacement function according to an embodiment of the present invention; Figure 10 This is a schematic block diagram of a radio device provided in an embodiment of the present invention. Detailed Implementation

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

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

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

[0025] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0026] It should also be noted that, unless otherwise explicitly specified and limited, terms such as "installation," "connection," "linking," "fixing," and "setting" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. When an component is referred to as being "on" or "below" another component, the component can be located "directly" or "indirectly" on the other component, or there may be one or more intermediary components. The terms "first," "second," "third," etc., are only for the convenience of describing this technical solution and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, features defined with "first," "second," "third," etc., may explicitly or implicitly include one or more of that feature. For those skilled in the art, the specific meaning of the above terms in this invention can be understood according to the specific circumstances.

[0027] Please see Figure 1 This invention provides a method for implementing a radio frequency replacement function, which can be applied to the field of signal processing technology for vehicle radio reception. The implementation method includes steps S1 to S6.

[0028] S1. Extract backup frequency information from the received wireless data broadcast information, perform deduplication verification on the backup frequency information, and generate a list of alternative frequencies.

[0029] In this embodiment, backup frequency information is extracted from the received radio data broadcast information. After deduplication verification of the backup frequency information, an alternative frequency list is generated. The radio data broadcast information is digital information transmitted via the subcarrier of an FM broadcast signal, which includes backup frequency information. This backup frequency information indicates other transmission frequencies that are the same as the current radio program, allowing switching to other transmission frequencies to continue listening when the signal quality of the currently received frequency deteriorates. The alternative frequency list is a data table used to store the valid backup frequencies parsed from the radio data broadcast information. This list is maintained in the radio's memory and has a maximum capacity of twenty-five frequency entries.

[0030] See also Figure 2 Specifically, the step of extracting backup frequency information from received wireless data broadcast information, performing deduplication verification on the backup frequency information, and generating a replacement frequency list includes: S11. Extract the first frequency encoding byte and the second frequency encoding byte from the third data block of the spare frequency data group in the wireless data broadcast information.

[0031] In this embodiment, wireless data broadcast information is organized by data groups, with a spare frequency data group specifically used to transmit spare frequency information. Each spare frequency data group contains four data blocks, and the third data block carries two 8-bit frequency encoding bytes. The first frequency encoding byte (Byte0) represents the control information of the currently tuned reference frequency or spare frequency code table, and the second frequency encoding byte (Byte1) represents a spare frequency paired with the reference frequency. In conventional transmission, the first frequency encoding byte encodes the actual frequency of the current serving transmission point, and the second frequency encoding byte encodes the spare frequency used by the same broadcast program at other transmission points. These are organized in pairs, with reference frequencies and spare frequencies appearing together. Since the first frequency encoding byte is also used to carry header information or frequency band identification information within a specific encoding value range, semantic recognition is performed on the first frequency encoding byte first, and then subsequent verification is performed on each of the two bytes separately. Simultaneously, since the same actual frequency may be carried by the first frequency encoding byte as a reference frequency in one data group or by the second frequency encoding byte as a spare frequency in another data group, this embodiment performs deduplication verification on each of the two bytes separately to ensure the uniqueness of each frequency in the alternative frequency list.

[0032] S12. Determine whether the first frequency encoded byte is the header information of the backup frequency code table, and obtain the first determination result.

[0033] In this embodiment, the frequency code table header information is used to indicate the total number of subsequent backup frequencies, so that the receiving end can know in advance the scale of backup frequencies to be received. Specifically, when the value of the first frequency encoding byte is in the range of 224 to 249, it is determined to be backup frequency code table header information. Among them, 224 indicates that the current station has no backup frequencies; 225 to 249 indicate that there are 1 to 25 backup frequencies to be received, respectively. By identifying the header information, it can be determined whether the backup frequency code table has started transmission and the number of backup frequencies to be received, thereby ensuring compatibility with the transmission format with a header.

[0034] It should be noted that 224 is a special value in the header, while 225~249 are regular header values. 224 and 225~249 belong to the same type of control information in the protocol, namely, the header information of the spare frequency code table. They are distinguished from the effective FM band frequency coding values ​​(0~204) and the longwave or medium wave band flag values ​​(250). Including 224 in the header judgment range means complete coverage of the protocol control code bands, not just the header of a spare frequency.

[0035] S13. If the first judgment result is negative, then determine whether the first frequency encoding byte is a long wave or medium wave frequency band flag value, and obtain the second judgment result.

[0036] In this embodiment, if the first determination result is negative, then it is determined whether the first frequency encoding byte is a long-wave or medium-wave band flag value, thus obtaining a second determination result. When the value of the first frequency encoding byte is 250, it is determined to be a long-wave or medium-wave band flag value, indicating that the second frequency encoding byte encodes a frequency in the long-wave or medium-wave band, rather than an FM band frequency. Since the backup frequency switching function is only applicable to the FM band, this embodiment distinguishes between frequency band types to avoid mixing frequency bands that are not suitable for backup frequency switching into subsequent processing flows. S14. If the second judgment result is yes, then discard the first frequency encoded byte and the second frequency encoded byte.

[0037] In this embodiment, if the second determination result is yes, the first frequency encoded byte and the second frequency encoded byte are discarded. Since long-wave or medium-wave frequency bands do not support backup frequency switching, when a long-wave or medium-wave frequency band flag value is identified, the corresponding first frequency encoded byte and second frequency encoded byte are directly discarded without further deduplication verification and validity judgment, thereby avoiding the incorrect inclusion of non-FM frequency band frequencies in the alternative frequency list.

[0038] S15. If the first judgment result is yes or the second judgment result is no, determine whether the first frequency encoding byte or the second frequency encoding byte already exists in the alternative frequency list, and obtain a third judgment result.

[0039] In this embodiment, if the first judgment result is yes or the second judgment result is no, it is determined whether the first frequency encoded byte or the second frequency encoded byte already exists in the alternative frequency list, and a third judgment result is obtained. Specifically, if the first judgment result is yes, it indicates that the first frequency encoded byte is header information and the second frequency encoded byte is the paired backup frequency data. In this case, deduplication verification is performed on the first frequency encoded byte and the second frequency encoded byte respectively. If the second judgment result is no, it indicates that the first frequency encoded byte is neither header information nor a long-wave or medium-wave frequency band flag value. In this case, both the first frequency encoded byte and the second frequency encoded byte are backup frequency data. Similarly, deduplication verification is performed on the two bytes respectively. Deduplication verification is to traverse the currently stored alternative frequency list and compare the first frequency encoded byte and the second frequency encoded byte one by one to see if they already exist in the list. In the backup frequency transmission method of the wireless data broadcast standard, the same actual frequency may be carried by the first frequency encoding byte as a reference frequency in a certain data group, or it may be carried by the second frequency encoding byte as a backup frequency in another data group. Therefore, deduplication verification of the two bytes can cover all possible repetition scenarios and ensure the uniqueness of the alternative frequency list.

[0040] S16. If the third judgment result is yes, then the corresponding frequency encoding byte is marked as invalid.

[0041] In this embodiment, if the third determination result is yes, the corresponding frequency-encoded byte is marked as invalid. When it is determined that a certain frequency-encoded byte already exists in the alternative frequency list, the frequency-encoded byte is marked as invalid value 255. Invalid value 255 is a preset padding code used to indicate that the frequency-encoded byte is duplicate data and will not be stored repeatedly, thereby avoiding redundant entries in the alternative frequency list.

[0042] S17. If the third judgment result is negative, determine whether the first frequency encoding byte or the second frequency encoding byte is a valid frequency modulation band frequency encoding value, and obtain the fourth judgment result.

[0043] In this embodiment, if the third judgment result is negative, it is determined whether the first frequency encoding byte or the second frequency encoding byte is a valid FM band frequency encoding value, resulting in a fourth judgment result. A valid FM band frequency encoding value (VHF) refers to the encoding value corresponding to an actual usable FM broadcast frequency. When the encoding value of the frequency encoding byte is less than 205, it is determined to be a valid FM band frequency encoding value. According to FM band broadcasting standards, the FM frequency range is typically 87.5MHz to 107.9MHz. The conversion relationship between the encoding value and the actual frequency is: the actual frequency equals 87.5MHz plus the encoding value multiplied by 0.1MHz. For example, when the encoding value is 18, the corresponding actual frequency is 89.3MHz; when the encoding value is 0, the corresponding actual frequency is 87.5MHz. Through validity judgment, it can be ensured that only the encoding value corresponding to the actual FM broadcast frequency is included in the alternative frequency list.

[0044] S18. If the fourth judgment result is yes, then the corresponding frequency encoding byte is stored in the alternative frequency list.

[0045] In this embodiment, if the fourth determination result is yes, the corresponding frequency encoding byte is stored in the alternative frequency list. When the frequency encoding byte is determined to be a valid FM band frequency encoding value, it is stored in the alternative frequency list, and the frequency count in the alternative frequency list is incremented by one. During storage, it is necessary to check whether the alternative frequency list has reached its maximum capacity. If it is full (25 entries), no new frequency encoding bytes are added. The maximum capacity of 25 matches the maximum indication quantity of 25 in the spare frequency code table header information, ensuring that the list capacity is consistent with the transmission protocol.

[0046] If the fourth judgment result is negative, then the corresponding frequency code byte will not be stored in the alternative frequency list.

[0047] In this way, by performing header identification, frequency band filtering, deduplication verification, and validity judgment on the backup frequency information, the uniqueness and validity of each frequency in the alternative frequency list are ensured, avoiding redundancy in the list caused by the same frequency appearing repeatedly in different roles, and also avoiding the mistaken storage of control codes or non-FM band frequencies as available frequencies. This reduces the repeated detection of the same frequency and the traversal of invalid frequencies in the subsequent alternative frequency switching process, thereby improving the efficiency and accuracy of backup frequency switching.

[0048] S2. Perform a prerequisite check to determine whether alternative frequency switching is permitted.

[0049] In this embodiment, a precondition check is performed to determine whether alternative frequency switching is permitted. The precondition check involves verifying the radio's current operating status item by item using a preset multi-condition judgment strategy. This ensures that the alternative frequency switching process only initiates when the system is idle and all conditions are met, avoiding conflicts between alternative frequency switching and other user operations. Since alternative frequency switching involves changing the tuner's frequency, if it is performed simultaneously with manual station searching, preset station recall, or frequency setting, it will cause tuner status confusion or interruption of user operations. Therefore, this embodiment performs status confirmation before entering signal quality monitoring.

[0050] See also Figure 3 In some embodiments, the precondition check to determine whether to allow the alternative frequency switch includes: S21. Check the current state based on a preset multi-condition judgment strategy.

[0051] In this embodiment, the multi-condition judgment strategy includes: judging whether the alternative frequency function switch is turned on, whether the current band is an FM band, whether the alternative frequency list is not empty, whether it is not in the station search state, whether the program identification information of the current station has been obtained, and whether it is not in the frequency setting process.

[0052] The multi-condition judgment strategy includes the above six parallel conditions. The subsequent frequency switching procedure is only allowed to proceed when all conditions are met simultaneously. The specific meanings of each condition are as follows: Alternate Frequency Function Switch On / Off: The alternate frequency function switch is a user-controllable enable flag used to enable or disable the alternate frequency switching function. If the user turns off this switch, the radio will not perform any monitoring or switching operations related to alternate frequencies, thus satisfying the user's choice requirements.

[0053] Is the current band an FM band? Replacement frequency information is transmitted only through the subcarrier of the FM broadcast signal. Medium wave and long wave bands do not support wireless data broadcasting. Therefore, if the current band is not an FM band, there is no data basis to perform replacement frequency switching.

[0054] Whether the alternative frequency list is not empty: The alternative frequency list is the set of valid backup frequencies generated in step S1. If the list is empty, it indicates that the current radio station has not broadcast backup frequency information or has not yet finished receiving it. At this time, there is no available target frequency to switch to, and there is no need to start the monitoring process.

[0055] Is it not in search mode? Search mode refers to the state in which the tuner is performing an automatic or manual frequency search. If it is in search mode, the tuner is traversing frequency bands to find available stations. Performing an alternative frequency switch at this time will interfere with the search process, resulting in abnormal search results or frequency lock errors.

[0056] Has the program identification information of the current radio station been obtained? Program identification information is coded information used to uniquely identify broadcast programs in wireless data broadcasting, and it is continuously transmitted by the broadcasting station in its transmitted signal. If the program identification information of the current radio station has not been obtained, the station authentication will not be able to be completed after subsequent handover, and therefore the conditions for initiating the handover process are not met.

[0057] Is the user not currently in the frequency setting process? The frequency setting process refers to the operation process in which the user directly specifies the receiving frequency through manual input or preset station call-up. If the user is currently in the frequency setting process, it means that the user is actively controlling the listening frequency, and performing automatic frequency replacement switching at this time would conflict with the user's operating intention.

[0058] The above six conditions together form an AND logic relationship, meaning that if any condition is not met, the frequency switching process will be blocked, thereby ensuring that tuner resources and user experience are not unexpectedly taken over by the automatic switching logic.

[0059] S22. If any condition in the multi-condition judgment strategy is negative, the multi-condition judgment strategy based on the preset condition is re-executed after a second preset time to check the current state.

[0060] In this embodiment, if any condition in the multi-condition judgment strategy is not determined, the multi-condition judgment strategy based on the preset condition is re-executed after a second preset time to check the current state. The second preset time can be set according to system scheduling requirements, for example, 1 second. The delayed retry mechanism can avoid high-frequency invalid loop detection when the preconditions are not met, reduce processor utilization, and give users sufficient response time for operation or system state transition. For example, when a user is performing a station search operation, the radio checks whether the station search status has ended again after waiting for 1 second, which ensures the continuity of detection and avoids continuous interference with user operation.

[0061] S23. If all conditions in the multi-condition judgment strategy are judged as yes, then the precondition check is confirmed to be passed.

[0062] In this embodiment, if all conditions in the multi-condition judgment strategy are judged as yes, then the precondition check is confirmed to have passed. At this time, the radio is in the FM band, the alternative frequency function is enabled, the alternative frequency list is ready, no station search or frequency setting operation has been performed, and the program identification information of the current station has been obtained. The system status allows the execution of the alternative frequency switching process, and the process proceeds to step S3 to start periodic signal quality monitoring.

[0063] By using a pre-defined multi-condition judgment strategy to perform pre-condition checks, the frequency replacement process is strictly managed to mutually exclude operations such as station search, frequency setting, and user on / off status. This ensures that frequency replacement is only initiated when the system is idle and the data is complete, fundamentally avoiding resource conflicts and state chaos between automatic switching and user operations, and improving the overall stability and reliability of the radio.

[0064] S3. If the precondition check passes, the signal quality of the current receiving frequency is periodically monitored. If the signal quality meets the switching conditions, the alternative frequency switching process is initiated.

[0065] In this embodiment, if the precondition check passes, the signal quality of the current receiving frequency is periodically monitored. If the signal quality meets the switching conditions, the alternative frequency switching process is initiated. Specifically, the periodic monitoring is a cyclic detection process triggered by a system timer at a preset period. By acquiring the received signal quality parameters of the current receiving frequency, the signal degradation is comprehensively evaluated. When signal quality degradation is detected, switching is not triggered immediately. Instead, a continuous multi-detection mechanism is initiated. Only when the signal quality is continuously lower than the preset standard multiple times is the switching condition confirmed to be met, thereby effectively avoiding erroneous switching caused by instantaneous signal fluctuations.

[0066] See also Figure 4 In some embodiments, the periodic monitoring of the signal quality of the current received frequency, and if the signal quality meets the switching conditions, initiating an alternative frequency switching process, includes: S31. Periodically acquire the received signal quality parameters of the current receiving frequency, determine whether the received signal quality parameters indicate signal quality degradation, and obtain the fifth judgment result.

[0067] In this embodiment, the received signal quality parameters at the current receiving frequency are periodically acquired, and it is determined whether the received signal quality parameters indicate signal quality degradation, resulting in a fifth determination result. The received signal quality parameters are comprehensive signal evaluation indicators obtained through the tuner driver interface, including parameters such as received signal strength indication, signal-to-noise ratio (SNR), and frequency offset. The received signal strength indication reflects the electromagnetic wave intensity at the current receiving frequency, the SNR reflects the ratio of useful information to noise in the signal, and the frequency offset reflects the degree of deviation between the actual receiving frequency and the nominal frequency. Determining whether the received signal quality parameters indicate signal quality degradation involves comparing these parameters with preset signal quality thresholds. For example, if the received signal strength indication is lower than a preset strength threshold, or the SNR is lower than a preset SNR threshold, or the frequency offset exceeds a preset offset range, signal quality degradation is determined. The preset signal quality thresholds can be calibrated based on the actual electromagnetic environment and tuner performance to ensure a clear boundary between normal listening and signal edge conditions.

[0068] S32. If the fifth judgment result is negative, then after a first preset time delay, the periodic acquisition of the received signal quality parameters of the current receiving frequency is re-executed.

[0069] In this embodiment, if the fifth judgment result is negative, the periodic acquisition of the received signal quality parameters of the current receiving frequency is re-executed after a first preset time delay. A negative fifth judgment result indicates that the signal quality of the current receiving frequency is good, and there is no need to initiate an alternative frequency switch. At this time, the count value of continuous signal quality degradation is reset to zero to ensure that subsequent detection is not affected by the accumulation of historical degradation records, guaranteeing the independence of continuous detection, and the acquisition and judgment of signal quality parameters are re-executed after a first preset time delay. The first preset time can be set to 300 milliseconds. Periodic monitoring is performed at a lower frequency when the signal is good, which can capture signal changes in a timely manner and reduce processor usage and tuner interface access frequency.

[0070] S33. If the fifth judgment result is yes, then the count value of continuous degradation of signal quality is increased by one.

[0071] In this embodiment, if the fifth judgment result is yes, the count value of continuous signal quality degradation is incremented by one. A yes fifth judgment result indicates that signal quality degradation has been detected, but a single detection is insufficient to confirm continuous signal degradation; therefore, the count value of continuous signal quality degradation is incremented by one. This count value is a counter used to record the number of consecutive signal quality degradations. Its initial value is zero, and it increments each time signal degradation is detected, and resets to zero each time a good signal is detected, thereby achieving quantitative tracking of the persistence of signal degradation.

[0072] S34. Determine whether the count value has reached the preset threshold to obtain the sixth determination result.

[0073] In this embodiment, it is determined whether the count value reaches a preset threshold to obtain a sixth determination result. The preset threshold is a threshold value used to determine whether the signal quality is continuously deteriorating, for example, it is set to three times. Only when the count value of continuous signal quality deterioration reaches the preset threshold is it confirmed that the signal quality of the current receiving frequency is not a temporary fluctuation caused by instantaneous obstruction or multipath effect, but is indeed in a state of continuous deterioration.

[0074] S35. If the sixth judgment result is negative, then the process of periodically obtaining the received signal quality parameters of the current receiving frequency is repeated.

[0075] In this embodiment, if the sixth judgment result is negative, the periodic acquisition of the received signal quality parameters at the current receiving frequency is repeated. A negative sixth judgment result indicates that although the signal quality has deteriorated, it has not yet reached the criteria for continued deterioration. In this case, the acquisition and judgment of the received signal quality parameters are immediately repeated to track the changing trend of signal quality. Unlike the detection strategy when the signal is good, this stage does not involve a long delay but instead performs continuous monitoring at a higher frequency to ensure a rapid response when the signal continues to deteriorate.

[0076] S36. If the sixth judgment result is yes, then the alternative frequency switching process is started.

[0077] In this embodiment, if the sixth judgment result is yes, the alternative frequency switching process is initiated. A yes result indicates that the signal quality of the current received frequency has repeatedly fallen below a preset standard, confirming continuous signal degradation. At this point, the switching conditions are met, and the alternative frequency switching process is formally triggered, proceeding to step S4 to sequentially traverse the alternative frequency list.

[0078] In this way, by using periodic monitoring and continuous multiple detection mechanisms, single signal fluctuations and continuous signal degradation can be distinguished. The alternative frequency switching is only initiated after the signal quality has deteriorated continuously multiple times. This effectively avoids false triggering of switching caused by instantaneous scenarios such as vehicles passing through bridges, tunnels, or tall buildings blocking the signal, and significantly improves the reliability of the alternative frequency function and the stability of the listening experience.

[0079] S4. Perform frequency band and signal monitoring on each alternative frequency in the alternative frequency list to obtain candidate alternative frequencies and acquire program identification information corresponding to the candidate alternative frequencies.

[0080] In this embodiment, frequency band and signal monitoring are performed on each alternative frequency in the alternative frequency list to obtain candidate alternative frequencies and acquire program identification information corresponding to the candidate alternative frequencies. Specifically, the alternative frequency list is traversed sequentially, the encoded value of each alternative frequency is extracted in turn, and the corresponding actual frequency value is calculated. First, invalid frequencies that are the same as the current receiving frequency or exceed the current band range are excluded through frequency band validity verification. Then, a two-stage tuning detection strategy is used to evaluate the signal quality of the frequencies that pass the frequency band verification. Finally, program identification information corresponding to the candidate alternative frequencies that meet the signal quality standards is obtained.

[0081] See also Figure 5 In some embodiments, the step of performing frequency band and signal monitoring on each alternative frequency in the alternative frequency list to obtain candidate alternative frequencies and acquire program identification information corresponding to the candidate alternative frequencies includes: S41. Extract the encoding value of the next alternative frequency from the alternative frequency list in sequence, and calculate the actual frequency value of the candidate alternative frequency based on the encoding value.

[0082] In this embodiment, the encoded value of the next alternative frequency is extracted sequentially from the alternative frequency list, and the actual frequency value of the candidate alternative frequency is calculated based on the encoded value. Each alternative frequency in the alternative frequency list is stored in the form of an encoded value, which needs to be converted to an actual frequency value using a preset conversion formula before tuning. Specifically, the conversion formula is: actual frequency equals 87.5MHz plus the encoded value multiplied by 0.1MHz. For example, when the encoded value is 18, the corresponding actual frequency is 89.3MHz.

[0083] S42. Determine whether the actual frequency value is equal to the current receiving frequency or exceeds the current band range to obtain the seventh determination result.

[0084] In this embodiment, a seventh determination result is obtained by determining whether the actual frequency value is equal to the current receiving frequency or exceeds the current band range. If the actual frequency value is equal to the current receiving frequency, it indicates that the alternative frequency is the same as the current listening frequency, and no switching is required; if the actual frequency value exceeds the current band range, it indicates that the frequency is not within the tuning range currently supported by the radio, and tuning cannot be completed. The current band range refers to the upper and lower limits of the frequencies supported by the current band of the radio. For example, the FM band typically supports a range from 87.5MHz to 107.9MHz.

[0085] S43. If the seventh judgment result is yes, then the process of extracting the encoding value of the next alternative frequency from the alternative frequency list in sequence is repeated.

[0086] In this embodiment, if the seventh determination result is yes, then the process of extracting the encoded value of the next alternative frequency from the alternative frequency list in sequence is repeated. A yes result indicates that the alternative frequency is a currently received frequency or an invalid frequency outside the band range. Therefore, there is no need to tune or detect the frequency; the process is skipped and continues traversing the next alternative frequency in the alternative frequency list to improve traversal efficiency.

[0087] By performing band validity verification on the alternative frequencies, invalid frequencies that are the same as the current receiving frequency or are outside the band range are eliminated before tuning. This avoids unnecessary tuning operations and signal detection for these frequencies, reduces the number of invalid operations of the tuner and the time overhead of the processor, and enables the alternative frequency switching process to focus on the available frequencies that can truly improve the reception quality, significantly improving the efficiency of traversal switching.

[0088] See also Figure 6 In some embodiments, the step of performing frequency band and signal monitoring on each alternative frequency in the alternative frequency list to obtain candidate alternative frequencies and acquire program identification information corresponding to the candidate alternative frequencies further includes: S44. If the seventh judgment result is negative, then tune to the candidate replacement frequency in fast detection mode and obtain the first signal quality, determine whether the first signal quality is valid, and obtain the eighth judgment result.

[0089] In this embodiment, if the seventh judgment result is negative, the system is tuned to the candidate replacement frequency in fast detection mode and the first signal quality is obtained. The validity of the first signal quality is then determined to obtain the eighth judgment result. The fast detection mode (i.e., Check mode) is a fast, low-interference tuning detection method. The tuner quickly switches to the candidate replacement frequency, obtains the signal quality parameters of that frequency in a very short time, and immediately switches back to the current receiving frequency. The entire process is typically completed within tens of milliseconds, having minimal impact on the normal playback of the current radio station. The first signal quality is the preliminary signal quality assessment result of the candidate replacement frequency obtained through fast detection mode. By comparing it with a preset fast detection signal quality threshold, it is determined whether the candidate replacement frequency is worth further formal testing.

[0090] S45. If the eighth judgment result is negative, then the process of extracting the encoding value of the next alternative frequency from the alternative frequency list in sequence is repeated.

[0091] In this embodiment, if the eighth determination result is negative, the process of extracting the encoding value of the next alternative frequency from the alternative frequency list in sequence is repeated. A negative eighth determination result indicates that the signal quality of the candidate alternative frequency is poor and does not meet the conditions for further detection. Therefore, this frequency is skipped directly, and the process continues to traverse the next alternative frequency in the alternative frequency list, avoiding wasting time on frequencies with poor signal quality.

[0092] S46. If the eighth judgment result is yes, then tune to the candidate replacement frequency in the formal tuning mode and obtain the second signal quality, determine whether the second signal quality is valid, and obtain the ninth judgment result.

[0093] In this embodiment, if the eighth judgment result is yes, the system is tuned to the candidate replacement frequency in the formal tuning mode and the second signal quality is obtained. The validity of the second signal quality is then determined to obtain the ninth judgment result. The formal tuning mode (i.e., Normal mode) is the standard tuning method for the tuner. Compared to the fast detection mode, its tuning process is more stable, the signal lock time is longer, and the obtained signal quality parameters are more accurate and reliable. The second signal quality is the accurate signal quality evaluation result of the candidate replacement frequency obtained through the formal tuning mode. This is used to prevent signal quality detection errors caused by excessively fast switching in the fast detection mode, ensuring that subsequent switching decisions are based on accurate signal evaluation.

[0094] S47. If the ninth judgment result is negative, then revert to the current receiving frequency and re-execute the step of extracting the encoding value of the next alternative frequency in sequence from the alternative frequency list.

[0095] In this embodiment, if the ninth judgment result is negative, the process reverts to the current receiving frequency and re-executes the step of sequentially extracting the encoding value of the next alternative frequency from the alternative frequency list. A negative ninth judgment result indicates that the signal quality of the candidate alternative frequency in the formal tuning mode is still substandard. In this case, the tuner needs to revert to the current receiving frequency to restore the original normal listening state before continuing to check the next alternative frequency, ensuring that the system does not remain on an invalid frequency for an extended period when verification fails.

[0096] S48. If the ninth judgment result is yes, then obtain the program identification information corresponding to the candidate replacement frequency.

[0097] In this embodiment, if the ninth judgment result is yes, then the program identification information corresponding to the candidate replacement frequency is obtained. A yes result indicates that the candidate replacement frequency has passed signal quality detection in both the rapid initial screening and formal tuning confirmation stages. At this point, program identification information is extracted from the radio data broadcast information of the candidate replacement frequency for subsequent radio station authentication steps.

[0098] The two-stage tuning and testing strategy employs a rapid detection mode for initial screening and a formal tuning mode for confirmation. First, the rapid detection mode eliminates alternative frequencies with poor signal quality in a short time, minimizing the tuner's dwell time on non-target frequencies and reducing interference with normal listening. Then, the formal tuning mode precisely confirms the frequencies that passed the initial screening, avoiding detection errors caused by rapid switching. If any stage of verification fails, the system immediately reverts to the current receiving frequency, ensuring the radio maintains normal listening conditions throughout the switching process and preventing prolonged silence or crosstalk from other stations. This fundamentally solves the problem of listening interruptions during alternative frequency switching.

[0099] S5. Compare the program identification information corresponding to the candidate replacement frequency with the program identification information corresponding to the current receiving frequency to obtain the comparison result.

[0100] In this embodiment, the program identification information corresponding to the candidate replacement frequency is compared with the program identification information corresponding to the current receiving frequency to obtain a comparison result. Program identification information is a 16-bit encoded information defined in the wireless data broadcasting standard to uniquely identify a broadcast program, continuously transmitted by the broadcasting station in its transmission signal. The same broadcast program may be transmitted using the same frequency from different geographical locations. If switching is based solely on signal strength without verifying the station's identity, it may switch to other broadcast programs from other stations, leading to cross-channel interference. By comparing the program identification information corresponding to the candidate replacement frequency with the program identification information corresponding to the current receiving frequency, it is possible to verify whether the candidate replacement frequency belongs to the same broadcast program before the formal switching, fundamentally avoiding cross-channel interference.

[0101] See also Figure 7 In some embodiments, comparing the program identification information corresponding to the candidate replacement frequency with the program identification information corresponding to the current receiving frequency to obtain a comparison result includes: S51. Obtain the comparison mode setting information, determine whether the comparison mode setting information indicates strict mode, and obtain the tenth judgment result.

[0102] In this embodiment, comparison mode setting information is obtained, and it is determined whether the comparison mode setting information indicates strict mode (Regional switch on), resulting in a tenth determination result. The comparison mode setting information is a preset regional matching mode switch state in the radio, set by the user or system according to the broadcast coverage scenario. When the regional matching mode switch is on, the comparison mode setting information indicates strict mode, requiring the candidate replacement frequency to be the same program in the same broadcast region as the current station; when the regional matching mode switch is off, the comparison mode setting information indicates lenient mode (Regional switch off), allowing the candidate replacement frequency to be the same program in a different broadcast region than the current station, to accommodate cross-regional travel scenarios.

[0103] S52. If the tenth judgment result is yes, then the program identification information corresponding to the candidate replacement frequency is completely compared with the program identification information corresponding to the current receiving frequency to obtain the comparison result.

[0104] In this embodiment, if the tenth judgment result is yes, then the program identification information corresponding to the candidate replacement frequency is completely compared with the program identification information corresponding to the current receiving frequency to obtain the comparison result. The complete comparison means comparing all sixteen bits (i.e., PI Code) of the program identification information corresponding to the candidate replacement frequency with those corresponding to the program identification information corresponding to the current receiving frequency bit by bit. Only when the sixteen bits are completely identical is the comparison result considered consistent. This strict mode is suitable for scenarios where broadcast areas are clearly defined and cross-area handover is not required, ensuring that the switched station and the current station belong to the exact same broadcast transmission source.

[0105] S53. If the tenth judgment result is negative, then the program identification information corresponding to the candidate replacement frequency is compared with the program identification information corresponding to the current receiving frequency by a mask to obtain the comparison result.

[0106] In this embodiment, if the tenth judgment result is negative, the program identification information corresponding to the candidate replacement frequency is compared with the program identification information corresponding to the current receiving frequency using a mask to obtain the comparison result. The mask comparison involves filtering the program identification information using a preset mask and comparing only a portion of the encoded bits. Specifically, the program identification information is a 16-bit code, where the high four bits are the program type identifier, the middle four bits are the area code, and the low eight bits are the program code. In wireless data broadcasting standards, the area code is used to identify the transmission point of the same broadcast program in different geographical areas. When the same broadcast program is transmitted in different areas, the area code portion of the program identification information may be different, but the program code portion remains consistent. The mask comparison uses the mask binary 1111000011111111. The program identification information corresponding to the candidate replacement frequency and the program identification information corresponding to the current receiving frequency are respectively bitwise ANDed with the mask, masking the difference in the middle four bits of the area code, and only comparing the high four bits of the program type identifier and the low eight bits of the program code. If the codes after masking the area code are consistent, the comparison result is consistent; if they are inconsistent, the comparison result is inconsistent. The relaxed mode is suitable for cross-regional driving scenarios, such as when passing through different broadcast coverage areas while driving on a highway. It can correctly identify the alternative transmission frequencies of the same broadcast program in different areas to ensure uninterrupted listening across regions.

[0107] By acquiring the comparison mode setting information and performing a full comparison or mask comparison, the system can accurately match the same program within the same broadcast area in strict mode, avoiding signal confusion at area edges; in lenient mode, it can ignore area code differences, supporting seamless switching when traveling across areas. This flexible comparison mechanism fundamentally solves the problem of cross-channel interference caused by frequency reuse in different regions, while also meeting the needs of two typical scenarios: fixed-area listening and cross-area travel, improving the accuracy and applicability of alternative frequency switching.

[0108] S6. Determine whether to switch to the candidate replacement frequency based on the comparison results.

[0109] In this embodiment, the decision to switch to the candidate replacement frequency is based on the comparison result. Specifically, based on the comparison result obtained in step S5, if the comparison result is consistent, it indicates that the candidate replacement frequency and the current radio station belong to the same broadcast program and the signal quality meets the standard. At this time, frequency switching is performed and the frequency information after switching is saved. If the comparison result is inconsistent, it indicates that the candidate replacement frequency is not the replacement transmission frequency of the current radio station. At this time, the frequency immediately reverts to the current receiving frequency and continues to traverse the next replacement frequency to ensure that the original normal listening state is quickly restored when identity verification fails.

[0110] See also Figure 8In some instances, determining whether to switch to the candidate replacement frequency based on the comparison results includes: S61. Determine whether the comparison results are consistent to obtain the eleventh judgment result.

[0111] In this embodiment, the eleventh judgment result is obtained by determining whether the comparison result is consistent. The comparison result is generated by the full comparison or mask comparison in step S5. When the program identification information corresponding to the candidate replacement frequency and the program identification information corresponding to the current receiving frequency meet the corresponding comparison rules, the comparison result is consistent; otherwise, it is inconsistent.

[0112] S62. If the eleventh judgment result is yes, then switch to the candidate substitution frequency and write the candidate substitution frequency into the non-volatile memory.

[0113] In this embodiment, if the eleventh judgment result is yes, the system switches to the candidate replacement frequency and writes the candidate replacement frequency into non-volatile memory. A yes result indicates that the radio station authentication is successful, and the candidate replacement frequency is indeed the current radio station's replacement transmission frequency. At this time, the tuner is officially locked to the candidate replacement frequency, completing the frequency switch. Simultaneously, the candidate replacement frequency is written into non-volatile memory. Non-volatile memory refers to a storage unit in the radio that can retain data after power failure, such as real-time clock random access memory or flash memory. This memory is used to maintain the current frequency memory after the radio is turned off or powered off, so that it can be directly restored to that frequency upon the next power-on. Writing the new frequency into non-volatile memory ensures that even if the vehicle is turned off and restarted after the switch, the radio can automatically resume listening to the switched frequency. After the switch is complete, the band preset station identifier is cleared, the display interface is refreshed, and the station name reception flag is reset to re-receive station name information on the new frequency. Then, the replacement frequency switching state is reset, and periodic signal quality monitoring of the new frequency continues.

[0114] S63. If the eleventh judgment result is negative, then backtrack to the current receiving frequency and re-execute the sequential traversal of each alternative frequency in the alternative frequency list.

[0115] In this embodiment, if the eleventh judgment result is negative, the process reverts to the current receiving frequency and re-executes the sequential traversal of each alternative frequency in the alternative frequency list. A negative eleventh judgment result indicates that radio station authentication has failed, and the candidate alternative frequency is not the current radio station's alternative transmission frequency; it may be occupied by another radio station. At this time, the tuner reverts to the current receiving frequency before the switch, waits for the revert operation to complete, and then re-executes the sequential traversal process in step S4, that is, extracts the next alternative frequency from the alternative frequency list to continue detection. During the revert process, the tuner quickly returns to the original frequency, ensuring that the radio maintains normal listening status even in the event of authentication failure, and preventing prolonged silence or crosstalk of other radio stations.

[0116] By performing switching or rollback operations based on the comparison results, the frequency switch is completed and the power-off memory is saved when the radio station authentication is successful, ensuring listening continuity; when authentication fails, it immediately rolls back to the original frequency and continues traversing, avoiding getting stuck on non-target stations. This closed-loop processing mechanism of switching when authentication is successful and rolling back when authentication fails, combined with the two-stage tuning detection in step S4, ensures that the radio is always in normal listening mode throughout the entire frequency replacement process, solving the problems of switching interruption and crosstalk, and improving the user's listening experience.

[0117] In summary, the method for implementing a radio frequency substitution function provided by the embodiments of the present invention has at least the following beneficial effects compared with the prior art: By verifying the consistency between the replacement frequency and the current station's identity through the PI Code comparison mechanism, the problem of cross-channeling when switching to frequencies other than the station's own is fundamentally avoided. Improved stability: The continuous multiple signal detection mechanism is adopted to avoid false triggering switching caused by instantaneous signal fluctuations, thereby improving the triggering reliability of the AF function; Efficient frequency table deduplication: Deduplication verification is performed during the AF code table reception and parsing stage to ensure that each frequency in the frequency table is unique, reducing the invalid time overhead of subsequent traversal and switching. Uninterrupted switching process: A two-stage tuning strategy of Check initial screening + Normal confirmation is adopted. If the switching fails, it quickly returns to the original frequency to ensure that the switching process is uninterrupted and normal listening is maintained, greatly reducing the generation of noise. No operational conflicts: Through finite state machine management and multiple precondition judgments, the AF function only runs when the system is idle, and does not interfere with operations such as manual station search, preset station setting, and frequency setting; Supports flexible region code matching: PI Code comparison supports region code mask comparison (Regional mode). When the Regional switch is on, a full code comparison is performed; when it is off, only the program code portion is compared, adapting to different broadcast coverage scenarios. This invention also provides a radio frequency substitution function implementation apparatus 100, which can be configured in a radio and is used to execute any embodiment of the aforementioned radio frequency substitution function implementation method. Specifically, please refer to... Figure 9 , Figure 9 A schematic block diagram of a device for implementing a radio frequency replacement function according to an embodiment of the present invention.

[0118] like Figure 9 As shown, the device 100 for implementing the radio frequency replacement function includes: The deduplication verification module 110 is used to extract backup frequency information from the received wireless data broadcast information, perform deduplication verification on the backup frequency information, and generate a list of alternative frequencies. The collaborative management module 120 is used to perform precondition checks to determine whether alternative frequency switching is allowed. The signal quality monitoring module 130 is used to periodically monitor the signal quality of the current receiving frequency if the precondition check passes, and to start the alternative frequency switching process if the signal quality meets the switching conditions. The alternative frequency signal monitoring module 140 is used to monitor the frequency band and signal of each alternative frequency in the alternative frequency list, obtain candidate alternative frequencies and acquire program identification information corresponding to the candidate alternative frequencies. The radio station authentication module 150 is used to compare the program identification information corresponding to the candidate replacement frequency with the program identification information corresponding to the current receiving frequency to obtain a comparison result. The switching module 160 is used to determine whether to switch to the candidate replacement frequency based on the comparison result.

[0119] The aforementioned device for implementing the radio frequency replacement function can be implemented as a computer program, which can be used in, for example... Figure 10 It runs on the radio device shown.

[0120] Please see Figure 10 , Figure 10 This is a schematic block diagram of a radio device provided in an embodiment of the present invention.

[0121] The radio device 500 includes a processor 502, a memory, and a network interface 505 connected via a communication bus 501. The memory may include a storage medium 503 and internal memory 504.

[0122] The storage medium 503 may store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, it enables the processor 502 to perform a method for implementing a radio frequency substitution function. The storage medium 503 may be a volatile storage medium or a non-volatile storage medium.

[0123] The processor 502 provides computing and control capabilities to support the operation of the entire radio device 500.

[0124] The internal memory 504 provides an environment for the operation of the computer program 5032 in the storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can perform a method for implementing the radio frequency replacement function.

[0125] This network interface 505 is used for network communication, such as providing data transmission. Those skilled in the art will understand that... Figure 10 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 radio device 500 to which the present invention is applied. The specific radio device 500 may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0126] The processor 502 is used to run the computer program 5032 stored in the memory to implement the corresponding function in the above-described method for implementing the radio frequency replacement function.

[0127] Those skilled in the art will understand that Figure 10 The embodiments of the radio device shown do not constitute a limitation on the specific configuration of the radio device. In other embodiments, the radio device may include more or fewer components than shown, or combine certain components, or have different component arrangements. For example, in some embodiments, the radio device may include only a memory and a processor. In such embodiments, the structure and function of the memory and processor are different from those shown. Figure 10 The embodiments shown are consistent and will not be described again here.

[0128] It should be understood that, in this embodiment of the invention, the processor 502 may be a Central Processing Unit (CPU), or it may be 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.

[0129] In another embodiment of the invention, a computer-readable storage medium is provided. This computer-readable storage medium may be volatile or non-volatile. The computer-readable storage medium stores a computer program, wherein when executed by a processor, the computer program implements the steps included in the method for implementing the radio frequency substitution function described above.

[0130] Those skilled in the art will readily understand that, for the sake of convenience and brevity, the specific working processes of the devices, apparatuses, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. 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 composition and steps of each example have been generally described in terms of function 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 implementation should not be considered beyond the scope of this invention.

[0131] In the embodiments provided by this invention, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Units with the same function may be grouped into one unit. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices, or units, or it may be an electrical, mechanical, or other form of connection.

[0132] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of the embodiments of the present invention, depending on actual needs.

[0133] Furthermore, the functional units in the various embodiments of the present 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. The integrated unit can be implemented in hardware or as a software functional unit.

[0134] 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 computer-readable 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 computer-readable storage medium and includes several instructions to cause a radio device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned computer-readable storage medium includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a magnetic disk, or an optical disk.

[0135] 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 method for implementing a radio frequency substitution function, characterized in that, include: The backup frequency information is extracted from the received wireless data broadcast information. After deduplication verification of the backup frequency information, a list of alternative frequencies is generated. Perform a prerequisite check to determine whether an alternative frequency switch is permitted. If the precondition check passes, the signal quality of the current receiving frequency is periodically monitored. If the signal quality meets the switching conditions, the alternative frequency switching process is initiated. Frequency band and signal monitoring are performed on each alternative frequency in the alternative frequency list to obtain candidate alternative frequencies and acquire program identification information corresponding to the candidate alternative frequencies. The program identification information corresponding to the candidate replacement frequency is compared with the program identification information corresponding to the current receiving frequency to obtain the comparison result; Based on the comparison results, determine whether to switch to the candidate replacement frequency.

2. The method for implementing the radio frequency substitution function according to claim 1, characterized in that, The step of extracting backup frequency information from received wireless data broadcast information, performing deduplication verification on the backup frequency information, and generating a replacement frequency list includes: Extract the first frequency encoded byte and the second frequency encoded byte from the third data block of the spare frequency data group in the wireless data broadcast information; Determine whether the first frequency encoded byte is the header information of the spare frequency code table to obtain the first determination result; If the first judgment result is negative, then determine whether the first frequency encoding byte is a long wave or medium wave frequency band flag value to obtain the second judgment result; If the second determination result is yes, then discard the first frequency-encoded byte and the second frequency-encoded byte; If the first judgment result is yes or the second judgment result is no, determine whether the first frequency encoding byte or the second frequency encoding byte already exists in the alternative frequency list to obtain a third judgment result; If the third judgment result is yes, then the corresponding frequency encoding byte is marked as invalid; If the third judgment result is negative, determine whether the first frequency encoding byte or the second frequency encoding byte is a valid frequency modulation band frequency encoding value to obtain the fourth judgment result; If the fourth determination result is yes, then the corresponding frequency encoding byte is stored in the alternative frequency list.

3. The method for implementing the radio frequency substitution function according to claim 1, characterized in that, The precondition check to determine whether alternative frequency switching is permitted includes: The current state is checked based on a preset multi-condition judgment strategy; The multi-condition judgment strategy includes: judging whether the alternative frequency function switch is turned on, whether the current band is an FM band, whether the alternative frequency list is not empty, whether it is not in the station search state, whether the program identification information of the current station has been obtained, and whether it is not in the frequency setting process. If any condition in the multi-condition judgment strategy is not determined, the multi-condition judgment strategy based on the preset condition is re-executed after a second preset time to check the current state. If all conditions in the multi-condition judgment strategy are judged as yes, then the precondition check is confirmed to be passed.

4. The method for implementing the radio frequency substitution function according to claim 1, characterized in that, The process involves periodically monitoring the signal quality of the current receiving frequency. If the signal quality meets the switching conditions, a frequency switching procedure is initiated, including: The received signal quality parameters of the current receiving frequency are periodically acquired, and it is determined whether the received signal quality parameters indicate signal quality degradation, thus obtaining a fifth determination result; If the fifth judgment result is negative, then after a first preset time delay, the process of periodically acquiring the received signal quality parameters of the current receiving frequency will be repeated. If the fifth judgment result is yes, then the count value of continuous signal quality degradation is increased by one; Determine whether the count value reaches a preset threshold to obtain a sixth determination result; If the sixth judgment result is negative, then the process of periodically obtaining the received signal quality parameters of the current receiving frequency will be repeated. If the sixth judgment result is yes, then the alternative frequency switching process is initiated.

5. The method for implementing the radio frequency substitution function according to claim 1, characterized in that, The step of monitoring the frequency bands and signals of each alternative frequency in the alternative frequency list to obtain candidate alternative frequencies and acquire program identification information corresponding to the candidate alternative frequencies includes: Extract the coded value of the next replacement frequency in sequence from the list of replacement frequencies, and calculate the actual frequency value of the candidate replacement frequency based on the coded value; Determine whether the actual frequency value is equal to the current receiving frequency or exceeds the current band range to obtain the seventh determination result; If the seventh judgment result is yes, then the process of extracting the encoding value of the next alternative frequency from the alternative frequency list in sequence is repeated.

6. The method for implementing the radio frequency substitution function according to claim 5, characterized in that, The step of monitoring the frequency bands and signals of each alternative frequency in the alternative frequency list to obtain candidate alternative frequencies and acquire program identification information corresponding to the candidate alternative frequencies also includes... If the seventh judgment result is negative, then the signal is tuned to the candidate replacement frequency in fast detection mode and the first signal quality is obtained. The validity of the first signal quality is then determined to obtain the eighth judgment result. If the eighth judgment result is negative, then the process of extracting the encoding value of the next alternative frequency from the alternative frequency list in sequence is repeated. If the eighth judgment result is yes, then tune to the candidate replacement frequency in the formal tuning mode and obtain the second signal quality, determine whether the second signal quality is effective, and obtain the ninth judgment result; If the ninth judgment result is negative, then backtrack to the current receiving frequency and re-execute the step of extracting the encoding value of the next alternative frequency in order from the alternative frequency list; If the ninth judgment result is yes, then obtain the program identification information corresponding to the candidate replacement frequency.

7. The method for implementing the radio frequency substitution function according to claim 1, characterized in that, The step of comparing the program identification information corresponding to the candidate replacement frequency with the program identification information corresponding to the current receiving frequency to obtain the comparison result includes: Obtain the comparison mode setting information, determine whether the comparison mode setting information indicates strict mode, and obtain the tenth judgment result; If the tenth judgment result is yes, then the program identification information corresponding to the candidate replacement frequency is completely compared with the program identification information corresponding to the current receiving frequency to obtain the comparison result; If the tenth judgment result is negative, then the program identification information corresponding to the candidate replacement frequency is compared with the program identification information corresponding to the current receiving frequency using a mask to obtain the comparison result.

8. The method for implementing the radio frequency substitution function according to claim 1, characterized in that, The step of determining whether to switch to the candidate replacement frequency based on the comparison result includes: Determine whether the comparison results are consistent to obtain the eleventh determination result; If the eleventh judgment result is yes, then switch to the candidate substitution frequency and write the candidate substitution frequency into the non-volatile memory; If the eleventh judgment result is negative, then backtrack to the current receiving frequency and re-execute the sequential traversal of each alternative frequency in the alternative frequency list.

9. An apparatus for implementing a radio frequency substitution function, used to implement the method for implementing the radio frequency substitution function according to any one of claims 1-8, characterized in that, The implementing device includes: The deduplication verification module is used to extract backup frequency information from the received wireless data broadcast information, perform deduplication verification on the backup frequency information, and generate a list of alternative frequencies. The collaborative management module is used to perform precondition checks to determine whether alternative frequency switching is allowed. The signal quality monitoring module is used to periodically monitor the signal quality of the current receiving frequency if the precondition check passes, and to initiate the alternative frequency switching process if the signal quality meets the switching conditions. The alternative frequency signal monitoring module is used to monitor the frequency band and signal of each alternative frequency in the alternative frequency list, obtain candidate alternative frequencies, and acquire program identification information corresponding to the candidate alternative frequencies. The radio station authentication module is used to compare the program identification information corresponding to the candidate replacement frequency with the program identification information corresponding to the current receiving frequency to obtain a comparison result. The switching module is used to determine whether to switch to the candidate replacement frequency based on the comparison results.

10. A radio device, characterized in that, The device includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the steps of the method for implementing the radio alternative frequency function as described in any one of claims 1-8.