I am new to USB devices. I want to connect an android phone to a windows desktop using a uwp app. It's mentioned here that you can write a UWP app, if device class, subclass, and protocol code of the device is one of the following:
- name:cdcControl, classId:02 * *
- name:physical, classId:05 * *
- name:personalHealthcare, classId:0f 00 00
- name:activeSync, classId:ef 01 01
- name:palmSync, classId:ef 01 02
- name:deviceFirmwareUpdate, classId:fe 01 01
- name:irda, classId:fe 02 00
- name:measurement, classId:fe 03 *
- name:vendorSpecific, classId:ff * *
This list doesn't have MTP in the list. Also, when I try to send a control message to an andorid device using a sample usb uwp app, I get this: Exception thrown: 'System.Exception' in System.Private.CoreLib.ni.dll An exception of type 'System.Exception' occurred in System.Private.CoreLib.ni.dll but was not handled in user code A device attached to the system is not functioning. (Exception from HRESULT: 0x8007001F)
Can anyone answer whether this communication between uwp app and android device through usb is possible or not? Are the MTP connection and MTP device class related?
User contributions licensed under CC BY-SA 3.0