Page 5 of 14
Re: OnkyoISCP plugin
Posted: Thu May 31, 2012 6:11 am
by Owel
I just want to Thank you for this Plugin.
Danke
Re: OnkyoISCP plugin
Posted: Wed Sep 05, 2012 4:16 am
by blaher
I've been using this plug-in very successfully, thanks, but I got an error today, so thought I'd post it:
14:11:09 Error in Action: "Onkyo ISCP: SendCommand: SLI02"
14:11:09 Traceback (most recent call last) (1582):
14:11:09 File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionBase.py", line 170, in CallWrapper
14:11:09 return self(*args)
14:11:09 File "C:\Program Files (x86)\EventGhost\plugins\OnkyoISCP\__init__.py", line 157, in __call__
14:11:09 self.PrintError("OnkyoISCP: Error sending command, retrying: " + msg)
14:11:09 TypeError: cannot concatenate 'str' and 'timeout' objects
Going into the webpage and sending a !1PWR01 command, and then disabling/enabling the plugin, and it's all working again.
Cheers
Re: OnkyoISCP plugin
Posted: Wed Sep 05, 2012 10:19 pm
by abraxxa
I could replicate your error, it happens when the Onkyo is switched off or isn't reachable over the network.
Fixed in
commit ecb4e790bd.
I'll release it as 0.07 if you confirm the fix.
Re: OnkyoISCP plugin
Posted: Thu Sep 06, 2012 3:27 am
by blaher
I unplugged my network cable and tried sending it a command, but it crashes EventGhost:
http://i.imgur.com/oCoNG.gif
After I plugged it back in and restarted EventGhost it won't connect. I can replicate the same error by turning off my computer at the wall, (simulating a power cut), without shutting down properly first.
Here's a screen:
http://i.imgur.com/JZO21.png
You can see when the plug-in loads, it won't connect and sending a command doesn't work either, that is until I went into the webpage on my browser and sent a command. After I did that, (13:05:44), it connects and send commands properly.
Re: OnkyoISCP plugin
Posted: Thu Sep 06, 2012 6:35 am
by abraxxa
Did you unplug the network cable of the pc running EventGhost or the Onkyo?
I switched off my Onkyo yesterday while EG was running and connected, sent a command which failed, turned it back on, sent another command and it immediately worked.
Is your Onkyo firmware up2date? This sounds like a bug in the Onkyo to me.
Re: OnkyoISCP plugin
Posted: Thu Sep 06, 2012 7:00 am
by blaher
abraxxa wrote:Did you unplug the network cable of the pc running EventGhost or the Onkyo?
The network cable from the Onkyo goes into a dlink network switch, which then goes to my PC. I pulled out the Onkyo network cable at the switch end.
I switched off my Onkyo yesterday while EG was running and connected, sent a command which failed, turned it back on, sent another command and it immediately worked.
When you say switched off, I presume you mean at the wall; I haven't tried that. Have you tried disconnecting a network cable?
Is your Onkyo firmware up2date? This sounds like a bug in the Onkyo to me.
Yes, possibly, but the webpage access doesn't seem to be affected by the network cable dropping, and somehow it reinitialises the plug-in.
Re: OnkyoISCP plugin
Posted: Thu Sep 06, 2012 9:01 pm
by abraxxa
I've just pulled the ethernet cable out of my Onkyo, waited a few seconds and put it back in. Then I've send a command and it was executed without even a single timeout.
Which Onkyo model do you have?
Can you supply a wireshark capture file so I can look at what's happening?
Re: OnkyoISCP plugin
Posted: Fri Sep 07, 2012 8:06 am
by blaher
I pulled the network cable out, then sent the command. Granted it's not what would normally happen, but it seems to replicate the error.
Integra DHC-9.9
Sure, I'll to do it tomorrow.
Edit: Attached is me crashing EG by sending a command twice with the cable unplugged. Then after reloading EG, it won't connect or send commands. Then I fired up the webpage which you can see by the http requests in the logs and it works. Going back to EG afterwards and it connects and sends once again.
Hope that helps.
Re: OnkyoISCP plugin
Posted: Fri Sep 07, 2012 8:12 am
by abraxxa
I'll try the same this weekend and tell you what happens with my Onkyo PR-SC5507.
Re: OnkyoISCP plugin
Posted: Wed Sep 12, 2012 3:53 am
by blaher
I found another .xml for a home automation box, but it seems to have a few comments that might contain information useful to you, so I thought I'd post it.

Re: OnkyoISCP plugin
Posted: Wed Sep 12, 2012 8:43 am
by abraxxa
Which specific comments are you referring to?
Re: OnkyoISCP plugin
Posted: Thu Sep 13, 2012 2:20 am
by blaher
None in particular, just thought the info like header size, etc. and possibly a few comments might be of interest.
Re: OnkyoISCP plugin
Posted: Thu Sep 13, 2012 6:17 am
by abraxxa
Thanks, but I already have this infos.
Re: OnkyoISCP plugin
Posted: Mon Sep 17, 2012 5:49 am
by blaher
Oh OK, no harm done then.

Did the Wireshark logs help? Does your Eventghost crash when you send a couple of commands with an unplugged cable?
Re: OnkyoISCP plugin
Posted: Fri Jan 04, 2013 6:32 pm
by Livin
@abraxxa
I could not find any documentation for your plugin. Does this code receive Onkyo data like the serial version does? I frequently used the onkyo serial plug to monitor what was happening with the receiver and trigger events.
It would be great if you could do like the serial plugin has and integrate EG "Actions" for each instead of having the users chase down the code to use... plus, having individual actions makes things much easier to understand/read when they are in the EG tree.
Not sure if you've seen it but while searching for the commands I ran across...
https://github.com/miracle2k/onkyo-eiscp
... thought you might be able to directly use some of this especially since it is coded in python?
ALSO -- you might want to change your first post to update the link to OyRemote...
http://www.krautsourced.com/software/oyremote/