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.

OnkyoISCP plugin

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
Owel
Posts: 41
Joined: Thu May 31, 2012 5:51 am

Re: OnkyoISCP plugin

Post by Owel »

I just want to Thank you for this Plugin.

:)

Danke
blaher
Experienced User
Posts: 487
Joined: Thu Nov 17, 2011 1:27 am

Re: OnkyoISCP plugin

Post 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
abraxxa
Experienced User
Posts: 81
Joined: Wed Dec 22, 2010 9:10 pm

Re: OnkyoISCP plugin

Post 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.
blaher
Experienced User
Posts: 487
Joined: Thu Nov 17, 2011 1:27 am

Re: OnkyoISCP plugin

Post 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.
abraxxa
Experienced User
Posts: 81
Joined: Wed Dec 22, 2010 9:10 pm

Re: OnkyoISCP plugin

Post 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.
blaher
Experienced User
Posts: 487
Joined: Thu Nov 17, 2011 1:27 am

Re: OnkyoISCP plugin

Post 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.
abraxxa
Experienced User
Posts: 81
Joined: Wed Dec 22, 2010 9:10 pm

Re: OnkyoISCP plugin

Post 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?
blaher
Experienced User
Posts: 487
Joined: Thu Nov 17, 2011 1:27 am

Re: OnkyoISCP plugin

Post 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.
Last edited by blaher on Sun Sep 09, 2012 6:58 am, edited 1 time in total.
abraxxa
Experienced User
Posts: 81
Joined: Wed Dec 22, 2010 9:10 pm

Re: OnkyoISCP plugin

Post by abraxxa »

I'll try the same this weekend and tell you what happens with my Onkyo PR-SC5507.
blaher
Experienced User
Posts: 487
Joined: Thu Nov 17, 2011 1:27 am

Re: OnkyoISCP plugin

Post 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. :)
abraxxa
Experienced User
Posts: 81
Joined: Wed Dec 22, 2010 9:10 pm

Re: OnkyoISCP plugin

Post by abraxxa »

Which specific comments are you referring to?
blaher
Experienced User
Posts: 487
Joined: Thu Nov 17, 2011 1:27 am

Re: OnkyoISCP plugin

Post by blaher »

None in particular, just thought the info like header size, etc. and possibly a few comments might be of interest.
abraxxa
Experienced User
Posts: 81
Joined: Wed Dec 22, 2010 9:10 pm

Re: OnkyoISCP plugin

Post by abraxxa »

Thanks, but I already have this infos.
blaher
Experienced User
Posts: 487
Joined: Thu Nov 17, 2011 1:27 am

Re: OnkyoISCP plugin

Post 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?
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: OnkyoISCP plugin

Post 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/
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
Post Reply