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: Maren Purves <[email protected]>
To: "[email protected]" <[email protected]>
Date: Fri, 08 Mar 2013 16:00:26 -1000
Depending on termination and the length of the string you may be
able to use drvAscii even if it isn't ASCII. I have taken apart
a string that is much too long for drvAscii and contains line
feeds in a getTrimmedFrame.c function that is bound in via a
drvAsciiSetRxFunc("/pty/dustm.M", getTrimmedFrame);
statement in the startup script and then take the resulting
string apart in a gensub (we're running 3.13.8).

Sorry it took me a while to reply,
Maren Purves

Mark Rivers wrote:
Sorry I did not notice the R3.13.4 version.
________________________________________
From: [email protected] [[email protected]]
Sent: Thursday, March 07, 2013 12:06 PM
To: Mark Rivers
Subject: RE: Record support for binary serial communications?

Not in 3.13.4 it can't ;-)

Nick Rees
Principal Software Engineer           Phone: +44 (0)1235-778430
Diamond Light Source                  Fax:   +44 (0)1235-446713


-----Original Message-----
From: [email protected] [mailto:tech-talk-
[email protected]] On Behalf Of Mark Rivers
Sent: 07 March 2013 18:05
To: Westfall, Michael D; [email protected]
Subject: RE: Record support for binary serial communications?

How does the device terminate a message?  Do you know in advance how
many characters it will send?

I think streamDevice can probably be used.

Mark

________________________________________
From: [email protected] [[email protected]] on
behalf of Westfall, Michael D [[email protected]]
Sent: Thursday, March 07, 2013 11:40 AM
To: [email protected]
Subject: Record support for binary serial communications?

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.

--
Mike Westfall
Los Alamos



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

Navigate by Date:
Prev: IOC device support ahwwq
Next: Re: EDM Text Control Widget Motif behavior 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? Mark Rivers
Next: Re: Record support for binary serial communications? 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 
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 ·