Filter Screen - Recipe Use
Much of the data is more complex, and difficult to decode.
a. Some values have bits in adjacent data bytes.
b. Some values are only meaningful when a third byte has specific bits ON.
As we "discover" new values, we can specify a "formula" or "recipe" for the value, and save the Recipe for later use. Making variations of the Recipes (and comparing different Recipes) helps us to better understand the data values.
For example, select the Recipe for SOC Percent, and Graph Function. You should see something meaningful, generally going up with charging (or substantial Regen), and going down as the LEAF is driven.
Choosing the Fuel Bars Recipes, choosing a different color, and Graph Function again should show the Fuel Bars (perhaps Old-Bars) plotted over the SOC values.
The combination should appear meaningful.
------------
The Formulas:
a. The selected MsgID is first.
b. Optionally, a "condition" for the formula: Data Byte Number (DN, where 0 = no condition), a hex Mask value (MM), and a hex "equals" value (EE).
When D# is > 0 and the data value DD masked with MM (DD AND MM) does NOT equal EE, that message is NOT graphed.
For example data byte 6 might need its top two bits to be "10" for the rest of the formula to be meaningful. Use 6 C0 80 to only plot the "filtered" messages.
Then DN NN SS select the 1st data byte, where DN is the byte number NN is a mask ANDed with the data byte's value, and SS is generally positivebto indicate shifting the byte value to the left, zero for no shift, and negative to indicate shifts to the right.
The 2nd data byte is described by the next DN, NN, and SS. They operate the same way as the 1st data byte, and the 1st abd 2nd results are added together to make a "raw" value.
To make beter sense of the raw value, it might need to be "scaled" in two ways.
a. If a raw value of 0 to 180 really represents temperatures of -40 to 140 we would specify that 40 raw equals 0 scaled: a zero-offset of 40. Also, of the temperature was not -40 to 140, but really -20 to 70, we would need to divide by 2 (or multiply by 0.5): thus specify a Scale Factor of 0.500
With Zero Offset and Scale Factor selected, we just need to decide what values to graph, maybe 100 max and -50 minimum.
That would be a trial formula.
If it turns out to be worth saving, give the Recipe a suitable name (usually starting with EV:, AV:, CR:, or QC
, and ADD it to your Recipe list. Then, BEFORE quitting, SAVE your new Recipe list. CAUTION: The Save OVERWRITES the original Recipe file.