Vida CEM swapping
- 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
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
-
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
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 February 2012
- 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 ?
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: 1304
- Joined: 15 August 2022
- Year and Model: S60 2005
- Location: Galaxy far far away
- Has thanked: 67 times
- Been thanked: 175 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.
- bobbik
- Posts: 10
- Joined: 13 February 2012
- 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
-
- Similar Topics
- Replies
- Views
- Last post
-
- 1 Replies
- 6396 Views
-
Last post by RickHaleParker
-
- 5 Replies
- 8644 Views
-
Last post by forumoto






