Login Register

Vida CEM swapping

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

Post by vtl »

gnalan wrote: 26 Apr 2022, 18:16 Also '++i' doesn't need to make a copy of 'i' first like 'i++' does.
Integer variable is not an object, C does not do copies.
gnalan wrote: 26 Apr 2022, 18:16

Code: Select all

Mine...
    if ((n & 1) ^ ((k >> i) & 1))
That 'i' should be 1.

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

Post by vtl »

alevol wrote: 27 Apr 2022, 06:40 How do you get ~860 pin/sec? I am getting stable 440 pins/sec using VTL's the most recent build.
There are "fast" and "slow" CEMs. You have a "slow" one.
alevol wrote: 27 Apr 2022, 06:40 I could also not compile VTL's seed-gen.c utility. I was trying to compile with devc++ and with VScode as well. It could not find dependencies.
55b94239eeefc.jpeg
55b94239eeefc.jpeg (63.86 KiB) Viewed 680 times

alevol
Posts: 31
Joined: 04 Aug 2021, 03:38
Year and Model: 2005 S60
Location: Finland
Has thanked: 6 times
Been thanked: 3 times

Post by alevol »

Thanks vtl!
vtl wrote: 27 Apr 2022, 07:08 55b94239eeefc.jpeg
haha, i thought the same. I could run the Virtual Machine. Sounds like a plan.

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

Post by vtl »

alevol wrote: 27 Apr 2022, 07:21 haha, i thought the same. I could run the Virtual Machine. Sounds like a plan.
I've heard that in recent windows versions they've added Linux shell or something, based on Ubuntu. You may want to try compiling it there.

alevol
Posts: 31
Joined: 04 Aug 2021, 03:38
Year and Model: 2005 S60
Location: Finland
Has thanked: 6 times
Been thanked: 3 times

Post by alevol »

I am kinda conservative Windows user running multiple Win7 laptops. I have Ubuntu experience also,
Thanks, vtl !

User avatar
gnalan
Posts: 968
Joined: 21 Jul 2020, 13:39
Year and Model: 2001 S60
Location: Ohio
Has thanked: 557 times
Been thanked: 135 times

Post by gnalan »

vtl wrote: 27 Apr 2022, 06:56
gnalan wrote: 26 Apr 2022, 18:16

Code: Select all

Mine...
    if ((n & 1) ^ ((k >> i) & 1))
That 'i' should be 1.
Why 1? For the 64 bit seed/pin combo I want the bit to match the for loop, so that's why it's set as i and not 1. I'm not checking the same bit each time through the loop.
2001 S60, B5244S, AW55-50SN, FWD (Sold)
Cancer/Illness/Caregiver Support Thread

User avatar
RickHaleParker  
Posts: 7206
Joined: 25 May 2015, 14:30
Year and Model: See Signature below.
Location: Kansas
Has thanked: 8 times
Been thanked: 980 times

Post by RickHaleParker »

vtl wrote: 27 Apr 2022, 07:24 I've heard that in recent windows versions they've added Linux shell or something, based on Ubuntu.
Windows Subsystem for Linux.
Active
1998 C70, B5234T3, 16T, AW50-42, Bosch Motronic 4.4, Special Edition package.
2017 Ford PIU. 3.5l, Twin Turbo, 365 Hp.
............................
Past
2003 S40, B4204T3, 14T twin scroll AW55-50/51SN, Siemens EMS 2000. ( Killed by a plastic radiator. )
2004 S60R, B8444S TF80 AWD. Yamaha V8 conversion ( I moved, the project did not )
2005 XC90 T6 Executive, B6294T, 4T65 AWD, Bosch Motronic 7.0. ( Transmission dead after sitting for a winter )

alevol
Posts: 31
Joined: 04 Aug 2021, 03:38
Year and Model: 2005 S60
Location: Finland
Has thanked: 6 times
Been thanked: 3 times

Post by alevol »

vtl wrote: 27 Apr 2022, 07:24 I've heard that in recent windows versions they've added Linux shell or something, based on Ubuntu. You may want to try compiling it there.
I've created a virtual machine, installed Ubuntu there. After installing gcc, the code compiled like a charm. Now i need to understand how to use it :)

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

Post by vtl »

alevol wrote: 27 Apr 2022, 13:43 I've created a virtual machine, installed Ubuntu there. After installing gcc, the code compiled like a charm. Now i need to understand how to use it :)

Code: Select all

 * $ gcc -Ofast -o seed-gen seed-gen.c
 * $ ./seed-gen --seed "8f ca 96" --key "19 30 48" --pps 866
pps is pins per second for your CEM.

User avatar
charlie13
Posts: 46
Joined: 23 Mar 2022, 10:58
Year and Model: 2009 XC70
Location: Krakow
Has thanked: 8 times
Been thanked: 18 times

Post by charlie13 »

SEED 9d e6 5e, PIN 00 00 ff f9 b4, KEY e2 d5 5d, 440 pins/s
SEED 2d c5 cd, PIN 00 00 ff fb 6c, KEY 03 38 68, 440 pins/s
SEED 3c 17 0e, PIN 00 00 ff fd 24, KEY 7f 45 3e, 440 pins/s
SEED b3 26 b0, PIN 00 00 ff fe dc, KEY c9 d9 42, 440 pins/s
hash collision found
SEED b6 cb 58, PIN 00 00 ff ff ff, KEY 68 4d 50, 292 pins/s
Resetting all ECUs.
CAN_HS ---> ID=000ffffe data=ff c8 00 00 00 00 00 00
CAN_LS ---> ID=000ffffe data=ff c8 00 00 00 00 00 00

Post Reply
  • Similar Topics
    Replies
    Views
    Last post