If the RECoS is now in its AC mode, according to output of the learning module, the AC module turns on/off the power of smart sockets for particular time periods. Besides, when total energy consumption of a smart socket exceeds userdefined limit, the AC module will receive requests issued by PTC/ELC module and then accordingly turn off those lowpriority smart sockets