How to apply for a patent for software products?

Hello! Software itself is not the object of patent protection, it belongs to an intellectual activity, but software can apply for a patent if it meets two conditions! 1. Your software products have hardware as the carrier, so the products can apply for invention patents and utility models! If your technical method can solve some technical problems in production, you can apply for an invention patent! thank you