Pages: [1]
Author Topic: Simos 18 and Raspberry Pi  (Read 845 times)
dcooksey
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


« on: October 13, 2024, 03:59:42 PM »

Has anyone here managed to use a Pi to bench read a Simos 18 ? https://github.com/bri3d/TC1791_CAN_BSL
Pretty sure I've got the software sorted. I can see activity on the CAN bus lines with my osciliscope and have confirmed both CAN hat and ECU are both generating CAN data signals individually. The two PWM lines look good, I can see 5v waveform at 3.2khz.
All I get as a response to any request is "none".
I am suspicious of the reset line. When connected to the PI the current drawn by the ECU drops from 700ma to around 400ma.
Only other thing is I am using a 2515 CAN hat instead of a 2517 because I had one lying around.
Any tips, tricks or suggestions? Otherwise the next step is to check my GPIO lines on the PI are not toasted and then get a 2517 CAN hat.
Logged
fastboatster
Full Member
***

Karma: +3/-0
Offline Offline

Posts: 78


« Reply #1 on: October 14, 2024, 01:19:50 PM »

Only other thing is I am using a 2515 CAN hat instead of a 2517 because I had one lying around.
the instructions explicitly said to use 2517, 2515 won't work.
Logged
dcooksey
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


« Reply #2 on: October 14, 2024, 03:19:42 PM »

Yep, thanks. Got one on order
Logged
fastboatster
Full Member
***

Karma: +3/-0
Offline Offline

Posts: 78


« Reply #3 on: October 16, 2024, 02:00:33 PM »

Yep, thanks. Got one on order
good luck!
Also, make sure that the grounds are connected:
Quote
If your Pi and ECU are powered separately (for example, the Pi via USB and the ECU via a bench PSU), make sure the grounds are linked and not floating as this can cause issues. The easiest way to do this is to connect another GND pin on the ECU connector to a GND on the Pi.
Logged
dcooksey
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


« Reply #4 on: November 10, 2024, 12:56:40 AM »

Update. Finally got it working. After installing the 2518 Can hat on a fresh pi and os I still had a similar problem, no communication on the can bus. Turns out it was a (dtoverlay) configuration problem. I had the clock set to 5MHz. After experimenting a bit 40MHz seemed to work best.
After fixing that and then working through all the python module version issues I have just succesfully completed a bench read !
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Page created in 0.014 seconds with 17 queries. (Pretty URLs adds 0s, 0q)