AtmoWakeHelper - 1.00 - Solution for auto COM reconnect on sleep/resume

Discussion in 'Ambient Lighting System' started by Rick164, May 22, 2014.

  1. Rick164
    • Super User

    Rick164 Super User

    Joined:
    January 7, 2006
    Messages:
    1,335
    Likes Received:
    918
    Ratings:
    +1,359 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
    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
     

    Attached Files:

    Last edited: January 17, 2016
    • Like Like x 5
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. azzuro
    • Team MediaPortal

    azzuro Test Group

    Joined:
    May 10, 2007
    Messages:
    8,397
    Likes Received:
    2,479
    Occupation:
    technician HVAC
    Location:
    France - IDF
    Ratings:
    +4,136 / 13
    Home Country:
    France France
    Show System Specs
  4. Rick164
    • Super User

    Rick164 Super User

    Joined:
    January 7, 2006
    Messages:
    1,335
    Likes Received:
    918
    Ratings:
    +1,359 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
    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: May 22, 2014
  5. azzuro
    • Team MediaPortal

    azzuro Test Group

    Joined:
    May 10, 2007
    Messages:
    8,397
    Likes Received:
    2,479
    Occupation:
    technician HVAC
    Location:
    France - IDF
    Ratings:
    +4,136 / 13
    Home Country:
    France France
    Show System Specs
    yes, @BassFan & @Lightning303 made an big rework. very more stable. and useful

    @Lightning303 working an solution for detect blackbar. & Bassfan correct all error in Atmowin, and he likes this :ROFLMAO:
     
  6. BassFan

    BassFan Guest

    Ratings:
    +0 / 0
    Yes! , only you do not destroy any on Master .. LOL

    greets
     
  7. Rick164
    • Super User

    Rick164 Super User

    Joined:
    January 7, 2006
    Messages:
    1,335
    Likes Received:
    918
    Ratings:
    +1,359 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
    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.
     
  8. BassFan

    BassFan Guest

    Ratings:
    +0 / 0

    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: May 22, 2014
  9. Rick164
    • Super User

    Rick164 Super User

    Joined:
    January 7, 2006
    Messages:
    1,335
    Likes Received:
    918
    Ratings:
    +1,359 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
    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: May 22, 2014
  10. BassFan

    BassFan Guest

    Ratings:
    +0 / 0

    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
     
  11. azzuro
    • Team MediaPortal

    azzuro Test Group

    Joined:
    May 10, 2007
    Messages:
    8,397
    Likes Received:
    2,479
    Occupation:
    technician HVAC
    Location:
    France - IDF
    Ratings:
    +4,136 / 13
    Home Country:
    France France
    Show System Specs
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!