Colours?
Vida CEM swapping
-
rkam
- Posts: 102
- Joined: 19 October 2022
- Year and Model: 14473_96090_XC7007
- Location: Norway
- Has thanked: 5 times
- Been thanked: 25 times
Github question?
Red is removed, Green is added.
Example:
Commits on Feb 22, 2022
Remove canMsgReceive, affects the latency data as it disables interru…
Showing 1 changed file with 2 additions and 4 deletions.
4 red lines
2 green lines
red line 392 is removed: } while (TSC < limit && !canMsgReceive(CAN_HS, &id, reply, 0, false));
Red is removed, Green is added.
Example:
Commits on Feb 22, 2022
Remove canMsgReceive, affects the latency data as it disables interru…
Showing 1 changed file with 2 additions and 4 deletions.
4 red lines
2 green lines
red line 392 is removed: } while (TSC < limit && !canMsgReceive(CAN_HS, &id, reply, 0, false));
-
oscilloscope
- Posts: 285
- Joined: 20 May 2022
- Year and Model: 2005
- Location: uk
- Has thanked: 27 times
- Been thanked: 11 times
Yes apologies a git question.rkam wrote: ↑17 Aug 2023, 23:50 Github question?
Red is removed, Green is added.
Example:
Commits on Feb 22, 2022
Remove canMsgReceive, affects the latency data as it disables interru…
Showing 1 changed file with 2 additions and 4 deletions.
4 red lines
2 green lines
red line 392 is removed: } while (TSC < limit && !canMsgReceive(CAN_HS, &id, reply, 0, false));
Are the numbers too the left are they the line numbers ? And what is the blue high lighted sections?
-
pawelstanislaw
- Posts: 2
- Joined: 18 August 2023
- Year and Model: 2008 C30
- Location: Cracow, Poland
- Has thanked: 2 times
Hi everyone,
First, I have to thank you for such a fantastic project. It's cool that you can get a PIN code without disassembling anything and sending CEM, in my case probably abroad.
I have assembled the project with the use of a breadboard for my 2008 C30 (CEM P/N 31254903).
Unfortunately, I think there is no communication between Teensy and CAN bus as the output I see in every case is 00. The car doesn't react in any way to start the program, no relay click or anything.
Tried hardcoding CEM and all the tips from this thread with such a problem - nothing helped.
Could you please help me with that problem?
That's the output; 00 everywhere. Checked others' output, and it had some data.

That is my oversimplified version of the project. WaveShare CAN transceivers (seen others use it with success) and the board. Tried using a 12V-5V step-down, the same outcome.
Ground is OBD signal ground combined with a common ground of the board.
Checked continuity on every directly connected component and everything's ok.


Thanks a lot for any advice.
EDIT: fixed ground connection. Still not working
First, I have to thank you for such a fantastic project. It's cool that you can get a PIN code without disassembling anything and sending CEM, in my case probably abroad.
I have assembled the project with the use of a breadboard for my 2008 C30 (CEM P/N 31254903).
Unfortunately, I think there is no communication between Teensy and CAN bus as the output I see in every case is 00. The car doesn't react in any way to start the program, no relay click or anything.
Tried hardcoding CEM and all the tips from this thread with such a problem - nothing helped.
Could you please help me with that problem?
That's the output; 00 everywhere. Checked others' output, and it had some data.

That is my oversimplified version of the project. WaveShare CAN transceivers (seen others use it with success) and the board. Tried using a 12V-5V step-down, the same outcome.
Ground is OBD signal ground combined with a common ground of the board.
Checked continuity on every directly connected component and everything's ok.


Thanks a lot for any advice.
EDIT: fixed ground connection. Still not working
- unicast
- Posts: 6
- Joined: 18 April 2022
- Year and Model: C70 2007
- Location: Berlin
- Has thanked: 2 times
- Been thanked: 1 time
The first thing I can see is that you have only the first 3 pins connected, but there should be 4 (GND, 0, 1, 2 mapped into 1,2,3,4). I suggest you doublecheck all the connections and try again.pawelstanislaw wrote: ↑18 Aug 2023, 11:44 Hi everyone,
First, I have to thank you for such a fantastic project. It's cool that you can get a PIN code without disassembling anything and sending CEM, in my case probably abroad.
I have assembled the project with the use of a breadboard for my 2008 C30 (CEM P/N 31254903).
Unfortunately, I think there is no communication between Teensy and CAN bus as the output I see in every case is 00. The car doesn't react in any way to start the program, no relay click or anything.
Tried hardcoding CEM and all the tips from this thread with such a problem - nothing helped.
Could you please help me with that problem?
That's the output; 00 everywhere. Checked others' output, and it had some data.
That is my oversimplified version of the project. WaveShare CAN transceivers (seen others use it with success) and the board. Tried using a 12V-5V step-down, the same outcome.
Ground is OBD signal ground combined with a common ground of the board.
Checked continuity on every directly connected component and everything's ok.
Thanks a lot for any advice.
-
vtl
- Posts: 4727
- Joined: 16 August 2012
- Year and Model: 2005 XC70
- Location: Boston
- Has thanked: 114 times
- Been thanked: 606 times
Assuming you assembled and connected it right, try to comment CEM_PN_AUTODETECT. Also you CEM may use shuffle order 3. The code has 0.pawelstanislaw wrote: ↑18 Aug 2023, 11:44 Hi everyone,
First, I have to thank you for such a fantastic project. It's cool that you can get a PIN code without disassembling anything and sending CEM, in my case probably abroad.
I have assembled the project with the use of a breadboard for my 2008 C30 (CEM P/N 31254903).
Unfortunately, I think there is no communication between Teensy and CAN bus as the output I see in every case is 00. The car doesn't react in any way to start the program, no relay click or anything.
Tried hardcoding CEM and all the tips from this thread with such a problem - nothing helped.
Could you please help me with that problem?
That's the output; 00 everywhere. Checked others' output, and it had some data.
That is my oversimplified version of the project. WaveShare CAN transceivers (seen others use it with success) and the board. Tried using a 12V-5V step-down, the same outcome.
Ground is OBD signal ground combined with a common ground of the board.
Checked continuity on every directly connected component and everything's ok.
Thanks a lot for any advice.
EDIT: fixed ground connection. Still not working![]()
-
oscilloscope
- Posts: 285
- Joined: 20 May 2022
- Year and Model: 2005
- Location: uk
- Has thanked: 27 times
- Been thanked: 11 times
-
vtl
- Posts: 4727
- Joined: 16 August 2012
- Year and Model: 2005 XC70
- Location: Boston
- Has thanked: 114 times
- Been thanked: 606 times
`diff` utility takes two versions of one file and produces a patch, in that "unified diff" format. `patch` utility is the able to apply that patch to the old version of the file. All of this is embedded into another utility `git`, which nowadays is a dominant version control utility. Working with patches is a day to day duty of a modern software developer.oscilloscope wrote: ↑18 Aug 2023, 15:39Ahh so one would look for the section which relates too the @@ position (in blue on git) and then edit the relevant code. Like a position pointer ?
-
oscilloscope
- Posts: 285
- Joined: 20 May 2022
- Year and Model: 2005
- Location: uk
- Has thanked: 27 times
- Been thanked: 11 times
Ah ok cool , I'll give it ago - it looks like WinMerge is compatible with git. So I can only assume it'll work.vtl wrote: ↑18 Aug 2023, 15:54`diff` utility takes two versions of one file and produces a patch, in that "unified diff" format. `patch` utility is the able to apply that patch to the old version of the file. All of this is embedded into another utility `git`, which nowadays is a dominant version control utility. Working with patches is a day to day duty of a modern software developer.oscilloscope wrote: ↑18 Aug 2023, 15:39Ahh so one would look for the section which relates too the @@ position (in blue on git) and then edit the relevant code. Like a position pointer ?
-
- Similar Topics
- Replies
- Views
- Last post
-
- 1 Replies
- 6431 Views
-
Last post by RickHaleParker
-
- 5 Replies
- 8699 Views
-
Last post by forumoto






