Vincent,
Please can you make absolutely clear to us whether you are asking about serial ports, or serially-connected devices ?
(The serial ports themselves may be integral parts of the computer, or they may be accessed via USB, or Ethernet, or some other means)
The OS can know about serial ports - indeed I think it has to.
I think this is what is present in /dev. (if this is not so please can someone with Linux knowledge elaborate)
There is no way the OS can know about the serially-connected devices.
And no way of guaranteeing you can safely query devices.
When you meet a person you've never met before, and who speaks another language, you may think you are offering a respectful greeting, but the other person may hear an insult against his mother....
When you send your query message to a serially-connected device where you don't know what messages the device understands you may think you are saying "are you there ?" but the device may hear "launch the missiles". I leave it to you and your lawyers to consider whether you can accept this risk.
But if what you mean is serial ports, then all this is moot, and the OS can know, and ASIO might be able to enumerate them for you.
Helpfully,
Hopeully,
Richard.
Richard Kerry
BNCS Engineer
T: +44 (0)20 82259063
M: +44 (0)7812 325518
Room EBX 301, BBC Television Centre, Wood Lane, London, W12 7RJ
This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable