Vida CEM swapping
- bobbik
- Posts: 10
- Joined: 13 Feb 2012, 11:54
- Year and Model: '05 V50 2.4i
- Location: Poland
- Has thanked: 1 time
- Been thanked: 5 times
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, 16:12
- Year and Model: 2005
- Location: uk
- Has thanked: 27 times
- Been thanked: 11 times
What's the link I have a number of p1 cems , what mcu's does it cover ?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
-
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
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.
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.
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")
}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.
- bobbik
- Posts: 10
- Joined: 13 Feb 2012, 11:54
- Year and Model: '05 V50 2.4i
- Location: Poland
- Has thanked: 1 time
- Been thanked: 5 times
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.oscilloscope wrote: 06 Apr 2025, 13:33What's the link I have a number of p1 cems , what mcu's does it cover ?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
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
-
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
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.
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: 129
- Joined: 16 Nov 2024, 09:19
- Year and Model: 2007 V70
- Location: Estonia
- Has thanked: 3 times
- Been thanked: 7 times
Tryed with no success. Actualy dump was 256kb, but I convert it to 2mb. 2mb......I think you use someting like X-progbobbik 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
- bobbik
- Posts: 10
- Joined: 13 Feb 2012, 11:54
- Year and Model: '05 V50 2.4i
- Location: Poland
- Has thanked: 1 time
- Been thanked: 5 times
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
- bobbik
- Posts: 10
- Joined: 13 Feb 2012, 11:54
- Year and Model: '05 V50 2.4i
- Location: Poland
- Has thanked: 1 time
- Been thanked: 5 times
Treur wrote: 16 Apr 2025, 09:04Tryed with no success. Actualy dump was 256kb, but I convert it to 2mb. 2mb......I think you use someting like X-progbobbik 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
Actually 08 read with UPA USB or similar.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 1 Replies
- 8905 Views
-
Last post by RickHaleParker
-
- 6 Replies
- 8708 Views
-
Last post by abscate
-
- 27 Replies
- 27472 Views
-
Last post by cn90
-
- 10 Replies
- 10106 Views
-
Last post by jonesg
-
- 7 Replies
- 5349 Views
-
Last post by RickHaleParker






