epoch1970;478187 Wrote: 
> Humm. I think I have noticed the SB3 (didn't test with the Boom) is also
> unable to WOL a music source it does not come from. I use 2 SBS, prod
> and dev, and I don't seem to wake dev properly with SBS 7.4.1
> Someone sees this as well ?
This behavior, at least, isn't new.  See my previous rant:
http://forums.slimdevices.com/showpost.php?p=477751&postcount=1083

As far as I know, the SB2s & 3s only have "room" in internal storage
for 1 mac address, and that gets filled with the mac address of the 1st
server the player connects to after a factory reset.  This stored mac
address never changes, no matter what server the SBx subsequently
connects to over time.  For folks who have 1 music server, this fits the
bill nicely.

This bug enhancement request:
https://bugs.slimdevices.com/show_bug.cgi?id=10184, if implemented,
would make it a whole-lot easier the developers to add a 'remember last
server mac' feature to the firmware of the various player models. 

SrvrPowerCtrl has been providing that data in the [srvrpowerctrl,
status] CLI request, for some time now.  It goes about getting the mac
address in a really primitive fashion, but it works:


Code:
--------------------
    
  $g{szServerMAC} = Plugins::SrvrPowerCtrl::Util::GetServerMacAddress();
  
  $request->addResult('_servermac', "server_mac:$g{szServerMAC}");
  
  sub GetServerMacAddress {
        my $serverMAC;
  
        if ($^O =~ /^m?s?win/i) {               ## Windows?
                $serverMAC = `ipconfig /all`;
        } else {                                ## Everything else..
                $serverMAC = `ifconfig -a`;
        }
  
        if ( $serverMAC =~ /((?:[0-9a-f]{2}[:-]){5}[0-9a-f]{2})/i ) {
                $serverMAC = $1;
                $serverMAC =~ s/\-/\:/g ;       ## Windows ipconfig formats MAC 
as aa-bb-cc-dd-ee-ff
                return $serverMAC;
        }
  
        return 'UNKNOWN';
  }
  
--------------------

This code is limited in that it doesn't distinguish between multiple
NICs on a system.  But, as long as your server is connected on eth0 (or
the windows equivalent) it works.


-- 
gharris999
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

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

Reply via email to