Summary of the invention
Main purpose of the present invention is to provide a kind of detection method and device of optical fiber connection, one of to address the above problem at least.
According to an aspect of the present invention, the detection method that provides a kind of optical fiber to connect comprises: baseband processing unit (BBU) sends to the Remote Radio Unit (RRU) of connecting with the light mouth through its light mouth and detects sequence; BBU receives the feedback sequence that RRU returns through the light mouth; Whether BBU is consistent with the detection sequence of sending through the light mouth through the feedback sequence that judgement receives, and whether the optical fiber that detects RRU connects normal.
Above-mentioned BBU comprises a plurality of light mouths, and BBU is different through the detection sequence that each light mouth sends; After RRU sent the detection sequence, method also comprises: the detection sequence that RRU will receive returned to BBU as feedback sequence through the light mouth that is connected with RRU at BBU.
Above-mentioned detection sequence comprises N bit, and the light mouth of BBU is M RRU of series connection down, and wherein, M and N are the integer more than or equal to 1; BBU sends the detection sequence through its light mouth to the Remote Radio Unit (RRU) of connecting with the light mouth and comprises: steps A; BBU sends the long subsequence of M bit that is through the light mouth; Wherein, Each bit in the M of subsequence the bit corresponds respectively to a RRU among M the RRU, and the value of each bit is that BBU sends in the detection sequence of corresponding RRU; Step B, circulation execution in step A, a detection sequence of N bit that will send to each RRU under the light mouth until BBU according to the order of sequence sends completion; For one of them RRU among M the RRU; This method also comprises: RRU receives subsequence; Obtain the bit that BBU sends to the detection sequence of this RRU from the correspondence position of subsequence, return one to said BBU and longly be the subsequence of M bit, in this subsequence with the value of the correspondence position of said RRU value for the said bit that from the said subsequence that receives, obtains; If there is next stage RRU in this RRU, then RRU is transmitted to next stage RRU with the subsequence that receives; Said BBU receives the feedback sequence that said RRU returns and comprises: N of receiving that said RRU returns of said BBU be long to be the subsequence of M bit; The position corresponding with said RRU from the long subsequence for M bit of said N obtains N bit respectively, obtains said feedback sequence.
The detection sequence that above-mentioned BBU sends to the RRU at different levels of series connection under the same light mouth is identical.
Above-mentioned detection sequence comprises: sequence head, the slot number information of light mouth place baseband board and the light slogan information of baseband board glazing mouth.
Whether the optical fiber connection that above-mentioned BBU detects between RRU normally comprises: BBU confirms whether the sequence head of the said feedback sequence that RRU returns is consistent with the sequence head of the said detection sequence of sending through said light mouth; If; Whether the light slogan information of slot number information and the above light mouth of baseband board that light slogan information and the light mouth of said detection sequence of slot number information and the above light mouth of baseband board of then judging the light mouth place baseband board of said feedback sequence belongs to baseband board is consistent; If the slot number information of both light mouths place baseband board and the light slogan information inconsistency of the above light mouth of baseband board confirm that then the optical fiber connection of said RRU makes mistakes.
After above-mentioned BBU confirmed that the optical fiber connection of RRU makes mistakes, this method also comprised: the optical fiber of BBU record RRU connects the number of times of makeing mistakes.
Said method also comprises: the optical fiber that BBU periodically detects each RRU connects the number of times of makeing mistakes; If the optical fiber of RRU in preset consecutive periods connect the number of times of makeing mistakes exceed threshold value and with the same light mouth of RRU under on the optical fiber of RRU at different levels be connected the number of times of makeing mistakes less than threshold value, then report the warning information of the optical fiber connection error of this RRU.
According to a further aspect in the invention, the checkout gear that provides a kind of optical fiber to connect comprises: sending module is used for sending the detection sequence through its light mouth to the Remote Radio Unit (RRU) of connecting with the light mouth; Receiver module is used for receiving the feedback sequence that RRU returns through the light mouth; Detection module, whether the feedback sequence that is used for receiving through judgement is with consistent through the detection sequence of light mouth transmission, and whether the optical fiber that detects the light mouth connects normal.
Said apparatus also comprises: logging modle, be used for after the optical fiber connection of detection module detection light-emitting window makes mistakes, and the optical fiber of record RRU connects the number of times of makeing mistakes; Statistical module, the optical fiber that is used for periodically detecting each RRU connects the number of times of makeing mistakes; Reporting module; Be used for the optical fiber of RRU in preset consecutive periods connect the number of times of makeing mistakes exceed threshold value and with the same light mouth of RRU under on the optical fiber of RRU at different levels be connected under the situation of number of times less than threshold value of makeing mistakes, report the warning information of the optical fiber connection error of this RRU.
Through the present invention; Adopt BBU that each grade RRU under each light mouth is all carried out the detection that optical fiber connects; Solved in the prior art and when site configuration is carried out in the base station, occurred the optical fiber hybrid junction easily, caused the azygous problem of information transmit-receive, thus can be under the situation of optical fiber hybrid junction; Promptly the optical fiber wrong is positioned, guaranteed professional normally carrying out.
Embodiment
Hereinafter will and combine embodiment to specify the present invention with reference to accompanying drawing.Need to prove that under the situation of not conflicting, embodiment and the characteristic among the embodiment among the application can make up each other.
Fig. 2 is that as shown in Figure 2, this method mainly may further comprise the steps (step S202-step S206) according to the flow chart of the detection method of the optical fiber connection of the embodiment of the invention:
Step S202, baseband processing unit (BBU) send to the Remote Radio Unit (RRU) of connecting with the light mouth through its light mouth and detect sequence;
In practical application, BBU has higher information processing capability usually, in order to make full use of base-band resource; Baseband board generally is set on each BBU at least; A plurality of light mouths can be set on each baseband board, for example, three light mouths can be set on a baseband board;
At present, can series multistage RRU under each light mouth, and every grade of RRU has only a RRU, and visible, what grade RRU are arranged under each light mouth, what RRU are also just arranged.In practical application, the 3 grades of RRU that connect at least under each light mouth usually also are to connect 3 RRU under each light mouth at least.
In embodiments of the present invention; When the optical fiber hybrid junction occurring between a plurality of light mouths; Information transfer service will Presence information be transmitted azygous situation, and therefore, BBU send to detect sequence (promptly be used for detection fiber whether connect the information of wrong) through each light mouth to RRU.In a preferred implementation of the embodiment of the invention, detect the light mouth for the ease of BBU and whether make mistakes, BBU is different through the detection sequence that each light mouth sends.Send the A sequence such as, the BBU RRU under a light mouth, then simultaneously under another light mouth RRU send the B sequence, wherein the content and/or the length of A sequence and B sequence are inequality.
In embodiment of the invention preferred embodiment, BBU can comprise through the detection sequence that each light mouth sends; The light slogan information of this light mouth on the slot number information of sequence head, light mouth place baseband board and the baseband board.Thereby can be so that BBU has nothing in common with each other through the detection sequence that different light mouths sends.
Judge for the ease of BBU, reduce complexity, in a preferred implementation of the embodiment of the invention, the detection sequence that BBU sends to the RRU at different levels of series connection under the same light mouth is identical.
In embodiments of the present invention, BBU is after RRU sends the detection sequence, and the detection sequence that RRU will receive returns to BBU as feedback sequence through the light mouth that is connected with RRU.RRU under BBU light mouth is merely one-level, and when promptly only having connected a RRU under this light mouth of BBU, RRU postbacks its detection sequence that receives to BBU after receiving the detection sequence.
If be in series with multistage RRU under the same light mouth, BBU can send the detection sequence respectively to each RRU, in the detection sequence of sending, carries the ID of the RRU that receives this detection sequence; Perhaps, BBU also can be simultaneously sends sequences to RRU at different levels, through in advance with the agreement of RRU at different levels, indicate the position of the detection sequence of RRU at different levels.
For example, in practical application, suppose to detect sequence and comprise N bit; Be in series with M RRU under the light mouth of BBU, wherein, M and N are the integer more than or equal to 1; Then BBU is passing through its light mouth when RRU sends the detection sequence, can send length through this light mouth and be the subsequence of M bit, wherein; Each bit in the M of this subsequence the bit corresponds respectively to a RRU among M the RRU; The value of each bit is that BBU sends in the detection sequence of corresponding RRU, and above-mentioned steps is carried out in circulation, will send to the detection sequence of N bit transmission completion of each RRU the light mouth under according to the order of sequence until BBU.In this case; For one of them RRU among the above-mentioned M RRU, when RRU receives subsequence, obtain the bit that BBU sends to the detection sequence of this RRU from the correspondence position of subsequence; Return one to said BBU and longly be the subsequence of M bit; With the value of the correspondence position of said RRU value, this bit is returned to BBU, in this subsequence if there is next stage RRU in this RRU for the said bit that from the said subsequence that receives, obtains; Then RRU is transmitted to next stage RRU with the subsequence that receives; Then N of receiving that RRU returns of BBU is long be the subsequence of M bit, respectively from said N individual long be that the position corresponding with said RRU of the subsequence of M bit obtains N bit, obtain said feedback sequence.
In practical application, can communicate according to interface protocol between BBU and the RRU, when RRU returns feedback sequence to BBU; The index that can comprise this BBU in this feedback sequence; BBU is known the RRU that returns feedback sequence according to the index of this RRU, according to the corresponding relation that is provided with in advance, is the value that position corresponding with this RRU the subsequence of M bit obtains the bit that this RRU returns from the length of feedback; After receiving for N time, get access to the feedback sequence that this RRU returns.For example; Agreement specified standard interface is followed in communication between BBU and the RRU, suppose to have 10 bytes, and the sequence content that is used for optical fiber wrong detection has only accounted for wherein 4 bytes; The index information that has comprised corresponding RRU in other 6 bytes; When RRU returned feedback sequence, it comprised this index information in the information that BBU sends, thereby makes BBU can know that which RRU beams back.
Wherein, detect sequence and comprise: sequence head, the slot number information of light mouth place baseband board and the light slogan information of baseband board glazing mouth, wherein, BBU is all identical through the sequence head of the detection sequence that each light mouth sends.
Step S204, BBU receives the feedback sequence that RRU returns through the light mouth;
Step S206, whether BBU is consistent with the detection sequence of sending through the light mouth through the feedback sequence that judgement receives, and whether the optical fiber that detects this RRU connects normal.
In embodiments of the present invention, BBU is judging feedback sequence that RRU returns and the detection sequence of sending through the light mouth when inconsistent, and the optical fiber of confirming this RRU connects makes mistakes.
In a preferred implementation of the embodiment of the invention, for the ease of statistics, when BBU made mistakes in the optical fiber connection that detects certain RRU, the optical fiber that can write down this RRU connected the number of times of makeing mistakes.
In another preferred implementation of the embodiment of the invention, when the optical fiber connection that detects certain RRU made mistakes, BBU can report corresponding warning information, connected the information of makeing mistakes thereby the attendant can in time get access to the optical fiber of certain RRU.Preferably; Frequency for fear of alarming information report is too high; In a preferred implementation of the embodiment of the invention, the optical fiber that BBU can periodically detect each RRU connects the number of times of makeing mistakes, if RRU at preset (for example; 5) optical fiber in the consecutive periods connects the number of times of makeing mistakes and exceeds threshold value and be connected the number of times of makeing mistakes less than threshold value with the optical fiber of last RRU at different levels under the same light mouth of RRU, then reports the warning information of the optical fiber connection error of this RRU.
In embodiments of the present invention; Just often whether BBU connect at the optical fiber that detects between RRU; BBU judges whether the sequence head of the said feedback sequence that RRU returns is consistent with the sequence head of the said detection sequence of sending through said light mouth; If; Whether the light slogan information of slot number information and the above light mouth of baseband board that light slogan information and the light mouth of said detection sequence of slot number information and the above light mouth of baseband board of then judging the light mouth place baseband board of said feedback sequence belongs to baseband board is consistent; If the slot number information of both light mouths place baseband board and the light slogan information inconsistency of the above light mouth of baseband board confirm that then the optical fiber connection of said RRU makes mistakes.
Through the said method that the embodiment of the invention provides, the optical fiber that BBU can detect each grade RRU under each light mouth automatically connects the information of makeing mistakes, and locatees fast thereby can make mistakes to optical fiber, has guaranteed normally carrying out of communication service.
Fig. 3 connects the flow chart that detects according to the optical fiber to each light mouth in the preferred embodiment of the present invention, and as shown in Figure 3, to each light mouth, BBU and RRU can carry out following steps (step S302-S310):
Step S302, BBU each RRU under each light mouth sends sequence data (being Bit data);
In embodiments of the present invention; The BBU RRU under each light mouth respectively sends sequence data, and for example, sequence data is generally the binary bits data; This sequence data (being above-mentioned detection sequence) contains three partial informations: sequence head (Head), light mouth place baseband board slot number (SlotNo) and baseband board light slogan (OptNo); In practical application, the mode that can adopt timesharing to send sends to each RRU under each light mouth with sequence data, supposes can connect M RRU under the light mouth of baseband board; Sequence data adopts N binary bits data (promptly detecting sequence length is N); Then get for the first time the sequence of M the bit of first bit composition in N the sequence data that mails to M RRU respectively and send, later and the like, up to being divided, N bit in N the sequence data all distribute for N time.Wherein, each M bit sequence that sends is corresponding one by one, as shown in Figure 4 with M RRU; Such as, BBU give RRU0 in the position of bit8 cocycle insert { Head, SlotNo; OptNo}, then give RRU1 in the position of bit9 cocycle insert identical sequence, other RRU.
Step S304, every grade of RRU postbacks the content of the relevant position of the actual sequence of receiving to BBU;
For example, every grade of RRU can return the sequence of the same format of sending with BBU to BBU, and for example, the M bit sequence is RRU from the value of the bit of the correspondence position of the M bit sequence that receives in the value of the bit of the position corresponding with RRU of this M bit sequence.For example; The subsequence of each 4 bits that send of BBU; First order RRU under the corresponding light mouth of first bit of this subsequence, then RRU obtains the detection sequence of this BBU to its transmission from first bit of this subsequence when receiving this subsequence; Return the subsequence of one 4 bit then to BBU, the value of first bit of this subsequence the bit value that to be RRU obtain from first bit of the subsequence that receives.
In embodiments of the present invention, after the RRU of upper level receives that BBU sends sequence data, give next stage RRU, and in this sequence data, find the content of corresponding own position and it is postbacked to BBU data forwarding.
Step S306, BBU detects the content of the sequence data that every grade of RRU postbacks;
BBU beams back the sequence of coming to every grade of RRU and carries out shift LD; After the content reception of the N that each RRU is postbacked a corresponding own position finishes, obtain the actual sequence data of receiving of RRU, the sequence data that again this sequence data and BBU is sent compares detection; If the sequence head of the sequence data that the sequence head of the actual sequence data of receiving of RRU and BBU send is inconsistent; Think that then mistake appears in the optical fiber of this RRU, this mistake does not belong to optical fiber and receives and dispatches azygous connection error, but other optical fiber mistake; For example, optical fiber has broken etc.If the sequence head of the actual sequence data of receiving of RRU is consistent with the sequence head of the sequence data that BBU sends; Content (being light mouth place baseband board slot number and baseband board light slogan) to the back detects again; If the content detection of back is inconsistent; Then think the optical fiber wrong of this RRU, at this moment, RRU corresponding detection result bit map is 1 (optical fiber wrong); If the content detection of back is consistent, it is correct to think that then optical fiber connects, and at this moment, RRU corresponding detection result bit map was 0 (optical fiber connects correct).
Step S308, BBU periodically scans testing result, and reports the warning information of optical fiber wrong according to testing result, and wherein, the information content comprises the light slogan of BBU and the id information of RRU;
In embodiments of the present invention, preferably, the light mouth following BBU that reports of warning information only reports the principle of an alarm down at most, that is: for the situation of multistage RRU optical fiber wrong under the same light mouth, BBU only reports from the nearest one-level RRU of light mouth.Such as; Two light mouths of BBU connect two-stage RRU respectively, if the optical fiber of the first order and second level RRU is connected equal mistake, BBU only reports the optical fiber wrong information of first order RRU; See also Fig. 5; As shown in Figure 5, when having only first order optical fiber to recover normal the connection, BBU just can report the optical fiber wrong information of second level RRU.
In the preferred embodiment of the present invention; BBU is scanning testing result, and on give the correct time, can adopt flow process as shown in Figure 6; As shown in Figure 6; BBU regularly scans the optical fiber joint detection result of every grade of RRU under each light mouth, and the result is added up, if the then count value increase of optical fiber wrong.
In a preferred implementation of the embodiment of the invention, as shown in Figure 7, can adopt the one-period cycle timer; The cycle of every interval 1s; Cycle timer carries out single pass to testing result, after the cycle timer circulation 5 times (being 5s), can travel through the count value of every grade of RRU optical fiber wrong under each light mouth; If it is correct that numerical value, thinks then that optical fiber connects less than 5 times; If count value is more than or equal to 5 times, promptly the scanning result of certain RRU be an optical fiber connection error continuous 5 times under certain light mouth, simultaneously, under the same light mouth of RRU on what RRU error count value all less than 5, then think optical fiber connection error.At this moment, BBU reports the warning information of optical fiber connection error.
In practical application, preferably, entire method can be divided into two major parts in the specific implementation: first is an optical fiber joint detection part; Second portion is a testing result information reporting part.Optical fiber joint detection part mainly comprises step S302-step S306, and testing result reports part to comprise step S308.
The said method that provides through present embodiment; Adopt BBU that each grade RRU under each light mouth is all carried out the detection that optical fiber connects; Solved in the prior art and when site configuration is carried out in the base station, occurred the optical fiber hybrid junction easily, caused the azygous problem of information transmit-receive, even and then reached under the situation of optical fiber hybrid junction; Can promptly find out the position of optical fiber wrong, thereby guarantee the professional effect of normally carrying out.
Fig. 8 is the sketch map of the checkout gear that connects according to the optical fiber of the embodiment of the invention, the detection method that the optical fiber that this device is used to implement the foregoing description and provides connects, and this device comprises: sending module 10, receiver module 20 and detection module 30.Wherein, sending module 10 is used for sending the detection sequence through its light mouth to the Remote Radio Unit (RRU) of connecting with the light mouth; Receiver module 20 is connected to sending module 10, is used for receiving the feedback sequence that RRU returns through the light mouth; Detection module 30 is connected to receiver module 20, and whether the feedback sequence that is used for receiving through judgement is with consistent through the detection sequence of light mouth transmission, and whether the optical fiber that detects the light mouth connects normal.
Fig. 9 is the sketch map of the checkout gear that connects of optical fiber according to the preferred embodiment of the invention, and shown in figure 10, this device also comprises: logging modle 40, statistical module 50 and reporting module 60.Wherein, logging modle 40 is used for after the optical fiber connection of detection module detection light-emitting window makes mistakes, and the optical fiber of record RRU connects the number of times of makeing mistakes; Statistical module 50 is connected to logging modle 40, and the optical fiber that is used for periodically detecting each RRU connects the number of times of makeing mistakes; Reporting module 60; Be connected to statistical module 50; Be used for the optical fiber of RRU in preset consecutive periods connect the number of times of makeing mistakes exceed threshold value and with the same light mouth of RRU under on the optical fiber of RRU at different levels be connected under the situation of number of times less than threshold value of makeing mistakes, report the warning information of the optical fiber connection error of this RRU.
In the preferred implementation of the embodiment of the invention; Whether the optical fiber that the described mode of said method embodiment that can adopt detection module 30 detects the RRU at different levels of series connection under each light mouth connects normal; And having the described beneficial effect of said method embodiment, the concrete embodiment of the invention repeats no more.
The said apparatus that provides through present embodiment; Adopt BBU that each grade RRU under each light mouth is all carried out the detection that optical fiber connects; Solved in the prior art and when site configuration is carried out in the base station, occurred the optical fiber hybrid junction easily, caused the azygous problem of information transmit-receive, even and then reached under the situation of optical fiber hybrid junction; Can promptly find out the position of optical fiber wrong, thereby guarantee the professional effect of normally carrying out.
From above description; Can find out that the present invention has realized following technique effect: employing BBU all carries out the detection that optical fiber connects to each grade RRU under each light mouth, has solved when site configuration is carried out in the base station, to occur the optical fiber hybrid junction in the prior art easily; Cause the azygous problem of information transmit-receive; Even and then reached under the situation of optical fiber hybrid junction, can promptly find out the position of optical fiber wrong, thereby guarantee the professional effect of normally carrying out.
Obviously, it is apparent to those skilled in the art that above-mentioned each module of the present invention or each step can realize with the general calculation device; They can concentrate on the single calculation element; Perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element; Thereby; Can they be stored in the storage device and carry out, and in some cases, can carry out step shown or that describe with the order that is different from here by calculation element; Perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.