Search found 213 matches

by davefiddes
Mon Apr 24, 2023 5:43 pm
Forum: User Interface
Topic: Tool to manage openinverter via CAN
Replies: 108
Views: 20352

Re: Tool to manage openinverter via CAN

Just released v0.0.7. This adds: Enumeration and bitfield parameters are now displayed with the symbolic name rather than a number. Logging to a file will now flush the output after each line allowing you to "tail -f" the output to see what's being logged. A bug in the stm32-sine v5.24.R p...
by davefiddes
Tue Apr 18, 2023 12:48 pm
Forum: Charging
Topic: Open source CCS using AR7420
Replies: 416
Views: 288948

Re: Open source CCS using AR7420

Using this, I had a look to some of the efacec files, only see "middle of the charging loop", currentDemand, with mostly around 392V and 50A, stable SOC of 24 percent. Looks like a dummy-load-charging to me :-) A lot of the captures are mid-session. I think it was tricky for Damien to jug...
by davefiddes
Mon Apr 17, 2023 11:37 am
Forum: Charging
Topic: Open source CCS using AR7420
Replies: 416
Views: 288948

Re: Open source CCS using AR7420

Apologies in advance if this is old news but I've not seen it mentioned. During Damien's BMW i3 project we managed to get a whole bunch of PCAP captures from successful and failed charger sessions (https://github.com/damienmaguire/BMW-i3-CCS/tree/main/SPI_Caps) which might be useful. Struck me when ...
by davefiddes
Tue Mar 28, 2023 5:24 pm
Forum: Tesla
Topic: Tesla Model 3 Rear Drive Unit Hacking
Replies: 640
Views: 140774

Re: Tesla Model 3 Rear Drive Unit Hacking

Ah. I misunderstood. The oil seal housing != oil pump. :) The oil pump defaults to limp home mode if not plugged in to the Tesla SW. It's controlled over LIN using an as yet undocumented protocol. There are some captures to decode if anyone wants a simple(ish) project. It's down Damien's and my prio...
by davefiddes
Tue Mar 28, 2023 9:46 am
Forum: Tesla
Topic: Tesla Model 3 Rear Drive Unit Hacking
Replies: 640
Views: 140774

Re: Tesla Model 3 Rear Drive Unit Hacking

Intriguing way to solve the problem. I like it.

It would be interesting to hear more about the oil pump modifications required. Many have made arm-wavy assertions about how reverse on the M3 DUs are just limited by firmware because the oil pump is electric. Reality sounds more complicated.
by davefiddes
Sat Mar 18, 2023 11:30 am
Forum: Tesla
Topic: Tesla Model 3 Rear Drive Unit Hacking
Replies: 640
Views: 140774

Re: Tesla Model 3 Rear Drive Unit Hacking

That's correct. If you erase the Tesla software the device isn't going to do anything until you/we program it to do something else. So far I have discovered nothing to prevent the reuse of the TMS320F28377D on the Tesla M3 inverter boards. There are a bunch of One Time Programmable(OTP) bits that if...
by davefiddes
Sun Mar 12, 2023 3:50 pm
Forum: Inverters / Motor Controllers
Topic: Installing stm32-sine using SWD [SOLVED]
Replies: 4
Views: 859

Re: Installing stm32-sine using SWD [SOLVED]

I use the cortex-debug extension in VS Code which is a fancy wrapper around arm-none-eabi-gdb and openocd. You can achieve the same result with raw gdb if you are into that sort of thing with .gdbinit scripts. A nice GUI debugger is quite handy. I found that hacking the bootloder to disable the watc...
by davefiddes
Thu Mar 09, 2023 4:19 pm
Forum: Tesla
Topic: Tesla Model 3 Rear Drive Unit Hacking
Replies: 640
Views: 140774

Re: Tesla Model 3 Rear Drive Unit Hacking

No worries. The info is somewhat spread out all over the place. Useful source for that Sumitomo connector.
by davefiddes
Thu Mar 09, 2023 3:59 pm
Forum: Tesla
Topic: Tesla Model 3 Rear Drive Unit Hacking
Replies: 640
Views: 140774

Re: Tesla Model 3 Rear Drive Unit Hacking

Connector details are on the wiki: https://openinverter.org/wiki/Tesla_Mod ... Drive_Unit

Wiring details can be found in Damien's repo: https://github.com/damienmaguire/Tesla- ... Pinout.ods
by davefiddes
Sun Feb 26, 2023 10:37 am
Forum: Tesla
Topic: Tesla Model 3 Rear Drive Unit Hacking
Replies: 640
Views: 140774

Re: Tesla Model 3 Rear Drive Unit Hacking

How exactly is the drive unit getting bricked ? Does the micro controller lock itself ? Is it frying gate drives ? Is there a security chip on the board ? It is trivial with TI Code Composer Studio and a suitable JTAG adapter to erase all the flash sectors in the TMS320F28377D containing Tesla soft...
by davefiddes
Fri Feb 24, 2023 5:00 pm
Forum: User Interface
Topic: Tool to manage openinverter via CAN
Replies: 108
Views: 20352

Re: Tool to manage openinverter via CAN

Made another release. This one adds: Configurable timeouts. Slow clients or busy CAN busses would sometimes report timeouts. This is now configurable and defaults to 1 second rather than 300ms. Simple network scanning. It's now possible to interrogate the network (first 20 node IDs) to find out what...
by davefiddes
Fri Feb 17, 2023 12:13 pm
Forum: User Interface
Topic: Tool to manage openinverter via CAN
Replies: 108
Views: 20352

Re: Tool to manage openinverter via CAN

Not python2. Turns out I'm an idiot and wasn't specifying the module correctly in my setup.py. Pushed a change that fixes this. Probably the least valuable thing I could have done this morning but at least nobody will see this problem again.
by davefiddes
Fri Feb 17, 2023 11:11 am
Forum: User Interface
Topic: Tool to manage openinverter via CAN
Replies: 108
Views: 20352

Re: Tool to manage openinverter via CAN

Hmm :( Traceback (most recent call last): File "/home/debian/.local/bin/oic", line 33, in <module> sys.exit(load_entry_point('openinverter-can-tool', 'console_scripts', 'oic')()) File "/home/debian/.local/bin/oic", line 25, in importlib_load_entry_point return next(matches).load...
by davefiddes
Thu Feb 16, 2023 6:15 pm
Forum: Inverters / Motor Controllers
Topic: CAN Bootloader
Replies: 44
Views: 8978

Re: CAN Bootloader

I don't know what's going on. Loading the regular bootloader back on and replacing with the CAN causes everything to behave itself. I'm now able to upgrade bootloaders and firmware via CAN or serial every time. Still no working SWD/ST-Link. Will get another Bluepill as the only other STM32 board I'v...
by davefiddes
Thu Feb 16, 2023 3:51 pm
Forum: Inverters / Motor Controllers
Topic: CAN Bootloader
Replies: 44
Views: 8978

Re: CAN Bootloader

I've found that erasing and flashing the bootloader via the USART boot ROM on the STM32 seems to improve things. I now get two CAN frames emitted to 0x7de as expected. The can-updater.py has a problem. It sends out extended ID frames rather than standard ones. I found that sticking "is_extended...
by davefiddes
Wed Feb 15, 2023 6:35 pm
Forum: Inverters / Motor Controllers
Topic: CAN Bootloader
Replies: 44
Views: 8978

Re: CAN Bootloader

Nothing on the CAN TX pin out of reset until I provoke it by sending an SDO request. Weirdly I can't connect to the device with my ST-Link v2 (clone) or official Nucleo-64 ST-Link. This *used* to work fine. I've had the board for years and it is a genuine STM32F103. Wonder if upgrading has splatted ...
by davefiddes
Wed Feb 15, 2023 5:38 pm
Forum: Inverters / Motor Controllers
Topic: CAN Bootloader
Replies: 44
Views: 8978

Re: CAN Bootloader

That's odd. I definitely have those ones wired up.
by davefiddes
Wed Feb 15, 2023 5:36 pm
Forum: User Interface
Topic: Tool to manage openinverter via CAN
Replies: 108
Views: 20352

Re: Tool to manage openinverter via CAN

Another missing section from the readme. To do an upgrade run

Code: Select all

pip install -U openinverter_can_tool
Pip caches its files in ~/.cache/pip . openinverter_can_tool doesn't cache any files yet.;)
by davefiddes
Wed Feb 15, 2023 2:27 pm
Forum: User Interface
Topic: Tool to manage openinverter via CAN
Replies: 108
Views: 20352

Re: Tool to manage openinverter via CAN

I've made a new release of openinverter_can_tool. It has the following new features: Automatic parameter database download from the device being configured * Retrieve device serial number use with the CAN bootloader Command the device to: reset load parameters from flash save parameters to flash res...
by davefiddes
Wed Feb 15, 2023 2:05 pm
Forum: Inverters / Motor Controllers
Topic: CAN Bootloader
Replies: 44
Views: 8978

Re: CAN Bootloader

Just tried this code on my STM32 Bluepill based inverter. It doesn't seem to send anything out on the CAN bus at boot. The serial bootloader part works fine. I tried running the CAN bus at 800k as well as 500k. The CAN interface works fine when running the main firmware (5.24.R, master and new_can_m...
by davefiddes
Mon Feb 13, 2023 7:17 pm
Forum: User Interface
Topic: Tool to manage openinverter via CAN
Replies: 108
Views: 20352

Re: Tool to manage openinverter via CAN

johu wrote: Mon Feb 13, 2023 7:03 pm EDIT2: problem is only on beaglebone, on my laptop it runs fine
Hmm. What version of Debian is it running? I've got an old Sheevaplug running Debian Bullseye that seemed to run it ok.
by davefiddes
Mon Feb 13, 2023 5:56 pm
Forum: User Interface
Topic: Tool to manage openinverter via CAN
Replies: 108
Views: 20352

Re: Tool to manage openinverter via CAN

Bleh. Instructions clearly need some work. It's probably best to run in a python virtualenv when running development versions. First time set up would look like: git clone https://github.com/davefiddes/openinverter_can_tool.git cd openinverter_can_tool virtualenv venv . venv/bin/activate pip install...
by davefiddes
Mon Feb 13, 2023 1:45 pm
Forum: User Interface
Topic: Tool to manage openinverter via CAN
Replies: 108
Views: 20352

Re: Tool to manage openinverter via CAN

I've not released a new version. Wanted to get more functionality in before the hassle of releasing it. You need a development clone:

Code: Select all

git clone https://github.com/davefiddes/openinverter_can_tool.git
cd openinverter_can_tool
pip install -e .[dev,test]
by davefiddes
Sun Feb 12, 2023 6:13 pm
Forum: User Interface
Topic: Tool to manage openinverter via CAN
Replies: 108
Views: 20352

Re: Tool to manage openinverter via CAN

Not only seen it I've written unit tests to understand how it works and its limitations. Would like to approach this from an end-to-end point of view to avoid clunky APIs. Would be good to suggest DBC export to someone working on the web interface. It would be entirely possible to output a can map t...
by davefiddes
Sun Feb 12, 2023 10:53 am
Forum: User Interface
Topic: Tool to manage openinverter via CAN
Replies: 108
Views: 20352

Re: Tool to manage openinverter via CAN

That would be useful for slow changing signals. I'll add that to the list. Somewhat relatedly I have an idea for the medium term to manage can mapping with the tool. My thought was that it might be possible to configure can mappings from a DBC file. That way you could design the can map in SavvyCAN ...