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  2017  2018  2019  <20202021  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  2017  2018  2019  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Stream protocol problem
From: Mark Rivers via Tech-talk <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Mon, 14 Sep 2020 14:51:52 +0000
I am trying to help someone with a Stream protocol file, and I don't understand what is wrong.


This is the protocol.  It should send the value in binary using %.2r and end with a checksum.

settunermode {out "\x43\x01\x54\x4D%.2r\x00\x00%<sum16>";in "ACK";}


This is the record:

record(mbbo, $(P)settunermode) {
                field(DESC, "RF source")
                field(DTYP, "stream")
                field(OUT,"@AJA-powersupply.proto settunermode $(PORT)")
                field(ZRVL, "1")
                field(ONVL, "2")
                field(ZRST, "AUTO")
                field(ONST, "MANUAL")
}


This is the asynTrace output with TRACEIO_ESCAPE and TRACIO_HEX.

2020/09/14 08:36:51.484 \\.\COM16 write 20
C\001TM%.2r\000\000%<sum16>\r\n

43 01 54 4d 25 2e 32 72 00 00 25 3c 73 75 6d 31 36 3e 0d 0a


The problem is that it is sending the literal strings %.2r and %<sum16> rather than substituting them.  Everything else in the output is correct.


What am I doing wrong?

Thanks,

Mark


Navigate by Date:
Prev: Re: SoftIOC Performance Evaluation Ralph Lange via Tech-talk
Next: Profibus Termotek Chillers IOC Ernesto Paiser via Tech-talk
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  2018  2019  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Re: SoftIOC Performance Evaluation Konrad, Martin via Tech-talk
Next: Profibus Termotek Chillers IOC Ernesto Paiser via Tech-talk
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  2018  2019  <20202021  2022  2023  2024 
ANJ, 15 Sep 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·