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.