The method that you linked works via Bluetooth and USB interfaces, which have mechanisms for device enumeration and capability discovery. RS-232 serial ports provide no such functionality; it's merely a pair of serial lines allowing for asynchronous data transfer in any direction. You could attempt to probe for specific devices, but you would need what amounts to a device driver for each type of device that you would want to support, instead of the standard, generic HID interfaces provided on USB/Bluetooth.

Jason

On 04/10/2013 08:40 AM, Vincent Boucher wrote:
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


_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users