Hello DJanGo,
I started with the simple script and unfortunately your first guess was
wrong...
The following script
Code:
--------------------
#!/bin/sh
echo "b8:27:eb:db:65:f3 mixer volume +5" | nc -i 1 debianserver 9090
echo "b8:27:eb:db:65:f3 mixer volume +5" | nc -i 1 debianserver 9090
echo "b8:27:eb:db:65:f3 mixer volume +5" | nc -i 1 debianserver 9090
echo "b8:27:eb:db:65:f3 mixer volume +5" | nc -i 1 debianserver 9090
echo "b8:27:eb:db:65:f3 mixer volume +5" | nc -i 1 debianserver 9090
echo "b8:27:eb:db:65:f3 mixer volume +5" | nc -i 1 debianserver 9090
echo "b8:27:eb:db:65:f3 mixer volume +5" | nc -i 1 debianserver 9090
echo "b8:27:eb:db:65:f3 mixer volume +5" | nc -i 1 debianserver 9090
echo "b8:27:eb:db:65:f3 mixer volume +5" | nc -i 1 debianserver 9090
echo "b8:27:eb:db:65:f3 mixer volume +5" | nc -i 1 debianserver 9090
--------------------
produced this output...
Code:
--------------------
tc@piCorePlayer:~$ time ./10times.sh
b8%3A27%3Aeb%3Adb%3A65%3Af3 mixer volume %2B5
b8%3A27%3Aeb%3Adb%3A65%3Af3 mixer volume %2B5
b8%3A27%3Aeb%3Adb%3A65%3Af3 mixer volume %2B5
b8%3A27%3Aeb%3Adb%3A65%3Af3 mixer volume %2B5
b8%3A27%3Aeb%3Adb%3A65%3Af3 mixer volume %2B5
b8%3A27%3Aeb%3Adb%3A65%3Af3 mixer volume %2B5
b8%3A27%3Aeb%3Adb%3A65%3Af3 mixer volume %2B5
b8%3A27%3Aeb%3Adb%3A65%3Af3 mixer volume %2B5
b8%3A27%3Aeb%3Adb%3A65%3Af3 mixer volume %2B5
b8%3A27%3Aeb%3Adb%3A65%3Af3 mixer volume %2B5
real 0m 40.69s
user 0m 0.10s
sys 0m 0.12s
tc@piCorePlayer:~$
--------------------
So the delay is really caused by executing the nc command...
Thanks for your ideas and support so far.
Nick
DJanGo wrote:
> sounds good to me
>
> if you got another spare switch you may can use it as a turbo switch.
>
> > > >
- "turbo" switch alone == nothing
- volume up/down sends up/down untill its released
- "turbo" and "up/down" sends more than a single up/down to the
> server
> > >
>
> if i would see all the scripts/the complete script you may be able to
> use another (play/forward/backward) switch as turbo when pressed with
> one of the volume switches.
------------------------------------------------------------------------
Nick L.'s Profile: http://forums.slimdevices.com/member.php?userid=57284
View this thread: http://forums.slimdevices.com/showthread.php?t=105508
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix