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: "Hu, Yong via Tech-talk" <tech-talk at aps.anl.gov>
To: Дмитрий Прощенко <proshchenko78 at yandex.ru>, Michael Davidsaver <mdavidsaver at gmail.com>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Mon, 19 Apr 2021 13:43:51 +0000

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?

 

 


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

Navigate by Date:
Prev: Re: WIN_32 Marty Kraimer via Tech-talk
Next: Re: pv Access setup Hu, Yong 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 Дмитрий Прощенко via Tech-talk
Next: Re: pv Access setup Hu, Yong 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, 19 Apr 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·