I did one of the things you just suggested. I twisted the CANH CANL wires together, this actually made the same SBL produce more duplicates.
I have a 2 channel scope I can use to take a look at the signals but no logic analyzer. And a 12v battery I could use to power the ECU and remove PSU noise temporarily.
Vida CEM swapping
-
vtl
- Posts: 4934
- Joined: 16 Aug 2012, 13:35
- Year and Model: 2005 XC70
- Location: Boston
- Has thanked: 129 times
- Been thanked: 686 times
Where do you get 3.3v from? How's the transceiver powered?dikidera wrote: 20 Jan 2023, 07:25 I have a 2 channel scope I can use to take a look at the signals but no logic analyzer. And a 12v battery I could use to power the ECU and remove PSU noise temporarily.
-
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
3.3v and 5v all come from the RPI's pins. The transceiver tja1050 works at 5v levels and as such I had to cut the power trace as it shared them with the controller which supports both 3.3v and 5v. As such I had to solder a wire to the power pin of the tja1050 for a separate 5v source which is the 5v RPI pin I just mentioned.
https://forums.raspberrypi.com/viewtopic.php?t=141052
-
vtl
- Posts: 4934
- Joined: 16 Aug 2012, 13:35
- Year and Model: 2005 XC70
- Location: Boston
- Has thanked: 129 times
- Been thanked: 686 times
That would be my first suspect - the onboard voltage regulator. Often they are not great.dikidera wrote: 20 Jan 2023, 07:32 3.3v and 5v all come from the RPI's pins. The transceiver tja1050 works at 5v levels and as such I had to cut the power trace as it shared them with the controller which supports both 3.3v and 5v. As such I had to solder a wire to the power pin of the tja1050 for a separate 5v source which is the 5v RPI pin I just mentioned.
-
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
Spot on. I just checked with a multimeter, the 5v line does indeed drop to as low as 4.5v during the tranmissions. Luckily I have a little toy for just this occasion.
-
rkam
- Posts: 102
- Joined: 19 Oct 2022, 12:54
- Year and Model: 14473_96090_XC7007
- Location: Norway
- Has thanked: 5 times
- Been thanked: 25 times
The signal looks pretty clean.
Frame takes about 550microseconds, and pause in between the same. Edit:
The signal did not look well at first while the Denso was streaming normally today.
After wriggling the cable that looked bad, the signal was good.
And the log file made while checking the signal shown above contains the full 32768 lines.
So it is quite possible that the signal was poor yesterday when I was missing frames, and is now working.
Frame takes about 550microseconds, and pause in between the same. Edit:
The signal did not look well at first while the Denso was streaming normally today.
After wriggling the cable that looked bad, the signal was good.
And the log file made while checking the signal shown above contains the full 32768 lines.
So it is quite possible that the signal was poor yesterday when I was missing frames, and is now working.
-
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
Thank you rkam, so it looks like we both have had signal interference, what luck! So this means my code(SBL) works just fine.
This is great as it means we can conduct work faster, dumping memory in seconds is much better than waiting 30 full minutes.
Here is an updated version of the code with a reduced sleep of just 10 microseconds.
Ideally I would've attached the .c and .bin files, but they are forbidden attachments types, so I have zipped them.
This is great as it means we can conduct work faster, dumping memory in seconds is much better than waiting 30 full minutes.
Here is an updated version of the code with a reduced sleep of just 10 microseconds.
Ideally I would've attached the .c and .bin files, but they are forbidden attachments types, so I have zipped them.
- Attachments
-
- sbl2.7z
- (1.84 KiB) Downloaded 176 times
-
vtl
- Posts: 4934
- Joined: 16 Aug 2012, 13:35
- Year and Model: 2005 XC70
- Location: Boston
- Has thanked: 129 times
- Been thanked: 686 times
Thanks.dikidera wrote: 20 Jan 2023, 10:15 Thank you rkam, so it looks like we both have had signal interference, what luck! So this means my code(SBL) works just fine.
This is great as it means we can conduct work faster, dumping memory in seconds is much better than waiting 30 full minutes.
Here is an updated version of the code with a reduced sleep of just 10 microseconds.
Ideally I would've attached the .c and .bin files, but they are forbidden attachments types, so I have zipped them.
Create a github repo?
-
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
I have found that..Github repos are not indexed by google very well and all that information is "lost" there. I had to manually search Github to find a lot of interesting Volvo and CAN related repositories that google didnt yield.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 1 Replies
- 8980 Views
-
Last post by RickHaleParker
-
- 6 Replies
- 8798 Views
-
Last post by abscate
-
- 27 Replies
- 27619 Views
-
Last post by cn90
-
- 10 Replies
- 10206 Views
-
Last post by jonesg
-
- 7 Replies
- 5420 Views
-
Last post by RickHaleParker






