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 2025 | 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 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Stream Device With Parameters |
From: | Dirk Zimoch <[email protected]> |
To: | Gorka Ronda <[email protected]> |
Cc: | "[email protected]" <[email protected]> |
Date: | Tue, 14 Sep 2010 15:36:12 +0200 |
c4 { out 0xc0 0x04 0xfb $2 $1 0x00 0x00 0x00 0x00 "%<xor>"; ... }
Hello everyone,
Using streamDevice, How can I run the command dbtr like a function with parameters? Something like:
Function (parameter 1, parameter 2)
How do I have to write the protocol and record? There are currently as follows:
HI = \x04;
LO = \x57;
cmd4 = \xC0\x04\xFB${HI}${LO}\x00\x00\x00\x00%<xor>;
c4 {
out "\$cmd4";
in "%*4r";
}
record(bi, "$(P):$(R):C4")
{
field(DESC, "Command 4")
field(DTYP, "stream")
field(INP, "@devwbc6600.proto c4 $(PORT) $(A)")
}
What I want is not to specify the values of the variables HI and LO in the archive .proto. I want to give them values when I call the command dbtr (another command to process the records?), to give these variables the hexadecimal value I want, each time I run the command.
Thanks in advance,
Gorka