1997 Nissan Altima P0171 & P0304

Tiny
OHYEA
  • MEMBER
  • 1997 NISSAN ALTIMA
  • 2.4L
  • 4 CYL
  • 2WD
  • AUTOMATIC
  • 170,320 MILES
Went to go do emissions for car, went in with no check engine light for about 2 months. Failed the test! After I got the car back the car had the p0171 code, I go home let the car cool down for couple hours then start it up another code shows up p0304. How can I fix this and if I need to put a video on youtube to post the link here I will do so. MAF is working and has been cleaned already.
Saturday, March 14th, 2015 AT 7:31 PM

20 Replies

Tiny
CARADIODOC
  • MECHANIC
  • 33,863 POSTS
With no diagnostic test results to go on, the best suspect is worn spark plugs. Code 304 means cylinder number four is misfiring. If the misfire is due to a spark problem, that will send unburned fuel and air into the exhaust system where the unburned oxygen will be detected by the oxygen sensor as a lean condition. That will set code 171.
Was this
answer
helpful?
Yes
No
Saturday, March 14th, 2015 AT 9:36 PM
Tiny
OHYEA
  • MEMBER
  • 153 POSTS
I changed the spark plugs recently like 2-3 months ago, anything else that can do this thanks?
Was this
answer
helpful?
Yes
No
-1
Saturday, March 14th, 2015 AT 10:08 PM
Tiny
OHYEA
  • MEMBER
  • 153 POSTS
Also what diagnostic test results do you need, maybe I can provide them?
Was this
answer
helpful?
Yes
No
Saturday, March 14th, 2015 AT 10:09 PM
Tiny
CARADIODOC
  • MECHANIC
  • 33,863 POSTS
That's what your mechanic has to diagnose. The problem here is either code could be caused by something that caused the other code to set. Uhm, ... What I mean is you could have a code 304, cylinder four misfire due to a lean condition, or you could have a code 171 lean condition due to the excess unburned oxygen caused by a misfire.

You might start by looking for a vacuum leak. That could set the lean code. All cars except Chrysler products use a mass air flow sensor to measure the weight of the incoming air. If any air sneaks in that doesn't go through that sensor, the Engine Computer won't know about it and it won't include that in its fuel metering calculations. You won't get enough fuel and may experience a hesitation or stumble. That can cause a lean condition to be detected.

Your mechanic would approach this by watching the oxygen sensors' readings on a scanner, then introducing an artificial lean condition by removing a vacuum hose momentarily, then by introducing an artificial rich condition by removing the vacuum hose to the fuel pressure regulator, if your engine uses one, and plugging it, or by spraying in propane from a small bottle. He will watch the oxygen sensors to see if they respond properly.

By the way, be sure there are no air leaks in the fresh air tube between the mass air flow sensor and the throttle body.

For the misfire, you need fuel and air, spark, compression, and the proper timing for each event. Timing isn't likely to be an issue because that would affect all the cylinders equally. Low compression is a possibility at the mileage you listed. You won't feel it yet if it isn't real low, but that can cause enough of a misfire for the computer to detect. For fuel, you can switch the injectors between cylinder four and one other one, erase the fault code, then drive the car and see if a code sets for cylinder four again or the one you moved the injector to.

For spark, there's an even chance a new spark plug can cause a problem. The gap can be wrong. It could be the wrong type of spark plug. Or, as one corporate trainer used to say, "we not only sell you new parts, we sell them to you pre-broken".

We recently had someone here with a Toyota with the same fault codes and theirs turned out to be a loose new spark plug. During the intake stroke air got sucked in that resulted in extra unburned oxygen going into the exhaust where it got detected as the lean condition. He never felt the misfire but there was a code for that too.
Was this
answer
helpful?
Yes
No
Sunday, March 15th, 2015 AT 12:03 AM
Tiny
OHYEA
  • MEMBER
  • 153 POSTS
Can an egr problem cause these codes to?
Was this
answer
helpful?
Yes
No
Sunday, March 15th, 2015 AT 3:03 PM
Tiny
OHYEA
  • MEMBER
  • 153 POSTS
I checked the cars codes again after it was driven on the freeways only code that came back was p0171. Possibly it is an EGR problems since the smog technician did write EGR problem?
Was this
answer
helpful?
Yes
No
Sunday, March 15th, 2015 AT 4:06 PM
Tiny
CARADIODOC
  • MECHANIC
  • 33,863 POSTS
My cousin had a 171 code on his '97 Ford Ranger a few years ago, and before I could get there, a friend said he solved a lot of those in the past by replacing the EGR valve.

I'm going to go out on a limb here and tell you more than I know. I think this code sets when there is some blockage in the EGR system and not enough exhaust gas makes it into the cylinders. The purpose is to partially-fill the cylinders with an inert gas, the exhaust gas in this case, so there is less room for fresh air. Along with the reduced amount of oxygen in that air, there needs to be less fuel too so the fuel / air mixture ratio remains correct. As each piston goes down, each cylinder takes a gulp of air, but when the exhaust gas is blocked from entering, more fresh air can enter. The Engine Computer isn't expecting that much fresh air so it doesn't command enough fuel to go with it. That's what results in too much unburned oxygen going into the exhaust system where it gets detected by the oxygen sensor as a lean condition.

I don't think is the case with your car because you also have code 304. Put the two together and I'd be looking for the cause of a simple misfire first and work toward the EGR system only if it appears that's where the diagnosis is taking you.
Was this
answer
helpful?
Yes
No
Sunday, March 15th, 2015 AT 9:46 PM
Tiny
OHYEA
  • MEMBER
  • 153 POSTS
Think I found the problem to this stupid code and the reason why I failed emissions test. A hose connection to the EGR vacuum modulator was brittle and had a rip.
Was this
answer
helpful?
Yes
No
+1
Tuesday, March 17th, 2015 AT 7:37 PM
Tiny
CARADIODOC
  • MECHANIC
  • 33,863 POSTS
Ooh, that bad. No, that's good! That would cause a vacuum leak and a lean condition.
Was this
answer
helpful?
Yes
No
Tuesday, March 17th, 2015 AT 7:46 PM
Tiny
OHYEA
  • MEMBER
  • 153 POSTS
Ok great, got a replacement hose at autozone. So will get a emission retest tomorrow, hopefully I will pass.?
Was this
answer
helpful?
Yes
No
Tuesday, March 17th, 2015 AT 9:03 PM
Tiny
OHYEA
  • MEMBER
  • 153 POSTS
Well, still failed emissions due to high NO (ppm). This is just getting annoying, what can I do to solve the high NO (ppm). Cleaned the egr already.
Was this
answer
helpful?
Yes
No
Wednesday, March 18th, 2015 AT 9:50 AM
Tiny
CARADIODOC
  • MECHANIC
  • 33,863 POSTS
High Nox is due to high temperatures, and that can be due to insufficient EGR flow. I've never heard of anyone solving the 171 code by cleaning the EGR valve. I HAVE heard of them replacing the valve assembly to solve the code.
Was this
answer
helpful?
Yes
No
Wednesday, March 18th, 2015 AT 6:19 PM
Tiny
OHYEA
  • MEMBER
  • 153 POSTS
So every EGR components needs to be replaced? Can a clogged intake cause high NOx?
Was this
answer
helpful?
Yes
No
Wednesday, March 18th, 2015 AT 6:41 PM
Tiny
CARADIODOC
  • MECHANIC
  • 33,863 POSTS
It's the valve that is replaced. Most have some type of sensor on top or a vacuum amplifier. Those typically come with the valve when you buy them from the dealer. In fact, on some brands you can't buy the sensor separately. If you need a sensor, you have to buy the valve.

There can be other things in the system like flow-control solenoids or temperature-controlled switches. Those don't need to be replaced. A failure with one of those usually results in a different fault code related to "EGR insufficient flow". Code 171 implies the EGR valve control circuit is working and there is some other cause for the lean condition. That is what is commonly solved with a new EGR valve.
Was this
answer
helpful?
Yes
No
Wednesday, March 18th, 2015 AT 7:12 PM
Tiny
OHYEA
  • MEMBER
  • 153 POSTS
Ok, the 171 code is no longer present because I found a punctured hose the leads to the EGR vacuum modulator and replaced it. I've literally done all the test shown on youtube and forums to see if Egr is working and it is. Think I will just apply for emission repair assist.
Was this
answer
helpful?
Yes
No
Wednesday, March 18th, 2015 AT 7:26 PM
Tiny
CARADIODOC
  • MECHANIC
  • 33,863 POSTS
I live in an area that hasn't been completely destroyed yet by politicians. We don't have emissions testing in my part of the state so I'm not up on the common problems and causes. You might consider starting a new post just for the high Nox problem, but include the recent repair history too in case it's related.
Was this
answer
helpful?
Yes
No
Wednesday, March 18th, 2015 AT 7:37 PM
Tiny
OHYEA
  • MEMBER
  • 153 POSTS
Ok I will, thanks for your time.
Was this
answer
helpful?
Yes
No
Wednesday, March 18th, 2015 AT 7:43 PM
Tiny
CARADIODOC
  • MECHANIC
  • 33,863 POSTS
I'm monitoring your new post so I can learn something. Someone replied about the catalytic converter. They don't handle Nox. They only take care of unburned hydrocarbons, meaning unburned fuel. Nox is caused by very high temperatures and is why diesel engines produce so much. Diesel fuel burns much hotter than gasoline.

I don't want to add this comment to your new post because once I do, it will go "off the list" of questions awaiting an answer, then no one else will get to see it. That would do you a disservice. Other people are welcome to reply but it is only when one of us "experts" replies that your post becomes a private conversation between us.
Was this
answer
helpful?
Yes
No
Wednesday, March 18th, 2015 AT 9:17 PM
Tiny
OHYEA
  • MEMBER
  • 153 POSTS
Great, thanks for sticking with me. Yea, thought it was a weird answer, should I add anything else to the post to make it more clear for an answer?
Was this
answer
helpful?
Yes
No
Wednesday, March 18th, 2015 AT 9:24 PM
Tiny
CARADIODOC
  • MECHANIC
  • 33,863 POSTS
I don't think so. If the person who answers needs more details or observations, they'll ask. Very often someone specializes in the topic under discussion and knows the answer right away.
Was this
answer
helpful?
Yes
No
Wednesday, March 18th, 2015 AT 9:33 PM

Please login or register to post a reply.

Sponsored links