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  2013  2014  2015  2016  <2017 Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017
<== Date ==> <== Thread ==>

Subject: Re: StreamDevice hexa checksum in lowercase characters
From: "Lang, Keenan C." <klang@aps.anl.gov>
To: "Paduan Donadio, Marcio" <marcio@slac.stanford.edu>, "Tech-talk@aps.anl.gov" <Tech-talk@aps.anl.gov>
Date: Wed, 6 Sep 2017 21:48:30 +0000

If this is running on an operating system that has the PCRE library, you can enable the streams regex converter 


http://epics.web.psi.ch/software/streamdevice/doc/setup.html


This will allow you to find and replace substrings before the string gets outputted. Unfortunately, the result looks a bit ugly:


out STX "590000%01<sum>%#/A/a/%#/B/b/%#/C/c/%#/D/d/%#/E/e/%#/F/f/";


From: tech-talk-bounces@aps.anl.gov <tech-talk-bounces@aps.anl.gov> on behalf of Paduan Donadio, Marcio <marcio@slac.stanford.edu>
Sent: Wednesday, September 6, 2017 1:14:44 PM
To: Tech-talk@aps.anl.gov
Subject: StreamDevice hexa checksum in lowercase characters
 

I have a TC-720 temperature controller that needs to receive an hexadecimal checksum:


Protocol file: 

(...)
read_low_alarm1
{
        out STX "590000%01<sum>";
        in STX "%4x%01<sum>";
}

(...)


The output was:

*5900002E\r


The problem is: that final "E" must be "e" lowercase, or the equipment return an error code. How can I make <sum> output a lowercase character?


Thank you,


Márcio Paduan Donadio
Control Systems Engineer
SLAC National Accelerator Laboratory
Advanced Instrumentation for Research Division
2575 Sand Hill Rd
Menlo Park CA 94025
Office (650) 926-5007​



Replies:
Re: StreamDevice hexa checksum in lowercase characters Paduan Donadio, Marcio
References:
StreamDevice hexa checksum in lowercase characters Paduan Donadio, Marcio

Navigate by Date:
Prev: StreamDevice hexa checksum in lowercase characters Paduan Donadio, Marcio
Next: Re: StreamDevice hexa checksum in lowercase characters Paduan Donadio, Marcio
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017
Navigate by Thread:
Prev: StreamDevice hexa checksum in lowercase characters Paduan Donadio, Marcio
Next: Re: StreamDevice hexa checksum in lowercase characters Paduan Donadio, Marcio
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017
ANJ, 06 Sep 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·