MPH through CAN from tesla SDU to speedhut dials

Discussion about various user interfaces such as web interface, displays and apps
Post Reply
Kitlacey
Posts: 24
Joined: Wed Jul 05, 2023 2:41 pm

MPH through CAN from tesla SDU to speedhut dials

Post by Kitlacey »

Hi all,

I'm wanting to send CAN messages, using the web interface, to some speedhut gauges to show MPH. I've been told I can use the 'speed' section of can messages but I don't know where to start.

Why tyres are 185 65R15s (it's a vw camper).

Please give answers for the 4 boxers on the web interface.

Thanks
User avatar
Bigpie
Posts: 1711
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 77 times
Been thanked: 372 times

Re: MPH through CAN from tesla SDU to speedhut dials

Post by Bigpie »

Do you know the Can ID the gauges expect to see the speed message on and the format of the message?
BMW E91 2006
ZombieVerter
GS450h
Outlander Charger DC/DC
Renault Kangoo 36kWh battery
tom91
Posts: 1782
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 153 times
Been thanked: 349 times

Re: MPH through CAN from tesla SDU to speedhut dials

Post by tom91 »

https://openinverter.org/wiki/CAN_communication

Towards the bottom section "Mapping Values through the web interface"

This again is open inverter so there is no variable road speed gain at the moment. So you need to bake this into how you setup the RPM / Speed (motor) to convert it to a vehicle speed value.

Did Zero-EV/Fellten stop selling Tesla Drive units?
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
User avatar
johu
Site Admin
Posts: 6259
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 236 times
Been thanked: 1286 times
Contact:

Re: MPH through CAN from tesla SDU to speedhut dials

Post by johu »

Yes, say the display expects road speed in mph as an integer and the speed to mph ratio were 100 (1000 rpm equals 10 mph) then you'd enter 0.01 as the gain factor. Since 5.27.R the gain can be more or less float so that is now possible.
don't be surprised that after setting it up the gain will show as 0. That's because the print routine is still limited to 5 binary digits (and thus roughly 1.5 decimal digits)
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Kitlacey
Posts: 24
Joined: Wed Jul 05, 2023 2:41 pm

Re: MPH through CAN from tesla SDU to speedhut dials

Post by Kitlacey »

Bigpie wrote: Tue Jul 11, 2023 2:08 pm Do you know the Can ID the gauges expect to see the speed message on and the format of the message?
Not sure,

I used to have

CAN ID 599
Position 0
Bits 16
Gain 10

This was under a parameter titled 'roadspeed'
User avatar
johu
Site Admin
Posts: 6259
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 236 times
Been thanked: 1286 times
Contact:

Re: MPH through CAN from tesla SDU to speedhut dials

Post by johu »

And what was "roadspeedgain" ?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Kitlacey
Posts: 24
Joined: Wed Jul 05, 2023 2:41 pm

Re: MPH through CAN from tesla SDU to speedhut dials

Post by Kitlacey »

johu wrote: Mon Jul 17, 2023 7:24 pm And what was "roadspeedgain" ?
Sorry, I didn't have a setting for roadspeedgain
tom91
Posts: 1782
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 153 times
Been thanked: 349 times

Re: MPH through CAN from tesla SDU to speedhut dials

Post by tom91 »

Upload your .JSON for the Zero-EV firmware it is in there for sure.

Line 10 "roadspeedgain"
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
jsimonkeller
Posts: 80
Joined: Sun Oct 30, 2022 2:21 am
Has thanked: 4 times
Been thanked: 8 times

Re: MPH through CAN from tesla SDU to speedhut dials

Post by jsimonkeller »

Hi guys. I read this post because I have updated my firmware and roadspeed is no longer available and it was really helpful to understand the conversion, but I still have some questions:

I have the same speedhut speedo with the following CAN:

CAN ID 599
Position 0
Bits 16
Gain 10

My roadspeedgain setting was 8.06

Based on this, for speed do I continue to use the:

CAN ID 294
Position 16
Bits 16
Gain 1

and adjust the gain from 1 to 8.06 OR

CAN ID 599
Position 0
Bits 16
Gain 10

and adjust the gain from 10 to ????

I assume my speedo needs the 599 in the SPEED column with the updated gain, but wanted to make sure.

Thanks
User avatar
johu
Site Admin
Posts: 6259
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 236 times
Been thanked: 1286 times
Contact:

Re: MPH through CAN from tesla SDU to speedhut dials

Post by johu »

jsimonkeller wrote: Sun Sep 15, 2024 5:30 pm and adjust the gain from 10 to ????
We now sorted this in a live session. Jordan please correct if I give the wrong numbers.

Code: Select all

can tx speed 599 0 16 0.0818
We used custom command because speed was also mapped somewhere else and the old interface doesn't allow a second mapping of the same item. The new web ui allows that.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
jsimonkeller
Posts: 80
Joined: Sun Oct 30, 2022 2:21 am
Has thanked: 4 times
Been thanked: 8 times

Re: MPH through CAN from tesla SDU to speedhut dials

Post by jsimonkeller »

The above information from Johan is correct. My roadspeedgain reading had been 8.18 and this was the correct conversion. I hooked up my GPS speedo and took the 911 out for a spin and compared the readings on the GPS speedo to the CAN Speedo using this code and they were both tracking the same speed, so success!!! Thanks!!!!
Post Reply