19. The device of claim 16 , wherein the logic states include high and low logic states conveyed via the detection pin signals.
16. A device comprising: a processing system; one or more computer-readable storage media; and instructions stored on computer-readable storage media that when executed by the processing system cause the device to perform security actions that: detect insertion of a connector for an accessory device into an accessory port of the device based on logic states of detection pin signals conveyed from the accessory device via detection pins of the connector, the connector and accessory port configured to support reversible insertion of the connector into the accessory port; identify an accessory device type according to the logic states of the detection pin signals, the logic states indicating whether the accessory device is a one-wire type device or a two-wire type device; ascertain an orientation of the connector inserted into the accessory port; and configure a switching mechanism of the device to route signals to the detection pins of the accessory port according to the identified accessory device type and the ascertained orientation of the connector.