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
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

Re: Vida CEM swapping

Post by RickHaleParker »

T5Luke wrote: 30 Mar 2021, 04:22 On previous page i demonstraded a minimal working setup with just 3 wires to the obd socket that works without key in.
Ran it again with the CAN-LS disabled. No ill effects but it did shave 110 ms off the crack time.
Only two wires to the OBD port. CAN-HS-H & CAN-HS-L.

A wait for user loop at the beginning would make logging a session easier. I cannot start up a Serial terminal fast enough to capture the first part of a session. Every Serial terminal I tried needs the com port active before opening the session and will close if the com port is lost.
Last edited by RickHaleParker on 30 Mar 2021, 09:26, 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.

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

Post by vtl »

RickHaleParker wrote: 30 Mar 2021, 08:41 A wait for user loop at the beginning would make logging a session easier. I cannot start up a Serial terminal fast enough the capture the first part of a session. Every Serial terminal I tried needs the com port active before opening the session and will close if the com port is lost.
I think the project will eventually grew into appliance that has a host-side helper software, and it will be able to crack the pin and read/write the CEM.

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 »

vtl wrote: 30 Mar 2021, 08:43 I think the project will eventually grew into appliance that has a host-side helper software, and it will be able to crack the pin and read/write the CEM.
With the exception of some Automated Test equipment, I have not done any programing since my Fortran 77 classes. Can you recommend a good book to learn Arduino programing that was not written by idiots for idiots? I don't care to waste time trying to wade through that kind of gross inefficiency.
⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙
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.

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

Post by vtl »

RickHaleParker wrote: 30 Mar 2021, 09:35 With the exception of some Automated Test equipment, I have not done any programing since my Fortran 77 classes. Can you recommend a good book to learn Arduino programing that was not written by idiots for idiots? I don't care to waste time trying to wade through that kind of gross inefficiency.
Then you are mostly proficient in Arduino. Arduino is a sugar around C (mostly) and C++ languages. You only need to understand basic C in order to write "sketches". C++ can be avoided by most part. C is easy language, once you got a mental grip on memory model and pointers.

Google "a good C programming language book", maybe there's something more modern than the K&R's classic: https://en.wikipedia.org/wiki/The_C_Pro ... g_Language

I use Arduino, because nowadays it is supported almost anywhere and it is easy to "port" your solution from one hw platform to another, just like we did here with the transition from ESP32 to Teensy (and I also had an interim short lived Arduino DUE fork, which is ARM-based as well).

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 »

vtl wrote: 30 Mar 2021, 10:54
Then you are mostly proficient in Arduino. Arduino is a sugar around C (mostly) and C++ languages. You only need to understand basic C in order to write "sketches". C++ can be avoided by most part. C is easy language, once you got a mental grip on memory model and pointers.
Never learned C.

The way I succeed with the Automatic test machines where everyone else failed was to read the boring "dictionary" section first. It had a list of all the commands, what they did and how to use them. That way when I encountered something like ScanF in a example, I did not wonder what the F and why would you scan it. :wink:

Jumping straight into examples does not work for me. The learning does not flow well because of the disruptions caused by not knowing the commands. This is the way most of the learning guides are formatted today. K&R has the same approach.

In short: I need an education because I cannot be trained.
⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙
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.

mikeak2001
Posts: 29
Joined: 30 March 2021
Year and Model: S70 1998 T5
Location: Wales
Has thanked: 3 times
Been thanked: 28 times

Post by mikeak2001 »

HI Everyone,
So so so happy to come across this forum thread.
I am in the process of building the setup now and also tinkering with the code to add a 2.5" touch screen. Thus hopefully enabling the selection of P1/P2 on the fly in one standalone unit.

However. My question to you all is, what softwares are you planning to use to modify flash/code?

I have a little present for you all if it is helpful, It can be used with Dice for individual module programming as long as you have 3 items.
1) pin code
2) SBL (secondary boot loader)
3) the file you wish to flash.

This is the latest version used from P80 Chassis types all the way to the new SPA/CMA platform.
The software comes with an example for programming your own application along with SDK and information in PDF format.

If posting this is in violation of any terms please let me know.

Image
Image

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

Post by vtl »

mikeak2001 wrote: 30 Mar 2021, 16:45 I have a little present for you all if it is helpful, It can be used with Dice for individual module programming as long as you have 3 items.
1) pin code
2) SBL (secondary boot loader)
3) the file you wish to flash.

This is the latest version used from P80 Chassis types all the way to the new SPA/CMA platform.
The software comes with an example for programming your own application along with SDK and information in PDF format.

If posting this is in violation of any terms please let me know.
Nice! Is it written by you?

aaivar
Posts: 14
Joined: 31 March 2021
Year and Model: v70 2015
Location: Latvia
Has thanked: 1 time

Post by aaivar »

E0F30F9A-9D2B-447D-BFE4-D0C090B2758C.jpg
Hello everyone, I tried to hack it turned out on Volvo CEM H, L xc90 2007,2009,2010, v70 2006. Failed with two cars volvo xc70 2006, v50 2005, cpu motorolla mask 1k79x.
Thanks for the project, many will be a good helper

mikeak2001
Posts: 29
Joined: 30 March 2021
Year and Model: S70 1998 T5
Location: Wales
Has thanked: 3 times
Been thanked: 28 times

Post by mikeak2001 »

vtl wrote: 30 Mar 2021, 21:15
mikeak2001 wrote: 30 Mar 2021, 16:45 I have a little present for you all if it is helpful, It can be used with Dice for individual module programming as long as you have 3 items.
1) pin code
2) SBL (secondary boot loader)
3) the file you wish to flash.

This is the latest version used from P80 Chassis types all the way to the new SPA/CMA platform.
The software comes with an example for programming your own application along with SDK and information in PDF format.

If posting this is in violation of any terms please let me know.
Nice! Is it written by you?
This software is written by Volvo, when volvo technicians (not dealer technicians) need to sort cars on the side of the road (warranty vehicles) they can take the SBL/Firmware with them along with pin codes and programme the vehicle without using Vida.

This is why normal technicians can get hold of the software but not the files. This is because regional techs are supposed to delete all files when finished.

Wish I knew more about coding but I'm a part timer and only code things when needed, this unfortunately means I have to refresh my C knowledge everytime.

If we can make our own SBL's we may be in with a chance using this software.

I also have other software packages that may be helpful such as car config editor. Again though some files are missing but I do have sample files.

Image

Pictures from the car config editor:
Main folder:
Image
Open File image:
Image
Vehicle details image:
Image
Changing car configuration image:
Image

This is all OEM software, used along with Vida by Volvo regional technicians to diagnose/test/repair vehicles with the minimum of fuss.

This thread has helped me a lot so far in regards to pins. So I would like to give something back to contributors only at the moment. The reason for this is I believe we can maybe make our own software. interface with teensy or something alike. To crack pin, read vehicle config. Read all vehicle module firmwares for backup in case of future failure. Also changing configs would not require the use of other software such as Vida/ Vdash. Saving a lot of people a lot of time and money.

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

Post by vtl »

Well, I guess, distributing this software is violating something.

Car config, as in toggling bits, is relatively simple. All the data (what bit means what) can be gathered from VIDA SQL DB.

Read/write flash over CAN is very simple.

T5Luke works on his own version of SBL, and also on some host-side software.

Post Reply
  • Similar Topics
    Replies
    Views
    Last post