NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Other Clients Old Stuff (legacy) MVP & NMT MVPMC dongle v
« Previous 1 … 6 7 8 9 10 Next »
Wake On Lan

 
  • 0 Vote(s) - 0 Average
Wake On Lan
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,132
Threads: 957
Joined: May 2006
#11
2007-03-15, 11:56 AM
OscarL Wrote:Hi,
Still trying to get wake on lan to work stable. What is the sequence when starting Emulation mode?
Is the WOL command sent first, followed by 10 repeteated trials to contact the server.
Is the WOL command sent every time i enter emulation mode?.
I am just trying to understand this as it seems as if some times I can not wake the server up.

Hi OscarL. Here is the logic

When the dongle is first loaded it doesn't know anything about your LAN, but the first time emulation mode is started your computer's MAC address is stored. If you are testing don't forget this step.

After you exit emulation mode each time you try to restart emulation, the WOL magic packet is broadcast on your LAN to the MAC address. Then mvpmc sends a general Hauppauge protocol UDP broadcast message to your LAN (or IP if you have configured this) designed to find any servers. It tries this for (now) 10 seconds. Only after your server responds to this message will mvpmc try and actually connect.

Tonight I will add a bit more logic to also ping the IP after the WOL, so mvpmc knows that the machines is there, but you will need to have either a dongle.bin.config file or change the IP address from the ? in the browser.

Martin
OscarL
Offline

Member

Posts: 164
Threads: 23
Joined: Feb 2005
#12
2007-03-15, 12:51 PM
Hi Martin,
Thanks for the information. I will test some more tonight.
regards
Oscar
OscarL
Offline

Member

Posts: 164
Threads: 23
Joined: Feb 2005
#13
2007-03-16, 06:26 PM
It seems as if my problem is when the mvpmc sends command to quick after the magic-packet has been sent. I have tried to manually send the WOL from another computer, then wait 10-15 seconds before entering emulation mode. This works alright. However if I enter emualtion directly with a sleeping server It seems as it sometimes hangs the server so that it does not respond to lan activities.
Would it be possible to have a programmable delay after WOL until it starts sending the UDP message.
Note that I have it configured so that it knows my IP, could that be the difference?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,132
Threads: 957
Joined: May 2006
#14
2007-03-16, 07:29 PM
OscarL Wrote:It seems as if my problem is when the mvpmc sends command to quick after the magic-packet has been sent. I have tried to manually send the WOL from another computer, then wait 10-15 seconds before entering emulation mode. This works alright. However if I enter emualtion directly with a sleeping server It seems as it sometimes hangs the server so that it does not respond to lan activities.
Would it be possible to have a programmable delay after WOL until it starts sending the UDP message.
Note that I have it configured so that it knows my IP, could that be the difference?

I've got the changes made for this, are you configure the via the browser or a confile? I'm not updating the browser interface because it is supposed to get a redesign but I can add two command line wait options "wait for machine" and "wait for server"

Martin
OscarL
Offline

Member

Posts: 164
Threads: 23
Joined: Feb 2005
#15
2007-03-17, 10:10 AM
Hi,
Thanks for your continous support.
I configure through a config file, so there is no problem. Just give me some details and I be happy to test when it's done.
Thanks again
Oscar
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,132
Threads: 957
Joined: May 2006
#16
2007-03-17, 02:46 PM (This post was last modified: 2007-03-19, 03:39 AM by mvallevand.)
OscarL Wrote:Hi,
Thanks for your continous support.
I configure through a config file, so there is no problem. Just give me some details and I be happy to test when it's done.
Thanks again
Oscar

I have to redo my logic here because I found that my machine that is turned off still responds to pings which I used to test if the machine was on. Now I will have to somehow use the Hauppauge protocol too.

Martin
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,132
Threads: 957
Joined: May 2006
#17
2007-03-19, 03:39 AM
OscarL Wrote:Hi,
Thanks for your continous support.
I configure through a config file, so there is no problem. Just give me some details and I be happy to test when it's done.
Thanks again
Oscar

Oscar, I've uploaded a new alpha dongle with two WOL time options. The way I decided to implement it is simply to try for two seconds with the Hauppauge protocol and then allow a delayed wait. Hopefully this won't get in the way of entering emulation mode from the main menu.

The command line option for these are

--em-wolwt # where # is the time in seconds

There is a second option to allow for gbpvr to set up completely after a connection

--em-conwt # where # is the time in seconds

Their defaults are 0 no wait.

Let me know how this works for you.


Martin
OscarL
Offline

Member

Posts: 164
Threads: 23
Joined: Feb 2005
#18
2007-03-19, 03:47 PM
Thanks,
Will try to test it tonight (if system is available) Wink
Can you explain a little bit more about the differences of the two methods.
Also, I guess I but the commands at the top of the config file.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,132
Threads: 957
Joined: May 2006
#19
2007-03-19, 04:06 PM (This post was last modified: 2007-03-19, 05:16 PM by mvallevand.)
OscarL Wrote:Thanks,
Will try to test it tonight (if system is available) Wink
Can you explain a little bit more about the differences of the two methods.
Also, I guess I but the commands at the top of the config file.

The major difference is that em-wolwt is designed to handle the real WOL timing situation. em-conwt might deal with delays resulting from drive sleeping probably only requiring a second or two. It might not do anything if the drivers don't spin up on the intial connect.

These new options are not new command so they get added to the command line not to the config file (which is actually a script similar to a batch file or Window shell script) An example config file for you would be (since 30 seconds wasn't good enough).

mvpmc --startup emulate --emulate 192.16.1.1 --em-wolwt 40 &

I add the & for completeness, it has nothing to do with the -em-wolwt

Note that there will be a delay at Attempt 2/10 will this timeout is in effect If this works for you I will improve the user interface to show another countdown while the wait occurs.

Martin
OscarL
Offline

Member

Posts: 164
Threads: 23
Joined: Feb 2005
#20
2007-03-19, 08:49 PM
Havde done some testing tonight and it works great.
Tested both methods and both seems to work for me.
Noted a couple of things however.

--em-conwt method
Started MVP with server up to load new dongle.
  1. Server to standby
  2. Exit MVP-Emulation with Go-Back
  3. Enter Emulation mode
  4. Ping - No respons
  5. WOL
  6. Waiting for Server
  7. Starts!!
  8. This was repeated a number of times with success all times.
Noted that if server was awake it was still the same sequence, only difference is that there was no "No respons" message after the Ping (as the server was alive and answered the ping). But it still sended the WOL etc.

Then I tested to instead of entering emulation with Go-Back to power off the MVP with the remote.
This time the messages are as follows
Sending Ping
No response
Attempt 1
Attempt 2
....

No success in booting. This was also repeteated a number of times.

The I tried --em-wolwt with almost the same result. That is WOL works if I enter emulation mode after quitting Emulation mode with Go-Back and it is not working after power off/on with remote.

It seems as whenever I get the Attempt (x) message the WOL fails. The computer does not wake up from standby and it becomes unresponsive for any new WOL commands sent. Even tried to send WOL from another computer after this has happenend but it always fails to wake up then. For me it seems as the NIC hangs if it gets some other communication to quick after a WOL. Only way is to manually wake it up by power button and then let it go to standby again.

Anyway this was a great improvement! Would it be possible to get the same behaviour after using the power on/off with the remote?

Best regards
Oscar
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (8): « Previous 1 2 3 4 5 … 8 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Booting MVP from NAS and wake-on-LAN for TV server? mrayle 3 2,529 2007-07-25, 10:28 PM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode