A charger having a controller with an input and an output, a first terminal for connecting a battery pack to the controller, a connecting line disposed between the first terminal and the input of the controller, a current source connected to the controller for providing power to the battery pack. At least two different types of metadata are received. detect circuit employs first and second operational amplifiers supplied with a differential input from the AC side of a diode bridge.