CN111416679A - Frequency modulation broadcasting station storage method and device, storage medium and mobile terminal - Google Patents

Frequency modulation broadcasting station storage method and device, storage medium and mobile terminal Download PDF

Info

Publication number
CN111416679A
CN111416679A CN202010194210.4A CN202010194210A CN111416679A CN 111416679 A CN111416679 A CN 111416679A CN 202010194210 A CN202010194210 A CN 202010194210A CN 111416679 A CN111416679 A CN 111416679A
Authority
CN
China
Prior art keywords
station index
radio station
sequence number
index value
station
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010194210.4A
Other languages
Chinese (zh)
Inventor
俞斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Mobile Communication Technology Ningbo Ltd
Original Assignee
TCL Mobile Communication Technology Ningbo Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TCL Mobile Communication Technology Ningbo Ltd filed Critical TCL Mobile Communication Technology Ningbo Ltd
Priority to CN202010194210.4A priority Critical patent/CN111416679A/en
Publication of CN111416679A publication Critical patent/CN111416679A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04HBROADCAST COMMUNICATION
    • H04H20/00Arrangements for broadcast or for distribution combined with broadcast
    • H04H20/86Arrangements characterised by the broadcast information itself
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04HBROADCAST COMMUNICATION
    • H04H20/00Arrangements for broadcast or for distribution combined with broadcast
    • H04H20/65Arrangements characterised by transmission systems for broadcast
    • H04H20/71Wireless systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04HBROADCAST COMMUNICATION
    • H04H60/00Arrangements for broadcast applications with a direct linking to broadcast information or broadcast space-time; Broadcast-related systems
    • H04H60/35Arrangements for identifying or recognising characteristics with a direct linkage to broadcast information or to broadcast space-time, e.g. for identifying broadcast stations or for identifying users
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04HBROADCAST COMMUNICATION
    • H04H60/00Arrangements for broadcast applications with a direct linking to broadcast information or broadcast space-time; Broadcast-related systems
    • H04H60/35Arrangements for identifying or recognising characteristics with a direct linkage to broadcast information or to broadcast space-time, e.g. for identifying broadcast stations or for identifying users
    • H04H60/46Arrangements for identifying or recognising characteristics with a direct linkage to broadcast information or to broadcast space-time, e.g. for identifying broadcast stations or for identifying users for recognising users' preferences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04HBROADCAST COMMUNICATION
    • H04H60/00Arrangements for broadcast applications with a direct linking to broadcast information or broadcast space-time; Broadcast-related systems
    • H04H60/68Systems specially adapted for using specific information, e.g. geographical or meteorological information
    • H04H60/73Systems specially adapted for using specific information, e.g. geographical or meteorological information using meta-information
    • H04H60/74Systems specially adapted for using specific information, e.g. geographical or meteorological information using meta-information using programme related information, e.g. title, composer or interpreter

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Circuits Of Receivers In General (AREA)

Abstract

The application relates to a storage method, a device, a storage medium and a mobile terminal of a frequency modulation broadcasting station, wherein the storage method of the frequency modulation broadcasting station comprises the following steps: acquiring a plurality of FM broadcasting stations to be stored; determining a radio station index value corresponding to each FM broadcast station; sequencing the radio station index values to obtain the sequence number of each radio station index value; determining a difference value between any two adjacent radio station index values in the sequence numbers; according to the sequence number, the radio station index value and the difference value, a plurality of FM broadcast stations to be stored are stored, so that when more FM broadcast stations are stored in the mobile terminal, the related storage among the FM broadcast stations can be realized, and the problem of storage resource waste caused by independent storage of the FM broadcast stations is avoided.

Description

Frequency modulation broadcasting station storage method and device, storage medium and mobile terminal
Technical Field
The application relates to the technical field of frequency modulation broadcasting, in particular to a frequency modulation broadcasting station storage method, a frequency modulation broadcasting station storage device, a frequency modulation broadcasting station storage medium and a mobile terminal.
Background
The radio station broadcast is an information transmission mode widely applied to the fields of news transmission, entertainment, education and teaching and the like. With the continuous progress of information technology, although the television technology and the network technology develop rapidly, the broadcasting station is still an indispensable information transmission mode because the broadcasting station is convenient and flexible to use and has low transmission and reception cost.
As one of the station broadcasts, Frequency Modulation (FM) broadcasts are used to broadcast program contents by radio transmission. Generally, fm broadcast stations are divided into regions (provinces and cities), the program of each region broadcast station can only be received in the corresponding region, and after the fm broadcast receiving terminal enters another region from one region, it must switch to the frequency of the new region to receive the program of the region broadcast station. In order to facilitate the use of the mobile terminal, people can store some commonly listened FM broadcast stations in the mobile terminal so as to facilitate the search management and use, but in the prior art, the FM broadcast stations are independently stored and need to occupy storage resources respectively, so that the problem of waste of the storage resources can be solved.
Disclosure of Invention
The present application is directed to a storage method, an apparatus, a storage medium, and a mobile terminal for storing fm broadcast stations, so as to avoid the problem of waste of storage resources due to independent storage of the fm broadcast stations when a large number of fm broadcast stations are stored in the mobile terminal.
In order to solve the foregoing problem, an embodiment of the present application provides a storage method for an fm broadcast station, where the storage method for an fm broadcast station includes: acquiring a plurality of FM broadcasting stations to be stored; determining a radio station index value corresponding to each FM broadcast station; sequencing the radio station index values to obtain the sequence number of each radio station index value; determining a difference value between any two adjacent radio station index values in the sequence numbers; and storing a plurality of FM broadcasting stations to be stored according to the sequence number, the station index value and the difference value.
The determining of the radio station index value corresponding to each fm broadcast station specifically includes: and converting the radio station frequency of each FM broadcast station into a corresponding radio station index value according to a preset rule.
The method includes the steps of sorting radio station index values to obtain a sequence number of each radio station index value, and specifically includes the following steps: judging whether the lengths of the radio station index values are uniform or not; if not, determining the radio station index value of the longest character and the first length of the radio station index value of the longest character from the radio station index values; increasing the length of the radio station index value with the length smaller than the first length to the first length so as to unify the lengths of the radio station index values; and sequencing the radio station index values with uniform length according to the numerical values to obtain the sequence number of each radio station index value.
Wherein, confirm the difference value between two arbitrary adjacent radio station index values in the sequence number, specifically include: comparing whether the numerical value of the highest bit is the same or not for any two adjacent radio station index values in the sequence numbers; if the highest bits are the same, updating the highest bit by using the next bit of the highest bit, and returning to the step of comparing whether the numerical values of the highest bits are the same or not; if not, the numerical value from the highest bit to the lowest bit in the radio station index value with the larger sequence number is used as the difference value corresponding to the radio station index value with the larger sequence number.
Wherein, according to sequence number, radio station index value and difference value, save a plurality of FM broadcasting radio stations of treating the storage, specifically include: determining the minimum sequence number from the sequence numbers to obtain a target sequence number; taking the radio station index value corresponding to the target sequence number as an initial radio station index value; and the sequence number, the target sequence number, the initial radio station index value and the difference value are stored in an associated manner, so that a plurality of FM broadcast stations to be stored are stored.
Wherein, after the serial number, the target serial number, the initial station index value and the difference value are stored in an associated manner, the method further comprises the following steps: acquiring a stored reading instruction of a frequency modulation broadcasting station; and determining the stored FM broadcasting station based on the sequence number, the target sequence number, the initial broadcasting station index value and the difference value which are stored in a related manner according to the stored FM broadcasting station reading instruction.
In order to solve the above problem, an embodiment of the present application further provides an fm broadcast station storage apparatus, where the fm broadcast station storage apparatus includes: the acquisition module is used for acquiring a plurality of FM broadcasting stations to be stored; the first determining module is used for determining a radio station index value corresponding to each FM broadcast station; the sorting module is used for sorting the radio station index values to obtain the sequence number of each radio station index value; the second determining module is used for determining a difference value between any two adjacent radio station index values in the sequence numbers; and the storage module is used for storing a plurality of FM broadcasting stations to be stored according to the sequence number, the radio station index value and the difference value.
The first determining module is specifically configured to: and converting the radio station frequency of each FM broadcast station into a corresponding radio station index value according to a preset rule.
Wherein, the sequencing module specifically comprises: the judging unit is used for judging whether the lengths of the radio station index values are uniform or not; the first determining unit is used for determining the radio station index value of the longest character and the first length of the radio station index value of the longest character from the radio station index values when the lengths of the radio station index values are not uniform; the increasing unit is used for increasing the length of the radio station index value with the length smaller than the first length to the first length so as to unify the lengths of the radio station index values; and the sequencing unit is used for sequencing the radio station index values with uniform length according to the numerical values to obtain the sequence number of each radio station index value.
Wherein, the second determining module specifically comprises: the comparing unit is used for comparing whether the numerical value of the highest bit is the same or not for any two adjacent radio station index values in the sequence numbers; the updating unit is used for updating the highest position by using the next position of the highest position when the numerical values of the highest positions in any two adjacent station index values in the sequence number are the same, and triggering the comparison unit to compare whether the numerical values of the highest positions are the same again; and the second determining unit is used for taking the numerical value from the highest position to the lowest position in the radio station index values with larger sequence numbers as the difference value corresponding to the radio station index values with larger sequence numbers when the numerical value of the highest position in any two adjacent radio station index values in the sequence numbers is different.
Wherein, the storage module specifically includes: a third determining unit, configured to determine a minimum sequence number from the sequence numbers to obtain a target sequence number; a fourth determining unit, configured to use the radio station index value corresponding to the target sequence number as an initial radio station index value; and the storage unit is used for storing the sequence number, the target sequence number, the initial radio station index value and the difference value in a correlation manner so as to realize the storage of a plurality of FM broadcast stations to be stored.
Wherein, the acquisition module is further configured to: acquiring a stored reading instruction of a frequency modulation broadcasting station; the fm radio station storage apparatus further comprises: and the third determining module is used for determining the stored FM broadcasting stations based on the associated and stored sequence numbers, the target sequence numbers, the initial broadcasting station index values and the difference values according to the stored FM broadcasting station reading instructions.
In order to solve the above problem, an embodiment of the present application further provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions are adapted to be loaded by a processor to execute any of the above storage methods of the fm broadcast station.
In order to solve the foregoing problems, an embodiment of the present application further provides a mobile terminal, where the mobile terminal includes a processor and a memory, the processor is electrically connected to the memory, the memory is used to store instructions and data, and the processor is used to execute the steps in any of the foregoing storage methods for an fm broadcast station.
The beneficial effect of this application is: different from the prior art, the storage method of the FM broadcasting stations provided by the application comprises the steps of obtaining a plurality of FM broadcasting stations to be stored, determining the corresponding broadcasting station index value of each FM broadcasting station, sequencing the broadcasting station index values to obtain the sequence number of each broadcasting station index value, determining the difference value between any two adjacent broadcasting station index values in the sequence numbers, and storing the plurality of FM broadcasting stations to be stored according to the sequence numbers, the broadcasting station index values and the difference values.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a storing method of an fm broadcast station according to an embodiment of the present application;
fig. 2 is another schematic flow chart of a storing method of an fm broadcast station according to an embodiment of the present invention;
fig. 3 is a schematic display diagram of a station switching interface provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of a storage device of an fm broadcast station according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a mobile terminal provided in an embodiment of the present application;
fig. 6 is another schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solution and technical effect of the present application clearer and clearer, the following further describes the present application in detail, and it should be understood that the specific embodiments described herein are only used for explaining the present application, and are not used for limiting the present application.
Referring to fig. 1, fig. 1 is a schematic flow chart of a storing method of an fm broadcast station according to an embodiment of the present application, where the specific flow of the storing method of the fm broadcast station may be as follows:
s101: a plurality of FM broadcast stations to be stored are obtained.
Specifically, the mobile terminal may serve as an fm broadcast receiving terminal, and when switching from a currently listened to fm broadcast station to a next fm broadcast station, it is generally necessary for a user to know information such as a frequency, a name, or an index of the next fm broadcast station in advance, otherwise the user may not be able to accurately switch the fm broadcast station. Furthermore, in order to quickly and accurately obtain information such as the station frequency, name, or index of the next fm broadcast station when switching fm broadcast stations, a user generally stores some commonly listened to or preferred fm broadcast stations in the mobile terminal. In a specific implementation, the plurality of fm broadcast stations to be stored may be selected by the user based on the listening habits and/or personal preferences of the user, or may be determined by the mobile terminal according to the fm broadcast station listened to by the user in the latest period of time and the listening duration of the listened fm broadcast station, where the fm broadcast stations to be stored may include the station frequency, name, index, and the like of the fm broadcast station.
S102: and determining a station index value corresponding to each FM broadcast station.
Each fm broadcast station has a unique station index value, and the station index value may be generated randomly or according to a certain method, for example, according to the station frequency of the fm broadcast station.
In some embodiments, the S102 may specifically include:
s1021: and converting the radio station frequency of each FM broadcast station into a corresponding radio station index value according to a preset rule.
In view of the fact that the unit of the station frequency of the fm broadcast station is generally MHz, and the station frequency may not be an integer but may have a digit after a decimal point, the preset rule may be to obtain the corresponding station index value by extending the value of the station frequency by ten times. For example, the station index value corresponding to the fm broadcast station with a station frequency of 104.7MHz may be 1047, the station index value corresponding to the fm broadcast station with a station frequency of 87.6MHz may be 876, and the station index value corresponding to the fm broadcast station with a station frequency of 108.5MHz may be 1085.
In some alternative embodiments, the above S102 may also include:
s1022: and inquiring a pre-established data table to obtain a radio station index value corresponding to each FM broadcast station, wherein the data table records the one-to-one correspondence between the radio station frequency and the radio station index value.
In the specific implementation, the mobile terminal may obtain the corresponding radio station index value by querying the data table according to the radio station frequency of the fm broadcast station.
S103: and sequencing the radio station index values to obtain the sequence number of each radio station index value.
In this embodiment, the radio station index values are data strings, and the mobile terminal may sort the radio station index values according to the numerical values to obtain the sequence number of each radio station index value, where the greater the sequence number is, the greater the radio station index value may be, that is, the greater the radio station index value of the sequence number is, the smaller the radio station index value of the sequence number is.
In some embodiments, in view that lengths of station index values corresponding to different fm broadcast stations may be different, in order to facilitate a comparison operation on the station index values in a subsequent step, as shown in fig. 2, the step S103 may specifically include:
s1031: and judging whether the lengths of the station index values are uniform, if not, sequentially executing S1032 and S1033, and if so, skipping S1032 and S1033 and directly executing S1034.
S1032: a station index value for the longest character and a first length of the station index value for the longest character are determined from the station index values.
Specifically, when the station index values are not uniform in length, for example, there are three station index values 177991, 1222266981, and 1222267866, the station index value for which the longest character can be obtained has two station index values 1222266981 and 1222267866, and the length (i.e., the first length) of the station index value for the longest character is 10.
S1033: and increasing the length of the station index value with the length smaller than the first length to the first length so as to unify the lengths of the station index values.
Wherein, for a station index value with a length smaller than the first length, the length of the station index value can be increased to the first length by adding one or more virtual values at the forefront of the station index value. The virtual value may be smaller than any value, for example, the virtual value &, & may be in a magnitude relationship with other values: and <0<1<2<3<4<5<6<7<8<9<10<11< … …. As an example, the length of the station index value 177991 is increased to the first length of 10, and the processed station index value & & &177991 may be obtained.
S1034: and sequencing the radio station index values with uniform length according to the numerical values to obtain the sequence number of each radio station index value.
Wherein, the larger the sequence number is, the larger the corresponding radio station index value is. As an example, the three station index values with uniform length are 1222266981, 1222267866 and & &177991 respectively, and after the three station index values are sorted in descending order of numerical value, the following can be obtained: and & &177991, 1222266981 and 1222267866, the corresponding sequence numbers may be n, (n +1) and (n +2) in sequence, and in a specific implementation, n may take a value of 1, that is, after the three station index values are sorted in order of magnitude from small to large, the mobile terminal may mark a sequence number to each station index value from 1 in sequence from small to large.
S104: and determining the difference value between any two adjacent station index values in the sequence numbers.
With continued reference to fig. 2, the step S104 may specifically include:
s1041: and comparing the highest numerical value with the two adjacent station index values in the sequence number to determine whether the two adjacent station index values are the same, if so, executing S1042, and otherwise, executing S1043.
In the above example, any two adjacent station index values in the sequence number may refer to: two station index values & & & &177991 and 1222266981 with sequence numbers 1 and 2, respectively, and two station index values 1222266981 and 1222267866 with sequence numbers 2 and 3, respectively. Specifically, for two station index values & & & &177991 and 1222266981 with sequence numbers of 1 and 2, respectively, the numerical values of the most significant bits thereof are & and 1, respectively, and it can be known by comparison that the numerical values of the most significant bits in & & &177991 and 1222266981 are not the same. For the two station index values 1222266981 and 1222267866 with sequence numbers 2 and 3, the highest bit values are 1 and 1, respectively, and it can be seen by comparison that the two values are the same, i.e., the highest bit values in 1222266981 and 1222267866 are the same.
S1042: the most significant bit is updated with the next bit of the most significant bit, and the above S1041 is returned to be executed.
As for the previous example, for the two station index values 1222266981 and 1222267866 with sequence numbers 2 and 3, respectively, the highest values are 1 and 1, respectively, and are the same, the mobile terminal may update the highest bit with the next highest bit (i.e., the second highest bit) and return to perform S1041 to further compare whether the values of the second highest bits (i.e., 2 and 2) in 1222266981 and 1222267866 are the same, so that S1042 and S1041 can form a loop, compare whether the values of the same bits in 1222266981 and 1222267866 are the same one by one from high to low, and end the loop when the values of the same bits are not the same, that is, for 1222266981 and 1222267866, after comparing the values of the seventh highest bits 6 and 7, end the loop and then perform S1043.
S1043: and taking the numerical value from the highest bit to the lowest bit in the radio station index value with the larger sequence number as the difference value corresponding to the radio station index value with the larger sequence number.
Specifically, for any two adjacent station index values in the sequence numbers, when the highest numerical value obtained by comparison is not the same, the numerical value from the highest position to the lowest position in the station index values with the larger sequence number in the two station index values can be used as the difference value corresponding to the station index value with the larger sequence number. As for the previous example, for the two station index values & & & &177991 and 1222266981 with sequence numbers 1 and 2 respectively, the highest bit (i.e., the first highest bit) values are & and 1 respectively, and are not the same, the highest to lowest bit values of the station index values 1222266981 with sequence number 2 are 1222266981, and the difference value corresponding to the station index value 1222266981 is 1222266981. For the two station indexes 1222266981 and 1222267866 with sequence numbers 2 and 3, the highest (i.e., the seventh highest) value is 6 and 7, respectively, and they are not the same, so the value from the highest (i.e., the seventh highest) to the lowest in the station index 1222267866 with sequence number 7 is 7866, and the difference between the station index 1222267866 and the station index is 7866.
S105: and storing a plurality of FM broadcasting stations to be stored according to the sequence number, the station index value and the difference value.
With continued reference to fig. 2, the step S105 may specifically include:
s1051: the smallest sequence number is determined from the sequence numbers to obtain the target sequence number.
Taking three station index values & & & & &177991, 1222266981 and 1222267866 with sequence numbers of 1, 2 and 3 as examples, the minimum sequence number is 1, that is, the target sequence number is 1.
S1052: and taking the radio station index value corresponding to the target sequence number as an initial radio station index value.
As in the previous example, the starting station index value is the station index value & & & &177991 with a sequence number of 1.
S1053: and the sequence number, the target sequence number, the initial radio station index value and the difference value are stored in an associated manner, so that a plurality of FM broadcast stations to be stored are stored.
Specifically, the starting station index value with the sequence number as the target sequence number is stored, and the station index value with the sequence number behind the target sequence number is stored with the difference value of the station index value relative to the station index value located one bit before the station index value on the sequence number, so that the complete station index value is not required to be stored, and the difference value is generally smaller than the corresponding station index value, so that the storage method of the frequency modulation broadcasting station in the application is favorable for reducing the problem of storage space waste caused by independent storage of the frequency modulation broadcasting station in the prior art. It should be noted that, when the virtual value exists in the starting station index value and the difference value, the stored starting station index value and the stored difference value may be the starting station index value and the difference value after the virtual value is removed, so as to save the storage space.
For example, for three station index values & & & &177991, 1222266981 and 1222267866 with sequence numbers of 1, 2 and 3, respectively, a difference value of the station index value 1222266981 with respect to the station index value & & &177991 located at the previous bit thereof in the sequence number may be 1222266981, a difference value of the station index value 1222267866 with respect to the station index value 1222266981 located at the previous bit thereof in the sequence number may be 7866, and the station index values to be stored corresponding to the three station index values & & & & &177991, 1222266981 and 1222267866 with sequence numbers of 1, 2 and 3, respectively, may be 177991, 1222266981 and 7866 in this order.
Further, after the above S105, the method further includes:
s106: and acquiring a stored reading instruction of the FM broadcasting station.
Specifically, when a user needs to switch a currently listened FM broadcast station on the mobile terminal to a next FM broadcast station, the user may trigger the mobile terminal to generate a stored FM broadcast station reading instruction, so that the mobile terminal can provide the stored FM broadcast stations to the user after receiving the stored FM broadcast station reading instruction, and the user can select one of the stored FM broadcast stations to switch the currently listened FM broadcast station.
S107: and determining the stored FM broadcasting station based on the sequence number, the target sequence number, the initial broadcasting station index value and the difference value which are stored in a related manner according to the stored FM broadcasting station reading instruction.
After obtaining the stored fm broadcast station reading instruction, the mobile terminal may convert the sequence number, the target sequence number, the starting station index value, and the difference value, which are stored in association, into an fm broadcast station based on the reverse operation of S102 to S105, and display the converted fm broadcast station to the user. Specifically, the index value of the starting radio station may be converted into the fm broadcast station with the minimum sequence number based on the preset rule or by querying the data table, and then the fm broadcast station with the second minimum sequence number may be determined based on the difference value corresponding to the second minimum sequence number and the fm broadcast station with the minimum sequence number, and so on, and the fm broadcast station with the sequence number may be determined based on the difference value corresponding to the sequence number after the target sequence number (i.e., the minimum sequence number) and the fm broadcast station with the previous sequence number in sequence according to the sequence number from small to large.
Further, after obtaining the FM broadcast stations of each sequence number, as shown in fig. 3, the mobile terminal may display the obtained FM broadcast stations (e.g., FM 104.7MHz, FM 87.6MHz, FM 108.5MHz, etc.) on the station switching interface a, so that the user can select a target FM broadcast station from the displayed FM broadcast stations as needed to switch the currently listened FM broadcast station (e.g., 106.1 MHz).
Different from the prior art, the storage method of the fm broadcast station in this embodiment includes obtaining a plurality of fm broadcast stations to be stored, determining a station index value corresponding to each fm broadcast station, then sorting the station index values to obtain a sequence number of each station index value, determining a difference value between any two adjacent station index values in the sequence number, and then storing the plurality of fm broadcast stations to be stored according to the sequence number, the station index values and the difference value.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a storage device of an fm broadcast station according to an embodiment of the present disclosure. As shown in fig. 4, the fm broadcast station storage apparatus 50 includes:
(1) acquisition module 51
The obtaining module 51 is configured to obtain a plurality of fm broadcast stations to be stored.
(2) First determination module 52
A first determining module 52 is configured to determine a station index value corresponding to each fm broadcast station.
The first determining module 52 may be specifically configured to: and converting the radio station frequency of each FM broadcast station into a corresponding radio station index value according to a preset rule.
(3) Sorting module 53
The sorting module 53 is configured to sort the radio station index values to obtain a sequence number of each radio station index value.
The sorting module 53 may specifically include:
the judging unit is used for judging whether the lengths of the radio station index values are uniform or not;
the first determining unit is used for determining the radio station index value of the longest character and the first length of the radio station index value of the longest character from the radio station index values when the lengths of the radio station index values are not uniform;
the increasing unit is used for increasing the length of the radio station index value with the length smaller than the first length to the first length so as to unify the lengths of the radio station index values;
and the sequencing unit is used for sequencing the radio station index values with uniform length according to the numerical values to obtain the sequence number of each radio station index value.
(4) Second determination module 54
And a second determining module 54, configured to determine a difference value between any two adjacent station index values in the sequence numbers.
The second determining module 54 may specifically include:
the comparing unit is used for comparing whether the numerical value of the highest bit is the same or not for any two adjacent radio station index values in the sequence numbers;
the updating unit is used for updating the highest position by using the next position of the highest position when the numerical values of the highest positions in any two adjacent station index values in the sequence number are the same, and triggering the comparing unit to compare whether the numerical values of the highest positions are the same again;
and the second determining unit is used for taking the numerical value from the highest position to the lowest position in the radio station index values with larger sequence numbers as the difference value corresponding to the radio station index values with larger sequence numbers when the numerical value of the highest position in any two adjacent radio station index values in the sequence numbers is different.
(5) Memory module 55
And the storage module 55 is configured to store a plurality of fm broadcast stations to be stored according to the sequence number, the station index value, and the difference value.
The storage module 55 may specifically include:
a third determining unit, configured to determine a minimum sequence number from the sequence numbers to obtain a target sequence number;
a fourth determining unit, configured to use the radio station index value corresponding to the target sequence number as an initial radio station index value;
and the storage unit is used for storing the sequence number, the target sequence number, the initial radio station index value and the difference value in a correlation manner so as to realize the storage of a plurality of FM broadcast stations to be stored.
Further, the obtaining module 51 may be further configured to: and acquiring a stored reading instruction of the FM broadcasting station. The fm broadcast station storage apparatus 50 may further include:
(6) third determining module
And the third determining module is used for determining the stored FM broadcasting stations based on the associated and stored sequence numbers, the target sequence numbers, the initial broadcasting station index values and the difference values according to the stored FM broadcasting station reading instructions.
In specific implementation, the above modules and units may be implemented as independent entities, or may be combined arbitrarily and implemented as one or several entities, and specific implementations of the above modules may refer to the foregoing method embodiments, which are not described herein again.
Be different from prior art, FM broadcasting station storage device in this embodiment, through obtaining a plurality of FM broadcasting stations that wait to store, and confirm the radio station index value that each FM broadcasting station corresponds, then rank radio station index value, obtain the sequence number of each radio station index value, and confirm the difference value between two arbitrary adjacent radio station index values in the sequence number, later according to the sequence number, radio station index value and difference value, FM broadcasting station to a plurality of waiting to store stores, thereby, when keeping more FM broadcasting stations in the mobile terminal, can realize the associative storage between these FM broadcasting stations, thereby avoid because the extravagant problem of storage resource that these FM broadcasting stations independently store and cause.
Correspondingly, the embodiment of the application further provides the mobile terminal, and the mobile terminal can be a smart phone, a tablet computer and other devices. As shown in fig. 5, the mobile terminal 800 includes a processor 801, a memory 802. The processor 801 is electrically connected to the memory 802.
The processor 801 is a control center of the mobile terminal 800, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or loading an application program stored in the memory 802 and calling data stored in the memory 802, thereby performing overall monitoring of the mobile terminal.
In this embodiment, the processor 801 in the mobile terminal 800 loads instructions corresponding to processes of one or more application programs into the memory 802, and the processor 801 executes the application programs stored in the memory 802 according to the following steps, so as to implement various functions:
acquiring a plurality of FM broadcasting stations to be stored;
determining a radio station index value corresponding to each FM broadcast station;
sequencing the radio station index values to obtain the sequence number of each radio station index value;
determining a difference value between any two adjacent radio station index values in the sequence numbers;
and storing a plurality of FM broadcasting stations to be stored according to the sequence number, the station index value and the difference value.
The mobile terminal may implement the steps in any embodiment of the storage method for an fm broadcast station provided in the embodiment of the present application, and therefore, the beneficial effects that can be achieved by any storage method for an fm broadcast station provided in the embodiment of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
Fig. 6 is a block diagram showing a specific structure of a mobile terminal according to an embodiment of the present invention, where the mobile terminal may be used to implement the storage method of the fm broadcast station provided in the above embodiment. This mobile terminal 900 may be an AR glasses, an AR helmet, an AR head-up display (HUD), a smartphone, or a laptop, among other devices.
The RF circuit 910 is used for receiving and transmitting electromagnetic waves, and interconverting the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. RF circuit 910 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuit 910 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Mobile Communication (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., IEEE802.11 a, IEEE802.11 b, IEEE802.1 g and/or IEEE802.1 n), Voice over Internet Protocol (VoIP), world wide Internet Protocol (Microwave Access for Wireless communications, Wi-Max), and other short message protocols, as well as any other suitable communication protocols, and may even include those that have not yet been developed.
The memory 920 may be used to store software programs and modules, such as program instructions/modules corresponding to the storage method of the fm broadcast station in the foregoing embodiment, and the processor 980 executes various functional applications and data processing by running the software programs and modules stored in the memory 920, that is, functions of charging a backup battery, charging a battery, and the like. The memory 920 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 920 may further include memory located remotely from the processor 980, which may be connected to the mobile terminal 900 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 930 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 930 may include a touch-sensitive surface 931 as well as other input devices 932. The touch-sensitive surface 931, also referred to as a touch screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 931 (e.g., operations by a user on or near the touch-sensitive surface 931 using a finger, a stylus, or any other suitable object or attachment) and drive the corresponding connecting device according to a predetermined program. Alternatively, the touch sensitive surface 931 may include both a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 980, and can receive and execute commands sent by the processor 980. In addition, the touch sensitive surface 931 may be implemented in various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 930 may also include other input devices 932 in addition to the touch-sensitive surface 931. In particular, other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Display unit 940 may be used to Display information input by or provided to a user, as well as various graphical user interfaces of mobile terminal 900, which may be comprised of graphics, text, icons, video, and any combination thereof Display unit 940 may include a Display panel 941, which may optionally be configured in the form of L CD (L iquid Crystal Display ), O L ED (Organic L light-Emitting Diode), etc. further, touch-sensitive surface 931 may overlay Display panel 941, and when touch-sensitive surface 931 detects a touch operation on or near touch-sensitive surface 931, communicate to processor to determine the type of touch event, and processor 980 then provides a corresponding visual output on Display panel 941 depending on the type of touch event.
The mobile terminal 900 may also include at least one sensor 950, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 941 according to the brightness of ambient light, and a proximity sensor that may generate an interrupt when the folder is closed or closed. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured on the mobile terminal 900, further description is omitted here.
The audio circuitry 960, speaker 961, microphone 962 may provide an audio interface between a user and the mobile terminal 900. The audio circuit 960 may transmit the electrical signal converted from the received audio data to the speaker 961, and convert the electrical signal into a sound signal for output by the speaker 961; on the other hand, the microphone 962 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 960, and outputs the audio data to the processor 980 for processing, and then transmits the audio data to another terminal via the RF circuit 910, or outputs the audio data to the memory 920 for further processing. The audio circuit 960 may also include an earbud jack to provide communication of peripheral headphones with the mobile terminal 900.
The mobile terminal 900, which can assist the user in receiving requests, sending messages, etc., through a transmission module 970 (e.g., a Wi-Fi module), provides the user with wireless broadband internet access. Although the transmission module 970 is illustrated in the drawings, it is understood that it does not belong to the essential constitution of the mobile terminal 900 and can be omitted entirely within the scope not changing the essence of the invention as needed.
The processor 980 is a control center of the mobile terminal 900, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 900 and processes data by operating or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the mobile terminal. Optionally, processor 980 may include one or more processing cores; in some embodiments, the processor 980 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 980.
The mobile terminal 900 also includes a power supply 990 (e.g., a battery backup or battery) that provides power to the various components and, in some embodiments, may be logically connected to the processor 980 via a power management system that provides management of charging, discharging, and power consumption. Power supply 990 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and the like.
Although not shown, the mobile terminal 900 further includes a camera (e.g., a front camera, a rear camera), a bluetooth module, etc., which are not described in detail herein. Specifically, in this embodiment, the display unit of the mobile terminal is a touch screen display, the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
acquiring a plurality of FM broadcasting stations to be stored;
determining a radio station index value corresponding to each FM broadcast station;
sequencing the radio station index values to obtain the sequence number of each radio station index value;
determining a difference value between any two adjacent radio station index values in the sequence numbers;
and storing a plurality of FM broadcasting stations to be stored according to the sequence number, the station index value and the difference value.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor. To this end, embodiments of the present invention provide a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps of any one of the storage methods of the fm broadcast station provided by the embodiments of the present invention.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any embodiment of the storage method for the fm broadcast station provided in the embodiment of the present application, the beneficial effects that can be achieved by any storage method for the fm broadcast station provided in the embodiment of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described again here.
The storage method, the storage device, the storage medium and the mobile terminal for the fm broadcast station provided by the embodiment of the present application are introduced in detail, a specific example is applied in the description to explain the principle and the implementation of the present application, and the description of the embodiment is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A fm radio station storage method, comprising:
acquiring a plurality of FM broadcasting stations to be stored;
determining a radio station index value corresponding to each FM broadcast station;
sequencing the radio station index values to obtain a sequence number of each radio station index value;
determining a difference value between any two adjacent radio station index values in the sequence numbers;
and storing the plurality of FM broadcasting stations to be stored according to the sequence number, the station index value and the difference value.
2. A method as claimed in claim 1, wherein said determining a station index value for each of said plurality of fm broadcast stations comprises:
and converting the radio station frequency of each FM broadcast station into a corresponding radio station index value according to a preset rule.
3. A method as claimed in claim 1, wherein said sorting of said station index values to obtain a sequence number for each of said station index values comprises:
judging whether the lengths of the radio station index values are uniform or not;
if not, determining the radio station index value of the longest character and a first length of the radio station index value of the longest character from the radio station index values;
adding the length of the station index value with the length smaller than the first length to the first length so as to unify the lengths of the station index values;
and sequencing the radio station index values with uniform lengths according to the numerical values to obtain the sequence number of each radio station index value.
4. A method as claimed in claim 3, wherein said determining a difference between any two adjacent station index values in said sequence number comprises:
comparing whether the numerical value of the highest bit is the same or not for any two adjacent radio station index values in the sequence numbers;
if the highest bits are the same, updating the highest bits by using the next bit of the highest bits, and returning to the step of comparing whether the numerical values of the highest bits are the same or not;
and if the sequence numbers are different, taking the numerical value from the highest bit to the lowest bit in the radio station index value with the larger sequence number as the difference value corresponding to the radio station index value with the larger sequence number.
5. A method as claimed in claim 1, wherein said storing said plurality of fm broadcast stations to be stored according to said sequence number, station index value and difference value, comprises:
determining the minimum sequence number from the sequence numbers to obtain a target sequence number;
taking the radio station index value corresponding to the target sequence number as an initial radio station index value;
and performing associated storage on the sequence number, the target sequence number, the initial radio station index value and the difference value so as to realize storage of the plurality of FM broadcast stations to be stored.
6. A FM broadcast station storage method as claimed in claim 5, wherein after said storing said sequence number, target sequence number, starting station index value and difference value in association, further comprising:
acquiring a stored reading instruction of a frequency modulation broadcasting station;
and determining the stored FM broadcasting station based on the sequence number, the target sequence number, the initial broadcasting station index value and the difference value which are stored in a correlated manner according to the stored FM broadcasting station reading instruction.
7. A fm radio station storage device, comprising:
the acquisition module is used for acquiring a plurality of FM broadcasting stations to be stored;
a first determining module, configured to determine a radio station index value corresponding to each fm broadcast station;
the sorting module is used for sorting the radio station index values to obtain a sequence number of each radio station index value;
a second determining module, configured to determine a difference value between any two adjacent radio station index values in the sequence numbers;
and the storage module is used for storing the plurality of FM broadcasting stations to be stored according to the sequence number, the radio station index value and the difference value.
8. A fm broadcast station storage apparatus as claimed in claim 7, wherein said first determining module is specifically configured to:
and converting the radio station frequency of each FM broadcast station into a corresponding radio station index value according to a preset rule.
9. A computer readable storage medium having stored thereon instructions adapted to be loaded by a processor to perform the fm broadcast station storage method of any of claims 1 to 6.
10. A mobile terminal comprising a processor and a memory, the processor being electrically connected to the memory, the memory being configured to store instructions and data, the processor being configured to perform the steps of the fm broadcast station storage method of any one of claims 1 to 6.
CN202010194210.4A 2020-03-19 2020-03-19 Frequency modulation broadcasting station storage method and device, storage medium and mobile terminal Pending CN111416679A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010194210.4A CN111416679A (en) 2020-03-19 2020-03-19 Frequency modulation broadcasting station storage method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010194210.4A CN111416679A (en) 2020-03-19 2020-03-19 Frequency modulation broadcasting station storage method and device, storage medium and mobile terminal

Publications (1)

Publication Number Publication Date
CN111416679A true CN111416679A (en) 2020-07-14

Family

ID=71493109

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010194210.4A Pending CN111416679A (en) 2020-03-19 2020-03-19 Frequency modulation broadcasting station storage method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN111416679A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101568078A (en) * 2008-04-23 2009-10-28 三星电子株式会社 Method for performing broadcasting station search in wireless terminal
CN102118208A (en) * 2009-12-31 2011-07-06 上海博泰悦臻电子设备制造有限公司 Frequency modulation broadcast receiving terminal and frequency modulation broadcast receiving method
CN103378915A (en) * 2012-04-17 2013-10-30 上海博泰悦臻电子设备制造有限公司 Frequency modulation broadcast receiving method for vehicle end
CN106850999A (en) * 2017-02-23 2017-06-13 惠州Tcl移动通信有限公司 A kind of music playlist storage processing method and system based on mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101568078A (en) * 2008-04-23 2009-10-28 三星电子株式会社 Method for performing broadcasting station search in wireless terminal
CN102118208A (en) * 2009-12-31 2011-07-06 上海博泰悦臻电子设备制造有限公司 Frequency modulation broadcast receiving terminal and frequency modulation broadcast receiving method
CN103378915A (en) * 2012-04-17 2013-10-30 上海博泰悦臻电子设备制造有限公司 Frequency modulation broadcast receiving method for vehicle end
CN106850999A (en) * 2017-02-23 2017-06-13 惠州Tcl移动通信有限公司 A kind of music playlist storage processing method and system based on mobile terminal

Similar Documents

Publication Publication Date Title
CN108430101B (en) Antenna closing method and device, storage medium and electronic equipment
CN105786878B (en) Display method and device of browsing object
CN106294308B (en) Named entity identification method and device
CN105302452B (en) Operation method and device based on gesture interaction
CN103455330A (en) Application program management method, terminal, equipment and system
CN112230877A (en) Voice operation method and device, storage medium and electronic equipment
CN105095161B (en) Method and device for displaying rich text information
CN107452361B (en) Song sentence dividing method and device
CN105512150A (en) Method and device for information search
CN110335629B (en) Pitch recognition method and device of audio file and storage medium
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN103607377A (en) Method, device and system for information sharing
CN111211421A (en) Antenna tuning circuit and mobile terminal
CN104536781A (en) Terminal
CN106294087B (en) Statistical method and device for operation frequency of business execution operation
CN106851784B (en) network scanning method and terminal equipment
CN111327343A (en) Common receiving channel radio frequency device, method and mobile terminal
CN108900385B (en) Network connection method and related product
CN103336677A (en) Method, device and system for outputting images to display equipment
CN107094027B (en) Antenna tuning method and mobile terminal
CN115794654A (en) Test case distribution processing method, system, equipment and storage medium
CN106547400B (en) Method, device and terminal for reporting information
CN112367425B (en) Volume adjusting method and device and terminal
CN111416679A (en) Frequency modulation broadcasting station storage method and device, storage medium and mobile terminal
CN104954231A (en) Method and device for transmitting and displaying recommended information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200714

RJ01 Rejection of invention patent application after publication