Coder Social home page Coder Social logo

Comments (7)

leodesigner avatar leodesigner commented on August 19, 2024

Do you have the original wifi plug?
It would be much easier to sniff communication between wifi plug and your inverter.
This way you will find out protocol and Modbus id as well.
At least I used this approach for my inverter.

You might want to explore this documentation for different protocols here:
https://github.com/jblance/mpp-solar/tree/master/docs/protocols

from powmr_comm.

damihighlander avatar damihighlander commented on August 19, 2024

Hello - thank you for the answer, no ufortunately i dont have original wifi adapter, however in the mean time i managed to get some data from the inverter. It looks like my model works on modbus ID: 1, 9600 Baudrate - i found a working list of registers from a diffrent model -> https://github.com/syssi/esphome-pipsolar/files/9657007/Protocolo_SMG.II.5KPRS232.V1.0.pdf, it seems most of these values are correct, i didnt check them all yet but having my experience with EASUN models im pretty sure POWMR engineers keep the protocol standards aswell. For now im trying to remotely set working mode (SBU,SUB,SOL). I have a question - did you manage to change inverter working mode via modbus on your device?

from powmr_comm.

leodesigner avatar leodesigner commented on August 19, 2024

Yes, changing modes works as well. But keep in mind that you need to receive a valid confirmation via modbus (error codes) in order to make sure that command passed correctly into inverter.

The rs232 communication is quite unreliable due inverter RF noise. Especially during battery charging.

from powmr_comm.

damihighlander avatar damihighlander commented on August 19, 2024

Changing output priority worked for me, thank you for the information about the error codes, it's gonna be useful - my goal is to setup a daily "task" for a pc to switch from night battery mode (SBU) to either SUB or SOL. I'm not sure what is the difference between these two, it looks like SUB only pushes pv power into charging and nothing into ac output, while i want it to work in hybrid mode

from powmr_comm.

leodesigner avatar leodesigner commented on August 19, 2024

SUB/SBU mode switch sometimes works only when you first charge battery to predefined value (see inverter instruction).
I also change inverter modes on specific predefined time.

from powmr_comm.

damihighlander avatar damihighlander commented on August 19, 2024

Im using nodered dashboard to visualize everything + the scheduler works pretty good right now - only few errors so far. Im stuck on changing battery charging current parameter, it looks like either modbus register for this particular parameter is diffrent than in the manual i linked above or maybe my input string value is not correct, i know this may be a broad question but maybe you could help me find an error - when changing work mode i simply connect to modbus and send a simple string (0,1,2,3) on address 301 - this works fine, however for some reason changing "Maximum charging current" wont work

Modbus specs from pdf file:
Maximum charging current,
Unit: 0.1A,
Data format: Uint,
Initial Address: 332,
Number of registers: 1,
Read: R/W

and this is my error from debug node: msg : error
"Error: Quantity should be less or equal to register payload array length: 2 Addr: 332 Q: 1" what should an "inject payload" should look like here?

from powmr_comm.

leodesigner avatar leodesigner commented on August 19, 2024

Make sure that you have a correct byte ordering for two bytes integer value (big endian, little endian)
https://en.wikipedia.org/wiki/Endianness

You need to look closer what is the Node-Red function expects.
Also some inverters accept only predefined values like 10a, 20a etc.

Try to read this modbus register first and figure out what you get in response.

from powmr_comm.

Related Issues (7)

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.