1. A method implemented by a host computing device comprising: detecting connection of a connector to an accessory port of the host computing device based on signals conveyed via a pair of detection pins allocated in the connector; ascertaining an orientation of the connection of the connector to the accessory port based on the signals, the signals indicating a logic state combination for the pair of detection pins, the logic state combination indicating whether an accessory device connected via the connector is a one wire device or a two wire device; and configuring a switching mechanism of the host computing device to route signals according to the ascertained orientation and the logic state combination.