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  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024  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  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: PV gateway renders PVs as disconnected
From: "Abdalla Ahmad" <[email protected]>
To: Ralph Lange <[email protected]>, EPICS Tech Talk <[email protected]>
Date: Tue, 8 May 2018 12:06:54 +0000

Hi Ralph

 

Thank you very much. I managed to configure two gateways between the machine and a beamline (1 for each path), the gateway options I configured are:

1.       Home

2.       CIP

3.       SIGNORE

4.       Put log

5.       Log

6.       Prefix

 

I had to configure UDP broadcasts on the server using this link: https://wiki-ext.aps.anl.gov/epics/index.php/How_to_Make_Channel_Access_Reach_Multiple_Soft_IOCs_on_a_Linux_Host because I was having a problem that when 2 gateways are running, one of them will be actually working and serving PVs.

 

I still have some questions and issues:

1.       Regarding SIP and SIGNORE It is still not clear for me. If I have hosts defined in SIP does that mean the rest are ignored? And if I have hosts in SIGNORE does that mean the rest are being served?

2.       For some reason the gateway.restart script does not work. I have to kill the gateway and start it again for the changes to take effect.

3.       SIP did not work for me, whenever I set it I get the attached log (gw.txt) and the gateway will become unusable.

4.       Attached also is the access file that I load into the gateway:

a.       If the IOC itself has no ACF file loaded, the gateway ACF works just fine. And if it is not loaded the gateway will provide read only.

b.      If the IOC has an ACF file loaded, the gateway ACF will not work, i.e., no write access through the gateway. In the IOC's ACF file (similar to the attached one) I added the gateway server's host and usernames. I even added the host and usernames of the host that is actually writing to the PV through the gateway but nothing works.

 

Best Regards,

Abdalla.

 

 

From: Ralph Lange [mailto:[email protected]]
Sent: Tuesday, April 17, 2018 4:00 PM
To: EPICS Tech Talk <[email protected]>
Cc: Abdalla Ahmad <[email protected]>
Subject: Re: PV gateway renders PVs as disconnected

 

Hi Abdalla,

 

You're definitely on the right path!

 

For your five data paths, you are currently using five Gateways in what I would call the "mesh" configuration, i.e. one Gateway for each data path. To simplify the setup, you could shrink the solution down to a "star", where each of the networks is served by exactly one Gateway. For such a "star", you have two options: all Gateways point outwards (i.e. each network "sees" exactly one Gateway which is serving data from all other networks) or all Gateways point inwards (i.e. each networks sees one Gateway per other network). The preferred option depends on how often the configuration is changed and how much Gateway restarts are affecting your users.

 

SIP and CIP are the central configuration options.

SIP = Server IP defines where the Gateway serves data to, i.e. where its clients are.

CIP = Client IP defines where the Gateway is getting data from, i.e. where its IOCs are.

 

SIP addresses may be multiple, but always have to be specific addresses.

CIP addresses may include broadcast addresses to reach many IOCs at a time.

 

Example:

 

Given three networks A B C (with broadcast address .255) and a Gateway host that is connected to all of them using addresses A.a B.b and C.c

 

Star outwards:

GatewayA: SIP=A.a  CIP=B.255 C.255

GatewayB: SIP=B.b  CIP=A.255 C.255

GatewayC: SIP=C.c  CIP=A.255 B.255

 

Star inwards:

GatewayA: SIP=B.b C.c  CIP=A.255

GatewayB: SIP=A.a C.c  CIP=B.255

GatewayC: SIP=A.a B.b  CIP=C.255

 

If you mix the two concepts, you will get into trouble (PVs available on multiple routes).

 

Cheers,
~Ralph

 

 

filename="../../../../src/cas/io/bsdSocket/casIntfIO.cc" line number=82
Attempt to set server's IP address/port failed - bind TCP IP addr=xx.xx.xx.xx:5064 failed because Cannot assign requested address
filename="../../../../src/cas/io/bsdSocket/caServerIO.cc" line number=119
Attempt to set server's IP address/port failed unable to attach explicit interface
filename="../../../../src/cas/generic/caServerI.cc" line number=62
server isnt attached to a network - CA server internals init unable to continue
May 08 09:53:26 PV Gateway Version 2.0.6.0 [Dec 10 2017 18:40:56]
EPICS 3.14.12.3 PID=20490 ServerPID=20421
EPICS_CA_ADDR_LIST=
EPICS_CA_AUTO_ADDR_LIST=NO
EPICS_CA_SERVER_PORT=Not specified
EPICS_CA_MAX_ARRAY_BYTES=500000000
EPICS_CAS_INTF_ADDR_LIST=
EPICS_CAS_SERVER_PORT=Not specified
EPICS_CAS_IGNORE_ADDR_LIST=
Running as user control on host server-gw
May 08 09:53:26 Failed to start gateServer, aborting
  Reason: server isnt attached to a network
UAG(users) {user}
HAG(hosts) {server}

ASG(DEFAULT) {
    RULE(1,READ)
    RULE(1,WRITE,TRAPWRITE) {
        UAG(users)
        HAG(hosts)
    }
}

References:
PV gateway renders PVs as disconnected Abdalla Ahmad
Re: PV gateway renders PVs as disconnected Ralph Lange
RE: PV gateway renders PVs as disconnected Abdalla Ahmad
Re: PV gateway renders PVs as disconnected Ralph Lange
RE: PV gateway renders PVs as disconnected Abdalla Ahmad
Re: PV gateway renders PVs as disconnected Ralph Lange

Navigate by Date:
Prev: Re: error calling PVUtil.getString() Luca Cavalli
Next: RE: error calling PVUtil.getString() Gregory, Ray
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  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: PV gateway renders PVs as disconnected Ralph Lange
Next: Re: PV gateway renders PVs as disconnected Paul Sichta
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  <20182019  2020  2021  2022  2023  2024 
ANJ, 08 May 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·