Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Previous section Next section Previous page Next page Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Page 1 of 2
Topic:
TSU9600 - Turn on PS3 using WIFI - (small) success
This thread has 16 replies. Displaying posts 1 through 15.
Post 1 made on Saturday December 12, 2009 at 21:54
Takeshi2
Lurking Member
Joined:
Posts:
February 2009
5
Hi all,


I'm not sure if it is old news, but I have found a way to turn on the PS3 via the Wireless network. It doesn't work as it should, but it's maybe a first step.

Since the PS3 can be turned on via Wake up on Lan using a PSP, I thought it would be possible to use the same technique to turn it on using my TSU9600 WIFI.

I first tried to turn the PS3 on in Windows using wolcmd, a popular wake up on lan tool for Windows.

wolcmd 0019D5be0Gf0 192.168.1.255 255.255.255.0 9293

So you have to send the MAC address of the PS3, the (broadcast) IP address, subnetmask and the port number where it listens on (9293)

I did some research and discovered that an WOL package consits out of FF FF FF FF FF FF followed bij 16 times the target MAC address.

Since the PS3 has no IP when it is turned off, you will need to send this package to the broadcast address of your local network. For most home networks, this means using 255 as the last digit.


I tried to achieve the same with prontoscript, and I ended up with this activity script:


//PS3 network boot script - 13/12/09 - Tom De Backer

var ipadd = "192.168.1.255";
var macadd = "00 17 55 BE 00 F0";


var mpacket = "FF FF FF FF FF FF";
var debugp = widget("PANEL1","HOME");
var socket = new TCPSocket();   

reInitSocket();

function reInitSocket()
{
  socket.close();
  socket = new TCPSocket();

  socket.onConnect =  function() {

   for ( var x=1; x<=16; x++)
     {
      mpacket = mpacket + " " + macadd;
     }
   for ( var y=1; y<=40; y++)
     {
      socket.write(mpacket);
     }
    socket.close();

 };
 socket.onIOError =  function() {
     socket.close();
 };

}

function TurnOnPS3 () {

  reInitSocket();
  socket.connect(ipadd, 9293,5000);

}


You can use this script e.g. with a button and call the TurnOnPS3 () function using the ProntoScript.

Don't forget to replace the parts in bold with the MAC and IP address of your PS3.

Also, please make sure that Remote Play is turned on and configured in the settings menu of the PS3 (and auto-login is enabled). You will then notice that the WIFI and network leds of the PS3 will remain on even when the PS3 is turned off.

Please note that this method is still far from perfect. Sometimes I experience about 10-30 seconds delay before the PS3 turns on. Also, you will boot into a different screen, so you will need to program the PS button and the Circle as well to get to the main menu.

Another possible problem is that some access points or routers won't do the broadcast correctly. I have tested it with a Linksys WRT54G (DD-WRT custom firmware) with my PS3 connected to it with wire and my Pronto connected wirelessly to the router.

Because the broadcast doesn't always work, I send the WOL package 40 times. You can always alter it.

So the biggest 2 problems are that it's not yet reliable and there might be delays before the PS3 turns on.

Anyway, I hope this script will help some people here and possibly it gives someone else an idea how to improve it.
Post 2 made on Sunday December 13, 2009 at 21:53
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,992
Is the WOL packet supposed to contain a string of hex values of 0xFF or is it supposed to contain text "FF FF FF FF FF FF"? If the later is the case, then the hex byte content of the string you suggest is:
0x46 0x46 0x20 0x46 0x46 0x20 0x46 0x46 0x20 0x46 0x46 0x20 0x46 0x46 0x20 0x46 0x46 0x20

whereas I would expect that the packet likely needs to be 6 byte chunks as:

0xFF 0xFF 0xFF 0xFF 0xFF 0xFF.

Which in Javascript string representation is:

'\xFF\xFF\xFF\xFF\xFF\xFF'.

Maybe this is causing the delay? Maybe it is just dumb luck that this works and the PS3 is simply responding to something instead of wanting an exact WOL packet.

I also did a bit of searching myself and found this:

[Link: profshutdown.com]

which does seem to indicate that the packet consists of a hex value of 6 0xFF bytes. It also suggests that UDP can be used.

For those of you who are wondering, support of UDP via ProntoScript is scheduled as a part of the next firmware update. Release will likely be before end of year.
Lyndel McGee
Philips Pronto Addict/Beta Tester
Post 3 made on Monday December 14, 2009 at 14:39
Jon Welfringer
Long Time Member
Joined:
Posts:
December 2002
175
This is cool. I'll give it a shot on mine.

Is there a way to send remote codes to the PS3 via TCP/IP or is that still limited to IR (BT-->IR) ??
Post 4 made on Tuesday December 15, 2009 at 11:25
calston
Long Time Member
Joined:
Posts:
March 2005
115
Lyndel

This is not my area of expertise but would I be right in thinking that
support of UDP via ProntoScript being scheduled as a part of the next firmware update will allow the pronto to send a Wake on Lan "magic packet"?
Post 5 made on Tuesday December 15, 2009 at 12:24
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,992
If the PS3 responds to the UDP packet as documented in the link I referenced, yes.
Lyndel McGee
Philips Pronto Addict/Beta Tester
Post 6 made on Wednesday December 16, 2009 at 17:01
Prontosw
Long Time Member
Joined:
Posts:
May 2008
27
Installed the new firmware & PEP today and tried to get the script above to use the WOL function but no luck... does the script needs to be changed to get it working poperly ?
Post 7 made on Thursday December 17, 2009 at 11:21
Sogliphy
Long Time Member
Joined:
Posts:
July 2007
186
On December 16, 2009 at 17:01, Prontosw said...
Installed the new firmware & PEP today and tried to get the script above to use the WOL function but no luck... does the script needs to be changed to get it working poperly ?

It likely has to be changed yes, since opening a TCP connection to a broadcast address will probably not work (TCP is a point-to-point protocol; there is no TCP server listening on the broadcast address to accept the connection), so you'll never get an 'onConnect'.


Try something like:




function sendWOL(aMacAddress) {
   var s, i, packet;

   // Constuct payload: 6 0xFF bytes..
   packet = "\xFF\xFF\xFF\xFF\xFF\xFF";
   // ..followed by 16 repetitions of the MAC address
   for (i = 0; i < 16; i += 1) {
       packet += aMacAddress;
   }

   s = new UDPSocket();
   // Now, send that packet 40 times, in UDP packets,
   // to the "all multicast hosts" address.
   for (i = 0; i < 40; i += 1) {
       s.send(packet, "224.0.0.1", 7);
   }
   s.close();
}
// Send WOL to 00:17:55:BE:00:F0
sendWOL("\x00\x17\x55\xBE\x00\xF0");





(Note: I haven't tested this code)
Post 8 made on Thursday December 17, 2009 at 11:50
Sogliphy
Long Time Member
Joined:
Posts:
July 2007
186
Be aware that simply broadcasting a UDP packet containing the Wake-On-LAN signature will probably only have an effect if the device you are waking up is connected via Ethernet.

So for example, by connecting a PS3 via ethernet to an access point. The Pronto can transmit the UDP packet via WiFi to the access point, which will propagate it via Ethernet to the PS3.

If the PS3 is only attached via WiFi to the rest of the network, probably WMM needs to be used, which cannot be done directly from ProntoScript (you'd need to trigger some other device to send out the wake signal via WMM).
Post 9 made on Thursday December 17, 2009 at 16:47
Prontosw
Long Time Member
Joined:
Posts:
May 2008
27
Hello Sogliphy,

thank you for your assistance, got the code working however only when running the ProntoSimulator... when the code is downloaded to my TSU9600 I cannot get it to work. My device is connected to my AP via Ethernet.

Any suggestions ?

Thanks in advance for your help
Post 10 made on Thursday December 17, 2009 at 19:00
Jon Welfringer
Long Time Member
Joined:
Posts:
December 2002
175
Since the TSU9600 is coming in via WiFi, check if your AP is filtering out broadcast packets?

I'd be interested in testing your code if you posted it (or is it the same as above)?
Post 11 made on Friday December 18, 2009 at 15:47
Prontosw
Long Time Member
Joined:
Posts:
May 2008
27
Jon,

It is the same code as above, I only modified the MAC address and the broadcast address. I have a Linksys AP and enabled single port forwarding for both UDP/TCP (port 7) to the IP address required. DHCP reservation is also enabled for the same IP address. According to my info this should be enough to allow for WOL, or do i miss something ?

Found it; I misunderstood (and changed) the 224.0.0.1 address, which I shouldn't have done, is woring like a charm (also with sending much less than 40 packets)

Many thanks to thanks to Sogliphy !

Last edited by Prontosw on December 19, 2009 11:03.
OP | Post 12 made on Saturday December 19, 2009 at 11:37
Takeshi2
Lurking Member
Joined:
Posts:
February 2009
5
Works perfectly indeed!
I have updated my script to use UDP and the multicast address and it works perfectly both with the PS3 on wired and wireless.

The only problem is a delay of about 20 seconds, but I can live with that.
It works also perfectly if you send only 1 package.

Many thanks for all the advice.
Post 13 made on Wednesday January 6, 2010 at 16:35
blakeBF
Lurking Member
Joined:
Posts:
August 2009
4
I tried to setup a WakeOnLAN function after installing new FW and PEP. I will use it for switching on my qnap NAS (used as audio upnp server).
In the simulator the magic packet is send (checked via wireshark) and the NAS awakes. When downloaded to the pronto (TS9400) a prontoscript error (socket error) appears when executing the udpsocket.send().
I am sending it to the directed broadcast address 192.168.2.255 on port 40000. wireshark shows it as WOL packet. When using port 7 or 9 its just shown as an echo packet in wireshark.
when using IP address 224.0.0.1 the packet is sent (seen via wireshark), but the target does not awake..

does anyone know what's wrong.

regards
blake (from BlackForrest)
Post 14 made on Saturday January 9, 2010 at 04:59
brodricj
Long Time Member
Joined:
Posts:
May 2008
116
Can this be worked so that PS3 WOL actions similar to long press on the power button, i.e. so that it wakes with 480i/576i on the composite output?
Post 15 made on Monday April 26, 2010 at 01:28
nemo2
Lurking Member
Joined:
Posts:
April 2010
1
Hi Takeshi2,

Did you had any success turning ON the PS3 using wolcmd?

Anyone else successfully turn ON PS3 using wolcmd?

Thanks
Page 1 of 2


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse