USB identifying and serial COM connection in MacOS
-
wrote on 10 Aug 2024, 11:59 last edited by
Hello everyone.
in a Qt project it is required that we identify the and list all virtual COM connections via USB and give a list to user including the COM number and device descriptors showing what kind of devices are in the list. then user decides which com port to connect.
in Windows, i did the trick with the <setupapi.h> using the functions :
SetupDiEnumDeviceInfo
SetupDiGetDeviceRegistryPropertyAnow it is needed to implement this routine in MacOS. tried the Libusb and Libserialport but each one does it's own job(one checks all USBs and other checks the COMs) . what would be the best way to list all COM ports and their device descriptors?
regards
Seyed -
Hello everyone.
in a Qt project it is required that we identify the and list all virtual COM connections via USB and give a list to user including the COM number and device descriptors showing what kind of devices are in the list. then user decides which com port to connect.
in Windows, i did the trick with the <setupapi.h> using the functions :
SetupDiEnumDeviceInfo
SetupDiGetDeviceRegistryPropertyAnow it is needed to implement this routine in MacOS. tried the Libusb and Libserialport but each one does it's own job(one checks all USBs and other checks the COMs) . what would be the best way to list all COM ports and their device descriptors?
regards
Seyedwrote on 10 Aug 2024, 12:16 last edited byIs QSerialPortInfo::availablePorts() not enough?
-
wrote on 12 Aug 2024, 12:41 last edited byThis post is deleted!
-
Is QSerialPortInfo::availablePorts() not enough?
wrote on 12 Aug 2024, 12:41 last edited by@ChrisW67 totally forgot about that. thanks!
problem is solved. -
1/4