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