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 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
<== Date ==> <== Thread ==>

Subject: autoConnect could not connect from drvAsynSerialPortConfigure
From: Zhibang Shen via Tech-talk <tech-talk@aps.anl.gov>
To: tech-talk@aps.anl.gov
Date: Mon, 14 Jan 2019 14:21:49 +0800 (GMT+08:00)

Hi,


I followed How to use an ASYN record to communicate with a message-based instrument to build my example. However while running, it reminded that autoConnect could not connect after drvAsynSerialPortConfigure was executed. I did not know how it happened and also how to fix the problem. Could someone please tell me what should I do? Thanks a lot in advance.


[guest@localhost iocserialTest]$ ../../bin/linux-x86_64/serialTest st.cmd
#!../../bin/linux-x86_64/serialTest
## You may have to change serialTest to something else
## everywhere it appears in this file
< envPaths
epicsEnvSet("IOC","iocserialTest")
epicsEnvSet("TOP","/home/guest/epics/serialTest")
epicsEnvSet("SUPPORT","/home/guest/epics/synApps/support")
epicsEnvSet("ASYN","/home/guest/epics/synApps/support/asyn-R4-33")
epicsEnvSet("EPICS_BASE","/home/guest/epics/serialTest/../base")
cd "/home/guest/epics/serialTest"
## Register all support components
dbLoadDatabase "dbd/serialTest.dbd"
serialTest_registerRecordDeviceDriver pdbbase
## Configure devices
drvAsynSerialPortConfigure("L0","/dev/ttyS0",0,0,0)
2019/01/14 13:20:32.154 L0 -1 autoConnect could not connect
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","Y")
## Load record instances
#dbLoadRecords("db/xxx.db","user=shinHost")
#dbLoadRecords("db/asynRecord.db", "P=norum,R=asyn,PORT=L0,ADDR=24,IMAX=100,OMAX=100")
cd "/home/guest/epics/serialTest/iocBoot/iocserialTest"
iocInit
Starting iocInit
############################################################################
## EPICS R3.15.6
## EPICS Base built Dec 28 2018
############################################################################
iocRun: All initialization complete
## Start any sequence programs
#seq sncxxx,"user=shinHost"
epics>

And the tutorial that I followed is https://epics.anl.gov/modules/soft/asyn/AsynRecordControl/AsynRecordControl.html




--

Zhibang Shen

Institute of High Energy Physics, Chinese Academy of Sciences

19B Yuquan Road, Shijingshan District, Beijing, China

100049


Replies:
Re: autoConnect could not connect from drvAsynSerialPortConfigure William Norum via Tech-talk

Navigate by Date:
Prev: Re: Cannot execute application on ARM target Williams Jr., Ernest L. via Tech-talk
Next: Re: autoConnect could not connect from drvAsynSerialPortConfigure William Norum 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
Navigate by Thread:
Prev: Java CAJ/JCA Deadlock on CAJChannel.destroy Ryan Slominski via Tech-talk
Next: Re: autoConnect could not connect from drvAsynSerialPortConfigure William Norum 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
ANJ, 14 Jan 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·