Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SellProgrammer modbus mapping #1

Closed
VertigoOne1 opened this issue May 22, 2023 · 2 comments
Closed

SellProgrammer modbus mapping #1

VertigoOne1 opened this issue May 22, 2023 · 2 comments

Comments

@VertigoOne1
Copy link

Evening

I'm playing around with the sellprogrammer as i would like to change grid charge status depending on load shedding stage.

Out of the box, the connecting is working, but i'm getting some interesting return values.

deye-controller$ ./get_mode.py


| Grid | Gen | Time | Pwr | SOC % |
| | | 00:59 | 22:14 | 2202 | 0% |
| | | 22:14 | 09:57 | 0 | 0% |
| | | 09:57 | 00:00 | 2202 | 0% |
| | | 00:00 | 09:57 | 2226 | 0% |
| | | 09:57 | 22:26 | 0 | 0% |
| | | 22:26 | 00:59 | 0 | 0% |

and a few seconds later

deye-controller$ ./get_mode.py


| Grid | Gen | Time | Pwr | SOC % |
| | | 00:59 | 22:30 | 2202 | 0% |
| | | 22:30 | 09:57 | 0 | 0% |
| | | 09:57 | 00:00 | 2202 | 0% |
| | | 00:00 | 09:57 | 2226 | 0% |
| | | 09:57 | 22:26 | 0 | 0% |
| | | 22:26 | 00:59 | 0 | 0% |

Everything above is actually invalid.

Obviously your mapping to an inverter you had the ability to test on, so i'm not going to twist your arm, i'm happy to do it myself, but i would like to know what documentation you used to discover the correct registers?! My python skill is not too bad, but i don't actually know any resources that indicate the correct indexes! Would the best way be to just dump everything, and start changing a setting on the inverter and than basically register by register reverse engineer the structure, or is there documentation somewhere as guidance?

I'm on an 8kw sunsynk.

Pleasant evening further!

@githubDante
Copy link
Owner

The documentation is named Modbus RTU Protocol (with additional strings in chinese)
I've found the initial version here

I also requested a more recent copy of it directly from DEYE and they provide it.
It has few additions, it has colored cells, but in general it is the same.
Probably this repo is more suitable for the smaller inverters. The registers are
described here

I don't know which documentation they used (it's probably listed somewhere in the repo).

As you can see there, the programing registers are in the range 250-279. Here they are between 148-177 and
the days of the week for which the program must be applied is controlled by register 146.

@VertigoOne1
Copy link
Author

Thank you very much! I'll start digging into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants