Patent ID: 7062531

Claim:
A method for generating a house code (HC) in a home network, the method comprising the steps of: generating one portion of the HC as a region separation code for separating plural regions; and generating another portion of the HC as a household separation code for identifying each household of the plural regions, wherein the step of generating the region separation code includes the steps of: dividing regions to which HCs will be provided; setting a basic region from the divided regions and providing at least one region separation code of the HCs to the basic region; determining an order of other divided regions to which the region separation codes of the HCs will be provided on the basis of the set basic region; and selecting the other divided regions one by one by the determined order and providing a region adjacent to the selected region with a region separation code not consistent with already provided region separation codes, and wherein the step of providing a region separation code not consistent with already provided region separation codes includes the steps of: operating region separation codes of the divided regions having the region separation codes among the divided regions adjacent to the selected one divided region by an exclusive OR; and then providing a value obtained from the exclusive OR to a region adjacent to the selected region as a region separation code.