Search found 41 matches

by VanGogh
Thu Dec 07, 2023 9:19 pm
Forum: Jaguar
Topic: can id´s 4 Gear Selector
Replies: 109
Views: 88634

Re: can id´s 4 Gear Selector

Hello. I looked at the logs from tom91 for Gen1. I don't understand. How does ID 312 turn 0x20 (locked) into 0x10 (unlock)? What command blocks the knob? If you look at Gen2 ID 02C there are two command 0x00 and 0x40 (D3). But they don't work for Gun1
by VanGogh
Fri Jul 21, 2023 6:09 am
Forum: Jaguar
Topic: can id´s 4 Gear Selector
Replies: 109
Views: 88634

Re: can id´s 4 Gear Selector

This is not a simple switch. There is a resistor between the buttons and ground. When the button is pressed, there is no short circuit between ground and start_stop_1 or _2. The tracks from the buttons go inside the board and there is no way to track them
by VanGogh
Thu Jul 20, 2023 7:16 am
Forum: Jaguar
Topic: can id´s 4 Gear Selector
Replies: 109
Views: 88634

Re: can id´s 4 Gear Selector

Do you think the voltage on the start/stop button and the handbrake depends on the CAN bus signal or not? I apply 12V to pin 12 (Wake up). And on pins 7, 18 and 11-ground (start/stop) I get 0V. But according to GSMTSM - Pinout.pdf they must be under voltage. The same situation with manual brake, on ...
by VanGogh
Mon Jul 17, 2023 7:22 pm
Forum: Jaguar
Topic: can id´s 4 Gear Selector
Replies: 109
Views: 88634

Re: can id´s 4 Gear Selector

LRBen wrote: Wed Jul 12, 2023 6:49 pm When the brake light is on, send the canbus messages to unlock.
What message exactly unlocks and locks the knob? And what message does the knob drop down?
by VanGogh
Sun Jul 16, 2023 8:51 pm
Forum: Jaguar
Topic: can id´s 4 Gear Selector
Replies: 109
Views: 88634

Re: can id´s 4 Gear Selector

Hello. If anyone needs a modified GEN1 code to connect the relay to the module buttons. Also added module highlighting. But I can’t find what data I need to send to the Can bus to block the knob in the P and R positions. And how to track when the ignition is off and the knob is down (I need this to ...
by VanGogh
Wed Jul 12, 2023 6:25 pm
Forum: Jaguar
Topic: can id´s 4 Gear Selector
Replies: 109
Views: 88634

Re: can id´s 4 Gear Selector

I checked the code Gen1 by tom91 with a modified void setup ().

void setup()
{
Serial.begin(115200);

if (CAN0.begin(MCP_ANY, CAN_500KBPS, MCP_16MHZ) == CAN_OK)
{
Serial.println("CAN Init OK");
}
else
{
Serial.println("CAN Init Failed");
}
CAN0.setMode(MCP_NORMAL);
pinMode(CAN0_INT ...
by VanGogh
Wed Jul 12, 2023 6:03 pm
Forum: Jaguar
Topic: can id´s 4 Gear Selector
Replies: 109
Views: 88634

Re: can id´s 4 Gear Selector

LRBen wrote: Wed Jul 12, 2023 5:56 pm What do you mean by brake pedal?
Now the knob rotates freely. But in the car, it is locked and only when the brake pedal is pressed does the knob unlock. How to implement it? What data needs to be sent to the CAN bus?
by VanGogh
Wed Jul 12, 2023 6:00 pm
Forum: Jaguar
Topic: can id´s 4 Gear Selector
Replies: 109
Views: 88634

Re: can id´s 4 Gear Selector

I have now checked this code with another GSM and the knob goes up and down, but the unlock does not work
by VanGogh
Wed Jul 12, 2023 4:29 pm
Forum: Jaguar
Topic: can id´s 4 Gear Selector
Replies: 109
Views: 88634

Re: can id´s 4 Gear Selector

Hi guys. I adapted LRBen's code for Arduino Uno with CAN shield. Now everything works, but there are a few nuances. When I return the knob from the R to P position, the program crashes for a few seconds and then it works again. Sometimes the situation is the same with position S.
Could you look at ...
by VanGogh
Mon Apr 10, 2023 10:46 pm
Forum: Jaguar
Topic: can id´s 4 Gear Selector
Replies: 109
Views: 88634

Re: can id´s 4 Gear Selector

I give up. I do not understand what is going on. Sometimes the backlight of the module turns on by itself. It may turn off immediately or work for a long time. I only had one successful launch when everything worked. After 3 days, the knob rose once and the Parking LED lit up, but the knob did not ...
by VanGogh
Sun Apr 09, 2023 7:23 am
Forum: Jaguar
Topic: can id´s 4 Gear Selector
Replies: 109
Views: 88634

Re: can id´s 4 Gear Selector

Hi.
I connected another NodeMCU with mcp2515 in parallel and read data between Aruino with mcp2515 and the GSM. Attached are 2 logs from different GSM. It seems to me that the Park wire (14 pin for a 22 pin connector or 10 pin for a 12 pin connector) is not working.
by VanGogh
Fri Apr 07, 2023 6:10 pm
Forum: Jaguar
Topic: can id´s 4 Gear Selector
Replies: 109
Views: 88634

Re: can id´s 4 Gear Selector

Tomorrow I will buy another mcp2515 module and read the data between the first installation and the GSM. I'll post the log here.
by VanGogh
Fri Apr 07, 2023 5:56 pm
Forum: Jaguar
Topic: can id´s 4 Gear Selector
Replies: 109
Views: 88634

Re: can id´s 4 Gear Selector


YEHAAAAAAA !!!! The second GSM works with Gen1 :D
Knob rotates and LEDs light up

My joy was short lived. It was possible to launch only 2-3 times. 2 days I can not understand the reason for the failure to turn on. Replaced all wires, removed arduino dupont and soldered mcp2515 with arduino ...
by VanGogh
Thu Apr 06, 2023 12:20 pm
Forum: Jaguar
Topic: can id´s 4 Gear Selector
Replies: 109
Views: 88634

Re: can id´s 4 Gear Selector

YEHAAAAAAA !!!! The second GSM works with Gen1 :D
Knob rotates and LEDs light up
IMG20230406151420.jpg
But the first doesn't work at all (9X23- 7E453-DA)
by VanGogh
Thu Apr 06, 2023 12:06 pm
Forum: Jaguar
Topic: can id´s 4 Gear Selector
Replies: 109
Views: 88634

Re: can id´s 4 Gear Selector

I use MCP2515 like this. It has 120 Om builtin resisror and jamper
https://www.ebay.com/itm/404205629787?hash=item5e1c88715b:g:yocAAOSwZ9hkEwTg&amdata=enc%3AAQAHAAAA4L%2F9vn8mHwRP3mrLn4tXVKMRj%2BDxs9cxoFG4qIsnBT ...
by VanGogh
Thu Apr 06, 2023 11:52 am
Forum: Jaguar
Topic: can id´s 4 Gear Selector
Replies: 109
Views: 88634

Re: can id´s 4 Gear Selector

Sorry. Could you please repeat your questions? I'm completely confused.
by VanGogh
Thu Apr 06, 2023 11:14 am
Forum: Jaguar
Topic: can id´s 4 Gear Selector
Replies: 109
Views: 88634

Re: can id´s 4 Gear Selector

I'm going crazy!!! :x Bought a new GSM JLR EH22-7E453-AB. Uploaded Gen2 sketch to Arduino nano. Knob does not leave when sending 's'.
Connection: PC - USB - Arduino Nano - MCP2515 - CAN GSM. Connection GSM:
1 - 12V,
2 - 12V (IGN),
5 - CAN H,
6 - CAN L,
10 -12V,
12 -Ground
What's wrong? Please ...
by VanGogh
Thu Apr 06, 2023 12:10 am
Forum: Jaguar
Topic: can id´s 4 Gear Selector
Replies: 109
Views: 88634

Re: can id´s 4 Gear Selector

Sorry. I realized that these libraries are for the board Arduino DUE. Do you have a sketch for Nano?
by VanGogh
Wed Apr 05, 2023 10:17 pm
Forum: Jaguar
Topic: can id´s 4 Gear Selector
Replies: 109
Views: 88634

Re: can id´s 4 Gear Selector

LRBen wrote: Sun Feb 05, 2023 5:48 pm

Code: Select all

#include "variant.h"
#include <due_can.h>
Where can I download these libraries to test your sketch? Thanks
by VanGogh
Wed Apr 05, 2023 9:30 pm
Forum: Jaguar
Topic: can id´s 4 Gear Selector
Replies: 109
Views: 88634

Re: can id´s 4 Gear Selector

Maybe we should send a static message for IGN-ON emulation before sending a message with ID 0x3F3?
by VanGogh
Wed Apr 05, 2023 8:45 pm
Forum: Jaguar
Topic: can id´s 4 Gear Selector
Replies: 109
Views: 88634

Re: can id´s 4 Gear Selector

I decided to go the other way. Turned on the CAN bus and began to analyze ID 0x312.
0x312 from 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 ...
by VanGogh
Wed Apr 05, 2023 6:11 pm
Forum: Jaguar
Topic: can id´s 4 Gear Selector
Replies: 109
Views: 88634

Re: can id´s 4 Gear Selector

I downloaded the arduino code Gen 1 from here
https://github.com/Tom-evnut/Land-Rover-Gearknob
You are talking about code Gen 1 JLR GSM. Maybe it's 2 different codes?
by VanGogh
Wed Apr 05, 2023 5:53 pm
Forum: Jaguar
Topic: can id´s 4 Gear Selector
Replies: 109
Views: 88634

Re: can id´s 4 Gear Selector


There are alot of checksums involved so you need to have an active controller doing it. Static messages do not work, this is why I made the Arduino code public.

Unfortunately it takes quite a bit of effort to make things like this work, if you are not comfortable with CAN bus this is not ...
by VanGogh
Wed Apr 05, 2023 5:37 pm
Forum: Jaguar
Topic: can id´s 4 Gear Selector
Replies: 109
Views: 88634

Re: can id´s 4 Gear Selector

Do you know the program CANHacker 2.00.02?
In this program I send ID code

Code: Select all

3F3 8 5C 66 00 00 FF 7F 00 80
then nothing happens. I can draw 2 conclusions:
1) The GSM does not work.
2) ID codes do not fit it
by VanGogh
Wed Apr 05, 2023 5:28 pm
Forum: Jaguar
Topic: can id´s 4 Gear Selector
Replies: 109
Views: 88634

Re: can id´s 4 Gear Selector

This data comes to arduino (TX Led is on).

Code: Select all

497387,0x3F3,false,8, 0x7C, 0x24, 0x04, 0x07, 0xFE, 0xFF, 0x01, 0x00
497408,0x3F3,false,8, 0x7C, 0x24, 0x05, 0x08, 0xFE, 0xFF, 0x01, 0x00
How to send data from arduino (RX)?

Code: Select all

497387,0x3F3,false,8, 0x5C, 0x66, 0x04, 0x07, 0xFF, 0x7F, 0x00, 0x80