Login Register

Vida CEM swapping

A mid-size luxury crossover SUV, the Volvo XC90 made its debut in 2002 at the Detroit Motor Show. Recognized for its safety, practicality, and comfort, the XC90 is a popular vehicle around the world. The XC90 proved to be very popular, and very good for Volvo's sales numbers, since its introduction in model year 2003 (North America). P2 platform.
Post Reply
vtl  
Posts: 4727
Joined: 16 August 2012
Year and Model: 2005 XC70
Location: Boston
Has thanked: 114 times
Been thanked: 606 times

Re: Vida CEM swapping

Post by vtl »

oscilloscope wrote: 17 Aug 2023, 14:41 What do the colours represent?
Colours?

rkam
Posts: 102
Joined: 19 October 2022
Year and Model: 14473_96090_XC7007
Location: Norway
Has thanked: 5 times
Been thanked: 25 times

Post by rkam »

Github question?

Red is removed, Green is added.

Example:

Commits on Feb 22, 2022

Remove canMsgReceive, affects the latency data as it disables interru…

Showing 1 changed file with 2 additions and 4 deletions.

4 red lines
2 green lines

red line 392 is removed: } while (TSC < limit && !canMsgReceive(CAN_HS, &id, reply, 0, false));

oscilloscope
Posts: 285
Joined: 20 May 2022
Year and Model: 2005
Location: uk
Has thanked: 27 times
Been thanked: 11 times

Post by oscilloscope »

rkam wrote: 17 Aug 2023, 23:50 Github question?

Red is removed, Green is added.

Example:

Commits on Feb 22, 2022

Remove canMsgReceive, affects the latency data as it disables interru…

Showing 1 changed file with 2 additions and 4 deletions.

4 red lines
2 green lines

red line 392 is removed: } while (TSC < limit && !canMsgReceive(CAN_HS, &id, reply, 0, false));
Yes apologies a git question.
Are the numbers too the left are they the line numbers ? And what is the blue high lighted sections?

vtl  
Posts: 4727
Joined: 16 August 2012
Year and Model: 2005 XC70
Location: Boston
Has thanked: 114 times
Been thanked: 606 times

Post by vtl »

This is a "unified diff format". @@ indicates lines added/removed at certain position.

pawelstanislaw
Posts: 2
Joined: 18 August 2023
Year and Model: 2008 C30
Location: Cracow, Poland
Has thanked: 2 times

Post by pawelstanislaw »

Hi everyone,
First, I have to thank you for such a fantastic project. It's cool that you can get a PIN code without disassembling anything and sending CEM, in my case probably abroad.
I have assembled the project with the use of a breadboard for my 2008 C30 (CEM P/N 31254903).
Unfortunately, I think there is no communication between Teensy and CAN bus as the output I see in every case is 00. The car doesn't react in any way to start the program, no relay click or anything.
Tried hardcoding CEM and all the tips from this thread with such a problem - nothing helped.
Could you please help me with that problem?

That's the output; 00 everywhere. Checked others' output, and it had some data.
Image

That is my oversimplified version of the project. WaveShare CAN transceivers (seen others use it with success) and the board. Tried using a 12V-5V step-down, the same outcome.
Ground is OBD signal ground combined with a common ground of the board.
Checked continuity on every directly connected component and everything's ok.
Image
Image

Thanks a lot for any advice.

EDIT: fixed ground connection. Still not working :cry:

User avatar
unicast
Posts: 6
Joined: 18 April 2022
Year and Model: C70 2007
Location: Berlin
Has thanked: 2 times
Been thanked: 1 time

Post by unicast »

pawelstanislaw wrote: 18 Aug 2023, 11:44 Hi everyone,
First, I have to thank you for such a fantastic project. It's cool that you can get a PIN code without disassembling anything and sending CEM, in my case probably abroad.
I have assembled the project with the use of a breadboard for my 2008 C30 (CEM P/N 31254903).
Unfortunately, I think there is no communication between Teensy and CAN bus as the output I see in every case is 00. The car doesn't react in any way to start the program, no relay click or anything.
Tried hardcoding CEM and all the tips from this thread with such a problem - nothing helped.
Could you please help me with that problem?

That's the output; 00 everywhere. Checked others' output, and it had some data.
Image

That is my oversimplified version of the project. WaveShare CAN transceivers (seen others use it with success) and the board. Tried using a 12V-5V step-down, the same outcome.
Ground is OBD signal ground combined with a common ground of the board.
Checked continuity on every directly connected component and everything's ok.
Image
Image

Thanks a lot for any advice.
The first thing I can see is that you have only the first 3 pins connected, but there should be 4 (GND, 0, 1, 2 mapped into 1,2,3,4). I suggest you doublecheck all the connections and try again.

vtl  
Posts: 4727
Joined: 16 August 2012
Year and Model: 2005 XC70
Location: Boston
Has thanked: 114 times
Been thanked: 606 times

Post by vtl »

pawelstanislaw wrote: 18 Aug 2023, 11:44 Hi everyone,
First, I have to thank you for such a fantastic project. It's cool that you can get a PIN code without disassembling anything and sending CEM, in my case probably abroad.
I have assembled the project with the use of a breadboard for my 2008 C30 (CEM P/N 31254903).
Unfortunately, I think there is no communication between Teensy and CAN bus as the output I see in every case is 00. The car doesn't react in any way to start the program, no relay click or anything.
Tried hardcoding CEM and all the tips from this thread with such a problem - nothing helped.
Could you please help me with that problem?

That's the output; 00 everywhere. Checked others' output, and it had some data.
Image

That is my oversimplified version of the project. WaveShare CAN transceivers (seen others use it with success) and the board. Tried using a 12V-5V step-down, the same outcome.
Ground is OBD signal ground combined with a common ground of the board.
Checked continuity on every directly connected component and everything's ok.

Thanks a lot for any advice.

EDIT: fixed ground connection. Still not working :cry:
Assuming you assembled and connected it right, try to comment CEM_PN_AUTODETECT. Also you CEM may use shuffle order 3. The code has 0.

oscilloscope
Posts: 285
Joined: 20 May 2022
Year and Model: 2005
Location: uk
Has thanked: 27 times
Been thanked: 11 times

Post by oscilloscope »

vtl wrote: 18 Aug 2023, 05:30 This is a "unified diff format". @@ indicates lines added/removed at certain position.
Ahh so one would look for the section which relates too the @@ position (in blue on git) and then edit the relevant code. Like a position pointer ?

vtl  
Posts: 4727
Joined: 16 August 2012
Year and Model: 2005 XC70
Location: Boston
Has thanked: 114 times
Been thanked: 606 times

Post by vtl »

oscilloscope wrote: 18 Aug 2023, 15:39
vtl wrote: 18 Aug 2023, 05:30 This is a "unified diff format". @@ indicates lines added/removed at certain position.
Ahh so one would look for the section which relates too the @@ position (in blue on git) and then edit the relevant code. Like a position pointer ?
`diff` utility takes two versions of one file and produces a patch, in that "unified diff" format. `patch` utility is the able to apply that patch to the old version of the file. All of this is embedded into another utility `git`, which nowadays is a dominant version control utility. Working with patches is a day to day duty of a modern software developer.

oscilloscope
Posts: 285
Joined: 20 May 2022
Year and Model: 2005
Location: uk
Has thanked: 27 times
Been thanked: 11 times

Post by oscilloscope »

vtl wrote: 18 Aug 2023, 15:54
oscilloscope wrote: 18 Aug 2023, 15:39
vtl wrote: 18 Aug 2023, 05:30 This is a "unified diff format". @@ indicates lines added/removed at certain position.
Ahh so one would look for the section which relates too the @@ position (in blue on git) and then edit the relevant code. Like a position pointer ?
`diff` utility takes two versions of one file and produces a patch, in that "unified diff" format. `patch` utility is the able to apply that patch to the old version of the file. All of this is embedded into another utility `git`, which nowadays is a dominant version control utility. Working with patches is a day to day duty of a modern software developer.
Ah ok cool , I'll give it ago - it looks like WinMerge is compatible with git. So I can only assume it'll work.

Post Reply
  • Similar Topics
    Replies
    Views
    Last post