Skip to main content
. 2020 Apr 16;20(8):2254. doi: 10.3390/s20082254
Algorithm 1 Encoding strategy at the source node
1: Destination nodes obtain the value of current signal strength V.
2: Destination nodes send packets pkg1 to the source node S.
3: S receives some packets pkg1 from the destination nodes.
4: S obtains the value of V from pkg1.
5: S works out the mean value Avg of V.
6: If Avg60
7:  Set the redundancy value r to 0.
8: Else
9:  Set the redundancy value r to (−60−Avg)/20.
10: Endif
11: S divides a data frame F into K slices.
12: S generates a (K+r)–by-K random matrix M.
13: S generates encoded data Y with M and F.
14: The encoded packets consisting of row vectors of M and Y will be generated.
15: S sends encoded packets to the network.