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  2012  2013  2014  2015  2016  2017  2018  <20192020  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  2017  2018  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: autoConnect could not connect from drvAsynSerialPortConfigure
From: William Norum via Tech-talk <[email protected]>
To: Zhibang Shen <[email protected]>
Cc: [email protected]
Date: Sun, 13 Jan 2019 22:24:59 -0800
Does /dev/ttyS0 actually exist on your system?
I infer from your posting that the ‘guest’ account is running the IOC — does this account have access permission to /dev/ttyS0?


On Jan 13, 2019, at 10:21 PM, Zhibang Shen via Tech-talk <[email protected]> wrote:

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




References:
autoConnect could not connect from drvAsynSerialPortConfigure Zhibang Shen via Tech-talk

Navigate by Date:
Prev: autoConnect could not connect from drvAsynSerialPortConfigure Zhibang Shen via Tech-talk
Next: Getting data from a shell script into an ioc Bo Jakobsen 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  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: autoConnect could not connect from drvAsynSerialPortConfigure Zhibang Shen via Tech-talk
Next: Getting data from a shell script into an ioc Bo Jakobsen 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  <20192020  2021  2022  2023  2024 
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 ·