-
Notifications
You must be signed in to change notification settings - Fork 20
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
Support Iammeter WEM3080T #14
Comments
Thanks for getting in touch! I had a look at the documentation of your meter, and while there are many integrations with existing tools, and even a web based API, I can't actually find a modbus document anywhere. Have you found anything that lists all the available registers? It might be worthwhile just using the web API (via wifi I suspect) as a data source. In case you would like to try this, all we really need is the JSON output of |
Thanks for the answer! I'll have a look for modbus documentation and let you know if I find it! Anyway the json putput is: {"method":"uploadsn","mac":"B0F89329E511","version":"2.75.69","server":"em","SN":"DF4DBF22","Datas":[[237.4,3.00,634,11248.760,8031.330,49.93,0.89],[229.7,6.33,1417,8473.460,8373.760,49.93,0.97],[236.4,6.66,-1565,8832.250,8865.660,49.93,0.99]]} The data details are (the negative power means there is export to the grid): L1: L2 (the rest is same) L3 (the rest is same) |
I have got the modbus documentation with registers from the factory, but they ask me "do not post on the internet". So can I have your email address to send you? Thanks |
That's an odd request from the manufacturer. The documentation will be used to add the meter to the |
That's true. It is a very good thing if we can use the web api as well, because it makes much more easy to use this meter. But of course with modbus it can be more precise (over the web api we have 6sec refresh rate)... |
A working json meter would be great. I'd then contribute a similar mete to the project - my python skills are good enough for that, but not for adding the first json based meter |
Thanks for the document. Would you please grab the latest master from sdm_modbus and try the following, substituting
|
I tried... My device is ttyUSB0 [74526.782724] usbcore: registered new interface driver ch341 I made a test.py with the following content: #!/usr/bin/env python3 import sdm_modbus meter = sdm_modbus.WEM3080T(device="/dev/ttyUSB0") First I installed the sdm_modbus with pip $ ./test.py So It looks pip have old version. So I grab the master and the files from src/sdm_modbus moved to the ~/.local/lib/python3.6/site-packages/sdm_modbus (the old was here, so of course removed before). After that test.py running, but no result: $ ./test.py Of course the device have 20666 permission... What's wrong? :( |
That's not actually a completely horrible result. The default baud rate of
Try |
I tried it, but with the same result :( Traceback (most recent call last): Is this because of the older python version? Which version do I need? Today I going to try with another adapter and with another cable. Are there any other way how can I debug? It is very complicated to use/integrate the json output? Because that should be much more easy to use the people in some cases... Thanks |
I have no luck :( . Now I tried with a one meter long cable, of course with every baud rate, but the same is the result :( . Let me know how can I debug to find where is the problem?! Thanks |
The empty {} is a good result, it means the script executes properly, there's just no communication with the meter. This may be due to a number of things. The most likely are the baud rate and the
|
Are there any way to make this automate? I mean a program which can try any id or baud to find the device? |
I have got this from the manufacturer: The software will work like a Modbus master, polling the data from the energy meter. Hope it will help... |
Those values match what you would have tried already using the suggestions I posted. Have you had any luck talking to the meter via any other software? |
I have to look for an other tool to test it... Can you give me any suggestion? |
Reading from json is not working? |
Another good thing. Now we are able to use modbus tcp to read data from WEM3080T. You can watch here: |
Are there any news regarding this meter? |
I asked you to try connecting to the meter using any other modbus software to confirm the meter is accessible. Have you done this? I won't be able to debug the problem unless you can verify that the meter is actually working over modbus. |
Well, unfortunately I had no success with modbus rtu (tried with modbus mechanic), maybe my usb-rs485 adapter is fault. The new is on the way, so I will see when it is here. But, as I wrote, now we can communicate with the meter in modbus tcp. and that one is working with modbus mechanic. So that's why I ask maybe we can use this meter with modbus tcp communication?! |
Hello.
Is it possible to support Iammeter WEM3080T ? I have one and I have everything (solaredge inverter, rs485 adapter etc) to test it.
Thanks
The text was updated successfully, but these errors were encountered: