Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
<== Date ==> <== Thread ==>

Subject: RE: binary serial interface
From: "Mark Rivers" <rivers@cars.uchicago.edu>
To: "D. Peter Siddons" <siddons@bnl.gov>, <tech-talk@aps.anl.gov>
Date: Thu, 22 Jun 2006 14:14:07 -0500
Pete,
 
You should be able to do that with asyn and custom device support.  You can have pending reads with infinite timeout to handle asynchronous messages from the device.  The support could ask for 6 bytes, and when that arrives, figure out how many more bytes to ask for.
 
Mark
 

________________________________

From: D. Peter Siddons [mailto:siddons@bnl.gov]
Sent: Thu 6/22/2006 2:03 PM
To: tech-talk@aps.anl.gov
Subject: binary serial interface



Hi all,
    I need to interface a USB motor controller which has a protocol
which consists of sequences of binary (i.e. non-ASCII) byte string
commands and responses. No end-of-string character is used, but the
length of the response is coded in one of the first six response bytes.
Some events (limit switches, e.g.) cause responses which are not a
direct response to a command. What is the best tool to use for such a beast?
Thanks,
Pete.




References:
binary serial interface D. Peter Siddons

Navigate by Date:
Prev: binary serial interface D. Peter Siddons
Next: Driver for SBS IP-OPTOIO-8 Luchini, Kristi
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
Navigate by Thread:
Prev: binary serial interface D. Peter Siddons
Next: RE: binary serial interface Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·