|
Boost Users : |
Subject: Re: [Boost-users] Asio Serial ports: enumerating all the devices
From: Vincent Boucher (vin.boucher_at_[hidden])
Date: 2013-04-10 09:19:13
In my case, I have to address a serial over USB adapter.
So, I would have to implement an OS-dependent method looping over all serial devices found (/dev/tty* or COM*), query them, wait for reply, then return a list of objects.
Vincent
On 10 Apr 2013, at 15:11, Jason Roehm wrote:
> 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_at_[hidden]
>> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net