Hi Günther

Thanks for your reply. I couldn't get it to work, unfortunately.
Looking at the debug log:
> [16-03-27 00:07:14.4762] Plugins::SBNetIO::Plugin::commandCallback (301)
> PLAYMODE play
> [16-03-27 00:07:14.4775] Plugins::SBNetIO::Plugin::RequestPowerOn (329)
> *** SBNetIO: Power ON request from client Bedroom
> [16-03-27 00:07:14.4787] Plugins::SBNetIO::Plugin::RequestPowerOn (340)
> *** SBNetIO: In transition = 0
> [16-03-27 00:07:14.4800] Plugins::SBNetIO::Plugin::SetPowerState (438)
> *** SBNetIO: Turn Power: 1
> [16-03-27 00:07:14.4813] Plugins::SBNetIO::Plugin::SetPowerState (468)
> *** SBNetIO: Turn Power - Zones : 1
> [16-03-27 00:07:14.4822] Plugins::SBNetIO::Plugin::SetZonePower (483)
> *** SBNetIO: SetZonePower: 1 - 1
> [16-03-27 00:07:14.4831] Plugins::SBNetIO::Plugin::SetZonePower (501)
> *** SBNetIO: SetPower: Zone 1, Msg:
> udp:6864001e636caccf238da92c2020202020202ca98d23cfac202020202020;udp:686400176463accf238da92c2020202020200000000001
> [16-03-27 00:07:14.4841] Plugins::SBNetIO::Plugin::SendCmd (550) ***
> SBNetIO::SendCmd - Cmd :
> udp:6864001e636caccf238da92c2020202020202ca98d23cfac202020202020;udp:686400176463accf238da92c2020202020200000000001
> Connection: 192.168.1.125:10000
> [16-03-27 00:07:14.4849] Plugins::SBNetIO::Plugin::SendCmd (557) ***
> SBNetIO::SendCmd - Zone specific connection will be used. 
> [16-03-27 00:07:14.4859] Plugins::SBNetIO::Plugin::SendCmd (563) ***
> SBNetIO::SendCmd - CleanedCmd :
> udp:6864001e636caccf238da92c2020202020202ca98d23cfac202020202020;udp:686400176463accf238da92c2020202020200000000001
> [16-03-27 00:07:14.4868] Plugins::SBNetIO::Plugin::SendCommands (576)
> *** SBNetIO::SendCommands - Cmd :
> udp:6864001e636caccf238da92c2020202020202ca98d23cfac202020202020;udp:686400176463accf238da92c2020202020200000000001
> [16-03-27 00:07:14.4877] Plugins::SBNetIO::Plugin::SendCommands (591)
> *** SBNetIO::SendCmds - ThisCmd       :
> udp:6864001e636caccf238da92c2020202020202ca98d23cfac202020202020
> [16-03-27 00:07:14.4885] Plugins::SBNetIO::Plugin::SendCommands (592)
> *** SBNetIO::SendCmds - RemainingCmds :
> udp:686400176463accf238da92c2020202020200000000001
> [16-03-27 00:07:14.4893] Plugins::SBNetIO::SBNetIOSendMsg::SendCmd (74)
> SendCmd - Addr: 192.168.1.125:10000, Cmd:
> udp:6864001e636caccf238da92c2020202020202ca98d23cfac202020202020
> [16-03-27 00:07:14.4902] Plugins::SBNetIO::SBNetIOSendMsg::SocketSend
> (93) SocketSend - Addr: 192.168.1.125:10000, Cmd:
> udp:6864001e636caccf238da92c2020202020202ca98d23cfac202020202020
> [16-03-27 00:07:14.4910] Plugins::SBNetIO::SBNetIOSendMsg::SocketSend
> (109) SocketSend - Proto: tcp, PeerAddr: 192.168.1.125, PeerPort: 10000,
> Cmd: udp:6864001e636caccf238da92c2020202020202ca98d23cfac202020202020
> [16-03-27 00:07:15.8441] Slim::Control::Request::notify (2085) Error:
> Failed notify: Could not create socket: No connection could be made
> because the target machine actively refused it.
I wondered if there was a problem with udp not being used because of the
line:> [16-03-27 00:07:14.4910] Plugins::SBNetIO::SBNetIOSendMsg::SocketSend
> (109) SocketSend - Proto: tcp, PeerAddr: 192.168.1.125, PeerPort: 10000,
> Cmd: udp:6864001e636caccf238da92c2020202020202ca98d23cfac202020202020
But if I forced udp by changing the line in your script > my $proto = 'tcp'; to 
udp it still didn't work!

I proved that my connection string was correct with the following shell
script:> #!/bin/bash
> 
> 
> ## Subscribe to the device:
> echo '6864001e636caccf238da92c2020202020202ca98d23cfac202020202020' |
> xxd -r -p | nc -u -w2 -p10000 192.168.1.125 10000 | xxd -p
> ## Switching on:
> echo '686400176463accf238da92c2020202020200000000001' | xxd -r -p | nc
> -u -w2 -p10000 192.168.1.125 10000 | xxd -pwhich does work!

My LMS is on a WinXP machine and I have tried the bauhn.pl script on
that machine and it works.

Your help is very much appreciated but please don't spoil your easter
holiday!

Tony


------------------------------------------------------------------------
Wiredcharlie's Profile: http://forums.slimdevices.com/member.php?userid=35115
View this thread: http://forums.slimdevices.com/showthread.php?t=100514

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to