1 Introduction

A sensor is a transducer that converts any physical parameter into an electrical signal [7]. A sensor node is a fundamental unit of sensor network. It is comprised of on board sensors, microprocessor, memory, transceiver and power supply. Wireless Sensor Network (WSN) is an Adhoc network with a collection of huge number of sensor nodes. WSN is an important part of Internet of Things (IoT). It is for monitoring the environment [10], habitat and building. It is also used in target tracking [25]. Also it is used in many fields like intrusion detection [18], disaster rescue and in health care applications. Wireless sensor nodes sense the physical parameter and transmit the data to the sink by multiple hop mechanism, Sink node acts as a gateway between the WSN and the other network. WSN offers unique advantages like improved Signal to Noise Ratio (SNR), increased efficiency, improved robustness and scalability. However there are several challenges in designing the WSN such as hardware design, software development, deployment, localization, routing protocol and coverage.

In many applications localization plays a vital role. Each sensor node is subjected to transmit the data along with its current location. It must be accurate for effective data communication and computation. Therefore, effective localization system has to be developed in the advancement of wireless sensor networks. A number of prerequisites are considered in localization system which includes auto organization, robustness and efficiency. The main components of localization systems are distance or angle estimation, position computation and localization algorithms. The distance or angle estimation is obtained by calculating the distance or angle between the nodes. The important techniques used by localization system as in [1] are Received Signal Strength Indicator (RSSI), Time of Arrival (ToA), Time difference of Arrival (TDoA) and Angle of Arrival (AoA). Based on the RSSI, the distance between the two nodes is calculated. But it requires more complex hardware and is expensive. The distance between the two nodes is directly proportional to the time that the signal takes to propagate from one node to other. The time-based measures like ToA [9] or TDoA [19] are used for the distance estimation. This resultant time, is then multiplied by the propagation speed to find the distance. The limitation is that the local- clocks must be synchronised. In [17] the author has used an AoA which estimates the angle at which the signals are received and uses trigonometry laws to calculate the node location.

To compute the position of the node, there are several methods like Trilateration, Multilateration and Triangulation. In Trilateration, the unknown sensor node computes its position by the intersection of three circles formed by the reference nodes. In Multilateration, more than three reference nodes are used. In Triangulation method, instead of distance, estimation angles are used.

The localization algorithm is the vital part of localization system. This can be classified as Centralized and Distributed localization algorithms, Range based and Range free algorithms and One hop and Multi hop communication based algorithms.

Centralized localization algorithm requires a powerful central base station. It computes the location of each node accurately. However, the limitation is that, it requires the global information of the network. In [21] the author proposed a Multi-Dimensional Scaling–Mathematical Psychology (MDS–MAP) algorithm. It uses the shortest algorithm to find the distance between the nodes. The limitation of MDS–MAP is that, it requires a powerful central unit and is power consuming. In [3] the author has used a centroid along with the connectivity metric. A distributed localization algorithm is proposed in [14] in which each node determines its position based on the multi hop communication.

Range based techniques are more precise but they require more computation and various parameters like RSSI, ToA, TDoA or AoA. Range free localization algorithms do not require distance or angle measurements. So several range free algorithms have been proposed for reducing the complexity and cost. An Approximate Point In Triangle (APIT) algorithm is suggested in [8] for range free localization (RFL). In this the unknown sensor node use a set of signal strength from the anchor to determine the nearby three nodes forming a triangle within which it is located. In Adhoc Positioning System [16] a number of anchor nodes are used to locate the unknown sensor nodes. Each sensor node estimates its position in a multi hop way. A DV-hop, DV-distance and Euclidean methods are proposed.

2 Related Work

Few sensors in WSN are equipped with GPS [9] for localization problem. GPS will receive the data from the satellite; using the ToA it estimates its distance. Mobile anchors are used to assist the nodes in estimating their location. In Ref. [22] a mobile beacon is used for localization. [13] Proposed a range free localization algorithm with mobile anchor points. A distributed localization using mobile beacon is proposed in [2]. Flying anchors are used in [4] for sensor position determination.

The researchers then concentrated on the predetermined path of the mobile anchor. In [12] the author developed three different trajectories namely SCAN, Double SCAN and Hilbert. In SCAN the mobile anchor travels along either along X or Y direction. However, because of collinearity of beacons in SCAN, the author selected Double SCAN. In this, the anchor performs scanning in both the direction. It results in double resolution with loss in energy. Again the author developed Hilbert curve which does not cover the entire area.

Further in [20] the author developed two trajectories Circle and S curves. The limitation is, they leaves the corners uncovered.

The Z curve algorithm is developed in [11] to localize the node using three beacons. In this, the mobile anchor detours around the obstacle and catches up the trajectory. The limitation is that the area coverage depends on the size of the obstacle.

In [5] the author proposed a path-planning algorithm, along with obstacle avoidance. Here also, the limitation is coverage area. The V curve algorithm proposed by the author in [15] to reduce the path length travelled by the beacon so as to make the system energy efficient. The static and dynamic obstacles are avoided using back tracking algorithm.

In wireless sensor networks, the function of the sensor is to sense the data and also to communicate with the base station via Multi hop communication. Lack of energy even in a single node, results in serious effect. Instead of using solar and wind energy harvesting system, wireless charging can be used as it is easy to predict the energy and control the energy replenishment. A Wireless Rechargeable Sensor Network (WRSN) provides a wireless energy harvesting technique.

A joint energy replenishment mechanism is introduced in [24] to prolong the wireless sensor network lifetime. In [6] the author proposed a framework to facilitate multi-hop wireless charging by means of resonant repeaters. The author developed a post optimization algorithm that adds more stopping locations for charging vehicles. The efficiency is maintained by mutual inductance. A Push—Shuttle—Back (PSB) algorithm is developed in [23] to minimize the number of chargers and the optimal shuttling distance.

The author in [15] developed an efficient path for the mobile anchor for localization called V curve algorithm used a back-tracking algorithm to handle the static and dynamic obstacles. This paper enhances the previous work. It uses the mobile anchor for localization and also for recharging the already deployed sensors.

3 Limitations of Existing Schemes

There is collinearity problem in SCAN algorithm, the path length of mobile is doubled in DOUBLE SCAN algorithm, uncover edges in CIRCLE algorithm the author in [15] developed a V curve algorithm. Many of the literature surveys deals with the localization problem and wireless charging problem separately. This paper proses a wireless charging and localization using a single mobile beacon.

4 Proposed Wireless Charging Methods

4.1 Assumption

Wireless sensor network model has a field of LxL with ‘n’ static sensor nodes. The sensing radius of the static node is Rn and is randomly distributed in the field. A mobile anchor with radius Rm is introduced in the network. It travels in the field, in the predetermined V curve path. Rn varies based on the number of sensors, the field area and requirement of sensor. In most of the cases the Rm value will be greater than Rn.

4.2 Performance Evaluations

The network area of 200 × 200 is taken with 20 static nodes. The static nodes are charged with a battery of different charge levels. The mobile charger travels in the sensing field. The power of the mobile node is calculated as Pm = Pmc + Pt + Ps, where Pm is the power of the mobile anchor, Pmc is the power consumed by the micro controller, Pt is the power consumed by the transceiver and Ps is the power consumed by the sensor. In that path if Rm meets Rn, it locates the static node and checks the battery level of the static node. If the battery charge is less than the threshold value, β, 30% of the charge, then the mobile anchor recharges the static node wirelessly using induction principle. If the battery level reaches 80%, it stops charging and continue its path. When the mobile charger is about to get drained of its charge, it goes back to the base station for battery replacement. To maintain an uninterrupted operation of the network, the mobile anchor needs to put its full effort to recharge the nodes before their energy depletes.

Algorithm:

  • Consider the sensing field LxL

  • Place the static sensor nodes in Sij

  • Move the anchor in the V Curve path

  • Locate the static sensor node

  • Receive the battery level of the static node

  • If is less than β recharge it upto 80%

  • Repeat the steps till the anchor reaches the destination

5 Results and Discussions

5.1 Without Charging the Static Node

The mobile charger range is selected such that it can travel in the V curve algorithm to provide 100% coverage. In this case the mobile charger moves in the predetermined path and locates the static nodes along with its % of charge. The time at which the mobile charger meets the static node and the charge remaining in the static node at the end of execution time is given in Figs. 1 and 2.

Fig. 1
figure 1

Visit order of the static node

Fig. 2
figure 2

Time taken and the battery level

The visit order of the static node by the mobile charger and the static node’s position is also given in Figs. 3 and 4.

Fig. 3
figure 3

Data collected by the mobile node

Fig. 4
figure 4

Visit order and the Position of the static node

5.2 With Charging the Static Node

In this case, the mobile charger travels in the V curve path and locates the static nodes. The mobile charger receives the battery level of the static nodes. If it is less than threshold value that is β, 30%, the mobile charger, charges the static node wirelessly to 80%. This continues till it reaches the destination.

The time taken by the mobile charger to reach the static node and the battery level of the static node with charging is given in Figs. 5 and 6.

Fig. 5
figure 5

Time taken and the battery level

Fig. 6
figure 6

Visit order of the static node

The visit order of the static node by the mobile charger and the static node’s position with charging is given in Figs. 7 and 8.

Fig. 7
figure 7

Data collected by the mobile node

Fig. 8
figure 8

Visit order and the Position of the static node

The network lifetime is compared between, with charging and without charging given in Fig. 9. It is clearly shown that the network is alive till 180 s without charging and alive till 367 s with charging. So the network lifetime time can be prolonged by the mobile charger.

Fig. 9
figure 9

Network lifetime comparisons

6 Conclusion

This paper addresses the localization problem along with the wireless charging. In WSN the sensor senses the data and communicates with the base station via Multi hop communication along with its location. If a node drains because of lack of energy causes significant changes in the network. An effective and controllable energy harvesting scheme has to be adopted in Wireless Rechargeable Sensor Network (WRSN). The advantage of this proposed method is that it improves the network’s lifetime. Nevertheless, the drawback is, the mobile charger is bulkier so as to locate and energise the static nodes throughout the field.