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: drvAsynIPPortConfigure and I/O Intr with asynRecord possible?
From: Christoph Schroeder via Tech-talk <[email protected]>
To: "[email protected]" <[email protected]>
Date: Thu, 4 Apr 2019 09:38:01 +0200
Hello everyone,

I have a device, that sends unsolicited binary data at a rather high
rate to a TCP/IP client. All blocks have the same length and are not
terminated. Since I just want to read them, my Idea was to use the
asynRecord and it's asynRecordDevice support / the asynOctet interface.
The documentation states, that I/O Intr is fully supported, but it
doesn't seem to work. I made a small test setup with netcat and asyn
R4-35 to reproduce this:

in the startup script:
#drvAsynIPPortConfigure("portName","hostInfo",priority,noAutoConnect,noProcessEos)
drvAsynIPPortConfigure("ASYNTEST","localhost:60000",0,0,1)

template:
record(asyn,"$(DEVN):rdRawData") {
    field(DESC, "asyn record test")
    field(DTYP, "asynRecordDevice")
    field(PORT, "$(P)")
    field(ADDR, "$(A)")
    field(IFACE,"asynOctet")
    field(TMOD, "Read")
    field(TMOT, "-1")
    field(IFMT, "Binary")
    field(IMAX, "4")
    field(NRRD, "4")
    field(SCAN, "I/O Intr")
}

If I send data it keeps getting buffered by the socket and is only read,
if I force processing e.g. by caput to the PROC field. Is this a bug or
is it simply not supported?

Tanks and best regards,
Christoph

--
(bb|[^b]{2})


________________________________

Helmholtz-Zentrum Berlin für Materialien und Energie GmbH

Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.

Aufsichtsrat: Vorsitzender Dr. Karl Eugen Huthmacher, stv. Vorsitzende Dr. Jutta Koch-Unterseher
Geschäftsführung: Prof. Dr. Bernd Rech (kommissarisch), Thomas Frederking

Sitz Berlin, AG Charlottenburg, 89 HRB 5583

Postadresse:
Hahn-Meitner-Platz 1
D-14109 Berlin

Replies:
Re: drvAsynIPPortConfigure and I/O Intr with asynRecord possible? Mark Rivers via Tech-talk

Navigate by Date:
Prev: Re: ADpython issues with openCV sandeep-kumar.malu--- via Tech-talk
Next: Query about control system choices for insertion devices ronaldo.mercado--- 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: Asynchronous put for PV hosted by Python IOC using pcaspy but without 'asyn' field. Gregory, Ray via Tech-talk
Next: Re: drvAsynIPPortConfigure and I/O Intr with asynRecord possible? Mark Rivers 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, 04 Apr 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·