Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Connectivity Events not reliable? #244

Open
netdata-be opened this issue Nov 29, 2024 · 2 comments
Open

BUG: Connectivity Events not reliable? #244

netdata-be opened this issue Nov 29, 2024 · 2 comments
Assignees

Comments

@netdata-be
Copy link

Hi,

When using the command-api I see my vehicle is going to sleep and is offline.

/api/1/vehicles/<VIN>  | jq .response.state
"offline"

I have enabled the connectivity to log to stdout, there I find these events:

{"ConnectionID":"f6433181-31d7-4831-aff3-78979bb019f2","CreatedAt":1732880726,"Status":"CONNECTED","Vin":"xxx"}
{"ConnectionID":"f6433181-31d7-4831-aff3-78979bb019f2","CreatedAt":1732880726,"Status":"DISCONNECTED","Vin":"xxx"}
{"ConnectionID":"0042e097-2122-414b-8dcf-417b5d41b200","CreatedAt":1732880726,"Status":"CONNECTED","Vin":"xxx"}
{"ConnectionID":"63b9e371-7d2b-4277-9b8e-96171a847b42","CreatedAt":1732881637,"Status":"CONNECTED","Vin":"xxx"}

A few questions here:

  1. Why does the vehicle connect + reconnect at the same time?
  1. I see 2 CONNECTED events, but none DISCONNECTED event
  2. Why does the vehicle have 2 CONNECTED Events ?
@Bre77
Copy link

Bre77 commented Nov 29, 2024

I've also found these events to be unreliable. I was really looking forward to having a strong realtime awake vs asleep/offline signal, but am seeing similar behaviour from my Model 3.

Multiple connected and disconnected message, and receiving data when it should be disconnected.

Screenshot_20241130-070219.png

@stx
Copy link

stx commented Dec 6, 2024

Yeah, looking at the times when data is sent by Fleet Telemetry (along with the car timestamps of those data points), and looking at when Fleet Telemetry reports Connected/Disconnected, there is basically no correlation.

While "Disconnected", data is still sent and the car is still awake and active. Happens across all models. There's no way this can be used for sleep/wake detection as is. Might need another solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants