Lithium battery pack detection pin setting