YITechnology / YIOpenAPI

YI Open API provides mobile SDKs and reference designs for software developers and hardware makers to build cool apps and products with YI 4K Action Cameras
Other
345 stars 76 forks source link

Windows Prevents Multiple Yi 4K devices from being in U-Disk mode at once #50

Closed somacoder closed 7 years ago

somacoder commented 7 years ago

I have a project that makes use of multiple Yi 4K cameras connected to a PC for syncing. However, Windows only allows a single camera to enter U-Disk mode at a time, regardless of being connected to two different USB bus ports. However, this is not the case on Mac OSX, which can connect multiple Yi 4K cameras in U-Disk mode at once. Is there a way to force Windows to allow multiple Yi 4K devices to enter U-Disk mode at once? Thank you!

Water-bamboo commented 7 years ago

This may be can only be resolved by Windows.

somacoder commented 7 years ago

Could it also be a driver issue? Are there any alternative Windows drivers for the Yi 4K U-disk mode?

somacoder commented 7 years ago

The problem appears to be that all Yi 4k cameras show up as having the same "Device Instance Path". Since they are not unique, when the second one is plugged in, Windows fails to recognize it as a new device. More specifically, this may be related to the "serial number" suffix at the end of the instance path. The assignment of this should be uniquely fed from the device, but again, all Yi 4K devices appear to have the same one to Windows. Not sure if this could help anyone to garner a solution. I hope so. I've got nothing so far.

Here is the Instance Path for all Yi 4K cameras in Windows: USBSTOR\DISK&VEN_XIAOYI&PROD_SPORTCAMERA_2&REV_1000\0001&0

somacoder commented 7 years ago

Solution: Change the USB Device Registry Entry for the device to Ignore the Hardware Serial Number and go with the USB Port location to act as the suffix to the Instance ID.