Author Topic: Serial port enumeration - I want to see only free/unused serial ports  (Read 579 times)

AntonL

  • Newbie
  • *
  • Posts: 1
    • View Profile
 Is it possible to set that I will see only present and free serial ports in nrDeviceBox1 list.
Now I see in nrDeviceBox1 list of all connected ports, including used ones by some other applications.
When I try to open used port I get message for example "Device "COM4" Open Error !!!!"
Can you please help me how to solve this problem.

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Serial port enumeration - I want to see only free/unused serial ports
« Reply #1 on: October 04, 2015, 04:17:30 am »
Hello

You need to try open every visible ports, handle possible exceptions and fill ordinary TComboBox control by com ports with no exception.
TnrDeviceBox does not provide such functionality. Sorry.

Roman Novgorodov
DeepSoftware llc
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.