Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't received data from C1101 when more sensors on ESP32 #188

Open
raaq1911 opened this issue Feb 24, 2025 · 1 comment
Open

Don't received data from C1101 when more sensors on ESP32 #188

raaq1911 opened this issue Feb 24, 2025 · 1 comment

Comments

@raaq1911
Copy link

Hello,

I provisioned Your wm-bus component on WT32-Eth01 (ESP32) with C1101 and ehternet config:

esphome:
  name: wies-rozdzielnia
  friendly_name: wies_rozdzielnia

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:
  level: VERBOSE

api:
  encryption:
    key: !secret api_password_esphome

ota:
  - platform: esphome
    password: !secret ota_password

ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO0_IN
  phy_addr: 1
  power_pin: GPIO16
  manual_ip:
    static_ip: 192.168.70.51
    gateway: 192.168.70.1
    subnet: 255.255.255.0
    dns1: 192.168.70.1
    dns2: 8.8.8.8

time:
  - platform: sntp
    id: time_sntp

external_components:
  - source: github://SzczepanLeon/[email protected]
    refresh: 0d
    components: [ wmbus ]

wmbus:
  mosi_pin: GPIO12 #
  miso_pin: GPIO35 # INPUT
  clk_pin:  GPIO14 #
  cs_pin:   GPIO15 #
  gdo0_pin: GPIO36 #INPUT
  gdo2_pin: GPIO39 #INPUT

  sync_mode: true 
#  log_all: true
#  all_drivers: true

  clients:
    - name: "wmbusmeters_udp"
      ip_address: "192.168.0.150"
      port: 9022
      format: RTLWMBUS
      transport: TCP

and I received a frame from Energy meter (amiplus) every minium 5 minutes.

After added a more sensor on I2c pins:

  • 2x SHT3X,
  • 1x MCP23017 (4 switch, 12 binary sensors):
i2c:
  sda: GPIO4
  scl: GPIO2
  scan: true
  id: bus_a

mcp23017:
  - id: 'mcp23017_hub'
    address: 0x20


switch:
  - platform: gpio
    pin:
      mcp23xxx: mcp23017_hub 
      number: 15 #PB7
      mode:
        output: true
      inverted: true
    id: relay_wies_relay_4
    name: "Wies Przekaznik 4"
[...]
binary_sensor:
  - platform: gpio
    id: bezp_rcd_grzalka_up
    pin:
      mcp23xxx: mcp23017_hub 
      number: 11 #PB3
      mode:
        input: true
        pullup: true
      inverted: true
    name: "Wies Rozdz Bezp RCD Grzałka UP"
[...]

I received much less frequently frame from the same meter:
Image

In above image, at 13:05 *.yaml file has only wmbus config.
It's normal? I should use only C1101 on this ESP32 without more sensors on free pins?

@SzczepanLeon
Copy link
Owner

SzczepanLeon commented Feb 24, 2025

Yes, it is normal.

Teoretycznie można by to polepszyć.
Przejście na inny uklad radiowy - SX1262 (albo coś podobnego z dużą pamięcią). Odczyt całej ramki wyzwalany przerwaniem. Wtedy ESP byłby odciążony. Niestety są też minusy:

  • ograniczenie długości telegramu do 255 bajtów (problem z odczytem watomierzy)
  • nie mam czasu na sprawdzenie tego w praktyce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants