简体   繁体   中英

how to connect to DSLR camera by OTG cable on iPhone

I have tried to use EAAccessoryManager with swift:

let eaManager = EAAccessoryManager.shared()
let devices = eaManager.connectedAccessories

but the devices list is always empty, I searched this problem for two days on Google, but did not get any useful infomation, the Canon official remote control app connect to camera by BLE or Wifi, while the iPhone's photos app can access the DSLR camera and import photos from it by OTG cable. so I think there must be a way to implement solve it.

I found even if I connect to DSLR camera by OTG cable, user can't use the camera while connecting, because iPhone doesn't support PTP protocol, the connection is established by mount the camera's SD card, camera lose the sdcard once iPhone mounted it.
so the only way to connect to DSLR camera on iPhone is BLE or Wifi.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM