Summary of the invention
The technical problem to be solved in the present invention is, for the defects of prior art, a kind of FM channel search method and mobile phone of mobile phone is provided, it makes mobile phone increase new function: realized the country origin according to mobile phone roaming, the hunting zone of automatic setting FM frequency of radio station provides users with the convenient.
The technical scheme that technical solution problem of the present invention adopts is as follows:
A kind of FM channel search method of mobile phone wherein, comprises step:
A, mobile phone are synchronizeed with local networks according to the frequency setting of self;
B, complete Network Synchronization when mobile phone, obtain the information as the PLMN of preamble available network by the demodulation broadcast channel, described PLMN information comprises Mobile Country Code MCC;
C, mobile phone be according to the Mobile Country Code MCC in the PLMN information of obtaining, and judge whether the country origin of mobile phone current present position is Japanese, when being, the hunting zone of FM frequency of radio station is defined as 76MHz-90MHz; When no, the hunting zone of FM frequency of radio station is defined as 87.5MHz-108MHz;
D, mobile phone open FM tuning program, more the FM station list of new cell-phone according to the FM frequency of radio station hunting zone of above-mentioned restriction.
The FM channel search method of described mobile phone wherein, also comprises step after described step D:
E1, when mobile phone moves in same national region scope, obtain the current cell ID of this state by the demodulation broadcast channel;
E2, when cell ID being detected and change, the FM station list of new cell-phone more again.
The FM channel search method of described mobile phone, wherein, described step C also comprises step:
C0, the special position FLAG that indicates is set in mobile phone, is used for expression current phone position and whether is in Japan, when special signs a position FLAG 0 means the current phone position not in Japan, when a special sign FLAG 1 means that the current phone position is in Japan.
The FM channel search method of described mobile phone, wherein, described step C specifically comprises:
C1, mobile phone be according to the Mobile Country Code MCC in the PLMN information of obtaining, and judge whether the country origin of mobile phone current present position is Japanese, when being, will indicating especially a FLAG and be set to 1, is set to 0 otherwise will indicate especially a FLAG;
C2, mobile phone detect the above-mentioned special value that indicates position FLAG, and control the hunting zone of FM frequency of radio station according to the above-mentioned special value that indicates position FLAG;
C3, when special sign position FLAG=1 being detected, the hunting zone of FM frequency of radio station is defined as 76MHz ~ 90MHz; When special sign position FLAG=0 being detected, the hunting zone of FM frequency of radio station is defined as 87.5MHz ~ 108MHz.
A kind of mobile phone wherein, comprising:
The Network Synchronization module is used for the frequency setting according to mobile phone self, synchronizes with local networks;
Acquisition module is used for completing Network Synchronization when mobile phone, obtains the information as the PLMN of preamble available network by the demodulation broadcast channel, and described PLMN information comprises Mobile Country Code MCC;
FM tuning frequency control module is used for the Mobile Country Code MCC according to the PLMN information of obtaining, and judge whether the country origin of mobile phone current present position is Japanese, when being, the hunting zone of FM frequency of radio station is defined as 76MHz-90MHz; When no, the hunting zone of controlling the FM frequency of radio station is defined as 87.5MHz-108MHz;
FM tuning module is used for the FM frequency of radio station hunting zone according to above-mentioned restriction, opens FM tuning program, more the FM station list of new cell-phone.
Described mobile phone, wherein, it also comprises:
Update module is used for obtaining the current cell ID of this state by the demodulation broadcast channel in same national region scope when mobile phone moves, when cell ID being detected and change, and the FM station list of new cell-phone more again.
Described mobile phone, wherein, it also comprises:
Module is set, be used for arranging a special position FLAG that indicates in mobile phone, be used for expression current phone position and whether be in Japan, when special signs a position FLAG 0 means the current phone position not in Japan, when a special sign FLAG 1 means that the current phone position is in Japan.
Described mobile phone, wherein, described FM tuning frequency control module comprises:
Mobile phone country origin judging unit of living in is used for extracting Mobile Country Code MCC from the PLMN information of obtaining, and judge according to the Mobile Country Code MCC that extracts whether the country origin of mobile phone current present position is Japanese;
Indicate assignment unit, position, be used for to indicate especially a FLAG and being set to 1 when the country origin of judgement mobile phone current present position is Japan, when the country origin that judges mobile phone current present position is not Japan, will indicates especially a FLAG and be set to 0;
FM tuning frequency determining unit is used for when special sign FLAG=1 being detected, and the hunting zone of FM frequency of radio station is defined as 76MHz ~ 90MHz; When special sign position FLAG=0 being detected, the hunting zone of FM frequency of radio station is defined as 87.5MHz ~ 108MHz.
FM channel search method and the mobile phone of mobile phone provided by the present invention owing to having adopted mobile phone according to the PLMN information of obtaining, judges whether the country origin of mobile phone current present position is Japanese, when being, the hunting zone of FM frequency of radio station are defined as 76MHz-90MHz; When no, the hunting zone of controlling the FM frequency of radio station is defined as 87.5MHz-108MHz, it makes mobile phone increase new function: realized the country origin according to mobile phone roaming, the hunting zone of automatic setting FM frequency of radio station, simultaneously, the present invention also makes mobile phone increase the another one function, according to the CELL-ID(cell ID) judge whether customer location upgrades, thereby automatically change station list, provide users with the convenient.
Embodiment
FM channel search method and the mobile phone of mobile phone provided by the present invention, clearer, clear and definite for making purpose of the present invention, technical scheme and advantage, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
The FM channel search method of a kind of mobile phone of the embodiment of the present invention as shown in Figure 1, mainly comprises the following steps:
Step S110, mobile phone are synchronizeed with local networks according to the frequency setting of self.
In the embodiment of the present invention, in the time of mobile phone roaming to a new area or new nation, can seek local networks and register, mobile phone is attempted synchronizeing with local networks according to the frequency setting of self, enters step S120.
S120, complete Network Synchronization when mobile phone, obtain the information as the PLMN of preamble available network (public land mobile network) by the demodulation broadcast channel.Wherein PLMN information comprises MCC and MNC, and MNC wherein is mobile code, such as indicating China Mobile or CHINAUNICOM.MCC is Mobile Country Code MCC, such as indicating China, Japan etc.
For example, when mobile phone is completed with the synchronizeing of local networks, obtain the PLMN of current a plurality of synchronizing networks by the demodulation broadcast channel.Wherein, PLMN(Public Land Mobile Network, public land mobile network), the operator who is ratified by government or it, the networking that provides the land mobile business purpose to set up and manage for the public.This networking must interconnect with public switched telephone network (PSTN), forms the communication network of whole distract or Country Scale.PLMN=MCC+MNC, for example the PLMN of China Mobile is 46000, the PLMN of CHINAUNICOM is 46001.
S130, mobile phone are according to the MCC(Mobile Country Code MCC in the PLMN information of obtaining), judge whether the country origin of mobile phone current present position is Japanese, when being, the hunting zone of FM frequency of radio station is defined as 76MHz-90MHz; When no, the hunting zone of controlling the FM frequency of radio station is defined as 87.5MHz-108MHz; Mobile phone demodulation broadcast channel is that basis MCC (Mobile Country Code MCC) wherein judges whether to be positioned at Japan, and when judging that mobile phone is positioned at Japan, the hunting zone is set as Japanese frequency range.
For example, can adopt the special position FLAG that indicates is set in mobile phone, be used for expression current phone position and whether be in Japan, when a special sign position FLAG 0 means the current phone position not in Japan, when special a signs FLAG 1 means that the current phone position is in Japan.The default setting that FLAG can be set is 0, is expressed as mobile phone current not in Japan.Mobile phone detects current location and is under Japanese state, and this FLAG set again is 1.
In the specific implementation, this step S130 specifically comprises:
C1, mobile phone be according to the MCC (Mobile Country Code MCC) in the PLMN information of obtaining, and judge whether the country origin of mobile phone current present position is Japanese, when being, will indicating especially a FLAG and be set to 1, is set to 0 otherwise will indicate especially a FLAG.
C2, mobile phone detect the above-mentioned special value that indicates position FLAG, and control the hunting zone of FM frequency of radio station according to the above-mentioned special value that indicates position FLAG;
C3, when special sign position FLAG=1 being detected, the hunting zone of FM frequency of radio station is defined as 76MHz ~ 90MHz; When special sign position FLAG=0 being detected, the hunting zone of FM frequency of radio station is defined as 87.5MHz ~ 108MHz, and enters step S140.
S140, mobile phone open FM tuning program, more the FM station list of new cell-phone according to the FM frequency of radio station hunting zone of above-mentioned restriction.
Namely when the country origin of judgement mobile phone current present position is Japan, the hunting zone of FM frequency of radio station is defined as 76MHZ-90MHZ; And according to the FM frequency of radio station hunting zone of this restriction, open FM tuning program, more the FM station list of new cell-phone.
And when the country origin of judgement mobile phone current present position was not Japan, the hunting zone of controlling the FM frequency of radio station was defined as 87.5MHZ-108MHZ, and according to the FM frequency of radio station hunting zone of this restriction, opened FM tuning program, more the FM station list of new cell-phone.
In the embodiment of the present invention, for the FM tuning, two kinds of situations can be arranged
The FM tuning is opened on the first, backstage automatically:
Mobile phone is detecting FLAG by in set situation again, and FM tuning program is opened on the backstage automatically, upgrades the FM station list.
If FLAG=1, the hunting zone of frequency of radio station is defined as 76MHz ~ 90MHz.
If FLAG=0, the hunting zone of frequency of radio station is defined as 87.5MHz ~ 108MHz.
Further, when the CELL-ID(cell ID that obtains from network broadcast channel), when CELL-ID upgraded, the FM tuning was opened on the backstage automatically.
The second, manual tuning:
In the time of the manually opened tuning program of user, at first check FLAG set situation, FLAG=1 detected, the hunting zone of frequency of radio station is defined as 76MHz ~ 90MHz.FLAG=0 detected, the hunting zone of frequency of radio station is defined as 87.5MHz ~ 108MHz.
In the present invention, mobile phone is just distinguished national code by MCC, and certainly, mobile phone is cross over another one country from a country, and when namely MCC changed, the radio station can be upgraded.
Simultaneously, the present invention also provides the another one function, judges according to CELL-ID (cell ID) whether customer location upgrades, thereby automatically changes station list.Be that described step S140 also comprises step afterwards:
E1, when mobile phone moves in same national region scope, obtain the current CELL-ID of this state (cell ID) by the demodulation broadcast channel;
E2, the current CELL-ID that obtains and the front CELL-ID that once obtains are compared judgement, when CELL-ID (cell ID) being detected when changing, the FM station list of new cell-phone more again.
CELL-ID is certain concrete base station under certain operator, and mobile phone is conversed by first accessing certain concrete base station.Mobile phone comprises MCC, MNC, CELL-ID from the information of broadcast channel the inside demodulation.
Because each signal strength signal intensities in different places of FM can be different, so the platform that different place searches may be different.Because a CELL-ID coverage is wider, so when crossing over CELL-ID, the list of FM tends to change.
Such as, current in Japan, CELL-ID is A, when the user moves to a CELL-ID when being the position of B, the location comparison that covers due to each CELL is large, may station list in new position can be different, at this time automatically automatically open again the tuning program.Certainly, due in Japan, the scope of search is japonic frequency range 76MHz ~ 90MHz, and the FM radio station is upgraded in search on the basis of this frequency range.
At first concrete example, mobile phone confirm that MCC is Japan from China to Japan, setting the FM hunting zone is japonic frequency range 76MHz ~ 90MHz, opens simultaneously tuning, upgrades list.When mobile phone moves in Japan the time, if find that CELL-ID changes, also open and upgrade.
Therefore the FM channel search method of embodiment of the present invention mobile phone has been realized the country origin according to mobile phone roaming, and the hunting zone of automatic setting FM frequency of radio station provides users with the convenient.
Based on the FM channel search method of above-described embodiment mobile phone, the embodiment of the present invention also provides a kind of mobile phone, and as shown in Figure 2, the present invention wherein mobile phone of an embodiment comprises:
Network Synchronization module 210 is used for the frequency setting according to mobile phone self, synchronizes with local networks; Specifically as mentioned above.
Acquisition module 220 is used for completing Network Synchronization when mobile phone, obtains the information as the PLMN of preamble available network by the demodulation broadcast channel, and described PLMN information comprises Mobile Country Code MCC; Specifically as mentioned above.
FM tuning frequency control module 230 is used for the Mobile Country Code MCC according to the PLMN information of obtaining, and judge whether the country origin of mobile phone current present position is Japanese, when being, the hunting zone of FM frequency of radio station is defined as 76MHZ-90MHZ; When no, the hunting zone of controlling the FM frequency of radio station is defined as 87.5MHZ-108MHZ; Specifically as mentioned above.
FM tuning module 240 is used for the FM frequency of radio station hunting zone according to above-mentioned restriction, opens FM tuning program, the FM station list of new cell-phone more, specifically as mentioned above.
Further, the present invention also provides the mobile phone of another embodiment, and as shown in Figure 3, except comprising above-mentioned module, it also comprises:
Module 250 is set, be used for arranging a special position FLAG that indicates in mobile phone, be used for expression current phone position and whether be in Japan, when a special sign position FLAG 0 means that the current phone position is not in Japan, when a special sign position FLAG 1 means that the current phone position is in Japan, specifically as mentioned above.
Update module 260 is used for obtaining the current cell ID of this state by the demodulation broadcast channel in same national region scope when mobile phone moves, when cell ID being detected and change, and the FM station list of new cell-phone more again, specifically as mentioned above.
Wherein, as shown in Figure 4, described FM tuning frequency control module 230 comprises:
Mobile phone country origin judging unit 231 of living in is used for extracting the MCC(Mobile Country Code MCC from the PLMN information of obtaining), and according to the Mobile Country Code MCC that extracts, judge whether the country origin of mobile phone current present position is Japanese; Specifically as mentioned above.
Indicate assignment unit, position 232, be used for to indicate especially a FLAG and being set to 1 when the country origin of judgement mobile phone current present position is Japan, when the country origin that judges mobile phone current present position is not Japan, will indicates especially a FLAG and be set to 0; Specifically as mentioned above.
FM tuning frequency determining unit 233 is used for when special sign FLAG=1 being detected, and the hunting zone of FM frequency of radio station is defined as 76MHz ~ 90MHz; When special sign position FLAG=0 being detected, the hunting zone of FM frequency of radio station is defined as 87.5MHz ~ 108MHz; Specifically as mentioned above.
In sum, FM channel search method and the mobile phone of mobile phone provided by the present invention owing to having adopted mobile phone according to the PLMN information of obtaining, judges whether the country origin of mobile phone current present position is Japanese, when being, the hunting zone of FM frequency of radio station is defined as 76MHZ-90MHZ; When no, the hunting zone of controlling the FM frequency of radio station is defined as 87.5MHZ-108MHZ, it makes mobile phone increase new function: realized the country origin according to mobile phone roaming, the hunting zone of automatic setting FM frequency of radio station, simultaneously, the present invention also makes mobile phone increase the another one function, according to the CELL-ID(cell ID) judge whether customer location upgrades, thereby automatically change station list, provide users with the convenient.
Should be understood that, application of the present invention is not limited to above-mentioned giving an example, and for those of ordinary skills, can be improved according to the above description or conversion, and all these improve and conversion all should belong to the protection range of claims of the present invention.