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.
bskchaos
Experienced User
Posts: 56
Joined: Tue Mar 25, 2008 3:04 pm

Re: Plugin for USB PC Remote Controller

Post by bskchaos »

ViceIce wrote:Hello.

I have a "TechniSat USB IR Receiver" with id "VID_04B4&PID_0100". I have changed the Technisat plugin and it is working. :-)
Aditionally i had changed the inf of the driver.

can anybody add this device to the package?

Regards
ViceIce
Hi,can you post your files?

I have two remotes with the same ID.
USB\VID_04B4&PID_0100&REV_0001
Very cheap, If you can wait for them.
eBay
Image
Siutsch
Experienced User
Posts: 51
Joined: Wed Apr 28, 2010 6:53 am

Re: Plugin for USB PC Remote Controller

Post by Siutsch »

Hi,

I need help! :?

I have a "Deal Extreme USB PC Remote" and changed the driver with
"USB-Remote-Driver" from here (Windows7 x64).
After changing the driver.inf the driver was found.

With Eventghost I use "DX_USB_Remote_modified" from molitar
(from Page4, 11.09.2009).

Everything is fine, I can use every Key on the remote.

But I have to press many keys twice, bevore Eventghost detect them.

If I for example press pause, play, stop or something, I allways have to press
the buttons twice, oder some other button before.
Only every second klick ist detected by Eventghost.

The Buttons for up, down, left right and select are working, every klick
is detected.

Anybody with an idea why this happens?

Siutsch.
bskchaos
Experienced User
Posts: 56
Joined: Tue Mar 25, 2008 3:04 pm

Re: Plugin for USB PC Remote Controller

Post by bskchaos »

I'm having a similar problem.

I'm using the TechniSat USB IR Plugin with a cheap remote (USB\\VID_04B4&PID_0100)

Everytime I press a button I get this:

1:51:32 PM TechniSatUsb.000000000100
1:51:32 PM TechniSatUsb.002700000000
1:51:32 PM TechniSatUsb.010000000000

Can someone tell me how to interpret this and mod the plugin?
tzobor
Posts: 5
Joined: Fri Mar 20, 2009 9:25 am

Re: Plugin for USB PC Remote Controller

Post by tzobor »

Hi, I have a chinese remote, very similar to Pako's (it looks like a cheap copy).
EG reports something like this:

System.DeviceAttached [u'\\\\?\\USB#VID_04B4&PID_0100#5&2ed89f64&0&1#{a5dcbf10-6530-11d2-901f-00c04fb951ed}']
System.DeviceAttached [u'\\\\?\\HID#VID_04B4&PID_0100&Col02#6&f55ddd0&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}']
System.DeviceAttached [u'\\\\?\\HID#VID_04B4&PID_0100&Col03#6&f55ddd0&0&0002#{4d1e55b2-f16f-11cf-88cb-001111000030}']
System.DeviceAttached [u'\\\\?\\HID#VID_04B4&PID_0100&Col05#6&f55ddd0&0&0004#{4d1e55b2-f16f-11cf-88cb-001111000030}']
System.DeviceAttached [u'\\\\?\\HID#VID_04B4&PID_0100&Col01#6&f55ddd0&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}']
System.DeviceAttached [u'\\\\?\\HID#VID_04B4&PID_0100&Col04#6&f55ddd0&0&0003#{4d1e55b2-f16f-11cf-88cb-001111000030}']

Now, I know how to insert the VID and PID into the .inf file of the USB-Remote-Driver, but I don't know what to do with the DeviceInterfaceGUIDs part.
I've tried everything and Windows 7 still shows "USB Input Device" and all the HID devices, even though the driver seems to install.

Any thoughts?
bskchaos
Experienced User
Posts: 56
Joined: Tue Mar 25, 2008 3:04 pm

Re: Plugin for USB PC Remote Controller

Post by bskchaos »

It's the same receiver I have, but not the same remote.

Attached is the modified TechniSat USB pluggin, use it and EG will download and install the correct driver.

Good luck.
Attachments
__init__.py
(2.73 KiB) Downloaded 468 times
tzobor
Posts: 5
Joined: Fri Mar 20, 2009 9:25 am

Re: Plugin for USB PC Remote Controller

Post by tzobor »

thanks a lot!
it works, I assume you meant me to use EG 0.4.0, right?
can it be made to work in 0.3.7, i wonder?

later edit: it works in EG 0.3.7 too, the .py file works just the same, I tried saving the driver files from Windows\System32\DriverStore and that also works, so I think I'm future proof!
User avatar
zian
Site Admin
Posts: 569
Joined: Wed Jun 24, 2009 3:54 pm

Re: Plugin for USB PC Remote Controller

Post by zian »

bskchaos wrote:

Image

I have the exact same remote as the one in the above image (a Cyp Se WitheHome cheapo).
I couldn't get it to work for the longest time on XP... until this morning. :)
This is how I got mine to work...I think.

I read this thread about 20 times...
http://www.eventghost.org/forum/viewtop ... home#p9546

I downloaded the USB Remote Driver.exe from here...
http://www.eventghost.org/downloads/USB ... Driver.exe

I did as Bitmonster suggested (unpack the USB Remote Driver.exe with 7Zip and changed the driver.inf to match my remote (the one pictured above) (%Device001.DeviceDesc%=Install001,USB\VID_04B4&PID_0100), saved and installed the changed USB Remote Driver.exe.

I also had to change the EG USB-PC Remote plugin __init__.py file mach the changed guid to the one in that other thread.

I haven't a clue what most of that means but it WORKED!!! (for me)
If you need any more help LMK... Good Luck.
eventghost.net
Be there or be square.
tzobor
Posts: 5
Joined: Fri Mar 20, 2009 9:25 am

Re: Plugin for USB PC Remote Controller

Post by tzobor »

the python file is the one from above.
the driver is the one that EG 040 downloaded for me.
i've uploaded it here
bskchaos
Experienced User
Posts: 56
Joined: Tue Mar 25, 2008 3:04 pm

Re: Plugin for USB PC Remote Controller

Post by bskchaos »

Hello zian.
can you please post your __init__.py ?

I just can get mine to work
User avatar
zian
Site Admin
Posts: 569
Joined: Wed Jun 24, 2009 3:54 pm

Re: Plugin for USB PC Remote Controller

Post by zian »

bskchaos wrote:Hello zian.
can you please post your __init__.py ?

I just can get mine to work
Here is the file and code for my USB-PC Remote Plugin __init__.py.

Code: Select all

import eg

eg.RegisterPlugin(
    name = "Cyp Se WitheHome",
    author = "Vishal",
    version = "1.0.0",
    kind = "remote",
    description = __doc__,
)

CODES = {
    (2,1,0,0,0,0,0,0,2,0,0,0,0,0,0,0): "Power",
    (1,1,0,4,0,0,0,0,1,0,0,0,0,0,0,0): "Radio",
    (1,1,0,23,0,0,0,0,1,0,0,0,0,0,0,0): "TV",
    (4,1,0,0,0,0,0,0,4,0,0,0,0,0,0,0): "Media Center",
    (1,1,0,17,0,0,0,0,1,0,0,0,0,0,0,0): "DVD",
    (1,1,0,16,0,0,0,0,1,0,0,0,0,0,0,0): "Music",
    (1,1,0,12,0,0,0,0,1,0,0,0,0,0,0,0): "Photo",
    (1,1,0,8,0,0,0,0,1,0,0,0,0,0,0,0): "Video",
    (1,1,0,25,0,0,0,0,1,0,0,0,0,0,0,0): "DVD Menu",
    (1,0,0,65,0,0,0,0,1,0,0,0,0,0,0,0): "Mute",
    (1,0,0,42,0,0,0,0,1,0,0,0,0,0,0,0): "Back",
    (1,0,0,58,0,0,0,0,1,0,0,0,0,0,0,0): "Guide",
    (1,1,0,21,0,0,0,0,1,0,0,0,0,0,0,0): "Record",
    (1,3,0,21,0,0,0,0,1,0,0,0,0,0,0,0): "Repeat",
    (1,0,0,40,0,0,0,0,1,0,0,0,0,0,0,0): "Enter",
    (1,0,0,82,0,0,0,0,1,0,0,0,0,0,0,0): "Arrow Up",
    (1,0,0,79,0,0,0,0,1,0,0,0,0,0,0,0): "Arrow Left",
    (1,0,0,81,0,0,0,0,1,0,0,0,0,0,0,0): "Arrow Down",
    (1,0,0,80,0,0,0,0,1,0,0,0,0,0,0,0): "Arrow Right",
    (3,1,0,0,0,0,0,0,3,0,0,0,0,0,0,0): "Volume +",
    (3,2,0,0,0,0,0,0,3,0,0,0,0,0,0,0): "Volume -",
    (1,0,0,75,0,0,0,0,1,0,0,0,0,0,0,0): "Channel +",
    (1,0,0,78,0,0,0,0,1,0,0,0,0,0,0,0): "Channel -",
    (1,0,0,30,0,0,0,0,1,0,0,0,0,0,0,0): "Number 1",
    (1,0,0,31,0,0,0,0,1,0,0,0,0,0,0,0): "Number 2",
    (1,0,0,32,0,0,0,0,1,0,0,0,0,0,0,0): "Number 3",
    (1,0,0,33,0,0,0,0,1,0,0,0,0,0,0,0): "Number 4",
    (1,0,0,34,0,0,0,0,1,0,0,0,0,0,0,0): "Number 5",
    (1,0,0,35,0,0,0,0,1,0,0,0,0,0,0,0): "Number 6",
    (1,0,0,36,0,0,0,0,1,0,0,0,0,0,0,0): "Number 7",
    (1,0,0,37,0,0,0,0,1,0,0,0,0,0,0,0): "Number 8",
    (1,0,0,38,0,0,0,0,1,0,0,0,0,0,0,0): "Number 9",
    (1,0,0,39,0,0,0,0,1,0,0,0,0,0,0,0): "Number 0",
    (1,3,0,19,0,0,0,0,1,0,0,0,0,0,0,0): "Play",
    (1,1,0,19,0,0,0,0,1,0,0,0,0,0,0,0): "Pause",
    (1,1,0,22,0,0,0,0,1,0,0,0,0,0,0,0): "Stop",
    (1,3,0,7,0,0,0,0,1,0,0,0,0,0,0,0): "Rewind",
    (1,3,0,9,0,0,0,0,1,0,0,0,0,0,0,0): "Forward",
    (1,1,0,5,0,0,0,0,1,0,0,0,0,0,0,0): "Skip Back",
    (1,1,0,9,0,0,0,0,1,0,0,0,0,0,0,0): "Skip Forward",

}

class Cyp_Se_WitheHome(eg.PluginBase):
               
    def __start__(self):
        self.usb = eg.WinUsbRemote(
            "{5607ED2F-AD3C-4CE8-9DE6-97CD4B0FFEF1}",
            self.Callback,
            16
        )
        if not self.usb.IsOk():
            raise self.Exceptions.DeviceNotFound

    def __stop__(self):
        self.usb.Close()

    def Callback(self, data):
        value = data[:16]
        if value in CODES:
            self.TriggerEvent(CODES[value])
        else:
            print data

This might not work for you as is depending on the driver. I know I had to customize mine too. (see one of the above links I mentioned in my first post to this thread.
Good luck and if you need any more help...I'll try my best.
Attachments
__init__.py
I did notice that perhaps the left & right arrow buttons are transposed when setting up the remote actions.
(2.73 KiB) Downloaded 396 times
eventghost.net
Be there or be square.
dedi
Posts: 7
Joined: Sat May 08, 2010 11:29 pm

Re: Plugin for USB PC Remote Controller

Post by dedi »

I have a Hama MCE Remote. It's also named as Hama 52451. Its probably the same as Ortek VRC-1100, Adesso ARC-1100 and Auvisio VRC-1100.

The remote is working with these USB drivers and a replaced __init__.py file for the Auvisio Plugin. But there are some limitations:

Known Problems:
- OK and Enter buttons are the same
- Pause and Play are the same
- Rightclick is info
- Mouse Pad not working

These 3 buttons which are double binded had been working per default, but not anymore with the updated USB drivers, Eventghost just puts out the exact same numbers in the logfile.
I guess this is limited by the drivers itself, is there any chance to modify them to get all buttons working?
User avatar
FoLLgoTT
Posts: 3
Joined: Sat Apr 24, 2010 9:31 am

Re: Plugin for USB PC Remote Controller

Post by FoLLgoTT »

Here come WinUSB plugins for Gyration GYR3101US/GYR3101EU (Media Center Remote) and Dell Premium Remote (M2010).

Image

Since this remote consists of a free air mouse and a keyboard part I replaced only the keyboard part (marked red and cyan in the image). The downside is that the compact keyboard sometimes bundled with this remote does not work anymore, because it uses the same HID device.
Attachments
Gyration.zip
Gyration/Dell Remote
(27.59 KiB) Downloaded 388 times
coolcal
Posts: 1
Joined: Sat Jul 24, 2010 4:51 am

Re: Plugin for USB PC Remote Controller

Post by coolcal »

I am currently running EG0.3.7.r1346 & XP SP3

I have the following remote i bought from ebay.
hardware id is VID_04b4&PID_0100.

I changed the driver.inf - last entry to the above hardware and product id.
device manager shows up the USB PC remote controller there.

I then added the attached plugin from Jul 05 2009 post to plugins folder. I m able to successfully add to EG but after that nothing happens. No keypress is recognized.

Could someone help me with the same?
Attachments
DX_USB_Remote.zip
(15.86 KiB) Downloaded 375 times
DXusbPCR.jpg
DXusbPCR.jpg (12.93 KiB) Viewed 11477 times
Siutsch
Experienced User
Posts: 51
Joined: Wed Apr 28, 2010 6:53 am

Re: Plugin for USB PC Remote Controller

Post by Siutsch »

Siutsch wrote:Hi,

I need help! :?

I have a "Deal Extreme USB PC Remote" and changed the driver with
"USB-Remote-Driver" from here (Windows7 x64).
After changing the driver.inf the driver was found.

With Eventghost I use "DX_USB_Remote_modified" from molitar
(from Page4, 11.09.2009).

Everything is fine, I can use every Key on the remote.

But I have to press many keys twice, bevore Eventghost detect them.

If I for example press pause, play, stop or something, I allways have to press
the buttons twice, oder some other button before.
Only every second klick ist detected by Eventghost.

The Buttons for up, down, left right and select are working, every klick
is detected.

Anybody with an idea why this happens?

Siutsch.

After no one else here seems to have the problem with only every second key is recognized, I played around with some other drivers from the Thread.

With the driver "DX_USB_Remote_2.zip" from user cichmen from one post earlier on page 4 "Tue February 9, 2010 12:09 am" everything works great!

The difference between these two drivers is probably that with the one from molitar the mouse control is also supported.
Since I do not use this, just the big parts of the other buttons, I do not mind that.

Now everything finally works for me as desired. :D

Siutsch.
Zeix
Posts: 2
Joined: Thu Sep 02, 2010 6:23 am

Re: Plugin for USB PC Remote Controller

Post by Zeix »

Yesterday I tried to do it, but the driver does not want to work with him.
Eventghost v0.37 win7-64bit.
This is the kind of me: http://www.eventghost.org/forum/viewtop ... 332#p11332
He always says, that the device can not start. (Code 10)
I tried to replace the inf file of the hardware id, but went anyway.
I have the HID devices is the remote control (two hardware detected).
The hardware ID does not begin with USB.
My hardware id:
"HID\VID_06B4&PID_1C70&REV_0200"
and:
"HID\VID_073A&PID_2230"

Can someone help me?

Sorry for bad english, google translate.
Post Reply