IPD sale XeMODeX - Experts in Volvo Electronics
Did you know? 🤔
Logged in users can get email notification of topic replies Log in or register (free).
Amazon Link Buy anything with this and it helps MVS!

Vida CEM swapping

Help, Advice, Owners' Discussion and DIY Tutorials on Volvo XC90s. The XC90 proved to be very popular, and very good for Volvo's sales numbers, since its introduction in model year 2003 (North America).
User avatar
RickHaleParker
Posts: 4522
Joined: Mon May 25, 2015 2:30 pm
Year and Model: See Signature below.
Location: Kansas
Has thanked: 3 times
Been thanked: 578 times
United States of America
RickHaleParker

Re: Vida CEM swapping

Post by RickHaleParker » Sat Jun 27, 2020 9:35 pm

vtl wrote:
Sat Jun 27, 2020 9:23 pm
The guy is from Poland, be merciful he speaks any English :)

My old CEM is not responding even to Renesas E8... :(
Most of the Amiga guys where from Europe. A lot from Germany.

Did you brick the chip?

Around here used CEMs are $22.00 or $37.00 depending on if the clerk thinks they are "Computer Controls" $37.00 or "Computer Control Modules" $22.00. Don't as what the difference between the two terms is. I'm clueless.
--------
Platform: P80 1998 C70, B5234T3, 16T, AW50-42, Bosch Motronic 4.4, Special Edition package.
Platform: X40 (Nedcar) 2003 S40, B4204T3, 14T twin scroll AW55-50/51SN, Siemens EMS 2000.
Platform P2 2005 XC90 T6 Executive, B6294T, 4T65 AWD, Bosch Motronic 7.0.
Platform P2 2004 S60R, B2524T4, AW50/51 AWD, B8444S TF80 AWD, Bosch Motronic 7.0, BorgWarner K24 turbocharger. V8 conversion in progress.

User avatar
vtl
Posts: 1918
Joined: Thu Aug 16, 2012 1:35 pm
Year and Model: 2005 XC70
Location: Boston
Has thanked: 3 times
Been thanked: 73 times
United States of America
vtl

Re: Vida CEM swapping

Post by vtl » Sat Jun 27, 2020 11:42 pm

Had to split up the E8 and do a basic sanity check of my wiring. Ground pin I used looked suspicious, so had to RTFM :-D It turns out all ground pins have to be connected, "my" ground pin was indeed ground, but only used for connectivity check, not for signal reference. Wired the rest, and voila: "Version Information: VER.1.16"

Now need to figure out why my ESP32 code does not work. But at least CEM is not fried/bricked. Yet.

ZX-Spectrum hacker here =)
05 XC70 265k, 16 XC60 45k, 19 Tundra 5k

User avatar
vtl
Posts: 1918
Joined: Thu Aug 16, 2012 1:35 pm
Year and Model: 2005 XC70
Location: Boston
Has thanked: 3 times
Been thanked: 73 times
United States of America
vtl

Re: Vida CEM swapping

Post by vtl » Sun Jun 28, 2020 2:34 am

Ok, it works... Tons of problem, starting with CYT1076 level shifter that switches at 100 KHz, but Renesas wants more. Somehow they agreed at 200 KHz, but I may need to redo the shifter. Renesas is 5v, ESP32 is 3.3.

Also finding the right SPI mode was a bit challenging, especially with the previous problems in hands. LSBFIRST and MODE3 is what Renesas wants.

04:33:14.310 -> 0x56 0x45 0x52 0x2e 0x31 0x2e 0x31 0x36 0xff 0xff : VER.1.16⸮⸮

4am, already?
05 XC70 265k, 16 XC60 45k, 19 Tundra 5k

User avatar
RickHaleParker
Posts: 4522
Joined: Mon May 25, 2015 2:30 pm
Year and Model: See Signature below.
Location: Kansas
Has thanked: 3 times
Been thanked: 578 times
United States of America
RickHaleParker

Re: Vida CEM swapping

Post by RickHaleParker » Sun Jun 28, 2020 3:04 am

vtl wrote:
Sat Jun 27, 2020 11:42 pm
ZX-Spectrum hacker here =)
ZX81 was the first computer I bought. Then C= 64. A long line of Amigas. After C= blew it a slow migration to Windows.
--------
Platform: P80 1998 C70, B5234T3, 16T, AW50-42, Bosch Motronic 4.4, Special Edition package.
Platform: X40 (Nedcar) 2003 S40, B4204T3, 14T twin scroll AW55-50/51SN, Siemens EMS 2000.
Platform P2 2005 XC90 T6 Executive, B6294T, 4T65 AWD, Bosch Motronic 7.0.
Platform P2 2004 S60R, B2524T4, AW50/51 AWD, B8444S TF80 AWD, Bosch Motronic 7.0, BorgWarner K24 turbocharger. V8 conversion in progress.

shodanx
Posts: 20
Joined: Mon Dec 10, 2018 8:04 pm
Year and Model: xc70 2001
Location: New York
Has thanked: 0
Been thanked: 0
Canada
shodanx

Re: Vida CEM swapping

Post by shodanx » Sun Jun 28, 2020 7:18 pm

@vtl, check out ebay item 264566995629, 2x8 channel level shifter and should do well over 1mhz switching

Does anyone have high resolution scans of each version of the CEM ?

I bought 2x 2006 XC70 with highly suspect CEM. So now that I have two to fix, it is worth my while to learn how to clone and buy a programmer.

I'm looking at that Xprog programmer, I already have a willem 3.? programmer that might work.

From what I understand, CEM cloning is going to involved dumping ROM from two eeprom and two microcontrollers ?
Is dumping the data from the microcontrollers really necessary ? Surely they put all the real config data in the eeprom and the microcontroller just have the code ?

And with that said, is there anywhere that people have been collecting dumps from these microcontrollers and eeproms ?

I'd like to do some changes while I'm at it, I want to add keys, remove the alarm (which is always dead in those old cars anyway), remove the FOUR-C from the configuration...

User avatar
vtl
Posts: 1918
Joined: Thu Aug 16, 2012 1:35 pm
Year and Model: 2005 XC70
Location: Boston
Has thanked: 3 times
Been thanked: 73 times
United States of America
vtl

Re: Vida CEM swapping

Post by vtl » Mon Jun 29, 2020 10:49 am

Good news and bad news. Good news is I'm able to talk to CEM reliably at 57600 or 115200 bauds. Bad news there's no ID code match jitter :( The code measures the jitter in base freq. clocks, at 240 MHz it can detect variation in time for lifting the BUSY line as low as 4-5 us. However, collecting entropy in thousands runs I see no jitter. About 5 clocks deviation on average. Sigh...

Either the chip does not have the same BUSY nuance or I need to buy a waveform generator and downclock the chip (it runs at 30 MHz).
05 XC70 265k, 16 XC60 45k, 19 Tundra 5k

User avatar
yagger
Posts: 314
Joined: Thu Mar 24, 2016 4:29 pm
Year and Model: S60 2005 2,5T
Location: DreamLand
Has thanked: 5 times
Been thanked: 25 times
Belarus
yagger

Re: Vida CEM swapping

Post by yagger » Tue Jul 14, 2020 4:22 pm

Volvo electronics and programming.Yagger&Doublebug - our experience invaluable.
Aftermarket Online Data Transferring Service for Volvo Pass: total

User avatar
vtl
Posts: 1918
Joined: Thu Aug 16, 2012 1:35 pm
Year and Model: 2005 XC70
Location: Boston
Has thanked: 3 times
Been thanked: 73 times
United States of America
vtl

Re: Vida CEM swapping

Post by vtl » Wed Jul 15, 2020 8:27 am

So, you are finding the ID over CAN withing a few seconds? Means, the range is very narrow. Good to know, thanks!
05 XC70 265k, 16 XC60 45k, 19 Tundra 5k

User avatar
yagger
Posts: 314
Joined: Thu Mar 24, 2016 4:29 pm
Year and Model: S60 2005 2,5T
Location: DreamLand
Has thanked: 5 times
Been thanked: 25 times
Belarus
yagger

Re: Vida CEM swapping

Post by yagger » Wed Jul 15, 2020 10:53 am

No, when I show process there are periods with fast forward video.
Detection can take 5 - 15 minutes actually.
Volvo electronics and programming.Yagger&Doublebug - our experience invaluable.
Aftermarket Online Data Transferring Service for Volvo Pass: total

User avatar
vtl
Posts: 1918
Joined: Thu Aug 16, 2012 1:35 pm
Year and Model: 2005 XC70
Location: Boston
Has thanked: 3 times
Been thanked: 73 times
United States of America
vtl

Re: Vida CEM swapping

Post by vtl » Wed Jul 15, 2020 11:02 am

This is still fast, given the CAN-bus itself is not very fast.
05 XC70 265k, 16 XC60 45k, 19 Tundra 5k

Post Reply
  • Similar Topics
    Replies
    Views
    Last post