The invention discloses a mobile charging method based on clustering and energy
relay in WSNs. The method comprise the following steps: firstly, nodes of the whole network are clustered, a cluster head is selected according to the
energy consumption speed of the node, the
residual energy and the distance from the
base station node, and the corresponding cluster
radius is computed, wherein the cluster head node is used as a resident point of the charger for performing energy transmission and data collection; secondly, the
base station plans the corresponding charging path according to a charging request sent by the node, and dispatches a charger to charge the node; the node in the cluster performs the
effective energy transmission through an energy
relay way; when the nodes needs the emergency charging, the
base station can determine the charger in response to a node emergency charging request. The charging process and the data collection process are combined, the data is divided into the sensitive data and insensitive data, and the different collection strategies are adopted. By using the mobile charging method disclosed by the invention, the
energy consumption among the clusters in the network can be balanced, the charging validity and the network expandability are improved, thereby maximizing the network life.