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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | RE: Questions regarding CA protocol specification and phylosophy |
From: | Mark Rivers <[email protected]> |
To: | 'Diego Sanz' <[email protected]>, Michael Davidsaver <[email protected]> |
Cc: | EPICS Tech Talk <[email protected]> |
Date: | Thu, 14 Sep 2017 16:46:16 +0000 |
Hi Diego, I am not spotting what is wrong with your configuration, but what you are trying should definitely work, i.e. multiple IOCs on the same Linux machine, and running the CA client on the same machine. On my Linux machine I am running many IOCs. Most of these are running an IOC application called CARSApp and these are the 13 that are currently running: corvette:ADCore/ADApp/pluginSrc>ps -ax | grep CARSApp 33188 pts/6 Sl+ 22:16 ../../bin/linux-x86_64/CARSApp st.cmd 52146 pts/2 Sl+ 85:26 ../../bin/linux-x86/CARSApp st.cmd 92531 pts/3 Sl+ 296:38 ../../bin/linux-x86_64/CARSApp st.cmd 92630 pts/4 Sl+ 325:17 ../../bin/linux-x86_64/CARSApp st.cmd 92730 pts/1 Sl+ 553:54 ../../bin/linux-x86_64/CARSApp st.cmd 92897 pts/5 Sl+ 317:06 ../../bin/linux-x86_64/CARSApp st.cmd 93109 pts/9 Sl+ 304:58 ../../bin/linux-x86_64/CARSApp st.cmd 93281 pts/10 Sl+ 272:49 ../../bin/linux-x86_64/CARSApp st.cmd 93663 pts/13 Sl+ 282:05 ../../bin/linux-x86_64/CARSApp st.cmd 93732 pts/14 Sl+ 31:52 ../../bin/linux-x86_64/CARSApp st.cmd 94527 pts/12 Sl+ 34:34 ../../bin/linux-x86_64/CARSApp st.cmd 104687 pts/17 Sl+ 20:52 ../../bin/linux-x86_64/CARSApp st.cmd 118334 pts/16 Sl+ 11:14 ../../bin/linux-x86_64/CARSApp st.cmd Because I want to run CA clients on the same Linux machine as these IOCs, and because this machine has multiple network interfaces I have set the following EPICS CA environment variables in my shell corvette:ADCore/ADApp/pluginSrc>printenv | grep EPICS … EPICS_CA_AUTO_ADDR_LIST=NO EPICS_CA_ADDR_LIST=164.54.160.255 … In the IOC these are also set. epics> epicsPrtEnvParams … EPICS_CA_ADDR_LIST: 164.54.160.255 EPICS_CA_AUTO_ADDR_LIST: NO … I believe these don't have to be set for the CA server. But I suspect they do need to be set if this IOC is also a channel access client to another IOC on the same machine? This configuration works fine. I can run cainfo and see the values from 2 different IOCs running on the same Linux machine as the client. corvette:ADCore/ADApp/pluginSrc>cainfo 13IDA:m57 13IDA:m57 State: connected Host: 164.54.160.82:32855 Access: read, write Native data type: DBF_DOUBLE Request type: DBR_DOUBLE Element count: 1 orvette:ADCore/ADApp/pluginSrc>cainfo 13IDC:m25 13IDC:m25 State: connected Host: 164.54.160.82:5064 Access: read, write Native data type: DBF_DOUBLE Request type: DBR_DOUBLE Element count: 1 Mark From: [email protected] [mailto:[email protected]]
On Behalf Of Diego Sanz Dear guys, Again, thank you for your support. Still the problem persists. The idea of using "lo" interface is for testing purposes, but anyway, now I am using other ip: #ifconfig command shows: So, both IOCs will be configured for using this IP. Just below I put the output of the 2 IOCs just after running: [IOC 1]: [IOC2]: regarding the EPICS client, the EPICS_CA_ADDR_LIST is configured with the boradcast address, and then, I try to read one PV from each of the IOCs..: This configuration, does not let me to read from any IOC. Regarding the Warning mentioned... I suppose is normal due to both IOCs are listening in the Ca-1 UDP port.... If this configuration should work, then I will study the new (for me) version of the CA protocol description
http://www.aps.anl.gov/epics/base/R3-16/0-docs/CAproto/index.htm that Michael mentioned before, to try to understand this issue. Thank you very much again Regards Diego 2017-09-13 17:45 GMT+02:00 Michael Davidsaver <[email protected]>: On 09/13/2017 10:05 AM, Diego Sanz wrote: > |