Sponsored

Interested in an unofficial Apple Watch app?

OP
OP
electricsidecar

electricsidecar

Well-Known Member
Joined
Oct 15, 2022
Threads
8
Messages
647
Reaction score
830
Location
USA
Website
electricsidecar.app
Vehicles
Volcano Gray Taycan 2022
Country flag
Ah thanks!

@rs38 I'm working on add your signals in. Many of yours are using custom headers/commands so I need to make the scanner functionality handle those context switches better first.
Sponsored

 

rs38

Well-Known Member
Joined
Nov 16, 2020
Threads
23
Messages
703
Reaction score
762
Location
Düsseldorf
Vehicles
Taycan,GT2,i8,Tesla
Country flag
sure, they need some TP2.0 / CAN multi frame handling. Same as when querying the VIN.
 

ciaranob

Well-Known Member
Joined
Jul 3, 2021
Threads
83
Messages
3,547
Reaction score
2,639
Location
Houston, TX
Vehicles
CT4S 2022 Mini Cooper S 2024 Electric in 2025/6
Country flag
OK I know way off current discussion but it occurred to me as I launched the app a moment ago that it was not at all immediately obvious how to add to or view your garage from the launch page - as the app is clearly now a multi-car ICE/EV app I sketched the following as an alternate app entry page - you'd just tap relevant car to come to it's summary page or swipe left to say delete a car from the garage - have not setup a garage yet in Sidecar, so maybe you already have this?

I like this sort of layout as I can quickly see status/SoC of both cars and tap a quick access button (locate, climatize etc) for either car on one page.

Just musing out loud - you can and prob should totally ignore :)!!

Porsche Taycan Interested in an unofficial Apple Watch app? Screenshot 2024-03-03 at 9.31.48 AM
 
OP
OP
electricsidecar

electricsidecar

Well-Known Member
Joined
Oct 15, 2022
Threads
8
Messages
647
Reaction score
830
Location
USA
Website
electricsidecar.app
Vehicles
Volcano Gray Taycan 2022
Country flag
OK I know way off current discussion but it occurred to me as I launched the app a moment ago that it was not at all immediately obvious how to add to or view your garage from the launch page - as the app is clearly now a multi-car ICE/EV app I sketched the following as an alternate app entry page - you'd just tap relevant car to come to it's summary page or swipe left to say delete a car from the garage - have not setup a garage yet in Sidecar, so maybe you already have this?

I like this sort of layout as I can quickly see status/SoC of both cars and tap a quick access button (locate, climatize etc) for either car on one page.

Just musing out loud - you can and prob should totally ignore :)!!

Screenshot 2024-03-03 at 9.31.48 AM.webp
Some solid ideas there! A few of the requests I can see that I’ve pulled in to the Electric Sidecar tracker:

- Being able to register new vehicles from the Garage page.
- Actions on the Garage summary.
- Car imagery.
- Optimize screen real estate use based on the number of cars in the garage.
 

ciaranob

Well-Known Member
Joined
Jul 3, 2021
Threads
83
Messages
3,547
Reaction score
2,639
Location
Houston, TX
Vehicles
CT4S 2022 Mini Cooper S 2024 Electric in 2025/6
Country flag
Some solid ideas there! A few of the requests I can see that I’ve pulled in to the Electric Sidecar tracker:

- Being able to register new vehicles from the Garage page.
- Actions on the Garage summary.
- Car imagery.
- Optimize screen real estate use based on the number of cars in the garage.
OK - bring slow but just now found the garage under accounts - up to speed!
 


Sace

Well-Known Member
First Name
Anders
Joined
Mar 8, 2023
Threads
0
Messages
258
Reaction score
227
Location
Denmark
Vehicles
Taycan Sport Tourismo
Country flag
I've just rejoined the app testing after a while - Looks great!

One question (might be in the thread but wasn't able to find it): How often does it ping the car when you have the status widgets on the lockscreen? I see there is a storage mode that reduces ping interval.
 
OP
OP
electricsidecar

electricsidecar

Well-Known Member
Joined
Oct 15, 2022
Threads
8
Messages
647
Reaction score
830
Location
USA
Website
electricsidecar.app
Vehicles
Volcano Gray Taycan 2022
Country flag
I've just rejoined the app testing after a while - Looks great!

One question (might be in the thread but wasn't able to find it): How often does it ping the car when you have the status widgets on the lockscreen? I see there is a storage mode that reduces ping interval.
The current update interval algorithm looks like this:

Code:
public func updateInterval(
  shouldUpdateFrequently: Bool,
  isCharging: Bool,
  chargingRateInKW: Double,
  isStorageMode: Bool
) -> TimeInterval {
  if isStorageMode {
    return 60 * 60 * 6
  } else if shouldUpdateFrequently {
    return 60 * 5
  } else if isCharging {
    // Update more frequently while charging.
    let chargingRateInKW = chargingRateInKW
    if chargingRateInKW > 75 {
      return 60
    } else if chargingRateInKW > 25 {
      return 60 * 5
    }
  }
  // Slow updates down when the car is sitting overnight.
  let hour = Calendar.current.component(.hour, from: .now)
  if (hour >= 23 || hour < 4) {
    return 60 * 60
  }
  // Default interval.
  return 60 * 30
}
 
OP
OP
electricsidecar

electricsidecar

Well-Known Member
Joined
Oct 15, 2022
Threads
8
Messages
647
Reaction score
830
Location
USA
Website
electricsidecar.app
Vehicles
Volcano Gray Taycan 2022
Country flag
In the process of adding support for cell battery signaling I realized I'd mistakenly made commands and signals 1-1, which meant commands with multiple signals packed together (as is the case for the battery cell responses) weren't possible.

Two days later and 15+ hours of FF7 Remake so that I can finally play Rebirth (omg this release date snuck up on me), I've turned the 1-1 mapping to a 1-to-many mapping of commands to signals and the app is functional again, albeit without any new signals (yet).

Now to start unpacking the Taycan cell data :D

For those in the OBD testing pool, v1.4.0-86 will be pushed out in ~10 minutes.
 
  • Like
Reactions: B61


Sace

Well-Known Member
First Name
Anders
Joined
Mar 8, 2023
Threads
0
Messages
258
Reaction score
227
Location
Denmark
Vehicles
Taycan Sport Tourismo
Country flag
The current update interval algorithm looks like this:

Code:
public func updateInterval(
  shouldUpdateFrequently: Bool,
  isCharging: Bool,
  chargingRateInKW: Double,
  isStorageMode: Bool
) -> TimeInterval {
  if isStorageMode {
    return 60 * 60 * 6
  } else if shouldUpdateFrequently {
    return 60 * 5
  } else if isCharging {
    // Update more frequently while charging.
    let chargingRateInKW = chargingRateInKW
    if chargingRateInKW > 75 {
      return 60
    } else if chargingRateInKW > 25 {
      return 60 * 5
    }
  }
  // Slow updates down when the car is sitting overnight.
  let hour = Calendar.current.component(.hour, from: .now)
  if (hour >= 23 || hour < 4) {
    return 60 * 60
  }
  // Default interval.
  return 60 * 30
}
Thanks! Assuming the unit is seconds?

And is "shouldUpdateFrequently derived from a user setting?

I like the thinking about adjusting the interval according to charge speed etc.
 
OP
OP
electricsidecar

electricsidecar

Well-Known Member
Joined
Oct 15, 2022
Threads
8
Messages
647
Reaction score
830
Location
USA
Website
electricsidecar.app
Vehicles
Volcano Gray Taycan 2022
Country flag
Thanks! Assuming the unit is seconds?

And is "shouldUpdateFrequently derived from a user setting?

I like the thinking about adjusting the interval according to charge speed etc.
Seconds yep!

Haha so it looks like shouldUpdateFrequently isn't actually used anymore. I'm going to rename this parameter to "isOnAJourney" which will be true any time Electric Sidecar detects that you're driving. This parameter will then prioritize updating every 10 minutes or so instead of every 30.
 
OP
OP
electricsidecar

electricsidecar

Well-Known Member
Joined
Oct 15, 2022
Threads
8
Messages
647
Reaction score
830
Location
USA
Website
electricsidecar.app
Vehicles
Volcano Gray Taycan 2022
Country flag
Thanks to a bug report from @B61 I realized that Taycans that were sold in Europe were throwing VIN decoding errors. I've fixed this in the latest OBD build so that European-sold Porsches (any with a ZZZ in the VIN) get handled using a local decoder instead of NHTSA's.
 
OP
OP
electricsidecar

electricsidecar

Well-Known Member
Joined
Oct 15, 2022
Threads
8
Messages
647
Reaction score
830
Location
USA
Website
electricsidecar.app
Vehicles
Volcano Gray Taycan 2022
Country flag
Yessss! First HV battery module now getting decoded from the car:

Porsche Taycan Interested in an unofficial Apple Watch app? IMG_0860


Now to wire up the rest of the modules and then feed this data into a composite card that renders the car's battery pack as a nice visual.
 

Sace

Well-Known Member
First Name
Anders
Joined
Mar 8, 2023
Threads
0
Messages
258
Reaction score
227
Location
Denmark
Vehicles
Taycan Sport Tourismo
Country flag
Seconds yep!

Haha so it looks like shouldUpdateFrequently isn't actually used anymore. I'm going to rename this parameter to "isOnAJourney" which will be true any time Electric Sidecar detects that you're driving. This parameter will then prioritize updating every 10 minutes or so instead of every 30.
Ah that makes sense.

Do we have any idea how often the official app pings the car when you have the widget running? The car seems to be a bit picky with frequent pings (or at least was in the past).
 
OP
OP
electricsidecar

electricsidecar

Well-Known Member
Joined
Oct 15, 2022
Threads
8
Messages
647
Reaction score
830
Location
USA
Website
electricsidecar.app
Vehicles
Volcano Gray Taycan 2022
Country flag
> Do we have any idea how often the official app pings the car when you have the widget running? The car seems to be a bit picky with frequent pings (or at least was in the past).

It doesn't seem to be very often, but I think the official app also is able to get silent push notifications when the vehicle state changes. This is unfortunately something Electric Sidecar doesn't have access to, so it relies on polling.

That being said, I've been pinging the API for my Taycan every 30 minutes for over a year now and I haven't noticed a single hit to the battery related to Electric Sidecar. I think Porsche's data sync between the car caches last known state on their servers pretty efficiently so that it's not waking the car more than needed.
 
OP
OP
electricsidecar

electricsidecar

Well-Known Member
Joined
Oct 15, 2022
Threads
8
Messages
647
Reaction score
830
Location
USA
Website
electricsidecar.app
Vehicles
Volcano Gray Taycan 2022
Country flag
 








Top