Broadcasting station searching method, device and equipment and storage medium
By using a preference type list and a cross-standard mapping table to filter radio stations during radio search, and periodically checking the validity of radio stations, the method solves the problems of low efficiency and poor compatibility in existing radio search methods, and achieves efficient and accurate radio search.
Patent Information
- Application Number
- CN202511245055.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-02
- Publication Date
- 2025-12-05
AI Technical Summary
Existing radio station search methods suffer from low retrieval efficiency, poor cross-system compatibility, and insufficient timeliness of results, making it difficult to meet users' needs for search accuracy and efficiency.
Radio stations are acquired by scanning DAB and FM bands, digital stations are filtered using a preference type list, analog stations are mapped using a cross-system mapping table, and the validity of stations is periodically checked and invalid stations are removed.
It improves the efficiency and accuracy of radio station search, reduces the need for manual screening by users, and enables unified filtering and real-time synchronization of dual-system radio stations.
Smart Images

Figure CN121077601A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of broadcast communication technology, and in particular to a broadcast station search method, device, equipment and storage medium. BACKGROUND
[0002] In the use scenario of a radio device, station search is a key link for a user to obtain broadcast content, and the experience thereof is directly related to whether the user can conveniently obtain a target program. However, the mainstream station search method currently still has obvious deficiencies, and it is difficult to meet the demand of users for search accuracy and efficiency, mainly in the following three aspects:
[0003] 1. Low search efficiency: The existing method scans all frequency points of DAB and FM frequency bands without distinction, and does not pre-filter according to program types, so that a large number of non-target type stations are mixed into the search results, and the user needs to manually distinguish, which is cumbersome and time-consuming;
[0004] 2. Poor cross-standard compatibility: DAB broadcast and FM broadcast use different program type coding systems, and the two types of coding are not effectively associated, so that the radio system cannot integrate and filter the dual-standard stations based on a unified filtering rule, and the user needs to operate separately, and the use logic is not coherent enough;
[0005] 3. Insufficient result timeliness: Only the program type information of the station is obtained in the initial search stage, and real-time synchronization is not performed for the dynamic change of the program type in the broadcast process, so that the screening result may not match the actual broadcast content of the station.
[0006] Therefore, the existing station search method has the problem of low search efficiency. SUMMARY
[0007] Embodiments of the present application provide a broadcast station search method, device, equipment and storage medium, aiming at solving the problem of low search efficiency of the existing station search method.
[0008] In a first aspect, the embodiments of the present application provide a broadcast station search method, which comprises:
[0009] scanning a DAB frequency band to obtain a plurality of digital stations, and scanning an FM frequency band to obtain a plurality of analog stations;
[0010] According to the preference type list, a first candidate station is selected from the plurality of digital stations and added to a candidate list;
[0011] According to a preset cross-standard mapping table, type mapping is performed on each analog station to obtain a corresponding mapped station;
[0012] According to the preference type list, a second candidate station is selected from the plurality of mapped stations and added to the candidate list.
[0013] detecting validity of each candidate radio station in the candidate list periodically, and removing the invalid candidate radio station from the candidate list; wherein the candidate radio station includes the first candidate radio station and the second candidate radio station.
[0014] In a second aspect, an embodiment of the present application further provides a radio station searching device, the device comprising:
[0015] an acquisition unit, configured to scan a DAB frequency band to acquire a plurality of digital radio stations, and scan an FM frequency band to acquire a plurality of analog radio stations;
[0016] a first screening unit, configured to screen a first candidate radio station from the plurality of digital radio stations according to a preference type list, and add the first candidate radio station into a candidate list;
[0017] a mapping unit, configured to perform type mapping on each of the analog radio stations according to a preset cross-mode mapping table, to obtain a corresponding mapped radio station;
[0018] a second screening unit, configured to screen a second candidate radio station from the plurality of mapped radio stations according to the preference type list, and add the second candidate radio station into the candidate list;
[0019] a detection unit, configured to detect validity of each candidate radio station in the candidate list periodically, and remove the invalid candidate radio station from the candidate list; wherein the candidate radio station includes the first candidate radio station and the second candidate radio station.
[0020] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method in the first aspect.
[0021] In a fourth aspect, an embodiment of the present application further provides a computer readable storage medium, wherein the storage medium stores a computer program, and the computer program comprises program instructions, and the program instructions are executed by a processor to implement the method in the first aspect.
[0022] The application provides a broadcast station search method, device and equipment and a storage medium, the method comprising: scanning a DAB frequency band to obtain a plurality of digital stations, and scanning an FM frequency band to obtain a plurality of analog stations; screening a first candidate station from the plurality of digital stations according to a preference type list and adding the first candidate station to a candidate list; performing type mapping on each of the analog stations according to a preset cross-standard mapping table to obtain corresponding mapped stations; screening a second candidate station from the plurality of mapped stations according to the preference type list and adding the second candidate station to the candidate list; periodically detecting the validity of each candidate station in the candidate list and removing an invalid candidate station from the candidate list; wherein the candidate stations comprise the first candidate station and the second candidate station. The application has the following beneficial effects: 1. The preference type list is used as a screening standard to directly filter non-target stations in the digital stations and the mapped stations, without the need for manual screening by a user, thereby greatly improving search efficiency; 2. Type mapping is performed on each analog station according to the cross-standard mapping table, so that dual-standard stations can be uniformly screened based on the same preference type list; and 3. The validity of the candidate stations is periodically detected to ensure that the candidate stations in the candidate list are always valid stations that meet user preferences, thereby improving the accuracy of the search results. BRIEF DESCRIPTION OF DRAWINGS
[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiment description. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0024] Figure 1 A flowchart of a broadcast station search method provided by the embodiment of the present application;
[0025] Figure 2 A schematic block diagram of a broadcast station search device provided by the embodiment of the present application;
[0026] Figure 3 A schematic block diagram of an electronic device provided by the embodiment of the present application. DETAILED DESCRIPTION
[0027] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the protection scope of the present application.
[0028] It should be understood that the terms "comprise" and "contain" as used in the specification and the appended claims indicate the presence of the described features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.
[0029] It should also be understood that the terms used in the present invention specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present invention 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.
[0030] It should be further understood that the term "and / or" used in the present invention specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes these combinations. The present invention embodiments provide a radio station search method, device, equipment and storage medium. The radio station search method is described below with reference to Figure 1 , Figure 1 The flowchart of the radio station search method provided by the present invention embodiments. The method is applied to the controller of a radio system.
[0031] Figure 1 The flowchart of the radio station search method provided by the present invention embodiments. As shown in Figure 1 , the method includes the following steps S110-S150.
[0032] S110, scan the DAB frequency band to obtain a plurality of digital radio stations, and scan the FM frequency band to obtain a plurality of analog radio stations.
[0033] In the present embodiment, the DAB frequency band is scanned to obtain a plurality of digital radio stations, and the FM frequency band is scanned to obtain a plurality of analog radio stations; wherein the frequency range of the DAB frequency band is 174-240MHz, and the frequency range of the FM frequency band is 87.5-108MHz.
[0034] In an embodiment, after step S110, it further includes: creating a standardized program type list; wherein the standardized program type list contains a plurality of program types; obtaining a preference type list returned based on the standardized program type list; wherein the preference type list includes a plurality of user-selected preferred program types.
[0035] In the embodiment, a standardized program type list is created; the standardized program type list contains a plurality of program types, each of which is marked with a standard program type code of the DAB system and a standard PTY code of the FM RDS system, and the standard program type code and the standard PTY code are in a one-to-one mapping relationship; for example, when the program type is "news", the standard program type code of the DAB system is 0x0A, and the standard PTY code of the FM RDS system is 0x04; a user selects at least one program type on the standardized program type list, and the program type selected by the user is identified as a preferred program type, and the preferred type list is automatically integrated based on the selection result of the user.
[0036] S120, according to the preferred type list, a first candidate radio station is selected from a plurality of digital radio stations and added to a candidate list.
[0037] In the embodiment, after obtaining the program type code of each digital radio station, the program type code of each digital radio station is matched with the preferred program type in the preferred type list; if the program type code of the digital radio station matches the preferred program type in the preferred type list, the digital radio station is determined as the first candidate radio station and added to the candidate list; if the program type code of the digital radio station does not match the preferred program type in the preferred type list, the digital radio station is directly excluded and not included in the candidate list.
[0038] In an embodiment, step S120 includes: reading a target data packet of each digital radio station to obtain a corresponding program type code; determining a preferred program type according to the preferred type list and obtaining a preferred program type code corresponding to the preferred program type; matching the program type code of each digital radio station with the preferred program type code in the preferred type list, and adding the digital radio station that matches successfully to the candidate list as the first candidate radio station.
[0039] In the embodiment, a target data packet FIG 0 / 17 of each digital radio station is read to obtain a corresponding program type code; the target data packet is a data unit specially used to carry program type identification information in the DAB system, and the program type code corresponding to the digital radio station can be directly extracted by reading the content; a preferred program type is determined according to the preferred type list, and a preferred program type code (i.e. a standard program type code of the DAB system) corresponding to the preferred program type is obtained; the program type code of each digital radio station is matched with the preferred program type code in the preferred type list, and the digital radio station that matches successfully is added to the candidate list as the first candidate radio station.
[0040] S130, according to a preset cross-system mapping table, each analog radio station is type-mapped to obtain a corresponding mapped radio station.
[0041] In the embodiment, the cross-standard mapping table pre-stores the correspondence between the PTY code of the FM RDS standard and the program type code of the DAB standard (for example, the program type code corresponding to the PTY code 0x04 is 0x0A); when performing type mapping on each analog radio station, the PTY code of each analog radio station is extracted first, and then the PTY code of the analog radio station is converted into the corresponding program type code (i.e., the mapped program type code) of the DAB standard according to the cross-standard mapping table, thereby obtaining the mapped radio station.
[0042] In an embodiment, the step S130 comprises: reading the target data block of each analog radio station to obtain the corresponding PTY code; performing type mapping on each PTY code according to the cross-standard mapping table to obtain the corresponding mapped program type code; and associating the mapped program type code with the corresponding analog radio station to obtain the corresponding mapped radio station.
[0043] In the embodiment, the target data block RDS Block2 of each analog radio station is read, the target data block is a data unit specially carrying the program type information of the radio station in the FM RDS standard, and the PTY code corresponding to the analog radio station can be directly extracted by reading the content thereof; type mapping is performed on each PTY code according to the cross-standard mapping table to obtain the mapped program type code of the DAB standard; and the mapped program type code is associated with the corresponding analog radio station to obtain the corresponding mapped radio station.
[0044] In an embodiment, after the step of associating the mapped program type code with the corresponding analog radio station to obtain the corresponding mapped radio station, the method further comprises: logically matching the mapped program type code of each mapped radio station with the preferred program type code in the preferred type list, and adding the mapped radio station for which the matching is successful to the candidate list as a second candidate radio station.
[0045] In the embodiment, the mapped program type code (the program type code of the DAB standard) of each mapped radio station is logically matched with the preferred program type code (the standard program type code of the DAB standard) in the preferred type list, and since the mapped program type code and the preferred program type code have been unified into the same coding system, whether they are consistent can be directly determined by code value comparison when matching; if the code value matching is successful, it indicates that the mapped radio station meets the user preference, and the mapped radio station is added to the candidate list as a second candidate radio station; if the code value matching fails, the mapped radio station is not included in the candidate list, so that only the dual-standard radio station meeting the user preference is reserved in the subsequent candidate list.
[0046] S140, screening a second candidate radio station from the plurality of mapped radio stations according to the preferred type list, and adding the second candidate radio station to the candidate list.
[0047] In the embodiment, the mapping program type code of each of the mapped radio station (i.e. the program type code of the DAB system after cross-system conversion) is extracted and compared with the preferred program type code (i.e. the standard program type code of the DAB system) in the preferred type list. If the two are consistent, it is determined that the mapped radio station meets the user's preference, and the mapped radio station is added to the candidate list as a second candidate radio station. If the two are not consistent, the mapped radio station is directly excluded from the candidate list.
[0048] S150, periodically detecting the validity of each candidate radio station in the candidate list, and removing the invalid candidate radio station from the candidate list; wherein the candidate radio station includes the first candidate radio station and the second candidate radio station.
[0049] In the embodiment, the validity of each candidate radio station (including the first candidate radio station and the second candidate radio station) in the candidate list is detected according to a preset period. If it is detected that a certain candidate radio station does not meet the validity standard (such as signal interruption, program type code invalidation, etc.), it is determined that the candidate radio station is invalid. The invalid candidate radio station is removed from the candidate list to ensure that the candidate list always contains valid radio stations that can be normally received and meet the user's preference.
[0050] In an embodiment, step S150 includes periodically detecting the validity of the program type code of each candidate radio station according to the preferred type list; and removing the candidate radio station whose program type code is out of the corresponding code range of the preferred type list from the candidate list.
[0051] In the embodiment, when the validity of the program type code of each candidate radio station is periodically detected according to the preferred type list, the dynamic update of the program type code in the broadcast stream is monitored in real time. Specifically, for the first candidate radio station (digital radio station), the version number change of the target data packet FIG 0 / 17 is detected to determine whether the program type code is updated. For the mapped radio station (analog radio station), the PTY code change flag is monitored to indirectly perceive whether the mapping program type code is changed.
[0052] If it is detected that the program type code of the candidate radio station is changed and the updated program type code is out of the corresponding code range of the preferred type list, the system will automatically determine that the candidate radio station is invalid and remove it from the candidate list.
[0053] In an embodiment, after step S150, it further includes judging whether the radio station search condition is met based on the remaining number of candidate radio stations in the candidate list; if the condition is met, returning to execute the steps of scanning the DAB frequency band to obtain a plurality of digital radio stations and scanning the FM frequency band to obtain a plurality of analog radio stations.
[0054] In this embodiment, based on the remaining number of candidate radio stations in the candidate list, it is determined whether the radio station search conditions are met; if the remaining number is lower than the preset threshold in the radio station search conditions, it is determined that the radio station search conditions are met; if the radio station search conditions are met, the process returns to step S110 to replenish the candidate list with radio stations that match the user's preferences; if the remaining number is higher than or equal to the preset threshold in the radio station search conditions, it is determined that the radio station search conditions are not met, and there is no need to trigger the rescanning step.
[0055] In summary, the present invention has the following beneficial effects: 1. By using a preference type list as the filtering standard, it directly filters digital radio stations and non-target radio stations in the mapped radio stations, eliminating the need for manual user identification and significantly improving search efficiency; 2. By mapping the types of each analog radio station according to the cross-system mapping table, dual-system radio stations can achieve unified cross-system filtering based on the same preference type list; 3. By periodically checking the effectiveness of candidate radio stations, it ensures that the candidate radio stations in the candidate list are always valid radio stations that meet the user's preferences, thereby improving the accuracy of radio search results.
[0056] Figure 2 This is a schematic block diagram of a radio station search device provided in an embodiment of the present invention. Figure 2 As shown, corresponding to the above radio station search method, the present invention also provides a radio station search device, which is configured in the controller of a radio receiving system. For details, please refer to... Figure 2 The radio station search device 700 includes:
[0057] Acquisition unit 701 is used to scan the DAB band to acquire multiple digital radio stations and scan the FM band to acquire multiple analog radio stations.
[0058] The first filtering unit 702 is used to filter out a first candidate radio station from a plurality of digital radio stations and add it to the candidate list according to the preference type list;
[0059] The mapping unit 703 is used to perform type mapping on each of the analog radio stations according to a preset cross-system mapping table to obtain the corresponding mapped radio station.
[0060] The second filtering unit 704 is used to filter out a second candidate radio station from a plurality of mapped radio stations according to a preference type list and add it to the candidate list;
[0061] The detection unit 705 is used to periodically detect the validity of each candidate radio station in the candidate list and remove invalid candidate radio stations from the candidate list; wherein, the candidate radio stations include the first candidate radio station and the second candidate radio station.
[0062] In some embodiments, the detecting unit 705, in the step of performing periodic detection of the validity of each candidate station in the candidate list, and removing the invalid candidate station from the candidate list, is specifically configured to:
[0063] periodically detecting the validity of the program type code of each candidate station according to the preference type list; and removing the candidate station whose program type code is out of the corresponding code range of the preference type list from the candidate list.
[0064] In some embodiments, the acquiring unit 701, after the step of performing scanning of the DAB frequency band to acquire a plurality of digital stations, and scanning of the FM frequency band to acquire a plurality of analog stations, is further configured to:
[0065] creating a standardized program type list, wherein the standardized program type list comprises a plurality of program types; and acquiring a preference type list returned based on the standardized program type list, wherein the preference type list comprises a plurality of preferred program types selected by a user.
[0066] In some embodiments, the first screening unit 702, in the step of performing screening of a first candidate station from the plurality of digital stations according to the preference type list, and adding the first candidate station to the candidate list, is specifically configured to:
[0067] reading the target data packet of each digital station to obtain a corresponding program type code; determining a preferred program type according to the preference type list, and acquiring a preferred program type code corresponding to the preferred program type; performing bitwise matching of the program type code of each digital station with the preferred program type code in the preference type list, and adding the digital station with a successful matching to the candidate list as the first candidate station.
[0068] In some embodiments, the mapping unit 703, in the step of performing type mapping of each analog station according to a preset cross-format mapping table to obtain a corresponding mapped station, is specifically configured to:
[0069] reading the target data block of each analog station to obtain a corresponding PTY code; performing type mapping of each PTY code according to the cross-format mapping table to obtain a corresponding mapped program type code; and associating the mapped program type code to the corresponding analog station to obtain the corresponding mapped station.
[0070] In some embodiments, the mapping unit 703, after the step of associating the mapped program type code to the corresponding analog station to obtain the corresponding mapped station, is further configured to:
[0071] The mapped program type code of each of the mapped radio stations is logically matched with the preferred program type code in the preferred type list, and the mapped radio station with a successful matching is taken as a second candidate radio station and added to the candidate list.
[0072] In some embodiments, the detection unit 705 is further configured to perform periodic detection of the validity of each candidate radio station in the candidate list, and remove the invalid candidate radio station from the candidate list after the step of removing the invalid candidate radio station from the candidate list.
[0073] Based on the remaining number of candidate radio stations in the candidate list, it is determined whether the radio station search condition is met; if yes, the step of scanning the DAB frequency band to obtain a plurality of digital radio stations and scanning the FM frequency band to obtain a plurality of analog radio stations is performed.
[0074] It should be noted that the specific implementation process of the above-mentioned broadcast station searching device and each unit can be clearly understood by those skilled in the art, and the corresponding description in the foregoing method embodiments can be referred to. For the convenience and brevity of description, it will not be repeated here.
[0075] The above-mentioned broadcast station searching device can be realized in the form of a computer program, which can run on a computer device as shown in the figure. Figure 3
[0076] Please refer to Figure 3 , Figure 3 is a schematic block diagram of an electronic device provided by an embodiment of the present application. The computer device 800 can be a terminal or a server, wherein the terminal can be an electronic device with communication function. The server can be a stand-alone server or a server cluster composed of multiple servers.
[0077] Referring to Figure 3 , the electronic device 800 includes a processor 802, a memory, and a network interface 805 connected through a system bus 801, wherein the memory can include a non-volatile storage medium 803 and an internal memory 804.
[0078] The non-volatile storage medium 803 can store an operating system 8031 and a computer program 8032. The computer program 8032 includes program instructions, which when executed, can cause the processor 802 to perform a broadcast station searching method.
[0079] The processor 802 is configured to provide computing and control capabilities to support the operation of the entire electronic device 800.
[0080] The memory 804 provides an environment for the running of the computer program 8032 in the nonvolatile storage medium 803, which, when executed by the processor 802, can cause the processor 802 to perform a broadcast station searching method.
[0081] The network interface 805 is used for network communication with other devices. Those skilled in the art can understand that, Figure 3 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the electronic device 800 to which the scheme of the present application is applied. The specific electronic device 800 can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0082] The processor 802 is configured to run the computer program 8032 stored in the memory to implement the following steps:
[0083] scanning a DAB frequency band to obtain a plurality of digital radio stations, and scanning an FM frequency band to obtain a plurality of analog radio stations; filtering out first candidate radio stations from the plurality of digital radio stations according to a preference type list and adding the first candidate radio stations to a candidate list; performing type mapping on each of the analog radio stations according to a preset cross-format mapping table to obtain corresponding mapped radio stations; filtering out second candidate radio stations from the plurality of mapped radio stations according to the preference type list and adding the second candidate radio stations to the candidate list; periodically detecting the validity of each candidate radio station in the candidate list and removing invalid candidate radio stations from the candidate list; wherein the candidate radio stations include the first candidate radio stations and the second candidate radio stations.
[0084] In some embodiments, when implementing the step of periodically detecting the validity of each candidate radio station in the candidate list and removing invalid candidate radio stations from the candidate list, the processor 802 specifically implements the following steps:
[0085] periodically detecting the validity of a program type code of each candidate radio station according to the preference type list; and removing a candidate radio station whose program type code is out of the corresponding code range of the preference type list from the candidate list.
[0086] In some embodiments, after implementing the step of scanning a DAB frequency band to obtain a plurality of digital radio stations, and scanning an FM frequency band to obtain a plurality of analog radio stations, the processor 802 further implements the following steps:
[0087] creating a standardized program type list; wherein the standardized program type list includes a plurality of program types; obtaining a preference type list returned based on the standardized program type list; wherein the preference type list includes a plurality of preferred program types selected by a user.
[0088] In some embodiments, the processor 802 implements the step of filtering out a first candidate station from the plurality of digital stations according to the preference type list and adding the first candidate station into a candidate list by implementing the following steps:
[0089] reading a target data packet of each of the digital stations to obtain a corresponding program type code; determining a preferred program type according to the preference type list and obtaining a preferred program type code corresponding to the preferred program type; and performing bitwise matching between the program type code of each of the digital stations and the preferred program type code in the preference type list, and adding a digital station with a matching success into the candidate list as the first candidate station.
[0090] In some embodiments, the processor 802 implements the step of performing type mapping on each of the analog stations according to a preset cross-format mapping table to obtain a corresponding mapped station by implementing the following steps:
[0091] reading a target data block of each of the analog stations to obtain a corresponding PTY code; performing type mapping on each of the PTY codes according to the cross-format mapping table to obtain a corresponding mapped program type code; and associating the mapped program type code to the corresponding analog station to obtain a corresponding mapped station.
[0092] In some embodiments, after the processor 802 implements the step of associating the mapped program type code to the corresponding analog station to obtain the corresponding mapped station, the processor 802 further implements the following step:
[0093] performing logical matching between the mapped program type code of each of the mapped stations and the preferred program type code in the preference type list, and adding a mapped station with a matching success into the candidate list as the second candidate station.
[0094] In some embodiments, after the processor 802 implements the step of periodically detecting the validity of each of the candidate stations in the candidate list and removing an invalid candidate station from the candidate list, the processor 802 further implements the following step:
[0095] judging whether a station search condition is met based on the remaining number of candidate stations in the candidate list; and if the station search condition is met, returning to perform the step of scanning a DAB frequency band to obtain a plurality of digital stations and scanning an FM frequency band to obtain a plurality of analog stations.
[0096] It should be appreciated that in embodiments of the present application, the processor 802 can be a central processing unit (CPU), the processor 802 can also be a microcontroller unit (MCU), other general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc. The general purpose processor can be a microprocessor or the processor can also be any conventional processor.
[0097] It can be understood by those skilled in the art that all or part of the processes in the above-mentioned embodiments can be completed by a computer program instructing related hardware. The computer program includes program instructions, and the computer program 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 above-mentioned embodiments.
[0098] Therefore, the present application further provides a storage medium. The storage medium can be a computer readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. The program instructions are executed by a processor to make the processor perform the following steps:
[0099] scanning a DAB frequency band to obtain a plurality of digital radio stations, and scanning an FM frequency band to obtain a plurality of analog radio stations; filtering out first candidate radio stations from the plurality of digital radio stations according to a preference type list and adding the first candidate radio stations to a candidate list; performing type mapping on each of the plurality of analog radio stations according to a preset cross-mode mapping table to obtain corresponding mapped radio stations; filtering out second candidate radio stations from the plurality of mapped radio stations according to the preference type list and adding the second candidate radio stations to the candidate list; and periodically detecting validity of each candidate radio station in the candidate list and removing invalid candidate radio stations from the candidate list, wherein the candidate radio stations include the first candidate radio stations and the second candidate radio stations.
[0100] In an embodiment, when the processor executes the program instructions to implement the step of periodically detecting validity of each candidate radio station in the candidate list and removing invalid candidate radio stations from the candidate list, the processor specifically implements the following steps:
[0101] Periodically detecting validity of a program type code of each of the candidate radio stations according to the preference type list; and removing a candidate radio station whose program type code is out of a corresponding code range of the preference type list from the candidate list.
[0102] In one embodiment, the processor, after executing the program instructions to implement the steps of scanning a DAB frequency band to obtain a plurality of digital radio stations and scanning an FM frequency band to obtain a plurality of analog radio stations, further implements the following steps:
[0103] Creating a standardized program type list, wherein the standardized program type list comprises a plurality of program types; and obtaining a preference type list returned based on the standardized program type list, wherein the preference type list comprises a plurality of preferred program types selected by a user.
[0104] In one embodiment, the processor, when executing the program instructions to implement the step of screening a first candidate radio station from the plurality of digital radio stations according to the preference type list and adding the first candidate radio station to a candidate list, specifically implements the following steps:
[0105] Reading a target data packet of each of the digital radio stations to obtain a corresponding program type code; determining a preferred program type according to the preference type list and obtaining a preferred program type code corresponding to the preferred program type; and performing bitwise matching between the program type code of each of the digital radio stations and the preferred program type code in the preference type list, and adding a digital radio station with a matching success to the candidate list as the first candidate radio station.
[0106] In one embodiment, the processor, when executing the program instructions to implement the step of performing type mapping on each of the analog radio stations according to a preset cross-format mapping table to obtain a corresponding mapped radio station, specifically implements the following steps:
[0107] Reading a target data block of each of the analog radio stations to obtain a corresponding PTY code; performing type mapping on each of the PTY codes according to the cross-format mapping table to obtain a corresponding mapped program type code; and associating the mapped program type code to the corresponding analog radio station to obtain the corresponding mapped radio station.
[0108] In one embodiment, the processor, after executing the program instructions to implement the step of associating the mapped program type code to the corresponding analog radio station to obtain the corresponding mapped radio station, further implements the following steps:
[0109] Performing logical matching between the mapped program type code of each of the mapped radio stations and the preferred program type code in the preference type list, and adding a mapped radio station with a matching success to the candidate list as the second candidate radio station.
[0110] In an embodiment, the processor, in executing the program instructions, implements the following steps after the step of periodically detecting the validity of each candidate station in the candidate list and removing the invalid candidate station from the candidate list:
[0111] Based on the remaining number of candidate stations in the candidate list, it is determined whether the station searching condition is met; if yes, the step of scanning the DAB frequency band to obtain a plurality of digital stations and scanning the FM frequency band to obtain a plurality of analog stations is returned to be executed.
[0112] The storage medium can be a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk, and various computer readable storage media that can store program codes.
[0113] Those skilled in the art can understand that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be realized by electronic hardware, computer software or a combination of both. In order to clearly illustrate the interchangeability of hardware and software, the components and steps of the examples have been described in the above description in general terms. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. A person 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 the present application.
[0114] In several embodiments provided by the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is only a logical function division, and actual implementation can have another division manner. For example, a plurality of units or components can be combined or integrated into another system, or some features can be omitted or not executed.
[0115] The steps in the method of the embodiments of the present application can be adjusted, combined and deleted in sequence according to actual needs. The units in the device of the embodiments of the present application can be combined, divided and deleted according to actual needs. In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit.
[0116] The integrated unit, if implemented in the form of a software function unit and sold or used as an independent product, can be stored in a storage medium. Based on such an understanding, the technical solutions of the present application essentially or say the part that contributes to the prior art, or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the method described in the various embodiments of the present application.
[0117] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical range disclosed by the present application, and these modifications or replacements should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A method of searching for a broadcasting station, characterized by, The method comprises: scanning a DAB frequency band to obtain a plurality of digital radio stations and scanning an FM frequency band to obtain a plurality of analog radio stations; screening a first candidate radio station from the plurality of digital radio stations according to a preference type list and adding the first candidate radio station to a candidate list; mapping a type of each of the plurality of analog radio stations according to a preset cross-standard mapping table to obtain a corresponding mapped radio station; screening a second candidate radio station from the plurality of mapped radio stations according to the preference type list and adding the second candidate radio station to the candidate list; periodically detecting validity of each candidate radio station in the candidate list and removing an invalid candidate radio station from the candidate list, wherein the candidate radio station comprises the first candidate radio station and the second candidate radio station.
2. The broadcast station search method of claim 1, wherein, The periodically detecting validity of each candidate radio station in the candidate list and removing an invalid candidate radio station from the candidate list comprises: periodically detecting validity of a program type code of each candidate radio station according to the preference type list; removing a candidate radio station whose program type code is out of a corresponding code range of the preference type list from the candidate list.
3. The broadcast station search method of claim 1, wherein, After the scanning of the DAB frequency band to obtain the plurality of digital radio stations and the scanning of the FM frequency band to obtain the plurality of analog radio stations, the method further comprises: creating a standardized program type list, wherein the standardized program type list comprises a plurality of program types; obtaining a preference type list returned based on the standardized program type list, wherein the preference type list comprises a plurality of preferred program types selected by a user.
4. The broadcast station searching method of claim 1, characterized by, The screening of the first candidate radio station from the plurality of digital radio stations according to the preference type list and the adding of the first candidate radio station to the candidate list comprises: reading a target data packet of each digital radio station to obtain a corresponding program type code; determining a preferred program type according to the preference type list and obtaining a preferred program type code corresponding to the preferred program type; performing bitwise matching of the program type code of each digital radio station with the preferred program type code in the preference type list, and adding a digital radio station with a successful matching result to the candidate list as the first candidate radio station.
5. The broadcast station search method of claim 1, wherein, The mapping of the type of each analog radio station according to the preset cross-standard mapping table to obtain the corresponding mapped radio station comprises: reading a target data block of each analog radio station to obtain a corresponding PTY code; mapping a type of each PTY code according to the cross-standard mapping table to obtain a corresponding mapped program type code; associating the mapped program type code to the corresponding analog radio station to obtain the corresponding mapped radio station.
6. The broadcast station search method of claim 5, wherein, After the associating of the mapped program type code to the corresponding analog radio station to obtain the corresponding mapped radio station, the method further comprises: performing logical matching of the mapped program type code of each mapped radio station with the preferred program type code in the preference type list, and adding a mapped radio station with a successful matching result to the candidate list as the second candidate radio station.
7. The broadcast station searching method of claim 1, wherein, After the periodically detecting of the validity of each candidate radio station in the candidate list and the removing of the invalid candidate radio station from the candidate list, the method further comprises: judging whether a radio station search condition is met based on a remaining number of candidate radio stations in the candidate list. If yes, then return to perform the steps of scanning DAB frequency band to obtain a plurality of digital radio stations and scanning FM frequency band to obtain a plurality of analog radio stations.
8. A broadcast station search apparatus characterized by comprising: The device comprises: an obtaining unit configured to scan a DAB frequency band to obtain a plurality of digital radio stations and scan an FM frequency band to obtain a plurality of analog radio stations; a first screening unit configured to screen a first candidate radio station from the plurality of digital radio stations according to a preference type list and add the first candidate radio station to a candidate list; a mapping unit configured to perform type mapping on each of the plurality of analog radio stations according to a preset cross-format mapping table to obtain corresponding mapped radio stations; a second screening unit configured to screen a second candidate radio station from the plurality of mapped radio stations according to the preference type list and add the second candidate radio station to the candidate list; a detecting unit configured to periodically detect validity of each candidate radio station in the candidate list and remove an invalid candidate radio station from the candidate list, wherein the candidate radio station includes the first candidate radio station and the second candidate radio station.
9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor implements the broadcast station search method according to any one of claims 1-7 when executing the computer program.
10. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, and the computer program includes program instructions which, when executed by a processor, cause the processor to perform the broadcast station search method according to any one of claims 1-7.