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
MaxDenisov
Posts: 36
Joined: 6 March 2021
Year and Model: XC90 2010
Location: Moscow
Has thanked: 2 times

Re: Vida CEM swapping

Post by MaxDenisov »

T5Luke wrote: 18 Apr 2021, 17:51 I'm a bit late but had much different things to do and didn't come so far with a normal user "useful" software. My idea was and is to release a windows soft this week, which allows to change the parameters of the car, like having fog lights, having this, having that. Beyond each parameter is one setting, like parameter 2, a 1 stands for LHD and and a 2 for RHD car. There are parameters which decide if you have a cruise control or a trip computer. With your pincode you can change your car with this tool how you like. I have heard there are companys outside takeing lots of cash just for changeing 1 parameter, so please be a bit patient with me :D Maybe someones here can get out a parameter list out of some db or create it on other way for the others here, i just provide a parameter changer and dont want to be involved in this lists, i would like to load this lists as external txt file.

Image
Some parameters have more than one item for setting: like Audio( different systems etc)

Klopendus
Posts: 2
Joined: 20 April 2021
Year and Model: 2000 V70
Location: Riga

Post by Klopendus »

Im have 2 old cem s60 2003 and xc90 2003 28f400 flash files, the pin located in flash, the string 600h or older cem with flash 28f400 the string is 400h
Attachments
3a9e8796-4985-47f1-9df0-2df1d9067d32.jpg
3a9e8796-4985-47f1-9df0-2df1d9067d32.jpg (187.67 KiB) Viewed 1547 times

Klopendus
Posts: 2
Joined: 20 April 2021
Year and Model: 2000 V70
Location: Riga

Post by Klopendus »

If the pin is changed to FF FF FF FF FF FF can read write cem flash.

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

Post by vtl »

All 00 or FF == no write protection is for Renesas M32C. Volvo uses no Renesas pin, it's either 00 or FF, so write is enabled.

However, Volvo implements its own pin code check that is carried out over CAN before you can do anything useful with the flash. This pin code has nothing to do with the Renesas M32C pin code.

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

Post by vtl »

Spent couple of evenings working with the older, straight CEM. It seems the timing attack in its current form does not work for these CEMs. Maybe I need to try old code, the one with STD deviation tracing.

The code is in "rework" branch if anyone is interested.

User avatar
RickHaleParker
Posts: 7129
Joined: 25 May 2015
Year and Model: See Signature below.
Location: Kansas
Has thanked: 8 times
Been thanked: 958 times

Post by RickHaleParker »

RickHaleParker wrote: 19 Apr 2021, 00:03
If anybody has another idea for terminology, speak up. What matters the most is that we have a consensus on what terminology is used.
No takers ?

Another idea CEM-K for K-line.
Last edited by RickHaleParker on 20 Apr 2021, 14:32, edited 1 time in total.
⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙
1998 C70, B5234T3, 16T, AW50-42, Bosch Motronic 4.4, Special Edition package.
2003 S40, B4204T3, 14T twin scroll AW55-50/51SN, Siemens EMS 2000.
2004 S60R, B8444S TF80 AWD. Yamaha V8 conversion
2005 XC90 T6 Executive, B6294T, 4T65 AWD, Bosch Motronic 7.0.

T5Luke
Posts: 142
Joined: 11 November 2020
Year and Model: S60 T5 2001
Location: DE
Has thanked: 11 times
Been thanked: 130 times

Post by T5Luke »

:lol: You are not the only one whos spended nights with this, if you connect to the can lines to the car side and not to the obd site you don't need k line init. Did you read your CEMs flash before?
Code is entered without displacement. And from what i have seen in disassembler so far only 1 byte is checked. But in my tests i had most different results by testing the last can byte first. I also have probs with disassembler cause it doesnt decode full, need to find out how, dont like this universal tool.

About setting code to FF, it seems only if CEMs code is FF you can upload your own bootloader, with setting a code, the cem gets locked.

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

Post by vtl »

T5Luke, can you share pin check disassembly? It will help understanding why it does not work.

Also I fear Renesas only works because flash access takes very long time. It is not the latency of the cmp+jmp execution, it is something else.

T5Luke
Posts: 142
Joined: 11 November 2020
Year and Model: S60 T5 2001
Location: DE
Has thanked: 11 times
Been thanked: 130 times

Post by T5Luke »

Hi, if i had it i would share it. Code is shown in previous posts and on can bus 0xBE command orientation is 1:1 so unchanged.

Debugging tools are rare for this "not so new cpu", the pin compare code doesnt get disassembled automatically at the moment, i get only around 20 functions, need to work around if i remember right there was some keystroke to disassemble at some starting point you can choose...

I read this CEMs by 5 wires at the backside by some nanos, i would suggest to do this first...

In this 20 functions i can only find the command for checking the prog command, and there 1 byte after the next byte is checked in right condition. I wont think a compiler would mess around the order, so i would have thought the same for BE command.

Image

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

Post by vtl »

So, first two bytes are FF 86, do I read it right? Interesting...

Actually, it must be a parser for "prog mode on" CAN frame: first bytes FF 86 followed by all zeros. This is not a pin compare routine.

And you say it is a prog mode =) Lol, stupid me.

Post Reply
  • Similar Topics
    Replies
    Views
    Last post