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  <20152016  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  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: can run multiple IOCs on single host?
From: Dirk Zimoch <[email protected]>
To: <[email protected]>
Date: Wed, 11 Feb 2015 14:02:15 +0100
Since you have EPICS_CA_AUTO_ADDR_LIST=NO and EPICS_CA_ADDR_LIST="100.100.10.255 localhost", I suspect that you run the IOCs and caget on the same host and 100.100.10.255 is NOT the broadcast address of that host. Because in that case caget finds the channels at "localhost" and that is a unicast address with the known limitations.

On 11.02.2015 13:52, Dirk Zimoch wrote:
Hello JaeRyong,

Yes, you can run multiple IOCs on the same host (in separate terminals).

But you have to use the broadcast address in EPICS_CA_ADDR_LIST for the
clients (caget or similar). The IP of the host does not work! With the
IP you can only contact one (the last) IOC started, as you observed.

In fact, this is what the following message tries to tell you:

cas warning: Configured TCP port was unavailable.
cas warning: Using dynamically assigned TCP port XXXXXX,
cas warning: but now two or more servers share the same UDP port.
cas warning: Depending on your IP kernel this server may not be
cas warning: reachable with UDP unicast (a host's IP in EPICS_CA_ADDR_LIST)

So set EPICS_CA_ADDR_LIST to the broadcast address of the IOC host and
everything is fine. Note that you may run into a different problem here
if you have multiple networks. If your IOC host is in a different subnet
than your client (caget), the routers must allow forwarding of directed
broadcasts. Often this is disabled by default because of the danger of
denial of service attacks to the network. Talk to you network
administrator in this case.

Dirk


On 11.02.2015 10:35, JaeRyong Seo wrote:
Hi all,

I studied last several months about epics and made several epics
packages.
but, because i am new to epics,I am worried about my question is silly
thing.

my problem is : How to run several packages on a single host without
integrate them or How to integrate them? (my system is fedora ver20
64bit)

Here is four packages.
A : Control DC PowerSupply (A Company), use template streamSCPI
B : Control DC PowerSupply (B Company), use template streamSCPI
C : Control Oscilloscope, use template devGPIB (because when i make
package, i consulted TDS3000, for using convert function)
D : AreaDetector-1-9-1, (type is ASYN?)

when i run each of them one by one, there is no problem, everything is
ok.
but when i run them together, i found problem is exist.

I tried these cases..

Case1. run A, B on different terminal ( run st.cmd files)
when A is running, if i run B on different terminal,
result : failed to PVs via caget cmd.
(I think, when call iocinit() in st.cmd file, first ioc channel is
initialized)
[sjr@localhost ~]$ caget CIS:PS2:IDN  (after run A)
CIS:PS2:IDN DAUNANO,DADP-22050,0,2.0-2.0
[sjr@localhost ~]$ caget CIS:PS2:IDN (after run B)
Channel connect timed out: 'CIS:PS2:IDN' not found.

Case2. run A,C / A, D / B,C... on different terminal with using same
method Case1
-> result is same with Case1.

Case3. after put files (that is in db, dbd, bin.. directories of A,B
Packages) in same directory and edit st.cmd file,
run A with one mixed st.cmd files (e.g. #!./bin/linux-x86_64/A
st_mixed.cmd)
-> result is OK (no problem)

Case4. run A,B,C together using same method with Case3,
run A with one mixed st.cmd files (e.g. #!./bin/linux-x86_64/A
st_mixed.cmd)
-> result : A,B OK , but C Failed
(log : Missing device support routine PV: scopeTest:IDN read_stringin )

if i run C with one mixed st.cmd files (e.g. #!./bin/linux-x86_64/C
st_mixed.cmd)
-> result : A,B Failed , but C OK
(log : Missing device support routine PV: powerA:IDN read_stringin )

Case5. run A,B,D together using same method with Case4,
-> result was same with Case4

my quest is..
Q1. there is no way to run packages together on different terminal?
(i think, integrate several packages into one package is not good method)
Q2. for running packages together, if i need to integrate them into one
package without converting template type. is it possible?
Q3. for running packages together, if i need to convert Packages
template type to one same type, what is type that i need to select?

my epics param is..
EPICS_AR_PORT: 7002
EPICS_CAS_AUTO_BEACON_ADDR_LIST is undefined
EPICS_CAS_BEACON_ADDR_LIST is undefined
EPICS_CAS_BEACON_PERIOD is undefined
EPICS_CAS_BEACON_PORT is undefined
EPICS_CAS_IGNORE_ADDR_LIST is undefined
EPICS_CAS_INTF_ADDR_LIST is undefined
EPICS_CAS_SERVER_PORT is undefined
EPICS_CA_ADDR_LIST: 100.100.10.255 localhost
EPICS_CA_AUTO_ADDR_LIST: NO
EPICS_CA_BEACON_PERIOD: 15.0
EPICS_CA_CONN_TMO: 30.0
EPICS_CA_MAX_ARRAY_BYTES: 1000000000
EPICS_CA_MAX_SEARCH_PERIOD: 300.0
EPICS_CA_NAME_SERVERS is undefined
EPICS_CA_REPEATER_PORT: 5065
EPICS_CA_SERVER_PORT: 5064
EPICS_CMD_PROTO_PORT is undefined
EPICS_IOC_LOG_FILE_COMMAND is undefined
EPICS_IOC_LOG_FILE_LIMIT: 1000000
EPICS_IOC_LOG_FILE_NAME is undefined
EPICS_IOC_LOG_INET is undefined
EPICS_IOC_LOG_PORT: 7004
EPICS_TIMEZONE: CUS::360:031302:110602
EPICS_TS_NTP_INET is undefined
IOCSH_HISTSIZE: 50
IOCSH_PS1: epics>

Best regards
JaeRyong





Replies:
Re: can run multiple IOCs on single host? Ralph Lange
References:
can run multiple IOCs on single host? JaeRyong Seo
Re: can run multiple IOCs on single host? Dirk Zimoch

Navigate by Date:
Prev: Re: can run multiple IOCs on single host? Dirk Zimoch
Next: Re: using EPICS code with HTTP port Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: can run multiple IOCs on single host? Dirk Zimoch
Next: Re: can run multiple IOCs on single host? Ralph Lange
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·