Login Register

Vida CEM swapping

Post Reply
Arty
Posts: 17
Joined: 09 May 2024, 05:39
Year and Model: 2006 S60
Location: Russia, Krasnodar
Has thanked: 7 times
Been thanked: 5 times

Post by Arty »

mirelay wrote: 03 Apr 2026, 06:59 Hi all! I was very happy to find this thread long time ago, when I decided that I want to swap my M56 with M66. I understood that I have to config the CEM in order to have cruise control when in 6th gear and reverse lock.
Аt first I was disappointed because I read that getting the PIN is not possible for CEM-B, which I have in my 2001 S60. But recently I heard about OpenMoose so I got a laptop and got my CEM pin.
In the meantime though, I bought Teensy, CAN communicators and a used CEM from a scrapyard and started experimenting. The short story is that I can't make it work and any help would be appreciated.
So I am in the correct cem-b branch and when I run the code unmodified I get the "Unknown CEM part number 0...". I tried hardcoding the part number and other stuff, but with no success. Teensy seems to crash after "Reading RAM.." line.
I don't use additional 5V power to the board. I use 12V transformer for the CEM, powering E3, E6 and B3 (read this in the thread) and grounding E1. At first I have switched the CAN transceivers connections to the CEM but have fixed that.
There's Openmoose for CEM-B. I don't see why you'd want to build something on a Teensy.

vtl
Posts: 4927
Joined: 16 Aug 2012, 13:35
Year and Model: 2005 XC70
Location: Boston
Has thanked: 129 times
Been thanked: 686 times

Post by vtl »

mirelay wrote: 03 Apr 2026, 06:59 Hi all! I was very happy to find this thread long time ago, when I decided that I want to swap my M56 with M66. I understood that I have to config the CEM in order to have cruise control when in 6th gear and reverse lock.
Аt first I was disappointed because I read that getting the PIN is not possible for CEM-B, which I have in my 2001 S60. But recently I heard about OpenMoose so I got a laptop and got my CEM pin.
In the meantime though, I bought Teensy, CAN communicators and a used CEM from a scrapyard and started experimenting. The short story is that I can't make it work and any help would be appreciated.
So I am in the correct cem-b branch and when I run the code unmodified I get the "Unknown CEM part number 0...". I tried hardcoding the part number and other stuff, but with no success. Teensy seems to crash after "Reading RAM.." line.
I don't use additional 5V power to the board. I use 12V transformer for the CEM, powering E3, E6 and B3 (read this in the thread) and grounding E1. At first I have switched the CAN transceivers connections to the CEM but have fixed that.
It perhaps needs K-Line to open diagnostic CAN-buses. I have a MC33290 K-Line chip added on my cracker, but never managed to reflect it in the schematics, since cracking via timing attack does not work with these CEMs. You can connect to CAN-HS and CAN-LS pins, which is only available if you have it on the table.
1.jpg
2.jpg

mirelay
Posts: 2
Joined: 13 Aug 2018, 12:50
Year and Model: 2001 S60 2.4 140ps
Location: Sofia
Has thanked: 2 times

Post by mirelay »

Arty wrote: 03 Apr 2026, 07:14 There's Openmoose for CEM-B. I don't see why you'd want to build something on a Teensy.
I already got the code, but I wanted to have the cracker for future cars and to test.
vtl wrote: 03 Apr 2026, 07:34 It perhaps needs K-Line to open diagnostic CAN-buses. I have a MC33290 K-Line chip added on my cracker, but never managed to reflect it in the schematics, since cracking via timing attack does not work with these CEMs. You can connect to CAN-HS and CAN-LS pins, which is only available if you have it on the table.

1.jpg

2.jpg
Well, I will follow if you sometime in the future decide to update the schematics.

vtl
Posts: 4927
Joined: 16 Aug 2012, 13:35
Year and Model: 2005 XC70
Location: Boston
Has thanked: 129 times
Been thanked: 686 times

Post by vtl »

mirelay wrote: 03 Apr 2026, 09:54 Well, I will follow if you sometime in the future decide to update the schematics.
I'm lazy... :) You need one resistor ~0.5K between VBAT and K-LINE. TX connects to Teensy TX3 (pin 14). K-LINE goes to OBD-II port pin 7.
kline.png
kline.png (54.95 KiB) Viewed 931 times
Or if you are going to use it in car, better don't cheap out and make the full protection as per chip schematics.

User avatar
Hyppis
Posts: 5
Joined: 08 Apr 2026, 09:37
Year and Model: V70 -02
Location: Finland

Post by Hyppis »

Don't know if this is the right place, but seems like the most fitting thread for this problem and this was one of the threads I read the most.

I was trying to get my CEM PIN for my V70 MK2 for eventually programming power seats as one of the hall sensors gave out, so I tried it with Openmoose and managed to get the pin with Fast Recover Pin, and managed to do it, so I tried Check PIN, which then probably put it into programming mode, and now I'm pretty much stuck.

I've recently had such a flow fixing everything on this car and now I probably bit off more than I can chew, so any help would be appreciated here too!

vtl
Posts: 4927
Joined: 16 Aug 2012, 13:35
Year and Model: 2005 XC70
Location: Boston
Has thanked: 129 times
Been thanked: 686 times

Post by vtl »

Hyppis wrote: 08 Apr 2026, 09:45 Don't know if this is the right place, but seems like the most fitting thread for this problem and this was one of the threads I read the most.

I was trying to get my CEM PIN for my V70 MK2 for eventually programming power seats as one of the hall sensors gave out, so I tried it with Openmoose and managed to get the pin with Fast Recover Pin, and managed to do it, so I tried Check PIN, which then probably put it into programming mode, and now I'm pretty much stuck.

I've recently had such a flow fixing everything on this car and now I probably bit off more than I can chew, so any help would be appreciated here too!
So, what's the question? How to get it unstuck? Disconnect the battery if there's no button to get it unstuck.

User avatar
Hyppis
Posts: 5
Joined: 08 Apr 2026, 09:37
Year and Model: V70 -02
Location: Finland

Post by Hyppis »

Yes, sorry, that's exactly the question!

So do you know what has happened here? Do I just disconnect the battery and wait a while to get it out of programming mode?

vtl
Posts: 4927
Joined: 16 Aug 2012, 13:35
Year and Model: 2005 XC70
Location: Boston
Has thanked: 129 times
Been thanked: 686 times

Post by vtl »

Hyppis wrote: 08 Apr 2026, 10:00 Yes, sorry, that's exactly the question!

So do you know what has happened here? Do I just disconnect the battery and wait a while to get it out of programming mode?
Car "dies" when blocks go into programming mode. Either send an "undie" CAN message or disconnect the battery for a minute.

Dudde
Posts: 76
Joined: 22 Jan 2020, 11:19
Year and Model: 2005 V70 and more
Location: Finland
Has thanked: 16 times
Been thanked: 17 times

Post by Dudde »

Hyppis wrote: 08 Apr 2026, 10:00 Yes, sorry, that's exactly the question!

So do you know what has happened here? Do I just disconnect the battery and wait a while to get it out of programming mode?
Disconnect battery, you have CEM B so there is no "fast" way of changing car config for free through OBD

User avatar
Hyppis
Posts: 5
Joined: 08 Apr 2026, 09:37
Year and Model: V70 -02
Location: Finland

Post by Hyppis »

That worked!

Really interesting how there is absolutely zero information about that anywhere that I found (before now lol) so a big thank you!

It at least seems like I got the CEM PIN anyways, so is there any better way to check that it is the correct one?

Post Reply
  • Similar Topics
    Replies
    Views
    Last post