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.
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
-
MarkMash1ne
- Posts: 4
- Joined: Thu Dec 03, 2015 7:34 pm
Re: OnkyoISCP plugin
Hello Users,
I can not continue with the plugin.
When I use the Onkyo Remote I receive messages in EventGhost. If I send commands to my Onkyo AVR 636, nothing happens.
The app NRControl works well with manual commands.
Has anyone any idea what's going on?
greetings
I can not continue with the plugin.
When I use the Onkyo Remote I receive messages in EventGhost. If I send commands to my Onkyo AVR 636, nothing happens.
The app NRControl works well with manual commands.
Has anyone any idea what's going on?
greetings
-
MarkMash1ne
- Posts: 4
- Joined: Thu Dec 03, 2015 7:34 pm
Re: OnkyoISCP plugin
With this change in the script works sending commands with my new Onkyo, but not permanently.
if you do nothing, breaks after a maximum of one minute from the connection. it works again at the restart of EventGhost.
if you do nothing, breaks after a maximum of one minute from the connection. it works again at the restart of EventGhost.
Re: OnkyoISCP plugin
That's a bit weird, with the current code it always reconnects without an issue for me. And that fix is also a bit strange... does that Onkyo use a different protocol somehow?
Author of the book Mastering Python. Got Python questions? Perhaps I can help 
-
MarkMash1ne
- Posts: 4
- Joined: Thu Dec 03, 2015 7:34 pm
Re: OnkyoISCP plugin
It now works with this modification. But that is stupid and makes me crazy that EC after a short time again reporting an interruption of the connection on port 60128.
I've attempts WLAN and LAN. The connection is not stable, as if something interferes.
When sending a code example MVLUP, I can click on "test" 30x, nothing happens, and suddenly the connection is back and many Commandos go on once. And then again interrupted connection. Very strange.
The same phenomenon I have with the TCP plugins if I want to receive from smartfone TCP Events.
I do not know enough about TCP, can not solve the problem.
I've attempts WLAN and LAN. The connection is not stable, as if something interferes.
When sending a code example MVLUP, I can click on "test" 30x, nothing happens, and suddenly the connection is back and many Commandos go on once. And then again interrupted connection. Very strange.
The same phenomenon I have with the TCP plugins if I want to receive from smartfone TCP Events.
I do not know enough about TCP, can not solve the problem.
-
MarkMash1ne
- Posts: 4
- Joined: Thu Dec 03, 2015 7:34 pm
Re: OnkyoISCP plugin
Sorry, but I have found the mistake in my System.
My suspicion was confirmed. I have now installed the correct network driver for my Realtek chip manually. The connection will now remain stable.
So the plugin works definite with the modification in the photo above in my post.
I will still continue testing.
My suspicion was confirmed. I have now installed the correct network driver for my Realtek chip manually. The connection will now remain stable.
So the plugin works definite with the modification in the photo above in my post.
I will still continue testing.
Re: OnkyoISCP plugin
Well, apparently you're not the first one with the issue: https://github.com/mikerodrigues/onkyo_ ... y/issues/8
Apparently the TX-NR636 implements the protocol slightly stricter. I'll have to test your patch to make sure it won't break for other systems... or perhaps I can make it configurable but I don't have enough time for that right now.
I'm tracking the issue on Github currently: https://github.com/WoLpH/EventGhost-Onk ... n/issues/1
Apparently the TX-NR636 implements the protocol slightly stricter. I'll have to test your patch to make sure it won't break for other systems... or perhaps I can make it configurable but I don't have enough time for that right now.
I'm tracking the issue on Github currently: https://github.com/WoLpH/EventGhost-Onk ... n/issues/1
Author of the book Mastering Python. Got Python questions? Perhaps I can help 
Re: OnkyoISCP plugin
It doesn't work with the NR-646 either. Is there a version we can use to test, or can you show us how to edit it so that it will work?WoLpH wrote:Well, apparently you're not the first one with the issue: https://github.com/mikerodrigues/onkyo_ ... y/issues/8
Apparently the TX-NR636 implements the protocol slightly stricter. I'll have to test your patch to make sure it won't break for other systems... or perhaps I can make it configurable but I don't have enough time for that right now.
I'm tracking the issue on Github currently: https://github.com/WoLpH/EventGhost-Onk ... n/issues/1
Re: OnkyoISCP plugin
You can try the new version: https://github.com/WoLpH/EventGhost-Onkyo-ISCP-pluginTomkun wrote:It doesn't work with the NR-646 either. Is there a version we can use to test, or can you show us how to edit it so that it will work?WoLpH wrote:Well, apparently you're not the first one with the issue: https://github.com/mikerodrigues/onkyo_ ... y/issues/8
Apparently the TX-NR636 implements the protocol slightly stricter. I'll have to test your patch to make sure it won't break for other systems... or perhaps I can make it configurable but I don't have enough time for that right now.
I'm tracking the issue on Github currently: https://github.com/WoLpH/EventGhost-Onk ... n/issues/1
Author of the book Mastering Python. Got Python questions? Perhaps I can help 
Re: OnkyoISCP plugin
Excellent, thanks so much. The test version appears to be working great!
Re: OnkyoISCP plugin
It still works with my Integra DHC-9.9 too, thanks.WoLpH wrote:Tomkun wrote:WoLpH wrote:Well, apparently you're not the first one with the issue: https://github.com/mikerodrigues/onkyo_ ... y/issues/8
You can try the new version: https://github.com/WoLpH/EventGhost-Onkyo-ISCP-plugin
Re: OnkyoISCP plugin
I have a problem that kills EventGhost. I had it a lot before (when I had network problems with my Onkyo, which was fixed on the warranty), but now I have it occasionally. But it's very bad when it happens because my whole house audio system goes down, and so does the control of heating in the house, so if I don't catch it soon I can wake up to a very cold living room, like I did last weekend. Yesterday I found out that the Onkyo plug-in is the source. When something happens on the connection to the Onkyo (I don't know exactly what) I get red error messages all the way down the logger, and EG locks up:
In English that would be "An excisting connection was forcibly closed by external host".
The only way to stop it is to either kill the process or restart the automation VM. Is it possible to get some kind of error handling of that? Please?
Code: Select all
2017-02-24 22:54:25 ERROR: OnkyoISCP: [Errno 10054] En eksisterende tilkobling ble tvangslukket av den eksterne verten
2017-02-24 22:54:25 ERROR: OnkyoISCP: [Errno 10054] En eksisterende tilkobling ble tvangslukket av den eksterne verten
2017-02-24 22:54:25 ERROR: OnkyoISCP: [Errno 10054] En eksisterende tilkobling ble tvangslukket av den eksterne verten
2017-02-24 22:54:25 ERROR: OnkyoISCP: [Errno 10054] En eksisterende tilkobling ble tvangslukket av den eksterne verten
2017-02-24 22:54:25 ERROR: OnkyoISCP: [Errno 10054] En eksisterende tilkobling ble tvangslukket av den eksterne verten
2017-02-24 22:54:25 ERROR: OnkyoISCP: [Errno 10054] En eksisterende tilkobling ble tvangslukket av den eksterne verten
2017-02-24 22:54:25 ERROR: OnkyoISCP: [Errno 10054] En eksisterende tilkobling ble tvangslukket av den eksterne verten
The only way to stop it is to either kill the process or restart the automation VM. Is it possible to get some kind of error handling of that? Please?
Re: OnkyoISCP plugin
Luckily the error codes are universal, 10054 is a very common one and officially translates to "Connection reset by peer.". Having that said... looks like your hardware is still broken but that obviously doesn't fix your issue and even if it's partially broken it shouldn't kill EventGhost.
Having that said... I don't think I can easily fix this, mostly because I cannot easily reproduce it myself and I'm not sure why this is happening. The code shouldn't keep repeating this, it should try once or maybe twice and stop trying after that.
Having that said... I don't think I can easily fix this, mostly because I cannot easily reproduce it myself and I'm not sure why this is happening. The code shouldn't keep repeating this, it should try once or maybe twice and stop trying after that.
Author of the book Mastering Python. Got Python questions? Perhaps I can help 
Re: OnkyoISCP plugin
it is kind of weird because while this was still going on (after a few seconds I understood that it wasn't going to work with the IR remote that fires the command in EG) I was able to connect to the same receiver from the app and change the input from that instead. So the app worked while the plug-in said that the host closed the connection. But I can't reproduce it on will either, having the app connected or not. I only know it's not in the app, and it's not in the network connection to the automation virtual machine, because I was able to check with VNC what was going on. So something made EG go into loop. Would it be possible to limit connection attempts to a fixed number, so it doesn't get into this loop? I have a five second timeout, btw, if that matters.
Re: OnkyoISCP plugin
I had a short look at the plugin code on github. I'm not sure if python sockets are thread safe. Maybe it could have something to do with the problems?
And regarding the 10054, maybe check for it and as Mastiff suggested, try for a limited (configurable?) number to reconnect (with a wait time between attempts?).
And regarding the 10054, maybe check for it and as Mastiff suggested, try for a limited (configurable?) number to reconnect (with a wait time between attempts?).
Re: OnkyoISCP plugin
You could try lowering the timeout a bit, I would assume that anything taking more than a few milliseconds is too much already but 1s might be safer.
Can you make certain it's not firing the event multiple times? I have actually seen it happen a few times over here as well, the last few years but it's never warranted a further look for me.
Can you make certain it's not firing the event multiple times? I have actually seen it happen a few times over here as well, the last few years but it's never warranted a further look for me.
Author of the book Mastering Python. Got Python questions? Perhaps I can help 