Partially adaptive EOCDM-based PON system handled by electrical codes