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.

Plugin for USB PC Remote Controller

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
truck0321
Posts: 1
Joined: Thu Dec 16, 2010 7:56 pm

Re: Plugin for USB PC Remote Controller

Post by truck0321 »

I have the black version of this remote and I'm having some trouble getting it working. I understand how to do almost everything except I'm not sure how to modify the guid's in the driver.inf and __init__.py. Eventghost displays the vendor id and guid when I insert the usb dongle.
System.DeviceAttached [u'\\\\?\\USB#Vid_1233&Pid_e006#5&1296dba0&0&1#{a5dcbf10-6530-11d2-901f-00c04fb951ed}']

Is the guid displayed the one I should use in the driver.inf in the device section like this?

HKR,,DeviceInterfaceGUIDs,0x10000,"{a5dcbf10-6530-11d2-901f-00c04fb951ed}"

The driver seems to install fine when I do it this way but the remote does not work after this. Also, if I use this guid in the __init__.py I get a device not found error when loading the plugin in EG.

I have also tried using the class guid instead of the guid displayed by EG. This was done by schindi77 on page 4 of this thread and he said it worked fine. It seemed to work for as well, the driver installed, eventghost did not complain about finding the device, but no button presses were captured. Maybe this was the right way but the codes are different and therefore nothing was captured?

I should go out and buy a supported remote but the tinkerer/cheapskate in me wants to make this work. Thanks in advance.
molitar
Experienced User
Posts: 209
Joined: Fri Sep 11, 2009 6:44 am

Re: Plugin for USB PC Remote Controller

Post by molitar »

DO NOT upgrade to the latest EventGhost it breaks this plugin completely!
molitar
Experienced User
Posts: 209
Joined: Fri Sep 11, 2009 6:44 am

Re: Plugin for USB PC Remote Controller

Post by molitar »

Can someone please look into this plugin and fine out why it does not work with the new Eventghost? It will not work with EventGhost 0.4.x at all.

Ok nevermind I got the PC Remote Plugin to work.. for those that need to know how too.

Open up Device Manager. Go to details tab and pull down the pull down to you see get hardware ID and than pull down and select Device Class GUID . Just right click and copy the IDs you need.

My hardware ID = USB\VID_073A&PID_2230
My Device Class GUID = {745a17a0-74d3-11d0-b6fe-00a0c90f57da}

Now go edit the C:\Program Files\EventGhost\plugins\PC Remote Controller\__init__.py using notepad.

The lines that need to be edited for your device is:

guid = "{401F1F43-58D9-4F99-936A-A9114CE73D7E}",
hardwareId = "USB\\VID_06B4&PID_1C70",


and another line further down that reads.

"PC Remote Controller", "USB\\VID_06B4&PID_1C70",

Edit the lines to your ID for example mine now look like:

guid = "{745a17a0-74d3-11d0-b6fe-00a0c90f57da}",
hardwareId = "USB\\VID_073A&PID_2230",

"PC Remote Controller", "USB\\VID_073A&PID_2230",


Now the Deal Extreme, PC Remote Controller, USB PC Remote, and the many other names and hardware ID versions it has been sold under will work with you with the plugin provided with 0.4.x EventGhost.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Plugin for USB PC Remote Controller

Post by Pako »

Attached is an updated plugin that works properly with EventGhost 0.4.x.
After the EG restart (after replacing the plugin file),
EG will automatically install the necessary drivers (if you'll agree).

Pako
Attachments
DX_USB_Remote.zip
(15.77 KiB) Downloaded 504 times
molitar
Experienced User
Posts: 209
Joined: Fri Sep 11, 2009 6:44 am

Re: Plugin for USB PC Remote Controller

Post by molitar »

Thanks for the updated plugin Pako
bskchaos
Experienced User
Posts: 56
Joined: Tue Mar 25, 2008 3:04 pm

Re: Plugin for USB PC Remote Controller

Post by bskchaos »

Hi,

I got my remote working with the plugin from this post http://www.eventghost.org/forum/viewtop ... 753&p=9546
But I have been unable to use it with the new EG.

Can someone take a look?
Attachments
__init__.py
Plugin
(2.73 KiB) Downloaded 398 times
driver.txt
This is the inf file I use to install the driver.
(6.89 KiB) Downloaded 378 times
mellivibe
Posts: 1
Joined: Thu Oct 20, 2011 4:28 pm

Re: Plugin for USB PC Remote Controller

Post by mellivibe »

molitar wrote:
and another line further down that reads.

"PC Remote Controller", "USB\\VID_06B4&PID_1C70",

Edit the lines to your ID for example mine now look like:

guid = "{745a17a0-74d3-11d0-b6fe-00a0c90f57da}",
hardwareId = "USB\\VID_073A&PID_2230",

"PC Remote Controller", "USB\\VID_073A&PID_2230",
I'm trying to utilize your instructions, but I don't know where to type that last line in the .ty file. Where is "further down," exactly? Everywhere I've placed it has caused EG to tell me that the plugin doesn't work due to bad syntax. Any help you could give would be appreciated.

BTW I'm using EG 0.4.1.r1540 and I'm trying to configure Pako's updated plugin from July 19th, 2011.

Thanks in advance.
molitar
Experienced User
Posts: 209
Joined: Fri Sep 11, 2009 6:44 am

Re: Plugin for USB PC Remote Controller

Post by molitar »

Damn.. I made the mistake of updating EventGhost and it broke this controller.. EventGhost will no longer ask to install the driver.. so now I have a broken EventGhost.

Ok figured out how to fix.. you have to delete the plugin from EventGhost and re-add it for it to ask to reinstall drivers.. best thing before updating.. just backup the PC Remote plugin so it's not overwritten with the bad one that comes with the new EventGhost. Secondly the buttons went from prefix PCRemoteController to DXusbPCR so I had to redo some of my mappings. Other than the the plugin still worked fine.. so the easiest method to upgrade is to write protect Pako's plugin before upgrading EventGhost.
molitar
Experienced User
Posts: 209
Joined: Fri Sep 11, 2009 6:44 am

Re: Plugin for USB PC Remote Controller

Post by molitar »

mellivibe wrote:molitar wrote:
and another line further down that reads.

"PC Remote Controller", "USB\\VID_06B4&PID_1C70",

Edit the lines to your ID for example mine now look like:

guid = "{745a17a0-74d3-11d0-b6fe-00a0c90f57da}",
hardwareId = "USB\\VID_073A&PID_2230",

"PC Remote Controller", "USB\\VID_073A&PID_2230",
I'm trying to utilize your instructions, but I don't know where to type that last line in the .py file. Where is "further down," exactly? Everywhere I've placed it has caused EG to tell me that the plugin doesn't work due to bad syntax. Any help you could give would be appreciated.

BTW I'm using EG 0.4.1.r1540 and I'm trying to configure Pako's updated plugin from July 19th, 2011.

Thanks in advance.
ok here is the code your looking for in the .py files.

Code: Select all

eg.RegisterPlugin(
    name = "Deal Extreme USB PC Remote",
    author = "Bitmonster & Pako",
    version = "1.1.1",
    kind = "remote",
    guid = "{745a17a0-74d3-11d0-b6fe-00a0c90f57da}",
    hardwareId = "USB\\VID_073A&PID_2230&REV_0200",
    description = ur"""<rst>,
Plugin for the **Deal Extreme USB PC Remote**.
and further down in the __init__.py file

Code: Select all

class DXusbPCR(eg.PluginBase):
    text = Text
                
    @eg.LogIt
    def __start__(self, ignoreNumLock):
        self.ignoreNumLock = ignoreNumLock
        self.timeout = 0.1
        self.timer = Timer(self.timeout, self.OnTimeout)        
        self.status = 0
        self.keyData = ()
        self.codesIx = 0
        self.usb = eg.WinUsb(self)
        self.usb.AddDevice(
            "Deal Extreme USB PC Remote",
            "USB\\VID_073A&PID_2230&REV_0200",
            "{745a17a0-74d3-11d0-b6fe-00a0c90f57da}",
            self.Callback,
            4,
        )
        self.usb.Open()
to get your values of the GUID and DeviceID after the driver installed go into device manager right click on Deal Extreme USB Remote and select properties.. Go to the TAB that says Details than select Hardware ID"s and copy the DeviceID that starts with USB\VID_ and when entering it in the .py file make sure to add and extra back slash so it reads USB\\VID_. After you have that ID than use the pull down and select guid and you will get the GUID for your remote. After you have edited the .py file than start EventGhost and the controller should work with no missing plugin device error in the plugins fro the DX USB Remote.

BTW you are probably getting the error with the plugin bad because you did not use double back slashes after the USB if you just copied and pasted.
molitar
Experienced User
Posts: 209
Joined: Fri Sep 11, 2009 6:44 am

Re: Plugin for USB PC Remote Controller

Post by molitar »

Pako,

I can not figure out what happened but since I updated to the newer version of EventGhost I am no longer able to get Fullscreen or MyPC buttons working at all.
nating
Posts: 5
Joined: Thu Oct 20, 2011 3:28 pm

Re: Plugin for USB PC Remote Controller

Post by nating »

I have the same remote with the one posted earlier though with a different hardware identification.

So what I did was to change the id in the driver.inf and on the even host plugin. With those minimal changes, it all worked out fine, not considering what could be errors on the level of the remote itself.

I would then add codes so that buttons would be used with a lot better.
rachus
Posts: 1
Joined: Tue Nov 01, 2011 6:45 am

Re: Plugin for USB PC Remote Controller

Post by rachus »

My guid and hardwareId is identical to yours molitar, thanks for the info, however I get prompted to install the drivers, the driver(s) download fine, I'm prompted to install them, Windows (7 64-bit) installs them successfully, but then I'm prompted to install them again. In the EG log:

GetUncPathOf Error: 1200 The specified device name is invalid.

I'm using Pako's latest .py files

Any further help is much appreciated.
tehparan0id
Posts: 1
Joined: Mon Oct 17, 2011 2:10 am

Re: Plugin for USB PC Remote Controller

Post by tehparan0id »

How do you get the button codes? I've gotten the driver to install, and events are being properly generated in eg. However a bunch of the buttons don't work. How would I go about seeing what the codes are being sent to the ir receiver through the pc remote controller driver?
Last edited by tehparan0id on Sun Nov 06, 2011 7:20 pm, edited 2 times in total.
molitar
Experienced User
Posts: 209
Joined: Fri Sep 11, 2009 6:44 am

Re: Plugin for USB PC Remote Controller

Post by molitar »

rachus wrote:My guid and hardwareId is identical to yours molitar, thanks for the info, however I get prompted to install the drivers, the driver(s) download fine, I'm prompted to install them, Windows (7 64-bit) installs them successfully, but then I'm prompted to install them again. In the EG log:

GetUncPathOf Error: 1200 The specified device name is invalid.

I'm using Pako's latest .py files

Any further help is much appreciated.
I'm using 32bit.. you may have to use the USB Drivers that are on here to get them installed.. sounds like your 64bit does not like the drivers.. or another thing manually update the downloaded drivers for the device in device manager. It should show up under Human Interface Devices as 'PC Remote Controller'
chosl
Posts: 2
Joined: Sun Nov 20, 2011 2:11 pm

Re: Plugin for USB PC Remote Controller

Post by chosl »

molitar wrote:
rachus wrote:My guid and hardwareId is identical to yours molitar, thanks for the info, however I get prompted to install the drivers, the driver(s) download fine, I'm prompted to install them, Windows (7 64-bit) installs them successfully, but then I'm prompted to install them again. In the EG log:

GetUncPathOf Error: 1200 The specified device name is invalid.

I'm using Pako's latest .py files

Any further help is much appreciated.
I'm using 32bit.. you may have to use the USB Drivers that are on here to get them installed.. sounds like your 64bit does not like the drivers.. or another thing manually update the downloaded drivers for the device in device manager. It should show up under Human Interface Devices as 'PC Remote Controller'
rachus, did you get it to install?
My eg has worked flawless for 6 months and then my reciever just hung so I decided to upgrade EG. Now I'm facing the same, after I install the driver it says "Error starting plugin: Terratec USB Reciever" "Driver not found!". I have tried updating the hardwareID and guid in the init file for Terratec but there's no difference, it's still listed as a USB Input device after the "sucessful installation"
I can find an error in the system event log from DriverFrameworks-UserMode, eventid 10101 "The driver package installation has failed. The final status was 0xE0000102."
I've checked in the setupapi.dev file in \windows\inf but not sure if it's an error.
Grateful for any advice, can't live without my EventGhost :(
Thanks everyone!

ndv: Installing device...
dvi: {DIF_INSTALLDEVICE} 22:15:58.955
dvi: No class installer for 'Terratec USB Receiver'
dvi: CoInstaller 1: Enter 22:15:58.955
inf: Opened PNF: 'C:\Windows\INF\oem84.inf' ([strings])
dvi: CoInstaller 1: Exit
dvi: CoInstaller 2: Enter 22:15:59.002
dvi: CoInstaller 2: Exit
dvi: CoInstaller 3: Enter 22:15:59.064
inf: Opened PNF: 'C:\Windows\INF\oem84.inf' ([strings])
!!! dvi: CoInstaller 3: failed(0xe0000102)!
!!! dvi: Error 0xe0000102: The required line was not found in the INF.
dvi: CoInstaller 1: Enter (Post Processing) 22:15:59.126
! dvi: CoInstaller 1: modified status 0x00000000! (Post Processing)
! dvi: Error 0: The operation completed successfully.
Post Reply