Page 5 of 7

Re: SoundGraph iMON HID plugin

Posted: Sun May 02, 2010 6:32 pm
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?

Re: SoundGraph iMON HID plugin

Posted: Sun May 02, 2010 6:51 pm
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.

Re: SoundGraph iMON HID plugin

Posted: Mon May 03, 2010 3:35 pm
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?

Re: SoundGraph iMON HID plugin

Posted: Mon May 03, 2010 3:37 pm
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.

Re: SoundGraph iMON HID plugin

Posted: Mon May 03, 2010 3:59 pm
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?

Re: SoundGraph iMON HID plugin

Posted: Mon May 03, 2010 4:03 pm
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.

Re: SoundGraph iMON HID plugin

Posted: Mon May 03, 2010 4:21 pm
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...

Re: SoundGraph iMON HID plugin

Posted: Tue May 11, 2010 12:08 am
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.

Re: SoundGraph iMON HID plugin

Posted: Sun May 16, 2010 11:26 am
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.

Re: SoundGraph iMON HID plugin

Posted: Fri Jul 23, 2010 1:57 pm
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.

Re: SoundGraph iMON HID plugin

Posted: Mon Sep 27, 2010 7:05 pm
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

Re: SoundGraph iMON HID plugin

Posted: Mon Sep 27, 2010 7:49 pm
by Johnson
Click "Add Plugin...", under Remote recievers select "SoundGraph iMON HID".

Re: SoundGraph iMON HID plugin

Posted: Tue Sep 28, 2010 6:17 pm
by NicCOConnor
No I mean it doesn't show up in the Add Plugin List. Wish it were that simple :-)

Nic

Re: SoundGraph iMON HID plugin

Posted: Wed Sep 29, 2010 5:40 pm
by Johnson
The path to plugin file must be "<EventGhost>\plugins\iMON\__init__.py" exactly.
Is it?

Re: SoundGraph iMON HID plugin

Posted: Fri Oct 01, 2010 1:11 am
by NicCOConnor
yes it's exactly as shown.

Nic