Is it patent protected to achieve the same function?

Patent protection is available.

Different products or different methods or solutions can be used to achieve the same function. As long as they meet the requirements, they can be authorized and protected.

Article 2, Paragraph 3, 4 of the Patent Law

Invention refers to a new technical solution proposed for a product, method or improvement thereof.

Utility model refers to a new technical solution proposed for the shape, structure or combination of a product that is suitable for practical use.