From: Energy harvesting-based data uploading for Internet of Things
Algorithm 1 : data uploading process of proposed mechanism. | |
---|---|
1: | The IoT devices broadcast their data transmission requests to AP through CC channel. |
2: | The AP decides whether devices’ requests can be approved according to equation (14). |
3: | while the current slot is idle, set as T=0do |
4: | The AP informs IoT devices for bids submission. |
5: | The IoT devices compute their bids by urgency function Gi and f(si,Ti) according to equation (7), then submit bid bi to AP for devices i∈M. |
6: | The AP selects the highest bid among devices, and the winning device begins its data transmission. |
7: | After the data uploading finished, set \(T=T+\bar {s_{i}}\), where \(\bar {s_{i}}\) is the data length of winning device. |
8: | end |