Summary of the invention
In view of the foregoing, it is necessary to provide a kind of quick manual search the system of net, quick manual search net method andRealize that quick manual searches the electronic equipment of net.
A kind of system that quick manual searches net, runs in electronic equipment, the electronic equipment include storage device andDisplay device, the storage device be at least stored with all No. PLMN national locating for the electronic equipment and it is each No. PLMN it is rightThe each network formats answered, the system include: scan module, for obtaining all frequency ranges for the network formats that will be scanned, according toThe each frequency range of secondary scanning, and store No. PLMN of the network scanned;First judgment module, for being completed when a band scanWhen, judge whether all frequency ranges of the network formats are all scanned and completes;Second judgment module, for working as the institute of the network formatsWhen thering is frequency range not to be completely scanned completion, the PLMN of the all-network of the network formats national locating for the electronic equipment is judgedNumber whether all it is scanned;Third judgment module, all scanned completion or described of all frequency ranges for working as the network formatsWhen No. PLMN of the all-network of the national network formats locating for electronic equipment is all scanned, the electronic equipment branch is judgedWhether the all-network standard held is all scanned to be completed;And feedback module, the all-network for being supported when the electronic equipmentWhen standard is all scanned completion, the network searched is shown in the display device of electronic equipment.
A kind of method that quick manual searches net, be applied to electronic equipment in, the electronic equipment include storage device andDisplay device, the storage device be at least stored with all No. PLMN national locating for the electronic equipment and it is each No. PLMN it is rightThe each network formats answered, this method comprises: scanning step, obtains all frequency ranges for the network formats that will be scanned, successively sweepEach frequency range is retouched, and stores No. PLMN of the network scanned;First judgment step, when a band scan is completed, judgementWhether all frequency ranges of the network formats are all scanned to be completed;Second judgment step, when the network formats all frequency ranges not byWhen all scanning is completed, judge No. PLMN of the all-network of the network formats national locating for the electronic equipment whether all byIt scans;Third judgment step, when all frequency ranges of the network formats are all scanned state locating for completion or the electronic equipmentWhen No. PLMN of the all-network of the network formats of family is all scanned, the all-network system that the electronic equipment is supported is judgedWhether formula is all scanned to be completed;And feedback step, it is completed when the all-network standard that the electronic equipment is supported is all scannedWhen, the network searched is shown in the display device of electronic equipment.
A kind of electronic equipment realized quick manual and search net, the electronic equipment include: for available network around searching forCommunication device;For showing the display device of the network searched;For storing the storage device of preset PLMN table;ForIt realizes that quick manual searches the processor of net, the processor executes following step: obtaining all of the network formats that will be scannedFrequency range, control communication device successively scans each frequency range, and storage device is arrived in No. PLMN storage of the network scanned;When oneWhen a band scan is completed, judges whether all frequency ranges of the network formats are all scanned and complete;When owning for the network formatsWhen frequency range is not completely scanned completion, the electronics is judged according to No. PLMN of pre-stored PLMN table and the network scannedWhether No. PLMN of the all-network of the national network formats locating for equipment is all scanned;When all frequencies of the network formatsNo. PLMN of the all-network of the national network formats locating for all scanned completion of section or the electronic equipment is all scannedThen, judge the whether all scanned completion of all-network standard that the electronic equipment is supported;And when the electronic equipment is supportedAll-network standard it is all scanned when completing, the network searched is shown in the display device of electronic equipment.
Compared to the prior art, the present invention judges state locating for electronic equipment in a frequency range for scanning through network formatsWhether No. PLMN of all-network of the network formats of family is all scanned, and the national network system locating for the electronic equipmentNo. PLMN of the all-network of formula when being all scanned, is skipped the frequency range that the network formats do not scan.Through the invention, electronics is setStandby can be rapidly completed searches net manually, improves the experience of user.
Specific embodiment
For ease of understanding, term according to the present invention is described briefly below:
PLMN:Public Land Mobile Network, public land mobile network.PLMN is by Mobile Country Code MCC MCCIt is formed with mobile network code MNC.Its format is MCC-MNC, such as 460-00.
MCC:Mobile Country Code, Mobile Country Code MCC, for identification country belonging to mobile subscriber.The money of MCCSource is distributed unitedly and is managed by International Telecommunication Association (ITU), country belonging to unique identification mobile subscriber, and totally 3, such as China is460。
MNC:Mobile Network Code, mobile network code, for identification mobile network belonging to mobile client.MNC is generally distributed unitedly by the related telecommunication administration of country, and the same operator can possess one or more MNC, butDifferent operators cannot share identical MNC.Such as No. MNC that China Mobile possesses are as follows: 00,02 and 07.China UnicomNo. MNC possessed are as follows: 01.Possess No. MNC of China Telecom are as follows: 03,11.
Network formats: the type of network, such as GSM, UMTS, WCDMA, FDD-LTE, TDD-LTE and TDL etc..OneThe network of network formats can be provided by different operators.The PLMN code of the network for the consolidated network standard that different operators provideIt is not identical, and the network of the consolidated network standard of same operator offer can have multiple PLMN codes.Such as China Mobile providesGSM type network PLMN code be 460-00,460-02 and 460-07.The network for the GSM type that China Unicom providesPLMN code be 460-01.
It searches net manually: for searching for available network around electronic equipment, and the list of the network searched being supplied toUser's selection, which includes the operator of the network formats of the network searched and the network searched.
The process of net is searched manually are as follows: step 1, is started a timer, while being obtained all nets that electronic equipment is supportedNetwork standard.Step 2, the network of each network formats is successively scanned according to certain sequence.Step 3, when the net of all-network standardNetwork is all scanned to be completed or when the time of scanning is more than preset time (such as 150 seconds), terminates scanning, and by the result of scanningIt is shown in the display device of electronic equipment, for selection by the user.
Such as there are three the network formats supported of electronic equipment: FDD-LTE, WCDMA and GSM.When then searching net manually,Need successively to scan the network of these three network formats.When the network of three network formats all it is scanned complete or scanning whenBetween when being more than preset time (such as 150 seconds), terminate scanning, and by scanning as the result is shown in the display device of electronic equipmentOn, for selection by the user.
Scan the process of the network of a network formats are as follows: step a obtains the network formats all frequencies to be scannedSection.Step b successively scans each frequency range according to certain sequence, and stores the result of scanning.Step c, when all frequency ranges are all sweptWhen retouching completion, judge that network formats scanning is completed.
For example, FDD-LTE and the TDD-LTE frequency range to be scanned are followed successively by B1, B3, B40 and B41.Then scan LTE classWhen the network of type, need successively to scan B1, B3, B40 and B41 according to certain sequence.It is completed when this four frequency ranges are all scannedWhen, then judge that the network of LTE type is all scanned and completes.
One frequency range may include multiple channels.To scan a frequency range, then successively to scan according to certain sequence shouldEach channel that frequency range is included.When scanning a channel, if surrounding has the base station for supporting the channel, the base station is to electronicsEquipment sends mib information, No. PLMN of the network comprising base station offer in the mib information.Such as No. PLMN of network is460-03 refers to that the network is provided by the China Telecom of CHINESE REGION.Electronic equipment storage scanning as a result, namely scanning arriveNo. PLMN of all-network, to obtain the operator belonging to it.When all channels all scan completion, then the frequency range is judgedScanning is completed.
As shown in fig.1, being the running environment schematic diagram of the preferred embodiment for the system that quick manual of the present invention searches net.InstituteIt states quick manual and searches the system 10 of net and install and run in electronic equipment 1, search net manually for being rapidly completed, and be supplied to and makeUser's selection.The electronic equipment 1 further includes, but is not limited to, communication device 11, processor 12, storage device 13 and displayDevice 14.The electronic equipment 1 can be the mobile communication equipments such as mobile phone.The communication device 11 is for searching for electronic equipment 1The available network of surrounding, communication device 11 can be the radio-frequency unit comprising antenna.The storage device 13 is described for storingQuick manual searches program instruction section and data information of the system 10 of net etc..Storage device 13 can be the memory of electronic equipment 1,It is also possible to smart media card (Smart Media Card), safe digital card (Secure Digital Card), flashThe external storage devices such as device card (Flash Card).The display device 14 is for showing the network scanned.
In the present embodiment, the system 10 that quick manual of the present invention searches net can be divided into one or more mouldsBlock, one or more of modules are stored in storage device 13, and (the present embodiment is by one or more processors 12One processor) it is performed, to complete the present invention.As shown in fig.1, quick manual of the present invention searches 10 quilt of system of netIt is divided into scan module 101, first judgment module 102, the second judgment module 103, third judgment module 104 and feedback module105.The so-called module of the present invention is the series of computation machine program segment for referring to complete specific function, than program more suitable for retouchingState the implementation procedure of software in the electronic device 1.The concrete function of modules is described below with reference to the flow chart of Fig. 2.
As shown in fig.2, being the flow chart of the preferred embodiment for the method that quick manual of the present invention searches net.The present embodimentIn, the execution sequence of the step in flow chart shown in Fig. 2 can change according to different requirements, and certain steps can be omitted.
When receive search the order of net manually when, step S20, scan module 101 obtains the institute of network formats that will be scannedThere is frequency range.
Step S21, scan module 101 scan a frequency range of the network formats, and store the PLMN of the network scannedNumber.
One frequency range includes multiple channels, and the scan module 101 successively scans the frequency range by communication device 11 and wrappedThe each channel contained.If there is the base station 2 for supporting the channel scanned around electronic equipment 1, scan module 101 passes through communicationDevice 11 receives the mib information that the base station 2 is sent, to obtain No. PLMN of the network of the base station 2 offer.The scan module101 are stored the network formats of No. PLMN of the network scanned and network into a PLMN table in a manner of accumulation,The result scanned.As shown in fig.3, being the schematic diagram of scanning result.
It is completed when all channels that the frequency range includes are all scanned, the scan module 101 judges that the band scan is completed,Execute step S22.It should be noted that when scanning consolidated network standard, if No. PLMN of the network scanned is rememberedRecord will not then repeat to record in the PLMN table.Such as when scanning GSM network standard, if 460-00 has been stored in instituteIt states in PLMN table, then this 460-00 will not be repeatedly recorded in the PLMN table.
Step S22, when a band scan is completed, first judgment module 102 judges all frequency ranges of the network formatsWhether all scanned completion.If all frequency ranges of the network formats are not completely scanned completion, step S23 is executed;If the netAll frequency ranges of network standard are all scanned to be completed, and step S24 is executed.The first judgment module 102 is according to the net of acquisitionThe list of all frequency ranges of network standard and the frequency range scanned judge whether all frequency ranges of the network formats are all sweptRetouch completion.
Step S23, the second judgment module 103 judge the all-network of the network formats national locating for electronic equipment 1Whether No. PLMN be all scanned.If No. PLMN of the all-network of the national support network formats is all locating for electronic equipment 1It is scanned, then skips the not scanned frequency range of the network formats, scan next network formats, is i.e. execution step S24;If electricNo. PLMN of the all-network of the national support network formats locating for sub- equipment 1 is not completely scanned, then return stepS21 scans next frequency range of the network formats.
It should be noted that being pre-stored with a PLMN table in the storage device 13 of the electronic equipment 1.The PLMN table packetThe column of operator corresponding to all No. PLMN containing at least one country and each No. PLMN corresponding all-network standardTable.As shown in fig.4, being the schematic diagram of the pre-stored PLMN table of electronic equipment.Wherein No. MCC be 460 expression CHINESE REGION,No. MCC be 466 expression Taiwan.The network of certain a certain No. PLMN corresponding all-network of country can be obtained by the PLMN tableOperator belonging to standard and this No. PLMN.It can also show that certain country supports the all-network of a certain network formats simultaneouslyNo. PLMN.Such as No. PLMN of the all-network of support GSM standard is 460-00,460-01,460-02 and 460-07.SecondThe PLMN table that judgment module 103 generates during the scanning process according to scan module 101, it can be deduced that the network scannedNo. PLMN, thus judge No. PLMN of the all-network of the network formats national locating for electronic equipment 1 it is whether all scannedIt arrives.In addition, second judgment module 103 determines electricity according to from the part No. PLMN MCC in the received mib information in base station 2Country locating for sub- equipment 1.
When all frequency ranges of a network formats are all scanned the network national locating for completion or the electronic equipmentNo. PLMN of the all-network of standard when being all scanned, in step S24, third judgment module 104 judges the electronic equipment branchWhether the all-network standard held is all scanned to be completed.It is completed if the all-network standard that the electronic equipment is supported is all scanned,Then follow the steps S25;If the all-network standard that the electronic equipment is supported is not completely scanned completion, return step S20 is sweptRetouch next network formats of electronic equipment support.
Step S25, feedback module 105 is according to scanning as a result, by the network formats of the network scanned and its operatorIt is shown in the display device 14 of electronic equipment 1.
As shown in fig.3, being the schematic diagram of scanning result.The feedback module 105 determines 1 surrounding GSM class of electronic equipmentNo. PLMN of the network of type is 460-00,460-01,460-02 and 460-07.Wherein 460-00,460-02 and 460-07It is China Mobile (China Mobile Communications Corporation, CMCC), and 460-01 belongs to middle League of NationsLogical (China Unicom, CU).Therefore feedback module 105 determines around electronic equipment 1 there are two the networks of available GSM type:China Mobile GSM and China Unicom GSM.And so on can obtain other network formats available network operator.
It should be noted that a timer can be also opened when the system 10 that the quick manual searches net starts scanning,If (such as 150 seconds) do not complete scanning process within the preset time, terminate to scan and show the network scanned in electricityIn the display device 14 of sub- equipment 1, namely execute step S25.Also even the execution time of step S20~S24 is more than presetTime thens follow the steps S25.
It should be noted last that the above examples are only used to illustrate the technical scheme of the present invention and are not limiting, this fieldIt is to be appreciated by one skilled in the art that can modify to technical solution of the present invention or equivalent replacement, without departing from this hairThe spirit and scope of bright technical solution.