Code Monkey home page Code Monkey logo

Comments (5)

theexit avatar theexit commented on June 22, 2024 1

#21 added fix... is working for me!

Thanks a lot to the both of you. It wouldn't work for me (IKB) with just adding the delay. While the "Frame too big for received data" didn't show up in the log anymore, the "Start bytes do not match" was still there. I had to change my uart config from:

uart:
  tx_pin: GPIO1
  rx_pin: GPIO3
  baud_rate: 2400
  rx_buffer_size: 1024 # Needed to receive the large packets send by the smart meter
  id: mbus

to

uart:
  tx_pin: GPIO1
  rx_pin: GPIO3
  baud_rate: 2400
  parity: EVEN
  data_bits: 8
  stop_bits: 1
  rx_buffer_size: 2048
  id: mbus

I haven't checked what actually made the difference, but the above-mentioned fix and this config change worked in my case.

That's true. You must change the rx_buffer_size to 2048.
But you can leave data_bits and stop_bits because these are the default values.
I also have no parity settings.

from esphome-dlms-meter.

DomiStyle avatar DomiStyle commented on June 22, 2024

I can reproduce this on 2022.12 but I'm gonna have to check what changed.

For now, 2022.11.5 works fine.

from esphome-dlms-meter.

theexit avatar theexit commented on June 22, 2024

#21 added fix... is working for me!

from esphome-dlms-meter.

flo-dl avatar flo-dl commented on June 22, 2024

#21 added fix... is working for me!

Thanks a lot to the both of you. It wouldn't work for me (IKB) with just adding the delay. While the "Frame too big for received data" didn't show up in the log anymore, the "Start bytes do not match" was still there. I had to change my uart config from:

uart:
  tx_pin: GPIO1
  rx_pin: GPIO3
  baud_rate: 2400
  rx_buffer_size: 1024 # Needed to receive the large packets send by the smart meter
  id: mbus

to

uart:
  tx_pin: GPIO1
  rx_pin: GPIO3
  baud_rate: 2400
  parity: EVEN
  data_bits: 8
  stop_bits: 1
  rx_buffer_size: 2048
  id: mbus

I haven't checked what actually made the difference, but the above-mentioned fix and this config change worked in my case.

from esphome-dlms-meter.

flo-dl avatar flo-dl commented on June 22, 2024

#21 added fix... is working for me!

Thanks a lot to the both of you. It wouldn't work for me (IKB) with just adding the delay. While the "Frame too big for received data" didn't show up in the log anymore, the "Start bytes do not match" was still there. I had to change my uart config from:

uart:
  tx_pin: GPIO1
  rx_pin: GPIO3
  baud_rate: 2400
  rx_buffer_size: 1024 # Needed to receive the large packets send by the smart meter
  id: mbus

to

uart:
  tx_pin: GPIO1
  rx_pin: GPIO3
  baud_rate: 2400
  parity: EVEN
  data_bits: 8
  stop_bits: 1
  rx_buffer_size: 2048
  id: mbus

I haven't checked what actually made the difference, but the above-mentioned fix and this config change worked in my case.

That's true. You must change the rx_buffer_size to 2048. But you can leave data_bits and stop_bits because these are the default values. I also have no parity settings.

Thanks! I've tried removing them one by one but it wouldn't work without the parity: EVEN setting enabled, at least in my case. It would still error out with Start bytes do not match.

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.