RTI to AMX via Serial
cheekytigerapps
Posts: 37
I am doing a job in-which we are using RTI remotes to control an AMX system. To do that I am planning on using an RTI XP-8 and connect it to the AMX master via RS232 and associate every button on the RTI remote with an RS232 command and send it to the master.
I was wondering if anyone has done this before and could share some tips. Has anyone made a driver/module to do this as I know that their is one available for RTI to ********.
P.S: I know you can do it over RF with AMX RF Ants but there are not enough RF codes and.
I was wondering if anyone has done this before and could share some tips. Has anyone made a driver/module to do this as I know that their is one available for RTI to ********.
P.S: I know you can do it over RF with AMX RF Ants but there are not enough RF codes and.
0
Comments
The protocol I setup is as follows:
Header:Action:Zone
Where Header is something like PC (power control), VC (volume Control), SS (source select), BP (button push), etc.
So a command would look something like this:
PC:01:03
That would turn on zone three.
You can setup the protocol however you like though.
Use the virtual as you would any AMX device and have full push/hold/release control from RTI.
If we need to do it again, I would create an iP driver for RTI that did the same thing. Load up a driver for each remote you have. They loved the T1B's so much we wound up doing 12 of them around the house and that got expensive on both the RTI and AMX side port wise.
Kevin D.
Just to simplify my burden. I was wondering if anyone could post some sample code.
Once i have finished this project with RS232 I may write an RTI driver to allow for IP control or at least simplify the procedure (or something more native).
Any suggestions or sample code? Thanks!
Another problem might have bee your wait 5 clear buffer since when the wait expires it may fire just as data comes in prior to the data event triggering or maybe it fires and dumps the buffer before the you have a complete string although that's not really likely with these short strings but for that reason I always like to cancel the wait and then wait so that it doesn't dump until the data event handler has been idle for the wait period.
This code isn't tested or compiled so there might be error but this is sort of how would deal with it and might fix you issues with multiple room pushes at the same time.
Edit:
Looking at the code I posted there's a potential for the while loop to hang if there isn't 3 or more characters after the CH. If no more data comes in it will time out when the buffer dumps but that still locking up the processor for the duration of the dump wait. If you could add a delimiter like ; or $0d,$0a that would simplify things but you could try changing the while to this you can't: this might work but again it's untested, then you could get rid of the if() that follows the while. Best thing would be to have the RTI strings sent with a delimiter.
Thanks for taking the time to assist me on this. If I use a delimiter, what would be the best approach on the while loop and how would the code look like? I can format my RTI strings like this:
RM01CH001\r
or
01:001\r
RM01 = Room Number, always in 2 digits, like 01, 03, or 13
CH001 = Channel number, always in 3 digits, like 001, 056 or 999
\r = Carriage Return from RTI
I just ordered some RTI parts today to try this solution at home before I deploy it on the field. I will let you know if it works after I test it.
Again, I appreciate your help.
Ricardo
Krestron uses a URC remote so I wonder why AMX doesn't try and re-brand some RTI models and give up a trying to make there own.
+1000 on this. But it would take a desire to sell in residential for this to make sense for AMX.