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 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 2017 2018 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Streamdevice extract bytestream |
From: | <[email protected]> |
To: | <[email protected]> |
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?