Thanks Jeremy!
Only use I can see for the Special versions would be if you want to mux the
strings in SIMPL as well as demux them -- there isn't a non-special
multiplexor symbol for some reason. Or maybe the Special versions can be
used with some device protocol? I'm not really sure why they exist.
Yeah the missing "non-special" multiplexor seems a bit strange.
The special symbols include data length and a checksum according to the
docs, so it could potentially be better for lossy links.
Also with the hdr/list approach, it seems like you could have several SMRX
symbols with different hdr/list demultiplexing the same serial signal (or
you could transmit data with a hdr that is not defined in a particular
program). That could come in handy..
Thanks again, will give it a go :)
-noob
--- In Crestron@..., Jeremy Weatherford <jweather@...> wrote:
Sure, it's useful for routing lots of serial signals together:
STRING_OUTPUT MuxOut$;
//...
STRING value[250]; // value to send
INTEGER join; // join number to use
//...
makestring(MuxOut$, "\x1B%c%s", 0x20+join, value); // documented in SDEMUX
help file
MuxOut$ should be connected to a Serial Demultiplexor (SDEMUX) with form=1.
The selector value is not used. If join=3 in the code above, the value
will come out of out3$. If there's a possibility your value will contain
\x1B it needs to be escaped by doubling it (\x1B\x1B) so it doesn't start a
new message.
I've used this as an "integration" protocol when the touchpanel just needs
to display strings from a PC application for instance -- it makes a nice
clean way to delimit messages in a TCP stream, and no S+ is required to
parse it. See also the XSIG protocol if you want something fancier.
Only use I can see for the Special versions would be if you want to mux the
strings in SIMPL as well as demux them -- there isn't a non-special
multiplexor symbol for some reason. Or maybe the Special versions can be
used with some device protocol? I'm not really sure why they exist.
On Tue, Jun 18, 2013 at 1:39 AM, Crestron Noob <crestronoob@...>wrote:
Hi, has anyone used S+ string output to feed Serial Demultiplexor
or the "Special" version?
I have a module that desperately cries for configurable number of
serial outputs (without recompiling), but that's not possible since
it already has an expandable analog output array.
Looking for caveats, issues or success stories. Example code
would be a bonus if you have it :)
thanks
noob
------------------------------------
Check out the Files area for useful modules, documents, and drivers.
A contact list of Crestron dealers and programmers can be found in the
Database area.
Yahoo!
Groups Links
--
Jeremy Weatherford
[Non-text portions of this message have been removed]