How to calculate the received signal energy

Hello everyone,
I am using benchmark_tx.py and benchmark_rx.py programs to run
the
transmission and reception of packets. I need some help in how to
calculate
the received signal energy. May be this has to be done before the
demodulation step. Can some one help me with this.

Regards,

Amarnath