TMC is an independent, primarily volunteer organization that relies on ad revenue to cover its operating costs. Please consider whitelisting TMC on your ad blocker or making a Paypal contribution here: paypal.me/SupportTMC

How Long for Car to go to Sleep? (API)

Discussion in 'Model S: User Interface' started by 1NJ85D, Jan 8, 2016.

  1. 1NJ85D

    1NJ85D Member

    Joined:
    Feb 26, 2015
    Messages:
    83
    Location:
    Scotch Plains, NJ
    Once there is no activity, how long does it take for the car to go into "Sleep" mode/status? Thanks
     
  2. FlasherZ

    FlasherZ Sig Model S + Sig Model X + Model 3 Resv

    Joined:
    Jun 21, 2012
    Messages:
    7,019
    14-15 minutes is what I've measured.
     
  3. green1

    green1 Active Member

    Joined:
    Mar 25, 2014
    Messages:
    4,116
    Location:
    Calgary, Alberta, Canada
    How have you been determining that? Either I'm inadvertently keeping it awake somehow, I'm not checking the right thing, or the car isn't sleeping anywhere near that fast.
     
  4. FlasherZ

    FlasherZ Sig Model S + Sig Model X + Model 3 Resv

    Joined:
    Jun 21, 2012
    Messages:
    7,019
    Watching the TeslaMS daemon go through its processes...

    Doing *anything* with the car's API (commands or data requests to a particular vehicle) will keep it awake.

    Now, that said, I have been having a problem with it "sticking" and not going to sleep lately. If you reboot the center screen, the car will go to sleep after 15 minutes of inactivity.
     
  5. Soolim

    Soolim Member

    Joined:
    Jun 11, 2015
    Messages:
    849
    Location:
    Vancouver, BC, Canada
    Confirmed. I was once in a big traffic (dead stop due to fire on the bridge not caused by Tesla:tongue:), after placing the car in "Park", the car went to sleep after around 12 minutes. Maybe my car needs more rest than yours:biggrin:
     
  6. 1NJ85D

    1NJ85D Member

    Joined:
    Feb 26, 2015
    Messages:
    83
    Location:
    Scotch Plains, NJ
    Interesting. Thanks for your replies. The context of my original question was related to the use of the API. When the car is asleep, it doesn't respond/act on API calls/commands. I had not realized that the car being asleep (from an API perspective) is correlated with the car being asleep from an internal "display" perspective.

    In case anybody is curious why I am asking this, I am using VisibleTesla to keep the car awake so that it will act on commands issued by EVMote.

    Thanks.
     
  7. FlasherZ

    FlasherZ Sig Model S + Sig Model X + Model 3 Resv

    Joined:
    Jun 21, 2012
    Messages:
    7,019
    It's only a one-direction correlation. API "sleep" can only take place when the car displays are asleep. That's not exactly what we were talking about.

    I think there's something going on with the car right now, because it doesn't seem to want to go to sleep (perhaps log download, etc.). I've started the logger to collect information about when it's awake vs. asleep, I'll report anything I find here.
     
  8. FlasherZ

    FlasherZ Sig Model S + Sig Model X + Model 3 Resv

    Joined:
    Jun 21, 2012
    Messages:
    7,019
    Okay, the car stopped doing what it was doing and went back to sleep.

    8 Jan 16:18:27 - Info: 30 minute nap starts now
    8 Jan 16:19:29 - Poll return HTTP OK (last 2-minute poll ended)
    [...]
    8 Jan 16:28:29 - Vehicle state is: online
    8 Jan 16:29:29 - Vehicle state is: asleep

    So 11 minutes here since the last REST request, 12 minutes since the last stream request, 10 minutes since the last stream request ended.

    The car woke back up for some reason 6 minutes later...

    8 Jan 16:35:03 - getting charge state Aux data
    8 Jan 16:37:04 - Info: 30 minute nap starts now
    8 Jan 16:56:06 - Vehicle state is: asleep

    So 19 minutes there...

    I'll keep my eye on it after a trip to the store tonight.
     
  9. 1NJ85D

    1NJ85D Member

    Joined:
    Feb 26, 2015
    Messages:
    83
    Location:
    Scotch Plains, NJ
    i would assume that if the in-car display is on, then the car is awake from an API perspective. However, the car could be awake from an API perspective without the display being on.
     
  10. FlasherZ

    FlasherZ Sig Model S + Sig Model X + Model 3 Resv

    Joined:
    Jun 21, 2012
    Messages:
    7,019
    Correct.

    Another sleep data point. Tonight I returned from the store:

    8 Jan 20:37:07 - getting charge state Aux data
    8 Jan 20:37:32 - Info: 30 minute nap starts now
    8 Jan 20:38:32 - Poll return HTTP OK and body is this: (2-minute long poll end)
    8 Jan 20:48:33 - Vehicle state is: asleep

    So 12 minutes since last stream request, 11 minutes past last REST data collection.
     
  11. fact200

    fact200 Member

    Joined:
    Sep 25, 2014
    Messages:
    103
    Location:
    San Francisco
    If you're intentionally trying to keep the car awake, then why not just select the "Always connected" option??
     

Share This Page