Documentation

lteMIB

Master information block encoding and decoding

Syntax

  • mib = lteMIB(enb)
  • enb = lteMIB(mib)
    example
  • enb = lteMIB(mib,enb)

Description

mib = lteMIB(enb) allows encoding and decoding of the master information block (MIB) broadcast control channel (BCCH) message from cell-wide settings.

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) performs the inverse processing of the preceding syntax, taking as input the MIB message bits, mib, and creating the cell-wide settings structure, enb.

enb = lteMIB(mib,enb) includes in the enb output structure any fields contained in the enb input structure. For any of the fields already present in the input structure, the value decoded from the MIB replaces the existing value.

    Note:   Within the MIB, the system frame number (SFN) is stored as floor(SFN/4). Therefore, when enb is created from an MIB bit sequence, enb.NFrame satisfies mod(enb.NFrame,4)==0 and the frame number modulo 4 must be established by other means. For example, this can be done by using the nfmod4 output of ltePBCHDecode.

Examples

collapse all

Decode MIB Message Bits

Decode a set of master information block (MIB) message bits.

Decode the MIB message bits in the column vector mib.

mib = [0,1,0,0,1,0,1,1,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0].';
enb = lteMIB(mib)
enb = 

            NDLRB: 25
    PHICHDuration: 'Normal'
               Ng: 'One'
           NFrame: 828

Input Arguments

collapse all

enb — Cell-wide settingsstructure

Cell-wide settings, specified as a structure. enb can contain the following fields.

NDLRB — Number of downlink resource blocksscalar value (6...110)

Number of downlink resource blocks, specified as a positive integer scalar value. NDLRB must be between 6 and 110.

    Note:   If NDLRB is a nonstandard bandwidth, not one of the set {6,15,25,50,75,100}, all ones are inserted into the first 3 bits, the dl-Bandwidth bit field, of the MIB message, mib.

Data Types: double

Ng — HICH group multiplier'Sixth' (default) | optional | 'Half' | 'One' | 'Two'

HICH group multiplier, specified as a string.

Data Types: char

NFrame — Frame number0 (default) | optional | nonnegative scalar integer

Frame number, specified as a nonnegative scalar integer.

Data Types: double

PHICHDuration — PHICH duration'Normal' (default) | optional | 'Extended'

PHICH duration, specified as a string.

Data Types: char

Data Types: struct

mib — MIB message bit sequence24-bit column vector

MIB message bit sequence, specified as a 24-bit column vector.

    Note:   If the first 3 bits, the dl-Bandwidth bit 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 returned NDLRB is 0.

Data Types: double | int8 | logical

Output Arguments

collapse all

mib — MIB message24-bit column vector

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

    Note:   If the enb.NDLRB input parameter field is a nonstandard bandwidth, not one of the set {6,15,25,50,75,100}, the first 3 bits of mib, the dl-Bandwidth bit field, are all ones.

Data Types: int8

enb — Cell-wide settings created from MIBstructure

Cell-wide settings created from MIB, returned as a structure. enb contains the following fields.

NDLRB — Number of downlink resource blocksnonnegative scalar integer

Number of downlink resource blocks, returned as a nonnegative scalar integer.

    Note:   If the first 3 bits, the dl-Bandwidth bit 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}), NDLRB is 0. The MIB message should have 24 bits. Longer messages are truncated to 24 elements, while shorter messages are zero padded.

Data Types: int32

PHICHDuration — PHICH duration'Normal' | 'Extended'

PHICH duration, returned as a string.

Data Types: char

Ng — HICH group multiplier'Sixth' | 'Half' | 'One' | 'Two'

HICH group multiplier, specified as a string.

Data Types: char

NFrame — Frame numberscalar value

Frame number, specified as a scalar value.

Data Types: int32

Data Types: struct

References

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

See Also

|

Introduced in R2014a

Was this topic helpful?