serial_port_win32 icon indicating copy to clipboard operation
serial_port_win32 copied to clipboard

Question: Is there any way I can get serial number, manufacturer name, PID and VID information.

Open nirmalaranawat opened this issue 2 years ago • 3 comments

I am making an windows application which communicates with hardware connected over serial port ( via USB to Serial converter). I want to the application to connected to an com port automatically if it meets certain criteria (Serial number, Manufacturer ID etc.).

nirmalaranawat avatar Jun 03 '22 01:06 nirmalaranawat

It's different from serial port communication. So I didn't implement it using dart.

If you can use C++:

Please see How to get USB vendor and product Id programmatically in c++ and win32 doc SetupDiEnumDeviceInfo

FengChendian avatar Jun 06 '22 09:06 FengChendian

Thank you for the links. I will explore C++ option as well as the lib serial port from flutter.

nirmalaranawat avatar Jun 09 '22 23:06 nirmalaranawat

I will try to support the feature in next version. But I find that win32 package does't support function SetupDiGetDeviceInstanceIdW for now.

Please refer to issue

FengChendian avatar Jun 10 '22 09:06 FengChendian