Technology principle of power generation battery