Optimal Control For Data Harvesting And Signal Model Estimation