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  2018  2019  2020  2021  2022  2023  2024  2025  <2026 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  2025  <2026
<== Date ==> <== Thread ==>

Subject: Re: Help in debugging ACF connection issue
From: "Hu, Yong via Tech-talk" <tech-talk at aps.anl.gov>
To: Michael Davidsaver <mdavidsaver at gmail.com>, Érico Nogueira Rolim <erico.rolim at lnls.br>
Cc: EPICS Tech Talk <tech-talk at aps.anl.gov>
Date: Fri, 6 Mar 2026 23:02:49 +0000
Hi Michael,

I did the whole test again after adding a CA link to "myCommand:just4TestACF" in my first softIOC. Both dbCa and asCa cannot connect if my network is turned off at the beginning. 

You mentioned that EPICS_CA_AUTO_ADDR_LIST (and EPICS_CA_ADDR_LIST) is evaluated once at startup. That is a very point. So, I did one more test by setting EPICS_CA_ADDR_LIST to a broadcast IP, i.e. 192.168.12.255 (EPICS_CA_AUTO_ADDR_LIST seems Okay with either YES or NO)

$ softIoc -d test.db -a default.acf

asSetFilename: Warning - relative paths won't usually work
Starting iocInit
############################################################################
## EPICS R7.0.5
## Rev. 2021-05-13T07:10-0400
############################################################################
CAC: error = "Network is unreachable" sending UDP msg to 192.168.12.255:5064
Warning: RSRV has empty beacon address list
iocRun: All initialization complete
...

epics> epicsParamShow

EPICS_CA_ADDR_LIST: 192.168.12.255
EPICS_CA_CONN_TMO: 30.0
EPICS_CA_AUTO_ADDR_LIST: YES


Now, both dbCa and asCa automatically connect once my network is turned on.
epics> ascar
1 channels 0 not connected

epics> dbcar
CA links in all records
Total 4 CA links; 4 connected, 0 not connected.
    0 can't read, 0 can't write.  (0 disconnects, 0 writes prohibited)

epics> casr 1
Channel Access Server V4.13
1 client connected:
    TCP client at 192.168.12.44:61165 'wps-168932.lan':
      User 'yonghu', V4.13, Priority = 0, 1 Channel
CAS-TCP server on 0.0.0.0:5064 with
    CAS-UDP name server on 0.0.0.0:5064
Sending CAS-beacons to 0 addresses:


Érico, you have two ways to fix the ACF connection issue: add EPICS_CA_ADDR_LIST to your IOC's environment variable; OR make sure your network is ready before your IOCs start up.


Cheers,

Yong


From: Michael Davidsaver <mdavidsaver at gmail.com>
Date: Friday, March 6, 2026 at 4:51 PM

Hi Yong,


On 3/6/26 2:59 PM, Hu, Yong wrote:
...
3.  Manually start the first softIOC 'bpm-fron':  it has an ACF which reads a PV (myCommand:just4TestACF) that is provided by the second softIOC 'bpm-rear' .

Could you also add a record with a CA link to "myCommand:just4TestACF"?

I would be interested to know if you have a situation where dbCa can connect, but asCa can not.

also, with https ://github.com/mdavidsaver/cashark the "tshark" CLI can give more meaningful output than "tcpdump".

...

Conclusion: just as I mentioned below, most likely your IOCs start before your server's network is fully functional (valid IP address). 

To CA developers: Is this a feature or a bug in the Access security Channel Access (asCa)?

This may be related to the behavior of EPICS_CA_AUTO_ADDR_LIST=YES, which is evaluated once at startup using the list of interfaces configured at that time.



Replies:
Re: Help in debugging ACF connection issue Érico Nogueira Rolim via Tech-talk
References:
Help in debugging ACF connection issue Érico Nogueira Rolim via Tech-talk
Re: Help in debugging ACF connection issue Michael Davidsaver via Tech-talk
Re: Help in debugging ACF connection issue Érico Nogueira Rolim via Tech-talk
Re: Help in debugging ACF connection issue Hu, Yong via Tech-talk
Re: Help in debugging ACF connection issue Hu, Yong via Tech-talk
Re: Help in debugging ACF connection issue Michael Davidsaver via Tech-talk

Navigate by Date:
Prev: Re: pvxput denied via EPICS_PVA_NAME_SERVERS but works via EPICS_PVA_ADDR_LIST --- (pvxs 1.5.1 / p4p 4.1.7) Williams Jr., Ernest L. via Tech-talk
Next: Re: pvxput denied via EPICS_PVA_NAME_SERVERS but works via EPICS_PVA_ADDR_LIST --- (pvxs 1.5.1 / p4p 4.1.7) Williams Jr., Ernest L. via Tech-talk
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  2025  <2026
Navigate by Thread:
Prev: Re: Help in debugging ACF connection issue Michael Davidsaver via Tech-talk
Next: Re: Help in debugging ACF connection issue Érico Nogueira Rolim via Tech-talk
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  2025  <2026
ANJ, 19 Mar 2026 · Home · News · About · Talk · Base · Modules · Extensions ·
· Distributions · Download · Documents · Links · Licensing ·