The invention relates to the technical field of washing machines, in particular to a method and device for simultaneously cleaning the outer wall of an inner
barrel and the inner wall of an outer
barrel of a washing
machine, i.e., a self-cleaning device of a washing
machine, which comprises water passages arranged on the inner
barrel and the outer barrel of the washing
machine; the passages can be integrated with the inner barrel or the outer barrel during manufacturing and can also be independent passages; many intensive holes in the water passages can form water curtains when water in the passages has pressure; a
water curtain sprayed from the outer / inner barrel can respectively clean the inner / outer barrel of the washing machine so as to achieve the purpose of thoroughly cleaning
dirt between the inner barrel and the outer barrel of the washing machine; cleaning water can be directly pressurized by running water or a
booster pump; the water passage on the inner barrel of the washing machine can rotate together with the inner barrel of the washing machine; water in the water passage of the inner barrel is introduced through a rotating shaft of the washing machine; and a dynamic seal
water supply device is used when the water is introduced into the rotating shaft, and the dynamic seal
water supply device is characterized by supplying water to the hollow part of the shaft when the shaft rotates. A barrel cleaning program can be preset in a
computer program when the washing machine is produced, so that the self-cleaning of
dirt between the barrels of the washing machine is programmed. The device can be applied to
impeller type washing machines and drum type washing machines.