主权项 |
1. A method for configuring a USB3 input/output port in a camera, the method comprising:
configuring the USB3 input/output port according to a default USB3 pin configuration; detecting that a peripheral device is connected to the camera via the USB3 input/output port; receiving, via a USB3 protocol, an identifier from the peripheral device, the identifier indicating whether the peripheral device is a USB3 device or a non-USB3 device; responsive to the identifier indicating that the peripheral device is a USB3 device, communicating with the peripheral device via the USB3 protocol; responsive to the identifier indicating that the peripheral device is a non-USB3 device, remapping pins of the USB3 input/output port to a first predefined port configuration associated with an I2C protocol; performing authentication between the camera and the peripheral device via the I2C protocol to determine if the peripheral device meets a specified criteria for an approved device; responsive to successful authentication, enabling communication with the peripheral device and remapping the pins of the USB3 input/output port to a second predefined port configuration compatible with operation of the authenticated peripheral device; and responsive to unsuccessful authentication, disabling communication with the peripheral device and remapping the pins of the USB3 input/output port to the default USB3 pin configuration. |