I declare it done now, for my part. I think it's pretty good:
https://github.com/davefiddes/openinver ... ool/pull/1
Tool to manage openinverter via CAN
- johu
- Site Admin
- Posts: 5834
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 162 times
- Been thanked: 1047 times
- Contact:
Re: Tool to manage openinverter via CAN
Cool, will test
I hope some documentation will end the Finnish public holiday called Bashersday
https://openinverter.org/wiki/CAN_commu ... es_via_SDO
Maybe not the best possible solution but easy to implement on the server side
I hope some documentation will end the Finnish public holiday called Bashersday
https://openinverter.org/wiki/CAN_commu ... es_via_SDO
Maybe not the best possible solution but easy to implement on the server side
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
- celeron55
- Posts: 776
- Joined: Thu Jul 04, 2019 3:04 pm
- Location: Finland
- Has thanked: 29 times
- Been thanked: 110 times
- Contact:
Re: Tool to manage openinverter via CAN
Bashersday is any day someone thinks ESP32 is a good alternative to documentation!
- johu
- Site Admin
- Posts: 5834
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 162 times
- Been thanked: 1047 times
- Contact:
Re: Tool to manage openinverter via CAN
I tried to get chatgpt to write the documentation for me but the result can safey be called bullsh*tting
ChatGPT wrote:The SDO (Service Data Object) protocol is a communication protocol used in CANopen networks to access and manipulate data within CANopen devices. In the context of the libopeninv library, which is a library for interacting with CANopen devices, the SDO protocol likely plays a crucial role in reading from and writing to object dictionary entries in CANopen devices.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
- Posts: 215
- Joined: Mon Jan 18, 2021 12:39 pm
- Location: Edinburgh, Scotland, UK
- Has thanked: 14 times
- Been thanked: 38 times
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/ ... e-on-boot/
This uses systemd-network which knows how to manage SocketCAN networks as well as Ethernet. It can peacefully co-exist with NetworkManager so you don't break your existing network configuration. Will attempt to document for the next release of OIC.
https://www.pragmaticlinux.com/2021/07/ ... e-on-boot/
This uses systemd-network which knows how to manage SocketCAN networks as well as Ethernet. It can peacefully co-exist with NetworkManager so you don't break your existing network configuration. Will attempt to document for the next release of OIC.
-
- Posts: 113
- Joined: Tue Jun 15, 2021 5:44 pm
- Location: Finland
- Has thanked: 21 times
- Been thanked: 5 times
Re: Tool to manage openinverter via CAN
I'm doing something wrong. How can I get can mapping to work, it seems 0.0.8 version not include it as I get for oic -n 22 can list:
Error: No such command 'can'.
Tried celeron55 github version too.
EDIT: Oh, I got wrong branch
Error: No such command 'can'.
Tried celeron55 github version too.
EDIT: Oh, I got wrong branch
-
- Posts: 215
- Joined: Mon Jan 18, 2021 12:39 pm
- Location: Edinburgh, Scotland, UK
- Has thanked: 14 times
- Been thanked: 38 times
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.
-
- Posts: 113
- Joined: Tue Jun 15, 2021 5:44 pm
- Location: Finland
- Has thanked: 21 times
- Been thanked: 5 times
Re: Tool to manage openinverter via CAN
Got mapping done. Nice tool. Only thing is should new mapping save permanently, did not see any extra save commands? Otherwise I have problem with focci board.
-
- Posts: 215
- Joined: Mon Jan 18, 2021 12:39 pm
- Location: Edinburgh, Scotland, UK
- Has thanked: 14 times
- Been thanked: 38 times
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.