Search found 213 matches
- Tue Apr 23, 2024 5:17 pm
- Forum: User Interface
- Topic: Tool to manage openinverter via CAN
- Replies: 108
- Views: 19742
Re: Tool to manage openinverter via CAN
The mapping commands edit the running configuration just like changing parameters. To save the parameters and CAN mapping you need to issue a "oic cmd save" which is equivalent to pressing the "Save Parameters to Flash" on the web interface.
- Tue Apr 23, 2024 3:56 pm
- Forum: User Interface
- Topic: Tool to manage openinverter via CAN
- Replies: 108
- Views: 19742
Re: Tool to manage openinverter via CAN
Try "oic map" in place of "oic can". I changed the verb to make a bit more sense.
It's not in a release version as I keep finding bugs in oic and libopeninv. It's OK as long as you avoid negative gains and offsets mostly.
It's not in a release version as I keep finding bugs in oic and libopeninv. It's OK as long as you avoid negative gains and offsets mostly.
- Wed Feb 28, 2024 12:16 pm
- Forum: User Interface
- Topic: Tool to manage openinverter via CAN
- Replies: 108
- Views: 19742
Re: Tool to manage openinverter via CAN
Got fed up manually starting my SocketCAN interface on Linux. Turns out to be quite simple to configure a CAN bus to be started automatically: https://www.pragmaticlinux.com/2021/07/automatically-bring-up-a-socketcan-interface-on-boot/ This uses systemd-network which knows how to manage SocketCAN ne...
- Thu Feb 22, 2024 5:49 pm
- Forum: Charging
- Topic: Develop a QCA7000 board?
- Replies: 569
- Views: 6901785
Re: Develop a QCA7000 board?
I've raised a PR to embed the git version information into the firmware. The existing VER macro is used to generate the "version" spot value. When the database is downloaded over CAN this will update. The version generated uses git describe which means that release versions will take on th...
- Sun Feb 18, 2024 1:56 pm
- Forum: Charging
- Topic: Develop a QCA7000 board?
- Replies: 569
- Views: 6901785
Re: Develop a QCA7000 board?
What is the most github-ish way to built a binary of every commit or something? Github Actions are free for Open Source projects. I have a branch that does 90% of what you want here: https://github.com/davefiddes/stm32-sine/blob/github-actions/.github/workflows/CI-build.yml It would need a final st...
- Sat Feb 17, 2024 12:11 pm
- Forum: User Interface
- Topic: Tool to manage openinverter via CAN
- Replies: 108
- Views: 19742
- Sat Feb 17, 2024 11:51 am
- Forum: User Interface
- Topic: Tool to manage openinverter via CAN
- Replies: 108
- Views: 19742
Re: Tool to manage openinverter via CAN
Glad you got things working. The setup of CAN sessions on Linux can be a bit of a pain though it's good when you get it running. Happy to accept PRs. I built the tool in python so it would be approachable to more people than typical OI projects. I've been away from OI and car related projects for a ...
- Tue Oct 24, 2023 5:36 pm
- Forum: Tesla
- Topic: Tesla Model 3 Rear Drive Unit Hacking
- Replies: 640
- Views: 139224
Re: Tesla Model 3 Rear Drive Unit Hacking
I personally wouldn't want to argue with a bunch of lawyered up ex-Telsa owners and Tesla Inc should the worst come to the worst. If you are cool with that fair enough. I probably spent too long on Slashdot in the late 90s and early 2000s.
- Tue Oct 24, 2023 5:18 pm
- Forum: Tesla
- Topic: Tesla Model 3 Rear Drive Unit Hacking
- Replies: 640
- Views: 139224
Re: Tesla Model 3 Rear Drive Unit Hacking
Does the inverter have OTP? Are there "things" on the inverter than uniquely identify it? "things" that are used as part of the handshake? Yes. The TMS320F28377D has a whole security sub-system with a pair of secure zones for each of the two processors. There is a region of OTP ...
- Thu Sep 14, 2023 12:38 pm
- Forum: User Interface
- Topic: Tool to manage openinverter via CAN
- Replies: 108
- Views: 19742
Re: Tool to manage openinverter via CAN
It was the 5.27.R-sine release version. I don't have a reliable way to update the firmware on my board at the moment.
- Thu Sep 14, 2023 10:42 am
- Forum: User Interface
- Topic: Tool to manage openinverter via CAN
- Replies: 108
- Views: 19742
Re: Tool to manage openinverter via CAN
I've pushed a fix to the tool which filters out any erroneous bytes anyway. I found it harder to replicate than I first thought so had to rely on unit tests which is not a bad outcome.
- Wed Sep 13, 2023 10:41 am
- Forum: User Interface
- Topic: Tool to manage openinverter via CAN
- Replies: 108
- Views: 19742
Re: Tool to manage openinverter via CAN
Managed to get my "inverter" (an STM32 Bluepill on a breadboard) into Run mode and can now replicate this reliably. Should definitely filter it client side even if you are able to fix the problem. I need to be a bit cleverer in processing the incoming data stream as binary and remove the N...
- Fri Sep 08, 2023 1:01 pm
- Forum: User Interface
- Topic: Tool to manage openinverter via CAN
- Replies: 108
- Views: 19742
Re: Tool to manage openinverter via CAN
It's been well behaved for me. I mostly have been testing in opmode off which might account for that.
Slow progress on my side as summer has arrived here at long last. Hope to make more progress next week.
Slow progress on my side as summer has arrived here at long last. Hope to make more progress next week.
- Mon Sep 04, 2023 10:50 am
- Forum: User Interface
- Topic: Tool to manage openinverter via CAN
- Replies: 108
- Views: 19742
Re: Tool to manage openinverter via CAN
Seems workable. If you let me know when you've got some code I can work against I'll update the tool.
- Thu Aug 24, 2023 10:45 am
- Forum: User Interface
- Topic: Tool to manage openinverter via CAN
- Replies: 108
- Views: 19742
Re: Tool to manage openinverter via CAN
That sounds workable I think. Would you allow updating of existing entries or would they have to be deleted and recreated? Might be nice if adding with an existing CAN ID/parameter pair would replace the existing mapping details. When listing I'm assuming I have to iterate through each sub-index unt...
- Wed Aug 23, 2023 10:28 am
- Forum: User Interface
- Topic: Tool to manage openinverter via CAN
- Replies: 108
- Views: 19742
Re: Tool to manage openinverter via CAN
Sorry for the slow reply. Not been working on OI or CAN for a while and the thoughts are a bit dusty. I wonder if it would be simpler and more logical to map the CanMap directly to a CAN SDO Index. That is, have the index be the position within the Tx or Rx CanMap. The sub-indices could then be the ...
- Tue Aug 22, 2023 12:58 pm
- Forum: User Interface
- Topic: Tool to manage openinverter via CAN
- Replies: 108
- Views: 19742
Re: Tool to manage openinverter via CAN
Interesting. The stateful nature of the sub-index 0 and 1 or 2 is unconventional but should be OK. For it to be useful as a general API I think we need a read capability. Just reading back from the sub indexes 0, 1 and 2 would be fine. Listing all mappings would require a brute force of all known pa...
- Fri Jul 14, 2023 1:53 pm
- Forum: User Interface
- Topic: Tool to manage openinverter via CAN
- Replies: 108
- Views: 19742
Re: Tool to manage openinverter via CAN
Ah. That's not going to work. You can't really have two SDO clients modifying the same device simultaneously. If you have control over your BMS software it would be better to get it to output the DC current limit in a new CAN message at regular intervals. Then you can map that as an CAN RX parameter.
- Fri Jun 30, 2023 2:29 pm
- Forum: User Interface
- Topic: Tool to manage openinverter via CAN
- Replies: 108
- Views: 19742
Re: Tool to manage openinverter via CAN
It should be fine on a busy bus. It's important when running multiple openinverter systems that they have unique "nodeid" parameters. With the default config you are using the tool will send messages with ID 0x601 and the inverter will reply with ID 0x581. If there is a conflict on the bus...
- Fri Jun 30, 2023 10:54 am
- Forum: User Interface
- Topic: Tool to manage openinverter via CAN
- Replies: 108
- Views: 19742
Re: Tool to manage openinverter via CAN
Thanks for giving the tool a shot. I'm sorry it's not working. If I understand you correctly "oic scan" is reporting that your inverter is communicating ("Found possible openinverter node: 1")? It should be possible to run "oic listparams" to get a list of all of the po...
- Thu May 25, 2023 5:18 pm
- Forum: User Interface
- Topic: Tool to manage openinverter via CAN
- Replies: 108
- Views: 19742
Re: Tool to manage openinverter via CAN
Just released v0.0.8. This adds: Parameter databases are now cached locally. This is a *massive* usability improvement and minimises CAN traffic in normal use. Requires a very up to date stm32-sine development build. Works automatically for any project using an up to date libopeninv. It is now possi...
- Wed May 24, 2023 1:25 pm
- Forum: Inverters / Motor Controllers
- Topic: Question on parameter IDs
- Replies: 3
- Views: 654
Re: Question on parameter IDs
That's a good spot. Should have been able to pick them up with openinverter_can_tool if I'd tested it more thoroughly.
I have a cunning plan for how to detect this error automatically at compile time. Look for a libopeninv PR later.
I have a cunning plan for how to detect this error automatically at compile time. Look for a libopeninv PR later.
- Wed May 17, 2023 10:47 am
- Forum: Inverters / Motor Controllers
- Topic: Remote ESP32 Module with RS485 and CAN bus Interfaces
- Replies: 13
- Views: 8422
Re: Remote ESP32 Module with RS485 and CAN bus Interfaces
One slight pain is that when using serial monitor window within PlatformIO it drives the two lines active so holding the ESP32 in reset. There is a standard(ish) bit of logic fitted to most dev boards to tackle this problem: ESP32-programming-header.png This is from the Espressif ESP32-Core-Board-V...
- Tue May 16, 2023 5:33 pm
- Forum: User Interface
- Topic: Tool to manage openinverter via CAN
- Replies: 108
- Views: 19742
Re: Tool to manage openinverter via CAN
That's good news. I've got parameter caching going today and it really improves the responsiveness of the tool.
- Tue Apr 25, 2023 11:02 am
- Forum: User Interface
- Topic: Tool to manage openinverter via CAN
- Replies: 108
- Views: 19742
Re: Tool to manage openinverter via CAN
Makes sense to have one go-to tool I think so I was planning on adding firmware update support. I need a utility that will work with the C2000 as well as your STM32 CAN bootloader. Have a feeling that the protocol can't be 100% identical due to architectural differences but haven't really got to des...