mitchese / sma_home_manager_printer

Test script for SMA Home Manager 2 messages
5 stars 2 forks source link

Implausible serial, rejecting #2

Open maxpd1 opened 11 months ago

maxpd1 commented 11 months ago

Hi,

using a Sunny Home Energy Meter 2.0 with SMA Sunny Tripower 20000 inverter.

I put the file sma_home_manager_printer.armv7l into the folder data/home/root

If I execute ./sma_home_manager_printer.armv7l I am receiving

"Implausible serial, rejecting"

Serial looks like 1924586782

Am I doing something wrong?

Wanted to use shm_et340 faker to use Sunny Home Manager in Victron ESS environment.

Regards maxpd

mitchese commented 11 months ago

does it always say this? There was a recent (last year) update to the SHM that caused it to send differently formatted packets. These packets had the serial number set to 0xfffffffff and this will just "ignore" these packets logging this line.

https://github.com/mitchese/sma_home_manager_printer/blob/master/main.go#L38

If it works and you see data, you can ignore that error about these random weird packets

maxpd1 commented 11 months ago

Hi,

was on that link too during my search :)

What do you mean by always? I let it run for half an hour and it wrote this message every ~minute. No real data in between.

mitchese commented 11 months ago

in between the rejections it should print out if there is any valid traffic, so it sounds like it's rejecting everything (or your traffic doesn't match the format that this is expecting). It may be that you have the wrong device:

https://www.sma.de/en/products/monitoring-control/sunny-home-manager is what I have and what this works with, but there is also https://www.sma.de/en/products/monitoring-control/sma-energy-meter which I don't know about

If you have the second thing, can you possibly provide a traffic capture from something like Wireshark (https://www.wireshark.org/) of this thing and maybe I can see if it's easy to get working?

maxpd1 commented 11 months ago

thanks for your help. but unfortunately I am using the same as you do ^^ but without valid traffic in between.

maxpd1 commented 11 months ago

I am not sure if there is a problem with traffic format at all. iobroker, my smart home system, is receiving data without a problem. so should somehow be possible to read data also in your script.

mitchese commented 11 months ago

It is impossible to debug this any further without a traffic capture or more information. It could also be a network setting as the meter updates come via multicast, and the packets it rejects when it throws the implausible serial come via unicast.. so it could also be a switch setting (igmp something)...but without some further info, I can only guess

maxpd1 commented 11 months ago

does this help?

image

image

mitchese commented 11 months ago

neither of those are meter updates unfortunately ... the one you post (591) is from SMA, but it's an mdns advertisement and not a meter update (this is also what is rejected).. I'd check your switch settings but you should see something with a length of about 600 bytes. For a reference there are some screenshots in this https://github.com/mitchese/shm-et340/issues/2 which show the valid (missing in your screenshot) vs invalid/rejected

maxpd1 commented 11 months ago

this is what I assumed too. that there aren't any data transfered. what do you mean by switch settings? I mean which switches in which system?

maxpd1 commented 11 months ago

Solution found: in Sunny Portal under Device properties --> Meter configuration in the Direct meter communication area, enter the IP addresses of the receivers (Cerbo / Alternative)