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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users