"vendor id, product id "
What's that ?
I mean for a serial device.  If they are present in the device protocol then fine, but that depends on the individual devices and their protocols.
You can check whether there has been any traffic, which might be useful, but serial connections are just streams of bytes.
 
 
Unhelpfully,
Richard.
 
 
PS
I do recognize "vendor id, product id " for SNMP and for other protocols working at a higher level than "serial".
 
 
 
 


From: Boost-users [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Vincent Boucher
Sent: 10 April 2013 13:40
To: boost-users@lists.boost.org
Subject: [Boost-users] Asio Serial ports: enumerating all the devices

Hello,

Are there cross-platform methods to discover all the devices currently connected through serial ports with Boost?

The idea is to have a function returning a list of device objects, each containing a handle, the related vendor id, product id and the baud rate at which the device was able to communicate.

My knowledge of serial communication is very limited, may be it is technically infeasible. Do you have any thoughts for Boost or other libs?


Analog enumerate method for HID devices:
http://www.signal11.us/oss/hidapi/

Thanks,

Vincent