Energy-detection based spectrum sensing for cognitive radio on a real-time SDR platform