主要内容

兰特米布

MIB encoding and decoding

Description

mib= lteMIB (enb)允许从单元范围的设置中编码和解码MIB广播控制通道(BCCH)消息。

It creates the 24-bit-long MIB message,mib, from the fields of cell-wide settings structure,enb. See TS 36.331[1], Sections 5.2.1.1 and 6.2.2 for further description of the MIB.

example

enb= lteMIB (mib)执行前面语法的反处理,以输入MIB消息位,mib, and creating the cell-wide settings structure,enb.

enb= lteMIB (mib,enb)包括在enboutput structure any fields contained in theenb输入结构。对于输入结构中已经存在的任何字段,从MIB解码的值替换了现有值。

Note

Within the MIB, the system frame number (SFN) is stored as地板(SFN/4). Therefore, whenenbis created from an MIB bit sequence,enb.NFramesatisfiesmod(enb.NFrame,4)==0and the frame number modulo 4 must be established by other means. For example, this can be done by using thenfmod4output ofltePBCHDecode.

Examples

collapse all

Create a column vector of MIB message bits.

mib = [0,1,0,0,1,0,1,1,1,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0]。';

Decode MIB message bits.

enb = ltemib(MIB)
enb =struct with fields:NDLRB: 25 PHICHDuration: 'Normal' Ng: 'One' NFrame: 828

Input Arguments

collapse all

细胞范围的设置,指定为结构。enb可以包含以下字段。

Number of downlink resource blocks, specified as a positive integer scalar value.NDLRB必须在6到110之间。

Note

IfNDLRB是一个非标准的带宽,不是{6,15,25,50,75,100}的集合之一,所有的带宽都插入了前3位dl-Bandwidthbit field, of the MIB message,mib.

Data Types:double

HICH group multiplier, specified as'第六','Half','One', or'Two'.

Data Types:char|string

Frame number, specified as a nonnegative scalar integer.

Data Types:double

Phich持续时间,指定为'Normal'或者“扩展”.

Data Types:char|string

Data Types:struct

MIB消息位序列,指定为24位列向量。

Note

如果前3位,dl-Bandwidthbit field, of the MIB message do not contain the equivalent of a decimal between 0 and 5 (MSB first, corresponding to the RB set {6,15,25,50,75,100}), the returnedNDLRBis 0.

Data Types:double|int8|logical

Output Arguments

collapse all

MIB message, returned as a 24-bit column vector.

Note

If theenb.NDLRBinput parameter field is a nonstandard bandwidth, not one of the set {6,15,25,50,75,100}, the first 3 bits ofmib,dl-Bandwidthbit field, are all ones.

Data Types:int8

细胞范围的设置created from MIB, returned as a structure.enb包含以下字段。

下行链路资源块的数量,作为非负标量整数返回。

Note

如果前3位,dl-Bandwidthbit field, of the input MIB message,mib, do not contain the equivalent of a decimal between 0 and 5 (MSB first, corresponding to the RB set {6,15,25,50,75,100}),NDLRBis 0. The MIB message should have 24 bits. Longer messages are truncated to 24 elements, while shorter messages are zero padded.

Data Types:int32

PHICH duration, returned as'Normal'或者“扩展”.

Data Types:char

HICH group multiplier, specified as'第六','Half','One', or'Two'.

Data Types:char

Frame number, specified as a scalar value.

Data Types:int32

Data Types:struct

参考

[1]3GPP TS 36.331. “Evolved Universal Terrestrial Radio Access (E-UTRA); Radio Resource Control (RRC); Protocol specification.”3rd Generation Partnership Project; Technical Specification Group Radio Access Network. URL:https://www.3gpp.org.

Version History

在R2014A中引入