Skip to main content
. 2017 Jan 16;17(1):168. doi: 10.3390/s17010168
Algorithm 2 A new association scheme for device.
Require: Set of channels CH={CHi∣1≤i≤k}.
Ensure: Successful association with a suitable coordinator.
  • 1:

    Generate a random number r = random (1, k);

  • 2:

    Passive scan in channel CHr.

  • 3:

    if Beacon received then

  • 4:

     repeat

  • 5:

       Compete with other devices to associate with the coordinator;

  • 6:

     until Successful association.

  • 7:

    else

  • 8:

     Wait for beacon;

  • 9:

    end if