Page 6 of 6

Re: Onkyo Reciver RS232 plugin

Posted: Sun Sep 13, 2009 3:17 pm
by prostetnic
Since I updated to the latest EG (r1194) I have started to get problems with this updated plugin. Often when I run EG at start-up I get the following error message.

Code: Select all

Exception in thread Thread-4:
Traceback (most recent call last):
  File "threading.pyc", line 525, in __bootstrap_inner
  File "threading.pyc", line 477, in run
  File "C:\Program Files\EventGhost\eg\Classes\SerialThread.py", line 376, in ReceiveThreadProc
SerialError: (6, u'The handle is invalid.')
Later when EG try to send a command to the Onkyo receiver I get this error code

Code: Select all

      Onkyo AV Serial: Power Standby
6
The handle is invalid.
This problem is solved by repeatedly trying to change COM port in the plugin and reinitialise and then changing back to the correct port (COM7 the one that I try to use during start up.)

Any idea what is causing this?

Re: Onkyo Reciver RS232 plugin

Posted: Sun Sep 13, 2009 5:25 pm
by Livin
Fiasco,
A few things...
I'm still not getting the Zone bar at the bottom?
The 'power' button only puts the Onkyo in standby, it will not turn it on.
Thought you could use an FAQ (see below)


prostetnic,
I was having several issues, some were exactly what you are seeing. See the below...



FAQ

Fixing problems/issues...
1) Remove all Onkyo related folders/actions/events (make a backup for adding back in later if needed)
2) Remove all Onkyo plugins.
3) See Install How-To below
4) Close down EG

Install How-To...
1) Open and add the Onkyo 875 plugin.
2) When prompted for the fodler location, accept the default.
3) Delete the XML folder the 875 plugin added (in EG's right pane)
4) Close EG
5) Find the XML file in the 'html' directoryr Fiasco included with the plugin
6) Open the XML file and copy only the section that starts with <Folder> and ends with</Folder>
7) Open your MyConfig.xml and paste that code into the file at the end, before the </EventGhost>

Re: Onkyo Reciver RS232 plugin

Posted: Mon Sep 14, 2009 7:14 pm
by prostetnic
I followed the instructions but I still get the same error message :(
I use win XP sp3 if that could be a problem?

Re: Onkyo Reciver RS232 plugin

Posted: Mon Sep 14, 2009 11:29 pm
by Livin
prostetnic wrote:I followed the instructions but I still get the same error message :(
I use win XP sp3 if that could be a problem?
SP3 is not the problem... If you remove the entire EG folder, reinstall, it will probably work. If it does, you have a problem with your install.

Re: Onkyo Reciver RS232 plugin

Posted: Tue Sep 15, 2009 3:24 pm
by Fiasco
Livin wrote:Fiasco,
A few things...
I'm still not getting the Zone bar at the bottom?
The 'power' button only puts the Onkyo in standby, it will not turn it on.
Thought you could use an FAQ (see below)


prostetnic,
I was having several issues, some were exactly what you are seeing. See the below...
The "power off" button (red ring) should be replaced by a "power on" button (yellow ring) in the same position on the remote.

You are using the dynamic webserver and not the regular EventGhost webserver right? If you are using the regular webserver and not the dynamic webserver, the remote doesn't know the power state of the receiver and it won't update the power button to the correct mode.

Here is the background image which is missing from the archive (just save it in your images directory on your eventghost webserver.

If you don't have safari browser, download it. Go to your eventghost URL. Then, under the "Develop" menu select "Start Debugging Javascript".

First check the resources. Click the resources button and go through the list and see if any of the listed resources were not found. Look at variables.html under the resources list and make sure that values have been assigned to the variables.

If it looks like:
onkyoz1power:{{eg.globals.onkyoz1power}}
onkyoz1volume:{{eg.globals.onkyoz1volume}}
onkyoz1mute:{{eg.globals.onkyoz1mute}}
onkyoz1input:{{eg.globals.onkyoz1input}}
onkyoz2power:{{eg.globals.onkyoz2power}}
onkyoz2mute:{{eg.globals.onkyoz2mute}}
onkyoz2volume:{{eg.globals.onkyoz2volume}}
onkyoz2input:{{eg.globals.onkyoz2input}}
onkyoz3power:{{eg.globals.onkyoz3power}}
onkyoz3mute:{{eg.globals.onkyoz3mute}}
onkyoz3volume:{{eg.globals.onkyoz3volume}}
onkyoz3input:{{eg.globals.onkyoz3input}}
onkyoband:{{eg.globals.onkyoband}}
onkyofrequency:{{eg.globals.onkyofrequency}}
onkyolistenmode:{{eg.globals.onkyolistenmode}}
onkyosleeptime:{{eg.globals.onkyosleeptime}}

Then there's an issue. All variables in curly brackets should be replaced by state values from your receiver.

Next go to scripts. At the bottom of the debug window is an icon that looks like a greater then sign followed by 3 lines. Select that and look for javascript errors (in red).

As for the zone bar, do you not see a bar at all on the bottom of the screen, or do you see a bar that just lacks the Zone 1/2/3 artwork?

Re: Onkyo Reciver RS232 plugin

Posted: Wed Sep 16, 2009 1:51 am
by Livin
I don't see the Zone bar at all... the lower safari browser navigation bar (blue bar with arrows, bookmarks, etc) is what shows.

Also, the power button is not changing colors... I do have the Dynamic Webserver plugin enabled (no other web plugins are installed)

I will download safari onto a PC and try it and let you know what the code looks like.

thx

Re: Onkyo Reciver RS232 plugin

Posted: Wed Sep 16, 2009 1:12 pm
by Fiasco
You need to do this.

load the page in your iphone safari browser. Click the '+' symbol at the bottom. Select "Add To Homescreen".

Now, close safari and return to your homescreen and launch the remote with the newly created shortcut.

Now you will see the zone bar.

Re: Onkyo Reciver RS232 plugin

Posted: Sun Jun 07, 2015 12:57 am
by WinoOutWest
Ok I realize this thread is 6 years old - hopefully Fiasco is still around?
But I just came across it searching for a better solution for my troublesome iRule control.

I've installed the plugin and am currently testing with one of my Integra amps already hooked up to a 4 port RS232 serial controller.
It works awesome!
Got the feedback working in a test webpage.

My situation is that I have 3 of these Integra amps in my whole house setup and I will want to set up a page for control and feedback on all 3 of them.

My question is how do I do that with one plugin? Each receiver has its own com port. I am wondering how to distinguish the controls and feedback from the 3 different receivers?

Re: Onkyo Reciver RS232 plugin

Posted: Fri Jun 19, 2015 6:25 am
by kgschlosser
I personally have not use this Plugin, But most of the coders here do a great job of implementing features like multiloading and setting the Event prefix in the config.

right click the plugin and click on configure, in there you should be able to set an event prefix. if you are able to load the plugin more than once, you would set the prefix to something different for each one that way you can tell them apart.

now if you open the __init__.py file. usually within the top 1/3 of the file you should find this code segment. filled in Obviously.

Code: Select all

eg.RegisterPlugin(
    name = " ",
    author = " ",
    version = " ",
    description = " ",
    kind = " ",
    guid = " ",
    url = " ",
    canMultiLoad = True,

or you can just try and load it 2 times. but if there is no way to set the event prefix multiloading is kind of a moot point if ya can't distinguish between them.

if the original Developer is not around and these features are not implemented. I could possibly alter it for ya. but it will be a lot of back and forth due to testing as i do not own an Onkyo AVR

Re: Onkyo Reciver RS232 plugin

Posted: Wed Jul 08, 2015 5:26 am
by WinoOutWest
Thanks for the reply - I was away and just noticed it today.

I have been playing further with this plugin and I installed multiple instances of the plugin and assigned them to different com ports and the control part is working fine. I can send commands and control the 2nd Onkyo receiver just fine. I can see the feedback being generated in the event log and they do seem to be unique for each receiver but I can't figure out how to reference the feedback in a webpage for the second instance. I can get the feedback from the first instance but don't know what the variable would be for the second instance. (ie> {{eg.globals.onkyopower}} is the variable for the power status) and that is displaying in my web page ok for the 1st receiver.

Any ideas on how I can display the same variable from the second instance?