HowTo: WOL as action for a button

The WOL feature for a gateway is working well. But I won't like to start my computer every time I use iRule.

My question.
How do I create a command for a button to send a magic packet? Does it work with a network code, what do I have to type in the field 'data'?

regards
Jens
8 people have
this question
+1
Reply
  • 1
    WOL is a command we send automatically when you enter a Panel that has at least one command that belongs to the device where the WOL is active.

    In short, we send the WOL behind the scenes when you enter a page that needs it.

    We have seen the request to make it a discrete command and we are looking into it.

    Best Regards,
    Itai
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • Yeah, would be nice to have a discrete command.
    there are different ways to create a WOL. Magic packet, the easiest and most common, pattern match and ping.
    While you are working on it, is it possible to send a pattern match by using network code command?

    Edit:
    I got it working - the indirect way. As you wrote, WOL will be sent by entering a page. So I created page which is linked on my main page.
    But I'm still waiting for the discrete command.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • Hi,

    I just found this help page while googling. I also would be happy with this functionnality, I prefer to start my HTPC with a discrete command, as it is hided from human view.

    Just starting it by switching to a panel would make some users to show accidentaly the panel, start up the HTPC and then forget to turn it off ...

    Thanks a lot !
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • I can turn off my htpc using iRule, and would love to be able to turn it on too because it is rather difficult to physically access it.
    I know how to enable WOL on the iRule's gateway page, but I dont know how to send the magic packet to the htpc. Or everytime I acess the gateway iRule sends the magic packet automaticaly?

    Thanks a lot for any help.
    Marcos
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • While we are adding a widget to make building the magic packet simpler if you want a discrete command you can do this today with iRule. We tested it here in the office and with a couple of beta testers.

    To build the command you need the following:
    1. command prefix: \xFF\xFF\xFF\xFF\xFF\xFF
    2. MAC address in hex format using \x before each byte. As an example the MAC of 00.26.B9.87.22.31 would be: \x00\x26\xB9\x87\x22\x31

    To build the command you need to create a new iRule device and add a command for each computer. The command will begin with the prefix \xFF\xFF\xFF\xFF\xFF\xFF followed by 48 of the MAC address \x00\x26\xB9\x87\x22\x31

    Te Gateway is a Network Gateway with the IP of:
    255.255.255.255
    Port: 9

    No spaces or any other symbols are allowed. The example command is:

    \xFF\xFF\xFF\xFF\xFF\xFF\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31\x00\x26\xB9\x87\x22\x31

    The simplest way to build this is in excel and just copy the results, if anyone wants me to post an excel spreadsheet in the meantime until we add this to the builder let me know.

    Best Regards,
    Itai
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • Wow, that's a fast answer.
    Thank you very much
    Marcos
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • Would you please send me the excell spreadsheet?
    Thank you
    Marcos
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • The link can be downloaded http://video.iruleathome.com/downloads/WOL%20Builder.xls

    Just place your MAC address in the B2 cell (there is a heading of Your MAC) and the command will build automatically. All you need to do is copy the result from B3 into the data field in the iRule Builder.

    Best Regards,
    Itai
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • That's the kind of support I love.
    Thank you again.
    Marcos
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • I don't really understand what that does.
    Can I turn off my HTPC with that?
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • Oh, didn't looked here and didn't modified my remote for while. Now it's time to carry on bringing my remote to perfection.

    Thanks a lot Itai and team for your development
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • Hi,

    Can't get it to work, I know (tested with ohter software) that WOL is ok.
    I followed : created new device in iRule Builder, add network code with the \xFF.... string, used the command on a button, then added a gateway on the device (Nexus 7) on IP 255.255.255.255 Port 9. Then when I click on the button there are red arrows blinking (instead of the green arrows I see for other devices).

    What dit I wrong ?
    • view 1 more comment
    • Ok, thanks for your reply, I'll wait for this release then.
    • Hi All,

      ital's post above which states "To build the command you need to create a new iRule device and add a command for each computer. The command will begin with the prefix \xFF\xFF\xFF\xFF\xFF\xFF followed by 48 of the MAC address \x00\x26\xB9\x87\x22\x31". It should be \xFF\xFF\xFF\xFF\xFF\xFF followed by 16 of the MAC address (which is actually 48 bits) which gives you the 102 bytes required of a Magic Packet.

      The magic packet is a broadcast frame containing anywhere within its payload 6 bytes of all 255 (FF FF FF FF FF FF in hexadecimal), followed by sixteen repetitions of the target computer's 48-bit MAC address, for a total of 102 bytes.

      Its now working for me perfectly on a button on an Android device.

      Regards,

      Jeff
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • Ok i Tried this as well and it doesn't work, "The Magic packet" is 102 bytes 108 if you use a passwd. I used a sniffer and tried 16 X 40X 48X the Mac ID and no packets are on my network. I can send the packets via netcat and see the packets that fire up any machine on my network.

    So my question, If you say "it works" how did you make this happen???????

    And please explain the "WOL" function you have built in the network setup, what triggers it ? a panel opening ? i set it up and it's flaky at best, it runs the packets then shuts off then starts up again for no reason, pretty hard to turn off a machine that's always being told to turn back on with your " WOL" command.

    My last question is why do posts on this forum get unanswered? I figured this would be the easiest solution to getting some feedback instead of calling in everyday. The last time i called in the person told me to post on the "Community" and somebody would answer, Well I did and iRule didn't. Whats up with questions going unanswered ?????

    I know it's only a remote control and were not programming a DCS/PLC controlling a oil refinery or a steel mill but a little help would be appreciated

    /rant
    • Are you using the iOS or Android version of the app? We tracked a bug down to UDP in the Android.

      If you are on iOS I am sure it works (I am using this myself) if the correct packet is built (with such a large command it is easy to make a mistake).

      If you provide your MAC we can verify your command and make sure there is nothing malformed. The how it works is by broadcasting the magic packet to all subnets.

      We try to answer questions as we see them and other members of the community are also answering questions but we try to find and resolve questions as they arise. Sometimes, in an existing thread its easy to miss a question and I am sorry for that.

      The default WOL feature works by sending the magic packet when you enter a Panel that has any command that belongs to the device assigned to the Gateway. For example, if you have an HTPC and are sending commands to control a media player application, when any Panel is entered that contains a command we send the Magic Packet.

      Best Regards,
      Itai
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • I understand how it works (magic packet) What i didn't understand was how you were processing it. Yes I'm using a droid, the entering a panel with the WOL option works but it's very inconsistent, some times it works sometimes it doesn't. I've tested this fully with 3 tablets and 4 phones, all with the same results. I've asked in another thread why not just allow raw commands passed through the app, then we can alter what we need, i was just asking regarding rtsp:// and https:// but that might be for another time.

    So just to recap, the integrated "WOL" works but it's flaky at best and the push "WOL" is broken ????????

    thanks
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • I am not sure what you mean by allow raw commands to pass? Do you mind to elaborate?

    The WOL is considered broken in Android in the current release (working intermittently is obviously not an option that is acceptable). If you are interested I can have a beta version of Android for you to test as soon as its ready.

    Itai
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • Sure I'm always willing to test stuff out, for some reason AB and Siemens use me as a lab rat on some projects not intended but it always happens :-)

    Raw commands IE: like opening a terminal session and just have # there and let the string do what it does,

    rtsp://ipaddy:554/cam/realmonitor?channel=4&subtype=02&authbasic=YWRtaW46a2Fja2Vy=

    If i put that in a terminal on my droid it would open a web page and display a live feed of one camera's on my house.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • Thanks a lot Itai for listing the steps.
    Though I couldn't figure out how to get the code from the Excel sheet you provided so I just create the code in Notepad.
    I can finally get rid of MCE Controller!
    Now if you guys could only add support to the iPad's built in keyboard for XBMC!
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • Works great! Thanks Itai. I've been waiting for something like this for a long time. Only thing the spreadsheet you provided doesn't seem to work in Excel 2010, but I was able to construct the command in Notepad and it works great! Thank you!
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • Hi Itai, any news on when the Android version will be fixed?
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • Thanks Itai. Yeah I tried to implement WOL with my android tablet. I followed the tutorial on how to create the gateway with WOL enabled, but then there was nowhere to go from there. I looked for some type of device or module that I could use to specify sending WOL and sleep commands to my PC, but couldn't find anything.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • Any news on this? I too need to wake my HTC and cant seem to do it. I tried to use the WOL action in a android remote and it says I can not until the next version comes out. When will this be?
    Thanks
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • I’m thankful
    I'm sure you all have a lot on your plate, but please make this a priority as I need it to finally de-ghettofy my entertainment system.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • I think this needs to be a priority many of us are android users and wake on lan is a very important feature for systems using a range of modern equipment (HTPC, NAS, desktop music serving etc).

    Is there any word on when the next patch is going to be rolled out and will this be in it?

    Cheers,
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • I ́m trying to get this to work (ios to a mac mini).

    I have enabled the "wake for network access" on my Mac mini.
    Created a divice in irule and tried both a divce cod as network and pronto hex code.

    In iRule on my ipad I did a new network device witch the ip number 255.255.255.255 (is this right?) using port 9.
    Protocol tcp. I haven ́t activated wake on lan since i cant find anything in this tread pointing that out.

    I get red arrows on my hex cod and green arrows on my network code but the computer remains turned off.

    The code for my wol command goes:
    \xFF\xFF\xFF\xFF\xFF\xFF\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70\x3c\x07\x54\x51\x85\x70

    What have i done wrong?
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • There is a tutorial for the WOL action that can be found here https://irule.desk.com/customer/porta...

    If those steps do not work I would suggest emailing support@iruleathome.com with your backup so we can see the programming.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • Ok, is that realy a guide for how to wake my computer by pushing a button like this thread is about?

    Im not intrested in turning my computer on every time im showing a panel with any button with a command that control my computer.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated