Code Monkey home page Code Monkey logo

Comments (3)

DomiStyle avatar DomiStyle commented on June 17, 2024

The header is shifted in your packets (68 FA FA 68) or not present at all, which is strange.

Since splitting the packets is currently done by timing your smart meter might not adhere to that rule.
I will see if I can create a version which waits for the header instead soon, maybe that helps with your situation.

from esphome-dlms-meter.

DaCapoAT avatar DaCapoAT commented on June 17, 2024

Habe folgendes herausgefunden:
ESP32 nodemcu

"The logger component makes use of platform-specific hardware UARTs for serial logging. By default, the logger will occupy UART0. The ESP32 has three hardware UARTs, all of which can be used for both transmit and receive."

Standardeinstellung für TX/RX bei der NodeMCU ist:
tx_pin: GPIO1
rx_pin: GPIO3
Das entspricht der UART0 und daher kommt es zur Datenvermischung mit den Loggerdaten am UART-Port.

Der Logger kann auf einen anderen Port gelegt werden.
logger:
hardware_uart: UART1
level: DEBUG

So, jetzt bekomme ich die Pakete mit 68 FA FA 68
ABER die ganze Nachricht ist nach wie vor nicht korrekt.
"Received packet with invalid size�"
Daten sind zu kurz!?

image

from esphome-dlms-meter.

DomiStyle avatar DomiStyle commented on June 17, 2024

@DaCapoAT Würde empfehlen die gleichen Pins wie in der Beispiel yaml zu verwenden, GPIO4 und GPIO36. Die werden nicht für den Logger verwendet und sind beim ESP32 aufjedenfall frei.

Den Serial-Logger kannst du testweise deaktivieren mit

  logger:
    level: DEBUG
    baud_rate: 0

Ansonsten hat das andere Issue noch mögliche Lösungsvorschläge: #2 (comment)

from esphome-dlms-meter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.