peterw wrote: > I've seen something similar, but far more frequently, sometimes just a > small number of minutes apart and while the AVR was powered on. > > It's been so long since I dealt with this, but several versions back in > my DenonSerial plugin I added logic to clear my command queue and close > my TCP or serial connection for any given AVR if LMS had sent a command > but had not seen a response in the last 10 seconds -- once that much > time had elapsed, I knew not to expect a response. > > In January 2021, my 10 second timeout was reached only four times, and I > think back then I had the same basic configuration as today, with LMS > polling my AVR every 30 seconds (commands MV?, SI?, and PW? since I use > the master zone). In previous months I've seen timeouts more frequently, > but I expect that's because in the past I sent more commands (I used to > control home theater volume by sending Slim Devices codes to my SB3 and > relying on LMS + DenonSerial to relay those to the AVR, but now in the > home theater our normal IR remote sends Denon commands and we rely on > the every-30-second polling to let LMS know about the change.) > Unfortunately I have not been logging the specific commands I've been > sending, even in these hang situations. > > I'm using an AVR 2309CI which only has an RS232 port, so I have a > Raspberry Pi running 'ser2net' on Raspbian to allow me to communicate > with the AVR over basic TCP.
Interesting info, Peter. I think we're probably talking about the same behavior, which is rooted in the fact that, under certain circumstances which are still unclear to me, an AVR in standby mode can go into a state where the only command it will respond to is a "PWON" (or "ZnON"). Since our plugin requires a response to an initial "PW?" query in order to proceed, it just fails in this situation. My fix simply traps the timeout failure on the "PW?" command and treats it as though it has received a "PWSTANDBY" response, continuing from there with the power on and quick select logic. I have been able to test it and, after a little fiddling, it is working great. I have always wanted to download your plugin and try it out for comparison, since it takes a much different approach in its design. One thing I like about this one is that there is no polling overhead involved. It functions as a true state machine and is completely idle during a long listening session, only waking up to process a registered player event received from LMS. Sam ------------------------------------------------------------------------ SamY's Profile: http://forums.slimdevices.com/member.php?userid=63495 View this thread: http://forums.slimdevices.com/showthread.php?t=60114 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
