It is currently Sat Dec 16, 2017 7:25 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: Wakiewakie v1.29
PostPosted: Mon Jan 13, 2014 12:36 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat May 17, 2003 11:31 am
Posts: 6032
I have written a simple tool for laptops and / or HTPC clients that need to wake up a home server. Think of it as a combination of find / ipconfig / ping / send wol / ping. Just like a complicated batch file, only looking better :-)

Practical example: wife / kids use a laptop to watch a movie. When they switch on the laptop the home server will wake up. In effect it is as simple as that.

The simple process:

- check if the adapter is valid (local adapter is typically 0.0.0.0 if Wifi isn't connected yet)
- check if the router can be reached
- send out a WOL to the server
- check if the server can be reached

To simplify life, the tool also shows all possible adapter names, MAC adresses etc.

It now has reached a functional state and looks something like this:

Image

Image

Homepage: http://www.ninelizards.com/purebasic/purebasic%2029.htm#wakiewakie.

Source included.

_________________
( PB5.50 Win7 x64 Dell XPS710 nForce 5 Intel Q6600 SSD Evo 840 GFX GTS450 )
( You have two options: psychotherapy, or the PureBasic Survival Guide... )


Last edited by blueznl on Tue Jun 06, 2017 11:58 pm, edited 15 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Wakiewakie - WIP
PostPosted: Tue Jan 14, 2014 1:34 am 
Offline
Addict
Addict

Joined: Sat Jul 11, 2009 4:57 am
Posts: 927
Location: United States
Pretty cool, I used an old laptop as an HTPC for quite a while because it was the only computer in the house with a S-Video out. Then I bought an HD TV for that HDMI fancy stuff. If only you had released this months ago :(

BTW, you're greying out local addresses that every PC on every local area network will usually have.

_________________
▓▓▓▓▓▒▒▒▒▒░░░░░


Top
 Profile  
Reply with quote  
 Post subject: Re: Wakiewakie - v1.03x
PostPosted: Tue Jan 14, 2014 5:17 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat May 17, 2003 11:31 am
Posts: 6032
Nutivious, I was on someone else's network when I posted the previous image. I've replaced it now.

To ALL: feel free to fool around with this tool, especially if you use WOL.

_________________
( PB5.50 Win7 x64 Dell XPS710 nForce 5 Intel Q6600 SSD Evo 840 GFX GTS450 )
( You have two options: psychotherapy, or the PureBasic Survival Guide... )


Top
 Profile  
Reply with quote  
 Post subject: Re: Wakiewakie - v1.03x
PostPosted: Tue Jan 14, 2014 10:42 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat May 17, 2003 11:31 am
Posts: 6032
Update v1.06x:

- some bug fixes
- I forgot to binary include the images in the final exe, fixed

_________________
( PB5.50 Win7 x64 Dell XPS710 nForce 5 Intel Q6600 SSD Evo 840 GFX GTS450 )
( You have two options: psychotherapy, or the PureBasic Survival Guide... )


Top
 Profile  
Reply with quote  
 Post subject: Re: Wakiewakie - v1.03x
PostPosted: Thu Jan 16, 2014 12:34 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat May 17, 2003 11:31 am
Posts: 6032
Update v1.08x:

- more led colours
- allows skipping of unused fields
- some IP address checking
- can create upon request a desktop shortcut with all parameters set

Creating a desktop shortcut from within is something I never thought of before, but works great. (I used Rashad's code from the board.)

_________________
( PB5.50 Win7 x64 Dell XPS710 nForce 5 Intel Q6600 SSD Evo 840 GFX GTS450 )
( You have two options: psychotherapy, or the PureBasic Survival Guide... )


Top
 Profile  
Reply with quote  
 Post subject: Re: Wakiewakie - v1.09x
PostPosted: Mon Jan 20, 2014 12:55 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat May 17, 2003 11:31 am
Posts: 6032
Update v1.09x:

- create / remove an autorun entry to start when logging into windows
- reads previous parameters if an autorun entry already existed

(I'm going to add that to WallX, never thought of this approach...)

_________________
( PB5.50 Win7 x64 Dell XPS710 nForce 5 Intel Q6600 SSD Evo 840 GFX GTS450 )
( You have two options: psychotherapy, or the PureBasic Survival Guide... )


Top
 Profile  
Reply with quote  
 Post subject: Re: Wakiewakie - v1.11x
PostPosted: Tue Feb 18, 2014 11:11 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat May 17, 2003 11:31 am
Posts: 6032
Update v1.11x:

- added a led to indicate autorun status
- added a small button to use the server mac from a successful ping
- fixed the empty archive (oops!)

_________________
( PB5.50 Win7 x64 Dell XPS710 nForce 5 Intel Q6600 SSD Evo 840 GFX GTS450 )
( You have two options: psychotherapy, or the PureBasic Survival Guide... )


Top
 Profile  
Reply with quote  
 Post subject: Re: Wakiewakie - v1.12x
PostPosted: Tue Nov 11, 2014 1:51 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat May 17, 2003 11:31 am
Posts: 6032
Update v1.18:

- speed up
- improved documentation
- better adapter detection
- 50 msec extra reply detection for slower PC's and routers
- using newer PB compiler

_________________
( PB5.50 Win7 x64 Dell XPS710 nForce 5 Intel Q6600 SSD Evo 840 GFX GTS450 )
( You have two options: psychotherapy, or the PureBasic Survival Guide... )


Top
 Profile  
Reply with quote  
 Post subject: Re: Wakiewakie - v1.18
PostPosted: Tue Nov 11, 2014 1:54 pm 
Offline
Addict
Addict
User avatar

Joined: Fri Jan 21, 2011 8:25 am
Posts: 1009
Location: 'stralia!
Unfortunately of limited use to me, but I like the simplicity and +1 for the name anyway. :mrgreen:

_________________
Image
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds


Top
 Profile  
Reply with quote  
 Post subject: Re: Wakiewakie v1.18
PostPosted: Sun Jan 11, 2015 3:23 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat May 17, 2003 11:31 am
Posts: 6032
Update v1.27x:

- new 'history' and 'linger' options
- little faster
- some fixes

After waking up a remote machine Wakiewakie will 'linger' another 200 msec by default. This to allow the remote machine to get its other services up and running. Without the linger period setting up a VNC session or logging in from a batch file using 'net ...' might sometimes fail. 200 msec seemed to be enough for all the systems I have at home, but it's easy to increase.

The 'history' option shows a progress bar, and Wakiewakie then tries to predict how long the wakeup will take. Obviously this isn't going to be very accurate, but I've empirically tuned the algoritm in such a way most impatient kids / spouses will accept the lie Wakiewakie presents :-)

I would like some feedback on the default values for the history option and linger option. I've set the current parameters after fooling around with five different machines at home (after countless reboots) and even when Wakiewakie gets it totally wrong, it will keep re-adjusting until it gets it right.

The 'history' option creates a human readable file wakiewakie.his for those interested.

_________________
( PB5.50 Win7 x64 Dell XPS710 nForce 5 Intel Q6600 SSD Evo 840 GFX GTS450 )
( You have two options: psychotherapy, or the PureBasic Survival Guide... )


Top
 Profile  
Reply with quote  
 Post subject: Re: Wakiewakie v1.29
PostPosted: Fri Jan 30, 2015 1:22 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat May 17, 2003 11:31 am
Posts: 6032
Update v1.29:

- faster
- sportier

:lol:

- little speed up (especially name resolving, though I blame Windows)
- better (?) default values for linger and retry
- set window color (ah yes, batman black, go see the Lego movie) and border size
- escape key (thanks, Danilo, yeah, I need to read better :oops: )
- easier to add / modify parameters
- smoother progress bar

(Ran into a little weird Windows and / or Fritzbox behaviour: resolving name first, immediately followed by a mac caused the Fritzbox to wait with a reply, which made Windows halt for a moment as well. Swapping the two fixed that most of the time, but not always... The wonders of programming...)

Image

_________________
( PB5.50 Win7 x64 Dell XPS710 nForce 5 Intel Q6600 SSD Evo 840 GFX GTS450 )
( You have two options: psychotherapy, or the PureBasic Survival Guide... )


Top
 Profile  
Reply with quote  
 Post subject: Re: Wakiewakie v1.29
PostPosted: Mon May 29, 2017 1:42 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat May 17, 2003 11:31 am
Posts: 6032
Update 1.36:

- Improved name resolving
- Changed default values
- Other minor things
- Recompiled with 5.50 x86

Download:

- Changed my homepage but it's still there :-)
- http://www.ninelizards.com/purebasic/pu ... wakiewakie

_________________
( PB5.50 Win7 x64 Dell XPS710 nForce 5 Intel Q6600 SSD Evo 840 GFX GTS450 )
( You have two options: psychotherapy, or the PureBasic Survival Guide... )


Top
 Profile  
Reply with quote  
 Post subject: Re: Wakiewakie v1.29
PostPosted: Sun Oct 29, 2017 3:41 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat May 17, 2003 11:31 am
Posts: 6032
Update v1.37:

- Added 'adaptive' linger mode and code
- Added linger indicator using the progress bar
- Some other less important stuff (see the source code)

Download:

- Changed my homepage but it's still there :-)
- http://www.ninelizards.com/purebasic/pu ... wakiewakie

_________________
( PB5.50 Win7 x64 Dell XPS710 nForce 5 Intel Q6600 SSD Evo 840 GFX GTS450 )
( You have two options: psychotherapy, or the PureBasic Survival Guide... )


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye