how to get bus reported device description for VSP com port

YANG HONG 0 Reputation points
2024-04-23T18:20:45.4133333+00:00

Hello,

I am using C# to detect usb vsp com port for my ARM controller via usb port. My program has been working properly, but I can't get the descriptor on ARM controller because windows use universal serial device driver. I found item "bus reported device" in device manager to have controller descriptor, but when I use win32_PNPdevices to query it, I can't get this property, anybody has some solution?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,426 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,275 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 81,741 Reputation points
    2024-04-23T19:18:02.63+00:00

    From this thread https://forum.lazarus.freepascal.org/index.php?topic=59729.0

    with Win32_PnPEntity and PnpClass = "Ports"

    (Device Manager calls SetupDi APIs (SetupDiGetClassDevs and so on)

    0 comments No comments