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: Problems with asyn and Windows
From: "Brands Helge" <[email protected]>
To: <[email protected]>, "Mark Rivers" <[email protected]>
Date: Wed, 21 Sep 2011 10:50:03 +0200

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]

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

 

 

 


Replies:
RE: Problems with asyn and Windows Mark Rivers

Navigate by Date:
Prev: PCASpy 0.3 release Wang Xiaoqiang
Next: Re: BOY Data Browser Issues Kasemir, Kay
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: PCASpy 0.3 release Wang Xiaoqiang
Next: RE: Problems with asyn and Windows Mark Rivers
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 ·