This is just another way to view data instead of allowing access to
write. I put together a perl script which can be used to do a "live"
display of data. It basically parses output from caget and creates a
popup. We are even doing the caget through a gateway. I have included
the code below. Remember that this is probably only good for a couple
of channels and probably not the best solution for long durations since
this does active polling every 10 seconds or so.
Also note that on line 5 of the code I took out our IP address.
We also have code that puts together paged output but this is a static
look that runs every 5 minutes to 1 hour. This runs as a cron task.
John
#!/usr/bin/perl
use CGI;
use Env;
#name changed to protect the innocent.
$ENV{'EPICS_CA_ADDR_LIST'} ='XXX.XXX.XXX.XXX';
$ENV{'PATH'}='/net/iocapps/R3.13.7/extensions/3-13-7/bin/Linux/:/net/ioc
apps/R3.13.7/base/3-13-7/bin/Linux/';
$ENV{'LD_LIBRARY_PATH'}='/net/iocapps/R3.13.7/base/3-13-7/lib/Linux:/net
/iocapps/R3.13.7/extensions/3-13-7/lib/Linux';
$caget='/net/iocapps/R3.13.7/extensions/3-13-7/bin/Linux/caget';
#$beam_curr = `$caget 'IPNS:Beam_Current'` ;
#print $beam_curr;
use Env qw/PATH/;
$page = new CGI;
print $page->header;
print ( '<head>');
print ('<body bgcolor="#d0d0d0">');
print ('<style type=text/css>');
print ('h1 {font-size:600%}');
print ('</style>');
$bcurr = `$caget -t IPNS:Beam_Current`;
printf ('<title>%6.2fµA</title>',$bcurr);
print('<meta HTTP-EQUIV="REFRESH" CONTENT="3">');
print('</head>');
#print $page->start_html('IPNS Beam Current!');
#print ('<b>IPNS Beam Current</b><br>');
print ('<font size=+6>');
printf('%6.2f µA', $bcurr);
print('</font>');
$ltime = localtime(time);
printf ('<font size=-1> <br> %s</font>', $ltime);
print('</html>');
[
---------------------------------------------------------------
John Hammonds
Beamline and Data Acquisition Group
APS Engineering Support Division
Argonne National Laboratory
[email protected]
(630)252-5317
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Doug Sheffer
Sent: Friday, June 08, 2007 1:57 PM
To: [email protected]
Subject: EPICS channels via the Internet
Hello!
I was wondering if anyone has experimented and had good luck with
accessing real-time EPICS channel data over the Internet. Is this, by
any chance, something that is possible with the EPICS gateway?
Since allowing access over the Internet in any way would inevitably be
a large security risk, we would like to be able to use SSH tunneling
to secure the connection and to monitor who is doing what with the
system. Unfortunately, SSH seems unsuitable because it only supports
tunneling on TCP ports, while EPICS uses both TCP and UDP.
Has anyone done anything similar, or got any ideas/suggestions on how
to go about doing it securely?
Your help is much appreciated.
Doug Sheffer
- References:
- EPICS channels via the Internet Doug Sheffer
- Navigate by Date:
- Prev:
Re: EPICS channels via the Internet Doug Sheffer
- Next:
RE: EPICS channels via the Internet Purcell, J. David
- 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
- Navigate by Thread:
- Prev:
RE: EPICS channels via the Internet Jeff Hill
- Next:
RE: EPICS channels via the Internet Elder Matias
- 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
|