Comments (14)
Hi,
I tested the simulator against an SMA Tripower inverter, as I do not have an SHM. It is tricky
- There is a great smartphone app "Energy Meter". It is available for iOS, I do know about Android. The app will show you any SMA emeter broadcasting measurements on your local wifi network
- My inverter does only show new devices after disconnecting and reconnecting the network cable. Can you try to do this with the SHM network cable
- Does the output of the simulator look good, i.e. it is sending out packets via the expected network interfaces of your PC?
- Are the generating PC and the SHM residing on the same IPv4 subnet?
- Does the multicast packet reach the SHM physically? I mean, if you disconnect the Ethernet cable from the SHM and plug it into a PC, will the PC see the packets? Using Wireshark or the Speedwire-Router executable from my github repository?
- If not, try to disable the IGMP functionality of any switch or router in-between. I had issues with my TP-Link ethernet switch and had to disable the IGMP functionality.
Best regards
from sma-emeter-simulator.
Thank you for the suggestion about the iPhone app.
One problem I had is that the time in the emeter packets was always 0. localhost.getUnixEpochTimeInMs() wasn't working for me, on a Raspberry Pi with the default OS. I used some other code to get the time and now it's working. If you're interested, this worked:
emeter_packet.setTime((uint32_t)std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count());
Another thing is that I was mistaken about where I should add the virtual emeter to Sunny Portal. I thought it would show up as a separate device but it doesn't. I had to add it to the SHM2.0 as a PV meter through the SHM2.0's own settings.
Thanks for your help, I'm thinking about publishing the project to Github as well. It allowed me to use an older SMA inverter (that uses the SMA Com Gateway) on Sunny Portal. I just need to clean up a bit first I'm afraid. It's a shame SMA itself doesn't support this.
from sma-emeter-simulator.
from sma-emeter-simulator.
@FrederikVds I am also trying to get an unsupported inverter into the sunny portal. Would you mind sharing the solution you came up with in a little more detail?
I am very interested :)
from sma-emeter-simulator.
Thanks also from me for sharing this project! Works great on Win OS! On a PI with Buster it only send messages to LocalHost:
address: 127.0.0.1 prefixlength: 8 mac: 00:00:00:00:00:00 name: "lo"
address: 192.168.x.y prefixlength: 24 mac: B8:24:CW:CF:0E:56 name: "eth0"
..
..
INFO: main: broadcast sma emeter packet to 239.12.255.254:9522 (via interface 127.0.1.1)
Any idea how to fix the issue?
from sma-emeter-simulator.
from sma-emeter-simulator.
yes, only send out to 127.0.1.1! eth0 is missing in localIPs.
from sma-emeter-simulator.
from sma-emeter-simulator.
from sma-emeter-simulator.
Another thing is that I was mistaken about where I should add the virtual emeter to Sunny Portal. I thought it would show up as a separate device but it doesn't. I had to add it to the SHM2.0 as a PV meter through the SHM2.0's own settings.
@FrederikVds
How did you add it to the SHM2.0 in the settings? I don't find this.
from sma-emeter-simulator.
@sfranzis In Sunny Portal, in Device Overview, go to the Sunny Home Manager properties. It's at the bottom under Meter Configuration.
from sma-emeter-simulator.
@Algram Sorry, I've been very busy lately.
I uploaded my application here: https://github.com/FrederikVds/smacomgw2shmtwo
I didn't have time to check whether it still contains things specific to my network. I hope it's useful to you.
from sma-emeter-simulator.
@FrederikVds Tank you, found it. But then SHM2 ignores the data from my inverters.
Wow SMA, highly sophisticated software design. 🙈
from sma-emeter-simulator.
Hi @FrederikVds ,
would you mind to Share your Development with me?
I was Not Abel to find ist in your repository…
My Target would be to integrate an 3kW Party Inverter into my SMA-System, Boy emulating a SMA Inverter.
I uploaded my application here: https://github.com/FrederikVds/smacomgw2shmtwo
Thank you and Nest regards Michael
from sma-emeter-simulator.
Related Issues (2)
- Emeter UDP packet size HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sma-emeter-simulator.