Wake-on-LAN is a standard that allows a computer to be turned on by a network message. This message is sent on the data link layer (layer 2 in the OSI model), and broadcast to all devices on the network using 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.
When sending from an Aurora ReAX controller, we will send this packet using a UDP Action. The command should be broadcast to 255.255.255.255, then include the payload as specified above.
For the MAC address 11:22:33:44:55:66, that UDP Action would look like this:
Alternatively, you could generate the command with JavaScript, example below:
function wolMagicPacket(mac) {
var macHexString = '%' + mac.replace(/:/g, '%');
return ('%FF'.repeat(6)) + (macHexString.repeat(16));
}
console.log(wolMagicPacket('11:22:33:44:55:66'));
Reference and further information: https://en.wikipedia.org/wiki/Wake-on-LAN
This article was originally posted 12/3/2018