Study of routing protocol based on remaining battery for sensor networks