arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.75k stars 4.72k forks source link

Ser2Net from SmartMeter bad data #18400

Closed ressof closed 1 year ago

ressof commented 1 year ago

PROBLEM DESCRIPTION

I get bad data and different data from a Electric Smart Meter that sends data by serial link to a Wemos D1 mini on GPIO3. I have the tasmota act as an Ser2Net device and also meassure temperature with a DHT22 and transfer that by MQTT to domoticz.

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

- [x] If using rules, provide the output of this command: `Backlog Rule1; Rule2; Rule3`:
```lua
  Rules output here:
06:29:16.307 MQT: stat/elmatare/RESULT = {"Rule1":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":50,"Free":461,"Rules":"ON System#Boot do TCPStart 8888,192.168.0.10 endon"}}
06:29:16.541 MQT: stat/elmatare/RESULT = {"Rule2":{"State":"OFF","Once":"OFF","StopOnError":"OFF","Length":0,"Free":511,"Rules":""}}
06:29:16.788 MQT: stat/elmatare/RESULT = {"Rule3":{"State":"OFF","Once":"OFF","StopOnError":"OFF","Length":0,"Free":511,"Rules":""}}
- [x] Set `weblog` to 4 and then, when you experience your issue, provide the output of the Console log:
```lua
  Console output here:
Dont se anything in the log

TO REPRODUCE

Steps to reproduce the behavior:

EXPECTED BEHAVIOUR

A clear and concise description of what you expected to happen. I should get this from the SmartMeter when I connect with telnet /ELL5\253833635_A 0-0:1.0.0(210421202531W) 1-0:1.8.0(00000077.881kWh) 1-0:2.8.0(00000000.001kWh) 1-0:3.8.0(00000003.875kvarh) 1-0:4.8.0(00000002.678kvarh) 1-0:1.7.0(0004.169kW) 1-0:2.7.0(0000.000kW) 1-0:3.7.0(0000.229kvar) 1-0:4.7.0(0000.504kvar) 1-0:21.7.0(0000.608kW) 1-0:41.7.0(0002.441kW) 1-0:61.7.0(0001.120kW) 1-0:22.7.0(0000.000kW) 1-0:42.7.0(0000.000kW) 1-0:62.7.0(0000.000kW) 1-0:23.7.0(0000.000kvar) 1-0:43.7.0(0000.000kvar) 1-0:63.7.0(0000.229kvar) 1-0:24.7.0(0000.194kvar) 1-0:44.7.0(0000.310kvar) 1-0:64.7.0(0000.000kvar) 1-0:32.7.0(232.9V) 1-0:52.7.0(229.8V) 1-0:72.7.0(233.6V) 1-0:31.7.0(002.8A) 1-0:51.7.0(010.7A) 1-0:71.7.0(004.9A) !2577

but I get something like this, different every 10 seconds when the smartmeter sends its data

0-0:1.0.0(230413064257W) 1-0:1.8.0(00002868.367kWh) 1-0:2.8.0(00000000.004kWh) 1-0:3.8.0(00001172.559kvarh) 1-0:4.8.0(00000389.522kvarh) 1-0:1.7.0(0000.414kW) 1-0:2.7.0(0000.000kW) 1-0:3.7.0(0000.000kvar) 1-:4.70(00.14W) 10:1..0000.98kW 1-:4.70(00.00W) 10:2..0000.00kW -0237.(00000kar -0437.(00000kar -0637.(00000kar -0247.(00011kar -0447.(00006kar -0647.(00007kar -0327.(29.

SCREENSHOTS

If applicable, add screenshots to help explain your problem.

ADDITIONAL CONTEXT

Add any other context about the problem here.

(Please, remember to close the issue when the problem has been addressed)

ressof commented 1 year ago

I think I resolved the issue by adding this to user_config_override

define TCP_BRIDGE_BUF_SIZE 1024 // size of the buffer, above 132 required for efficient XMODEM

The buffer is 256 as default.

arendst commented 1 year ago

Fixed by OP