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
bobbik
Posts: 10
Joined: 13 February 2012
Year and Model: '05 V50 2.4i
Location: Poland
Has thanked: 1 time
Been thanked: 5 times

Re: Vida CEM swapping

Post by bobbik »

i wrote small calculator for P1 platform, which can change equipment options of the car. But you have to read and write one of motorola MCU with some programmer. Contact me if needed

oscilloscope
Posts: 285
Joined: 20 May 2022
Year and Model: 2005
Location: uk
Has thanked: 27 times
Been thanked: 11 times

Post by oscilloscope »

bobbik wrote: 06 Apr 2025, 12:52 i wrote small calculator for P1 platform, which can change equipment options of the car. But you have to read and write one of motorola MCU with some programmer. Contact me if needed
What's the link I have a number of p1 cems , what mcu's does it cover ?

dikidera
Posts: 1304
Joined: 15 August 2022
Year and Model: S60 2005
Location: Galaxy far far away
Has thanked: 67 times
Been thanked: 175 times

Post by dikidera »

I am almost done with the app. It takes several days to sift through the exceptions I get because of how android behaves. No network on main thread, coroutines need to be launched in a specific way, but wait the data from that thread needs to be communicated to the composable function.

Code: Select all

            Button(
                onClick = {
                    coroutineScope.launch(Dispatchers.IO) {
                        val ipAddr = userInput.value

                        // Show toast on main thread
                        launch(Dispatchers.Main) {
                            Toast.makeText(
                                context,
                                "Trying to connect to $ipAddr",
                                Toast.LENGTH_SHORT
                            ).show()
                        }

                        connectToServer(ipAddr)
                        serverIp = ipAddr
                        statusMessage = "Connected to $ipAddr"
                        startAccelerometerStreaming()
                    }
                },
                modifier = Modifier
                    .fillMaxWidth()
                    .padding(8.dp)
            ) {
                Text("Connect")
            }
And toasts cannot be launched from any co routine, they need to be launched in another coroutine if the one you are on is not the main UI thread

But wait, now when you move away from the app, the connections time outs, you now need to tell Android to start this as a service.
The code doesn't really follow any sane software engineering principles so it's all hacked together to just work and do what I want.

User avatar
bobbik
Posts: 10
Joined: 13 February 2012
Year and Model: '05 V50 2.4i
Location: Poland
Has thanked: 1 time
Been thanked: 5 times

Post by bobbik »

oscilloscope wrote: 06 Apr 2025, 13:33
bobbik wrote: 06 Apr 2025, 12:52 i wrote small calculator for P1 platform, which can change equipment options of the car. But you have to read and write one of motorola MCU with some programmer. Contact me if needed
What's the link I have a number of p1 cems , what mcu's does it cover ?
I tried many differend BIN files, e.g. 2011 S40 and 2005 V50 , dont remember MCUs masks, for sure it was not the same in both CEMs, but bin file had same adresses for VIN and config.
Wait a sec, because Google drive flaged it as potential treat, i had to find another way
https://mega.nz/file/5Rk3SYqR
Pm me for key

User avatar
bobbik
Posts: 10
Joined: 13 February 2012
Year and Model: '05 V50 2.4i
Location: Poland
Has thanked: 1 time
Been thanked: 5 times

Post by bobbik »

Readout has to be full 2048kb with Vin located in 0xEBC0B - 0xEBC1C

dikidera
Posts: 1304
Joined: 15 August 2022
Year and Model: S60 2005
Location: Galaxy far far away
Has thanked: 67 times
Been thanked: 175 times

Post by dikidera »

Baseline accelerometer data was recorded. I will substract the initial readings with the car stationary and then find my 2nd->3rd cluster upshifts and try and see where it is most significant, the bump. Since my logger is quite fast I can see almost the entire shift process. Where in the shift process the bump is most noticeable in the data, is the part of the shifting process that is worn/damaged.

Bad engine mounts significantly affect this, but I am tired of replacing them every 2-3k miles. They are not cheap. As the engine produces torque it has an opposing force in the other direction, as the transmission shifts whilst the engine has tilted, I am guessing if this process is too abrupt, the engine's torque output drops suddenly and the engine starts going in the other direction in a violent bump. At least, is my thought process.

Treur
Posts: 126
Joined: 16 November 2024
Year and Model: 2007 V70
Location: Estonia
Has thanked: 3 times
Been thanked: 6 times

Post by Treur »

bobbik wrote: 06 Apr 2025, 12:52 i wrote small calculator for P1 platform, which can change equipment options of the car. But you have to read and write one of motorola MCU with some programmer. Contact me if needed
Tryed with no success. Actualy dump was 256kb, but I convert it to 2mb. 2mb......I think you use someting like X-prog

User avatar
bobbik
Posts: 10
Joined: 13 February 2012
Year and Model: '05 V50 2.4i
Location: Poland
Has thanked: 1 time
Been thanked: 5 times

Post by bobbik »

I'll rewrite the script to find config block automatically, no matter of dump size and organization. Just give me some time , as spring has come and I do not spend much time on the computer

User avatar
bobbik
Posts: 10
Joined: 13 February 2012
Year and Model: '05 V50 2.4i
Location: Poland
Has thanked: 1 time
Been thanked: 5 times

Post by bobbik »

Treur wrote: 16 Apr 2025, 09:04
bobbik wrote: 06 Apr 2025, 12:52 i wrote small calculator for P1 platform, which can change equipment options of the car. But you have to read and write one of motorola MCU with some programmer. Contact me if needed
Tryed with no success. Actualy dump was 256kb, but I convert it to 2mb. 2mb......I think you use someting like X-prog

Actually 08 read with UPA USB or similar.

Treur
Posts: 126
Joined: 16 November 2024
Year and Model: 2007 V70
Location: Estonia
Has thanked: 3 times
Been thanked: 6 times

Post by Treur »

bobbik wrote: 06 Apr 2025, 12:52 Actually 08 read with UPA USB or similar.
Try this one
Attachments
V50.rar
(315.24 KiB) Downloaded 47 times

Post Reply
  • Similar Topics
    Replies
    Views
    Last post