The invention of batteries made it possible to store electricity for many purposes. One of the purposes is to keep the operations of WSN running without any interruptions. The main drawback of sensor nodes is their limited energy sources. The researcher introduces the energy harvesting (EH) concept for IoT-based WSNs to overcome energy limitations and charge the IoT devices. Many energy harvesting techniques have been introduced, such as solar, thermal, and flow-based ones, but radio frequency (RF)-based EH techniques received great attention from researchers due to their easy availability (from TV, radio, and wireless frequencies). In this paper, we have conducted a real-world experiment on Powercast energy harvesting devices and examined the behavior of sensed data in different scenarios, such as indoor, distance (feet/meters), and directional antennas. In our experiments, we have observed that when a device is removed from the charger, the energy scavenging process degrades and reaches a dead state. To stop a device from entering a dead state, we introduce a mobile charger technique to charge the device and find the optimal place for chargers and sensor devices. During mobile charging, we have also observed that when the directional antennas change their angle, the energy scavenging process degrades. To tackle these problems, we introduced two algorithms for directional and omni-directional antennas that efficiently solve the problem. Furthermore, we have obtained results for these scenarios and show that this technique has a promising output.
Constrained application protocol (CoAP) can be used for message delivery in wireless sensor networks. Although CoAP-based proxy mobile internet protocol (PMIP) was proposed for mobility management, it resulted in handover delay and packet loss. Therefore, an enhanced PMIP version 6, with partial bicasting in CoAP-based internet of things (IoT) networks, is proposed. Here, when an IoT device moved into a new network, the corresponding mobile access gateway (MAG) updated the local mobility anchor (LMA) binding. Further, LMA initiated the “partial” bicasting of data packets to the new and the previous MAGs. The data packets were buffered at the new MAG during handover and were forwarded to Mobile Node (MN) after the handover operations. The proposed scheme was compared with the existing scheme, using ns-3 simulations. We demonstrated that the proposed scheme reduced handover delays, packet losses, end-to-end delay, throughput, and energy consumption, compared to the existing scheme.