Page 1 of 2

2011 Nissan Xterra

Posted: Wed Feb 10, 2021 1:38 am
by AndreyB
Body-on-frame SUV with https://en.wikipedia.org/wiki/Nissan_VQ_engine#VQ40DE engine.

Looks like CAN message format reverse engineering would be where this has to start.

Abricos has one of https://canhacker.com/ devices and I might get white panda from https://comma.ai/shop/products/panda


Re: 2011 Nissan Xterra

Posted: Wed Feb 10, 2021 1:39 am
by mck1117
AndreyB wrote:
Wed Feb 10, 2021 1:38 am
Body-on-frame SUV with https://en.wikipedia.org/wiki/Nissan_VQ_engine#VQ40DE engine.

Looks like CAN message format reverse engineering would be where this has to start.

Abricos has one of https://canhacker.com/ devices and I might get white panda from https://comma.ai/shop/products/panda
Why get a $300 device when you could get https://canable.io/ for $29 instead?

Re: 2011 Nissan Xterra

Posted: Wed Feb 10, 2021 1:49 am
by AndreyB
$99 device comes with relevant software https://my.comma.ai/cabana/
image.png
image.png (229.3 KiB) Viewed 18091 times

Re: 2011 Nissan Xterra

Posted: Wed Feb 10, 2021 1:55 am
by mck1117
Oh $100 isn't so bad - especially with an OBD connector attached.

Re: 2011 Nissan Xterra

Posted: Fri Jun 25, 2021 9:37 pm
by AndreyB
AndreyB wrote:
Wed Feb 10, 2021 1:38 am
I might get white panda from https://comma.ai/shop/products/panda
Well, is this a total turd?

I have NO idea how to setup this white panda.

Box comes with https://comma.ai/setup URL which does not help me at all.

https://comma-ai.medium.com/a-panda-and-a-cabana-how-to-get-started-car-hacking-with-comma-ai-b5e46fae8646 has "How to get started" section
with http://getchffr.com/ URL which redirects me to https://comma.ai/ which again has zero info on white panda setup.

I can see pands-xxx-pairing wifi but no idea what it gives me.

Panda has USB female plug same as my legacy USB plug. I doubt they want me to use the weird unique cable but Nick has the weird unique symmetrical cable and that gives me Unrecognized Device in windows.

Wow, this comma white panda is amazingly unclear for me.

Re: 2011 Nissan Xterra

Posted: Fri Jun 25, 2021 10:06 pm
by puff
will this make it more clear?
https://github.com/commaai/panda

Re: 2011 Nissan Xterra

Posted: Fri Jun 25, 2021 10:29 pm
by AndreyB
puff wrote:
Fri Jun 25, 2021 10:06 pm
will this make it more clear?
https://github.com/commaai/panda
https://github.com/commaai/panda/tree/master/drivers/windows is the most useful link so far! I've installed the driver but still unknown device.

Re: 2011 Nissan Xterra

Posted: Fri Jun 25, 2021 10:33 pm
by AndreyB

Re: 2011 Nissan Xterra

Posted: Sun Jun 27, 2021 1:19 am
by AndreyB

Re: 2011 Nissan Xterra

Posted: Thu Jul 01, 2021 3:16 am
by AndreyB
Internet has all the cool data
image.png
image.png (22.95 KiB) Viewed 17690 times
image.png
image.png (55.14 KiB) Viewed 17690 times

Re: 2011 Nissan Xterra

Posted: Sat Jul 03, 2021 5:00 pm
by AndreyB
Test driver development to the stars here!
image.png
image.png (141.49 KiB) Viewed 17655 times

Re: 2011 Nissan Xterra

Posted: Sun Jul 04, 2021 3:04 pm
by AndreyB
Bank 1, bank 2 they say in factory service manual https://www.nicoclub.com/archives/use-nicoclub-coms-factory-service-manual-database.html


image.png
image.png (54.7 KiB) Viewed 17626 times
but nice wiring diagram says Left and Right bank. Next question is which one is which :)

https://raw.githubusercontent.com/wiki/rusefi/rusefi/OEM-Docs/Nissan/2011_Xterra/2011_Xterra_ECU.png

I guess I need to simply find wiring diagram in FSM and see which head is wire 14.
image.png
image.png (9.73 KiB) Viewed 17626 times

Re: 2011 Nissan Xterra

Posted: Mon Jul 05, 2021 3:32 am
by pk386
image.png
image.png (33.94 KiB) Viewed 17602 times
if its a FWD application its the one closest to the fire wall

Re: 2011 Nissan Xterra

Posted: Mon Jul 05, 2021 3:46 am
by pk386
Also if you go into the FSM wiring diagrams Always POST the connector number.

Example E152 is the ECM connector
image.png
image.png (39.35 KiB) Viewed 17601 times
Also the ASCD (Automatic Speed control)(AKA cruise control) IS routed to the ECM and monitors for different voltages from the voltage divider....
Figured you might want to implement some sort of (Make a time stamp here in the logs when I press this button) feature for getting started.

image.png
image.png (47.28 KiB) Viewed 17601 times

Re: 2011 Nissan Xterra

Posted: Mon Jul 05, 2021 3:54 am
by mck1117
As a general rule bank 1 always contains cylinder number 1.

Re: 2011 Nissan Xterra

Posted: Tue Jul 06, 2021 12:41 am
by AndreyB
Once I've enabled main relay output I got nice crank and both cam signals into rusEFI!

https://rusefi.com/online/view.php?msq=576

CAN bus is silent and I've already checked settings once any ideas?

Still have some fixed to do to get trigger magic to be fully magical after all that's the first simmetrical crank vehicle with two banks of VVT.

Re: 2011 Nissan Xterra

Posted: Tue Jul 06, 2021 12:55 am
by bill
cylinder 1 is the cylinder farthest to the FRONT of the engine...
on a VEE engine
and bank 1 holds cyl 1

Re: 2011 Nissan Xterra

Posted: Tue Jul 06, 2021 3:34 pm
by AndreyB
Soldering connector pins to breakout has helped CAN

Code: Select all

2021-07-06_11_30_21_268: EngineState: CAN_rx 29E 670 8
2021-07-06_11_30_21_268: EngineState: CAN_rx 354 852 8
2021-07-06_11_30_21_268: EngineState: CAN_rx 2DE 734 8
2021-07-06_11_30_21_269: EngineState: CAN_rx 251 593 8
2021-07-06_11_30_21_269: EngineState: CAN_rx 2A5 677 7
2021-07-06_11_30_21_269: EngineState: CAN_rx 215 533 6
2021-07-06_11_30_21_269: EngineState: CAN_rx 6F7 1783 8
2021-07-06_11_30_21_269: EngineState: CAN_rx 2DE 734 8
2021-07-06_11_30_21_270: EngineState: CAN_rx 251 593 8
2021-07-06_11_30_21_270: EngineState: CAN_rx 2A5 677 7
2021-07-06_11_30_21_270: EngineState: CAN_rx 284 644 8
2021-07-06_11_30_21_270: EngineState: CAN_rx 29E 670 8
2021-07-06_11_30_21_270: EngineState: CAN_rx 358 856 8
2021-07-06_11_30_21_271: EngineState: Sending CAN message: SID 23D/8 0 0 0 0 0 0 0 70
2021-07-06_11_30_21_271: EngineState: CAN_rx 6F7 1783 8
2021-07-06_11_30_21_271: EngineState: CAN_rx 2D1 721 7

Re: 2011 Nissan Xterra

Posted: Thu Jul 22, 2021 5:32 am
by AndreyB
Two CAN milestones - I have gauge cluster displaying RPM and radiator fan is no longer wining in limping mode all the time looks like coolant temperature messages are being accepted by the vehicle.

Also got VVT position to synchronize once I've inverted cam sensor signal.

Re: 2011 Nissan Xterra

Posted: Tue Sep 14, 2021 8:36 pm
by AndreyB
First time hooking up fully soldered Hellen on my daily driver!

ETB control works even while it should NOT have worked - ETB relay was supposed to be Lua-controlled and it just works without any Lua script? Weird.

https://rusefi.com/online/view.php?msq=644
https://rusefi.com/online/view.php?log=345 shows pedal error in the middle of the range. Open question if that's about wrong op-amps or wrong tune or both.

Re: 2011 Nissan Xterra

Posted: Tue Sep 14, 2021 8:58 pm
by AndreyB
Yep, it was about op-amp. Now with U106 U108 and U109 swapped for proper part I have happy pedal position and happy ETB control.
image.png
image.png (1.57 MiB) Viewed 16826 times

Re: 2011 Nissan Xterra

Posted: Tue Sep 14, 2021 9:25 pm
by AndreyB

Re: 2011 Nissan Xterra

Posted: Sat Dec 25, 2021 4:23 pm
by AndreyB
By the way this vehicle has Jatco 5R05 https://en.wikipedia.org/wiki/Jatco_5R05_transmission - the whole CAN bus integration is similar to E65 in principle, obviously with zero overlap in specifics.

Re: 2011 Nissan Xterra

Posted: Fri Dec 31, 2021 4:29 pm
by AndreyB
http://shop.ukrtrans.biz/wp-content/uploads/catalogs/RE5R05A.pdf tells us that external 10 pin transmission connector is just an adapter for internal transmission harness. https://atracom.blob.core.windows.net/webinars/import/sap_atra_webinar_re5ro5a.pdf another good one

Slavic people are offering us that part! That makes me wonder if it has an official Nissan or Jatco part number?

relevant pages of official documentation PG-46 & TM-176 https://www.nicoclub.com/nissan-service-manuals
image.png
image.png (256.24 KiB) Viewed 15539 times
image.png
image.png (116.43 KiB) Viewed 15539 times
image.png
image.png (190.25 KiB) Viewed 15539 times

Re: 2011 Nissan Xterra

Posted: Thu Jan 06, 2022 3:11 am
by AndreyB
There is that old old CAN file of 370Z

https://www.dropbox.com/s/cfpzb2mpj42q6ug/370Z%20CAN.xlsx http://www.the370z.com/tuning/89695-370z-can-bus-proprietary-pids-2.html

I see overlap on 1F9 551 580 not much but at least something!

Re: 2011 Nissan Xterra

Posted: Tue Mar 22, 2022 9:04 pm
by AndreyB
Sporadic P0101 check engine is a known annoyance of this vehicle

https://www.thenewx.org/threads/p0101-fault-code.232130/

It has been exactly two years since I've installed a HITACHI MAF0031 from Rockauto. Do I really need to get a new one? Weird.

Re: 2011 Nissan Xterra

Posted: Thu Apr 28, 2022 8:31 pm
by AndreyB
Well, clearing those two harness grounds on passenger side fender has allowed me to pass inspection?! Either that or warmer weather allows ECU to test evap / o2 / something else much much quicker?!

Re: 2011 Nissan Xterra

Posted: Wed Jul 20, 2022 6:50 pm
by AndreyB
They have accepted by https://github.com/commaai/opendbc/blob/master/nissan_xterra_2011.dbc

it's tiny but at least it's what I officially know about my CAN bus.

Re: 2011 Nissan Xterra

Posted: Wed Nov 09, 2022 4:03 am
by AndreyB
AndreyB wrote:
Tue Mar 22, 2022 9:04 pm
MAF0031
Also known as 22680-7S000? https://www.romraider.com/forum/viewtopic.php?f=58&t=12453 has resulted in https://github.com/ba114/MAF-Scaling which includes the curve for that one.

Re: 2011 Nissan Xterra

Posted: Wed Nov 09, 2022 9:30 pm
by AndreyB
https://my.prostreetonline.com/2015/02/03/dtc-p0101-test-a-vq35-maf/

On real car with MAF unhooked and poking into harness plug like on the picture, I do see 4.7v on pin 5 which is the pull-up of the intake air thermistor.

Does me not seeing similar voltage on pin 4 MAF signal mean that this MAF does not need a pull-up on the ECU side? Is there such a thing as a MAF sensor which takes automotive battery power in and produces nice voltage, not current output?



PIN 2 switched 12 volt power for your MAF
PIN 4 MAF signal wire
PIN 3 ground wire or low reference for your mass air flow sensor
PIN 5 switched 5 volt signal. (No it's not, it's intake air pull-up showing itself being a pull-up)
image.png
image.png (697.78 KiB) Viewed 10421 times
image.png
image.png (16.36 KiB) Viewed 10421 times
https://raw.githubusercontent.com/wiki/rusefi/rusefi/OEM-Docs/Nissan/2011_Xterra/2011_Xterra_ECU.png