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

Custom server #216

Open
ShogunPanda opened this issue Sep 26, 2024 · 4 comments
Open

Custom server #216

ShogunPanda opened this issue Sep 26, 2024 · 4 comments

Comments

@ShogunPanda
Copy link

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
Copy link

Bre77 commented Sep 27, 2024

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
Copy link
Author

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.

@rafadalosto
Copy link

@ShogunPanda are you able to make it work?
We are trying to build using Node/Express and hosting it using Google Cloud Run behind a load balancer.

One of our cars is connecting using Websocket and sending some messages, but we are stuck trying to convert the message to a JSON using protobufJS(https://www.npmjs.com/package/protobufjs)

We did some tests creating a custom proto file, sending a message using Websocket and decoding the message and it worked, but we are failing miserable using the proto files provided on this project.

@ShogunPanda
Copy link
Author

Unfortunately not. I ended up installing the Go fleet-telemetry and getting it via the JSON stdout log

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

3 participants