A multi-frequency communication routing protocol for mobile devices in the Internet of things