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  <20122013  2014  2015  2016  2017  2018  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  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: "Connection refused" when running Ethernet/RS232 application
From: 张德敏 <[email protected]>
To: tech-talk <[email protected]>
Date: Wed, 12 Dec 2012 15:31:06 +0800 (CST)
Hello everyone,
I'm using an Ethernet/232 converter which communicates between IOC and the RS232 device , and specify the Internet host and port numper like :
drvAsynIPPortConfigure("L0","192.168.0.21:1",0,0,0). Then running the application, it occurs:
  [fel@fel iocPSM6003]$ ../../bin/linux-x86/PSM6003 st.cmd
#!../../bin/linux-x86/PSM6003
## You may have to change PSM6003 to something else
## everywhere it appears in this file
##< envPaths
##cd ${TOP}
## Register all support components
dbLoadDatabase("../../dbd/PSM6003.dbd",0,0)
PSM6003_registerRecordDeviceDriver(pdbbase)
## Load record instances
dbLoadRecords("../../db/psm6003.db","user=felHost")
##dbLoadRecords("../../db/psm6003.db","P=PSM6003:,R=,L=0,A=0")
##drvAsynIPPortConfigure("L0","127.0! .0.1",0,0,0)
drvAsynIPPortConfigure("L0","192.168.0.21:1",0,0,0)
##drvAsynSerialPortConfigure("L0","/dev/ttyS0",0,0,0)
##asynSetOption("L0",-1,"baud","9600")
##asynSetOption("L0",-1,"bits","8")
##asynSetOption("L0",-1,"parity","none")
##asynSetOption("L0",-1,"stop","1")
##asynSetOption("L0",-1,"clocal","Y")
##asynSetOption("L0",-1,"crtscts","N")
##asynOctetSetInputEos("L0",-1,"\n")
##asynOctetSetOutputEos("L0",-1,"\n")
##cd ${TOP}/iocBoot/${IOC}
iocInit()
Starting iocInit
############################################################################
## EPICS R3.14.9- $R3-14-9-pre1$ $2006/11/20 21:09:36$
## EPICS Base built Nov 20 2012
############################################################################
2012/12/12 11:08:38.678 asynManager::asynConnectCallback, port L0 error calling asynCommon! ->connect Can't connect to 192.168.0.21:1: Connection refused
2012/12/12 11:08:38.679 asynManager::asynConnectCallback, port L0 error calling asynCommon->connect Can't connect to 192.168.0.21:1: Connection refused
2012/12/12 11:08:38.680 Can't connect to 192.168.0.21:1: Connection refused L0 - 1 autoConnect could not connect
2012/12/12 11:08:38.681 asynManager::asynConnectCallback, port L0 error calling asynCommon->connect Can't connect to 192.168.0.21:1: Connection refused
2012/12/12 11:08:38.780 asynManager::asynConnectCallback, port L0 error calling asynCommon->connect Can't connect to 192.168.0.21:1: Connection refused
2012/12/12 11:08:38.781 asynManager::asynConnectCallback, port L0 error calling asynCommon->connect Can't connect to 192.168.0.21:1: Connection refused
2012/12/12 11:08:38.781 asynManager::asynConnectCallback, port L0 error calling asynCommon->connect Can't connect to 192.168.0.2 1:1: Connection refused
2012/12/12 11:08:38.784 asynManager:! :asynConnectCallback, port L0 error calling asynCommon->connect Can't connect to 192.168.0.21:1: Connection refused
2012/12/12 11:08:38.785 asynManager::asynConnectCallback, port L0 error calling asynCommon->connect Can't connect to 192.168.0.21:1: Connection refused
2012/12/12 11:08:38.786 asynManager::asynConnectCallback, port L0 error calling asynCommon->connect Can't connect to 192.168.0.21:1: Connection refused
iocInit: All initialization complete
## Start any sequence programs
#seq sncxxx,"user=felHost"
epics>
[fel@fel iocPSM6003]$
So, what probably has caused my problem?
Thanks,
Demin zhang





Replies:
Re: "Connection refused" when running Ethernet/RS232 application Nicholas P. DiMonte

Navigate by Date:
Prev: Re: Utilities for EPICS on Multi-Core Linux Ralph Lange
Next: EPICS SIMULINK interface Klotz Wolf-Dieter
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Passive Scanning processing Dalesio, Leo
Next: Re: "Connection refused" when running Ethernet/RS232 application Nicholas P. DiMonte
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·