23.03.2017 Views

wilamowski-b-m-irwin-j-d-industrial-communication-systems-2011

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

53-4 Industrial Communication Systems<br />

TsTXOffset<br />

Time slot starts here<br />

TsRxTx<br />

TsACKWait<br />

TX<br />

Data<br />

ACK<br />

TsCCAOffset<br />

TsCCA<br />

≤TsMaxPacket<br />

TsRxACKDelay<br />

TsACK<br />

RX<br />

Data<br />

ACK<br />

TsRxOffset TsRxWait TsTxACKDelay<br />

FIGURE 53.3 Packet timing and time slot format. Brighter box is for reception state and darker box is for<br />

transmitting state of devices.<br />

For successful and efficient TDMA <strong>communication</strong>s, all nodes within the same network must share a<br />

common sense of time; in other words, synchronization of clocks between devices is critical. Common<br />

sources of clock drift include temperature and aging. Consequently, tolerances on timekeeping and time synchronization<br />

mechanisms are specified to ensure that devices “exactly” know when the start of a slot occurs.<br />

The format of a timeslot is shown in Figure 53.3.<br />

In this figure, it is shown how a unicast message exchange occurs between a transmitting source<br />

device (call it “A”) that is transmitting to a destination device (call it “B”), which is listening. Assuming<br />

that both nodes are already synchronized, then “B” knows when to expect the first bit of the preamble<br />

of the message coming from “A” (TsMaxPacket is the duration of the longest packet allowed by the IEEE<br />

802.15.4 standard, i.e., 4.256.ms).<br />

There is an initial CCA (which starts with a TsCCAOffset = 1.8 ± 0.1.ms delay and lasts TsCCA =<br />

0.128.ms) that is not strictly needed but has been taken into account in order to improve coexistence<br />

with other wireless networks. Within the slot, the actual transmission of the source message has a<br />

delay with respect to the beginning of a slot (TsTxOffset = 2.12 ± 0.1.ms in the Figure 53.3). This short<br />

time delay allows the source and destination to set their frequency channel and allows the receiver to<br />

begin listening on the correct channel. Also, the receiver has a delay with respect to time slot beginning<br />

(TsRxOffset = 1.12 ± 0.1.ms in Figure 53.3), needed to set up the radio. In addition, since there is a tolerance<br />

on clocks, the receiver has a guard interval (TsRxWait = 2.2 ± 0.1.ms in Figure 53.3), i.e., it must<br />

start to listen before the ideal transmission start time and continue listening after that ideal time.<br />

Once the transmission is complete, the <strong>communication</strong> direction is reversed and the destination<br />

device sends an acknowledgment packet (ACK) whether it received the source device message successfully<br />

or with a specific class of detected errors. The switching among the transmitting and the receiving<br />

state of the radio must be no longer than TsRxTx = 0.192.ms, while the source node waits TsRxAckDelay =<br />

0.8 ± 0.1.ms from the end of the message to the listening of the ACK (the guard time for the ACK arrival<br />

can be small, since the two nodes are tightly synchronized by the arrival of the message from the source<br />

to the destination); on the contrary, the destination node must send the ACK after TsTxAckDelay =<br />

1.0 ± 0.1.ms from the end of the message.<br />

Communicating devices are assigned not only to a superframe and time slot but have also a specific<br />

channel offset, by means of which channel hopping is implemented. This 3-tuple forms the so-called<br />

<strong>communication</strong>s link, i.e., the opportunity to establish a connection between communicating devices.<br />

All devices must support multiple links. The number of possible links is, typically, equal to the number<br />

of channels utilized by a network times the number of slots in the superframe. For example, the use of<br />

15 channels and 9,000 slots per superframe results in 135,000 possible links.<br />

© <strong>2011</strong> by Taylor and Francis Group, LLC

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!