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.

SoundGraph iMON HID plugin

Questions and comments specific to a particular plugin should go here.
Croaker
Posts: 2
Joined: Mon Nov 01, 2010 8:58 am

Re: SoundGraph iMON HID plugin

Post by Croaker »

@PluginAuthor (Johnson?):
Did you notice the new shiny APIs from SoundGraph?
iMON Remote Control API: http://www.soundgraph.com/forums/showthread.php?t=6469
iMON Display API: http://www.soundgraph.com/forums/showthread.php?t=6468

Will make implementation much more easier and stable ;)
Johnson
Posts: 48
Joined: Sun May 24, 2009 9:05 pm

Re: SoundGraph iMON HID plugin

Post by Johnson »

Yes I know about is.

But problem that I don`t has VFD/LCD device for test iMON Display API. I has LCD Touch and Finger VU.
The iMON Remote Control API are not released yet. When it was released I should implement it. As well as future Finger VU API.
Croaker
Posts: 2
Joined: Mon Nov 01, 2010 8:58 am

Re: SoundGraph iMON HID plugin

Post by Croaker »

Well, I own this case:
http://www.silverstonetek.com/products/ ... 02&area=de

So I have the PAD remote and the LCD.
Perhaps we could share knowledge and work together :)
Johnson
Posts: 48
Joined: Sun May 24, 2009 9:05 pm

Re: SoundGraph iMON HID plugin

Post by Johnson »

Croaker wrote:Perhaps we could share knowledge and work together :)
Ok. How can you help me? Do you have Python experience?
Zeix
Posts: 2
Joined: Thu Sep 02, 2010 6:23 am

Re: SoundGraph iMON HID plugin

Post by Zeix »

I have this:
SG Remote Controll Device (x64)
USB\VID_15C2&PID_FFDC&REV_0000

Thermaltake Bach VFD
Not supported?
Johnson
Posts: 48
Joined: Sun May 24, 2009 9:05 pm

Re: SoundGraph iMON HID plugin

Post by Johnson »

Zeix wrote:I have this:
SG Remote Controll Device (x64)
USB\VID_15C2&PID_FFDC&REV_0000

Thermaltake Bach VFD
Not supported?
No :(
It's non HID device and use own driver...
User avatar
Fiasco
Plugin Developer
Posts: 222
Joined: Fri Jul 24, 2009 5:32 am
Location: St. Louis MO
Contact:

Re: SoundGraph iMON HID plugin

Post by Fiasco »

I'm running Windows 7 64 bit w/ a Silvertonetek LC10M case.

This is what is under my HID compliant device hardware id list
HID\VID_0518&PID_0001&REV_0100&MI_01&Col02
HID\VID_0518&PID_0001&MI_01&Col02
HID_DEVICE_SYSTEM_CONSUMER
HID_DEVICE_UP:000C_U:0001
HID_DEVICE


HID_DEVICE_SYSTEM_CONSUMER is VFD

I see nothing in the plugins event ghost hardware list.
woipadina
Posts: 2
Joined: Fri Mar 18, 2011 11:34 pm

Re: SoundGraph iMON HID plugin

Post by woipadina »

Hi,
thanks a lot for the grat plugin!! i have searched for a long time for something like that.
it's nearly perfect but for a few programs i use the normal imon frontview. so i need a possibility to turn the frontview on and off automatically.
with the imon remote i can do this with the stop button. is it possible to implement an action to turn the frontview on and off?
Johnson
Posts: 48
Joined: Sun May 24, 2009 9:05 pm

Re: SoundGraph iMON HID plugin

Post by Johnson »

woipadina wrote:Hi,
thanks a lot for the grat plugin!! i have searched for a long time for something like that.
This sound is nice for me! You are welcome!
woipadina wrote:it's nearly perfect but for a few programs i use the normal imon frontview. so i need a possibility to turn the frontview on and off automatically.
with the imon remote i can do this with the stop button. is it possible to implement an action to turn the frontview on and off?
Can you discribe what are you want more detail?
woipadina
Posts: 2
Joined: Fri Mar 18, 2011 11:34 pm

Re: SoundGraph iMON HID plugin

Post by woipadina »

i have a 55" lcd tv and a 7" touch lcd, extendend desktop.
the original imon manager shows on my 7" touch the imon frontview. i am using it when i am playing music or a movie with xbmc, because the title, equalizer etc is shown und is looking quite good.
when i want to watch tv, then i first press the stop button on the remote control, so the imon visualization on the touch lcd disappears und the normal windows background appears. then i start the dvbviewer with the yellow button und with the dvbviewer a touch lcd plugin for dvbviewer starts automatically.
i need to close the imon visualization on the touchdisplay, because sometimes the dvbviewer plugin starts over the imon and sometimes under the imon, so i can't see it. the second problem is, that i can't control dvbviewer with the touchscreen, when the imon frontview is on, because the mouse actions control only the imon and not the dvbviewer plugin.
when i close the imon manager completely, the touchscreen doesn't work anymore.
so it would be nice when i could start and stop the imon frontview visualization on the touch with eventghost, because i could stop the imon frontview automatically when dvbviewer starts and start it again when dvbviewer stops.
FuS
Posts: 2
Joined: Fri Apr 29, 2011 7:17 am

Re: SoundGraph iMON HID plugin

Post by FuS »

Johnson wrote:With iMON receiver MCE plugin won't work.
If you want you can help me implement MCE remote in my plugin.
For my is only one problem - I don't know button codes.
I have an Antec Fusion case with the built-in iMon OEM VFD (HID\VID_15C2&PID_0038&REV_0002_MI_01)
I can get the iMON PAD remote working with your plugin but I would prefer to use an MCE remote,
I'm happy to work out the button codes if you can tell me how to do it?

Thanks heaps for the plugin by the way
brand10
Experienced User
Posts: 62
Joined: Mon Mar 29, 2010 10:31 am

Re: SoundGraph iMON HID plugin

Post by brand10 »

I have an Antec Fusion case with the built-in iMon OEM VFD (HID\VID_15C2&PID_0038&REV_0002_MI_01)
I can get the iMON PAD remote working
Uhh? How did u do that? I have the same device, but i have the disconnect/connect problem, described at the last few pages in this thread... Does the volume knob works too?

Today i will try to connect my imon module with another PC... maybe its a strange problem with my mainboad...


@bartman: I tried to run eventghost in debug mode and i inserted some logging commands in the HID.py, but the output always comes before the disconnect problem happens. i have inserted it into the GetDeviceDescriptions function, into the Write function and so on, ... It seems as the problem occurs after all the HID stuff... any tip what i can try next?

**UPDATE**
It seems as i have no Luck... i DONT have the above device... my one is HID\VID_15C2&PID_0038&REV_0001&MI_01
Slowly i think this device is buggy or has a buggy firmware...
brand10
Experienced User
Posts: 62
Joined: Mon Mar 29, 2010 10:31 am

Re: SoundGraph iMON HID plugin

Post by brand10 »

HELL YEAH! I think i have found the problem!

In eg\WinApi\HID.py after the HID Plugin is started, it causes a disconnect of the iMON Device... The Device automatically reconnects itselfs, but HID.py does NOT wait for this reconnect, so the following-code runs into an exception...

Code: Select all

        #initializing finished
        try:
            self.handle = handle;
            self.initialized = True
            rc, newBuf = win32file.ReadFile(handle, n, self._overlappedRead)
            if eg.debugLevel:
                print self.getName() + "init done. Entering loop"

            self.lockObject.release()

            while not self.abort:
                if rc == 997: #error_io_pending
                    win32event.WaitForSingleObject(self._overlappedRead.hEvent, win32event.INFINITE)

                buf = newBuf
                try:
                    win32event.ResetEvent(self._overlappedRead.hEvent)
                    rc, newBuf = win32file.ReadFile(handle, n, self._overlappedRead)
...which causes the Events are NOT readed from the iMON Device.
BUT: If u insert a time.sleep(10) at line 264 to wait for the automatic reconnect...

Code: Select all

    def run(self):
        #open file/device
        try:
            eg.log.Print("Before")
            time.sleep(10)
            eg.log.Print("After")
... it works like a charm.

NOW i have to find out WHY the device disconnects itself at HID start...
@Bartman: I really could need your help now.
Last edited by brand10 on Sun May 01, 2011 4:36 am, edited 2 times in total.
brand10
Experienced User
Posts: 62
Joined: Mon Mar 29, 2010 10:31 am

Re: SoundGraph iMON HID plugin

Post by brand10 »

Very good News!!! (at least for me ;))
I solved the "disconnect / reconnect" Problem which happens at me, and some other guys in this thread.

I found out, that the following 2 function-calls in /WinApi/HID.py causes the "disconnect / reconnect" problem:

Code: Select all

result = hidDLL.HidD_GetManufacturerString(int(hidHandle), byref(infoStr), ctypes.sizeof(infoStr))
result = hidDLL.HidD_GetProductString(int(hidHandle), byref(infoStr), ctypes.sizeof(infoStr))
I tried it with smaller buffer sizes and so on, but this doesnt help. Now i have implemented a simple Workaround at line 531 into the HID.py... This solution isn't very "clean" but it works without a Problem. The "workaround" HID.py is attached at this post...
Attachments
HID.py
(22.64 KiB) Downloaded 283 times
brand10
Experienced User
Posts: 62
Joined: Mon Mar 29, 2010 10:31 am

Re: SoundGraph iMON HID plugin

Post by brand10 »

Question: Is it normal that, for example, the num-keys 0-9 in MCE Mode are not read?

It seems as they are directly translated to keyboard presses so i cant read the event in eventghost...
The same happens for up, down, left, right and "ok".
Post Reply