teslamotors / fleet-telemetry

Apache License 2.0
653 stars 73 forks source link

Custom server #216

Open ShogunPanda opened 3 days ago

ShogunPanda commented 3 days ago

Hello! I'm trying to write a custom telemetry server to process data from Tesla. Note that I'm NOT using fleet-telemetry at all. I have few questions:

  1. Can you please add the flatbuffers definitions (not the compile Go ones) in the repository)?
  2. I'm not really into Go code, so I need to know the following: do we need to confirm receipt of a message via StreamAckMessage or we just receive StreamMessage and that's it?

Thanks!

Bre77 commented 3 days ago

I've also looked into this a little bit so will contribute what I know:

The protobuf definitions are all here (compiled pb.go and uncompiled .proto) https://github.com/teslamotors/fleet-telemetry/tree/main/protos

I dont know for sure, but I believe the vehicle is expecting messages to be ack'ed because I have seen vehicles retransmit messages to my fleet-telmetery instances.

Out of interest what language are you writing it in? I started a NodeJS version but gave up very quickly.

ShogunPanda commented 2 days ago

Thanks for your input! Yup, I see the proto there but it seems the message receives them embedded a in a flatbuffer structure. I hope they publish this.

I'm writing them in Node.js (see at my profile and you'll get why ;)). I'm using @fastify/websocket which makes the process pretty easy.