New way to get MCE Remote signals in EG (for Vista/Win7)

If you have a question or need help, this is the place to be.

Re: New way to get MCE Remote signals in EG (for Vista/Win7)

Postby OdieGiblet » Mon May 10, 2010 6:25 pm

Thanks for this service! I had my system all perfectly configured and setup with the MCE Remote plugin. Then I changed my media center user to a basic user and bam, didn't work anymore. But this seems to be working great.

But I'm getting accidental double presses on the remote when using this plugin. It's not something I had a problem with when I was using the standard MCE Remote plugin. I see the original plugin has a "button release timeout" setting for this kind of problem. Is there something in the python scripts for this plugin that I can tweak? I didn't see anything just skimming the files.
OdieGiblet
 
Posts: 7
Joined: Mon May 10, 2010 8:54 am

Re: New way to get MCE Remote signals in EG (for Vista/Win7)

Postby jitterjames » Mon May 10, 2010 6:31 pm

unless you use autorepeat in your macro you should be able to hold the key down as long as you want without getting a double press (at least that's the case for me). I guess it could have something to do with your particular "flavour" of remote.
User avatar
jitterjames
Experienced User
 
Posts: 649
Joined: Thu Aug 13, 2009 4:36 pm
Location: Quebec, Canada

Re: New way to get MCE Remote signals in EG (for Vista/Win7)

Postby OdieGiblet » Mon May 10, 2010 7:00 pm

Naw, I press the Ok button on the remote and it shows up as being pressed twice in EventGhost.
OdieGiblet
 
Posts: 7
Joined: Mon May 10, 2010 8:54 am

Re: New way to get MCE Remote signals in EG (for Vista/Win7)

Postby jitterjames » Mon May 10, 2010 7:12 pm

then you probably either have a *weird* remote, or you are using the wrong version of the plugin
User avatar
jitterjames
Experienced User
 
Posts: 649
Joined: Thu Aug 13, 2009 4:36 pm
Location: Quebec, Canada

Re: New way to get MCE Remote signals in EG (for Vista/Win7)

Postby jitterjames » Mon May 10, 2010 7:15 pm

it may only happen with certain buttons if your remote sends alternate signals for the same button...

try different buttons, and other remotes that you have lying around to see if it happens consistently. I think something similar was happening to someone else if you want to search through the topic thread.
User avatar
jitterjames
Experienced User
 
Posts: 649
Joined: Thu Aug 13, 2009 4:36 pm
Location: Quebec, Canada

Re: New way to get MCE Remote signals in EG (for Vista/Win7)

Postby OdieGiblet » Wed May 12, 2010 6:08 pm

Skimmed the 20 pages on this post but didn't really find anything. So I took an hour and learned how to write a little python found what I needed to change and added a 0.3 second delay before buttons are allowed to repeat. I'll probably tweak the time to get it just right. But voila! Here's the code.

Changed this:
Code: Select all

                            if a > 6500: #button held?
                                if self.CodeValid(self.result):
                                    #eg.PrintNotice("Sending ir code %s"%str(self.result))                                   
                                    self.plugin.irDecoder.Decode(self.result, len(self.result))
                                self.result = []


To this:
Code: Select all
                            if a > 6500: #button held?
                                if self.CodeValid(self.result):
                                    if canRepeatAgainTime < time.clock():
                                        #eg.PrintNotice("Sending ir code %s"%str(self.result))                                   
                                        self.plugin.irDecoder.Decode(self.result, len(self.result))
                                        canRepeatAgainTime = time.clock() + 0.3;
                                self.result = []
OdieGiblet
 
Posts: 7
Joined: Mon May 10, 2010 8:54 am

Re: New way to get MCE Remote signals in EG (for Vista/Win7)

Postby jitterjames » Thu May 13, 2010 11:52 am

If these are changes that you made to the original plugin made by Stottle, perhaps there is a way to incorporate them into the plugin as an option.

I don't think most remotes require it (mine doesn't), but if others could benefit from this modification, it would be nice to have the ability to switch it on and play with the delay from the plugin settings menu.

what do you think Stottle?
User avatar
jitterjames
Experienced User
 
Posts: 649
Joined: Thu Aug 13, 2009 4:36 pm
Location: Quebec, Canada

Re: New way to get MCE Remote signals in EG (for Vista/Win7)

Postby djarewe » Mon Jun 21, 2010 12:15 am

Whaah. I'm getting crazy right here!

After dealing with for two hours, I still have to write this post.

I get managed to install the plugin and add it to EG. But when I want to add a macro, there's just no action that I can select?!
What the hell am I doing wrong??

Probably just a noob thing, but some help would be appreciated :)

Gr,
Rick

PS: I installed in on a W7-machine with EG 0.3.7.r1462
djarewe
 
Posts: 2
Joined: Mon Jun 21, 2010 12:10 am

Re: New way to get MCE Remote signals in EG (for Vista/Win7)

Postby stottle » Mon Jun 21, 2010 12:30 am

There are two plugins for MCE.

One (this one) is intended to get an MCE IR Remote/Receiver to generate events in EG.

The other (here) is to allow you to control MCE (trigger MCE actions) from EG.

Are you looking for the other plugin? If not, which actions are you looking for?

Brett
stottle
Plugin Developer
 
Posts: 636
Joined: Sun Apr 26, 2009 10:59 pm

Re: New way to get MCE Remote signals in EG (for Vista/Win7)

Postby jitterjames » Mon Jun 21, 2010 12:36 am

maybe you can explain a little bit more about what you are trying to do, and what you are doing. What is working and where exactly do you get stuck. You could even post a link to a youtube video or some screen shots.

What programs or devices are you trying to control and how? what kind of remote do you have? What other plugins are you using and can you create macros for them? If you can give some details you are more likely to get some constructive help.

If you haven't already done so and you are new to event ghost you should read the short manual.
User avatar
jitterjames
Experienced User
 
Posts: 649
Joined: Thu Aug 13, 2009 4:36 pm
Location: Quebec, Canada

Re: New way to get MCE Remote signals in EG (for Vista/Win7)

Postby djarewe » Mon Jun 21, 2010 5:47 pm

Okay, this is my setup right now:

[iMon PAD (RC)] ------------IR-------------> [iMon receiver (in pc)]
[STB RC] ------------------IR-------------> [Settopbox] -----Video---> [PC]


But I want to use only one remote. That's why I bought the OVU4120 with IR Blaster.

So what I like to have is this:
[iMon PAD (RC)] -------IR (Ch+)---------> [iMon receiver (in pc)]~[PC]~[OVU4120 IR Blaster] -------IR (Ch+ STB)-------> [Settopbox]

I use VLC to watch TV. (I want to intigrate this into XBMC later).

I added the iMon plugin already. As far as I know, this works. But when I want to add the MCE remote-plugin and pless "Learn", EG hangs. That's why I downloaded the plugin from the first page. I downloaded the fix-version first, but probably I am doing something wrong. It's also new to me that there are 2 different plugins. Can you tell me more about that (and maybe some instructions for installing)?

Thanx :)

Edit:
I installed the second plugin from stottle (thanx for that). I can select some actions right now, but can't find the SendProntoCode action..

Edit2: Guys, I (almost) had it working.. I somewhere found a __init__.py-file that gave me the 'power' to transmit IR signals. However, after programming 2 buttons, EG started to act weird. When learning a signal, EG receives and displays the IR code and crashes. Had this a few times (also after rebooting).. I almost had it! :cry:
djarewe
 
Posts: 2
Joined: Mon Jun 21, 2010 12:10 am

Re: New way to get MCE Remote signals in EG (for Vista/Win7)

Postby ctran503 » Fri Jun 25, 2010 5:15 am

THANK YOU VERY MUCH!!! I love this service plug-in you've made. Now I can use EG with XBMC as a "standard" user account!

THANK YOU!
ctran503
 
Posts: 1
Joined: Fri Jun 25, 2010 5:12 am

Re: New way to get MCE Remote signals in EG (for Vista/Win7)

Postby Krazz » Wed Jun 30, 2010 10:39 am

Hi Stottle and thank you for the plugin.

I used to run Win XP before and everything worked like a charm with the original MCE-plugin, but now I installer Windows 7 32-bit and had to find other solutions. Unfortunately it's not working out like I hoped.

My setup is built from my Philips Pronto remote (TSU-9600) which sends commands over WiFi (TCP/IP) to EventGhost on my HTPC. EventGhost then blasts (I'm using the MCE USB receiver/blaster) the commands needed for my equipment (TV, receiver, and so on).

When I use the "Test IR Transmit capability" tester the IR-emitters on my equipment is blinking which means that everything is hooked up correctly.
Then when I move on and add the "Transmit IR" and my Pronto code nothing happens with the IR-emitters.

The Pronto code for increasing the volume on my receiver is the following:
Code: Select all
FF AB 53 8C 1E 8C 0A 8B 1F 8C 09 8C 09 8C 1E 8C 09 8C 1E 8C 09 8C 1F 8B 0A 8B 1F 8C 1E 8C 09 8C 1E 8C 09 8C 09 8C 1F 8B 0A 8B 1F 8B 0A 8C 09 8C 09 8C 09 8C 1E 8C 0A 8B 1F 8B 0A 8B 1F 8B 1F 8C 1E 8C 1E 8C 7F 7F 7F 7B


The error I get in the log is the following:
Code: Select all
   Error in Action: "Microsoft MCE Remote - Vista/Win7: Transmit IR: FF AB 53 8C 1E 8C 0A 8B 1F 8C 09 8C 09 8C 1E 8C 09 8C 1E 8C 09 8C 1F 8B 0A 8B 1F 8C 1E 8C 09 8C 1E 8C 09 8C 09 8C 1F 8B 0A 8B 1F 8B 0A 8C 09 8C 09 8C 09 8C 1E 8C 0A 8B 1F 8B 0A 8B 1F 8B 1F 8C 1E 8C 1E 8C 7F 7F 7F 7B"
   Traceback (most recent call last) (1462):
     File "C:\Program Files\EventGhost\eg\Classes\ActionBase.py", line 168, in CallWrapper
     File "C:\Program Files\EventGhost\plugins\MceRemote_Vista\__init__.py", line 75, in __call__
     File "C:\Program Files\EventGhost\plugins\MceRemote_Vista\pronto.py", line 246, in Pronto2MceTimings
   Exception: Don't have a decoder for pronto format FF


Do you know what the problem is?
Krazz
 
Posts: 9
Joined: Fri Nov 27, 2009 11:36 pm

Re: New way to get MCE Remote signals in EG (for Vista/Win7)

Postby stottle » Wed Jun 30, 2010 12:35 pm

The problem is that what you provided doesn't look like a pronto code. Take a look here. Besides 0000, the encoder can handle 6000/6001 and a few others (I'd have to go back and look at the code to see). It looks like what you have might be timings without the preamble, but I would expect the last timing to be a long off pulse, which I don't see.

Where'd you get the code?

Brett
stottle
Plugin Developer
 
Posts: 636
Joined: Sun Apr 26, 2009 10:59 pm

Re: New way to get MCE Remote signals in EG (for Vista/Win7)

Postby Krazz » Wed Jun 30, 2010 12:55 pm

The codes come from ProntoEdit Professional which is the editor used to program the Pronto remotes. The Pronto remote has the ability to learn IR-signals so this volume code I used previously is a code I learned with my Pronto into ProntoEdit, then copied into EventGhost back when I used WinXP and it has been working there for about two years now.

I will look at your link in a few hours to see what is going on.

How come my codes used to work in the original MCE plugin though?

*** EDIT ***
I just remembered that this is not how I got these codes. I think I got them by learning them into EG using the USB-UIRT (that I also have but don't use). But I'm not even sure about that any longer. One thing I AM sure of though, is that these codes worked with the original MCE plugin.

Either way, I opened up the ProntoEdit Professional where I store the IR-codes, and low and behold, they look like this:
0000 0067 0000 0022 0156 00AA 0016 003F 0016 0015 0016 003F 0016 0015 0016 0015 0016 003F 0016 0015 0016 003F 0016 0015 0016 003F 0016 0015 0016 003F 0016 003F 0016 0015 0016 003F 0016 0015 0016 0015 0016 003F 0016 0015 0016 003F 0016 0015 0016 0015 0016 0015 0016 0015 0016 003F 0016 0015 0016 003F 0016 0015 0016 003F 0016 003F 0016 003F 0016 003F 0016 03FD

And what's ever better is that they work with your plugin. In other words, I screwed up. ;)
Krazz
 
Posts: 9
Joined: Fri Nov 27, 2009 11:36 pm

PreviousNext

Return to General Support

Who is online

Users browsing this forum: Bing [Bot] and 2 guests