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.
jott_st
Posts: 1
Joined: Tue Jun 25, 2013 8:08 am

Re: OnkyoISCP plugin

Post by jott_st »

Livin wrote:
abraxxa wrote:That's because of your auto-repeat option, not some direct problem of the plugin.
There is nothing I can do in the plugin to prevent you from shooting you in the foot.
Autorepeat has nothing to do with the problem - it is a option in the XBMC plugin and has nothing to do with any other plugin/command/etc

When the problem occurs all human input/activity has stopped and the Onkyo is in standby (network is always alive).

Please look at this with an open mind and lets try to figure out why this is happening. It does not happen all the time but about once every day two. The PC is rebooted every night.

Log when things work as they should...
Log from when OnkyoISCP plugin went into its loop...
2013-03-16 22:30:19 OnkyoISCP: [Errno 10054] An existing connection was forcibly closed by the remote host
2013-03-16 22:30:19 OnkyoISCP: [Errno 10054] An existing connection was forcibly closed by the remote host
2013-03-16 22:30:19 OnkyoISCP: [Errno 10054] An existing connection was forcibly closed by the remote host
2013-03-16 22:30:19 OnkyoISCP: [Errno 10054] An existing connection was forcibly closed by the remote host
2013-03-16 22:30:19 OnkyoISCP: [Errno 10054] An existing connection was forcibly closed by the remote host
I ran into the same problem and fixed it by adding a break in line 88. Like this:

Code: Select all

[...]
86            except Exception as e:
87                self.PrintError("OnkyoISCP: " + str(e))
88                break
89
90    def Connect(self):
[...]
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: OnkyoISCP plugin

Post by Livin »

Jott - thanks!
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: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: OnkyoISCP plugin

Post by Livin »

Jott -- I get an indent error no matter what level I indent to?
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: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: OnkyoISCP plugin

Post by Livin »

I figured it out... I mimic'd your post and it was not happy.

So I went into Windows Notepad (I was using Notepad ++) and copied the spaces before the previous line (to get the same "indent") and it worked... then I looked at it again in Notepad ++ and it shows this...

Code: Select all

            except Exception as e:
                self.PrintError("OnkyoISCP: " + str(e))

                break

    def Connect(self):
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: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: OnkyoISCP plugin

Post by Livin »

Now I'm getting other errors...

Code: Select all

12:11:31         Error in Action: "Onkyo ISCP: SendCommand: ZPW00"
12:11:31         Traceback (most recent call last) (1610):
12:11:31           File "C:\Users\ha\Documents\EventGhost\eg\Classes\ActionBase.py", line 170, in CallWrapper
12:11:31             return self(*args)
12:11:31           File "C:\Users\ha\Documents\EventGhost\plugins\OnkyoISCP\__init__.py", line 159, in __call__
12:11:31             self.PrintError("OnkyoISCP: Error sending command, retrying: " + msg)
12:11:31         TypeError: cannot concatenate 'str' and 'error' objects
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
abraxxa
Experienced User
Posts: 81
Joined: Wed Dec 22, 2010 9:10 pm

Re: OnkyoISCP plugin

Post by abraxxa »

It seems you don't have the latest version of my plugin which is 0.06, see the github repo.
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: OnkyoISCP plugin

Post by Livin »

thx, I installed the latest version - did not realize I was behind :)
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
blaher
Experienced User
Posts: 487
Joined: Thu Nov 17, 2011 1:27 am

Re: OnkyoISCP plugin

Post by blaher »

I'm using 0.06 and get the same error, as I can tell. I can fix it by going to the IP address of the Receiver via a web page and issuing a command, but the wget method doesn't fix it either. Until I do that, the plugin won't connect.
Attachments
Capture.PNG
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: OnkyoISCP plugin

Post by jonib »

I don't know anything about this plugin, but the TypeError should be easy to fix:

Change this line:

Code: Select all

self.PrintError("OnkyoISCP: Error sending command, retrying: " + msg)
To this:

Code: Select all

self.PrintError("OnkyoISCP: Error sending command, retrying: " + str(msg))
But I'm guessing it wont help the functionality of the plugin.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
abraxxa
Experienced User
Posts: 81
Joined: Wed Dec 22, 2010 9:10 pm

Re: OnkyoISCP plugin

Post by abraxxa »

I just checked and saw that I didn't do a release after this and one other type error was fixed.
In the meantime please use github master, I'll try to find some time to release it as 0.07.
blaher
Experienced User
Posts: 487
Joined: Thu Nov 17, 2011 1:27 am

Re: OnkyoISCP plugin

Post by blaher »

jonib wrote:I don't know anything about this plugin, but the TypeError should be easy to fix:

Change this line:

Code: Select all

self.PrintError("OnkyoISCP: Error sending command, retrying: " + msg)
To this:

Code: Select all

self.PrintError("OnkyoISCP: Error sending command, retrying: " + str(msg))
But I'm guessing it wont help the functionality of the plugin.

jonib
Cheers, you're correct: that fixes the error message itself, but not the plugin connecting.

I've attached the plugin with the changes that you and jott_st have suggested so it's easier for others to use. It no longer crashes Eventghost when you disable the NIC that the Onkyo plugin is using, but I haven't found a way to automate the reconnection yet. I can detect the crash with viewtopic.php?f=9&t=3881 but am not sure the steps to reconnect.

The closest I've come is changing inputs back & forth with wget.exe, and then disabling/enabling the Onkyo plugin, and restarting EventGhost. That works, but not very consistently.
Attachments
__init__.py
(6.08 KiB) Downloaded 350 times
DirtDiver
Posts: 1
Joined: Thu Oct 10, 2013 1:10 pm

Re: OnkyoISCP plugin

Post by DirtDiver »

Whenever my receiver sends a NJA (Jacket Art) event the plugin stops receiving further events. I have to restart Eventghost to get it running again. Has anyone had this problem? Below is the part of the log where the error occurs.


15:09:32 OnkyoISCP.NJA '00424D360401000000000036040000280000008000000080000000010008000000000000000000000000000000000000010000000100002B6173FF4B677EFF163285FFB1CAECFF101E7EFFB4C5D1FF3B53CFFF252E68FF2A3D64FF80C7D4FF6B9CCFFF2E34B4FF4E62A0FF6C74C7FF303C51FF3258A9FF2151D2FF82'
15:09:32 OnkyoISCP.NJA00424D360401000000000036040000280000008000000080000000010008000000000000000000000000000000000000010000000100002B6173FF4B677EFF163285FFB1CAECFF101E7EFFB4C5D1FF3B53CFFF252E68FF2A3D64FF80C7D4FF6B9CCFFF2E34B4FF4E62A0FF6C74C7FF303C51FF3258A9FF2151D2FF82
15:09:32 OnkyoISCP.NJA '019DD4FF182137FF4E9B9EFF383DC1FF7C85DAFF0D1122FF6A7A8AFFA4B4CEFFEDF7FBFF5C6679FF305FDFFF2E37A1FF8393ADFF5D789FFF2D36C3FF71B4D6FF355FC2FFBED9EAFF465D77FF121A39FFC4D0E3FF142859FF152A6CFF4E667BFF273EC3FF0A103BFF555C68FF5C656FFF384FA1FFA2BAEEFF4679A3FF'
15:09:32 OnkyoISCP: Received packet not ISCP
15:09:32 OnkyoISCP.NJA019DD4FF182137FF4E9B9EFF383DC1FF7C85DAFF0D1122FF6A7A8AFFA4B4CEFFEDF7FBFF5C6679FF305FDFFF2E37A1FF8393ADFF5D789FFF2D36C3FF71B4D6FF355FC2FFBED9EAFF465D77FF121A39FFC4D0E3FF142859FF152A6CFF4E667BFF273EC3FF0A103BFF555C68FF5C656FFF384FA1FFA2BAEEFF4679A3FF
Pliind
Experienced User
Posts: 50
Joined: Tue Dec 31, 2013 7:40 pm

Re: OnkyoISCP plugin

Post by Pliind »

Want to give an heads up to anybody else using this plugin and just bought a Vera-controller. You might have a bug in your receiver locking up the whole networkcontrolling function. Update firmware on Onkyo to fix it!
adamsweet
Posts: 4
Joined: Wed Mar 04, 2015 3:05 am

Re: OnkyoISCP plugin

Post by adamsweet »

@ pliind do you have an onkyo 2014 model working with ev? I have nr737 and can only get vera to control not ideal at all
logikz
Posts: 2
Joined: Sun Jul 05, 2015 9:38 pm

Re: OnkyoISCP plugin

Post by logikz »

Is this plugin still supported?

I'm trying to use it to connect to my onkyo receiver, I can discover/send commands to it using an external python script but when I try to send commands to it through event ghost nothing happens. When I connect to my device in EG, it connects just fine and I can even see events on my onkyo in EG, it just doesn't respond to the events I send through EG.

Any debugging I can look into? Is this some weird windows permission/compatibility issue? I'm on Windows 8.1

Thanks
Post Reply