gaffer;206739 Wrote:
>
> I was thrilled to stumble across the Bottlerocket plugin today, but
> have had some problems getting it running. I've got BR.exe running, no
> problem
>
> ...
>
> In any case, turning either my SB2 or softsqueeze on or off fails to
> turn the associated amp on or off.
>
> ...
>
> BottleRocket: for ID ef:0e:5b:bc:91:7e, executing command: "C:\Program
> Files\SlimServer\server\Plugins\BottleRocket\bin\br.exe -x /dev/ttyS0
> -r 9 -c A -f 8"
>
> You'll notice on the last line that the plugin is calling the linux COM
> port ID and not the windows "COM1". I've double checked in the plugin
> page, and COM1 is definitely specified, and for all players.
>
Hi, gaffer. I hope I can help you get this working.
In my testing, BR.EXE only worked with /dev/ttyS0 style serial port
names. I expected this was a Unix-ism dictated by the Cygwin library
that BR.EXE uses. So I decided to have the web interface accept and
display Windows-style port names, but translate those into Cygwin/Unix
style names when invoking BR.EXE. Are you able to issue BR commands
with "-x COM1"? If so, you might try making this change to
BottleRocket/Plugin.pm: find the portTransform function (around line
240). Immediately after these lines:
Code:
--------------------
sub portTransform($) {
my $port = shift;
--------------------
add a line reading
Code:
--------------------
return $port;
--------------------
This will make the plugin use "-x COM1" (or whatever COM port you've
chosen) in the BR.EXE command line.
If you find, as I thought I did, that BR.EXE wants serial port names
like "/dev/ttyS0" instead of "COM1" for the "-x" argument, then I'd
suspect a permissions problem -- that the SlimServer process is running
as a user account that doesn't have permissions to the serial port. I'm
just now looking into that.
-Peter
--
peterw
http://www.tux.org/~peterw/
free plugins: http://www.tux.org/~peterw/#slim
BlankSaver BottleRocket FuzzyTime SaverSwitcher SleepFade StatusFirst
VolumeLock
------------------------------------------------------------------------
peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107
View this thread: http://forums.slimdevices.com/showthread.php?t=35853
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins