protocol for two types of power sockets