miracle2k / onkyo-eiscp

Control Onkyo A/V receivers over the network; usuable as a script, or as a Python library.
MIT License
467 stars 110 forks source link

speed "issues" #69

Open Lyr3x opened 7 years ago

Lyr3x commented 7 years ago

Im using this implementation a few years and everything is working fine but a little slow. I tried the OpenHAB Binding and this implementation was damn fast (no noticeable delay).

Im just using the cli in some shell scripts, are here any modifications that i can make to optimize the speed?

FYI: When i switch the channel or the Volume, it may take 2-5 seconds.

miracle2k commented 7 years ago

Good question. Are you giving the ip manually? One thing that might be going on is that onkyo-eiscp is first broadcasting and detecting the ip of the receiver every time you call it. Other tools might have that IP available or cached.

Lyr3x commented 7 years ago

Hmm yes I'll give it a try and give you an update

Michael Elsdörfer notifications@github.com schrieb am Sa., 8. Juli 2017, 19:34:

Good question. Are you given the ip manually? One thing that might be going on is that onkyo is first broadcasting and detecting the ip of the receiver every time you call it. Other tools might have that IP available or cached.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/miracle2k/onkyo-eiscp/issues/69#issuecomment-313869991, or mute the thread https://github.com/notifications/unsubscribe-auth/AFy_nb6-nXGvwcEKQuD7KercyeguzhFpks5sL72ogaJpZM4OP_TP .

-- Mit freundlichen Grüßen

Kai Bepperling

Lyr3x commented 7 years ago

its a bit faster with -t flag, but i think the biggest problem is the connection init for every command

zackdvd commented 6 years ago

Any update on that? I'm also having this issue, with and without giving the IP address. Is that for every user ~5 seconds?

Also tried strace the command, but that was not giving me any details.

kalmard0 commented 6 years ago

I have a similar issue, my Pioneer receiver is very unstable. When resetting/turning it on,it will react to TCP commands (either via onkyo-eiscp or manually via netcat, or Pioneer's own phone app) for a couple of seconds, then it dies. I would blame the wifi connection, but the weird part is, the Pioneer sends data over TCP, but will simply refuse to obey commands I send to it.

zackdvd commented 6 years ago

@kalimaul Please ask in a support forum, this is only about issues of eiscp.

zackdvd commented 6 years ago

Back to topic:

Is the onkyo app fast, because it logs in one-time and then stays connected as long the app is visible and eiscp closes the session after the commands?