lteSLMIB
Sidelink MIB encoding and decoding
Description
returns
the encoded sidelink MIB (MIB-SL) RRC message bits for the specified UE settings
structure.mibslout
= lteSLMIB(ue
)
For more information, see MIB-SL Message Processing.
Examples
Create MIB-SL Message
Create the 40-bit MIB-SL associated with the parameter values to be carried on the message.
Initialize a UE-specific configuration structure with 10 MHz bandwidth for TDD.
ue.NSLRB = 50;
ue.DuplexMode = 'TDD';
ue.TDDConfig = 6;
ue.NFrame = 5;
ue.NSubframe = 1;
ue.InCoverage = 1;
Generate the 40-bit MIB-SL message using the ue
structure.
mibsl = lteSLMIB(ue);
Decode MIB-SL Message
Decode the 40-bit MIB-SL message, creating a received parameter structure from the message.
Initialize a UE-specific configuration structure with 5 MHz bandwidth for TDD.
ue.NSLRB = 25;
ue.DuplexMode = 'TDD';
ue.TDDConfig = 6;
ue.NFrame = 5;
ue.NSubframe = 1;
ue.InCoverage = 1
ue = struct with fields:
NSLRB: 25
DuplexMode: 'TDD'
TDDConfig: 6
NFrame: 5
NSubframe: 1
InCoverage: 1
Generate the 40-bit MIB-SL message using the ue
structure.
mibsl = lteSLMIB(ue);
Convert the MIB-SL bit vector back into a parameter set. Compare this parameter set with the transmission set.
rxparams = lteSLMIB(mibsl)
rxparams = struct with fields:
NSLRB: 25
DuplexMode: 'TDD'
TDDConfig: 6
NFrame: 5
NSubframe: 1
InCoverage: 1
isequal(rxparams,ue)
ans = logical
1
Update UE Structure Using MIB-SL Message
Update UE-specific parameter configuration structure settings using the 40-bit MIB-SL message. Encode an MIB-SL message based on one ue structure parameter set.
Encode an MIB-SL message from one UE-specific configuration
Initialize a UE-specific configuration structure with 5 MHz bandwidth for TDD. Encode a 40-bit MIB-SL message using the ue1
structure.
ue1.NSLRB = 25;
ue1.DuplexMode = 'TDD';
ue1.TDDConfig = 6;
ue1.NFrame = 5;
ue1.NSubframe = 1;
ue1.InCoverage = 1;
mibsl = lteSLMIB(ue1);
Create a second UE-specific configuration
Initialize a second UE-specific configuration structure with a different configuration. Compare ue2
with ue1
.
ue2.NSLRB = 75;
ue2.DuplexMode = 'TDD';
ue2.TDDConfig = 2;
ue2.NFrame = 2;
ue2.NSubframe = 2;
ue2.InCoverage = 0;
isequal(ue2,ue1)
ans = logical
0
Update the second UE-specific configuration based on the MIB-SL message
Using mibsl
, update the settings in ue2
to match ue1
. Compare ue2
with ue1
.
ue2 = lteSLMIB(mibsl,ue2); isequal(ue2,ue1)
ans = logical
1
Input Arguments
ue
— User equipment settings
structure
User equipment settings, specified as a parameter structure containing these fields:
NSLRB
— Number of sidelink resource blocks
integer scalar from 6 to 110
Number of sidelink resource blocks, specified as an integer scalar from 6 to 110.
Example: 6
, which corresponds to a channel
bandwidth of 1.4 MHz.
Data Types: double
DuplexMode
— Duplexing mode
'FDD'
(default) | 'TDD'
| optional
Duplexing mode, specified as 'FDD'
or 'TDD'
.
Data Types: char
| string
TDDConfig
— Uplink or downlink configuration
0 (default) | integer from 0 to 6 | optional
Uplink or downlink configuration, specified as an integer from 0 to 6. (tdd-ConfigSL-r12)
TDDConfig
is applicable for TDD duplex
mode only.
Data Types: double
NFrame
— Direct frame number
0 (default) | nonnegative integer | optional
Direct frame number, specified as a nonnegative integer. (directFrameNumber-r12)
Data Types: double
NSubframe
— Direct subframe number
0 (default) | nonnegative integer | optional
Direct subframe number, specified as a nonnegative integer. (directSubframeNumber-r12)
Data Types: double
InCoverage
— Indicates whether UE is in E-UTRAN coverage
0 (default) | 1 | optional
Indicates whether the UE transmitting the MIB-SL is in E-UTRAN coverage, specified as 0 (not in coverage) or 1 (in coverage). (inCoverage-r12).
Data Types: double
Data Types: struct
mibsl
— MIB-SL message bit sequence
40-bit column vector
MIB-SL message bit sequence, specified as a 40-bit column vector.
For more information, see MIB-SL Message Processing.
Data Types: double
| int8
| logical
Output Arguments
mibslout
— MIB-SL message bit sequence
40-bit column vector
MIB-SL message bit sequence, returned as a 40-bit column vector.
For more information, see MIB-SL Message Processing.
Data Types: int8
ueout
— User equipment settings
structure
User equipment settings, returned as a parameter structure containing these fields:
NSLRB
— Number of sidelink resource blocks
0, 6, 15, 25, 50, 75, or 100
Number of sidelink resource blocks, returned as an integer from the set {0, 6, 15, 25, 50, 75, 100}. ()
For more information on sidelink bandwidths, see MIB-SL Message Processing.
Data Types: int32
DuplexMode
— Duplexing mode
'FDD'
| 'TDD'
Duplexing mode, returned as 'FDD'
or 'TDD'
.
Data Types: char
TDDConfig
— Uplink or downlink configuration
integer from 0 to 6
Uplink or downlink configuration, returned as an integer from 0 to 6. (tdd-ConfigSL-r12)
TDDConfig
is applicable for TDD duplex mode only.
Data Types: int32
NFrame
— Direct frame number
nonnegative integer
Direct frame number, returned as a nonnegative integer. (directFrameNumber-r12)
Data Types: int32
NSubframe
— Direct subframe number
nonnegative integer
Direct subframe number, returned as a nonnegative integer. (directSubframeNumber-r12)
Data Types: int32
InCoverage
— Indicates when UE is in E-UTRAN coverage
0 | 1
Indicates when UE is in E-UTRAN coverage, returned as 0 or 1. (inCoverage-r12) The UE transmitting the MIB-SL is:
Not in E-UTRAN coverage when
InCoverage
= 0.In E-UTRAN coverage when
InCoverage
= 1.
Data Types: int32
Data Types: struct
More About
MIB-SL Message Processing
The MIB-SL message is a 40 bits long and defined in TS 36.331 [1], Section 6.5.2. The message is sent from UE to UE on the PC5 interface via the SL-BCH transport channel on the SBCCH logical channel. MIB-SL contains sl-Bandwidth-r12, tdd-ConfigSL-r12, directFrameNumber-r12, directSubframeNumber-r12, inCoverage-r12, and 19 bits reserved for future.
When encoding the MIB-SL message:
If
NSLRB
is not one of the set {6,15,25,50,75,100}, then all ones are inserted into the first three bits (sl-Bandwidth-r12 bit field) of the MIB message.
When decoding the MIB-SL message:
If the first three bits (sl-Bandwidth-r12 bit field) of the input MIB-SL message do not contain the equivalent of a decimal from 0 to 5 (MSB first, corresponding to the PRB set {6,15,25,50,75, 100}) then NSLRB is returned as 0.
If the input MIB-SL messages are not 40 bits, the messages are either truncated to 40 elements or zero padded as needed.
References
[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
Introduced in R2016b
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)