AtmoWakeHelper - 1.00 - Solution for auto COM reconnect on sleep/resume (3 Viewers)

Rick164

Super User
  • Team MediaPortal
  • Super User
  • January 7, 2006
    1,335
    1,005
    Netherlands Netherlands
    Country flag
    AtmoWakeHelper is now integrated in AtmoLight (under the AtmoLight configuration -> AtmoWin tab) so this app is no longer required and can enabled within AtmoLight if you want to.


    Problem description

    - After a machine comes out of sleep the com port will be unavailable for Atmowin, tested this on Windows 8.1 running Atmowin (SEDU V2/V3).
    - Atmowin will then report that it can no longer connect or just freeze up waiting for a COM connection that's not gonna happen.

    Old solution

    - Re-add COM port and restart Atmowin, cumbersome and not ideal.

    New solution (AtmoWakeHelper)

    - Upon starting AtmoWakeHelper it will run in the background and monitors when the machine goes into sleep and resume.
    - Upon machine resume it will stop Atmowin then reconnect the COM port afterwards it will start Atmowin up again.

    Install

    Unpack in Atmowin directory or anywhere else if you choose to setup a custom AtmoWin and AtmoWakeHelper folder location.

    Configuration

    - Start "AtmoWakeHelper.exe" and select the correct COM port, one time setup and afterwards it will just minimize to tray on startup if it detects the COM port has already been selected.

    Changelog

    04-03-2015

    - Added option to set the AtmoWakeHelper folder manually, this allows for AtmoWin and the AtmoWakehelper to be in 2 different locations.

    27-02-2015

    - Additional delay of 2.5s added on resume to prevent it from displaying "include file not found" when the disks aren't ready yet.
    - Added option to set the AtmoWin folder manually, this is optional and means you don't need to have the AtmoWakeHelper in your AtmoWin folder if you chose to use it.

    03-06-2014

    - Process start error handling.
    - Added external resources to source with permission granted from NirSoft.
    - Added debug mode (enable in code) and additional error handling

    24-05-2014

    - Added option to disable Atmowin startup after resume (default is on)

    23-05-2014

    - Made it Forms application with much cleaner code, on first start it will ask you to set the correct COM port.
    - Saves settings in profile folder.
    - No longer needs .bat files.
    - Shorter sleep timers.
    - Added logo, greyscale to avoid confusion with Atmowin icon.
    - Check if already running.
    - Removed pskill.exe dependency

    Download

    See attachment

    Source code

    https://github.com/ambilight-4-mediaportal/AtmoWakeHelper


    Disclaimer
    USBDeview by NirSoft
     

    Attachments

    Last edited:

    Rick164

    Super User
  • Team MediaPortal
  • Super User
  • January 7, 2006
    1,335
    1,005
    Netherlands Netherlands
    Country flag
    Should work for Arduino as well unless the protocol is somehow not reconnecting, if you can check with Arduino and let me know how it works that would be great.

    Jus tested it with the latest Atmowin build and it seems to not restart AtmoWinA (kill/reconnect com port works fine), not a huge problem as MePo will just re-launch but still a bit odd.
     
    Last edited:

    Rick164

    Super User
  • Team MediaPortal
  • Super User
  • January 7, 2006
    1,335
    1,005
    Netherlands Netherlands
    Country flag
    Really liking the new Atmowin version, considering the mess the Atmowin vanilla code used to be it must have been a disaster to rewrite and improve it further.
     
    B

    BassFan

    Guest
    Really liking the new Atmowin version, considering the mess the Atmowin vanilla code used to be it must have been a disaster to rewrite and improve it further.

    yes i have work on it many Time
    I hope it was worth it
    C++ is not my native language. Using Delphi 2010
    poor source
    and not well understood

    You want to help no problem ;)
    takes me a lot of work from

    my Problem i have no Hardware so can not test any Com objects

    greets
     
    Last edited by a moderator:

    Rick164

    Super User
  • Team MediaPortal
  • Super User
  • January 7, 2006
    1,335
    1,005
    Netherlands Netherlands
    Country flag
    Sure can test it with Mini-DMX (SEDU V2/V3) any time you want :)
    Mostly C# and VBscript here so C++ isn't my cup of tea either, working with that Atmowin code base was stressfull to say the least ;)

    You also need the Dutch translation or was that taken care of?
     
    Last edited:
    B

    BassFan

    Guest
    Sure can test it with Mini-DMX (SEDU V2/V3) any time you want :)
    Mostly C# and VBscript here so C++ isn't my cup of tea either, working with that Atmowin code base was stressfull to say the least ;)

    You also need the Dutch translation or was that taken care of?

    Dutch Language are finished
    you can download it from here

    https://github.com/ambilight-4-mediaportal/AtmoWin/tree/master/language
    missing any ;) Spain, Russia and so on.

    greets
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 3)

    Top Bottom