EPICS Home

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

Subject: Re: caget() from C++
From: "Church, Eric D" <[email protected]>
To: Mark Rivers <[email protected]>, "'Kasemir, Kay'" <[email protected]>, Ralph Lange <[email protected]>, EPICS Tech Talk <[email protected]>
Cc: "Mendez, Jennifer M" <[email protected]>
Date: Tue, 5 Dec 2017 22:05:36 +0000
I attach a file showing my efforts at setting this variable in the xterm session in which I run my caxyz commands and the record of my puzzling problems. Before trying to export these values of EPICS_CA_ADDR_LIST, all was well. Whereas, after setting it, failingx2, if I unset it I can not connect: I am not returning to successful camonitoring of just even one IOC.

Note: all the relevant-looking complaints from my 2nd IOC terminal in the attached file ….

- Eric

 

On 12/5/17, 1:43 PM, "Mark Rivers" <[email protected]> wrote:

    > Looks like the EPICS_CA_ADDR_LIST used by camonitor is not using the broadcast address of your host.
    
    It should be doing that automatically without you needing to set EPICS_CA_ADDR_LIST.  Can you send the output of the following commands Linux command in the shell where you are running camonitor.
    
    ifconfig
    printenv | grep EPICS
    
    At the IOC shell prompt on both the first and second IOCs send the output of
    
    epicsPrtEnvParams
    
    
    What happens if you set EPICS_CA_ADDR_LIST manually to the broadcast address of your system?  For example on my system ifconfig shows:
    
    p5p1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet 164.54.160.82  netmask 255.255.255.0  broadcast 164.54.160.255
            inet6 fe80::3efd:feff:fea3:f258  prefixlen 64  scopeid 0x20<link>
            ether 3c:fd:fe:a3:f2:58  txqueuelen 1000  (Ethernet)
            RX packets 80276465019  bytes 92598173910474 (84.2 TiB)
            RX errors 0  dropped 114  overruns 0  frame 0
            TX packets 32261858165  bytes 16671972218313 (15.1 TiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    So I would set EPICS_CA_ADDR_LIST=164.54.160.255
    
    Mark
    
    
    
    
    > -----Original Message-----
    > From: Kasemir, Kay [mailto:[email protected]]
    > Sent: Tuesday, December 05, 2017 3:37 PM
    > To: Church, Eric D; Mark Rivers; Ralph Lange; EPICS Tech Talk
    > Cc: Mendez, Jennifer M
    > Subject: Re: caget() from C++
    > 
    > >Indeed camonitor can properly watch a channel on the first IOC when only it is running. I
    > can dial up and down the voltage from CSS on a particular PV on this first IOC and watch
    > it move on camonitor. >When I start the second IOC I can continue this exercise on POVs
    > on the first IOC. If I kill camonitor, per your suggestion, I can not start it again on a PV on
    > the first IOC. And if I kill the second IOC I can >once again start camonitor successfully on
    > a PV on the first IOC.
    > 
    > >What does it mean, do ya think?
    > 
    > Looks like the EPICS_CA_ADDR_LIST used by camonitor is not using the broadcast
    > address of your host.
    
    
    

arxe:~/ara/CSS$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:80:2F:19:FE:07  
          inet addr:130.20.48.81  Bcast:130.20.49.255  Mask:255.255.254.0
          inet6 addr: fe80::280:2fff:fe19:fe07/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18620331 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7828704 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2781070185 (2.5 GiB)  TX bytes:1383464993 (1.2 GiB)
          Interrupt:20 Memory:dfe00000-dfe20000 

eth1      Link encap:Ethernet  HWaddr 00:80:2F:19:FE:08  
          inet addr:192.168.1.11  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::280:2fff:fe19:fe08/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:332650789 errors:0 dropped:0 overruns:0 frame:0
          TX packets:91082275 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:22888828435 (21.3 GiB)  TX bytes:7836090071 (7.2 GiB)
          Interrupt:19 Memory:dfc60000-dfc80000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:127738385 errors:0 dropped:0 overruns:0 frame:0
          TX packets:127738385 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:12824308258 (11.9 GiB)  TX bytes:12824308258 (11.9 GiB)

virbr0    Link encap:Ethernet  HWaddr 52:54:00:7E:DA:94  
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21796 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:12474520 (11.8 MiB)

arxe:~/ara/CSS$ export EPICS_CA_ADDR_LIST=192.168.1.255
arxe:~/ara/CSS$ camonitor PS1304001:000:vmon
Warning: Duplicate EPICS CA Address list entry "192.168.1.255:5064" discarded
PS1304001:000:vmon             *** Not connected (PV not found)
^C
arxe:~/ara/CSS$ export EPICS_CA_ADDR_LIST=130.20.49.255
arxe:~/ara/CSS$ camonitor PS1304001:000:vmon
Warning: Duplicate EPICS CA Address list entry "130.20.49.255:5064" discarded
PS1304001:000:vmon             *** Not connected (PV not found)
^C
arxe:~/ara/CSS$ printenv | grep EPICS

.30+6.
PYEPICS_LIBCA=/home/arxe/ara/epics/base-3.14.12.5/lib/linux-x86_64/libca.so
EPICS_HOST_ARCH=linux-x86_64
EPICS_CA_ADDR_LIST=130.20.49.255



..............Now, onto the IOC epicsPrtEnvParams request:

---- 1st IOC ----

epics> epicsPrtEnvParams
EPICS_AR_PORT: 7002
EPICS_CAS_AUTO_BEACON_ADDR_LIST is undefined
EPICS_CAS_BEACON_ADDR_LIST is undefined
EPICS_CAS_BEACON_PERIOD is undefined
EPICS_CAS_BEACON_PORT is undefined
EPICS_CAS_IGNORE_ADDR_LIST is undefined
EPICS_CAS_INTF_ADDR_LIST is undefined
EPICS_CAS_SERVER_PORT is undefined
EPICS_CA_ADDR_LIST is undefined
EPICS_CA_AUTO_ADDR_LIST: YES
EPICS_CA_BEACON_PERIOD: 15.0
EPICS_CA_CONN_TMO: 30.0
EPICS_CA_MAX_ARRAY_BYTES: 16384
EPICS_CA_MAX_SEARCH_PERIOD: 300.0
EPICS_CA_NAME_SERVERS is undefined
EPICS_CA_REPEATER_PORT: 5065
EPICS_CA_SERVER_PORT: 5064
EPICS_CMD_PROTO_PORT is undefined
EPICS_IOC_LOG_FILE_COMMAND is undefined
EPICS_IOC_LOG_FILE_LIMIT: 1000000
EPICS_IOC_LOG_FILE_NAME is undefined
EPICS_IOC_LOG_INET is undefined
EPICS_IOC_LOG_PORT: 7004
EPICS_TIMEZONE: CUS::360:031302:110602
EPICS_TS_NTP_INET is undefined
IOCSH_HISTSIZE: 50
IOCSH_PS1: epics> 
epics> 





--- 2nd IOC -----

cas warning: Configured TCP port was unavailable.
cas warning: Using dynamically assigned TCP port 42117,
cas warning: but now two or more servers share the same UDP port.
cas warning: Depending on your IP kernel this server may not be
cas warning: reachable with UDP unicast (a host's IP in EPICS_CA_ADDR_LIST)
iocRun: All initialization complete
## Start any sequence programs
#seq sncxxx,"PSNAME=PS1304001"
epics> epicsPrtEnvParams
EPICS_AR_PORT: 7002
EPICS_CAS_AUTO_BEACON_ADDR_LIST is undefined
EPICS_CAS_BEACON_ADDR_LIST is undefined
EPICS_CAS_BEACON_PERIOD is undefined
EPICS_CAS_BEACON_PORT is undefined
EPICS_CAS_IGNORE_ADDR_LIST is undefined
EPICS_CAS_INTF_ADDR_LIST is undefined
EPICS_CAS_SERVER_PORT is undefined
EPICS_CA_ADDR_LIST is undefined
EPICS_CA_AUTO_ADDR_LIST: YES
EPICS_CA_BEACON_PERIOD: 15.0
EPICS_CA_CONN_TMO: 30.0
EPICS_CA_MAX_ARRAY_BYTES: 16384
EPICS_CA_MAX_SEARCH_PERIOD: 300.0
EPICS_CA_NAME_SERVERS is undefined
EPICS_CA_REPEATER_PORT: 5065
EPICS_CA_SERVER_PORT: 5064
EPICS_CMD_PROTO_PORT is undefined
EPICS_IOC_LOG_FILE_COMMAND is undefined
EPICS_IOC_LOG_FILE_LIMIT: 1000000
EPICS_IOC_LOG_FILE_NAME is undefined
EPICS_IOC_LOG_INET is undefined
EPICS_IOC_LOG_PORT: 7004
EPICS_TIMEZONE: CUS::360:031302:110602
EPICS_TS_NTP_INET is undefined
IOCSH_HISTSIZE: 50
IOCSH_PS1: epics> 
epics> 





Replies:
RE: caget() from C++ Mark Rivers
References:
caget() from C++ Church, Eric D
Re: caget() from C++ Andrew Johnson
Re: caget() from C++ Church, Eric D
Re: caget() from C++ Mark Rivers
Re: caget() from C++ Church, Eric D
RE: caget() from C++ Mark Rivers
Re: caget() from C++ Church, Eric D
RE: caget() from C++ Mark Rivers
Re: caget() from C++ Church, Eric D
Re: caget() from C++ Mark Rivers
Re: caget() from C++ Ralph Lange
Re: caget() from C++ Mark Rivers
Re: caget() from C++ Church, Eric D
Re: caget() from C++ Kasemir, Kay
RE: caget() from C++ Mark Rivers

Navigate by Date:
Prev: RE: caget() from C++ Mark Rivers
Next: RE: EPICS 7 Release Candidate 1 Mark Engbretson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: caget() from C++ Mark Rivers
Next: RE: caget() from C++ Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024