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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: pv Access setup |
From: | Дмитрий Прощенко via Tech-talk <tech-talk at aps.anl.gov> |
To: | Michael Davidsaver <mdavidsaver at gmail.com> |
Cc: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Mon, 19 Apr 2021 16:25:43 +0700 |
On 4/18/21 10:07 AM, Дмитрий Прощенко via Tech-talk wrote:
Hi all!
Im writting cpp program to drive a power supply. Use pv Access for connection. Also I created an IOC using makeBaseApp.pl on my Kubuntu and created bd for testing. And all is well. But using other OS whit IOC I found that my program is not working. pvget isnt working too. I was able tofind information on the need to use qsrv:
myioc_LIBS += qsrv
myioc_LIBS += pvAccessIOC
myioc_DBD += PVASeerverRegister.dbd
myioc_DBD += qsrv.dbd
executing pvasr on other OS:
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
....
This looks correct.
And pvget or pvput is not working anyway. I used pva2pva (QSRV / pvAccess Gateway) to know about qsrc. What documants shout I pay attention to? What should I fix to keep it working? I would like to use several IOCs, do I need to configure my addresses go them for correct operation?
Can you test with the softIocPVA executable and a simple database?
This should confirm if this is a network issue.
Also, can you confirm that caget also works?
cat <<EOF > tick.db
record(calc, "$(P=)cnt") {
field(INPA, "$(P=)cnt")
field(CALC, "A+1")
field(SCAN, "1 second")
}
EOF
$ softIocPVA -d tick.db
...
$ pvget -d cnt
2021-04-18T10:55:41.653 Creating datagram socket from: 0.0.0.0:45045.
2021-04-18T10:55:41.653 Broadcast address #0: 192.168.1.255:5076. (not unicast)
2021-04-18T10:55:41.653 Broadcast address #1: 192.168.210.255:5076. (not unicast)
2021-04-18T10:55:41.653 Setting up UDP for interface 192.168.1.68/255.255.255.0, broadcast 192.168.1.255, dest <none>.
2021-04-18T10:55:41.653 Creating datagram socket from: 192.168.1.68:5076.
2021-04-18T10:55:41.653 Creating datagram socket from: 192.168.1.255:5076.
2021-04-18T10:55:41.653 Setting up UDP for interface 192.168.210.1/255.255.255.0, broadcast 192.168.210.255, dest <none>.
2021-04-18T10:55:41.653 Creating datagram socket from: 192.168.210.1:5076.
2021-04-18T10:55:41.653 Creating datagram socket from: 192.168.210.255:5076.
2021-04-18T10:55:41.653 Creating datagram socket from: 224.0.0.128:5076.
2021-04-18T10:55:41.653 Local multicast enabled on 127.0.0.1/224.0.0.128:5076.
2021-04-18T10:55:41.653 Sending 49 bytes 0.0.0.0:45045 -> 192.168.1.255:5076.
2021-04-18T10:55:41.653 Socket sendto to 192.168.1.255:5076 error: Operation not permitted.
2021-04-18T10:55:41.653 Sending 49 bytes 0.0.0.0:45045 -> 192.168.210.255:5076.
2021-04-18T10:55:41.653 UDP Client Rx (49) 192.168.210.255:5076 <- 192.168.210.1:45045
Waiting...
2021-04-18T10:55:41.654 UDP Client Rx (53) 0.0.0.0:45045 <- 192.168.210.1:58034
2021-04-18T10:55:41.654 Connecting to PVA server: 192.168.210.1:41685.
2021-04-18T10:55:41.654 Opening socket to PVA server 192.168.210.1:41685, attempt 1.
2021-04-18T10:55:41.654 Socket connected to PVA server: 192.168.210.1:41685.
2021-04-18T10:55:41.654 Acquiring transport to 192.168.210.1:41685.
2021-04-18T10:55:41.655 Connected to PVA server: 192.168.210.1:41685.
cnt 2021-04-18 10:55:40.828 38
2021-04-18T10:55:41.655 Releasing TCP transport to 192.168.210.1:41685.
2021-04-18T10:55:41.655 TCP socket to 192.168.210.1:41685 is to be closed.
2021-04-18T10:55:41.655 UDP socket 0.0.0.0:0 closed.
2021-04-18T10:55:41.655 UDP Client Rx (0) 0.0.0.0:45045 <- 192.168.210.1:58034
2021-04-18T10:55:41.655 UDP socket 192.168.1.68:5076 closed.
2021-04-18T10:55:41.655 UDP Client Rx (0) 192.168.1.68:5076 <- <Ukn Addr Type>
2021-04-18T10:55:41.655 UDP socket 192.168.1.255:5076 closed.
2021-04-18T10:55:41.655 UDP Client Rx (0) 192.168.1.255:5076 <- <Ukn Addr Type>
2021-04-18T10:55:41.655 UDP socket 192.168.210.1:5076 closed.
2021-04-18T10:55:41.655 UDP Client Rx (0) 192.168.210.1:5076 <- <Ukn Addr Type>
2021-04-18T10:55:41.655 UDP socket 192.168.210.255:5076 closed.
2021-04-18T10:55:41.655 UDP Client Rx (0) 192.168.210.255:5076 <- 192.168.210.1:45045
2021-04-18T10:55:41.655 UDP socket 224.0.0.128:5076 closed.
2021-04-18T10:55:41.655 UDP Client Rx (0) 224.0.0.128:5076 <- <Ukn Addr Type>
Done