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.
Johnson
Posts: 48
Joined: Sun May 24, 2009 9:05 pm

Re: SoundGraph iMON HID plugin

Post by Johnson »

to Bartman
IRSS also use standard winapi for HID iMON devices.
And raw for non-HID.
There is three types of iMONs - one HID and two raw with different drivers.
My plugin work only with first one.

Incidentally, I have similar reconnect problem with Serial plugin.
I partly solve problem changing line "INVALID_HANDLE_VALUE = -1" to "INVALID_HANDLE_VALUE = 0xFFFFFFFF" in EventGhost\eg\WinApi\Dynamic.py
It let me to find the real problem.
Please check that WINAPI return handle as DWORD so negative value for handle in Pyton is incorrect.
It in Win7 32 bit, I don`t know how for other system...

Maybe problem it the same or similar?
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: SoundGraph iMON HID plugin

Post by Bartman »

You can also enumerate access HID devices via Raw input and get the raw data of device. While ultimately getting the same data the process before is different.
Maybe knowing which step causes the reconnect gives us a clue.
Johnson
Posts: 48
Joined: Sun May 24, 2009 9:05 pm

Re: SoundGraph iMON HID plugin

Post by Johnson »

Bartman wrote:You can also enumerate access HID devices via Raw input and get the raw data of device. While ultimately getting the same data the process before is different.
Maybe knowing which step causes the reconnect gives us a clue.
How I can do it?
Last edited by Johnson on Mon May 03, 2010 3:50 pm, edited 2 times in total.
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: SoundGraph iMON HID plugin

Post by Bartman »

Johnson wrote:
Bartman wrote:You can also enumerate access HID devices via Raw input and get the raw data of device. While ultimately getting the same data the process before is different.
Maybe knowing which step causes the reconnect gives us a clue.
How I can do it?
I think that could work.
Bartman wrote:Maybe someone with a little bit programming experience and such a device can modify the GetDeviceDescriptions in EG's HID.py to detect which step causes the disconnect. Some continues in the while loop should do it.
Johnson
Posts: 48
Joined: Sun May 24, 2009 9:05 pm

Re: SoundGraph iMON HID plugin

Post by Johnson »

Bartman wrote:Maybe someone with a little bit programming experience and such a device can modify the GetDeviceDescriptions in EG's HID.py to detect which step causes the disconnect. Some continues in the while loop should do it.
I don't has this problem with my device so I can't test it :wink:

In my opinion problem not in ReadFile or WriteFile but CreateFile return incorrect handle. In HID.py doesn't check handle for incorrect...
I don't know how defined INVALID_HANDLE_VALUE in win32file but if like -1 we can't see real problem so long as CreateFile return 0xFFFFFFFF like invalid handle.

Please somebody with reconnect problem change line "INVALID_HANDLE_VALUE = -1" to "INVALID_HANDLE_VALUE = 0xFFFFFFFF" in EventGhost\eg\WinApi\Dynamic.py
Something is happens?
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: SoundGraph iMON HID plugin

Post by Bartman »

Then let's wait for some with such a device.
I don't think it's read or write either. Maybe it is even before opening the device.
Johnson
Posts: 48
Joined: Sun May 24, 2009 9:05 pm

Re: SoundGraph iMON HID plugin

Post by Johnson »

Bartman wrote:Then let's wait for some with such a device.
I don't think it's read or write either. Maybe it is even before opening the device.
Ok, waiting is good 8)

Please change line "INVALID_HANDLE_VALUE = -1" to "INVALID_HANDLE_VALUE = 0xFFFFFFFF" in EventGhost\eg\WinApi\Dynamic.py
Maybe it's not this problem but -1 isn't right...
brand10
Experienced User
Posts: 62
Joined: Mon Mar 29, 2010 10:31 am

Re: SoundGraph iMON HID plugin

Post by brand10 »

Johnson wrote:Please change line "INVALID_HANDLE_VALUE = -1" to "INVALID_HANDLE_VALUE = 0xFFFFFFFF" in EventGhost\eg\WinApi\Dynamic.py
Maybe it's not this problem but -1 isn't right...
I changed the Value to your suggestion but it does not solve the Problem.

Heres a Screenshot about my EG Situation... I wonder about the Device Name "@input.inf,%hid_device%,HID....". Every other device in the list appears with a "normal" name.
Attachments
reconnect.jpg
Johnson
Posts: 48
Joined: Sun May 24, 2009 9:05 pm

Re: SoundGraph iMON HID plugin

Post by Johnson »

brand10 wrote:Heres a Screenshot about my EG Situation... I wonder about the Device Name "@input.inf,%hid_device%,HID....". Every other device in the list appears with a "normal" name.
In version 0.3 the problem of broken name is corrected. I'm only remove the consequence - now name of all iMON devices is "SoundGraph iMON HID".
The real cause is more depper and not in plugin.
Metylisator
Posts: 3
Joined: Thu Jul 02, 2009 8:51 am

Re: SoundGraph iMON HID plugin

Post by Metylisator »

Hi,
first of all many thanks for this plugin.
I have two Questions:
1. How can I use the Events generated by the Volume Knob of my Antec Fusion Remote Max Case in Eventghost.
I see Events Imon.Volume 1 and Imon.Volume -1 in the Eventlog but i don┬┤t know,how to use the values 1/-1.
2. Will you implement MCE Remote in the Future?
Thank you.
NicCOConnor
Posts: 3
Joined: Mon Sep 27, 2010 6:54 pm

Re: SoundGraph iMON HID plugin

Post by NicCOConnor »

I have the iMon Mini USB adapter.

I am using the latest version of EventGhost and I have downloaded this plugin, Created a folder in the Plugin's directory and restarted Event Ghost. I still can't get this plugin to show up under Devices. Can anybody assist? I've tried to follow the developers guide but it seems that all that is required is the __init__.py which exist and has the .RegisterPlugin event/method

Some info about my configuration. I do have the iMon manager installed so could this be blocking event ghost from accessing the device? I Don't have any errors in the event log.

Also are there any developer logs that I can access that may show what is going wrong while trying to load this plugin?

Thanks for any help you can give.

Nic
Johnson
Posts: 48
Joined: Sun May 24, 2009 9:05 pm

Re: SoundGraph iMON HID plugin

Post by Johnson »

Click "Add Plugin...", under Remote recievers select "SoundGraph iMON HID".
NicCOConnor
Posts: 3
Joined: Mon Sep 27, 2010 6:54 pm

Re: SoundGraph iMON HID plugin

Post by NicCOConnor »

No I mean it doesn't show up in the Add Plugin List. Wish it were that simple :-)

Nic
Johnson
Posts: 48
Joined: Sun May 24, 2009 9:05 pm

Re: SoundGraph iMON HID plugin

Post by Johnson »

The path to plugin file must be "<EventGhost>\plugins\iMON\__init__.py" exactly.
Is it?
NicCOConnor
Posts: 3
Joined: Mon Sep 27, 2010 6:54 pm

Re: SoundGraph iMON HID plugin

Post by NicCOConnor »

yes it's exactly as shown.

Nic
Post Reply