Main Menu

Reading from the VGT

Started by Rx7man, November 07, 2015, 04:54:55 PM

Rx7man

OK, since this is a pretty specific topic, I thought I'd start a thread on it...

Using the example in the can.h library, I incorporated it into my project and got lots of numbers flowing on the serial monitor...

Where to start?...
Well.. Lets start with the Message ID's...
So far I see 2 different ID's..
One is
ID | 18FF0A02 | Data Length | 8 | Data | 00 | FF | FF | FF | FF | FF | FF | FF
and is always full of "FF", it seems to be occurring every every 5th message.. some sort of timing thing I guess?  either way, it's not very interesting

The interesting one is
ID | 18FFC502| Data Length | 8 | Data | 01 | B1 | 01 | 4E | 00 | B2 | 01 | 7B

More as I figure it out
'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles

Rx7man

Here's an example of the readout I'm getting


ID | 18FF0A02 | Data Length | 8 | Data | 00 | FF | FF | FF | FF | FF | FF | FF
ID | 18FFC502 | Data Length | 8 | Data | 01 | B1 | 01 | 4E | 00 | B2 | 01 | 7B
ID | 18FFC502 | Data Length | 8 | Data | 01 | B1 | 01 | 4E | 00 | B2 | 01 | 7B
ID | 18FFC502 | Data Length | 8 | Data | 01 | B1 | 01 | 4E | 00 | B2 | 01 | 7B
ID | 18FFC502 | Data Length | 8 | Data | 01 | B1 | 01 | 4E | 00 | B2 | 01 | 7B
ID | 18FF0A02 | Data Length | 8 | Data | 00 | FF | FF | FF | FF | FF | FF | FF
ID | 18FFC502 | Data Length | 8 | Data | 01 | B1 | 01 | 4E | 00 | B2 | 01 | 7B
ID | 18FFC502 | Data Length | 8 | Data | 01 | B1 | 01 | 4E | 00 | B2 | 01 | 7B
ID | 18FFC502 | Data Length | 8 | Data | 01 | B1 | 01 | 4E | 00 | B2 | 01 | 7B
ID | 18FFC502 | Data Length | 8 | Data | 01 | B1 | 01 | 4E | 00 | B2 | 01 | 7B
ID | 18FF0A02 | Data Length | 8 | Data | 00 | FF | FF | FF | FF | FF | FF | FF
ID | 18FFC502 | Data Length | 8 | Data | 01 | B1 | 01 | 4E | 00 | B2 | 01 | 7B
ID | 18FFC502 | Data Length | 8 | Data | 01 | B1 | 01 | 4E | 00 | B2 | 01 | 7B
ID | 18FFC502 | Data Length | 8 | Data | 01 | B1 | 01 | 4E | 00 | B2 | 01 | 7B
ID | 18FFC502 | Data Length | 8 | Data | 01 | B1 | 01 | 4E | 00 | B2 | 01 | 7B
ID | 18FF0A02 | Data Length | 8 | Data | 00 | FF | FF | FF | FF | FF | FF | FF
ID | 18FFC502 | Data Length | 8 | Data | 01 | B1 | 01 | 4E | 00 | B2 | 01 | 7B
ID | 18FFC502 | Data Length | 8 | Data | 01 | B1 | 01 | 4E | 00 | B2 | 01 | 7B
ID | 18FFC502 | Data Length | 8 | Data | 01 | B1 | 01 | 4E | 00 | B2 | 01 | 7B
ID | 18FFC502 | Data Length | 8 | Data | 01 | B1 | 01 | 4E | 00 | B2 | 01 | 7B
ID | 18FF0A02 | Data Length | 8 | Data | 00 | FF | FF | FF | FF | FF | FF | FF
ID | 18FFC502 | Data Length | 8 | Data | 01 | B1 | 01 | 4E | 00 | B2 | 01 | 7B
ID | 18FFC502 | Data Length | 8 | Data | 01 | B1 | 01 | 4E | 00 | B2 | 01 | 7B
ID | 18FFC502 | Data Length | 8 | Data | 01 | B1 | 01 | 4E | 00 | B2 | 01 | 7B
ID | 18FFC502 | Data Length | 8 | Data | 01 | B1 | 01 | 4E | 00 | B2 | 01 | 7B
'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles

Rx7man

OK..

the 1st byte seems to always be 0x01.. perhaps another identifier?
the 2nd and 3rd bytes are the low and high bytes of the ACTUAL position respectively
the 4th byte is the temperature... again.. not sure how it's scaled.. looks like Celcius - 40 degrees.. need more research
the 5th byte seems to always be 0 in my testing anyhow... error flags maybe??
the 6th and 7th bytes are the low and high bytes of the COMMAND position respectively
the 8th byte is the motor command direction/magnitude.. byte value -128 (or perhaps 127?).. either way, it'll tell you what the motor is currently doing.

The sketch is attached..
you can uncomment a section in the 'readMessages' to see the raw data, and play with the minimum and maximum VGT values, as well as the timer interval to see how yours behaves..
right now it'll cycle the vanes from full open  to full closed once per second.. if you set it to once every 200ms it should go into "safe" mode for a couple seconds and then resume for a few more seconds..
'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles

Rx7man

Looking into the first byte a little deeper, it looks like a bitflag... bit 0 is the "OK" flag, bit 2 (3rd bit) is the "error" flag... that one seems to get raised (and bit0 unset) when it either times out or you give it a bad value to go to... haven't figured out the rest of them.. .there may be an over-temp and over/under voltage in there somewhere.. it didn't seem to get raised when I jammed the vanes though.

I haven't been able to trigger any other errors
'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles

Rx7man

So I'm using the VGT temp as the engine temp... should be reasonably close (same coolant flowing through both) (once I figure out the scaling)... it'll give me a warmup mode where it keep the vanes a little more closed to load the engine.

I don't know if I can "ask" the turbo about any other parameters.. or things I can set (like the default position, PID controls, etc).. I sent an email to cummins turbo technologies and Holset.. fat chance of getting a response from them.
'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles

hakcenter

I don't think that'll end up being coolant temp, when I took my board apart there was no thermistor. I asked Steed awhile back and I don't think he's using the values either. Most likely it is board temperature ?
TS2009 Deḇarim 8:2
"And you shall remember that יהוה your Elohim led you all the way these forty years in the wilderness, to humble you, prove you, to know what is in your heart, whether you guard His commands or not.

me78569

Yea it is board them. 

Here are some logs from a pricey scan tool on a 6.7
2000 Dodge 2500 quad-cab 5.9 Cummins slt, homebuilt 47re revmax 3.5 messed with vb, Quad adr iquad, 4" tbe , pureflow 150 gph. he351ve in the works 100hp DFI inj

Rx7man

I don't know exactly how it's scaled, but it's proportional to the housing temperature... there's coolant flowing in there, so it's going to be pretty close to the coolant temp.. I warmed it up with a propane torch (just a little) and it rose.  It should be close enough to determine if  I want 'warmup' mode or not
'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles

hakcenter

Well I'm pretty used to thermistor stuff on 5v ADCs. Usually input is inverted to voltage scale.


They are generally non-linear, but its simple to just take a few points, and linearize between them. At the range you want it, its usually 160ohms sweep so its not really that inaccurate at the range you want, just pretty much -40 to 60 is super wide.
TS2009 Deḇarim 8:2
"And you shall remember that יהוה your Elohim led you all the way these forty years in the wilderness, to humble you, prove you, to know what is in your heart, whether you guard His commands or not.

Rx7man

This is doing the math inside the VGT.. and it's outputting something proportional to the temperature.. I haven't been able to figure out if it's in Fahrenheit or Celsius yet... but if it's about 20C ambient, it reads 80... so I gotta subtract 60, making the lowest it can read -60C (~-75F)... it would be as good a place as any.. pretty unlikely to ever see temps below that considering antifreeze will usually freeze by then and you're going to have other problems! 

I'll have to put it outside for a night when its freezing and see if I can figure out the curve on it better.. is there a mulitiplier?
'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles

hakcenter

There could be all sorts of crap.

It could be 2x - 10, or -1.45x + 308, etc etc etc
Best to just map it out yourself in easy increments. By 10s or so.

Most likely its in Celcius too
TS2009 Deḇarim 8:2
"And you shall remember that יהוה your Elohim led you all the way these forty years in the wilderness, to humble you, prove you, to know what is in your heart, whether you guard His commands or not.

Rx7man

When I think of engine temps I think in F, everything else I'm in Celcius
'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles

hakcenter

I've been monitoring the can data

data[0] slot, 0x07 I think means standby. Once you send it a command it goes to 0x01 online I assume

If its 0x08 I believe that means it needs to recalibrate
TS2009 Deḇarim 8:2
"And you shall remember that יהוה your Elohim led you all the way these forty years in the wilderness, to humble you, prove you, to know what is in your heart, whether you guard His commands or not.

Rx7man

Which message ID are you speaking of?
'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles

Rx7man

And about the temperature sensor, I think the value you get is the raw ADC output, which is very non-linear, and really hard to figure out without knowing the type of sensor and bias resistor... I've been working on a sensor for the compressor outlet temperature, and it's not going very smoothly

Tell me more about this standby/recalibration required thing. 
Since I found out I bungled my assembly of the hot side and it was a little crooked (didn't get the clocking pin aligned), I think I should probably recalibrate it, so it would be a perfect time to see what kind of output that produces.
'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles