can id´s 4 Gear Selector

Jaguar / Landrover hardware hacking
User avatar
medolino
Posts: 14
Joined: Fri Jan 13, 2023 8:41 pm
Has thanked: 3 times
Been thanked: 2 times

can id´s 4 Gear Selector

Post by medolino »

Image
Hi, does anyone happen to have the can bus ids for the jaguar or land rover gear selector, am testing whether it would be possible to make them usable for the LDU

Best regards
User avatar
Bratitude
Posts: 783
Joined: Thu Jan 02, 2020 7:35 pm
Location: Canada
Has thanked: 57 times
Been thanked: 168 times
Contact:

Re: can id´s 4 Gear Selector

Post by Bratitude »

medolino wrote: Fri Jan 13, 2023 8:46 pm Image
Hi, does anyone happen to have the can bus ids for the jaguar or land rover gear selector, am testing whether it would be possible to make them usable for the LDU

Best regards
https://savvycan.com/ + a due and im sure you'll be off to the races
https://bratindustries.net/ leaf motor couplers, adapter plates, custom drive train components
User avatar
medolino
Posts: 14
Joined: Fri Jan 13, 2023 8:41 pm
Has thanked: 3 times
Been thanked: 2 times

Re: can id´s 4 Gear Selector

Post by medolino »

Image
that´s what i find out
Image
die anderen pins hab ich leider noch nicht herausgefunden

to the can bus messages, I have found the following so far

0x02c 0x00 0x00 0x09 0x00 0x00 0x00 0x00 0x00 rising the Knob
0x02c 0x00 0x00 0x10 0x00 0x00 0x00 0x00 0x00 lower the Knob
0x02c 0x00 0x00 0x00 0x40 0x00 0x00 0x00 0x00 unlock the Knob to spin
all of that, every 100ms
tom91
Posts: 1277
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 97 times
Been thanked: 204 times

Re: can id´s 4 Gear Selector

Post by tom91 »

What model year is the part from?

Have you had it working outside the car with just sending those can bus commands?
Founder Volt Influx https://www.voltinflux.com/
User avatar
medolino
Posts: 14
Joined: Fri Jan 13, 2023 8:41 pm
Has thanked: 3 times
Been thanked: 2 times

Re: can id´s 4 Gear Selector

Post by medolino »

the part is from a Jaguar f-pace, production year 2018, is the same as in Range Rover, yes it works outside the car
tom91
Posts: 1277
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 97 times
Been thanked: 204 times

Re: can id´s 4 Gear Selector

Post by tom91 »

Very cool, but the light does not come on on the position?

Can you rotate the knob to select other positions, it should be easy to decode the feedback of that.
Founder Volt Influx https://www.voltinflux.com/
User avatar
medolino
Posts: 14
Joined: Fri Jan 13, 2023 8:41 pm
Has thanked: 3 times
Been thanked: 2 times

Re: can id´s 4 Gear Selector

Post by medolino »

to rotate the knob, i must send every 100ms this code 0x02c 0x00 0x00 0x00 0x40 0x00 0x00 0x00 0x00, to unlock, but nothing Receives on Savvy
nkiernan
Posts: 505
Joined: Mon Feb 24, 2020 8:59 pm
Location: Ireland
Has thanked: 278 times
Been thanked: 64 times

Re: can id´s 4 Gear Selector

Post by nkiernan »

medolino wrote: Sat Jan 21, 2023 9:24 pm to rotate the knob, i must send every 100ms this code 0x02c 0x00 0x00 0x00 0x40 0x00 0x00 0x00 0x00, to unlock, but nothing Receives on Savvy
I've been looking at a Jaguar XK rotary gear selector which has the EPB and Start/Stop button. This will be an older unit but I must test your CAN data above to see if it responds.
DSC_9075.JPG
DSC_9074.JPG
DSC_9073.JPG
DSC_9072.JPG

Believe this is the correct pinout for my unit. What connector detail is on your unit? Could it be that it needs a signal like wake-up or P/N etc before you see any more CAN data?
Jag_Rotary_Gear.GIF
Jag_Rotary_Gear.GIF (3.38 KiB) Viewed 5923 times
nkiernan
Posts: 505
Joined: Mon Feb 24, 2020 8:59 pm
Location: Ireland
Has thanked: 278 times
Been thanked: 64 times

Re: can id´s 4 Gear Selector

Post by nkiernan »

I saw a few of these units and wondered if they tested all functionality but doesn't look to be. But for the basic testing they do, look to be 6 wires minimum to the connectors:

https://www.aliexpress.com/item/1005004 ... pt=glo2deu
User avatar
medolino
Posts: 14
Joined: Fri Jan 13, 2023 8:41 pm
Has thanked: 3 times
Been thanked: 2 times

Re: can id´s 4 Gear Selector

Post by medolino »

I think it's the same message for all models

Image
tom91
Posts: 1277
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 97 times
Been thanked: 204 times

Re: can id´s 4 Gear Selector

Post by tom91 »

nkiernan wrote: Mon Jan 23, 2023 8:57 pm I saw a few of these units and wondered if they tested all functionality but doesn't look to be. But for the basic testing they do, look to be 6 wires minimum to the connectors:

https://www.aliexpress.com/item/1005004 ... pt=glo2deu
I got one of those on the way so hopefully can add some info soon.
Founder Volt Influx https://www.voltinflux.com/
tom91
Posts: 1277
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 97 times
Been thanked: 204 times

Re: can id´s 4 Gear Selector

Post by tom91 »

I got the tested.

Turns out the Yellow wire, ignition, is a switched 12V it raises and lowers the older style Jaguar knob, large connector.
Founder Volt Influx https://www.voltinflux.com/
tom91
Posts: 1277
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 97 times
Been thanked: 204 times

Re: can id´s 4 Gear Selector

Post by tom91 »

Guess there is some form of check sum in byte 5

This is for raised and P illuminated, byte 4 is cyclising counter, message id 0x02C

Code: Select all

1E	0	2F	52	0	21	0	80
1E	1	2F	53	10	BC	0	80
1E	2	2F	54	20	6	0	80
1E	3	2F	55	30	9B	0	80
1E	4	2F	56	40	6F	0	80
1E	5	2F	57	50	F2	0	80
1E	6	2F	58	60	48	0	80
1E	7	2F	59	70	D5	0	80
1E	8	2F	60	80	BD	0	80
1E	9	2F	61	90	20	0	80
1E	10	2F	62	A0	9A	0	80
1E	11	2F	63	B0	7	0	80
1E	12	2F	64	C0	F3	0	80
1E	13	2F	65	D0	6E	0	80
1E	14	2F	66	E0	D4	0	80
1E	15	2F	67	F0	49	0	80
Also found some interesting ones with same check sum but different message info.

Code: Select all

1E	0	2F	40	80	FB	1	0
1E	0	2F	41	0	FB	2	0
Founder Volt Influx https://www.voltinflux.com/
User avatar
medolino
Posts: 14
Joined: Fri Jan 13, 2023 8:41 pm
Has thanked: 3 times
Been thanked: 2 times

Re: can id´s 4 Gear Selector

Post by medolino »

do you have a log file, would like to analyze the whole thing

to turn the nightlight ON is id 0x244, 0xF7 0x40 0x00 0x00 0x00 0x00 0x00 0x00
OFF is id 0x244, 0x00 0x40 0x00 0x00 0x00 0x00 0x00 0x00
tom91
Posts: 1277
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 97 times
Been thanked: 204 times

Re: can id´s 4 Gear Selector

Post by tom91 »

https://github.com/Tom-evnut/Land-Rover-Gearknob

Here are the logs I took of it connected to the tester.
Founder Volt Influx https://www.voltinflux.com/
User avatar
medolino
Posts: 14
Joined: Fri Jan 13, 2023 8:41 pm
Has thanked: 3 times
Been thanked: 2 times

Re: can id´s 4 Gear Selector

Post by medolino »

Many thanks for the effort, try to pick up the messages from the tester, not from the Knob, which messages come from the tester
tom91
Posts: 1277
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 97 times
Been thanked: 204 times

Re: can id´s 4 Gear Selector

Post by tom91 »

only the 0x02C is the tester. Knob is the other ID.
Founder Volt Influx https://www.voltinflux.com/
LRBen
Posts: 471
Joined: Thu Jul 04, 2019 6:35 pm
Location: Somerset, UK
Has thanked: 42 times
Been thanked: 99 times

Re: can id´s 4 Gear Selector

Post by LRBen »

I've figured out most of the pinout for the 12 pin connector:
1. 12v main feed
2. Ign
3.
4.
5. Can H
6. Can L
7.
8.
9.
10.12v
11.
12. Gnd

On mine once I connect the ignition I get messages on the canbus and the backlight. ID 0x312 at about 20ms intervals. Canbus log attached.
Sending the messages to raise and lower the knob seems to have no effect, similar with playing back logs from Tom. But possibly due not having whatever pin 4 is attached.
Attachments
Ign on.csv
(148.78 KiB) Downloaded 78 times
tom91
Posts: 1277
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 97 times
Been thanked: 204 times

Re: can id´s 4 Gear Selector

Post by tom91 »

You possibly have another version.

What build year is yours?

The Jaguar knob I have, the one with the park brake and other switches also send 0x312. I will upload the captures to the github.

I have not looked at the older knob log to figure out what ids are from my chinese tester and which are from the knob.
Founder Volt Influx https://www.voltinflux.com/
LRBen
Posts: 471
Joined: Thu Jul 04, 2019 6:35 pm
Location: Somerset, UK
Has thanked: 42 times
Been thanked: 99 times

Re: can id´s 4 Gear Selector

Post by LRBen »

Not sure on the year, but model number is BH42-7E453-AJ.

I did have success playing back the Gen 1 Logs with 0x312. Raises the knob, lets me rotate it, changes lights, but doesn't lower again, even playing back awake lower knob.

Edit: looks like 0x3F3 is the only message needed to unlock the knob and change the lights. 0x299, 0x2A0, 0x422 also look like they came from the tester but dont seem to do anything, with only 0x312 coming from the gear selector. It's possible they have something to do with raising and lowering the knob though.
LRBen
Posts: 471
Joined: Thu Jul 04, 2019 6:35 pm
Location: Somerset, UK
Has thanked: 42 times
Been thanked: 99 times

Re: can id´s 4 Gear Selector

Post by LRBen »

Looked through the canbus logs and figured out the rough patterns. These are the two important messages from what I can tell.

Code: Select all

0x3F3 ID from Tester to gear selector
Byte 
0. 5C in park, 7C for not parked
1. 66 in park, 24 in R, 25 in N, 24 in D
2. Cycling value in any state, 00, 01, 02, 03, 04, 05, 06, 07, 08, 09, 0A, 0B, 0C, 0D, 0E,
3. Cycling depending on gear.
     In park 82, 83, 86, 87, 88, 89, 8A, 8B, 8C, 8D, 8E, 8F, 90, 
     In R: 03, 04, 05, 06, 07, 08, 09, 0A, 0B, 0C, 0D, 0E, 0F, 10, 11
     In N: 04, 05, 06, 07, 08, 09, 0A, 0B, 0C, 0D, 0E, 0F, 10, 11, 12
     In D: 06, 07. 08, 09, 0A, 0B, 0C, 0D, 0E, 0F, 10, 11, 12, 13, 14
4. FF in park, FE in R, FD in N, FB in D
5. 7F in park, FF in not parked
6. 00 in park, 01 in R, 02 in N, 04 in Drive 
7. 80 in park, 00 in not parked

0x312 from gear selector
Byte
0.   00 at all times
1. 20 when locked, 10 when unlocked
2.  8F in park, 8E in R, 8D in N, 8C in D, 88 in S
3. Cycling depending on gear state.
4. 00 at all times
5.FF at all times
6. 00 at all times
7. Cycling
        In Park 00, 01, 02, 03, 04, 05, 06, 07, 08, 09, 0A, 0B, 0C, 0D, 0E,
        In R 10, 02, 03, 04, 05, 06, 07, 08, 09, 0A, 0B, 0C, 0D, 0E, 0F
        In N. 10, 11, 03, 04, 05, 06, 07, 08, 09, 0A, 0B, 0C, 0D, 0E, 0F
        In D 10. 11, 12, 04, 05, 06, 07, 08, 09, 0A, 0B, 0C, 0D, 0E, 0F
        In S 10. 11, 12, 13, 14, 15, 16 08, 09, 0A, 0B, 0C, 0D, 0E, 0F
nkiernan
Posts: 505
Joined: Mon Feb 24, 2020 8:59 pm
Location: Ireland
Has thanked: 278 times
Been thanked: 64 times

Re: can id´s 4 Gear Selector

Post by nkiernan »

LRBen wrote: Wed Feb 01, 2023 10:41 pm On mine once I connect the ignition I get messages on the canbus and the backlight. ID 0x312 at about 20ms intervals. Canbus log attached.
Sending the messages to raise and lower the knob seems to have no effect, similar with playing back logs from Tom. But possibly due not having whatever pin 4 is attached.
Model number on mine is BW83-7E453-AC and I get the same result as you. Playing back some of the different logs raises the knob, allows it to rotate, changes light between P-R-N-D but doesn't lower the knob in any. The knob raised on the first playback and stayed there.
LRBen
Posts: 471
Joined: Thu Jul 04, 2019 6:35 pm
Location: Somerset, UK
Has thanked: 42 times
Been thanked: 99 times

Re: can id´s 4 Gear Selector

Post by LRBen »

nkiernan wrote: Sun Feb 05, 2023 11:42 am Model number on mine is BW83-7E453-AC and I get the same result as you. Playing back some of the different logs raises the knob, allows it to rotate, changes light between P-R-N-D but doesn't lower the knob in any. The knob raised on the first playback and stayed there.
Haven't figured out how to get the knob back down yet either. What wires do you have to the connector? I'm thinking potentially whatever is on pin 4 is somehow important, since canbus messages alone are not enough to lower it it seems.
tom91
Posts: 1277
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 97 times
Been thanked: 204 times

Re: can id´s 4 Gear Selector

Post by tom91 »

To lower the older knob, remove the ignition power.
Founder Volt Influx https://www.voltinflux.com/
User avatar
medolino
Posts: 14
Joined: Fri Jan 13, 2023 8:41 pm
Has thanked: 3 times
Been thanked: 2 times

Re: can id´s 4 Gear Selector

Post by medolino »

tom91 wrote: Sun Feb 05, 2023 3:48 pm To lower the older knob, remove the ignition power.


doesn't work on the newer ones
Post Reply