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  2013  2014  2015  2016  <20172018  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  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: StreamDevice hexa checksum in lowercase characters
From: "Lang, Keenan C." <[email protected]>
To: "Paduan Donadio, Marcio" <[email protected]>, "[email protected]" <[email protected]>
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: [email protected] <[email protected]> on behalf of Paduan Donadio, Marcio <[email protected]>
Sent: Wednesday, September 6, 2017 1:14:44 PM
To: [email protected]
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  <20172018  2019  2020  2021  2022  2023  2024 
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  <20172018  2019  2020  2021  2022  2023  2024 
ANJ, 21 Dec 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·