Coder Social home page Coder Social logo

Fronius Inverter support about mbmd HOT 7 CLOSED

volkszaehler avatar volkszaehler commented on August 15, 2024
Fronius Inverter support

from mbmd.

Comments (7)

andig avatar andig commented on August 15, 2024

If it's Sunspec it already is supported- just use FRONIUS:id and the TCP address for the adapter.

from mbmd.

andig avatar andig commented on August 15, 2024

The modbus slaveid you‘re inverter is listening to.

from mbmd.

bilbolodz avatar bilbolodz commented on August 15, 2024

OK, I'd to switch Modbus "Sunspec Model Type" from "float" to "int + SF" and added models: 120,121,122 now I can see some measurements.
Question:
Models 120,121,122 are not quite interesting. How to "blacklist"(?) these models?
To make compile fine, I'd added something like these to code:

var opcodeMap = map[string]meters.Measurement{
[..]
model120.ARtg: meters.BatteryVoltage,
model121.WMax: meters.BatteryVoltage,
model122.ActVAh: meters.BatteryVoltage,
}

But it's UGLY fix (used without any "deeper study of code").

from mbmd.

andig avatar andig commented on August 15, 2024

@bilbolodz its really hard for me to follow what your actual problem and goal is.

OK, I'd to switch Modbus "Sunspec Model Type" from "float" to "int + SF" and added models:

What do you mean? Switch what? To solve which problem? As I've said, the inverter should be supported without any changes. What is missing?

Models 120,121,122 are not quite interesting. How to "blacklist"(?) these models?

Why did you add them in the first place?

Could you please- before we continue- show the output of mbmd inspect for your device to understand which models it supports?

I can also suggest to switch to German if that would be easier.

from mbmd.

bilbolodz avatar bilbolodz commented on August 15, 2024

What do you mean? Switch what?

"Sunspec Model Type" it's setting in Fronius Modbus card. You can chose which registers are "active" (float vs int + sf model)

To solve which problem?

I've put some comments before but then deleted because I've found sollution my self.

As I've said, the inverter should be supported without any changes. What is missing?

Main problem was that your "original code" ended with error: "sunspec: could not find supported model"

Why did you add them in the first place?

To get mbmd working I'd to add these models to source and recompile. Now inverter is detected and working .

I can also suggest to switch to German if that would be easier.

Sorry I don't speak german but if you can we can switch to Polish ;-)

Could you please- before we continue- show the output of mbmd inspect for your device to understand which models it supports?

https://pastebin.com/VrCn1HN9

I'd like to get some information (values for string1 and string2) from model160.

from mbmd.

bilbolodz avatar bilbolodz commented on August 15, 2024

As I've said, the inverter should be supported without any changes. What is missing?

Sorry for trouble!!!! I've checked again and it turned out that it's working on your ORGINAL code!
I was stupid and tired yesterday!

But still question "how to get values for MPPT" from model160 is active.

from mbmd.

andig avatar andig commented on August 15, 2024

"Sunspec Model Type" it's setting in Fronius Modbus card. You can chose which registers are "active" (float vs int + sf model)

That's really confusing. Sunspec clearly defines the encoding of each register- not sure why Fronius allows to chose anything.

Sorry I don't speak german but if you can we can switch to Polish ;-)

Wish I could :/

Sorry for trouble!!!! I've checked again and it turned out that it's working on your ORGINAL code!
I was stupid and tired yesterday!

You're totally welcome, glad it works.

But still question "how to get values for MPPT" from model160 is active.

See my comment in #70

from mbmd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.