Patent attributes
A socket with a detection function includes a housing; a plurality of metal spring pins installed side by side in the housing; a first detection pin formed on a side of the plurality of metal spring pins and coupled to a system ground; and a second detection pin formed on another side of the plurality of metal spring pins and coupled to a pull up resistor for providing a high voltage level for the second detection pin. The second detection pin includes an elastic metal arm extending toward the first detection pin and formed on the top of the first detection pin. A first metal spring pin is deflected to press down the elastic metal arm of the second detection pin for contacting the first detection pin when a phone cable plug is inserted into the socket.