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

Subject: Streamdevice extract bytestream
From: <Stanley.He@csiro.au>
To: <tech-talk@aps.anl.gov>
Date: Wed, 8 Jan 2014 23:43:30 +0000
I'm using StreamDevice to receive unsolicited bytestream messages from a device with the message format: 0x10 0x02 ... data ... 0x10 0x03 CRC-bytes.

In my protocol file, I have:
Terminator = DLE ETX;
ExtraInput = Ignore;

getSerial {
	out "\x10\x02\x11\x11\x01";

	#message tag is \x11
	in "\x10\x02\x21\x11%(\$1:serial.VAL)0r";
}

however it is only storing a single byte into the serial record. How do I extract multiple bytes?

Replies:
Re: Streamdevice extract bytestream Dirk Zimoch

Navigate by Date:
Prev: Re: VLANS designing,Geographical vs functional? Maren Purves
Next: Streamdevice extract bytestream Stanley.He
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017 
Navigate by Thread:
Prev: Re: VLANS designing,Geographical vs functional? Konrad, Martin
Next: Re: Streamdevice extract bytestream Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·