|
Boost Users : |
Subject: Re: [Boost-users] Asio Serial ports: enumerating all the devices
From: Vincent Boucher (vin.boucher_at_[hidden])
Date: 2013-04-11 11:28:26
Thanks, I understand there's no other hope than preparing my device to answer to a custom poll message and checking the returned message (if any) to see if my device is connected.
I guess that it might be harmful for some other devices that could mis-interpret my "poll" message or not handle it correctly.
Vincent
On 11 Apr 2013, at 17:00, Kerry, Richard wrote:
>
>> I don't know whether there are any devices that only
>> receive commands and never send answers, but in an infinitely large
>> universe anything is possible
>
> There are......
>
>
>
>> My knowledge of serial communication is very limited,
>
> You need to learn about it before you can do this sort of task.
>
> Provided you know the comms params (baud rate, parity, stop bits etc) and you know that your device does send responses to all commands you may be able to determine whether a specific device is present - possibly just by recognizing that *some* data has been returned.
> Unfortunately serial comms is a notoriously unstandardized field so this type of task is essentially impossible in the general case.
> (standards are so good everyone should have one ....)
>
> There is no built-in equivalent to TCP's ability to detect connection and disconnection, or SNMP's standard MIBs.
>
>
> Unhelpfully,
> Richard.
>
>
>
> _______________________________________________
> 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