wlanS1GConfig
创建S1G格式配置对象
Syntax
CFGS1G = WLANS1GCONFIG
CFGS1G = WLANS1GCONFIG((姓名,Value)
描述
CFGS1G = WLANS1GCONFIG
creates a configuration object that initializes parameters for an IEEE®802.11™ sub 1 GHz (S1G) formatppdu。
例子
为单个用户创建WLANS1GCONFIG对象
Create an S1G configuration object with default settings for a single user. Override the default by specifying a 4 MHz channel bandwidth and short preamble configuration.
CFGS1G = WLANS1GCONFIG;cfgS1G.ChannelBandwidth ='cbw4';cfgs1g.preamble ='Short';cfgS1G
CFGS1G = WLANS1GCONFIGwith properties: ChannelBandwidth: 'CBW4' Preamble: 'Short' NumUsers: 1 NumTransmitAntennas: 1 NumSpaceTimeStreams: 1 SpatialMapping: 'Direct' STBC: 0 MCS: 0 APEPLength: 256 GuardInterval: 'Long' PartialAID: 37 UplinkIndication: 0 Color: 0 TravelingPilots: 0 ResponseIndication: 'None' RecommendSmoothing: 1 Read-only properties: ChannelCoding: 'BCC' PSDULength: 261
为两个用户创建WLANS1GCONFIG对象
Create an S1G configuration object that assigns a 2 MHz bandwidth and two users. Use a combination of Name,Value pairs and in-line initialization to change default settings. In vector-valued properties, each element applies to a specific user.
CFGMU= wlanS1GConfig('ChannelBandwidth','CBW2',。。。'Preamble','长',。。。'NumUsers',2,。。。'GroupID',2,。。。'num Transmitantennas',2);cfgmu.numspacetimestreams = [1 1];cfgmu.mcs = [4 8];cfgmu.apeplength = [1024 2048];CFGMU
cfgmu = wlans1gconfig带有属性:channelbandwidth:'cbw2'序言:'long'数字器:2用户置:[0 1] numTransmitantannas:2 numspaceTimeStreams:[1 1 1]空间图:'Direct MCS:'Direct MCS:[4 8] Apeplength:[4 8] Apeplength:[1024 2048:[1024 2048)] GuardInterval:“长”组ID:2 TravelPilots:0响应介绍:'none'读取属性:Channel编码:'BCC'psdulength:[1031 2065]
NumUsers
被设定为2 and the user-dependent properties are two-element vectors.
创建WLANS1GCONFIG对象and Return Packet Format
使用单个用户的默认设置创建S1G配置对象,并使用点表示法更改默认属性设置。使用packetFormat
对象函数访问对象的S1G数据包格式。
Create an S1G configuration object with default settings. By default, the configuration object creates properties to model the short S1G packet format.
CFGS1G = WLANS1GCONFIG;packetFormat(CFGS1G)
ans ='s1g-short'
Modify the defaults by using the dot notation to specify a long preamble.
cfgs1g.preamble ='长';packetFormat(CFGS1G)
ans ='s1g-long'
Input Arguments
姓名-Value Pair Arguments
Specify optional comma-separated pairs of姓名,Value
参数。姓名
is the argument name andValue
is the corresponding value.姓名
must appear inside single quotes (' '
)。您可以按任何顺序指定几个名称和值对参数NAME1,Value1,...,Namen,Valuen
。
“ ChannelBandWidth”,“ CBW4”,“ Numusers”,2
specifies a channel bandwidth of 4 MHz and two users for the S1G format packet.
'ChannelBandwidth'
—信道带宽
'CBW2'
(默认)|'CBW1'
|'cbw4'
|'cbw8'
|'cbw16'
信道带宽, specified as'CBW1'
,'CBW2'
,'cbw4'
,'cbw8'
, or'cbw16'
。如果传输有多个用户,则将相同的频道带宽应用于所有用户。
例子:'cbw16'
sets the channel bandwidth to 16 MHz.
数据类型:char
|细绳
'Preamble'
—前言type
'Short'
(默认)|'长'
前言type, specified as'Short'
or'长'
。此属性仅适用ChannelBandwidth
不是'CBW1'
。
数据类型:char
|细绳
'NumUsers'
—用户数
1(默认)|2|3|4
用户数, specified as 1, 2, 3, or 4. (NUsers)
数据类型:双倍的
'UserPositions'
—Position of users
[0 1](默认)|row vector of integers from 0 to 3 in strictly increasing order
Position of users, specified as an integer row vector with length equal toNumUsers
and element values from 0 to 3 in a strictly increasing order. This property applies whenNumUsers
> 1.
例子:[0 2 3]
indicates positions for three users, where the first user occupies position 0, the second user occupies position 2, and the third user occupies position 3.
数据类型:双倍的
'num Transmitantennas'
—发射天线的数量
1(默认)|整数从1到4
发射天线的数量,指定为标量整数从1到4。
数据类型:双倍的
'NumSpaceTimeStreams'
—Number of space-time streams
1(默认)|整数从1到4|1-by-NUsers整数从1到4的向量
变速箱中的时空流数,指定为标量或向量。((Nsts)
对于单个用户,时空流的数量是从1到4的整数标量。
For multiple users, the number of space-time streams is a 1-by-NUsers整数从1到4的向量, whereNUsers≤ 4. The sum total of space-time streams for all users,Nsts_Total,不得超过四个。
例子:[1 1 2]
指示三个用户的时空流数量,其中第一个用户获得1个时空流,第二个用户获得1个时空流,而第三个用户将获得2个时空流。分配的时空流总数为4。
数据类型:双倍的
'SpatialMapping'
—Spatial mapping scheme
'Direct'
(默认)|'Hadamard'
|'Fourier'
|'Custom'
空间映射方案,指定为'Direct'
,'Hadamard'
,'Fourier'
, or'Custom'
。的默认值'Direct'
applies whenNum Transmitantennas
andnumspacetimestreams
相等。
数据类型:char
|细绳
'SpatialMappingMatrix'
—Spatial mapping matrix
1(默认)|scalar|matrix|3-D array
Spatial mapping matrix, specified as a scalar, matrix, or 3-D array. Use this property to apply a beamforming steering matrix, and to rotate and scale the constellation mapper output vector. If applicable, scale the space-time block coder output instead.SpatialMappingMatrix
applies when theSpatialMapping
property is set to'Custom'
。有关更多信息,请参见IEEE STD 802.11-2012,第20.3.11.11.2节。
当指定为标量时,常数值适用于所有子载波。
当指定为矩阵时,大小必须为Nsts_total-经过-NT。这spatial mapping matrix applies to all the subcarriers.Nsts_totalis the sum of space-time streams for all users, andNTis the number of transmit antennas.
当指定为3-D数组时,大小必须为NST-经过-Nsts_total-经过-NT。NSTis the sum of the occupied data (NSD) and pilot (NSP) subcarriers, as determined by
ChannelBandwidth
。Nsts_total是所有用户的时空流的总和。NTis the number of transmit antennas.NST随着频道带宽的增加。
ChannelBandwidth
Number of Occupied Subcarriers (NST) Number of Data Subcarriers (NSD) 飞行员子载体的数量(NSP) 'CBW1'
26
24
2
'CBW2'
56
52
4
'cbw4'
114
108
6
'cbw8'
242
234
8
'cbw16'
484
468
16
调用功能使每个子载波的空间映射矩阵归一化。
例子:[0.5 0.3 0.4; 0.4 0.5 0.8] represents a spatial mapping matrix having two space-time streams and three transmit antennas.
数据类型:双倍的
Complex Number Support:是的
'Beamforming'
—在长长的序言包中启用波束形成
true
(默认)|false
在长长的序言包中启用波束形成, specified as a logical. Beamforming is performed when this setting istrue
。This property applies for a long preamble (前言
='长'
) withNumUsers
= 1和SpatialMapping
='Custom'
。这SpatialMappingMatrix
属性指定波束形成转向矩阵。
数据类型:logical
'STBC'
—Enable space-time block coding
false
(默认)|true
Enable space-time block coding (STBC) of the PPDU data field, specified as a logical. STBC transmits multiple copies of the data stream across assigned antennas.
When set to
false
,没有STBC应用于数据字段,时空流的数量等于空间流的数量。When set to
true
, STBC is applied to the data field, and the number of space-time streams is double the number of spatial streams.
See IEEE 802.11ac™-2013, Section 22.3.10.9.4 for further description.
Note
STBC
is relevant for single-user transmissions only.
数据类型:logical
'MCS'
—调制和编码方案
0(默认)|整数从0到10|1-by-NUsersvector of integers
调制和编码方案used in transmitting the current packet, specified as a scalar or vector.
对于一个用户,the MCS value is a scalar integer from 0 to 10.
对于多个用户,MC是1 by-NUsersvector of integers or a scalar with values from 0 to 10, whereNUsers≤ 4.
MCS | 调制 | Coding Rate | Comment |
---|---|---|---|
0 | bpsk |
1/2 |
|
1 | QPSK |
1/2 |
|
2 | QPSK |
3/4 |
|
3 | 16QAM |
1/2 |
|
4 | 16QAM |
3/4 |
|
5 | 64Qam |
2/3 |
|
6 | 64Qam |
3/4 |
|
7 | 64Qam |
5/6 |
|
8 | 256QAM |
3/4 |
|
9 | 256QAM |
5/6 |
|
10 | bpsk |
1/2 |
Applies only forChannelBandwidth ='CBW1' |
数据类型:双倍的
'APEPLength'
—Number of bytes in the A-MPDU pre-EOF padding
256(默认)|integer from 0 to 65,535|vector of integers
A-MPDU Pre-EOF填充中的字节数,指定为整数标量或向量。
对于一个用户,
apeplength
is a scalar integer from 0 to 65,535.For multiple users,
apeplength
is a 1-by-NUsersvector of integers or a scalar with values from 0 to 65,535, whereNUsers≤ 4.apeplength= 0
for a null data packet (NDP).
apeplength
is used internally to determine the number of OFDM symbols in the data field.
Note
Only aggregated data transmission is supported.
数据类型:双倍的
“ GuardInterval”
—数据包中数据字段的循环前缀长度
'长'
(默认)|'Short'
数据包中数据字段的循环前缀长度,指定为'长'
or'Short'
。
这long guard interval length is 800 ns.
这short guard interval length is 400 ns.
Note
For S1G, the first OFDM symbol within the data field always has a long guard interval, even whenGuardInterval
被设定为'Short'
。
数据类型:char
|细绳
'PartialAID'
—Abbreviated indication of the PSDU recipient
37(默认)|整数从0到511
Abbreviated indication of the PSDU recipient, specified as an integer scalar from 0 to 511.
对于一个上行传播,部分identification number is the last nine bits of the basic service set identifier (BSSID) and must be an integer from 0 to 511.
对于下行链路传输,客户端的部分识别是将关联ID与其服务AP的BSSID相结合的标识符,并且必须是0到63的整数。
For more information, see IEEE Std 802.11ac-2013, Table 22-1.
数据类型:双倍的
'UplinkIndication'
—Enable uplink indication
false
(默认)|true
Enable uplink indication, specified as a logical. Set上行链接
totrue
for uplink transmission orfalse
for downlink transmission. This property applies whenChannelBandwidth
不是'CBW1'
andNumUsers
= 1.
数据类型:logical
'颜色'
—访问点颜色标识符
0(默认)|integer scalar from 0 to 7
接入点(AP)颜色标识符指定为一个n integer from 0 to 7. An AP includes aColor
number for the basic service set (BSS). An S1G station (STA) can use theColor
setting to determine if the transmission is within a BSS it is associated with. An S1G STA can terminate the reception process for transmissions received from a BSS that it is not associated with. This property applies whenChannelBandwidth
不是'CBW1'
,NumUsers
= 1, and上行链接
=false
。
数据类型:双倍的
'TravelingPilots'
—Enable traveling pilots
false
(默认)|true
Enable traveling pilots, specified as a logical. SetTravelingPilots
totrue
for nonconstant pilot locations. Traveling pilots allow a receiver to track a changing channel due to Doppler spread.
数据类型:logical
“响应调查”
—Response indication type
'没有任何'
(默认)|'NDP'
|'Normal'
|'长'
Response indication type, specified as'没有任何'
,'NDP'
,'Normal'
, or'长'
。This information is used to indicate the presence and type of frame that will be sent a short interframe space (SIFS) after the current frame transmission. The response indication field is set based on the value of响应调查
and transmitted in;
S1G_SHORT序言的SIG2字段
这SIG-A-2 field of the S1G_LONG preamble
S1G_1M的SIG字段
数据类型:char
|细绳
“推荐平滑”
—建议平滑以进行频道估计
true
(默认)|false
建议平滑以进行频道估计, specified as a logical.
If the frequency profile is nonvarying across the channel , the receiver sets this property to
true
。在这种情况下,建议将频域平滑作为通道估计的一部分。If the frequency profile varies across the channel, the receiver sets this property to
false
。In this case, frequency-domain smoothing is not recommended as part of channel estimation.
数据类型:logical
输出参数
cfgS1G
- S1G PPDU配置
wlanS1GConfig
object
S1Gppdu配置,返回为wlanS1GConfig
目的。属性cfgS1G
are described inwlans1gconfig属性。
More About
ppdu
这physical layer convergence procedure (PLCP) protocol data unit (PPDU) is the complete PLCP frame, including PLCP headers, MAC headers, the MAC data field, and the MAC and PLCP trailers.
扩展功能
C/C ++代码生成
Generate C and C++ code using MATLAB® Coder™.
用法注释和限制:
Use in aMATLABFunctionblock is not supported.
See Also
Wlandmgconfig
|wlanhtconfig
|wlanNonHTConfig
|wlanS1GConfig.packetFormat
|wlanVHTConfig
|wlanwaveformgenerator
Introduced in R2016b
matlab命令
You clicked a link that corresponds to this MATLAB command:
通过在MATLAB命令窗口中输入该命令。Web浏览器不支持MATLAB命令。万博1manbetx
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:
如何获得最佳网站性能
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éricaLatina((Español)
- Canada(英语)
- United States(英语)