Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all are the scope of the present invention's protection.
Embodiment one
A kind of cell synchronizing method as shown in Figure 1, that the embodiment of the invention provides comprises:
Step 1: obtain synchronizing information from the sub-district through synchronizing channel;
Step 2: obtain the sub-district frame number through said synchronizing information;
Step 3: judge whether said sub-district frame number meets the frame number rule of said synchronizing channel;
Step 4: if said sub-district frame number meets the frame number rule of said synchronizing channel, through said synchronizing information and said cell synchronizing.
As shown in Figure 2, exemplary, judge that whether said sub-district frame number meets the step 3 of the frame number rule of said synchronizing channel, can comprise:
Step 31: the frame number M that obtains the multi-frame that carries said synchronizing information;
Step 32: obtain the frame number N between the synchronizing channel that said multi-frame carries;
Step 33: establishing said sub-district frame number is FN, if ((FN mod M) mod N)=1, then said sub-district frame number meets the frame number rule of said synchronizing channel.
Exemplary, obtain the step 2 of sub-district frame number through said synchronizing information, can comprise:
From said synchronizing information, extract frame number information;
Said frame number information decoding is obtained said sub-district frame number.
Perhaps, step 1 is obtained through synchronizing channel after the synchronizing information from the sub-district, and said synchronizing information is carried out CRC, if the CRC of said synchronizing information is correct, obtains the sub-district frame number through said synchronizing information.
Can pass through following formula, obtain the sub-district frame number from the frame number information decoding, known frame number information T1, T2, T3 ', M and N, then FN=T1 * 26 * M+M * [((T3 ' * N+1)-T2) MOD 26]+(T3 ' * N+1).
The executive agent of above-mentioned cell synchronizing method can be a portable terminal, like mobile phone.
The cell synchronizing method that provides through the invention described above embodiment through obtaining the synchronizing information from the sub-district from synchronizing channel, and obtains the sub-district frame number through said synchronizing information; Judge whether the sub-district frame number meets the frame number rule of said synchronizing channel; Whether the synchronizing information of confirming the sub-district with convenient mode is correct, avoids wrong synchronizing information can't realize cell synchronizing, and; Can improve the communication performance of portable terminal under complex environment, to realize the most preferable communication efficiency.
Embodiment two
Based on GSM or GPRS agreement, further specify the cell synchronizing method that the embodiment of the invention provides below.
In GSM or gprs system, each frame is 4.615ms, and each frame has 8 time slots; Continuous 26 or multi-frame of 51 frames compositions, 26 multi-frames are used for Traffic Channel and associated control channel thereof, and 51 multi-frames are used for the information of common signal channel and send; 51 * 26 frames are formed a superframe (superframe), and superframe comprises 51 * 26 totally 1326 frames; 2048 superframes are formed hyperframes (hyperframe), and hyperframe comprises 2048 * 1326 totally 2715648 frames.
As shown in Figure 5, in GSM or gprs system, network side is through the public information of 51 multi-frames broadcasting current area; Per 51 multi-frames, per 5 frequency correction channels (FCH, Frequency CorrectionChannel) are afterwards; Be 5 synchronizing channels (SCH, Synchronization Channel), also have CCCH (CCCH; Common Control Channel) and broadcast channel (BCH, Broadcasting Channel).Just, in per 51 multi-frames, the every interval of network side 10 frames will be gone up the synchronizing information of broadcasting current area in a synchronizing channel (SCH).
Portable terminal will be set up with network side and communicate by letter; Portable terminal needs the synchronizing information of the current area of search network side so; From synchronizing information, to obtain the sub-district frame number; Comprise 2715648 frames (corresponding frame number is 0~2715647) based on hyperframe, so sub-district frame number cycle count between 0~2715647.
Particularly, in GSM or gprs system, synchronizing channel (SCH) is carried the synchronizing information of 25bit sub-district, and the structure of the synchronizing information of this 25bit sub-district is as shown in the table:
In the table; BSIC information is 6 bits, comprises NCC information and BCC information, and BSIC is base station identity code (Base Station Identity Code); NCC is PLMN colour coding (Public Land-Mobile Network Colour Code); BCC is BTS colour coding (Base TransceiverStation Colour Code), and PLMN is a public land mobile network, and BTS is a base transceiver station.
All the other 19 bit T1, T2, T3 ' information is frame number information, according to T1, T2, the current area frame number that T3 ' information can be decoded and obtained network side.
Exemplary, the computing formula of decoding calculation plot frame number can be as follows:
FN=T1×26×51+51×[((T3′×10+1)-T2)MOD?26]+(T3′×10+1)
Wherein: FN is the sub-district frame number, and MOD is a delivery.
By on can know, in GSM or gprs system, carry the frame number M=51 of the multi-frame of synchronizing information; And the frame number N=10 between the multi-frame synchronizing channel of carrying.
Particularly, in GSM or gprs system, cell synchronizing method comprises:
Synchronizing information to the sub-district is carried out CRC, if the CRC of synchronizing information is correct, to the T1 of synchronizing information, T2, T3 ' information decoding obtain sub-district frame number FN;
According to sub-district frame number FN, the frame number M=51 of multi-frame, the frame number N=10 between the synchronizing channel of carrying in the multi-frame; If with the frame number M delivery of sub-district frame number FN to multi-frame, to the frame number N delivery between the synchronizing channel of carrying in the multi-frame, the result of delivery is 1 o'clock again; I.e. ((FN mod M) mod N)=1 o'clock; Confirm that the sub-district frame number meets the frame number rule of synchronizing channel, then the synchronizing information of the sub-district arrived of mobile terminal to search is correct, can carry out cell synchronizing;
If with the frame number M delivery of sub-district frame number FN to multi-frame; To the frame number N delivery between the synchronizing channel of carrying in the multi-frame, the result of delivery is not 1 o'clock again, i.e. ((FN mod M) mod N) ≠ 1 o'clock; Confirm that the sub-district frame number does not meet the frame number rule of synchronizing channel; Then the synchronizing information of the sub-district arrived of mobile terminal to search is incorrect, can directly abandon the synchronizing information of this sub-district, carries out the synchronizing information search of sub-district once more.
Technical scheme by the embodiment of the invention described above provides can be found out; Through obtain synchronizing information from synchronizing channel from the sub-district; And obtain the sub-district frame number through said synchronizing information; Judge whether the sub-district frame number meets the frame number rule of said synchronizing channel, confirm with convenient mode whether the synchronizing information of sub-district is correct, avoid wrong synchronizing information can't realize cell synchronizing.
Embodiment three
Based on above-mentioned cell synchronizing method, as shown in Figure 3, the embodiment of the invention provides a kind of device of cell synchronizing, comprising:
Synchronizing information acquisition module 10 is used for obtaining the synchronizing information from the sub-district through synchronizing channel;
Frame number acquisition module 20 is used for obtaining the sub-district frame number through said synchronizing information;
Judge module 30 is used to judge whether said sub-district frame number meets the frame number rule of synchronizing channel;
Synchronization module 40, said sub-district frame number meets the frame number rule of said synchronizing channel, is used for through said synchronizing information and said cell synchronizing.
Optional, as shown in Figure 4, judge module 30 can comprise:
Obtain submodule 301, be used to obtain the frame number M of the multi-frame that carries said synchronizing information, and be used to obtain the frame number N between the synchronizing channel that said multi-frame carries.
Processing sub 302; Be used for the frame number M delivery of said sub-district frame number said multi-frame; To the frame number N delivery between the synchronizing channel of carrying in the said multi-frame, the result of said delivery is 1 o'clock again, and then said sub-district frame number meets the frame number rule of said synchronizing channel.
Optional, frame number acquisition module 20 can comprise:
Frame number information is obtained submodule 201, is used for extracting frame number information from said synchronizing information;
Decoding submodule 202 is used for said frame number information decoding is obtained said sub-district frame number.
Perhaps, frame number acquisition module 20 can also comprise:
CRC module 203 is used for the synchronizing information from the sub-district that said synchronizing information acquisition module obtains is carried out CRC;
Frame number information is obtained submodule 201, if it is correct to be used for the CRC of said synchronizing information, from said synchronizing information, extracts frame number information;
Decoding submodule 202 is used for said frame number information decoding is obtained said sub-district frame number.
The device of the cell synchronizing that is provided by the embodiment of the invention described above can be found out; Through obtain synchronizing information from synchronizing channel from the sub-district; And obtain the sub-district frame number through said synchronizing information; Judge whether the sub-district frame number meets the frame number rule of said synchronizing channel, confirm with convenient mode whether the synchronizing information of sub-district is correct, avoid wrong synchronizing information can't realize cell synchronizing.
Embodiment four
Below based on GSM or GPRS agreement, further specify the device of the cell synchronizing that the embodiment of the invention provides.
Shown in the table among Fig. 5 and the embodiment two; Can know that in GSM or gprs system, network side is through the public information of 51 multi-frames broadcasting current area; On per 51 multi-frames, the every interval of network side 10 frames will a synchronizing channel (SCH) go up the broadcasting current area to step information.Synchronizing channel (SCH) is carried the synchronizing information of sub-district, promptly carries the frame number M=51 of the multi-frame of synchronizing information, and the frame number N=10 between the multi-frame synchronizing channel of carrying.And the synchronizing information of sub-district comprises base station identity code BSIC information and T1, T2, T3 ' information (being frame number information)
Referring to Fig. 3,4, specifically use the device of embodiment of the invention cell synchronizing:
Synchronizing information acquisition module 10 obtains the synchronizing information from the sub-district through synchronizing channel, and can send this synchronizing information and give CRC module 203;
CRC module 203 obtains this synchronizing information, and this synchronizing information is carried out CRC, and can send the correct synchronizing information of CRC and obtain submodule 201 for frame number information;
Frame number information is obtained submodule 201 and is obtained the correct synchronizing information of CRC, from this synchronizing information, extracts T1, T2, and T3 ' information (being frame number information), and can send T1, and T2, T3 ' information (being frame number information) is given decoding submodule 202;
Decoding submodule 202 obtains frame number information (T1, T2, T3 '), and decoding obtains the sub-district frame number to frame number information (T1, T2, T3 '), and for example decoding and obtaining the frame number of sub-district in Frame is 113, and can send the sub-district frame number and give processing sub 302.
Processing sub 302 acquisition sub-district frame numbers, and obtain the frame number M=51 that submodule 301 obtains the multi-frame that carries synchronizing information, and the frame number N=10 between the multi-frame synchronizing channel of carrying; Processing sub 302 is with the frame number M=51 delivery of sub-district frame number to multi-frame; To the frame number N=10 delivery between the synchronizing channel of carrying in the multi-frame, obtaining the sub-district frame number like decoding is 113 again, and promptly 113 couples 51 delivery results are 11; 11 is 1 to 10 delivery results again; Said delivery result is 1 o'clock, confirms that the sub-district frame number meets the frame number rule of synchronizing channel, and then the synchronizing information of portable terminal sub-district is correct;
At last, synchronization module 40 is through the synchronizing information and the cell synchronizing of sub-district.
Can also know that said delivery result is not at 1 o'clock, confirm that then the synchronizing information of sub-district is incorrect, promptly directly abandon the synchronizing information of this sub-district, carry out the synchronizing information search of sub-district once more.
Technical scheme by the embodiment of the invention described above provides can be found out; Through obtain synchronizing information from synchronizing channel from the sub-district; And obtain the sub-district frame number through said synchronizing information, and judge whether the sub-district frame number meets the frame number rule of said synchronizing channel, confirm with convenient mode whether the synchronizing information of sub-district is correct; Avoid wrong synchronizing information can't realize cell synchronizing; And, can improve the communication performance of device under complex environment of cell synchronizing, to realize the most preferable communication efficiency.
Embodiment five
Based on the device of above-mentioned cell synchronizing, the embodiment of the invention also provides a kind of portable terminal, comprises the device of the cell synchronizing shown in Fig. 3 or 4.
Portable terminal can be used for through obtain the synchronizing information from the sub-district from synchronizing channel; And obtain the sub-district frame number through said synchronizing information; Judge whether the sub-district frame number meets the frame number rule of said synchronizing channel; Said sub-district frame number meets the frame number rule of said synchronizing channel, through the synchronous said sub-district of said synchronizing information.
Technical scheme by the embodiment of the invention described above provides can be found out; Through obtain synchronizing information from synchronizing channel from the sub-district; And obtain the sub-district frame number through said synchronizing information; Judge whether the sub-district frame number meets the frame number rule of said synchronizing channel, confirm with convenient mode whether the synchronizing information of sub-district is correct, avoid wrong synchronizing information can't realize cell synchronizing.And, can improve the communication performance of portable terminal under complex environment, to realize the most preferable communication efficiency.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention can realize that can certainly pass through hardware, perhaps the combination of the two is implemented by the mode that software adds essential general hardware platform.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product; This software module or computer software product can be stored in the storage medium; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.Storage medium can be the storage medium of any other form known in random asccess memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or the technical field.
The above; Be merely the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, any technical staff who is familiar with the present technique field is in the technical scope that the present invention discloses; The variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.