Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  Index 1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
<== Date ==> <== Thread ==>

Subject: Re: [Question] Rs232c in EPICS
From: npr@jach.hawaii.edu (Nick Rees)
To: tech-talk@aps.anl.gov
Date: Fri, 11 Oct 1996 15:33:43 -1000 (HST)
Whilst on this subject, we have a piece of code written by Bret
Goodrich at Gemini, that lurks behind a pty driver and enables you to
connect to any serial line on any terminal server anywhere on the
ethernet. The bit at the top of the source code says:

"This program acts as a VxWorks client for a remote terminal server.  The
remote host may be identified by either name or IP address.  The port must
be greater than the reserved IP port numbers (currently 1024).  A TCP socket
is connected to the remote host and a task spawned to monitor the socket.
A pseudo-terminal device is created to buffer input and output through
the socket to the user.  A typical application might look like:

        hostAdd ("sim2ioc", "140.252.15.83");
        tnetDevCreate ("/pty/tmp.", "sim2ioc", 3301);
        fd = open ("/pty/tmp.M", O_RDWR, 0);
        write (fd, "i\n", 2);
        n = read (fd, buf, 1024);    "

I must admit it isn't fully tested yet, but in principle it is very
useful for those (like us) who have a load of stupid serial devices
distributed around the place and whose nearest ethernet is closer to
them than their nearest IOC.

Nick


Navigate by Date:
Prev: Re: [Question] Rs232c in EPICS Allan Honey
Next: [Summary] Rs232c in EPICS Noboru Yamamoto
Index: 1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
Navigate by Thread:
Prev: Re: [Question] Rs232c in EPICS Allan Honey
Next: medm Fred Vong
Index: 1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·