Experimental Physics and Industrial Control System
> Doesn’t matter, the easiest way to configure this is still to leave EPICS_CAS_SERVER_PORT undefined
> since the clients will find all your IOCs just fine.
The only exception to this is if your clients are on a different subnet from your IOC. In that case I believe you can use a PV gateway, or set the PCAS server port manually and set EPICS_CA_ADDR_LIST on the client.
Mark
________________________________
From: [email protected] [[email protected]] on behalf of Kasemir, Kay [[email protected]]
Sent: Monday, August 29, 2016 7:45 AM
To: geyang
Cc: [email protected]
Subject: Re: question about pcaspy
Hi:
If you want to run multiple copies of the pcaspy CA server on one computer, it’s really the same as running multiple soft IOCs on the same computer.
You don’t need to change any port settings.
All copies of the CA server on the host will listen to UDP name searches on the default UDP port.
They cannot all use the same default TCP port, so except for the first server that you start you’ll see the warning messages “css warning: Configured TCP port was unavailable. Using dynamically assigned ..” but that’s not a problem.
What happens on the protocol level:
Clients search for a channel.
CAS replies: I have that channel, talk to me on TCP port xxxxxx.
For the first CAS that you start, that TCP port is the default, for the rest it’s a different port.
Doesn’t matter, the easiest way to configure this is still to leave EPICS_CAS_SERVER_PORT undefined since the clients will find all your IOCs just fine.
See also https://wiki-ext.aps.anl.gov/epics/index.php/How_to_Configure_Channel_Access<redir.aspx?REF=K4w4oV4e7nMp4yQsH0uQtCKJQEqNIdY2XwxaEpynxnFy8TKhDNDTCAFodHRwczovL3dpa2ktZXh0LmFwcy5hbmwuZ292L2VwaWNzL2luZGV4LnBocC9Ib3dfdG9fQ29uZmlndXJlX0NoYW5uZWxfQWNjZXNz>
-Kay
On Aug 27, 2016, at 8:45 PM, geyang <[email protected]<redir.aspx?REF=NLRaXEcDSU9WoIHBsGBGzIvQzStBK08Uw7P2t--m2ahy8TKhDNDTCAFtYWlsdG86bWFyY29faGFpckAxNjMuY29t>> wrote:
hi,
I would like to ask if SimpleServer's port can be changed to others in code, such as 5066/5068? For example, I have a device driver written by pcaspy, I want to implement the same driver for many same type devices on one machine, then I need to set them different server ports.
thanks a lot for your help.
Best wishes
Geyang 2016/8/28
- Replies:
- Re: question about pcaspy Ralph Lange
- References:
- question about pcaspy geyang
- Re: question about pcaspy Kasemir, Kay
- Navigate by Date:
- Prev:
Re: question about pcaspy Kasemir, Kay
- Next:
Re: question about pcaspy Ralph Lange
- 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
- Navigate by Thread:
- Prev:
Re: question about pcaspy Kasemir, Kay
- Next:
Re: question about pcaspy Ralph Lange
- 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