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