iRed2

troubleshoot an usb irtrans module

 hi, i've had this module since 2007 and recently it's not been working well. i've switched usb cables/ports, tried it on other computers, etc. but when it's first plugged in, the status led flashes green, then red, then nothing. i have a mac mini running 10.7.2 and ired2 and the ftdi driver 2.2.16, which has been working since last summer...could this be a software issue, or is the hardware failing? any tips/tricks to figure this out?

 

thanks,

pete

Lion - iRtrans USB and iRed2

 Hello,

Upgraded to Lion. iRed2 cannot find iRTrans USB. Anyone else having this problem? Is it iRed2 or is it the iRTrans USB driver?

Thanks!

Ted

 

 

Converting Pronto CCF code

Hi.

Searched everywhere and I'm getting increasingly confused. I hope you can help me.

I am trying to implement discrete codes for an LG television. LG provide a hex code and I have found the CCF code. For example, discrete Power On hex is "C4". I've found two version of long code (claimed to work), first is "0000 006d 0022 0002 0157 00ab 0016 0015 0016 0015 0016 003f 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 003f 0016 003f 0016 0015 0016 003f 0016 003f 0016 003f 0016 003f 0016 003f 0016 0015 0016 0015 0016 003f 0016 0015 0016 0015 0016 0015 0016 003f 0016 003f 0016 003f 0016 003f 0016 0015 0016 003f 0016 003f 0016 003f 0016 0015 0016 0015 0016 05f3 0156 0055 0016 0e4d" and second is "0000 006D 0022 0002 0157 00AC 0015 0016 0015 0016 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0041 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 0016 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0689 0157 0056 0015 0E94".

When I paste either into the Advanced box of iRed 2 it appears to convert it to "[N]2[1]8992 2232[2]576 400[RC]1[RP]0[FREQ]38[SB][RS][D]S0". This doesn't appear to be long enough. For reference, when I teach iRed the Power toggle button using the remote I get something like "[N]5[1]8984 4464[2]640 472[3]592 1672[4]8992 2272[5]60040008[RC]1[RP]0[FREQ]38[SB][D]S00100000110111110001000011101111320" where the last portion shows up in the Basic code box. Am I doing something wrong in conversion?

I thought the long codes above might be incorrect, but every reference I can find to LG televisions shows the same codes. For re

I'm not sure what other information you might need, but please ask. Can you suggest how I can implement this discrete code? I have a few devices I need discrete codes for, but I'm not sure what tools to use.

Thanks so much, Greg

Applescripts stopped working

I have 2 irTrans modules and have learned a number of IR commands in iRed2 which work perfectly when I execute them from the Action Editor.  

My home automation system is centered around Indigo and I wrote AppleScripts for Indigo 4 to tell iRed2 to fire the appropriate IR actions.  When I wrote them and tested them they worked perfectly and also worked perfectly from my iPhone using Indigo Touch.  A couple of days ago I had to reboot my Mac Mini where Indigo 4 and iRed2 both run, and none of the scripts from Indigo 4 work anymore with iRed2, but everything else in Indigo 4 continues to work fine.  I've been debugging this and although these scripts are still not working I've narrowed the problem considerably, but I am now even more mystified.

Basically, because I want to have a generic handler to which I can simply pass parameters (instead of hardcoding each script) I wrote a very simple script that is loaded in Indigo when it starts up which contains the code for the handler I am using to communicate with iRed2.  For debugging this problem I eliminated everything except the following:

 on RemoteControl(TheDevice, irCode, TheModule)
  try
    tell application "iRed2" to perform action Code irCode of Device TheDevice using module TheModule
on error eStr number Errornumber
   tell application "IndigoServer"
    log "Error: " & Errornumber & " - " & eStr & ".  Could not transmit to iRed2 --> Device: " & TheDevice & ", code: " & irCode & TheModule using type         "iRed2:"
           end tell
  end try
end on RemoteControl
 
Then, for each of the functions of the various audio/visual components in each room, I've set up individual "Action Groups" in Indigo 4, each of which executes an embedded AppleScript, such as the following example to display the DirecTV menu:

RemoteControl("DirecTV/Remote", "Menu", value of variable "Room")

All of those worked like a charm until two days ago when I had to reboot the Mac Mini.  Now when I run any of those Action Groups in Indigo 4 the handler script generates an error which appears in the Indigo event log like this:

Action Group        DirectTV Menu
iRed2:              Error: -43 - File iRed2.app wasn’t found..  Could not transmit to iRed2 --> Device: DirecTV/Remote, code: Menu IRTrans LAN 43988

iRed2 is running and the file "iRed2.app" is very definitely in the Applications folder.  But it gets much stranger....

To test, I substituted the same "tell" statement contained in the handler script for the RemoteControl(xxxxxxx) call in the embedded AppleScript for the Action Group.  So the embedded script looked like this (exactly the hard coded script I want to avoid):

tell application "iRed2" to perform action Code "Menu" of Device "DirecTV/Remote" using module "IRTrans LAN 43988" 

That works.....

It is precisely the same code.  The only difference is in one case it is called through the handler script-- which can't find iRed2--and in the other case it is called as an embedded script, and it finds iRed2 with no problem.

Help!!!!!!

 

Implementing modality, or behaving differently depending on which application is on top

I'm a newbie to iRed2 (though I played some time with the original iRed years ago).

Now I would like to teach my Mac to respond to the IR codes from my TV's remote control.  So far so good.  I have been able to design a new "Remote" and add a few AppleScript actions using the Action Editor.  

Now, what I would like to do is to customise what happens when I press a physical remote control button on my TV remote, to depend on which application is the foremost application on the Mac.  For example, if EyeTV is on the front, I'd like to command it, using its specific AppleScript commands. OTOH, if FrontRow is on the front, I'd like to command it instead.

In other words, I'd like to make the user interface modal, i.e., making the behaviour to depend on the current state, or foremost application.  I know how to do that in AppleScript, but that would require quite a lot of repeated code in each AppleScript action.

So, I'm wondering if there is any support for such modal behaviour build in in iRed2, or if there is a way to change the Triggers programmatically?  I could imagine that I could have multiple "Remote"s, each with the same IR codes but different actions.  Then I could perhaps change what "Remote" is active, or what is triggered on each IR code.

I have been looking at the iRed2 AppleScript library, but haven't found anything that I could try for this.

--Pekka Nikander

 

ired2 not changing channels properly...

This is beginning to really frustrate me. My issue occurs in two different ways when utilizing ired2 in conjunction with eyetv3. Sometimes when changing channels via eyetv it changes to the wrong tv channel. For example HBO is 651. It will change the channel to 51. Somehow 651 is dialed in but it skips the 6. This happens when you manually choose your channel. Also, it doesn't always happen so I can't reproduce it every time. Another scenario is if I set up a scheduled recording and it acts the same by going to the wrong channel. What can I do to fix this? If at all. Having ired2 and irtrans is becoming more of a hindrance than a benefit because it's so erratic.

Thanks,

Scott

Navigation action randomness

 I create a Navigation action to go to a remote.

Within the Action editor this seems to work as described.  Double clicking the action changes the remote in the main window to the target remote.

That is as good as it gets.

If I attach that same Navigation action to a button in another remote, then clicking it changes the main window to the default no remote selected.  Failure 1.

If I include that action in a multiple action attached to a button, it is completely ignored.  Failure 2.

As otherwise described in the web browser access it does nothing, ever.  Failure 3.

Does anyone have an example of a Navigation action that works?

 

Default IR transmitter specification in Prefs

 The preference pane which specifies the default IR transmitter module should also specify the default transmitters on that module as in the Remote tab of the Edit pane.

Just a thought

Confusion about what 'Save' saves!

 I find it very confusing to be clear about what 'Save' actually saves.

Is it only a selected remote if there is one?

I see there are also commands for 'Save Remotes List' and 'Save Library' what do these do exactly?  How many 'Save's are needed to keep the whole setup?  Are any changes saved without a specific user request - preferences perhaps?

How about Tuners as HTML <SELECT> tags

 Hopefully this is sort of self explanatory.

The options on a 'Tuner' seem to me to be strictly alternatives.  So instead of having to use a button for every alternative, why not just display all alternatives as a SELECT?

Syndicate content