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  <20212022  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  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: pv Access setup
From: Дмитрий Прощенко via Tech-talk <tech-talk at aps.anl.gov>
To: "Hu, Yong" <yhu at bnl.gov>, Michael Davidsaver <mdavidsaver at gmail.com>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Tue, 20 Apr 2021 14:36:28 +0700
Hi!
I solved the problem using Hu decision. The cause of the problem I cant undestant yet.
Thank u for answers!
 
19.04.2021, 21:25, "Hu, Yong" <yhu at bnl.gov>:

Sorry to spam this thread. But I think I know how to fix the problem as I can replicate your problem. If I do these kind of settings on my terminal (PVA client), then I will get error messages exactly as yours.

export EPICS_PVA_ADDR_LIST=127.255.255.255

export EPICS_PVA_AUTO_ADDR_LIST=NO

 

This is the fix: DO NOT set EPICS_PVA_ADDR_LIST and EPICS_PVA_AUTO_ADDR_LIST on your PVA client side. These commands (or similar ones) will quickly unset the parameters:

unset EPICS_PVA_AUTO_ADDR_LIST

unset EPICS_PVA_ADDR_LIST

 

Cheers,

Yong

 

On 4/19/21, 10:13 AM, "Hu, Yong" <yhu at bnl.gov> wrote:

 

Okay. I sent my messages prematurely. Actually, it does not matter if you use “127.255.255.255” or not.

 

I have these two lines in my IOC’s st.cmd:

epicsEnvSet("EPICS_PVA_ADDR_LIST", "127.255.255.255")

epicsEnvSet("EPICS_PVA_AUTO_ADDR_LIST", "NO")

 

And this is the output:

epics> pvasr

pvAccess Server v7.1.2

Active configuration (w/ defaults)

EPICS_PVAS_INTF_ADDR_LIST = 0.0.0.0:5075

EPICS_PVAS_BEACON_ADDR_LIST = 127.255.255.255

EPICS_PVAS_AUTO_BEACON_ADDR_LIST = NO

EPICS_PVAS_BEACON_PERIOD = 15

EPICS_PVAS_BROADCAST_PORT = 5076

EPICS_PVAS_SERVER_PORT = 42079

EPICS_PVAS_PROVIDER_NAMES = QSRV

 

And I can use pvget to read PVs.

 

This line seems suspicious: “2021-04-19T10:59:32.552 Broadcast address #0: 127.255.255.255:5076. (unicast)”. I do not see any message saying “unicast” when I use “pvget -d pvName”.

 

Yong

 

On 4/19/21, 9:43 AM, "Hu, Yong" <yhu at bnl.gov> wrote:

 

Hi,

 

It seems you are new to the EPICS community. Welcome aboard!

 

“127.255.255.255” is not the right broadcast. Assuming you are using Linux, the output of /sbin/ifconfig does NOT have “127.255.255.255” as broadcast for the interface “lo”.

 

To fix your problem, simply DO NOT customize any EPICS_PVAS_* parameters, i.e. remove your settings of EPICS_PVAS_BEACON_ADDR_LIST and EPICS_PVAS_AUTO_BEACON_ADDR_LIST in your IOC. Your pvasr output should look like the following:

EPICS_PVAS_BEACON_ADDR_LIST =

EPICS_PVAS_AUTO_BEACON_ADDR_LIST = YES

 

BTW, why do you need to write a cpp program to drive a power supply by using pv Access for connection? The classical IOC with CA should probably be able to meet your requirements. With the classical IOC, you probably do not need to write any complicated codes for your application.

 

Cheers,

Yong

 

 

On 4/19/21, 5:26 AM, "Tech-talk on behalf of Дмитрий Прощенко via Tech-talk" <tech-talk-bounces at aps.anl.gov on behalf of tech-talk at aps.anl.gov> wrote:

 

Hello, Michael!

 

CA woks. I've tested softIocPVA and that is what happened:

epics> pvasr

pvAccess Server v7.1.0

Active configuration (w/ defaults)

EPICS_PVAS_INTF_ADDR_LIST = 0.0.0.0:5075

EPICS_PVAS_BEACON_ADDR_LIST = 127.255.255.255

EPICS_PVAS_AUTO_BEACON_ADDR_LIST = NO

EPICS_PVAS_BEACON_PERIOD = 15

EPICS_PVAS_BROADCAST_PORT = 5076

EPICS_PVAS_SERVER_PORT = 5075

EPICS_PVAS_PROVIDER_NAMES = QSRV

 

pvget -d cnt

2021-04-19T10:59:32.552 Creating datagram socket from: 0.0.0.0:46421.

2021-04-19T10:59:32.552 Broadcast address #0: 127.255.255.255:5076. (unicast)

2021-04-19T10:59:32.552 Setting up UDP for interface 192.168.1.145/255.255.255.0, broadcast 192.168.1.255, dest <none>.

2021-04-19T10:59:32.552 Creating datagram socket from: 192.168.1.145:5076.

2021-04-19T10:59:32.552 Creating datagram socket from: 192.168.1.255:5076.

2021-04-19T10:59:32.553 Setting up UDP for interface 192.168.122.1/255.255.255.0, broadcast 192.168.122.255, dest <none>.

2021-04-19T10:59:32.553 Creating datagram socket from: 192.168.122.1:5076.

2021-04-19T10:59:32.553 Creating datagram socket from: 192.168.122.255:5076.

2021-04-19T10:59:32.553 Creating datagram socket from: 224.0.0.128:5076.

2021-04-19T10:59:32.553 Local multicast enabled on 127.0.0.1/224.0.0.128:5076.

2021-04-19T10:59:32.553 Sending 49 bytes 0.0.0.0:46421 -> 127.255.255.255:5076.

Waiting...

2021-04-19T10:59:32.793 Sending 49 bytes 0.0.0.0:46421 -> 127.255.255.255:5076.

2021-04-19T10:59:33.272 Sending 49 bytes 0.0.0.0:46421 -> 127.255.255.255:5076.

2021-04-19T10:59:34.230 Sending 49 bytes 0.0.0.0:46421 -> 127.255.255.255:5076.

2021-04-19T10:59:36.146 Sending 49 bytes 0.0.0.0:46421 -> 127.255.255.255:5076.

Timeout

..............

 

As far as I understand address 127.255.255.255:5076 is right to broadcast. But in my other OS and in your example IP is defined (e.g. 192.168.18.190). Problems is able to receive message due to network setting?

 

 


References:
pv Access setup Дмитрий Прощенко via Tech-talk
Re: pv Access setup Michael Davidsaver via Tech-talk
Re: pv Access setup Дмитрий Прощенко via Tech-talk
Re: pv Access setup Hu, Yong via Tech-talk
Re: pv Access setup Hu, Yong via Tech-talk
Re: pv Access setup Hu, Yong via Tech-talk

Navigate by Date:
Prev: Re: pv Access setup Michael Davidsaver via Tech-talk
Next: How to use asyGenericPointerSyncIO interface? Abdalla Ahmad 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  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: pv Access setup Hu, Yong via Tech-talk
Next: Re: pv Access setup Michael Davidsaver 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  <20212022  2023  2024 
ANJ, 20 Apr 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·