Skip to main content
. 2020 Sep 11;20(18):5195. doi: 10.3390/s20185195
Algorithm 2 FARF Algorithm
  •  1:

    /* Same code as SARF Algorithm (lines 3 to 7)

  •  2:

    while true do

  •  3:

        if Request of a new transmission then

  •  4:

            Perform transmission attempt

  •  5:

            if Success then

  •  6:

                 /* Same code as SARF Algorithm (lines 16 to 22)

  •  7:

            else

  •  8:

                 /* (If failure)

  •  9:

                 ccs0;         ▹ Reset # of consecutive successes

  • 10:

               trr1;    ▹ Set transmission rate to the lowest value

  • 11:

            end if

  • 12:

        end if

  • 13:

    end while