A cooperative monitoring and diagnostic architecture for PV systems