View Full Version : Scheduling USB UIRT transmit IR to change channel
brummers
March 17th, 2006, 11:31 PM
I set up an action macro to send IR to my XM receiver to change the channel to 165.
Macro
|-Action transmit 1
|-Wait 200ms
|-Action transmit 6
|-Wait 200ms
|-Action transmit 5
|-Event from scheduler
This works great when I run the macro (F5)
When it runs from the scheduler event it misses the 1 and transmits 65 twice.
Im stumped.
I am also having trouble changing the channel to 166. It will change to 16 when I press F5 with a similar macro as above.
Rob H
March 17th, 2006, 11:38 PM
Sounds as though those waits either aren't long enough or are being ignored for some reason.
Not sure what's happening with the scheduler event though. Presumably the event only shows up once in the logger?
You could try adding a scripting event to your macro that just prints something - then check the Lua console to see if the macro is actually being run twice.
You don't happen to have a duplicate of this macro around do you? Try disabling this one and then see if the scheduled event still tries to change channel.
brummers
March 18th, 2006, 08:15 AM
Found the problem:
Opened the logger and watched as I pressed the remote that I was spoofing. There were 2 different codes that toggled for each button. (I called them odd and even)
I recorded all of the numbers (odd and even) and the enter key then rewrote my macro so it started with enter and then the 3 digits. The enter served to "reset" the receiver to accept the 3 digits as long as they alternated odd and even.
I guess that before it was just dumb luck that some were set up correctly when I tested with F5 and the receiver was expecting the other state when I was testing with the scheduler.
I would suspect this is nothing new and has been encountered before. Is there a cleaner solution than this?
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.