Codes for set with detailed devices