How to implement energy aware routing protocol above the DigiMesh protocol?

Hello All, :slight_smile: :smiley:
I use XBee-PRO® DigiMesh® 2.4 module described in this link.

I Need to add some routing functions on the application layer of the module’s protocol stack as:-

1- To enable reading from the routing table stored in the module.
2- To edit the routes or select another route.
3- To add another condition on routing (not only the no. of Hops) i.e. Battery level or RF power level.

So is there any way that i can add these function to the DigiMesh Protocol? If not how to implement them?

Thanks A lot