Tool to manage openinverter via CAN

Discussion about various user interfaces such as web interface, displays and apps
User avatar
celeron55
Posts: 776
Joined: Thu Jul 04, 2019 3:04 pm
Location: Finland
Has thanked: 28 times
Been thanked: 110 times
Contact:

Re: Tool to manage openinverter via CAN

Post by celeron55 »

I declare it done now, for my part. I think it's pretty good:

https://github.com/davefiddes/openinver ... ool/pull/1
User avatar
johu
Site Admin
Posts: 5791
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 157 times
Been thanked: 1024 times
Contact:

Re: Tool to manage openinverter via CAN

Post by johu »

Cool, will test

I hope some documentation will end the Finnish public holiday called Bashersday :P

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
User avatar
celeron55
Posts: 776
Joined: Thu Jul 04, 2019 3:04 pm
Location: Finland
Has thanked: 28 times
Been thanked: 110 times
Contact:

Re: Tool to manage openinverter via CAN

Post by celeron55 »

Bashersday is any day someone thinks ESP32 is a good alternative to documentation!
User avatar
johu
Site Admin
Posts: 5791
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 157 times
Been thanked: 1024 times
Contact:

Re: Tool to manage openinverter via CAN

Post by johu »

:D

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
davefiddes
Posts: 213
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

Post by davefiddes »

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.
evMacGyver
Posts: 111
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

Post by evMacGyver »

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
davefiddes
Posts: 213
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

Post by davefiddes »

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.
evMacGyver
Posts: 111
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

Post by evMacGyver »

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.
davefiddes
Posts: 213
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

Post by davefiddes »

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.
Post Reply