Skip to main content
. 2017 Jul 5;17(7):1573. doi: 10.3390/s17071573
Algorithm 2: Testing of the detection algorithm.
  • for each node do

  • n=0;

  • ϵ:constant>0;

  •  moving average filtering of input data with 10 s of step;

  • for each variable: Energy, Retransmissions, CSMA-retries. do

  •   if test value exceeds max +ϵ then

  •    n++;

  •   else

  •    DO nothing;

  •   end if

  • end for

  • if n2 then

  •   jamming alarm:

  •   SEND control packet for notification;

  • else

  •   DO nothing;

  • end if

  • end for