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 »

dikidera wrote: 28 Apr 2023, 04:12 Perhaps the bit timing code is wrong in your Arduino code? There are quite a lot of configuration options for the CAN bus. Bit sampling, synchronization etc.
It works on his car. Also MCP2515 Arduino library is that simple. CAN.begin() == CAN_OK and you're OK.

stevedi
Posts: 8
Joined: 10 Jan 2023, 06:56
Year and Model: 2006 V70R
Location: Montreal
Been thanked: 3 times

Post by stevedi »

dikidera wrote: 28 Apr 2023, 04:12 I used this CAN hat for RPI https://www.waveshare.com/2-ch-can-hat.htm and it's better in almost every single way, in that it's wired internally to the correct pins, so it's plug n play and has no messy wires.
This is exactly the hat I use for all of my projects, it works really well but I couldn't for the life of me get it to crack the CEM pin by connecting it to the teensy via SPI (using old code meant for a shield). I ended up soldering wires from the teensy directly to the transeivers on the hat, and it worked perfectly first try using the new code.

Image

jamezcab
Posts: 16
Joined: 17 Apr 2023, 12:34
Year and Model: 2004 xc90
Location: uk
Has thanked: 1 time

Post by jamezcab »

jamezcab wrote: 20 Apr 2023, 11:38
vtl wrote: 20 Apr 2023, 10:33
jamezcab wrote: 20 Apr 2023, 10:22 πŸ˜‚ my apologies this is a lab rat i ordered. obviously incorrect
Be a man and make it a CEM!
i know what your saying my friend πŸ˜‚ but an xc90 is a large ornament if i brick cem πŸ˜…


so here i have data read with arduino. at first i tried read all and opened in cem software but i think data is not complete lots of β€œff” and some small data

so then i tried read security and have more data but dont know where to obtain pin?

why i cannot get complete read i dont know but i did remake connections a few times πŸ€·β€β™‚οΈ
Attachments
volvo james .bin.txt
(41.27 KiB) Downloaded 82 times

dikidera
Posts: 1347
Joined: 15 Aug 2022, 09:59
Year and Model: S60 2005
Location: Galaxy far far away
Has thanked: 68 times
Been thanked: 187 times

Post by dikidera »

Memory which is not programmed is occupied by 0xFF bytes. This is normal. It's only when you do 2-3 reads and all of them have differences is when you should be concerned.

jamezcab
Posts: 16
Joined: 17 Apr 2023, 12:34
Year and Model: 2004 xc90
Location: uk
Has thanked: 1 time

Post by jamezcab »

dikidera wrote: 28 Apr 2023, 14:52 Memory which is not programmed is occupied by 0xFF bytes. This is normal. It's only when you do 2-3 reads and all of them have differences is when you should be concerned.
please take a look at attached πŸ‘†πŸ‘†πŸ‘†

T5Luke
Posts: 142
Joined: 11 Nov 2020, 17:00
Year and Model: S60 T5 2001
Location: DE
Has thanked: 11 times
Been thanked: 130 times

Post by T5Luke »

Think you have some connection error, data doesn't look right to me

if you read from 0x0000 you should get something like this:

Code: Select all

00000000  00 FF D2 00 00 00 08 00 00 00 04 24 00 00 04 24  .ΓΏΓ’........$...$
00000010  00 00 04 24 00 00 04 24 00 00 04 24 00 00 04 24  ...$...$...$...$
00000020  00 00 04 24 00 00 04 24 00 00 04 24 00 00 04 24  ...$...$...$...$
00000030  00 00 04 24 00 00 04 24 00 00 04 24 00 00 04 24  ...$...$...$...$
00000040  00 00 04 24 00 00 04 24 00 00 04 24 00 00 04 24  ...$...$...$...$
00000050  00 00 04 24 00 00 04 24 00 00 04 24 00 00 04 24  ...$...$...$...$
00000060  00 00 04 24 00 00 04 24 00 00 04 24 00 00 04 24  ...$...$...$...$
00000070  00 00 04 24 00 00 04 24 00 00 04 24 00 00 04 24  ...$...$...$...$
00000080  00 00 04 24 00 00 04 24 00 00 04 24 00 00 04 24  ...$...$...$...$
00000090  00 00 04 24 00 00 04 24 00 00 04 24 00 00 04 24  ...$...$...$...$
Last edited by T5Luke on 28 Apr 2023, 15:36, edited 1 time in total.

jamezcab
Posts: 16
Joined: 17 Apr 2023, 12:34
Year and Model: 2004 xc90
Location: uk
Has thanked: 1 time

Post by jamezcab »

T5Luke wrote: 28 Apr 2023, 15:31 Think you have some connection error, data doesn't look right to me

thank you πŸ™ i will try again tomorrow

jamezcab
Posts: 16
Joined: 17 Apr 2023, 12:34
Year and Model: 2004 xc90
Location: uk
Has thanked: 1 time

Post by jamezcab »

T5Luke wrote: 28 Apr 2023, 15:31 Think you have some connection error, data doesn't look right to me

if you read from 0x0000 you should get something like this:

Code: Select all

00000000  00 FF D2 00 00 00 08 00 00 00 04 24 00 00 04 24  .ΓΏΓ’........$...$
00000010  00 00 04 24 00 00 04 24 00 00 04 24 00 00 04 24  ...$...$...$...$
00000020  00 00 04 24 00 00 04 24 00 00 04 24 00 00 04 24  ...$...$...$...$
00000030  00 00 04 24 00 00 04 24 00 00 04 24 00 00 04 24  ...$...$...$...$
00000040  00 00 04 24 00 00 04 24 00 00 04 24 00 00 04 24  ...$...$...$...$
00000050  00 00 04 24 00 00 04 24 00 00 04 24 00 00 04 24  ...$...$...$...$
00000060  00 00 04 24 00 00 04 24 00 00 04 24 00 00 04 24  ...$...$...$...$
00000070  00 00 04 24 00 00 04 24 00 00 04 24 00 00 04 24  ...$...$...$...$
00000080  00 00 04 24 00 00 04 24 00 00 04 24 00 00 04 24  ...$...$...$...$
00000090  00 00 04 24 00 00 04 24 00 00 04 24 00 00 04 24  ...$...$...$...$


thank you it appears that you must use power supply for arduino when using the 5 volt output to supply the cem
Attachments
IMG_2889.jpeg

T5Luke
Posts: 142
Joined: 11 Nov 2020, 17:00
Year and Model: S60 T5 2001
Location: DE
Has thanked: 11 times
Been thanked: 130 times

Post by T5Luke »

This looks perfect...
I power the cem by 12V to its connector...

jamezcab
Posts: 16
Joined: 17 Apr 2023, 12:34
Year and Model: 2004 xc90
Location: uk
Has thanked: 1 time

Post by jamezcab »

is this file good? still cant make work with cemtool but i cannot make into .bin
Attachments
volvo labrat cem.txt
(1.28 MiB) Downloaded 88 times

Post Reply
  • Similar Topics
    Replies
    Views
    Last post