1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 <2007> 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 <2007> 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Out of order replies from a serial device |
From: | Phillip Sorensen <[email protected]> |
To: | Emmanuel Mayssat <[email protected]> |
Cc: | TechTalk EPICS <[email protected]> |
Date: | Fri, 19 Jan 2007 15:51:52 -0500 |
Before you send a command to your serial device, you should clear the serial buffers.
So a read operation becomes:
1/ Read ( you will read nothing most of the time), this operation clears /flushs the serial buffers. 2/ send your serial commnad/inquiry 3/ read the serial port a second time to get your PV value
Note that this is also assuming that you are using serial port locking, and that this feature is working correctly (i.e. only 1 write-read request at a time )
Phil Sorensen CHESS