Software ignoring PE1 as fourth lever input?
Software ignoring PE1 as fourth lever input?
This is based on the following points:
The manual gear gauge indicates 1 when the lever is in 3 (indicates correctly in all other gears)
The only difference between the input patterns for 1 and 3 is the state of PE1.
Datalogs show that PE1 does correctly change state between 1, 2 and 3
Are there any other users using 4 digital inputs from thier gearlever? Are you having similar problems?
-
- Posts: 1696
- Joined: Fri Apr 04, 2008 1:28 pm
Re: Software ignoring PE1 as fourth lever input?
It is certainly possible. I will have a look in the code to see if there is anything weird going on (I'll assume this is with a recent 4.1xx code, if not let me know).
Lance.
Re: Software ignoring PE1 as fourth lever input?
-
- Posts: 1696
- Joined: Fri Apr 04, 2008 1:28 pm
Re: Software ignoring PE1 as fourth lever input?
I did find something in the code. The issue wasn't exactly a mistake, but it was an ambiguity that could lead to the sort of issues you are having depending on the sequence in which one might change parameters around (and this stems from adding additional meaning to pre-existing parameters as capabilities have expanded, so the logic is more than a bit convoluted). If you have time, give the attached 4.144m test code and INI a try - it should help (or narrow the issue down at very least).
Lance.
- Attachments
-
- Monitor_4144m.abs.s19
- (73.32 KiB) Downloaded 443 times
-
- GPIO_MShift_4144.ini
- (220.19 KiB) Downloaded 442 times
Re: Software ignoring PE1 as fourth lever input?
-
- Posts: 1696
- Joined: Fri Apr 04, 2008 1:28 pm
Re: Software ignoring PE1 as fourth lever input?
-
- Posts: 1696
- Joined: Fri Apr 04, 2008 1:28 pm
Re: Software ignoring PE1 as fourth lever input?
Addicted,The manual gear gauge indicates 1 when the lever is in 3 (indicates correctly in all other gears)
The manual lever position doesn't have much to do with it. So I am not surprised.
I looked at the datalog in your other thread. Perhaps I am misunderstanding your posts, but we need to be really clear about this. Please pay close attention to what I am going to ask next:
In your log, the current gear (cGear) never moves higher than 1st. So of course the LEDs don't either, by design. In the other thread, I said, "As Guillaume mentioned above, the LEDs follow the currently selected gear (cGear in the datalog), NOT the manual lever position (mGear). I could easily make that an option in the code, though."
So, do the LEDs not work as they are designed WHEN THE *CURRENT* GEAR (cGear in the log) IS GREATER THAN 1?
The current gear is NOT necessarily the same as the manual gear shift position (it is the gear selected by the trans at the moment, which can be up to or equal to the manual lever position). Shifting the manual lever is not the same as a manual shift, either (which is done using the shift buttons). The trans will only shift from 1st if the speed is high enough (your log never exceeds 0.4 mph), etc., or if you shift it manually with the shift buttons. Ideally, if you would post a datalog of showing the current gear in 3rd but the LEDs indicating 1st (and include an MSQ) we could figure out the problem at that point.
If you like, I could post some test code that shows the manual lever position on the LEDs instead of the currently selected gear. Let me know if you would find that useful.
Lance.
Re: Software ignoring PE1 as fourth lever input?
I started this fresh thread as I hoped to get away from that slightly confused LED thread. This is nothing to do with Current Gear or the LED outputs, like I said in the previous posts the LED's and Current Gear now works perfectly as expected. Something to do with the 4.1xxx code you gave me I think.
This thread is purely regarding the Manual Gear gauge in Tunerstudio (and, of course, mGear in the datalogs).
This is the point I am at:
I have two manual lever positions that the software cannot distinguish between. The only difference between the two being PE1 being ON or OFF. Lets call them Manual Lever Positions A & B. The patterns are:Check the manual gear shift lever function. Select 'Manual Gear' as one of the gauges on your front page. Without starting the vehicle, shift the manual gear selector lever through each of its gears. Verify that the Manual Gear gauge shows the actual position of the gear selector lever at all times. If it does not, then you may have a wiring problem with one of the gear inputs (AD0/EGT4/Amp26; AD1/GPI2/Amp6; AD3/EGT3/Amp25; and possibly PE1/GPI1/Amp5), or you may have misconfigured one or more of the input patterns.
Position A: ON OFF ON OFF
Position B: ON OFF ON ON
If I allocate Position A to First and Position B to Third, mGear reads both positions as First.
-
- Posts: 1696
- Joined: Fri Apr 04, 2008 1:28 pm
Re: Software ignoring PE1 as fourth lever input?
-
- Posts: 1696
- Joined: Fri Apr 04, 2008 1:28 pm
Re: Software ignoring PE1 as fourth lever input?
Here is some 4.144p test code:
(See improved code in a following post though.) It won't help (or at least it shouldn't). I haven't fixed anything. But what this code does is poll the state of the PE1 pin, and count an output channel up if it is high, and count down if it is low. The value is returned as dbug, and can be found as a gauge ("Debug") and the datalog ("dbug") when you use the attached INI. If you could run this and let us know if the gauge (and datalog) is responding to the physical input you are supply. I will do the same here so we can compare notes (my test bench is in a bit of a state, so I have to reconfigure things and this might take a little while).
If the gauge does respond, then the problem is in the logic that deduces the lever position from the inputs. If the gauge doesn't respond, then either the port is not set up properly (though I did check) or the pin is burned out (it's unlikely that both of ours would be).
Sorry for the hassle, because I wasn't reading carefully I didn't understand the issue properly until your last post.
Lance.