Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
Refining serial I/O
slip.cougan
Take the following senario:
Main zone SIO contains the parameter: Cable\x0D Secondary SIO zone contains the parameter: Zone 2 Cable\x0D Now of course both these events will fire if I send: Zone 2 Cable\x0D This is the expected behaviour from a serial I/O. Is there a way to make the SIO more choosy? So if I send Zone 2 Cable\x0D it does not trip the main zone event. Thanks gary |
Matt
--- In Crestron@..., "slip.cougan" <slip.cougan@...>
wrote: Cable\x0D This is the expected behaviour from a serial I/O.What's the concept of using the SIO? Are you using serial strings into the SIO to switch sources from the outputs? Maybe look at using analog init's instead? |
slip.cougan
Sorry, these are returned strings from the device, I was simulating
toggle quoted message
Show quoted text
the strings in debugger. All my modules use analogs for source selects (I don't do digitals anymore :) ) g --- In Crestron@..., "Matt" <mjrtoo@...> wrote:
|
lunarteq
Assuming you mean strings coming into the SIO, have you tried removing
toggle quoted message
Show quoted text
spaces in the string and/or replace them with other characters i.e. "Cable\r" & "Zone2-Cable\r"... this effectively makes the second string one word so the other parameter (or other SIO) cant match it. ChipG --- In Crestron@..., "slip.cougan" <slip.cougan@...> wrote:
|
Chip Moody
An incoming "Zone2-Cable\r" will trigger BOTH "Cable\r" and
"Zone2-Cable\r" parameters. "Cable\r" is still a subset of the incoming string and a valid match... - Chip --- In Crestron@..., "lunarteq" <lunartech@...> wrote: using analog init's instead? |
Chip Moody
How about making "Cable" into "Zone 1 Cable" instead? Valid option?
toggle quoted message
Show quoted text
- Chip --- In Crestron@..., "slip.cougan" <slip.cougan@...> wrote:
|
danrobinanna
At the risk of sounding stupid, it would seem like a simple truth
table would take care of this. When the string is received, both will go high (or low) on the same wave. Zone 1 = 'cable' H and 'zone 2 cable' low Zone 2 is fine right out of the SIO. If you want it to go high on the same wave, just put it in the truth table as 'zone 2 cable' h with X for 'cable' or you could detect the \r and use it to clear a SR. Then detect the 'Zone 2 ' and set the SR. Then detect the cable and use the SR's output to route the pulse. The pulse will be one save long because the incoming \r will clear the 'cable' output. I might do this if there were a lot of Zone 2 commands and use two buffers (one each on the output of the SR) to send the commands where you want them. I apologize if I'm missing something tricky. --- In Crestron@..., "Chip Moody" <cfm@...> wrote: removing i.e.spaces in the string and/or replace them with other characters it."Cable\r" & "Zone2-Cable\r"... this effectively makes the second wrote: simulating digitalsthe strings in debugger. Zone 2anymore :) ) stringsCable\x0D it does not trip the main zone event.What's the concept of using the SIO? Are you using serial atinto the SIO to switch sources from the outputs? Maybe look usinganalog init's instead? |
to navigate to use esc to dismiss