OnkyoISCP plugin

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
blaher
Experienced User
Posts: 481
Joined: Thu Nov 17, 2011 1:27 am

Re: OnkyoISCP plugin

Post by blaher » Mon Jan 14, 2013 7:41 am

Owel wrote:Re-install has not fixed it.

But I don't think it will work either. Because, can you explain how the PWR01 will work if the receiver is in standby? For my understanding, if the Onkyo is in standby, all connections are closed and no new can be established until the Onkyo is turned on. correct?
No, even when it's in standby, if you have the remote network part enabled, it will listen for signals. I can turn mine on from with the PWR01 command from standby. Have you tried doing it via the webpage IP of your Onkyo?

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

Re: OnkyoISCP plugin

Post by Owel » Mon Jan 14, 2013 8:53 am

I will try it!
I've only entered ip, netmask and gateway in the onkyo setings. Is there another thing i have to configure?

User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: OnkyoISCP plugin

Post by Livin » Mon Jan 14, 2013 3:33 pm

Owel wrote:Re-install has not fixed it.

But I don't think it will work either. Because, can you explain how the PWR01 will work if the receiver is in standby? For my understanding, if the Onkyo is in standby, all connections are closed and no new can be established until the Onkyo is turned on. correct?
My NR818 has a Network Standby feature... if it is on, Ethernet is always on and listening for commands... thus, when you send any command it automatically turns on the receiver.
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

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

Re: OnkyoISCP plugin

Post by Owel » Tue Jan 22, 2013 7:46 am

Yeah, my 808 hast this network standby feature.
And it was turned off :twisted:
I suggest that when I had changed network settings (IP had changed), the the network standby feature turned off automatically.

So I turned it on, and now the Plugin works as expected.
With the change I've made, the plugin meets perfectly my needs.

Owel

abraxxa
Experienced User
Posts: 81
Joined: Wed Dec 22, 2010 9:10 pm

Re: OnkyoISCP plugin

Post by abraxxa » Tue Jan 22, 2013 7:54 am

Good to hear!
I'll apply the pull request as soon as I find some time, stay tuned!

User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: OnkyoISCP plugin

Post by Livin » Tue Jan 22, 2013 4:04 pm

love this plugin... working flawlessly for me for a week now.

let me know when you get it to read from the XLS and I'll test it. I'd really like to automate more things for the Onkyo integrating it with my MiCasaVerde Vera to create Scenes but I'm waiting for the XLS integration.
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 » Tue Jan 22, 2013 4:34 pm

There won't be any XLS integration because XLS is a closed-source format with licensing from Microsoft.

User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: OnkyoISCP plugin

Post by Livin » Tue Jan 22, 2013 5:02 pm

abraxxa wrote:There won't be any XLS integration because XLS is a closed-source format with licensing from Microsoft.
if you want to make the interface CSV that would be great since XLS, and all known spreadsheet formats, can be exported to CSV.

BTW... 99+% of all business spreadsheets are in XLS format, the 'format' and interface to XLS/XLSX is published and not closed in any way - hundreds of thousands of applications interface into XLS and have been for many years. The only thing 'closed' is the source code for Excel. Microsoft does not protect or limit anyone use of XLS files in any way.

I worked for Microsoft years ago, very familiar with this subject :)
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

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

Re: OnkyoISCP plugin

Post by Owel » Mon Mar 04, 2013 10:13 am

just a note:

I have messured the current consumption while network standby feature enabled and disabled.

Result:
network standby feature enabled 50W in standby
network standby feature disabled 0W in standby (0W is not possible, but i think it is ~ 1-2W)

So just for turning the Onkyo on, 50W is quite a lot. I've deactivated that feature.
Controlling the Onkyo when it is on still works...

Owel

User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: OnkyoISCP plugin

Post by Livin » Mon Mar 04, 2013 3:52 pm

Owel wrote:just a note:

I have messured the current consumption while network standby feature enabled and disabled.

Result:
network standby feature enabled 50W in standby
network standby feature disabled 0W in standby (0W is not possible, but i think it is ~ 1-2W)

So just for turning the Onkyo on, 50W is quite a lot. I've deactivated that feature.
Controlling the Onkyo when it is on still works...

Owel
it varies greatly based on your model. I have an NR818 so the network standby power is so low it does not matter. See the post from a user on AVSforum...
Originally Posted by rworne
I have to say from the start, Onkyo did a hell of a job cutting down the standby power on this device. All measurements were made in watts using a standard Kill-a-Watt device after doing a factory reset on all these devices.

Out of box (Net Off, HDMI RIHD Off):
TX-NR818 Standby 0.0 W
TX-NR818 On 80.0 W (idle, on BD input, nothing playing)
TX-NR609 Standby 0.0 W
TX-NR609 On 112.0 W (idle, on BD input, nothing playing)
HT-RC180 Standby 0.0 W
HT-RC180 On 100.0 W (idle, on BD input, nothing playing) This is basically the same as a TX-NR807

Network Control Enabled:
TX-NR818 Standby 2.2 W
TX-NR609 Standby 29.1 W
HT-RC180 Standby 49.7 W

HDMI RIHD On (enable ARC and pass-thru)
TX-NR818 Standby 7.2 W
TX-NR609 Standby 29.3 W
HT-RC180 Standby 49.9 W

Net and HDMI enabled:
TX-NR818 Standby 8.4 W
TX-NR609 Standby 29.5 W
HT-RC180 Standby 50.1 W
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 » Sun Mar 17, 2013 5:58 am

Owel,
I see the below error often. It repeats forever, locking up EG.

Code: Select all

OnkyoISCP: [Errno 10054] An existing connection was forcibly closed by the remote host
here's a large portion of the log right before the repeating error, to give you an idea but I don't see anything that 'should' be causing this other than something in the plugin erroring...

Code: Select all

2013-03-16 22:30:08        ACTION: XBMC2: ContextMenu
2013-03-16 22:30:09  EVENT: USB_UIRT.Mce.Up
2013-03-16 22:30:09     MACRO: Up
2013-03-16 22:30:09        ACTION: XBMC2: Up
2013-03-16 22:30:09        ACTION: Autorepeat current macro: 0.6
2013-03-16 22:30:09  EVENT: USB_UIRT.Mce.Up
2013-03-16 22:30:09     MACRO: Up
2013-03-16 22:30:09        ACTION: XBMC2: Up
2013-03-16 22:30:09        ACTION: Autorepeat current macro: 0.6
2013-03-16 22:30:10  EVENT: USB_UIRT.Mce.Up
2013-03-16 22:30:10     MACRO: Up
2013-03-16 22:30:10        ACTION: XBMC2: Up
2013-03-16 22:30:10        ACTION: Autorepeat current macro: 0.6
2013-03-16 22:30:10  EVENT: USB_UIRT.Mce.Ok
2013-03-16 22:30:10     MACRO: Select
2013-03-16 22:30:10        ACTION: XBMC2: Select
2013-03-16 22:30:11  EVENT: USB_UIRT.Mce.Left
2013-03-16 22:30:11     MACRO: Left
2013-03-16 22:30:11        ACTION: XBMC2: Left
2013-03-16 22:30:11        ACTION: Autorepeat current macro: 0.6
2013-03-16 22:30:12  EVENT: USB_UIRT.Mce.Ok
2013-03-16 22:30:12     MACRO: Select
2013-03-16 22:30:12        ACTION: XBMC2: Select
2013-03-16 22:30:13  EVENT: USB_UIRT.Mce.Left
2013-03-16 22:30:13     MACRO: Left
2013-03-16 22:30:13        ACTION: XBMC2: Left
2013-03-16 22:30:13        ACTION: Autorepeat current macro: 0.6
2013-03-16 22:30:14  EVENT: USB_UIRT.Mce.Ok
2013-03-16 22:30:14     MACRO: Select
2013-03-16 22:30:14        ACTION: XBMC2: Select
2013-03-16 22:30:19  EVENT: USB_UIRT.NEC.259B710E
2013-03-16 22:30:19     MACRO: System.OFF
2013-03-16 22:30:19        ACTION: Trigger event "Zone2.OFF"
2013-03-16 22:30:19        ACTION: Trigger event "wmc.close"
2013-03-16 22:30:19        ACTION: Trigger event "xbmc.close"
2013-03-16 22:30:19  EVENT: Main.Zone2.OFF
2013-03-16 22:30:19     MACRO: Zone2.OFF
2013-03-16 22:30:19        ACTION: If Main turns OFF, turn OFF Zone2
2013-03-16 22:30:19        ACTION: Onkyo ISCP: SendCommand: ZPW00
2013-03-16 22:30:19  EVENT: Main.wmc.close
2013-03-16 22:30:19     MACRO: WMC - close
2013-03-16 22:30:19        ACTION: Find Window: ehshell.exe
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

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

Re: OnkyoISCP plugin

Post by Owel » Mon Mar 18, 2013 1:29 pm

I don't get your point....

of course the error comes from the plugin. The plugin cannot connect to the onkyo...

User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: OnkyoISCP plugin

Post by Livin » Mon Mar 18, 2013 3:59 pm

well it comes with major problems...

it logs thousands of these error very quickly which essentially locks up EG since it is so busy logging your errors it does not respond to other actions. in just a few minutes my log was over 500MB on disk.
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 » Mon Mar 18, 2013 5:09 pm

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.

User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: OnkyoISCP plugin

Post by Livin » Mon Mar 18, 2013 8:34 pm

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...
2013-03-17 21:51:33 EVENT: USB_UIRT.NEC.259B710E
2013-03-17 21:51:33 MACRO: System.OFF
2013-03-17 21:51:33 ACTION: Trigger event "Zone2.OFF"
2013-03-17 21:51:33 ACTION: Trigger event "wmc.close"
2013-03-17 21:51:33 ACTION: Trigger event "xbmc.close"
2013-03-17 21:51:33 EVENT: Main.Zone2.OFF
2013-03-17 21:51:33 MACRO: Zone2.OFF
2013-03-17 21:51:33 ACTION: If Main turns OFF, turn OFF Zone2
2013-03-17 21:51:33 ACTION: Onkyo ISCP: SendCommand: ZPW00
2013-03-17 21:51:33 EVENT: Main.wmc.close
2013-03-17 21:51:33 MACRO: WMC - close
2013-03-17 21:51:33 ACTION: Find Window: ehshell.exe
2013-03-17 21:51:36 EVENT: Main.xbmc.close
2013-03-17 21:51:36 MACRO: XBMC - close
2013-03-17 21:51:36 ACTION: Find Window: XBMC.exe
2013-03-17 21:51:38 ACTION: Kill XBMC process
2013-03-17 21:51:41 EVENT: USB_UIRT.Unknown.10
2013-03-17 21:51:41 EVENT: USB_UIRT.NEC.25A4710E
2013-03-17 21:51:41 EVENT: USB_UIRT.Unknown.10
2013-03-17 21:51:41 EVENT: OnkyoISCP.PWR '00'
2013-03-17 21:51:41 EVENT: OnkyoISCP.PWR00
2013-03-17 21:51:41 MACRO: Zone2.OFF
2013-03-17 21:51:41 ACTION: If Main turns OFF, turn OFF Zone2
2013-03-17 21:51:41 ACTION: Onkyo ISCP: SendCommand: ZPW00
2013-03-17 21:51:41 EVENT: System.DeviceRemoved [u'\\\\?\\DISPLAY#ONK0C81#5&30f4f1ad&5&UID1057568#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7}']
2013-03-17 21:51:41 EVENT: OnkyoISCP.ZPW '00'
2013-03-17 21:51:41 EVENT: OnkyoISCP.ZPW00
Log from when OnkyoISCP plugin went into its loop...
2013-03-16 22:30:19 EVENT: USB_UIRT.NEC.259B710E
2013-03-16 22:30:19 MACRO: System.OFF
2013-03-16 22:30:19 ACTION: Trigger event "Zone2.OFF"
2013-03-16 22:30:19 ACTION: Trigger event "wmc.close"
2013-03-16 22:30:19 ACTION: Trigger event "xbmc.close"
2013-03-16 22:30:19 EVENT: Main.Zone2.OFF
2013-03-16 22:30:19 MACRO: Zone2.OFF
2013-03-16 22:30:19 ACTION: If Main turns OFF, turn OFF Zone2
2013-03-16 22:30:19 ACTION: Onkyo ISCP: SendCommand: ZPW00
2013-03-16 22:30:19 EVENT: Main.wmc.close
2013-03-16 22:30:19 MACRO: WMC - close
2013-03-16 22:30:19 ACTION: Find Window: ehshell.exe
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
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