Login Register

Vida CEM swapping

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

Post by vtl »

dikidera wrote: 04 Jul 2026, 09:44
vtl wrote: 04 Jul 2026, 09:17
dikidera wrote: 04 Jul 2026, 08:52 Any internet is fine. The databases are stored on google's servers as PAD, Payload assisted delivery. As such it will download a few files. The diagrams are optional and are around 6.7GBs in size. Any one on a metered plan must pay attention so they are not billed excessively.
I was thinking more about having a VIDA-like diag in good places. And good places have no cellular network.
As soon as the db is downloaded, its all offline. Always on the device regardless of whether you have internet or not. Its just the initial download.
As of now diagnostics dont work, they could nothing prevents us, except...we need a device that can read HiSpeed and LoSpeed can, over wifi or bluetooth that is documented(protocol and stuff), cheap and supports pin switching.
Such devices are CFE(not cheap) and custom devices we use e.g RPI and Teensy(with the appropriate modules).
And K-Line for P2's first couple of years.

dikidera
Posts: 1346
Joined: 15 Aug 2022, 09:59
Year and Model: S60 2005
Location: Galaxy far far away
Has thanked: 68 times
Been thanked: 187 times

Post by dikidera »

I am very very unfamiliar of K-line.

LAV70R
Posts: 8
Joined: 30 Jul 2025, 08:26
Year and Model: 2007 V70R
Location: Michigan
Has thanked: 1 time
Been thanked: 2 times

Post by LAV70R »

I made a few extra boards and picked up a few additional transceivers if anyone wants to build their own cem tool: https://ebay.io/m/IAtnnn

dikidera
Posts: 1346
Joined: 15 Aug 2022, 09:59
Year and Model: S60 2005
Location: Galaxy far far away
Has thanked: 68 times
Been thanked: 187 times

Post by dikidera »

I always wondered for my B5244SG engine, why there was a stray P1176 OBD code that did not match one from the VIDA DTC codes.

Turns out P1176 on Bifuel models is actually related to the Stepper Motor for the CNG/LPG installation.

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 »

vtl wrote: 04 Jul 2026, 09:17
dikidera wrote: 04 Jul 2026, 08:52 Any internet is fine. The databases are stored on google's servers as PAD, Payload assisted delivery. As such it will download a few files. The diagrams are optional and are around 6.7GBs in size. Any one on a metered plan must pay attention so they are not billed excessively.
I was thinking more about having a VIDA-like diag in good places. And good places have no cellular network.
I finally managed to connect Mongoose to my Android smartphone. I had to completely abandon the driver and control the device via serial, sending binary command packets directly (a pseudo-driver). All of this works without an internet connection. I'd also like to extract various diagnostic commands, but that would take a lot of time.
Attachments
Screenshot_20260709_084053.jpg
Screenshot_20260709_202146.jpg

mikeak2001
Posts: 38
Joined: 30 Mar 2021, 15:45
Year and Model: S70 1998 T5
Location: Wales
Has thanked: 4 times
Been thanked: 37 times

Post by mikeak2001 »

Hi all,
So my latest system works like a charm.
I've been working on a new sketch which cut's down the time to crack P3 pins.
so far it's working well. a p3 cem taking 4 hours to crack before is now taking less than 30 mins.

if anyone fancies supplying some known good seed/pin/key combo's I can further prove the code before i waste anyone's time releasing it.


Image

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

Post by vtl »

mikeak2001 wrote: 12 Jul 2026, 17:35 Hi all,
So my latest system works like a charm.
I've been working on a new sketch which cut's down the time to crack P3 pins.
so far it's working well. a p3 cem taking 4 hours to crack before is now taking less than 30 mins.

if anyone fancies supplying some known good seed/pin/key combo's I can further prove the code before i waste anyone's time releasing it.


Image
https://github.com/vtl/volvo-cem-cracke ... seed-gen.c

Fairly easy to modify to swipe over 3 bytes in HEX, not BCD.

mikeak2001
Posts: 38
Joined: 30 Mar 2021, 15:45
Year and Model: S70 1998 T5
Location: Wales
Has thanked: 4 times
Been thanked: 37 times

Post by mikeak2001 »

vtl wrote: 12 Jul 2026, 18:44

Fairly easy to modify to swipe over 3 bytes in HEX, not BCD.
Yes it is, but i'm not cycling through all 5 bytes for the collision.
If we set pin[0] and pin[1] in that script we still have 255^3 combinations to check.

My setup reads a seed. With an unknown key, i set pin[0] and pin[1]

I've thrown together an algorithm that doesn't check all 255^3 for pin[2-4]
fully checking al 3 bytes makes 16,581,375 combinations taking roughly 10.5 hours at 440 pins/s.

I eliminate bytes that definitely wouldn't cause a collision leaving roughly 150^3.
totalling 3,375,000 possible collisions cutting the max time down to roughly 3 hours for a full sweep.

Checking 0-99 still gives 100^5 combinations resulting in 10,000,000,000 combinations. If my maths is right.

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

Post by vtl »

mikeak2001 wrote: 13 Jul 2026, 03:22 I eliminate bytes that definitely wouldn't cause a collision leaving roughly 150^3.
totalling 3,375,000 possible collisions cutting the max time down to roughly 3 hours for a full sweep.
Have you (or AI) found a defect in hash distribution? Otherwise I don't see how can you reliably filter out 40% of distribution space. In HEX encoding there's just one collision per 0xFF^3.

kaptensea
Posts: 6
Joined: 13 Jul 2026, 13:58
Year and Model: 2004 V70
Location: Tibro

Post by kaptensea »

Someone got a diagram for reading/writing to CEM-L with a raspberry and the cem L sbl flasher?

Post Reply
  • Similar Topics
    Replies
    Views
    Last post