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: Record support for binary serial communications?
From: Andrew Johnson <[email protected]>
To: [email protected]
Date: Thu, 7 Mar 2013 13:07:43 -0600
Hi Mike,

On 2013-03-07 Westfall, Michael D wrote:
> Does anybody have any tips as how to communicate via a serial interface to
> a device that takes commands and gives responses in binary bytes rather
> than ASCII?  We are using EPICS R3.13.4, and it appears that streamDevice
> is not available, or would require some extensive hacking to get it to
> work. devAscii is available, but since it relies heavily on string
> scanning functions, it will likely choke on any data that contain null
> bytes.

For 3.13.x we mostly used a C++-based module called MPF (Message Passing 
Facility) for handling serial devices, which had its own UART drivers (I think 
it could talk to a local serial port too, but I'm not 100% sure of that).  It 
was capable of handling binary messages, and could also use serial ports that 
were connected to remote (slave) machines.  However it might take a bit of 
learning to adopt that.

I do have one driver and device support that directly opens a local serial 
port on the vxWorks CPU  board and does binary I/O through it, although it may 
be more complicated than you'd like — it talks the Metasys protocol to Allen 
Bradley PLCs.  Whether the code's author (Bob Dalesio) can remember anything 
about though I have no idea, but I can send you a copy if you'd like it.

- Andrew
-- 
There is no such thing as a free lunch.  When invited for lunch,
it is best to check if you are there to eat, or to be eaten.
-- Clive Robinson


References:
Record support for binary serial communications? Westfall, Michael D

Navigate by Date:
Prev: device support Sinclair, John William
Next: Re: Automatic IOC configuration loading Bruce Hill
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: Record support for binary serial communications? Maren Purves
Next: RE: Record support for binary serial communications? peter.owens
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 ·