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: StreamDevice/ASYN connection to a Telnet port
From: Dimitrios Tsifakis <[email protected]>
To: [email protected]
Date: Wed, 19 Jan 2011 09:12:29 +1100
Hello John,

I have seen the same behavior recently, while trying to produce drivers
for a home-made scaler connecting to EPICS through a serial port. The
solution was to define very carefully all the timing as well as the
terminator parameters in the protocol file. Here is what mine looks
like:

InTerminator = ;
ExtraInput = Ignore;
OutTerminator = CR;
ReplyTimeout = 500;
ReadTimeout = 10;
PollPeriod = 10;

These values were determined after some experimentation and seem to
produce the desirable behavior in my case. I would suggest you have a
read at the EPICS StreadDevice documentation, especially the section
titled "System Variables" that describes the use of these variables.

Hope this helps,
Dimitris


On Tue, 2011-01-18 at 12:00 -0600, [email protected] wrote:
> Date: Mon, 17 Jan 2011 16:23:00 -0500
> From: John Dobbins <[email protected]>
> To: EPICS Tech-Talk <[email protected]>
> Subject: StreamDevice/ASYN connection to a Telnet port
> Message-ID:
> 	<8C7BE07847F60A4FB9DF545CFFBC2D8C35039B5C37@MBXC.exchange.cornell.edu>
> Content-Type: text/plain; charset="us-ascii"
> 
> Dear All,
> 
> I am connecting to a Gamma Vacuum SPCe ion pump power supply. This device has an ethernet port which accepts telnet connections.
> 
> I set up StremDevice to communicate with it on port 23,
> 
> I have  asyn Trace Masks set as follows:
> 
> asynSetTraceMask("SPCe",-1,0x09)
> asynSetTraceIOMask("SPCe",-1,0x2
> 
> I have a problem in that the response string , which I expect to look like  "OK 00 7.90E-13 TORR" 
> 
> appears like this:
> 
> 
> epics> 2011/01/17 16:14:55.995 172.18.32.21:23 write 7
> spc 0B\r
> 2011/01/17 16:14:56.475 172.18.32.21:23 read 1
> O
> 2011/01/17 16:14:56.475 172.18.32.21:23 read 1
> K
> 2011/01/17 16:14:56.475 172.18.32.21:23 read 1
>  
> 2011/01/17 16:14:56.475 172.18.32.21:23 read 1
> 0
> 2011/01/17 16:14:56.475 172.18.32.21:23 read 1
> 0
> 2011/01/17 16:14:56.476 172.18.32.21:23 read 1
>  
> 2011/01/17 16:14:56.476 172.18.32.21:23 read 1
> 7
> 2011/01/17 16:14:56.476 172.18.32.21:23 read 1
> .
> 2011/01/17 16:14:56.476 172.18.32.21:23 read 1
> 9
> 2011/01/17 16:14:56.477 172.18.32.21:23 read 1
> 0
> 2011/01/17 16:14:56.477 172.18.32.21:23 read 1
> E
> 2011/01/17 16:14:56.477 172.18.32.21:23 read 1
> -
> 2011/01/17 16:14:56.477 172.18.32.21:23 read 1
> 1
> 2011/01/17 16:14:56.478 172.18.32.21:23 read 1
> 3
> 2011/01/17 16:14:56.478 172.18.32.21:23 read 1
>  
> 2011/01/17 16:14:56.478 172.18.32.21:23 read 1
> T
> 2011/01/17 16:14:56.478 172.18.32.21:23 read 1
> O
> 2011/01/17 16:14:56.478 172.18.32.21:23 read 1
> R
> 2011/01/17 16:14:56.479 172.18.32.21:23 read 1
> R
> 2011/01/17 16:14:56.479 172.18.32.21:23 read 1
> \r
> 
> 
> Can someone tell me what is going on here?
> 
> Regards and thanks,
> 
> John Dobbins
> 
> Cornell University
> Lab for Elementary Particle Physics

-- 
===========================================================================
Mail: [email protected]
WWW: http://wwwrsphysse.anu.edu.au/nuclear/
Phone: +61-2-6125 2088
Fax: +61-2-6125 0748

Dept. of Nuclear Physics        
Research School of Physics and Engineering
Australian National University  
Canberra ACT 0200  AUSTRALIA    


Navigate by Date:
Prev: About subArray trailing zeros Zhang, Jihong (Julia)
Next: RE: About subArray trailing zeros Szalata, Zenon M.
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: Re: StreamDevice/ASYN connection to a Telnet port John Dobbins
Next: Spilt the waveform by different indices in DB 勇克
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 ·