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

Subject: Re: asyn problem
From: Eric Norum <[email protected]>
To: tanushyam bhattacharjee <[email protected]>
Cc: [email protected]
Date: Fri, 13 Nov 2009 07:09:15 -0600
The devGpib layer is set up for command/response devices.
Your original messages says that your device sends unsolicited messages. This requires a different type of driver. The streamDevice package provides a nice mechanism for handling devices that send unsolicited messages.

Eric Norum

On Nov 13, 2009, at 3:26 AM, tanushyam bhattacharjee wrote:

The report(asynReport 10,“L16”) is as follows:

synchronouslock=NO when working properly

ynchronouslock=YES when not working. other things are as it is except readcount(character)

how can I fix it?

tanushyam

--- On Thu, 12/11/09, Mark Rivers <[email protected]> wrote:

From: Mark Rivers <[email protected]>
Subject: RE: asyn problem
To: "tanushyam bhattacharjee" <[email protected]>, [email protected]
Date: Thursday, 12 November, 2009, 9:42 PM

When it stops working, what do you see?


Here are some things to try:


- When it stops working, issue the following command:


asynReport 10,“L16”


This asks for a detailed report on the state of that asyn port.


Next, issue the following commands:


asynSetTraceIOMask “L16”,0,2


That enables TraceEscape output, printing ASCII plus escape sequences.


asynSetTraceMask “L16”,0,255


That turns on all trace output for your asyn port on address 0. If you are using other addresses you might need to issue commands like:


asynSetTraceMask “L16”,2,255


for address 2, etc.


This should tell you if you are getting disconnected from the terminal server (TCP/IP disconnect) or if the device is sending garbage, etc.


Mark





From: [email protected] [mailto:[email protected] ] On Behalf Of tanushyam bhattacharjee
Sent: Thursday, November 12, 2009 9:51 AM
To: [email protected]
Subject: Fw: asyn problem




--- On Thu, 12/11/09, tanushyam bhattacharjee <[email protected]> wrote:


From: tanushyam bhattacharjee <[email protected]>
Subject: asyn problem
To: [email protected]
Date: Thursday, 12 November, 2009, 8:18 PM

I am using ‘asyn’ to communicate with a custom made device using ‘HowTodoSerial’ concept where CommonGpib functions are used.


The device continuously sends data if a knob, attached to it, rotates and does not send anything otherwise.


The IOC is working properly as long as the knob rotates but stops working after some time when there is a long gap.The device is connected through a Serial to Ethernet Converter by

drvAsynIPPortConfigure("L16","192.168.0.10:10003",0,0,0)

 in st.cmd file.


TIME_WINDOW=1000

Asyn version=4-4

Base= base-14.8.2


Is it a time out problem? Is it disconnecting from device after timeout?


Additionally I also want to know how can I flush a particular serial buffer in this program?Is flushbuffer function is available here?

tanushyam


Now, send attachments up to 25MB with Yahoo! India Mail. Learn how.




Keep up with people you care about with Yahoo! India Mail. Learn how.


Keep up with people you care about with Yahoo! India Mail. Learn how.

--
Eric Norum <[email protected]>
Advanced Photon Source
Argonne National Laboratory
(630) 252-4793




References:
RE: asyn problem tanushyam bhattacharjee

Navigate by Date:
Prev: RE: asyn problem tanushyam bhattacharjee
Next: CA link behavior Geoff Savage
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: asyn problem tanushyam bhattacharjee
Next: CA link behavior Geoff Savage
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·