trying to create plugin for UltraSconi, getting driver error

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
User avatar
topix
Experienced User
Posts: 441
Joined: Sat May 05, 2007 3:43 pm
Location: Germany
Contact:

trying to create plugin for UltraSconi, getting driver error

Post by topix » Sat Jan 23, 2010 9:32 am

EG 0.4.0.1397

I'm trying to create a plugin for JBmedia UltraSconi based on WinUSB. The driver is successful created and installed. After the restart of EG i get an error, that the driver could not be opened.

Any hints/tips/ideas what to try out, or check out?

Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: trying to create plugin for UltraSconi, getting driver error

Post by Bartman » Sat Jan 23, 2010 9:39 am

just wondering.
Did you get any specification from JB? I wanted to make a plug in years ago and even received a sample but later JB was not willing to give any support.

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: trying to create plugin for UltraSconi, getting driver error

Post by Bitmonster » Sat Jan 23, 2010 11:14 am

Does this device actually register as an HID device?
The MS MCE remote for example can also be assigned to the WinUSB.sys driver, but it will not work, because this remote is not a generic HID device.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

User avatar
topix
Experienced User
Posts: 441
Joined: Sat May 05, 2007 3:43 pm
Location: Germany
Contact:

Re: trying to create plugin for UltraSconi, getting driver error

Post by topix » Sat Jan 23, 2010 12:07 pm

Yes, it shows up as a HID. With the generic HID plugin i get events like this:

Code: Select all

HID.001C181B1936181C18
HID.001C181C181C323618
HID.001C181C181C181CFE
HID.00FF00000000000000
And the events are not always the same for one button.

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: trying to create plugin for UltraSconi, getting driver error

Post by Bitmonster » Sat Jan 23, 2010 12:12 pm

Copy Help>About>System Information here and the source of your plugin.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

User avatar
topix
Experienced User
Posts: 441
Joined: Sat May 05, 2007 3:43 pm
Location: Germany
Contact:

Re: trying to create plugin for UltraSconi, getting driver error

Post by topix » Sat Jan 23, 2010 7:56 pm

Bartman wrote:just wondering.
Did you get any specification from JB? I wanted to make a plug in years ago and even received a sample but later JB was not willing to give any support.
No, i haven't contacted JB for now. I wanted first see if it works the WinUSB way.
It's sad that he doesn't want to support you :( But you say it's years ago, maybe JB changed his mind? :)

User avatar
topix
Experienced User
Posts: 441
Joined: Sat May 05, 2007 3:43 pm
Location: Germany
Contact:

Re: trying to create plugin for UltraSconi, getting driver error

Post by topix » Sat Jan 23, 2010 8:07 pm

Bitmonster wrote:Copy Help>About>System Information here and the source of your plugin.

Code: Select all

Software
Program Version: 0.4.0.r1397
Build Time: Sa, 23 Jan 2010 09:17:09
Python Version: Stackless Python 2.6.4 final 0
wxPython Version: 2.8.10.1

System
Operating System: Microsoft Windows 7 Ultimate, 64-bit (build 7600)
CPU: Intel(R) Core(TM)2 Extreme CPU Q6850  @ 3.00GHz
RAM: 4094 MB

USB-Devices
USB-Verbundgerät: USB\VID_046D&PID_C505
Logitech Cordless USB Keyboard: USB\VID_046D&PID_C505&MI_00
Logitech HID Keyboard: USB\VID_046D&PID_C505&MI_01
USB-Verbundgerät: USB\VID_046D&PID_C51A
USB-Eingabegerät: USB\VID_046D&PID_C51A&MI_00
USB-Eingabegerät: USB\VID_046D&PID_C51A&MI_01
USB-Eingabegerät: USB\VID_04B4&PID_0316
USB-Verbundgerät: USB\VID_04D9&PID_1603
USB-Eingabegerät: USB\VID_04D9&PID_1603&MI_00
USB-Eingabegerät: USB\VID_04D9&PID_1603&MI_01
USB-Massenspeichergerät: USB\VID_1307&PID_0330

Code: Select all

# -*- coding: utf-8 -*-

ur"""<rst>
Plugin for the Ultra Sconi.

.. image:: picture.gif
   :align: center
"""

import eg

eg.RegisterPlugin(
    name = "JBMedia Ultra Sconi",
    author = "topix",
    version = "1.0.0",
    kind = "remote",
    guid = "{EE0AE6B9-E6E5-48C7-8704-90DADB6BE2A0}",
    description = __doc__,
	hardwareId = "USB\\VID_04B4&PID_0316&REV_0300", # also tried "USB\\VID_04B4&PID_0316"
)

class UltraSconi(eg.PluginBase):

    def __start__(self):
        self.usb = eg.WinUsb(self)
        self.usb.AddDevice(
            "JBmedia UltraSconi",
            "USB\\VID_04B4&PID_0316&REV_0300", # also tried "USB\\VID_04B4&PID_0316"
            "{745a17a0-74d3-11d0-b6fe-00a0c90f57da}",
            self.ButtonsCallback,
            4,
        )
        self.usb.Open()


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


    def ButtonsCallback(self, data):
        print "UltraSconi:", data

 

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: trying to create plugin for UltraSconi, getting driver error

Post by Bitmonster » Sun Jan 24, 2010 9:32 am

Where does the GUID for the AddDevice call come from? Doesn't look like you have created a new one.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

User avatar
topix
Experienced User
Posts: 441
Joined: Sat May 05, 2007 3:43 pm
Location: Germany
Contact:

Re: trying to create plugin for UltraSconi, getting driver error

Post by topix » Sun Jan 24, 2010 12:04 pm

The GUID is from Windows Device Manager. I thought the GUID i created is just for eg.RegisterPlugin. Should i use the same GUID for AddDevice and RegisterPlugin?

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: trying to create plugin for UltraSconi, getting driver error

Post by Bitmonster » Sun Jan 24, 2010 2:32 pm

No, you must create a unique one for every AddDevice call.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

User avatar
topix
Experienced User
Posts: 441
Joined: Sat May 05, 2007 3:43 pm
Location: Germany
Contact:

Re: trying to create plugin for UltraSconi, getting driver error

Post by topix » Sun Jan 24, 2010 5:19 pm

Ok, no more error, but i get no data from it :cry:
Well, i think i should write JB and ask him for help...

Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: trying to create plugin for UltraSconi, getting driver error

Post by Bartman » Sun Jan 24, 2010 10:56 pm

Dann viel Glück.
Ich teste aber gerne mit.

@Bitmonster
hat es eigentlich einen Vorteil den WinUSB Treiber statt HID zu nehmen, wenn das Gerät sich nicht als Tastatur und/oder Maus ausgibt?

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: trying to create plugin for UltraSconi, getting driver error

Post by Bitmonster » Thu Feb 04, 2010 6:02 am

This is an english forum, so please continue in english.
Bartman wrote:@Bitmonster
hat es eigentlich einen Vorteil den WinUSB Treiber statt HID zu nehmen, wenn das Gerät sich nicht als Tastatur und/oder Maus ausgibt?
In this case most likely not. It might have a better perfomance to use WinUSB, but WinUSB has the drawback of needing a driver installation. So for this device I would stay with eg.WinApi.HID.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

Post Reply