Research Article

Enhancing Cellular Coverage Quality by Virtual Access Point and Wireless Power Transfer

Algorithm 2

ETR election for VAP.
Run at any virtual access point (VAP)
Input:
Output:
  Broadcast a requesting packet for charging node election at its maximum transmission power
  Set the timer as
  while the timer does not expire do
    If receive a respond packet for charging node election from any node (e.g., ) then
       If    then
        add   to  
       Send a confirmation package to node
    End if
     End if
  End while
Run at any node
Input: null
Output: null
  If receive a requesting packet for charging node election from any VAP (e.g., ) then
    If  , and   then
      Send a responding packet to VAP  
    End if
  End if
  If receive a confirmation package from any VAP (e.g.,  ) then
     Mark itself as the charging node of the VAP
  End if