Skip to main content
. 2017 Sep 22;17(10):2185. doi: 10.3390/s17102185
Algorithm 2 New channel access mechanism
  • Require:

    Number of sensor NS attached to the shared slot.

  • Ensure:

    Transmission success/failure.

  • 1:

    if SLOTS and not SLOTO then

  • 2:

        locate backoff period boundary, and wait for Rbackoff periods;

  • 3:

        if (SLOTduration−Rbackoff)≤(TCCA+TL) then

  • 4:

            resume backoff at the next SLOTS;

  • 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 SLOTS;

  • 11:

            end if

  • 12:

        end if

  • 13:

    else

  • 14:

        start transmission

  • 15:

        if transmission success then

  • 16:

            stop;

  • 17:

        else

  • 18:

            if (SLOTR) available then

  • 19:

               start retransmission at the allotted (SLOTR);

  • 20:

            else

  • 21:

               wait for next SLOTS;

  • 22:

            end if

  • 23:

        end if

  • 24:

    end if