Skip to main content
. 2020 Mar 1;20(5):1355. doi: 10.3390/s20051355
Algorithm 2. Intra-CRBAN data transmission.
Input: Information of data channel and start_time of CBi {Chik(t) = 1, ΔT(Bi)}, length of frame T, time slot for data transmission ts, set of unscheduled sensors sijCBi
Output: Data transmission schedule of the sensor nodes
1. Assign schedule = ø
2. For each sijCBi
3.  Find the sij so that (pij)max
4.  Add sij to the schedule: schedule = {sij}
5.  Assign start_time(sij ) = ΔT(Bi)
6.  Update current_time = ΔT(Bi) + ts
7.  Remove sij out of CBi
8. End For