Aesculus;569306 Wrote:
> Peter: I am using PERL async libraries that someone pointed me to years
> ago. Don't get too excited from the Denon point of view because it
> seems to have problems working in the async world. It likes someone to
> grab the interface and stick to it from what I can see. So I constantly
> run into problems overrunning it with multiple requests, even when I
> wait a 1/2 second or more between requests. Still trying to figure that
> one out.
Hmm, guess no great reason to switch, then. I'm wrestling the same
problems with RS232 -- and for my gear I think I've ended up with
pretty good default timing, including when I use a network serial port
server (app) to make my amp accessible via TCP port 23. My favorite
part is that it seems the amp queues up informational messages if the
user uses the amp buttons or IR to make changes, so sometimes you'll
issue a command that should result in 4 response lines but instead
you'll get 10. My notes are in my code:
Code:
--------------------
my $minTimeBetweenCommands = 0.1; # delay after getting a response
(seconds)
my $responseDelay = 0.15; # wait this long after command before
expecting response (seconds)
my $maxSerialWait = 0.25; # wait this long after serial command
before giving up (seconds)
# (also wait for ($numberOfResponseLinesReceived * $maxSerialAdditionalWait)
# MV?, PW?, and SI? all tend to return in < 0.10 secs
# CV? often takes about 0.39 sec, but we don't issue that command
my $maxSerialAdditionalWait = 0.09; # after one response, treat a delay
this long as indication that response is done (seconds)
# (worst I've seen with a 2310CI amp is about 0.05 sec)
--------------------
Denon's protocol is much better than some other's -- but maybe this is
what Sean Adams should be working on now, a good network-capable amp
with a stable, modern, multithreaded control interface. :-)
--
peterw
http://www.tux.org/~peterw/
Free plugins: 'AllQuiet'
(http://www.tux.org/~peterw/slim/AllQuiet.html) 'Auto Dim/AutoDisplay'
(http://www.tux.org/~peterw/slim/AutoDisplay.html) 'BlankSaver'
(http://www.tux.org/~peterw/slim/BlankSaver.html) 'ContextMenu'
(http://www.tux.org/~peterw/slim/ContextMenu.html) 'DenonSerial'
(http://www.tux.org/~peterw/slim/DenonSerial.html)
'FuzzyTime' (http://www.tux.org/~peterw/slim/FuzzyTime.html) 'KidsPlay'
(http://www.tux.org/~peterw/slim/KidsPlay.html) 'KitchenTimer'
(http://www.tux.org/~peterw/slim/KitchenTimer.html) 'PlayLog'
(http://www.tux.org/~peterw/slim/PlayLog.html)
'PowerCenter/BottleRocket'
(http://www.tux.org/~peterw/slim/PowerCenter.html) 'SaverSwitcher'
(http://www.tux.org/~peterw/slim/SaverSwitcher.html)
'SettingsManager'
(http://www.tux.org/~peterw/slim/SettingsManager.html) 'SleepFade'
(http://www.tux.org/~peterw/slim/SleepFade.html) 'StatusFirst'
(http://www.tux.org/~peterw/slim/StatusFirst.html) 'SyncOptions'
(http://www.tux.org/~peterw/slim/SyncOptions.html) 'VolumeLock'
(http://www.tux.org/~peterw/slim/VolumeLock.html)
------------------------------------------------------------------------
peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107
View this thread: http://forums.slimdevices.com/showthread.php?t=60114
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins