Share via

Communicate between Windows C++ Application and Android Device, Via USB

Anonymous
2022-07-11T05:35:07+00:00

I need to communicate (via USB) between c/c++ application on Windows 10, and, an android device (Device Model:PAX A910, android version: 7.0).

MSDN suggested two approaches on windows side.

  • UWP app: It needs a manifest file that keeps on showing an unending chain of errors.
  • WINUSB functions: The example programs available did not detect my device, as per input asked which was class GUID.
  • LibUSB: The open source Libusb detected the device based on input VendorID:ProductID.
  • The device is detected when USB configuration on device is "adb" and is not if it is "MTP". May be that should not be an issue?
  • The device is restricted to enable Developer mode, so i can not enable USB debugging, though We can install new apps on device.

From the example programs, I was able to download Device descriptor and list of 5 interfaces. But other than interface 0, example programs are failing to claim all other interfaces.

  • On windows side what else i am missing?
  • What kind of development needs to be done on Android side?
Windows for home | Windows 10 | Connect Phone and PC

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2022-07-13T11:47:53+00:00

    Thanks Dave,

    I have moved it to suggested forum.

    this post can be deleted if u feel so.

    Was this answer helpful?

    0 comments No comments
  2. DaveM121 891.6K Reputation points Independent Advisor
    2022-07-11T08:13:17+00:00

    Hi VibhuGupta1

    I am Dave, I will help you with this.

    I apologize, Community is just a consumer forum, due to the scope of your question (C++ Programming) can you please post this question to our sister forum on Microsoft Q&A (The Developer Forum) in the C++ section (linked below)

    Over there you will have access to a host of C++Developers and experts and will get a knowledgeable and quick answer to this question.

    https://docs.microsoft.com/en-us/answers/topics...

    Was this answer helpful?

    0 comments No comments