|
Algorithm 2 New channel access mechanism |
-
Require:
Number of sensor attached to the shared slot.
-
Ensure:
Transmission success/failure.
-
1:
if
and not
then
-
2:
locate backoff period boundary, and wait for periods;
-
3:
if (
then
-
4:
resume backoff at the next ;
-
5:
else
-
6:
perform channel sensing as described in Algorithm 1;
-
7:
if channel access success then
-
8:
go to Step 14;
-
9:
else
-
10:
wait for next ;
-
11:
end if
-
12:
end if
-
13:
else
-
14:
start transmission
-
15:
if transmission success then
-
16:
stop;
-
17:
else
-
18:
if
available then
-
19:
start retransmission at the allotted ;
-
20:
else
-
21:
wait for next ;
-
22:
end if
-
23:
end if
-
24:
end if
|