Background technology
Current GSM (Global System for Mobile Communications, global system for mobile communications) in the system, as TRAU (Transcoder/Rate Adaptation Unit, code conversion and Rate Adapter Unit) unit is away from BTS (Base Transceiver Station, when base station transceiver) holding, the control information exchange of voice, data and TRAU unit between the CCU of BTS (Channel Coding Unit, Channel Codec Unit) and the TRAU unit is carried out in the trau frame mode.The transmission of trau frame both can also can be carried out on the transmission channel at 8kbit/s at 16kbit/s.Agreement 3GPP (3rdGeneration Partnership Project, third generation partner program) TS 48.060 and 3GPP TS48.061 have stipulated the concrete trau frame form of transfer of data in the band.Trau frame has the fixed frame length of 20ms:
160bit (20ms)----8kbit/s (half rate)
320bit (20ms)----16kbit/s (full rate)
What agreement 3GPP TS 48.061 described is the frame format definition of the half rate transmission channel (Traffic Channel-Half-rate is abbreviated as TCH/H) of the voice-and-data of CCU unit and TRAU unit.The frame structure definition of the trau frame of HR (Half Rate, half rate) voice is as shown in table 1, and in the table 1, XC1~XC6 is up expansion control bit.Implication to up expansion control bit regulation in the prior art is the mapping relations (as shown in table 2) of an one-to-many, ambiguity will occur like this when the TRAU cell side is resolved.In the table 2, UFI is unreliable frame identification (Unreliable Frame Indication), BFI is bad frame indication (Bad Frame Indicator), TAF is time unifying sign (Time Alignment Flag), SID is silence descriptor (Silence Descriptor), and OP is parity check bit (Odd Parity of bits).Up expansion control bit is filled by the CHP (Channel Processor, channel processor) of CCU unit.
The frame structure definition of table 1TRAU frame
Provided below and occurred different example when the TRAU cell side is resolved up expansion control bit.
Example 1: when up expansion control bit XC1~XC5 was 01000 respectively, this can have three kinds of implications according to agreement:
(1)UFI=0,BFI=0,SID=1,TAF=0;
(2)UFI=0,BFI=1,SID=1,TAF=0;
(3)UFI=0,BFI=1,SID=2,TAF=0。
This needs the scheduler module oneself of TRAU unit to force a kind of implication of decision, selects implication (3) such as the scheduler module of TRAU unit, and the decoding unit of giving the TRAU unit UFI=0 of correspondence, BFI=1, SID=2 and TAF=0 is handled then.This just makes the TRAU unit can't determine the real meaning of the up expansion control bit representative of half-rate TRAU frame, thereby causes TRAU unit and CCU unit can't be consistent to the understanding of half-rate TRAU frame.
The implication of the up expansion control bit of table 2
??XC ??1 |
??XC ??2 |
??XC ??3 |
??XC ??4 |
??XC ??5 |
??XC ??6 |
Implication |
??0 |
??0 |
??0 |
??0 |
??0 |
??OP |
Good speech frame UFI=0 (BFI=0, SID=0, TAF=1) (BFI=0, SID=0, TAF=0) |
??0 |
??0 |
??0 |
??0 |
??1 |
??OP |
Insecure speech frame (if in decoder again under the tone decoding pattern) or unavailable frame (if Voice decoder inserts under the comfort noise pattern again) UFI=1 (BFI=0, SID=0, TAF=1) (BFI=0, SID=0, TAF=0) |
??0 |
??0 |
??0 |
??1 |
??0 |
??OP |
Effective SID frame UFI=0 (BFI=0, SID=2, TAF=1) (BFI=0, SID=2, TAF=0) |
??0 |
??0 |
??0 |
??1 |
??1 |
??OP |
Invalid SID frame UFI=1 (BFI=0, SID=2, TAF=1) (BFI=0, SID=2, TAF=0) |
??0 |
??1 |
??0 |
??0 |
??0 |
??OP |
Invalid SID frame at TAF=0with UFI=0 (BFI=0, SID=1, TAF=0) (BFI=1, SID=1, TAF=0) (BFI=1, SID=2, TAF=0) |
??0 |
??1 |
??0 |
??0 |
??1 |
??OP |
Invalid SID frame at TAF=0with UFi=1 (BFI=0, SID=1, TAF=0) (BFI=1, SID=1, TAF=0) (BFI=1, SID=2, TAF=0) |
??0 |
??1 |
??0 |
??1 |
??0 |
??OP |
Invalid SID frame at TAF=1with UFI=0 (BFI=0, SID=1, TAF=1) (BFI=1, SID=1, TAF=1) (BFI=1, SID=2, TAF=1) |
??0 |
??1 |
??0 |
??1 |
??1 |
??OP |
Invalid SID frame at TAF=1with UFI=1 (BFI=0, SID=1, TAF=1) (BFI=1, SID=1, TAF=1) (BFI=1, SID=2, TAF=1) |
??0 |
??1 |
??1 |
??0 |
??0 |
??OP |
??Bad?speech?frame?or?unusable?frame?at?TAF=0 ??with?UFI=0 ??(BFI=1,SID=0,TAF=0) |
??0 |
??1 |
??1 |
??0 |
??1 |
??OP |
??Bad?speech?frame?or?unusable?frame?at?TAF=0 ??with?UFI=1 ??(BFI=1,SID=0,TAF=0) |
??0 |
??1 |
??1 |
??1 |
??0 |
??OP |
??Bad?speech?frame?or?unusable?frame?at?TAF=1 ??with?UFI=0 ??(BFI=1,SID=0,TAF=1) |
??0 |
??1 |
??1 |
??1 |
??1 |
??OP |
??Bad?speech?frame?or?unusable?frame?at?TAF=1 ??with?UFI=1 ??(BFI=1,SID=0,TAF=1) |
??1 |
??1 |
??1 |
??1 |
??1 |
??OP |
O ﹠ M frame Operation and Maintenance frame |
Summary of the invention
The technical problem to be solved in the present invention provides a kind of sending method of up expansion control bit of half-rate TRAU frame, avoids transmit leg different to the understanding of up expansion control bit with the recipient.
In order to address the above problem, the invention provides a kind of sending method of up expansion control bit of half-rate TRAU frame, comprise the steps:
With the up expansion control bit XC1-XC5 of half rate code conversion and Rate Adapter Unit trau frame wherein 3 be set to unreliable frame identification UFI sign position, bad frame indication BFI sign position and time unifying sign TAF sign position respectively, other 2 combination is set to silence descriptor SID and Operation and Maintenance frame O ﹠amp; M frame identification position;
The channel processor CHP of Channel Codec Unit CCU is carrying out up channel when decoding to the data of eating dishes without rice or wine to receive, respectively according to the reliability of decoded data, availability, whether be that type is provided with described UFI sign position, BFI sign position, TAF sign position and SID and O﹠amp under new SID frame and the decoded data; M frame identification position, the up expansion control bit with the half-rate TRAU frame that sets sends then.
Further, described reliability is meant that decoded data are reliable frame or unreliable frame, if reliable frame then is set to effectively UFI sign position, if unreliable frame then UFI sign position be set to invalid.
Further, described availability is meant that decoded data have been frame or bad frame, if good frame then is set to effectively BFI sign position, if bad frame then BFI sign position be set to invalid.
Further, then be set to effectively TAF sign position, otherwise that TAF sign position is set to is invalid if decoded data are new SID frames.
Further, type comprises good speech frame, acceptable SID frame, effective SID frame and O ﹠amp under the described decoded data; M frame, CHP according to the particular type under the decoded data with SID and O ﹠amp; The combination of M frame identification bit representation corresponding types is set to effectively.
Further, the method of reseptance of the up expansion control bit of half-rate TRAU frame is as follows: when the TRAU unit receives half-rate TRAU frame, reading the value of XC1~XC5 in the up expansion control bit resolves, if UFI sign position effectively, know that then described half-rate TRAU frame is a reliable frame, otherwise be unreliable frame; If BFI sign position effectively, know that then described half-rate TRAU frame has been a frame, otherwise be bad frame; If TAF sign position effectively, know that then described half-rate TRAU frame is new SID frame, otherwise be not new SID frame; SID and O ﹠amp; The combination of M frame identification bit representation corresponding types is effective, knows that then described half-rate TRAU frame belongs to this corresponding types.
Further, the up expansion control bit to half-rate TRAU frame is set as follows: the XC1 position is unreliable frame identification UFI sign position: XC1=1 represents unreliable frame, and XC1=0 represents reliable frame; The XC2 position is bad frame indication BFI sign position: XC2=1 represents bad frame, and XC2=0 has represented frame; The XC3 position is time unifying sign TAF sign position: the XC3=1 express time is adjusted, and XC3=0 represents not adjust; Two of XC4 and XC5 are SID and O ﹠amp; M frame identification position, wherein: XC4, XC5 are 00 o'clock SID=0, the speech frame that expression is good, XC4, XC5 are 01 o'clock SID=1, represent acceptable SID frame, and XC4, XC5 are 10 o'clock SID=2, represent effective SID frame, and XC4, XC5 represented O ﹠amp at 11 o'clock; The M frame.
Further, the sending method of the up expansion control bit of half-rate TRAU frame comprises the steps: that the CHP of CCU unit carries out the up channel decoding to the data of eating dishes without rice or wine to receive; CHP judges whether decoded data are unreliable frames, if unreliable frame is 1 with the XC1 position in the half-rate TRAU frame then, otherwise is 0 with the XC1 position in the trau frame; CHP judges whether decoded data are bad frames, if bad frame, then the XC2 position with half-rate TRAU frame is 1, otherwise is 0 with the XC2 position of half-rate TRAU frame; CHP judges whether decoded data are new SID frames, is to be 1 with the XC3 position of half-rate TRAU frame then, otherwise is 0 with the XC3 position of half-rate TRAU frame; CHP judges the affiliated type of decoded data, if good speech frame is 00 with XC4, the XC5 position of half-rate TRAU frame then, if acceptable SID frame, be 01 then with XC4, XC5 position, if effectively the SID frame is 10 with XC4, XC5 position then, if O is ﹠amp; The M frame is changed to 11 with XC4, XC5; The up expansion control bit of the half-rate TRAU frame that sets is sent.
Further, when the method for reseptance of the up expansion control bit of half-rate TRAU frame comprises the steps: that the TRAU unit receives half-rate TRAU frame, reading the value of XC1~XC5 in the up expansion control bit resolves, the value of TRAU unit judges XC1, if the XC1 value is 1, then described half-rate TRAU frame is unreliable frame, if the XC1 value is 0, then is reliable frame; The value of TRAU unit judges XC2, if the XC2 value is 1, then described half-rate TRAU frame is a bad frame, if the XC2 value is 0, then has been frame; The value of TRAU unit judges XC3, if the XC3 value is 1, then described half-rate TRAU frame is new SID frame, if the XC3 value is 0, then is not new SID frame; The value of TRAU unit judges XC4, XC5, if the value of XC4, XC5 is 00, then described half-rate TRAU frame is good speech frame, if the value of XC4, XC5 is 01, then is acceptable SID frame, if the value of XC4, XC5 is 10, then being effective SID frame, if the value of XC4, XC5 is 11, then is O ﹠amp; The M frame is resolved and is finished.
Further, the implication of the up expansion control bit of described half-rate TRAU frame and its representative has man-to-man mapping relations.
Therefore, the method of the invention can make the up expansion control bit of half-rate TRAU frame have man-to-man mapping relations, the mapping of eliminating the up expansion control bit one-to-many in the existing protocol has been avoided owing to understanding differently between CCU unit and the TRAU unit causes the up decoding problem that causes the uncertainty that the TRAU unit resolves causes.
Embodiment
Main design of the present invention is that the sending method of the up expansion control bit of half-rate TRAU frame is as follows:
With the up expansion control bit XC1-XC5 of half-rate TRAU frame wherein 3 be set to UFI sign position, BFI sign position and TAF sign position respectively, other 2 combination is set to SID and O ﹠amp; M frame (Operation and Maintenance frame) sign position; The CHP of CCU unit is carrying out up channel when decoding to the data of eating dishes without rice or wine to receive, respectively according to the reliability of decoded data, availability, whether be that type is provided with described UFI sign position, BFI sign position, TAF sign position and SID and O ﹠amp under new SID frame and the decoded data; M frame identification position, the up expansion control bit with the half-rate TRAU frame that sets sends then.After the configuration, the up expansion control bit of half-rate TRAU frame and the implication of its representative have just had man-to-man mapping relations like this.
Described reliability is meant that decoded data are reliable frame or unreliable frame, if reliable frame then is set to effectively UFI sign position, if unreliable frame then UFI sign position be set to invalid.Described availability is meant that decoded data have been frame or bad frame, if good frame then is set to effectively BFI sign position, if bad frame then BFI sign position be set to invalid.Then be set to effectively TAF sign position if decoded data are new SID frames, otherwise that TAF sign position is set to is invalid.Type comprises good speech frame (non-SID frame), acceptable SID frame, effective SID frame and O﹠amp under the decoded data; M frame, CHP according to the particular type under the decoded data with SID and O ﹠amp; The combination of M frame identification bit representation corresponding types is set to effectively.
Accordingly, the method for reseptance of the up expansion control bit of half-rate TRAU frame is as follows:
When the TRAU unit receives half-rate TRAU frame, read the value of XC1~XC5 in the up expansion control bit and resolve,, know that then described half-rate TRAU frame is a reliable frame, otherwise be unreliable frame if UFI sign position effectively; If BFI sign position effectively, know that then described half-rate TRAU frame has been a frame, otherwise be bad frame; If TAF sign position effectively, know that then described half-rate TRAU frame is new SID frame, otherwise be not new SID frame; SID and O ﹠amp; The combination of M frame identification bit representation corresponding types is effective, knows that then described half-rate TRAU frame belongs to this corresponding types.
Need to prove that the XC6 of up expansion control bit still is OP sign position, i.e. parity check bit.Among the present invention, the implication of the up expansion control bit of half-rate TRAU frame is as shown in table 3.
Table 3
The expansion control bit |
Implication |
??XC1 |
UFI: unreliable frame identification (Unreliable Frame Indication) (see 3GPP TS 46.041) |
??XC2 |
BFI: bad frame indication (Bad Frame Indicator) (see 3GPP TS 46.041) |
??XC3 |
TAF: time unifying sign (Time Alignment Flag) (see 3GPP TS 46.041) |
??XC4XC5 |
SID: silence descriptor (Sllence Descriptor) (see 3GPP TS 46.041) 00:SID=0 01:SID=1 10:SID=2 11:O ﹠ M frame |
??XC6 |
OP parity check bit (Odd parity of bits) XC1 to XC5 |
Below in conjunction with embodiment method of the present invention is further described in detail.
In the present embodiment, to the work of the up expansion control bit of half-rate TRAU frame following setting:
The XC1 position is UFI sign position: XC1=1 represents unreliable frame, and XC1=0 represents reliable frame;
The XC2 position is BFI sign position: XC2=1 represents bad frame, and XC2=0 has represented frame;
The XC3 position is TAF sign position: the XC3=1 representative time is adjusted, and the XC3=0 representative is not adjusted;
Two of XC4 and XC5 are SID and O ﹠amp; The sign position of M frame:
XC4, XC5 are 00 o'clock SID=0, the speech frame that representative is good,
XC4, XC5 are 01 o'clock SID=1, represent acceptable SID frame,
XC4, XC5 are 10 o'clock SID=2, represent effective SID frame,
XC4, XC5 are 11 interval scale O ﹠amp; (cancelled in the prior art XC1-XC5 is 11111 expression O ﹠amp to the M frame; The method of M frame),
XC6 is the same with what stipulate in the existing protocol, still is parity check bit OP sign position.
Therefore, the up expansion control bit of back half-rate TRAU frame and the implication of its representative are set have just had man-to-man mapping relations.
On the basis of She Zhiing, the sending method of the up expansion control bit of half-rate TRAU frame comprises the steps: in the present embodiment in the above
The first step, the CHP of CCU unit judges whether decoded data are unreliable frames, if unreliable frame (being that UFI is 1) when the data of eating dishes without rice or wine to receive being carried out the up channel decoding, be 1 then, otherwise be 0 the XC1 position in the trau frame with the XC1 position in the half-rate TRAU frame;
In second step, CHP judges further whether decoded data are bad frames, if bad frame (being that BFI is 1), then the XC2 position with half-rate TRAU frame is 1, otherwise is 0 with the XC2 position of half-rate TRAU frame;
In the 3rd step, CHP judges further whether decoded data are new SID frames, is to be 1 with the XC3 position of half-rate TRAU frame then, otherwise is 0 with the XC3 position of half-rate TRAU frame;
In the 4th step, CHP further judges the affiliated type of decoded data, and type comprises good speech frame (non-SID frame), acceptable SID frame, effective SID frame and O ﹠amp under the described decoded data; The M frame, if good speech frame is 00 with XC4, the XC5 position of half-rate TRAU frame then, if acceptable SID frame, then XC4, the XC5 position with half-rate TRAU frame is 01, if effectively the SID frame is 10 with XC4, the XC5 position of half-rate TRAU frame then, if O is ﹠amp; The M frame is changed to 11 with XC4, the XC5 of half-rate TRAU frame, finishes.
Need to prove that each top step does not have sequencing, here we just for the convenience on narrating is described the method for the invention with step by step form, in other embodiments, each step can be carried out with other order.
Accordingly, in the present embodiment, the method for reseptance of the up expansion control bit of half-rate TRAU frame comprises the steps:
The first step when TRAU unit receives half-rate TRAU frame, reads the value of XC1~XC5 in the up expansion control bit and resolves, and judges the value of XC1, if the XC1 value is 1, then described half-rate TRAU frame is unreliable frame, if the XC1 value is 0, then is reliable frame;
In second step, the value of XC2 is further judged in the TRAU unit, if the XC2 value is 1, then described half-rate TRAU frame is a bad frame, if the XC2 value is 0, then has been frame;
In the 3rd step, the value of XC3 is further judged in the TRAU unit, if the XC3 value is 1, then described half-rate TRAU frame is new SID frame, if the XC3 value is 0, then is not new SID frame;
The 4th step, the value of the further XC4 in TRAU unit, XC5, if the value of XC4, XC5 is 00, then described half-rate TRAU frame is good speech frame, if the value of XC4, XC5 is 01, then is acceptable SID frame, if the value of XC4, XC5 is 10, then being effective SID frame, if the value of XC4, XC5 is 11, then is O ﹠amp; The M frame is resolved and is finished.
Below example 2 are situations at front example 1, again with the present invention to up expansion control bit be provided with the transmitting half-rate trau frame, the uncertain problem of up expansion control bit implication can not appear during the TRAU unit resolves.
Example 2: suppose that to the setting of up expansion control bit, we just can parse unique implication according to the present invention when up expansion control bit XC1~XC5 is 01000 respectively in the half-rate TRAU frame that up BTS sends up:
(1)UFI=0,BFI=1,TAF=0,SID=0。
As seen, the TRAU unit just can ambiguity not occur when resolving the implication of up expansion control bit like this.
The present invention as long as TRAU unit and control corresponding position, CCU unit are filled and resolution unit is done very little code revision, just can solve the uncertain problem of implication of up expansion control bit before on the basis that up expansion control bit is redefined.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.