|
|
Experimental Physics and
| ||||||||||||||
|
|
Hello again, Érico,
I think I have managed to reproduce your ACF connection issue. Here is what I did:
1. Turn off my laptop's networks completely, including WIFI.
2. Open a terminal and use tcpdump to monitor EPICS search:
# tcpdump -ni any udp port 5064
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' .
4. Immediately manually start the second softIOC 'bpm-rear'.
Here is my debugging:
0) I wait for a long time, more than 5 minutes.
1) On 'bpm-front': ascar shows 'connected:never'; interestingly,
dbcar shows '3 connected ...' because I do have 3 dbCA links, something like 'LNK2,"myCommand:just4Test CA"' inside the softIOC 'bpm-front'.
epics> ascar 1
connected:never read:no write:no myCommand:just4TestACF <disconnected>
1 channels 1 not connected
epics> dbcar
CA links in all records
Total 3 CA links; 3 connected, 0 not connected.
2) On 'bpm-rear': there are no clients connected.
epics> casr
Channel Access Server V4.13
No clients connected.
Here is a snippet of
tcpdump which makes sense to me: 'bpm-front' sends UDP search through
127.0.0.1 at varied intervals, eventually every 4.5 minutes (<EPICS_CA_MAX_SEARCH_PERIOD=300-sec)
continuously (not timeout as Ralph corrected my wording in another thread).
15:03:31.797239 IP 127.0.0.1.59092 > 127.0.0.1.5064: UDP, length 56
15:03:32.821997 IP 127.0.0.1.59092 > 127.0.0.1.5064: UDP, length 56
15:03:34.869266 IP 127.0.0.1.59092 > 127.0.0.1.5064: UDP, length 56
...
15:12:15.058636 IP 127.0.0.1.59092 > 127.0.0.1.5064: UDP, length 56
15:16:37.198335 IP 127.0.0.1.59092 > 127.0.0.1.5064: UDP, length 56
15:20:59.337359 IP 127.0.0.1.59092 > 127.0.0.1.5064: UDP, length 56
3) test caget and camonitor, which fail:
$ caget myCommand:just4TestACF
Channel connect timed out: 'myCommand:just4TestACF' not found.
$ camonitor myCommand:just4TestACF
myCommand:just4TestACF *** Not connected (PV not found)
osiLocalAddr(): only loopback found
4) Now, the most intriguing part: turn on laptop's networks (actually just WIFI).
caget and camonitor both are working, getting the PV values ; tcpdump output message have changed a little bit because my laptop has a new IP '192.168.12.44'
15:40:12.856529 IP 192.168.12.44.53273 > 192.168.12.255.5064: UDP, length 56
15:40:12.857207 IP 192.168.12.44.5064 > 192.168.12.44.53273: UDP, length 40
However, on 'bpm-front', ascar still shows 'connected:never'. That is exactly what happened to your BPM system.
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)?
Cheers, Yong
| ||||||||||||||
| ANJ, 19 Mar 2026 |
·
Home
·
News
·
About
·
Talk
·
Base
·
Modules
·
Extensions
·
· Distributions · Download · Documents · Links · Licensing · |