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  <20142015  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  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Fwd: Problem in database using Asyn Driver
From: Tasaddaq Khan <[email protected]>
To: [email protected]
Date: Mon, 29 Dec 2014 19:43:10 +0500

Dear All

I want to send and receive data at port. I am successfully sending the data and verified it but I can't receive the data from the port. Please check the problem and suggest me how to correct it. I have attached my database file. My st.cmd file is:

#!../../bin/linux-x86/serialTest

## You may have to change serialTest to something else
## everywhere it appears in this file

< envPaths

cd ${TOP}

## Register all support components
dbLoadDatabase "dbd/serialTest.dbd"
serialTest_registerRecordDeviceDriver pdbbase
drvAsynIPPortConfigure("L0","localhost:5011",0,0,0)

## Load record instances
#dbLoadRecords("db/xxx.db","user=tasaddaqHost")

dbLoadRecords("db/asynRecord.db","P=a:,R=b,PORT=L0, ADDR=0,TIMEOUT=1,IMAX=100,OMAX=100")
dbLoadRecords("db/serialTest.db","PORT=L0,R=b,ADDR=0,TIMEOUT=1")
#asynOctetSetInputEos("L0",0,"\n")
#asynOctetSetOutputEos("L0",0,"\n")

cd ${TOP}/iocBoot/${IOC}
iocInit

## Start any sequence programs
#seq sncxxx,"user=tasaddaqHost"

_________________________________________________________

and after running ioc the result is .....

#!../../bin/linux-x86/serialTest
## You may have to change serialTest to something else
## everywhere it appears in this file
< envPaths
epicsEnvSet("ARCH","linux-x86")
epicsEnvSet("IOC","iocserialTest")
epicsEnvSet("TOP","/home/tasaddaq/serialTest")
epicsEnvSet("EPICS_BASE","/home/tasaddaq/epics/base-3.14.12.3")
epicsEnvSet("ASYN","/home/tasaddaq/epics/asyn4-20")
cd /home/tasaddaq/serialTest
## Register all support components
dbLoadDatabase "dbd/serialTest.dbd"
serialTest_registerRecordDeviceDriver pdbbase
drvAsynIPPortConfigure("L0","localhost:5011",0,0,0)
## Load record instances
#dbLoadRecords("db/xxx.db","user=tasaddaqHost")
dbLoadRecords("db/asynRecord.db","P=a:,R=b,PORT=L0, ADDR=0,TIMEOUT=1,IMAX=100,OMAX=100")
dbLoadRecords("db/serialTest.db","PORT=L0,R=b,ADDR=0,TIMEOUT=1")
#asynOctetSetInputEos("L0",0,"\n")
#asynOctetSetOutputEos("L0",0,"\n")
cd /home/tasaddaq/serialTest/iocBoot/iocserialTest
iocInit
Starting iocInit
############################################################################
## EPICS R3.14.12.3 $Date: Mon 2012-12-17 14:11:47 -0600$
## EPICS Base built Jan 18 2013
############################################################################
iocRun: All initialization complete
## Start any sequence programs
#seq sncxxx,"user=tasaddaqHost"
epics> 2014/12/23 15:25:16.007 b:in devAsynOctet: readIt failed localhost:5011 timeout: Resource temporarily unavailable
epics>

best regards,

Tasaddaq

Attachment: serialTest.db
Description: Binary data


Replies:
Re: Problem in database using Asyn Driver Mark Rivers

Navigate by Date:
Prev: RE: getAddress method behaviour Heesterman, Peter J
Next: Re: Problem in database using Asyn Driver Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Bug in 3.14 and 3.15: "*.FLNK is a Channel Access Link ..." Andrew Johnson
Next: Re: Problem in database using Asyn Driver Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·