PDA

View Full Version : Can SqueezeBox send Wake-on-LAN packets?



Chris Brooking
2004-02-02, 07:29
I requested this a while back, and Sean commented that it would be
simple to do (in firmware, I assume), but doubted it would work over
wireless. I countered that I thought it would (I can wake my server
wirelessly via my laptop), but no further discussion occurred. Glad I'm
not the only one who would find it useful to be able to wake the server
via the remote.

Chris

> -----Original Message-----
> From: john (AT) quirkshop (DOT) co.uk [mailto:john (AT) quirkshop (DOT) co.uk]
> Sent: 02 February 2004 10:14
> To: Discuss (AT) lists (DOT) slimdevices.com
> Subject: [slim] Can SqueezeBox send Wake-on-LAN packets?
>
> =Perhaps this is a question for the developers list, but I'm not a
> =developer, so I'm asking here: is it possible to convince the
> =SqueezeBox to send a Wake-on-LAN packet in response to an remote
> =control button press?
>
> =What's that? A server should be set to never sleep? Sure, I know
> =that, but I have a situation where the server has to sleep and needs
a
> =way to be told to wake up.
>
> =Any ideas? I have perl scripts and such that will send such a packet,
> =but of course those require a woken computer to execute them.
>
> Hi Brendan et al.
> If you've been keeping an eye on the XPHal discussions, you could use
> this,
> however, you'll need to be wanting to wake up a server that is not
your
> slim server, which is probably not what you're after, is it?
>
> If what you're trying to do is have the slim power on the slimserver
if
> it's powered off, creating a magic packet is fairly trivial (it's just
the
> MAC address of the target machine repeated, I think, 16 times. But
without
> a server to tell the player what to do it seems unlikely without a
> firmware
> upgrade...
>
> JQ
>
> --------------------------------------------------------------------
> mail2web - Check your email from the web at
> http://mail2web.com/ .
>
>
>
>

seanadams
2004-02-02, 09:01
It's on my list for the next firmware rev.


On Feb 2, 2004, at 6:29 AM, Chris Brooking wrote:

> I requested this a while back, and Sean commented that it would be
> simple to do (in firmware, I assume), but doubted it would work over
> wireless. I countered that I thought it would (I can wake my server
> wirelessly via my laptop), but no further discussion occurred. Glad
> I'm
> not the only one who would find it useful to be able to wake the server
> via the remote.
>
> Chris
>
>> -----Original Message-----
>> From: john (AT) quirkshop (DOT) co.uk [mailto:john (AT) quirkshop (DOT) co.uk]
>> Sent: 02 February 2004 10:14
>> To: Discuss (AT) lists (DOT) slimdevices.com
>> Subject: [slim] Can SqueezeBox send Wake-on-LAN packets?
>>
>> =Perhaps this is a question for the developers list, but I'm not a
>> =developer, so I'm asking here: is it possible to convince the
>> =SqueezeBox to send a Wake-on-LAN packet in response to an remote
>> =control button press?
>>
>> =What's that? A server should be set to never sleep? Sure, I know
>> =that, but I have a situation where the server has to sleep and needs
> a
>> =way to be told to wake up.
>>
>> =Any ideas? I have perl scripts and such that will send such a packet,
>> =but of course those require a woken computer to execute them.
>>
>> Hi Brendan et al.
>> If you've been keeping an eye on the XPHal discussions, you could use
>> this,
>> however, you'll need to be wanting to wake up a server that is not
> your
>> slim server, which is probably not what you're after, is it?
>>
>> If what you're trying to do is have the slim power on the slimserver
> if
>> it's powered off, creating a magic packet is fairly trivial (it's just
> the
>> MAC address of the target machine repeated, I think, 16 times. But
> without
>> a server to tell the player what to do it seems unlikely without a
>> firmware
>> upgrade...
>>
>> JQ
>>
>> --------------------------------------------------------------------
>> mail2web - Check your email from the web at
>> http://mail2web.com/ .
>>
>>
>>
>>

=?ISO-8859-1?Q?Johan_H=FCbner?=
2004-02-02, 09:14
Sean Adams wrote:

>
> It's on my list for the next firmware rev.

Will this apply to Slimp3 as well?

/Johan


--
Johan Hübner --!!johan (AT) hubner (DOT) se!!--

seanadams
2004-02-02, 09:27
No - although SLIMP3 will continue to be supported by the server, we
are not planning further firmware revisions for it. It is a completely
different architecture compared to squeezebox and does not run the same
firmware.

However, the firmware source (PIC assembler!) is available if anyone
wants to have a go at it:

http://cvs.slimdevices.com/~cvs/viewcvs_0.9.2/cgi/viewcvs.cgi/slim/
slimp3/firmware/



On Feb 2, 2004, at 8:14 AM, Johan Hübner wrote:

> Sean Adams wrote:
>
>> It's on my list for the next firmware rev.
>
> Will this apply to Slimp3 as well?
>
> /Johan
>
>
> --
> Johan Hübner --!!johan (AT) hubner (DOT) se!!--
>
>

Steven Spies
2004-02-02, 13:36
Can this be added to the SLIMP3 firmware or only the SqueezeBox?
Thanks, Steven

On Feb 2, 2004, at 8:01 AM, Sean Adams wrote:

>
> It's on my list for the next firmware rev.
>
>
> On Feb 2, 2004, at 6:29 AM, Chris Brooking wrote:
>
>> I requested this a while back, and Sean commented that it would be
>> simple to do (in firmware, I assume), but doubted it would work over
>> wireless. I countered that I thought it would (I can wake my server
>> wirelessly via my laptop), but no further discussion occurred. Glad
>> I'm
>> not the only one who would find it useful to be able to wake the
>> server
>> via the remote.
>>
>> Chris
>>
>>> -----Original Message-----
>>> From: john (AT) quirkshop (DOT) co.uk [mailto:john (AT) quirkshop (DOT) co.uk]
>>> Sent: 02 February 2004 10:14
>>> To: Discuss (AT) lists (DOT) slimdevices.com
>>> Subject: [slim] Can SqueezeBox send Wake-on-LAN packets?
>>>
>>> =Perhaps this is a question for the developers list, but I'm not a
>>> =developer, so I'm asking here: is it possible to convince the
>>> =SqueezeBox to send a Wake-on-LAN packet in response to an remote
>>> =control button press?
>>>
>>> =What's that? A server should be set to never sleep? Sure, I know
>>> =that, but I have a situation where the server has to sleep and needs
>> a
>>> =way to be told to wake up.
>>>
>>> =Any ideas? I have perl scripts and such that will send such a
>>> packet,
>>> =but of course those require a woken computer to execute them.
>>>
>>> Hi Brendan et al.
>>> If you've been keeping an eye on the XPHal discussions, you could use
>>> this,
>>> however, you'll need to be wanting to wake up a server that is not
>> your
>>> slim server, which is probably not what you're after, is it?
>>>
>>> If what you're trying to do is have the slim power on the slimserver
>> if
>>> it's powered off, creating a magic packet is fairly trivial (it's
>>> just
>> the
>>> MAC address of the target machine repeated, I think, 16 times. But
>> without
>>> a server to tell the player what to do it seems unlikely without a
>>> firmware
>>> upgrade...
>>>
>>> JQ
>>>
>>> --------------------------------------------------------------------
>>> mail2web - Check your email from the web at
>>> http://mail2web.com/ .
>>>
>>>
>>>
>>>

jacobdp
2004-02-02, 18:04
On Mon, 2 Feb 2004 08:27:15 -0800, you wrote:
>However, the firmware source (PIC assembler!) is available if anyone
>wants to have a go at it:

Any plans to release the Squeezebox's firmware?

(IIRC, I asked this a while ago, and the answer was "not immediately";
has this changed?)

- Jacob

seanadams
2004-02-02, 19:09
We have some license issues to work out first with Ubicom (CPU/OS
vendor) but yes, that is the intent.


On Feb 2, 2004, at 5:04 PM, Jacob Potter wrote:

> On Mon, 2 Feb 2004 08:27:15 -0800, you wrote:
>> However, the firmware source (PIC assembler!) is available if anyone
>> wants to have a go at it:
>
> Any plans to release the Squeezebox's firmware?
>
> (IIRC, I asked this a while ago, and the answer was "not immediately";
> has this changed?)
>
> - Jacob
>
>
>
>

Andrew Laurence
2004-03-18, 22:08
[replying via the gmane usenet mirror]

Just curious Sean, how's the wake-on-LAN going?

-Andrew Laurence
atlauren (AT) uci (DOT) edu

In article <1589D84C-5599-11D8-88B4-000A957BA960 (AT) slimdevices (DOT) com>,
Sean Adams <sadams (AT) slimdevices (DOT) com> wrote:

> It's on my list for the next firmware rev.
>
>
> On Feb 2, 2004, at 6:29 AM, Chris Brooking wrote:
>
> > I requested this a while back, and Sean commented that it would be
> > simple to do (in firmware, I assume), but doubted it would work over
> > wireless. I countered that I thought it would (I can wake my server
> > wirelessly via my laptop), but no further discussion occurred. Glad
> > I'm
> > not the only one who would find it useful to be able to wake the server
> > via the remote.
> >
> > Chris

--
Andrew Laurence atlauren (AT) uci (DOT) edu
Indirect Support Team http://www.oac.uci.edu/~atlauren/
Network & Academic Computing Svcs.
UC Irvine

Got TiVo?

getprogs
2005-06-20, 04:42
...if you have to answer stupid questions all the time, I am also very interested in the progress and expected release date of a firmware that will be able to do a wake on LAN magic packet in the general direction of the Slimservers MAC address. This is, as far as my installation is concerned, the only thing missing for the wife to accept the solution...
My 5 cents worth would be that this could be the first packet to leave the SB2 when pressing the power button - and then I have to be patient for the 30 sec.s it takes to boot the server. The shutdown functionality is worse (also considering the security ramifications) - an idea could be to let the box be able to let the server initiate a script; then all you had to define on the box was the path/arguments and the individual owner could put whatever he/she likes into the script (I understand that this DOES NOT solve the security issues ;-). Otherwise I am happy with just leaving the power profile of the BIOS to determine when to shut down the slimserver...

kdf
2005-06-20, 09:12
Quoting getprogs <getprogs.1qxb0z (AT) no-mx (DOT) forums.slimdevices.com>:

>
> ...if you have to answer stupid questions all the time, I am also very
> interested in the progress and expected release date of a firmware that
> will be able to do a wake on LAN magic packet in the general direction
> of the Slimservers MAC address. This is, as far as my installation is
> concerned, the only thing missing for the wife to accept the
> solution...

interesting that so many seem to blame the wife.

The short answer is no, they cannot.

This is a filed enhancement request for both SB1 and SB2:
http://bugs.slimdevices.com/show_bug.cgi?id=331
http://bugs.slimdevices.com/show_bug.cgi?id=1200

There is already some discussion there regarding a few difficulties (mainly that
WOL doesn't work over wireless).

-kdf

getprogs
2005-06-20, 12:52
Regarding the "WOL does not work over wireless" - currently I am able to wake up the PC running my Slimserver.
My setup is: All PCs and SB2 are on my WLAN *except* for the Slimserver PC which is conveniently situated right next to where the broadband Internet connection is terminated in my house. Running an AMD utility that I have downloaded, I am able to wake the Slimserver from every PC, and I have no reason to believe that a similar magic packet from the SB2 should not have the same effect; after all when I run a network trace I can see that the packet just follows standard conventions with the broadcast MAC followed by the target MAC address repeated a suitable number of times..
But what do I know...?

kdf
2005-06-20, 13:19
Quoting getprogs <getprogs.1qxxpn (AT) no-mx (DOT) forums.slimdevices.com>:

>
> Regarding the "WOL does not work over wireless" - currently I am able to
> wake up the PC running my Slimserver.
> My setup is: All PCs and SB2 are on my WLAN *except* for the Slimserver

what router and firmware revision are you using? The theory is that WOL over
wireless could be possible, only if the given router supported it specifically.
In my research, I had not found any that claimed to be able to do this. In
fact, you are the first to actually mention having a working setup, instead of
simply claiming it "would be theoretically possible if..."

It might be helpful if you include the details of your setup in the
aforementioned bug reports.

-kdf

Jacob Potter
2005-06-20, 13:27
On 6/20/05, kdf <slim-mail (AT) deane-freeman (DOT) com> wrote:
> what router and firmware revision are you using? The theory is that WOL over
> wireless could be possible, only if the given router supported it specifically.
> In my research, I had not found any that claimed to be able to do this. In
> fact, you are the first to actually mention having a working setup, instead of
> simply claiming it "would be theoretically possible if..."

It works for me as well; router is a Netgear MR814v2 with firmware
5.0. The packet is sent from a Powerbook G4 Ti with Airport (original,
not Extreme) over UDP port 9 to 255.255.255.255.

I don't see why any router would dump a standard broadcast UDP packet.

- Jacob

kdf
2005-06-20, 13:52
Quoting Jacob Potter <jacobdp (AT) gmail (DOT) com>:


> I don't see why any router would dump a standard broadcast UDP packet.

nor did I, until I changed a wired connection to wireless and lost the reponse
to WOL. After an all-nighter looking for help, I was forced to give up.

In this case, the packets through a WRT54G seem to just disappear. I haven't
tried my Belkin Pre-N. Sounds like it might be worth another attempt.

-kdf

getprogs
2005-06-20, 14:05
Sorry for not listing the setup - but since it worked for me first time out, I thought it was a no-brainer and that it worked for everybody... Here are the details:

Slimserver running on an old Advance 9 PIII motherboard with a RealTek RTL8139 NIC that is on my LAN (note: not WLAN), i.e. connected to one of the 10/100 MBit/s ports on my:

Wireless router: Linksys WRT55AG running firmware 1.30 (the most recent one, from April I believe). Please note that this is by no means an advertisement for Linksys - but the router was fairly cheap here in Denmark, that's why I bought it.

The PCs from which I can wake the Slimserver PC are:
1) A home assembled P4 system with a Linksys WMP55AG WLAN NIC
2) An IBM T41 with the build in WLAN NIC (I believe it is an Intel PRO/Wireless LAN 2100)
3) A Compaq Armada M700 with a 3Com XJack NIC (3CRPAG175)
And then I run out of PCs... ;-)

It makes me wonder that it works if nobody else has gotten a WOL/WLAN setup to a functional state - especially since the NIC in my Slimserver is not onboard and the WOL functionality is implemented with a small and not very nifty cord from the NIC to the motherboard (I believe this was changed with PCI 2.1 or 2.2?). Also, I could understand if it only worked using the same make in network gear, but unless Intel has bought 3com and Linksys this is not the case.

The utility I use for sending magic packets is downloaded from AMD: http://www.amd.com/us-en/assets/content_type/utilities/magic_pkt.exe (line may wrap)

Maybe that is what makes the difference...? Hard to tell since nobody has reported what equipment it does not work on.

BR,

PS By the way, I will try to figure out how to post this to the bug reports you mentioned.

getprogs
2005-06-20, 14:08
Quoting Jacob Potter <jacobdp (AT) gmail (DOT) com>:


> I don't see why any router would dump a standard broadcast UDP packet.

nor did I, until I changed a wired connection to wireless and lost the reponse
to WOL. After an all-nighter looking for help, I was forced to give up.

In this case, the packets through a WRT54G seem to just disappear.
-kdf

As far as I can tell the WOL magic packet is a broadcast - you did not disable this by implementing some firewall setting or just disabling routing/bridging between the interfaces? Or if you left the NIC on it could choose to send the packet using the wrong interface, i.e. tha packet never makes it to the Linksys box...

Just guessing here - having played with it al night I guess you have been through all combinations of the above ;-)

Triode
2005-06-20, 14:41
>It works for me as well; router is a Netgear MR814v2 with firmware
>5.0. The packet is sent from a Powerbook G4 Ti with Airport (original,
>not Extreme) over UDP port 9 to 255.255.255.255.

>I don't see why any router would dump a standard broadcast UDP packet.

It would be unusual for a router to forward such a broadcast if it is routing the packets between the relavent ports (otherwise it
would go to the whole intenet... and only be limited by the TTL). However it should foward it between bridged ports - so does this
depend on the specific network setup you have

Seems to me that some of the issue could be down to this - the specific way the magic packet is encapsulated and forwarded on the
local network. Does anyone have acess to the source for the magic packet?

Adrian

Jacob Potter
2005-06-20, 14:49
On 6/20/05, Triode <triode1 (AT) btinternet (DOT) com> wrote:
> Seems to me that some of the issue could be down to this - the specific way the magic packet is encapsulated and forwarded on the
> local network. Does anyone have acess to the source for the magic packet?

Here's the code I'm using. It's based on Net::Wake from CPAN.

- Jacob

Triode
2005-06-20, 15:08
Thanks,

I found this after looking at the CPAN module
http://gsd.di.uminho.pt/jpo/software/wakeonlan/mini-howto/

Looks to me to be possible, but dependant on the network between slimserver and the squeezebox. Assuming they are on the same
subnet, then player could simply send the appropriate frame to to a broadcast or unicast mac address. If there is a router (doing
routing) in between then it will be harder and router specific (i.e. probably wont work)

In general if you need to manually enter the address of slimserver into the player then there is a router in the way and it won't
work....

[kdf - does this fit your observervations?]

Adrian
----- Original Message -----
From: "Jacob Potter" <jacobdp (AT) gmail (DOT) com>
To: "Slim Devices Discussion" <discuss (AT) lists (DOT) slimdevices.com>
Sent: Monday, June 20, 2005 10:49 PM
Subject: Re: [slim] Re: Can SqueezeBox send Wake-on-LAN packets?


On 6/20/05, Triode <triode1 (AT) btinternet (DOT) com> wrote:
> Seems to me that some of the issue could be down to this - the specific way the magic packet is encapsulated and forwarded on the
> local network. Does anyone have acess to the source for the magic packet?

Here's the code I'm using. It's based on Net::Wake from CPAN.

- Jacob



--------------------------------------------------------------------------------


>

getprogs
2005-06-20, 23:00
Correct - if the WOL packet is a broadcast, a router should drop the packet immediately and *not* send it to the other networks it routes between. Looking at the magic packet in my network monitor capture, it is a broadcast on the MAC layer (6*FF) and hence does not travel between routed subnets.
As far as I know it is only DHCP broadcasts that you can configure a router to forward easily (RFC-1542 compliance), not magic packets, but I think it can be done. However, I think that most home networks are small enough to be on only one subnet, so a caveat regarding forwarding of WOL magic packets over a router is not that much of a problem IMHO.

Steve Bernard, Jr
2005-06-21, 06:51
On 6/20/05, kdf <slim-mail (AT) deane-freeman (DOT) com> wrote:
> Quoting getprogs <getprogs.1qxb0z (AT) no-mx (DOT) forums.slimdevices.com>:

> > This is, as far as my installation is
> > concerned, the only thing missing for the wife to accept the
> > solution...
>
> interesting that so many seem to blame the wife.

Actually, a funny thing is right after I joined this list last fall or
whatever, I told my wife that it seemed like it was populated
primarily by a bunch of married guys. She asked if they were all
trying to get everything working perfectly to retroactively justify to
their wives the two hundred-some bucks they just spent on the thing.
:)

I do feel for her, as since then I've turned into one of those
FLAC/cuesheet/poring-over-EAC-logs types of guys. But, hey, she's
learned how to use the web interface enough to pick her own music, so
I guess that can take the place.

Also, now I get to look forward to the day that half my FLACs are The
Wiggles or Raffi.

-Steve

Marc Sherman
2005-06-21, 06:57
Steve Bernard, Jr wrote:
>
> Also, now I get to look forward to the day that half my FLACs are The
> Wiggles or Raffi.

Argh! Don't remind me!

- Marc, who really wants to see a "play random albums from every genre
except Childrens" feature

oreillymj
2005-06-21, 08:17
Strangely, I just spent about 2 hours configuring Wake On Lan last night before I found this thread.

This http://www.dslreports.com/faq/wol?text=1 article was very useful.

I'm not in front of my Home PC now, so I can't remember exactly what I did to get remote WOL working through my Netopia DSL modem and Belkin Wirless router, but I can wake my PC from anywhere on the Internet.

I think I forwarded any packet UDP recieved on port 9 to 192.168.2.255.
Only the PC wakes up because the magic packets have the MAC address embedded within them.

Now that I have it working, I would like the SB2 to wake my PC.
And I don't mind having to manually enter the MAC address of my Slimserver into the SB setup to enable this.

IPCONFIG /All returns info on 3 Network adapters on my machine (Firewire 1934 & Bluetooth appear as pseudo ethernet adapters) so it might be quite difficult to figure out the correct MAC to use when the SB constructs the magic packets.


I'm sure someone who knows more about Networking than I do can tell us how difficult it would be to determine the MAC address of the Slimservers NIC.


How do we get a status update on the request http://bugs.slimdevices.com/show_bug.cgi?id=331
http://bugs.slimdevices.com/show_bug.cgi?id=1200

getprogs
2005-06-22, 06:41
How do we get a status update on the request http://bugs.slimdevices.com/show_bug.cgi?id=331
http://bugs.slimdevices.com/show_bug.cgi?id=1200

Personally I do not care about being able to wake my SB2 from the Internet; mainly because my hearing isn't that good (or my amplifier is too small) that I can hear the music at work ;-)

Regarding the status of the requests I was told earlier that they had (maybe) stopped working on it/considering it since WOL did not work over WLAN, but I hope this has changed given the amount of posts claiming it works :-)

BR,

robinbowes
2005-06-22, 08:31
Also, now I get to look forward to the day that half my FLACs are The
Wiggles or Raffi.

I've got a bunch of Wiggles mp3s - the kids love 'em.

I'm quite partial to their version of the classic Lou Reed song "Walk on the Wiggly Side". Heh.

I've you've got a bunch of kids flac files and can use the Torrent I'd be interested in sharing.

R.

getprogs
2005-06-24, 01:23
Hate to see a thread regarding a functionality I really would like to have in my SB2 go off into lala-land...

As far as I can tell:
WOL is a "natural" functionality to build into a music playing device that needs to have a server available to make other noises than when the remote hits the floor.

The SB(2) must have the MAC address of the Slimserver entered manually (should be shorter to enter than my WLAN encryption key ;-), apart from that it must be rather simple to have it put together a UDP broadcast package with the required 6*FF and 16*MAC of Slimserver PC...

As to when it should happen, what secret combination of buttons to press on the remote to trigger it and/or what should be listed in the display when this happens, several far better suggestions than what I can come up with has been given in this (and other) threads.

Off course fixing errors must be more important than adding new functionality - but since the box works wonders for me already now and this is the only thing I really miss, this is where I will make some noise.

If only I could program myself I would love to try to contribute - but since I expect there will be license issues regarding access to a SDK for the firmware development, and since (based on previous experience) I will only get as far as making the box saying "Hello world!" during boot, I have to rely on others to help :-/ (I absolutely HATE the fact that I know what must be done, but have no chance of doing it myself)

BR,

GregD
2005-06-24, 02:29
I already have a low power PC (a VIA based Hush PC) as my server - but I probably only use it for 3/4/5 hours a day - and so allowing it to sleep for the other 19+ would be a positive contribution to reducing my energy consulption (and perhaps a tiny contribution to reducing global warming).

With SB2 I actually use the wireless bridge function - and connect my server PC wried to the SB2 - so it would certainly work in my situation.

stinkingpig
2005-06-26, 13:20
Marc Sherman wrote:
> Steve Bernard, Jr wrote:
>
>>
>> Also, now I get to look forward to the day that half my FLACs are The
>> Wiggles or Raffi.
>

you can always replace the Wiggles' version of South Australia with the
Pogues' version :)

--
Jack at Monkeynoodle dot Org: It's a Scientific Venture...
Riding the Emergency Third Rail Power Trip since 1996!