EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  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  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Problems with asyn and Windows
From: "Mark Rivers" <[email protected]>
To: "Brands Helge" <[email protected]>, <[email protected]>
Date: Wed, 21 Sep 2011 11:32:47 -0500

Hi Helge,

 

Thanks for finding that.  I have fixed the problem and tested the solution.  The fixed code is available in Subversion:

 

https://svn.aps.anl.gov/epics/asyn/trunk

 

The fix will be included in asyn R4-18.

 

Mark

 

 


From: Brands Helge [mailto:[email protected]]
Sent: Wednesday, September 21, 2011 3:50 AM
To: [email protected]; Mark Rivers
Subject: Problems with asyn and Windows

 

Hi Mark,

 

I have a problem with asyn in combination with RS232 and Windows.  The timeout parameter =0.0 blocks the read operation and will never come back, when no bytes are received. The documentation points out that zero will not block. The problems is in the readit part of the new drvAsynSerialPortWin32.c. The for-loop will never end. I added a :

 

        if (tty->readTimeout == 0.0)

            break;

 

This will fix the problem

 

Best regards

            Helge

 

--------------------------------------------------

Paul Scherrer Institut

Dr. Helge Brands

WBGB/013

5232 Villigen PSI

Switzerland

Tel.: +41 56 310 5408

E-Mail: [email protected]

--------------------------------------------------

 

 

 


References:
Problems with asyn and Windows Brands Helge

Navigate by Date:
Prev: Fwd: Time, technology and leaping seconds Andrew Johnson
Next: RE: Time, technology and leaping seconds nick.rees
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Problems with asyn and Windows Brands Helge
Next: Newport ESP300 Chen Xue
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·