View full-text article in PMC Sensors (Basel). 2022 Jun 13;22(12):4472. doi: 10.3390/s22124472 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 1 RAW configuration Gh←max(Nh/120,1) Gs←max(Ns/3200,1) Sh←min(Nh/15,8) Ss←min(Ns/50,64) NRAWPERBEACON←Gh+Gs for ido RawAssignment∗mraw←newRPS::RawAssignment if Group is honest then mraw→SetSlotFormat(1) mraw→SetSlotNum(Sh) mraw→SetSlotDurationCount(NC−SSQPA()) else if Group is selfish then mraw→SetSlotFormat(0) mraw→SetSlotNum(Ss) mraw→SetSlotDurationCount(HSC−SSQPA()) end if end for