Actions
Feature #26
openlist available com ports
Start date:
2008-04-20
Due date:
% Done:
0%
Estimated time:
Description
it should be possible to request a list of available serial ports, including some current status for each one
Actions
Added by Hamish over 17 years ago. Updated over 17 years ago.
0%
Description
it should be possible to request a list of available serial ports, including some current status for each one
Look at http://msdn2.microsoft.com/en-us/library/ms535797.aspx
also, this example code: http://www.lookrs232.com/com_port_programming/api_enumports.htm
I have done some research and this appears to be more difficult than it should be.
nrports=12 Port Monitor Desc Type Reserved Microsoft Document Imaging Writer Port: Local Monitor Local Port 1 0 COM1: Local Monitor Local Port 1 0 COM2: Local Monitor Local Port 1 0 COM3: Local Monitor Local Port 1 0 COM4: Local Monitor Local Port 1 0 FILE: Local Monitor Local Port 1 0 LPT1: Local Monitor Local Port 1 0 LPT2: Local Monitor Local Port 1 0 LPT3: Local Monitor Local Port 1 0 COM5: Local Monitor Local Port 1 0 COM6: Local Monitor Local Port 1 0 IcePortER: Ice Monitor E Black Ice Port 1 0
DevicePath=\\?\acpi#pnp0501!#1#{4d36e978-e325-11ce-bfc1-08002be10318}
DevicePath=\\?\acpi#pnp0501!#2#{4d36e978-e325-11ce-bfc1-08002be10318}