pauln / esphome-linp-doorbell-g04

ESPHome custom component for Linptech G6L-Wifi doorbell (linp-doorbell-g04)
MIT License
14 stars 4 forks source link

Remote receiver not working on a CBU with linptech_g6l_protocol #7

Open spupetic opened 6 months ago

spupetic commented 6 months ago

I have installed ESPHome on the CBU based board, the doorbell components are the same as on the ESP32 based board. The chime chip works well via the remote_transmitter component, but the CMT2217B OOK RF receiver does not work somewhy. I can confirm that the RF receiver itself works with well with an ESP32.

I don't get any errors or warnings, except that the PIN should be inverted, but when I invert it, that doesn't change anything. By setting the log level to very verbose, nothing useful comes up, it seems like the protocol decoder never sends log messages.

Switching to remote_raw, I have gotten the following results:

ESP32:

remote_raw_esp32

BK7231N (Tuya CBU):

remote_raw_bk7231n
spupetic commented 5 months ago

I can confirm, that the same receiver works perfectly fine with an ESP8266 (and of course, the ESP32).

pauln commented 5 months ago

I haven't got any experience with the BK7231N / Tuya CBU module, but based on the remote_raw output you've shared, I wonder if you've configured the wrong pin for the remote_receiver - at a quick glance, it seems as though you're after the "P" number from this diagram and should refer to it with the "P" prefix in your config. These numbers appear to correspond to the "Symbol" column in the Tuya docs for the CBU module.

If you've definitely got the right pin configured, it's also possible that you need to enable either pullup or pulldown so that the signal is more decisive - perhaps the default pullup/pulldown status is different on the BK7231N vs ESP32/ESP8266?

spupetic commented 5 months ago

I haven't got any experience with the BK7231N / Tuya CBU module, but based on the remote_raw output you've shared, I wonder if you've configured the wrong pin for the remote_receiver - at a quick glance, it seems as though you're after the "P" number from this diagram and should refer to it with the "P" prefix in your config. These numbers appear to correspond to the "Symbol" column in the Tuya docs for the CBU module.

If you've definitely got the right pin configured, it's also possible that you need to enable either pullup or pulldown so that the signal is more decisive - perhaps the default pullup/pulldown status is different on the BK7231N vs ESP32/ESP8266?

Thanks for the tips, I will try the enabling of pullup or pulldown. As for the PIN number, it is the one to the left on the bottom of the CBU, so according to the docs, P8 - I know for sure, because I connected the ESPs to that PIN and then it worked with them. My config was this:

remote_receiver:
  pin: 
    number: P8
  dump: linptech_g6l
  filter: 20us
  idle: 900us
spupetic commented 5 months ago

I have tried pullup and pulldown, but it does not help - still no dumps in the logs.