Professional Documents
Culture Documents
Application Overview
The IEEE 802.15.4 standard for Low-Rate Wireless Personal Area Networks (LR-WPANs)
supports a maximum over-the-air data rate of 250 kbps for the 2400-MHz band. In practice,
the effective data rate is somewhat lower due to the protocol built into the frame structure.
Various mechanisms are also employed to ensure robust data transmission. These include
channel access algorithms, data verification and frame acknowledgement. The data frame
structure and associated protocol overhead are described, and used to determine the
maximum data payload and packet transmission time. The channel access and frame
acknowledge times are also calculated. An example actual data rate calculation is given for
a non-beacon enabled network using unslotted CSMA-CA (with acknowledgements) and a
transmission time calculated for 1 MB of data.
Initially, the back-off exponent BE is set to macMinBE. Using the default value of 3 for
macMinBE and assuming the channel is found to be free, the worst-case channel access
time can be calculated as:
InitialbackoffPeriod + CCA = (23 1) x aUnitBackoffPeriod + CCA
= 7 x 320 s + 128 s
= 2.368 ms
The CCA detection time is defined as 8 symbol periods.
aUnitBackoffPeriod is defined as 20 symbol periods.
1 symbol period is equal to 16 s.
2
Frame
Control
1
Sequence
Number
4 to 20
Addressing Fields
Data Payload
FCS
MSDU
MFR
MHR
Bytes
5 + (4 to 20) + n
Preamble
Sequence
Start of
Frame
Frame
Length
MPDU
SHR
PHR
MAC
Sub-layer
PHY
Layer
PSDU
11 + (4 to 20) + n
Bytes
PPDU
Bytes: 2
Frame
control
Sequence
number
0/2
0/2/8
0/2
0/2/8
Destination
PAN ID
Destination
address
Source
PAN ID
Source
address
Addressing fields
MHR
variable
Frame
payload
FCS
MAC
payload
MFR
Note: For the Star network topology, it is possible to specify only source
addressing fields, increasing the maximum data payload to 118 bytes. In
this situation, the frame is accepted only if the device is a PAN
Coordinator and the source PAN identifier matches that of the PAN
Coordinator.
5 + 1) 8
= 4.256ms
250 103
Bytes
Frame
Control
1
Sequence
Number
MHR
Bytes
Preamble
Sequence
Start of
Frame
Frame
Length
MPDU
PHR
PSDU
Bytes
FCS
MAC
Sub-layer
MFR
SHR
PHY
Layer
11
PPDU
Ack
Short Frame
LIFS
Tack
Ack
Tack
SIFS
Retry Timing
In practice, it is unlikely that a 0% PER will be achieved. The transmitting node will wait
macAckWaitDuration symbol periods for an acknowledgment before it attempts a retry,
where macAckWaitDuration is equal to 54 symbol periods (0.864 ms).
Total
7.168 ms
Total
14.656 ms
The time to transmit a frame with no retries is as calculated for the effective data rate:
7.168 ms.
Therefore, with 75% of data frames taking 7.168 ms and 25% of data frames taking
14.656 ms:
Average data frame transmission time = (7.168 x 0.75) + (14.656 x 0.25) = 9.04 ms
Assuming a 114-byte payload, the achievable data rate is then given by:
Actual data rate = (114 x 8) / (9.04 x 10-3) = 101 kbps
So, the transfer time for 1 MB of data will be:
2 20
9.04ms = 1 min 23 sec
114
To improve on this, we could use a random back-off exponent of 1 rather than the default
value of 3. In this case, the CSMA/CA channel access time will default to the minimum Long
Inter-Frame Spacing (LIFS) of 0.640 ms. This gives an actual data rate of 133 kbps and a
transfer time of ~1 minute.
Appendix
CSMA-CA
No
Slotted?
Yes
NB = 0, CW = 2
NB = 0
BE = macMinBE
Battery Life
Extension?
No
BE = macMinBE
Perform CCA
Locate Backoff
Period Boundary
Channel Idle?
Yes
No
Perform CCA on
backoff period
boundary
NB = NB + 1
BE = min(BE + 1, aMaxBE)
Yes
No
Channel idle?
NB >
macMaxCSMABackoffs?
No
Yes
CW=2, NB=NB+1,
BE = min(BE+1,
aMaxBE)
CW=CW-1
Failure
No
NB>
macMaxCSMABackoffs?
Yes
Failure
CW=0?
Success
No
Yes
Success
References
[1]
Back-off Exponent
CAP
CCA
CFP
Contention-Free Period
CSMA-CA
FCS
LAN
LR-WPAN
LIFS
MAC
MFR
MAC Footer
MHR
MAC Header
MPDU
MSDU
NB
PAN
PDU
PHR
PHY Header
PHY
Physical layer
PN
Pseudo-random Noise
PPDU
PSDU
SFD
Start-of-Frame Delimiter
SHR
Synchronisation Header
SIFS
Revision History
Version
Notes
1.0
First release
1.1
Important Notice
Limited warranty and liability Information in this document is believed to be accurate and reliable. However, NXP
Semiconductors does not give any representations or warranties, expressed or implied, as to the accuracy or completeness of
such information and shall have no liability for the consequences of use of such information. NXP Semiconductors takes no
responsibility for the content in this document if provided by an information source outside of NXP Semiconductors.
In no event shall NXP Semiconductors be liable for any indirect, incidental, punitive, special or consequential damages
(including - without limitation - lost profits, lost savings, business interruption, costs related to the removal or replacement of any
products or rework charges) whether or not such damages are based on tort (including negligence), warranty, breach of
contract or any other legal theory.
Notwithstanding any damages that customer might incur for any reason whatsoever, NXP Semiconductors aggregate and
cumulative liability towards customer for the products described herein shall be limited in accordance with the Terms and
conditions of commercial sale of NXP Semiconductors.
Right to make changes NXP Semiconductors reserves the right to make changes to information published in this
document, including without limitation specifications and product descriptions, at any time and without notice. This document
supersedes and replaces all information supplied prior to the publication hereof.
Suitability for use NXP Semiconductors products are not designed, authorized or warranted to be suitable for use in life
support, life-critical or safety-critical systems or equipment, nor in applications where failure or malfunction of an NXP
Semiconductors product can reasonably be expected to result in personal injury, death or severe property or environmental
damage. NXP Semiconductors and its suppliers accept no liability for inclusion and/or use of NXP Semiconductors products in
such equipment or applications and therefore such inclusion and/or use is at the customers own risk.
Applications Applications that are described herein for any of these products are for illustrative purposes only. NXP
Semiconductors makes no representation or warranty that such applications will be suitable for the specified use without further
testing or modification.
Customers are responsible for the design and operation of their applications and products using NXP Semiconductors
products, and NXP Semiconductors accepts no liability for any assistance with applications or customer product design. It is
customers sole responsibility to determine whether the NXP Semiconductors product is suitable and fit for the customers
applications and products planned, as well as for the planned application and use of customers third party customer(s).
Customers should provide appropriate design and operating safeguards to minimize the risks associated with their applications
and products.
NXP Semiconductors does not accept any liability related to any default, damage, costs or problem which is based on any
weakness or default in the customers applications or products, or the application or use by customers third party customer(s).
Customer is responsible for doing all necessary testing for the customers applications and products using NXP
Semiconductors products in order to avoid a default of the applications and the products or of the application or use by
customers third party customer(s). NXP does not accept any liability in this respect.
Export control This document as well as the item(s) described herein may be subject to export control regulations. Export
might require a prior authorization from competent authorities.
All trademarks are the property of their respective owners.
www.nxp.com