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  <20132014  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  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Communications with serial/LAN devices not using string oriented data
From: Andrew Johnson <[email protected]>
To: [email protected]
Date: Fri, 24 May 2013 15:15:04 -0500
Hi Rod,

On 2013-05-23 Rod Nussbaumer wrote:
> We have been asked to provide support for a device that communicates
> serially using packets of binary data. Ordinarily for such tasks I would
> use streamDevice, but the command protocol for this device (a CPI RF
> amplifier) is all binary, not strings, and even includes the requirement
> to byte stuff when framing characters are in the packet payload, as well
> as compute checksums on the packets.
> Any recommendations about how to approach this kind of problem? There
> are a LOT of different commands required to operate this device.

Should you wish to look at an alternative to Mark's C++ classes and Eric's 
Interpose layer approach, I wrote a driver for the binary DirectNet protocol 
which uses Asyn for serial connectivity but has its own device support.  I 
might not write my own device support nowadays, but this code may give some 
hints on writing your own code that makes use of Asyn serial.  This is fairly 
old now though, so the recommended way of doing stuff like connection 
management has probably changed since I wrote this.
  http://www.aps.anl.gov/epics/download/modules/directNetAsyn1-3.tar.gz

- Andrew
-- 
It is difficult to get a man to understand something, when his salary
depends upon his not understanding it. -- Upton Sinclair

References:
Communications with serial/LAN devices not using string oriented data Rod Nussbaumer

Navigate by Date:
Prev: Re: dbFreeLink called but link type unknown Michael Johnson
Next: Re: dbFreeLink called but link type unknown Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Communications with serial/LAN devices not using string oriented data Zenon Szalata
Next: CONNECTING SIEMENS CPU314C-2 PN/DP Papu, Joseph
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·