Background technology
According to the RCU(Remote Control Unit that can control, the equipment of remote adjustment aerial angle) number, tower amplifier is divided into: TMA(Tower Mounted Amplifier, tower amplifier), DTMA(Dual Tower Mounted Amplifier, two tower amplifier), tower amplifier is put also referred to as tower.
For DTMA, as shown in Figure 1,
Tower amplifier is the low noise amplifier near astronomical cycle, between antenna and base station, can improve the signal to noise ratio of base station system, and improve system sensitivity, the effect of tower amplifier comprises:
One, for modulation /demodulation, solve the equilibrium problem of uplink and downlink signals, mainly carry out the amplification of upward signal in addition, to make up upward signal from RET(Remote Electrical Tilting, remote control electric tilts) to RRU(Remote RF Unit, RF remote unit) decay that produces, namely make up the decay that signal produces from transmitting apparatus to antenna.
Two, can the OOK(On-off Keying of in the future self-feed line, a kind of modulation-demodulation signal) signal converts RS485(A physical interface conforming to ISO/IEC 8482(ANSI-EIARS485 to), a kind of communication interface) signal, export to RCU again, also can convert the RS485 signal from RCU to OOK signal, then output to feeder line.
Three, the DC power supply of self-feed line turns supply RCU in the future.
According to AISG(Antenna Interface Standard Group, Antenna Interface Standards Group) protocol requirement, base station can control multiple equipment (TMA or DTMA and multiple RCU) as shown in Figure 1, and the identification of these equipment and control are all the XID(Exchange ID (frame type) by AISG agreement, exchange identification) frame ordering realizes, and specifically can be realized the version etc. of the running parameter of the equipment that obtains, the scanning of equipment, the address assignment of equipment and equipment by XID hardwood.These xid frame orders are all that the data format of the mode of table 1 sends.
Table 1 AISG agreement specifies that base station sends the data format of XID hardwood order
In the content of parameter of XID hardwood order, each Field Definition is as follows:
FI(Format Identifier, format identifier)
The form ID(Identity of XID hardwood order, identifier)
GI(Group Identifier, group identifier)
The group ID of XID hardwood order
GL(Group Length, group length)
The group length of XID hardwood order, comprises the length of all parameters subsequently
PI(Parameter Identifier, parameter identifier)
The parameter ID of XID hardwood order
PL(Parameter Length, parameter length)
The parameter length of XID hardwood order
PV(Parameter Value, parameter value)
One hardwood XID hardwood can comprise several parameter, and in current xid frame, the order of each parameter fixes optional parameters item is also fixing, such as to arrange device address assignment commands parameter ID be middle reference order is 1,2,4,6(and PI value is 1,2,4,6).PI value is the 1 unique ID representing equipment, i.e. the ID put of RCU or tower, and PI value is 2 addresses representing that equipment distributes, and PI value is 4 represent device type, and PI value is 6 represent vendor code, will provide and be described in more detail in subsequent embodiment.And the order of AISG protocol requirement parameter can be upset, and other parameters except call parameter can default (this parameter being 2 as the PI in the assignment commands of device address be call parameter), also namely: the above-mentioned order of 1,2,4,6 can be other orders and other parameters except 2 can be default.
Inventor finds in the process realizing the embodiment of the present invention: xid frame adopts preset parameter and permanent order and do not meet the regulation of AISG agreement, because current tower amplifier resolves the item of preset parameter in a fixed order, if each parameter is with other order arrangement or with the combination of other parameter item in xid frame, cannot correctly resolve, therefore tower amplifier compatibility is poor at present.
Summary of the invention
Embodiments provide a kind of method that tower amplifier resolves exchange identification frame, and tower amplifier, for correctly resolving the xid frame meeting AISG agreement and specify, improve the compatibility of tower amplifier.
Tower amplifier resolves a method for exchange identification frame, comprising:
Receive the order of exchange identification xid frame, and determine the position of parameter identifier PI in xid frame; In described xid frame, the value of PI represents the type of parameter;
The value of the PI of the described position determined and predefined PI value are compared, by the value of comparison determination each position PI;
The operation of xid frame order is performed according to the PI value determined.
Preferably, describedly determine that the position of parameter identifier PI in xid frame comprises:
Using the position of xid frame the 6th byte as first PI, and the parameter length PL value of the PI of foundation current location determines the position of next PI, until PI length reaches group length GL value.
Preferably, described the value of the PI of the described position determined and predefined PI value to be compared, are comprised by the value of comparison determination each position PI:
Use the value comparison of predefined PI value and first PI position, obtain the value of first PI; And use the value comparison of described predefined PI value and next PI position, obtain the value of described next PI, until determine all PI values in described xid frame order.
Preferably, described predefined PI value is: the predefined argument structure body comprising the PI value of xid frame order, and described argument structure body comprises: parameter identifier, parameter length, content of parameter, parameter whether deposit mark.
Preferably, in described argument structure body, the setting of parameter flag symbol is corresponding with the type of xid frame order.
Preferably, described method also comprises:
After the value by comparison determination each position PI, the PI value of storing X ID frame ordering each position.
A kind of tower amplifier, comprising:
Receiving element, for receiving the order of exchange identification xid frame;
Position determination unit, for determining the position of parameter identifier PI in xid frame; In described xid frame, the value of PI represents the type of parameter;
Comparing unit, compares, by the value of comparison determination each position PI for the value of the PI by the described position determined and predefined PI value;
Command executing unit, for performing the operation of xid frame order according to the PI value determined.
Preferably, described position determination unit, specifically for using the position of xid frame the 6th byte as first PI, and determines the position of next PI, until PI length reaches organize length GL value according to the parameter length PL value of the PI of current location.
Preferably, described comparing unit, specifically for using the value comparison of predefined PI value and first PI position, obtains the value of first PI; And use the value comparison of described predefined PI value and next PI position, obtain the value of described next PI, until determine all PI values in described xid frame order.
Preferably, described tower amplifier also comprises:
Memory cell, for after the value by comparison determination each position PI, the PI value of storing X ID frame ordering each position.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages: by determining the position of parameter identifier PI in xid frame, and the value of the PI obtaining each position that compares according to predefined PI value, can determine to meet the parameter that xid frame that AISG agreement specifies carries, and determine xid frame order with this, thus can strive for resolving xid frame, improve the compatibility of tower amplifier.
Embodiment
In order to make the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the present invention is described in further detail, and obviously, described embodiment is only a part of embodiment of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments provide a kind of method that tower amplifier resolves exchange identification frame, as shown in Figure 2, comprising:
201: receive the order of exchange identification xid frame, and determine the position of parameter identifier PI in xid frame; In above-mentioned xid frame, the value of PI represents the type of parameter;
The kind of xid frame order has a lot, such as, have: device scan, device address distribute, inquiry 3GPP version number, and inquiry AISG version number etc., as table 2 ~ 5 are depicted as several examples of xid frame command format.
Table 2 device scan order xid frame form
The xid frame form of table 3 address specified command
Table 4 main website inquiry frame format
In above three citings, front 5 bytes are the fixed byte that AISG agreement specifies, are respectively ADR, CTRL, GI, GLP; Follow-up parameter each PI, PL, PV are one group.It should be noted that, can change for the order of PI in the citing of above each xid frame order, and other PI can be default except necessary PI, the restriction that should not be construed as the embodiment of the present invention of therefore illustrating above.
Alternatively, based on the frame format that above AISG agreement specifies, above-mentionedly determine that the position of parameter identifier PI in xid frame comprises: using the position of xid frame the 6th byte as first PI, and the parameter length PL value of the PI of foundation current location determines the position of next PI, until PI length reaches group length GL value.
202: the value of the PI of the above-mentioned position determined and predefined PI value are compared, by the value of comparison determination each position PI;
Alternatively, above-mentioned the value of the PI of the above-mentioned position determined and predefined PI value to be compared, comprised by the value of comparison determination each position PI: the value comparison using predefined PI value and first PI position, obtains the value of first PI; And use the value comparison of above-mentioned predefined PI value and next PI position, obtain the value of above-mentioned next PI, until determine all PI values in above-mentioned xid frame order.
Above-mentioned predefined PI value is: the predefined argument structure body comprising the PI value of xid frame order, and above-mentioned parameter structure comprises: parameter identifier, parameter length, content of parameter, parameter whether deposit mark.Structure as shown in table 5:
Table 5
More specifically, in above-mentioned parameter structure, the setting of parameter flag symbol is corresponding with the type of xid frame order.Such as: if correspond to the xid frame order distributed device address, so the value of parameter identifier is then 1,2,4,6.
203: the operation performing xid frame order according to the PI value determined.
Above embodiment, by determining the position of parameter identifier PI in xid frame, and the value of the PI obtaining each position that compares according to predefined PI value, can determine to meet the parameter that xid frame that AISG agreement specifies carries, and determine xid frame order with this, thus can strive for resolving xid frame, improve the compatibility of tower amplifier.
Said method further, also comprises: after the value by comparison determination each position PI, the PI value of storing X ID frame ordering each position.The PI value storing each position can be convenient to the order of follow-up execution xid frame and use, and also may be used for other purposes, such as: resolve the xid frame order from same equipment according to the order of resolving the PI value obtained; The embodiment of the present invention also will not limit this.
Based on the implementation that above embodiment provides, the embodiment of the present invention gives the specific implementation citing of device address assignment commands, it should be noted that xid frame order is not limited in device address assignment commands, other xid frame order is identical with the scheme of the present embodiment, repeats no longer one by one.As shown in Figure 3:
301: program is run and started, and enters step 302.
302: initialization, enter 303 after initialization.
Initialization:
Define the offset variable A of the current XID hardwood data of having resolved, A is temporary variable, refers to the byte number from the ADR data field of xid frame form to PI data field in table 3, when namely receiving first parameter (PI), has had 6 bytes before;
The counting variable C of the XID hardwood parameter found, store the global variable array T [] of current XID hardwood supplemental characteristic, the group length variable GL of current XID hardwood data (T []), XID command parameter structural array variable M [4] of allocation address and initialize is { { 1, 0, 0, 0}, { 2, 0, 0, 0}, { 4, 0, 0, 0}, { 6, 0, 0, 0}}, parameter ID variable M [] _ PI in XID command parameter structure, length variable M [] _ PL of the parameter in XID command parameter structure, content variable M [] _ PV of the parameter in XID command parameter structure, parameter in XID command parameter structure there is variable M [] _ PF, resolving which parametric variable B in XID command parameter structure, the parameter length variables D of resolving,
This step is used for pre-first to file region in internal memory, for store from base station data T [] and define argument structure body and the temporary variable A of XID order to be found, found the counting variable C of XID hardwood parameter etc. variable.
Receive a hardwood XID hardwood order, M [] _ PF putting 1,2,4,6 parameter ID equals zero; Put C to equal zero; Put A and equal 6, as shown in table 3, just point to first parameter PI of xid frame order.
303: put B and equal zero.
304: because the length of XID command parameter structural array variable M [4] defining allocation address is 4, judge whether B is less than 4, in this way (YES), then go to step 305, no (NO) then goes to step 308.
305: judge whether T [A] equals M [B] _ PI, if not, forwards step 306 to; If it is 307 are gone to step.
306: put B and equal the value that B adds 1, enter step 304.
307: prove a parameter i.e. PI that have found allocation address, put C and equal the value that C adds 1, then the value of parameter current is stored in the position of the corresponding B of aray variable M [], put M [B] _ PL and equal T [A+1], put M [B] _ PF and equal 1, put the pointer that M [B] _ PV equals T [A+2], put B and equal the value that B adds 1, then forward step 308 to.
308: put D and equal T [A+1], put A and equal A and add that D adds the value of 2, enter step 309.
309: judge whether A is less than GL, if so, enter step 303, otherwise enter step 310.
310: judge whether result M [the 1] _ PF inquired about equals 1, and C is greater than zero; Namely determine parameter 2(call parameter) whether exist, if enter 311, enter 312 if not.
311: illustrate according to address assignment XID hardwood, parameter 2 is exactly the address of distribution, exists, also just can determine that this XID hardwood is exactly the hardwood of device address assignment commands, then just carry out allocation address process owing to having defined parameter 2 in 310.If do not find parameter 2, just illustrate that this hardwood is not allocation address hardwood.311 be finished after enter step 312.
312: program returns.
Above embodiment, by determining the position of parameter identifier PI in xid frame, and the value of the PI obtaining each position that compares according to predefined PI value, can determine to meet the parameter that xid frame that AISG agreement specifies carries, and determine xid frame order with this, thus can strive for resolving xid frame, improve the compatibility of tower amplifier.
The embodiment of the present invention additionally provides a kind of tower amplifier, as shown in Figure 4, comprising:
Receiving element 401, for receiving the order of exchange identification xid frame;
Position determination unit 402, for determining the position of parameter identifier PI in xid frame; In above-mentioned xid frame, the value of PI represents the type of parameter;
Comparing unit 403, compares, by the value of comparison determination each position PI for the value of the PI by the above-mentioned position determined and predefined PI value;
Command executing unit 404, for performing the operation of xid frame order according to the PI value determined.
Above embodiment, by determining the position of parameter identifier PI in xid frame, and the value of the PI obtaining each position that compares according to predefined PI value, can determine to meet the parameter that xid frame that AISG agreement specifies carries, and determine xid frame order with this, thus can strive for resolving xid frame, improve the compatibility of tower amplifier.
Alternatively, above-mentioned position determination unit 402, specifically for using the position of xid frame the 6th byte as first PI, and determines the position of next PI, until PI length reaches organize length GL value according to the parameter length PL value of the PI of current location.
Alternatively, above-mentioned comparing unit 403, specifically for using the value comparison of predefined PI value and first PI position, obtains the value of first PI; And use the value comparison of above-mentioned predefined PI value and next PI position, obtain the value of above-mentioned next PI, until determine all PI values in above-mentioned xid frame order.
More specifically, above-mentioned predefined PI value is: the predefined argument structure body comprising the PI value of xid frame order, and above-mentioned parameter structure comprises: parameter identifier, parameter length, content of parameter, parameter whether deposit mark.Structure as shown in table 5.
More specifically, in above-mentioned parameter structure, the setting of parameter flag symbol is corresponding with the type of xid frame order.Further, as shown in Figure 5, above-mentioned tower amplifier also comprises:
Memory cell 501, for after the value by comparison determination each position PI, the PI value of storing X ID frame ordering each position.The PI value storing each position can be convenient to the order of follow-up execution xid frame and use, and also may be used for other purposes, such as: resolve the xid frame order from same equipment according to the order of resolving the PI value obtained; The embodiment of the present invention also will not limit this.
It should be noted that in above-mentioned tower amplifier embodiment, included unit is carry out dividing according to function logic, but is not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional unit, also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
In addition, one of ordinary skill in the art will appreciate that all or part of step realized in above-mentioned each embodiment of the method is that the hardware that can carry out instruction relevant by program completes, corresponding program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
These are only the present invention's preferably embodiment; but protection scope of the present invention is not limited thereto; anyly be familiar with those skilled in the art in the technical scope that the embodiment of the present invention discloses, the change 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.