Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

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.
Post Reply
arjanm
Posts: 13
Joined: Sun Feb 17, 2013 4:50 pm

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

Post by arjanm »

NateEaton wrote:Having done a little digging, it seems like as it should be possible to update the plug-in to accept a port number that would be passed in the header to the Transmit function.

Anyone else know what it would take to update this plug-in to allow us to specify which IR port to transmit on for units (like the original MCE transceiver) that supports it?
I'm also looking for this functionality since I want to control two LED-strips individually.
The header seems to be defined by this line:

Code: Select all

header = pack(7*ptr_fmt,2,int(1000000./freq),0,0,0,1,len(transmitCode))
Can somebody explain the format of this header? What part defines the blaster port?
KairuByte
Posts: 8
Joined: Sat Dec 01, 2012 12:24 am

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

Post by KairuByte »

I don't suppose anyone is around (active) that is capable of modifying (or explaining how to modify) the service? A while back I was trying to use a harmony set up with MCE Keyboard codes (for more remote capability, more codes = more options), and wanted to properly grab them, since they don't always show up as the same unknown code.

I could never get it to compile, and there seems to be a file missing. But I could be wrong and just doing it incorrectly. Maybe someone has some idea?
nonob
Experienced User
Posts: 76
Joined: Tue Dec 06, 2011 6:52 am

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

Post by nonob »

Hi,
I have a harmony 600 remote set as mce remote..
Before, i had a igorusb receiver, it was working fine with EG but i had 2 code received for each button pressed.

Now i have a mce RC6 receiver.

I want to use it with eg so i use this plugin.

It works well with my mce remote: i receive one code by button pressed with the good name like: mceremote.mce.up .

But with my harmony as mce remote: i can received more than one code:

mceremote.mce.up
mceremote.mce.unknow.................1
mceremote.mce.unknow.................2
mceremote.mce.unknow.................3
mceremote.mce.up

etc..

Is ther a way to avoid that ?

Thanks
EvilMF
Posts: 4
Joined: Sat Dec 07, 2013 5:24 pm

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

Post by EvilMF »

I recently installed EventGhost with MceRemote_Vista plugin, and almost everything is just fine.
However, I found that the plugin is unstable and stops to receive signals from the remote sometimes.
After some short study, I found that the problem is not in the Python plugin, but in AlternateMceIrService, which fails sometimes and the service just stops.
I currently have no time to investigate the issue further, so I made a quick fix which works for me (and probably would suit some of you too).
When the plugin fails to open the pipe to service (this leads to the message "MCE_Vista: MceIr pipe is not available"), probably the service is just not running.
So I added the corresponding check and an attempt to start the service automatically.
The updated plugin is attached.

One important remark: by default, the ordinary user has no rights to start and stop the service via API.
So, for this auto-restart functionality to work, you should either:
1. Use the account in Built-in Administrators group.
or
2. Set the right permissions for AlternateMceIrService service and your account (a guide can be found here: http://msmvps.com/blogs/erikr/archive/2 ... ndows.aspx).
If you don't have the right permissions, the plugin will work as previously (not trying to restart the service, just trying to read from the pipe over and over again).
Attachments
MceRemote_Vista.zip
(6.98 KiB) Downloaded 362 times
nonob
Experienced User
Posts: 76
Joined: Tue Dec 06, 2011 6:52 am

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

Post by nonob »

Hi,

About my last post, i found the problem, it is caused by use of both cheaper mce receiver and harmony remote :

http://forum.xbmc.org/showthread.php?ti ... pid1567706

cu
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

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

Post by Sem;colon »

Hey everyone,

New Version!

Added a new function "Get IR code": If triggered it turns the receiver in learn mode - after learning it returns the learned IR code as eg.result (or False if learning failed).

@EvilMF: I incorporated your Improvement - next time please check if you have the latest version before modifying a plugin :wink:
...The Plugin in the first post is outdated, but I can't change it as I didn't create the Plugin/Topic.
Attachments
__init__.py
MceRemote_Vista v1.1.0
(28.91 KiB) Downloaded 305 times
If you like my work, Image me a drink :wink:
kkl
Experienced User
Posts: 317
Joined: Wed May 04, 2011 9:32 pm

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

Post by kkl »

Sem;colon wrote: ...The Plugin in the first post is outdated, but I can't change it as I didn't create the Plugin/Topic.
Sem;colon,
I'm grateful to the original author of this plug-in, but he seems to have disappeared from the forum a long time ago. Since you have graciously updated the plug-in, perhaps you could start a new thread for this version so that people can find the current version in the usual location, the first post. Thanks.
kkl
barnabas1969
Experienced User
Posts: 133
Joined: Sat Feb 04, 2012 1:42 am

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

Post by barnabas1969 »

@sem;colon: Is your new version based on one of the files in the first post of this thread, or is it based on a later version like the one in the post linked below?

http://eventghost.net/forum/viewtopic.p ... 160#p20128

EDIT: And, as a side note, the link above fixes the crashing issue, so there may not be a need to restart the service.
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

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

Post by Sem;colon »

I'm grateful to the original author of this plug-in, but he seems to have disappeared from the forum a long time ago. Since you have graciously updated the plug-in, perhaps you could start a new thread for this version so that people can find the current version in the usual location, the first post. Thanks.
Good idea!
barnabas1969 wrote:@sem;colon: Is your new version based on one of the files in the first post of this thread, or is it based on a later version like the one in the post linked below?

http://eventghost.net/forum/viewtopic.p ... 160#p20128

EDIT: And, as a side note, the link above fixes the crashing issue, so there may not be a need to restart the service.
ha! You got me, I should maybe start following my own suggestions ;)

Anyway, I think the biggest change Stottle made was in the AlternateMceIrService.exe, so you should be able to use the newer Service from that post with my latest version of the plugin as well.
He did one more thing in the plugin itself:
I also put in a statement on the python side that says if the length of the sequence is greater than 500, drop it. Held down keys are broken into multiple sequences, so this would only throw out long sequences like noise. Don't know if this will ever trip, but it shouldn't hurt anything.
To answer your question: No, I didn't incorporate this change... And I won't until I tested it for a while.
If you like my work, Image me a drink :wink:
barnabas1969
Experienced User
Posts: 133
Joined: Sat Feb 04, 2012 1:42 am

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

Post by barnabas1969 »

Well, when you start a new thread, you should include the newer service executable.
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

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

Post by Sem;colon »

barnabas1969 wrote:Well, when you start a new thread, you should include the newer service executable.
OK, new thread can be found here: viewtopic.php?f=9&t=6044
If you like my work, Image me a drink :wink:
bxr
Posts: 15
Joined: Sat Jul 21, 2012 2:56 am

EG Freezes while blasting

Post by bxr »

Any idea why EG freezes sometimes while blasting an IR?
VANQ
Posts: 4
Joined: Thu Jun 01, 2017 10:08 am

Re: EG Freezes while blasting

Post by VANQ »

bxr wrote:Any idea why EG freezes sometimes while blasting an IR?
Yes confirm. Sometimes it freezes.

Question: this latest version of the plug-in is in the Latest release: EventGhost 0.4.1.r1722, Feb 03 2016?

Or it is necessary to install separately?
User avatar
topix
Experienced User
Posts: 441
Joined: Sat May 05, 2007 3:43 pm
Location: Germany
Contact:

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

Post by topix »

@VANQ: This is an old thread. Are you still using XP? Because for Vista and later there is a new one: viewtopic.php?f=9&t=6044
Post Reply