OnkyoISCP plugin

Do you have questions about writing plugins or scripts in Python? Meet the coders here.

Re: OnkyoISCP plugin

Postby Owel » Thu May 31, 2012 6:11 am

I just want to Thank you for this Plugin.

:)

Danke
Owel
 
Posts: 37
Joined: Thu May 31, 2012 5:51 am

Re: OnkyoISCP plugin

Postby blaher » Wed Sep 05, 2012 4:16 am

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

Re: OnkyoISCP plugin

Postby abraxxa » Wed Sep 05, 2012 10:19 pm

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

Re: OnkyoISCP plugin

Postby blaher » Thu Sep 06, 2012 3:27 am

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

Re: OnkyoISCP plugin

Postby abraxxa » Thu Sep 06, 2012 6:35 am

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

Re: OnkyoISCP plugin

Postby blaher » Thu Sep 06, 2012 7:00 am

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

Re: OnkyoISCP plugin

Postby abraxxa » Thu Sep 06, 2012 9:01 pm

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

Re: OnkyoISCP plugin

Postby blaher » Fri Sep 07, 2012 8:06 am

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.
Attachments
eg.zip
(2.81 KiB) Downloaded 54 times
Last edited by blaher on Sun Sep 09, 2012 6:58 am, edited 1 time in total.
blaher
Experienced User
 
Posts: 151
Joined: Thu Nov 17, 2011 1:27 am

Re: OnkyoISCP plugin

Postby abraxxa » Fri Sep 07, 2012 8:12 am

I'll try the same this weekend and tell you what happens with my Onkyo PR-SC5507.
abraxxa
Experienced User
 
Posts: 78
Joined: Wed Dec 22, 2010 9:10 pm

Re: OnkyoISCP plugin

Postby blaher » Wed Sep 12, 2012 3:53 am

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. :)
Attachments
I_OnkyoReceiver1.xml
(18.32 KiB) Downloaded 84 times
blaher
Experienced User
 
Posts: 151
Joined: Thu Nov 17, 2011 1:27 am

Re: OnkyoISCP plugin

Postby abraxxa » Wed Sep 12, 2012 8:43 am

Which specific comments are you referring to?
abraxxa
Experienced User
 
Posts: 78
Joined: Wed Dec 22, 2010 9:10 pm

Re: OnkyoISCP plugin

Postby blaher » Thu Sep 13, 2012 2:20 am

None in particular, just thought the info like header size, etc. and possibly a few comments might be of interest.
blaher
Experienced User
 
Posts: 151
Joined: Thu Nov 17, 2011 1:27 am

Re: OnkyoISCP plugin

Postby abraxxa » Thu Sep 13, 2012 6:17 am

Thanks, but I already have this infos.
abraxxa
Experienced User
 
Posts: 78
Joined: Wed Dec 22, 2010 9:10 pm

Re: OnkyoISCP plugin

Postby blaher » Mon Sep 17, 2012 5:49 am

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

Re: OnkyoISCP plugin

Postby Livin » Fri Jan 04, 2013 6:32 pm

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

PreviousNext

Return to Coding Corner

Who is online

Users browsing this forum: No registered users and 2 guests