Text Gauge Question

So I am wondering if there is a way to limit a text gauge to just the first 2 characters. I’m using the “gear” from CAN and most of the outputs are 1 or 2 characters… for example

Park outputs “P”
Reverse outputs “R”
Neutral outputs “N”
Drive outputs “D”

L outputs “L1”
2 outputs “L2”
3 outputs “3D”
the weird one is 4… it outputs “4096” which doesnt fit well in the needle gauge I have the text gauge sitting inside. Is there a way to limit the text gauge to 2 characters or do some sort of gauge math to give me an output of just 4 or something? I would assume the gauge math wouldnt work for this type of pid… There doesn’t seem to be anything in text formatting options that would limit the characters shown to only 2.


Thanks in advance

Are you talking about limit it for RPM?

No… just the Character limit of the actual text gauge. The gauge displaying what gear im in

I mean, hmmm, have you checked the min and max of the text gauge? See if the min/max match 4096. If they match, increase your min and max to see if the value changes after.

If it doesn’t, closest thing you can do is change the warning/critical and make it display a static text when it hits it.

For example set critical to 4000, and then go to the settings of the text gauge, change it to adjusting for critical at the bottom left, and set the text to static and you could put D simply.

Also, idk if this changes anything but you have the gear ratios setup in the garage?

No… none of this applies. The text gauge for the gear selected gets its info directly from CAN. So the car can be off, with just ignition on and I can select each gear and it will show up on the gauge. My problem is… for 4th gear, the data is 4 characters instead of 1 or 2 characters like it is for all the other selections. There doesn’t seem to be any option to limit the number of characters (Letters or Numbers) for a text gauge.

I will probably have to make some complicated trigger set up to display each gear with dummies if I want it to show 4 instead of 4096. Or 4D. I would think it would be easy to implement a character limit on a gauge, but I’m not a programmer.

You must be using a custom XML for connection, otherwise I do not understand how it would show those texts.

i’m using the built in “Toyota Corolla” CAN config file. Its in the built in list. they’re all 1 to 2 characters except 4 which is “4096”

I was thinking the same but I don’t really work with can so I assumed it could output in a different format than just numbers.

But if you use the Toyota Corolla can file, you can probably find it in the file to edit what you’re seeing.

They should be an XML file that you can open up with an application like notepad++ And either add the line of code or edit it.

1 Like

where are the CAN files located with the Android version? Or on Windows 10, for that matter…?

You have a copy of the can XML file you uploaded correct?

No. I am using the built in Realdash CAN configuration list. There is a list of vehicles and I am using the Toyota Corolla one that is in the list. I have a 2009 Camry and it seems to work. Not everything works but what does work I’m using for indicator lights:

Body Control—
Cruise Control active: on/off
Seat Belt: on/off
Driver Door Ajar: on/off
Trunk Open: on/off
Parking Brake: on/off

Transmission: Gear: P, R, N, D, 4096, 3D, L2, L1

You should be able to find the same CAN XML file on their website. Download it and go through it to see if you can edit it.

From there you can just upload it to your application.

I tried doing that awhile back, and it said something about “Realdash not defined”. I guess I can try again…

1 Like

So they don’t have the file for Corolla… but it is built into Realdash. Idk why they don’t have it on github…

Can you actually either type or post a screenshot of the full name of the file that you’re using.

So far the ones I’ve looked at don’t show anything about transmission data.

The build-in Toyota Corolla CAN XML has value:

<value targetId="139" offset="4" length="2" enum="16384~16385:D,32~33:N,64~65:R,128~129:P,512~513:L1,1024~1025:L2,2048~2049:3D"></value> <!-- Gear  -->

So that line in CAN XML is the culprit for printing the gear values.

Toyota CAN files are now in GitHub so you can download and edit the file to suit your need.

1 Like

awesome…

It seems like there isn’t a value for 4th gear. I have no idea how to find out what it is… so any insight would be most appreciated.
EDIT: so this should work, right??

<value targetId="139" offset="4" length="2" enum="16384~16385:D,32~33:N,64~65:R,128~129:P,512~513:L1,1024~1025:L2,2048~2049:3D, 4096~4097:4D"></value> <!-- Gear  -->

I was curious what is the difference between <frame canId= > and <frame id=?

I’m basically scouring through the FJ can to see if there is anything I can copy from there to paste into the Corolla file. My 2009 Camry does share a lot with the Corolla.

I read some of the Realdash Tutorial on CAN files but I can’t figure out how to desipher actually what Hex is for what function other than the Target ID.

Thank you for uploading the Toyota CAN files. One last question… how did those files get created. Was it some form of exporting?

Unable to say from here, you have to test on the vehicle to know.

They are the same.

These were provided by RealDash user. I do not know how they were generated, but assume good old data mining.

1 Like