EPICS Controls 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  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: binary serial interface
From: "Mark Rivers" <[email protected]>
To: "D. Peter Siddons" <[email protected]>, <[email protected]>
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:[email protected]]
Sent: Thu 6/22/2006 2:03 PM
To: [email protected]
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  2018  2019  2020  2021  2022  2023  2024 
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  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·