PDA

View Full Version : WOL App almost working on my NZ90


anightin
04-14-2005, 10:16 AM
Hi,

I've written a WOL (wake on lan) app for my NZ90 and its WiFi card courtesy of cygwin and the PalmOS5 dev kit, but there seems to be an issue with Netlib and the use of UDP and broadcast addresses.

I've convinced myself of this by the use of WOL Monitor (thanks to www.depicus.com) in that if I UDP a specific IP address (x.y.z.a) say on port 7, this is sufficient to wake up my PC in standby.

If I shut down the PC it can only be woken by sending the UDP datagram packet to x.y.z.255 -- which is where the NZ90 just plain crashes with a Fatal error.

Running the exact same code on the PalmOS5 emulator (using the host PC UDP stack), works file and wakes up my PC from any sleeping state using the x.y.z.255 IP broadcast address.

Any clues as to how I would get round this one? I hear that the Palm Tungsten-C has a re-written Netlib to cope with broadcast addresses etc.


I am willing to let people try the app on different WiFi enabled PalmOS PDAs if they are interested.


Cheers

Andy

anightin
04-14-2005, 06:31 PM
As an experiment, I set my broadband router to forward UDP port 9 to the IP of my PC that was asleep (powered down).

When I used my app to write the magic packet to port 9 using the router public IP address the slumbering PC woke up!

I have also forwarded TCP port 5900 to the same IP so that I can use PalmVNC to access my PC to switch it off when I've finished using it.

As I'm using WiFi, accessing the web and my e-mail via my VNC connection on the move is actually faster than using my CLIE apps (NetFront and CLIEMail)-- and I have full attachment support (Word/Excel/PDF)!

I guess I now have a workaround for not being able to rely on the NZ90 Netlib to UDP broadcast my local IP address. When I get round to it I can shrink the app now by hard-coding the UIF rather than using NS-Basic to provide me with the GUI.


Cheers

Andy

anightin
04-14-2005, 08:29 PM
I think this worked without needing a broadcast address as I tried my app a minute or so after shutdown of the test PC which meant that the ARP table in the router still has its MAC/IP association still set up.

I guess the router will flush this at some point so to make it more permanent the router needs to be told to either always DHCP this IP to the PC's MAC or do a UDP broadcast in the virtual server settings (not available on my SMC router).

My quest continues...

Cheers

Andy

jacek2
09-29-2007, 09:23 PM
I do power my PC ON/OFF with browser an this card:

https://ool-43537bf6.dyn.optonline.net/Power%20Web%20Button.htm

thierry2064
09-30-2007, 05:21 PM
I would be happy to test a WOL software on my TX, do you intend to release it as a freeware ? Until now, I used dslreports.com which works fine, but needs to open a browser (Opera mini for me).

Tam Hanna
10-02-2007, 11:26 AM
Hi,
IMHOI, heading over to palm-dev-forum will serve you better in terms of getting an answer....there simply are more Palm programmers there!

alegra
10-03-2007, 01:16 AM
I know two apps for WOL on Palm:

PalmWOL, shareware: http://www.matro.it/site/show/english/palmwol.aspx
JWakeME, J2ME, freeware: http://www.freewarepalm.com/communication/jwakeme.shtml

thierry2064
10-10-2007, 02:58 PM
Well, I am still interested in a new free WOL soft : Jwakeme does not work on my TX, it does not wake my PC although it tells "JWakeMe - Sucess, Wake command successfully sent" after connecting to wifi. The same java software works on my Nokia E50 though, I could not figure out what happened with the palm, I could also not have the WOL function of 2playme working. Only Opera Mini or Blazer, with dslreports (http://www.dslreports.com/wakeup) made it, but it is a longer process...
Edit: PalmWOL does not work either. System bug ? Did anyone try one of these WOL software on a TX ?